@import url("/assets/tom-select.bootstrap5.min-daa8676f.css");

/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.w-5 {
  width: 5%;
}

.w-10 {
  width: 10%;
}

.w-15 {
  width: 15%;
}

.w-20 {
  width: 20%;
}

.badge {
  padding: 0.25em 0.4em !important;

  --bs-badge-padding-x: 0.4em !important;
}

.badge-soft-primary {
  background-color: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
  font-size: 0.75rem;
}

.badge-soft-info {
  background-color: #e2f2fd;
  color: #1976d2;
  border: 1px solid #bbdefb;
  font-size: 0.75rem;
}

.badge-soft-success {
  background-color: #e7f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  font-size: 0.75rem;
}

.badge-soft-warning {
  background-color: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffe082;
  font-size: 0.75rem;
}

.badge-soft-danger {
  background-color: #ffebee;
  color: #d32f2f;
  border: 1px solid #ef9a9a;
  font-size: 0.75rem;
}

.badge-soft-secondary {
  background-color: #f5f5f5;
  color: #616161;
  border: 1px solid #e0e0e0;
  font-size: 0.75rem;
  padding: 0.25em 0.5em;
  border-radius: 4px;
  display: inline-block;
}

.badge-soft-dark {
  background-color: #eceff1;
  color: #37474f;
  border: 1px solid #b0bec5;
  font-size: 0.75rem;
}

/* md以上の画面では中央に縦罫線 */
@media (width >= 768px) {
  .custom-vertical-line::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: #dee2e6;
    transform: translateX(-50%);
  }
}

/* 映像二次：使用素材内の料金参考（sub_card） */
.fee-reference-subcard .fee-reference-subcard-row {
  padding: 0.35rem 0;
  border-bottom: 1px dotted #dee2e6;
}

.fee-reference-subcard .fee-reference-subcard-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.subcard-title {
  float: left;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
}

.card-header[data-card-target="header"] {
  cursor: pointer;
}

.card-header[data-card-target="header"]:hover {
  background-color: rgb(0 0 0 / 2%);
}

.card-header[data-card-target="header"]:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: -2px;
}

/* 選手タグ（admin/main 共通） */
.player-tag-box {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.75rem;
}

.player-tag-list {
  min-height: 2rem;
}

.player-tag-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.6rem 0.45rem 0.65rem;
  font-size: 12px;
  line-height: 1.4;
}

.player-tag-remove {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1rem;
  height: 1rem;
  border: 1px solid #ced4da;
  border-radius: 999px;
  background: #fff;
  color: #6c757d;
  font-size: 11px;
  line-height: 1;
  padding: 0;
}

.player-tag-search {
  position: relative;
}

.player-suggest-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1050;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background: #fff;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 12%);
}

.player-suggest-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #212529;
  text-align: left;
  font-size: 12px;
  padding: 0.5rem 0.75rem;
}

.player-suggest-item:hover,
.player-suggest-item.is-active {
  background: #e9f2ff;
}

aside:not([data-turbo="false"]) .sidebar-menu > .nav-item {
  border-bottom: 1px solid rgb(255 255 255 / 7%) !important;
}

aside:not([data-turbo="false"]) .sidebar-menu > .nav-item > .nav-link p {
  padding-left: 1.2rem !important;
}

aside:not([data-turbo="false"]) .sidebar-menu > .nav-item > .nav-link.active {
  background-color: rgb(255 255 255 / 15%) !important;
  color: #fff !important;
  font-weight: bold !important;
  border-radius: 0.25rem !important;
}

aside:not([data-turbo="false"]) .sidebar-menu > .nav-item > .nav-link.active i {
  color: #fff !important;
}

aside:not([data-turbo="false"]) .sidebar-menu > .nav-header {
  font-weight: bold !important;
  font-size: 0.9rem !important;
  color: #fff !important;
  margin-top: 1.5rem !important;
  border-bottom: 1px solid rgb(255 255 255 / 15%) !important;
}

