/* Craft カスタマイズCSS */
/* プレースホルダー文字色を薄く */
::placeholder {
  color: var(--bs-text-gray-400) !important
}

img.disabled {
  filter: grayscale(0.9);
  opacity: 0.25;
}

.text-truncate-row-2,
.text-truncate-row-3,
.text-truncate-row-4,
.text-truncate-row-5 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
}

.text-truncate-row-3 {
  -webkit-line-clamp: 3 !important;
}

.text-truncate-row-4 {
  -webkit-line-clamp: 4 !important;
}

.text-truncate-row-5 {
  -webkit-line-clamp: 5 !important;
}

/* nice-select の 'fw-bold' 指定対応 */
.nice-select.fw-bold .current {
  font-weight: bold;
}

input[type=color]:disabled {
  background-color: inherit;
}

/* ↓ トースト通知 */
#toastr-container > .toastr {
  width: 90% !important;
  min-width: 300px !important;
  max-width: 350px !important;
  padding: 1rem 1.25rem 1rem 3.75rem !important;
  box-shadow: 6px 6px 6px #999 !important;
  opacity: 0.9;
}

@media (min-width: 768px) {
  #toastr-container > .toastr {
    min-width: 375px !important;
    max-width: 450px !important;
  }
}

#toastr-container > .toastr-success {
  background-size: 1.2rem;
}

#toastr-container > .toastr .toastr-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
}

#toastr-container > .toastr .toastr-message {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

#toastr-container > .toastr .toastr-message hr {
  margin-top: .5rem !important;
  margin-bottom: .5rem !important;
}

/* ↑ トースト通知 */

/* ↓ エラーページ */
main[data-content="error"] {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  text-align: center;
}

main[data-content="error"] .status {
  color: var(--bs-text-gray-600);
  transform: scale(1.5, 1.0);
  font-family: Impact, serif;
  font-size: 8rem;
  font-weight: 600;
}

main[data-content="error"] .message {
  font-size: 2rem;
  font-weight: 600;
}

/* ↑ エラーページ */

/* カーコンカラー適用 */
/* 'primary' をカーコンカラーへ、'primary' のカラーを 'info' へ */
:root, [data-bs-theme=light] {
  --bs-primary: #e5011e !important;
  --bs-info: #00A3FF;
  --bs-danger: #F1416C;
  --bs-primary-rgb: 229, 0, 30 !important;
  --bs-info-rgb: 0, 163, 255;
  --bs-danger-rgb: 241, 65, 108;
  --bs-primary-text-emphasis: #601a2b !important;
  --bs-info-text-emphasis: #004166;
  --bs-danger-text-emphasis: #601a2b;
  --bs-primary-bg-subtle: #fcd9e2 !important;
  --bs-info-bg-subtle: #ccedff;
  --bs-danger-bg-subtle: #fcd9e2;
  --bs-primary-border-subtle: #f9b3c4 !important;
  --bs-info-border-subtle: #99daff;
  --bs-danger-border-subtle: #f9b3c4;
  --bs-primary-active: #ce001b !important;
  --bs-info-active: #008BD9;
  --bs-danger-active: #D9214E;
  --bs-primary-light: #FFF5F8 !important;
  --bs-info-light: #F1FAFF;
  --bs-danger-light: #FFF5F8;
  --bs-primary-inverse: #FFFFFF !important;
  --bs-info-inverse: #FFFFFF;
  --bs-danger-inverse: #FFFFFF;
  --bs-text-primary: #e5011e !important;
  --bs-text-info: #00A3FF;
  --bs-text-danger: #F1416C;
  --bs-link-color-rgb: 239, 102, 120;
  --bs-menu-link-color-hover: #e5011e !important;
}

.pagination {
  --bs-pagination-active-bg: #e5011e !important;
  --bs-pagination-hover-color: #e5011e !important;
}

/* スクロール時にヘッダ固定した際、ヘッダ下部に影を追加 */
header[data-kt-sticky-enabled] {
  box-shadow: 0 10px 10px -10px rgba(0, 0, 0, .5) !important;
}

/* ヘッダ店舗選択のマウスオーバー */
header section[data-bs-target="#shopSelectModal"] a span,
header section[data-bs-target="#shopSelectModal"] a span + i {
  --bs-text-opacity: 1;
  color: var(--bs-danger);
}

header section[data-bs-target="#shopSelectModal"]:hover a span,
header section[data-bs-target="#shopSelectModal"]:hover a span + i {
  color: var(--bs-primary) !important;
  font-weight: bold !important;
}

/* ドロップダウンメニューの横幅拡張、影を追加 */
.dropdown .dropdown-menu {
  min-width: 175px !important;
  box-shadow: 0 1rem 2rem 1rem rgba(0, 0, 0, .2) !important;
}

.dropdown .dropdown-menu .dropdown-item i {
  margin-right: .5rem !important;
  font-size: 1.15rem;
  color: inherit;
}

.dropdown .dropdown-menu .dropdown-item i.fa-note-sticky {
  margin-right: .9rem !important; /* 付箋アイコンが小さいため調整 */
}

.dropdown .dropdown-menu .dropdown-item.text-info i {
  color: var(--bs-text-info) !important;
}

.dropdown .dropdown-menu .dropdown-item.text-success i {
  color: var(--bs-text-success) !important;
}

.dropdown .dropdown-menu .dropdown-item.text-warning i {
  color: var(--bs-text-warning) !important;
}

.dropdown .dropdown-menu .dropdown-item.text-danger i {
  color: var(--bs-text-danger) !important;
}

/* サイドメニューロゴ */
.aside-logo .logo-default {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* サイドメニュー件数バッジ */
.menu-item .menu-link .badge {
  font-size: 0.9rem;
  font-weight: bold;
  height: 1.4rem;
  width: 1.4rem;
}

/* カードヘッダー */
main section.card .card-header {
  background-color: var(--bs-dark);
  min-height: 50px;
}

main section.card .card-header .card-title {
  color: #ffffff;
  font-weight: bold;
}

/* カードキャプション */
.card .card-caption {
  background-color: #4c4c4f !important;
  border-bottom-width: 3px;
  border-bottom-style: solid;
  border-bottom-color: var(--bs-primary);
  padding: .75rem 1rem !important;
  margin-bottom: 2rem !important;
  color: var(--bs-white);
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  display: flex;
  justify-content: space-between;
}

.card .card-caption > button {
  max-height: 24px !important;
  padding: 0 16px !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
}

.card .card-caption ~ .row {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  margin-bottom: 3rem;
}

/* モーダル */
.modal {
  --bs-modal-header-border-color: var(--bs-primary) !important;
  --bs-modal-header-border-width: 2px !important;
}

.modal .modal-header {
  height: 50px;
  padding: 1rem 1.25rem;
  background-color: #4c4c4f !important;
}

.modal .modal-header .modal-title,
.modal .modal-header button i {
  color: var(--bs-white);
  font-size: 1.5rem;
  font-weight: bold;
}

.modal .modal-header button i.fa-xmark {
  font-size: 1.5rem;
}

.modal .modal-header .btn-close {
  width: 1.5rem !important;
  height: 1.5rem !important;
}

.modal .modal-body {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.modal .modal-footer {
  gap: 1rem;
  padding: 0.75rem 2rem;
}

.modal .modal-footer button {
  font-size: 1.2rem;
}

/* テーブル */
.table:not(.table-bordered).table-row-bordered thead tr:first-child {
  border-bottom-width: 3px;
  border-bottom-style: solid;
  border-bottom-color: var(--bs-primary);
}

.table:not(.table-bordered).table-row-bordered thead th {
  background-color: #4c4c4f !important;
  color: var(--bs-white) !important;
  font-weight: bold !important;
}

tbody[data-list] tr td {
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}

tbody[data-list] tr td .menu {
  color: var(--bs-text-primary) !important;
  --bs-bg-rgb-color: var(--bs-light-rgb);
  background-color: var(--bs-light) !important;
}

tbody[data-list] tr td .notes {
  font-family: inherit;
  background-color: var(--bs-light);
  padding: 1rem;
  border-radius: .25rem !important;
  white-space: break-spaces;
  max-height: 150px;
  max-width: 382px;
  overflow-x: auto;
  overflow-y: auto;
}

tbody[data-list] tr td .notes.notes-danger {
  background-color: var(--bs-danger-light) !important;
}

/* 付箋 */
pre.sticky-note {
  font-family: inherit;
  background-color: #fffeed;
  padding: 0.5rem;
  border-radius: .25rem !important;
  min-height: 50px;
  max-height: 200px;
  overflow-x: auto;
  overflow-y: auto;
  word-wrap: break-word !important;
  word-break: break-word !important;
  margin: 0;
}

/* テキスト付き水平線 */
hr.hr-text {
  line-height: 1em;
  position: relative;
  outline: 0;
  border: 0;
  color: black;
  text-align: center;
  height: 1.5em;
  opacity: .5;
  margin: .8rem 0;
  font-weight: 600;
}

hr.hr-text:before {
  content: '';
  background: #a1a9b1;
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
}

hr.hr-text:after {
  content: attr(data-content);
  position: relative;
  display: inline-block;
  color: black;
  padding: 0 .75em;
  line-height: 1.5em;
  background-color: #fcfcfa;
}

/* ↓ お客様情報 ↓ */
.customer-info {
  padding: 1rem 1.5rem 2rem;
}

.customer-info .name {
  background-color: var(--bs-light);
  font-size: 1.75rem;
  font-weight: 600;
  padding: 1.25rem 1rem .5rem;
  margin-bottom: .5rem;
}

/* ↓ ナンバープレート ↓ */
.number-plate {
  display: inline-block;
  vertical-align: middle;
  border: solid 1px #92929F;
  border-radius: .25rem;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.5), inset 0 -3px 6px -2px rgba(0, 0, 0, 0.3);
  background-color: #FFFFFF;
  font-weight: 700 !important;
  color: #006400;
  line-height: 1;
  white-space: nowrap;
  height: 74px;
  max-height: 74px;
  width: 140px;
  max-width: 140px;
  padding: 8px 12px;
}

.number-plate.number-plate-sm {
  max-height: 60px;
  min-width: 110px;
  padding: 6px;
}

.number-plate > div:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 20px;
}