aside[data-turbo="false"] .sidebar-menu .nav-item > .nav-link-btn,
aside[data-turbo="false"] .sidebar-menu .nav-treeview .nav-item > .nav-link {
  display: flex;
  align-items: center;
  position: relative;
  width: calc(100% - 1rem) !important;
  margin: 0.25rem 0.5rem !important;
  padding: 0.5rem 1rem !important;
  line-height: 1.5;
  text-align: left;
  border-radius: 0.25rem !important;
  transition:
    background-color 0.15s ease-in-out,
    color 0.15s ease-in-out;
  box-sizing: border-box !important;
}

aside[data-turbo="false"] .sidebar-menu > .nav-item {
  border-bottom: 1px solid rgb(255 255 255 / 10%) !important;
}

aside[data-turbo="false"] .sidebar-menu > .nav-item > .nav-link-btn {
  background: transparent;
  border: none;
  color: rgb(255 255 255 / 80%);
  cursor: pointer;
}

aside[data-turbo="false"] .sidebar-menu > .nav-item > .nav-link-btn:focus {
  outline: none !important;
}

aside[data-turbo="false"] .sidebar-menu > .nav-item > .nav-link-btn p {
  font-weight: bold !important;
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}

aside[data-turbo="false"] .sidebar-menu > .nav-item > .nav-link-btn .nav-arrow {
  transition: transform 0.3s ease-in-out;
}

aside[data-turbo="false"]
  .sidebar-menu
  > .nav-item.menu-open
  > .nav-link-btn
  .nav-arrow {
  transform: rotate(90deg);
}

aside[data-turbo="false"]
  .sidebar-menu
  > .nav-item
  > .nav-link-btn:not(.active):hover {
  background-color: rgb(255 255 255 / 10%) !important;
  color: #fff !important;
}

aside[data-turbo="false"] .sidebar-menu > .nav-item > .nav-link-btn.active {
  background-color: #007bff !important;
  color: #fff !important;
}

aside[data-turbo="false"] .sidebar-menu .nav-treeview .nav-item {
  border-bottom: 1px solid rgb(255 255 255 / 7%) !important;
}

aside[data-turbo="false"] .sidebar-menu .nav-treeview .nav-item:last-child {
  border-bottom: none !important;
}

aside[data-turbo="false"] .sidebar-menu .nav-treeview .nav-item .nav-link p {
  padding-left: 1.2rem !important;
  margin: 0;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

aside[data-turbo="false"]
  .sidebar-menu
  .nav-treeview
  .nav-item
  > .nav-link.active {
  background-color: rgb(255 255 255 / 15%) !important;
  color: #fff !important;
  font-weight: bold !important;
}

aside[data-turbo="false"]
  .sidebar-menu
  .nav-treeview
  .nav-item
  > .nav-link.active
  i {
  color: #fff !important;
}

.sticky-bordered-table table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 0 !important;
}

.sticky-bordered-table table th,
.sticky-bordered-table table td {
  border-left: 1px solid #dee2e6 !important;
  border-top: 1px solid #dee2e6 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
}

.sticky-bordered-table table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background-color: #f8f9fa !important;
}

.sticky-bordered-table table tfoot th,
.sticky-bordered-table table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background-color: #f8f9fa !important;
}

.sticky-bordered-table table tr > th:last-child,
.sticky-bordered-table table tr > td:last-child {
  border-right: 1px solid #dee2e6 !important;
}

.sticky-bordered-table table tfoot tr:last-child th,
.sticky-bordered-table table tfoot tr:last-child td,
.sticky-bordered-table table tbody tr:last-child td {
  border-bottom: 1px solid #dee2e6 !important;
}

.sticky-bordered-table table tbody .table-col-sticky-end {
  position: sticky;
  right: 0;
  z-index: 4;
  background-color: #fff !important;
  border-left: none !important;
  box-shadow: -1px 0 0 #dee2e6;
}

.sticky-bordered-table table thead .table-col-sticky-end {
  position: sticky;
  top: 0;
  right: 0;
  z-index: 5;
  background-color: #f8f9fa !important;
  border-left: none !important;
  box-shadow: -1px 0 0 #dee2e6;
}

.sticky-bordered-table table tfoot .table-col-sticky-end {
  position: sticky;
  bottom: 0;
  right: 0;
  z-index: 5;
  background-color: #f8f9fa !important;
  border-left: none !important;
  box-shadow: -1px 0 0 #dee2e6;
}