.number-plate.number-plate-sm > div:first-child {
  min-height: 16px;
}

.number-plate > div:last-child {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 36px;
}

.number-plate.number-plate-sm > div:last-child {
  min-height: 32px;
}

.number-plate .area,
.number-plate .kana {
  font-size: 16px;
}

.number-plate.number-plate-sm .area,
.number-plate.number-plate-sm .kana {
  font-size: 12px;
}

.number-plate .class {
  font-size: 20px;
  font-weight: bold;
  margin-left: .2rem;
}

.number-plate.number-plate-sm .class {
  font-size: 16px;
}

.number-plate .digit {
  font-family: Verdana;
  letter-spacing: 0;
  font-weight: bold;
  text-align: end;
  min-width: 108px;
  font-size: 36px;
}

.number-plate.number-plate-sm .digit {
  min-width: 80px;
  font-size: 26px;
}

.number-plate.yellow {
  color: black !important;
  background-color: #ffd12a !important;
}

.number-plate.green {
  color: #ffffff !important;
  background-color: #174626 !important;
}

/* ↓ 車両情報 ↓ */
.car-info {
  height: 74px;
  max-height: 74px;
  min-width: 240px;
  padding: .5rem 1.25rem !important;
  display: flex !important;
  align-items: end !important;
  gap: 1.5rem !important;
}

.car-info.car-info-lg {
  height: 100px;
  max-height: 100px;
}

.car-model {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  width: 120px;
  max-width: 120px;
}

.car-model img {
  max-height: 50px;
}

.car-info.car-info-lg .car-model img {
  max-height: 80px;
}

.car-model span {
  font-weight: bold;
  font-size: .875em;
  margin-top: -5px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.car-size {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
}

.car-size span {
  font-size: 24px;
  font-weight: bold;
}

.car-size small {
  white-space: nowrap !important;
}

.overlay-blocker {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 1500;
  display: none;
  pointer-events: auto;
}

/* 背面に回ったモーダルを暗くし、操作不能にする */
.modal.modal-backdrop-parent {
  filter: brightness(0.4);
  pointer-events: none;
  transition: filter 0.3s ease;
}

.btn-mail-custom {
  background-color: #e9ecef !important;
  border: 1px solid #ced4da !important;
  color: #333 !important;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}

.btn-mail-custom:hover {
  background-color: #F60028 !important;
  border-color: #F60028 !important;
  color: #fff !important;
}

.summary-box {
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.summary-header {
  color: white;
  border-radius: 8px 8px 0 0;
  padding: 8px;
  text-align: center;
  font-weight: bold;
}

.stat-item {
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e9ecef;
}

.stat-item.red {
  background-color: var(--bs-primary-light)
}

.stat-item.dark {
  /*background-color: #fff7f2;*/
  background-color: #f8f9fa;
}

.stat-label {
  font-size: 1rem;
  color: #555;
  display: flex;
  align-items: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.stat-unit {
  font-size: 0.8rem;
  margin-left: 4px;
}

/* --- 集計テーブルのカスタムスタイル --- */
.summary-table-container {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #333;
}

/* ヘッダーのスタイル */
.summary-table th {
  background-color: #f8f9fa; /* スポイトした淡いグレー */
  color: #444;
  font-weight: bold;
  border-bottom: 2px solid #dee2e6;
  text-align: center;
}

/* セルの共通スタイル */
.summary-table td {
  border-bottom: 1px solid #eee;
  color: #333;
}

.summary-table th,
.summary-table td {
  padding: 12px 15px;
  border: 1px solid #dcdcdc; /* ★これで縦横すべてのセルに区切り線が入ります */
}

/* 項目ラベル（1列目） */
.summary-table td:first-child {
  font-weight: 600;
  background-color: #fcfcfc;
  width: 180px;
}

.table-header > th {
  background-color: #4c4c4f;
  border-bottom-color: var(--bs-primary);
  color: var(--bs-white);
}

/* 「合計」行の強調 */
.row-total td {
  background-color: var(--bs-primary-light) !important;
  font-weight: bold;
  border-top: 2px solid #dee2e6;
  border-bottom: none;
  font-size: 1.05rem;
}

/* ホバー効果 */
.summary-table tbody tr:hover td {
  background-color: #f1f3f5;
}

.monthly-sales-tab-btn {
  flex: 1;
  text-align: center;
  border-bottom: none; /* 下線はコンテナ側に任せる */
  padding: 10px 32px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px 8px 0 0; /* 上部の角だけ丸くする */
  cursor: pointer;
}

.monthly-sales-reload {
  color: var(--bs-text-success) !important;
  font-weight: bold !important;
  border-radius: 1rem !important;
  padding: .25rem .75rem !important;
}

.monthly-sales-reload > i {
  color: var(--bs-text-success);
}

/* 「全メニュー合算」行の強調 */
.row-total-sum td {
  background-color: #f2f2f2 !important;
  font-weight: bold;
}

.row-total-sum td:first-child {
  text-align: center;
}

main[data-content="report"] {
  h2 {
    font-size: 2rem;
    font-weight: 900;
    padding: .5rem .75rem;
    border-left: solid 5px var(--bs-primary);
  }

  h3 {
    position: relative;
    padding: 0.5em 0.5em 0.5em 2.0em; /* アイコン分のスペース */
    line-height: 1.4;
    color: black;
    border-top: solid 1px #dcdcdc;
    border-bottom: solid 1px #dcdcdc;
    background: var(--bs-primary-light);
  }

  h3:before {
    font-family: "Font Awesome 5 Free";
    content: "\f24d"; /* アイコンのUnicode */
    font-weight: 900;
    position: absolute;
    font-size: 1em;
    left: 0.5em;
    top: 0.5em;
    color: var(--bs-text-primary);
  }

  .btn[data-cal-action] > i {
    padding: 0;
    font-size: 1.2rem;
  }
}

.btn-accordion-service {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-accordion-service:hover {
  background-color: #f5f5f5;
  border-color: #aaa;
}

/* ネット予約実績サマリー グレーアウトオーバーレイ */
#summarySection {
  position: relative;
}

.summary-overlay {
  position: absolute;
  inset: 0;
  background: rgba(210, 210, 210, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: 10;
}

.summary-overlay-inner {
  background: #fff;
  border-radius: 12px;
  padding: 56px 80px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 480px;
}

.summary-overlay-icon {
  font-size: 1.4rem !important;
}

.summary-overlay-message {
  font-size: 1.4rem;
}

.summary-overlay-sub {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}


/* Googleカレンダー同期ステータスのツールチップ（大きく読みやすく） */
.cal-tooltip .tooltip-inner {
  max-width: 360px;
  font-size: .9rem;
  line-height: 1.6;
  text-align: left;
  padding: .55rem .75rem;
}
