/* ============================================================================
   PERRYGATE - 統合スタイルシート
   ============================================================================ */

/* ----------------------------------------------------------------------------
   レイアウト - ページ全体の構造
   ---------------------------------------------------------------------------- */

/* Prevent body scrolling - only main-content should scroll */

html,
body {
  height: 100%;
  overflow: hidden;
}

/* Layout row containing nav and main-content */

.layout-row {
  height: calc(100vh - var(--nav-offset, 0px));
  height: calc(100dvh - var(--nav-offset, 0px));
}

/* Main content area - only this scrolls */

.main-content {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* Fixed footer layouts */

.l-main--has-fixed-footer {
  padding-bottom: 100px;
}

.l-main--has-fixed-footer2 {
  padding-bottom: 120px;
}

/* ページ全体のスクロールバー非表示 */
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

body {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: hidden;
}

.container-fluid {
  max-width: 100%;
  overflow-x: hidden;
}

/* ----------------------------------------------------------------------------
   ヘッダー
   ---------------------------------------------------------------------------- */

.header {
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px;
  position: relative;
  background-color: #0190a2;
}

.header .header-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 0 0 auto;
}

.header .header-logo-img {
  position: relative;
  width: 158px;
  object-fit: cover;
}

.header .header-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  flex: 0 0 auto;
}

.header .header-id-detail {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.header .header-id-company,
.header .header-id-name {
  position: relative;
  width: fit-content;
  font-family: 'Inter-Bold', Helvetica;
  font-weight: 700;
  color: #ffffff;
  font-size: 12px;
  line-height: normal;
}

.header .dropdown-toggle::after {
  color: #fff;
}

.header .dropdown-item {
  font-weight: var(--bold-h1-heading-font-weight);
  padding: 16px;
}

.header .dropdown-item.logout {
  color: var(--red-500);
}

/* ----------------------------------------------------------------------------
   ページタイトル
   ---------------------------------------------------------------------------- */

.page-title {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  position: relative;
  background-color: var(--defaultwhite);
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-color: var(--gray-300);
}

.page-title .title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  flex: 0 0 auto;
}

.page-title .get-started {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: var(--bold-h1-heading-font-family);
  font-weight: var(--bold-h1-heading-font-weight);
  color: var(--gray-800);
  font-size: var(--bold-h1-heading-font-size);
  letter-spacing: var(--bold-h1-heading-letter-spacing);
  line-height: var(--bold-h1-heading-line-height);
  white-space: nowrap;
  font-style: var(--bold-h1-heading-font-style);
}

.page-title .star {
  position: relative;
  width: 24px;
  height: 24px;
}

/* ----------------------------------------------------------------------------
   ナビゲーション
   ---------------------------------------------------------------------------- */

.nav {
  display: flex;
  flex-direction: column;
  width: 48px;
  height: 100%;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  background-color: #ffffff;
  border-right-width: 1px;
  border-right-style: solid;
  border-color: var(--secondarylight-color);
  transition: 0.1s;
  overflow-y: hidden;
  box-sizing: border-box;
}

.nav .nav-list {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  flex: 0 0 auto;
}

.nav .nav-child {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.nav .nav-child:hover {
  background-color: var(--primarycolor-light);
  text-decoration: none;
}

.nav .nav-child.active {
  background-color: var(--primarycolor-light);
  text-decoration: none;
}

.nav .nav-child .img {
  position: relative;
  width: 24px;
  height: 24px;
  background-color: var(--gray-900);
}

.nav .nav-child.active .img {
  background-color: var(--primarycolor);
  mask: url('../img/grid.svg');
}

.nav .nav-child .img.grid {
  mask: url('../img/grid.svg');
}

.nav .nav-child .img.card-heading {
  mask: url('../img/card-heading.svg');
}

.nav .nav-child .img.shop {
  mask: url('../img/shop.svg');
}

.nav .nav-child .img.building {
  mask: url('../img/building.svg');
}

.nav .nav-child .img.screwdriver {
  mask: url('../img/screwdriver.svg');
}

.nav .nav-child .img.cart {
  mask: url('../img/cart-2.svg');
}

.nav .nav-child .img.diagram {
  mask: url('../img/diagram-3.svg');
}

.nav .nav-child .img.gear {
  mask: url('../img/gear.svg');
}

.nav .nav-child .img.star {
  mask: url('../img/star.svg');
}

.nav .nav-child .img.star.favorited {
  mask: url('../img/star-filled.svg');
  background-color: #ffb300;
}

.nav .text-wrapper {
  position: relative;
  width: fit-content;
  font-family: var(--body-base-text-font-family);
  font-weight: var(--body-base-text-font-weight);
  color: var(--gray-900);
  font-size: var(--body-base-text-font-size);
  letter-spacing: var(--body-base-text-letter-spacing);
  line-height: var(--body-base-text-line-height);
  white-space: nowrap;
  font-style: var(--body-base-text-font-style);
  display: none;
}

.nav:hover {
  width: 240px;
}

.nav:hover .nav-child {
  width: 240px;
}

.nav:hover .text-wrapper {
  display: block;
}

/* ナビゲーションホバー時に固定フッターの位置を調整 */
.nav:hover ~ .main-content .fixed-box,
.nav:hover ~ .main-content .fixed-box2,
.layout-row:has(> .nav:hover) .fixed-box,
.layout-row:has(> .nav:hover) .fixed-box2 {
  left: 240px;
  width: calc(100% - 240px);
}

/* ----------------------------------------------------------------------------
   セクション
   ---------------------------------------------------------------------------- */

.p-section {
  margin-top: 8px;
  margin-bottom: 24px;
}

.p-section__header {
  margin-top: 8px;
  margin-bottom: 24px;
  align-items: center;
  background: rgba(0, 172, 193, 0.2);
  height: 44px;
  border-left: 4px solid #0190a2;
  border-radius: 4px;
}

.p-section__title {
  margin-bottom: 0;
  color: #555d65;
  font-size: 20px;
  font-weight: bold;
}

.p-section__body {
  margin-bottom: 24px;
}

.c-section-subtitle {
  color: #858c90;
  font-size: 14px;
}

.c-heading-pill {
  display: block;
  width: 100%;
  background: #f5f7f9;
  border-radius: 30px;
  font-size: 18px;
  color: #555d65;
  font-weight: bold;
}

.p-form-section {
  background: #f5f7f9;
  border-radius: 8px;
}

/* ----------------------------------------------------------------------------
   見出し
   ---------------------------------------------------------------------------- */

.c-heading-sub {
  font-size: 18px;
  color: #555d65;
  margin-bottom: 16px;
  font-weight: bold;
  border-bottom: 1px solid #c8cfd7;
}

/* ----------------------------------------------------------------------------
   バッジ
   ---------------------------------------------------------------------------- */

.badge-count {
  background-color: var(--gray-500, #6c757d);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.badge.c-badge {
  display: inline-block;
  padding: 3px 6px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  vertical-align: middle;
}

.c-badge.c-badge--red {
  background: #db4444;
}

/* 丸型バッジ（rounded-pill）- 汎用スタイル */
.c-badge-pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50rem;
  color: #fff;
}

.c-badge-pill.c-badge--gray {
  background: #adcad6;
}

.c-badge-pill.c-badge--yellowgreen {
  background: #99c24d;
}

.c-badge-pill.c-badge--red {
  background: #db4444;
}

.c-badge2.c-badge--purple {
  background-color: #9b59b6;
}

.badge.c-badge2 {
  display: inline-block;
  padding: 3px 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
}

.c-badge2.c-badge--darkgray {
  background-color: #555d65;
}

.c-badge2.c-badge--blue {
  background-color: #2980b9;
}

.c-badge2.c-badge--lightblue {
  background-color: #41bbd9;
}

.c-badge2.c-badge--green {
  background-color: #16a085;
}

.c-badge2.c-badge--yellowgreen {
  background-color: #99c24d;
}

.c-badge2.c-badge--orange {
  background-color: #f18f01;
}

.c-badge2.c-badge--red {
  background-color: #db4444;
}

.c-badge2.c-badge--gray {
  background-color: #adcad6;
}

.c-badge2.c-badge--lightgray {
  background-color: #C8CDD0;
  color: #555D65;
}

.c-badge2.c-badge--yellow {
  background-color: #c8a801;
  color: #555d65;
}

/* バッジ高さ */
.c-badge-height-18 {
  height: 18px;
}

/* 未読バッジ */
.c-unread-badge {
  color: #e74c3c;
  position: absolute;
  top: -4px;
  right: -5px;
}

/* ----------------------------------------------------------------------------
   入力フィールド
   ---------------------------------------------------------------------------- */

.c-input:focus {
  border-color: #0190a2 !important;
  box-shadow: none !important;
  outline: none !important;
}

.c-input::placeholder {
  color: #858c90 !important;
}

.c-input:disabled {
  color: #162533 !important;
  background: #f5f7f9 !important;
}

/* ----------------------------------------------------------------------------
   ボタン共通
   ---------------------------------------------------------------------------- */

.btn.btn-base {
  font-size: 16px;
  line-height: 1;
  border-radius: 4px;
  padding: 6px 12px;
  transition: 0.2s ease;
  border: 1px solid transparent;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  height: 40px;
  white-space: nowrap;
}

.btn-base.btn-date {
  background: rgb(255, 255, 255);
  color: #555d65;
  border-color: #c8cfd7;
}

.btn-base.btn-date:hover {
  border-color: #0190a2 !important;
  color: #0190a2;
  background-color: #ffffff;
}

.btn-base.btn-date:focus {
  background: #0190a2;
  color: #ffffff;
}

/* ----------------------------------------------------------------------------
   ボタン - グリーン系
   ---------------------------------------------------------------------------- */

.btn-fill-green {
  background: #16a085;
  color: #f8f8f8;
}

.btn-fill-green:hover {
  background: #198872;
  color: #ffffff;
}

.btn-base.btn-outline-green {
  background: #ffffff;
  border-color: #0190a2;
  color: #0190a2;
}

.btn-base.btn-outline-green:hover {
  background: rgba(1, 144, 162, 0.15);
  border-color: #017a8a;
  color: #017a8a;
}

.btn-base.btn-outline-green:focus {
  background: rgba(1, 144, 162, 0.15);
  border-color: #017a8a;
  color: #017a8a;
}

.btn-base.btn-fill-green {
  background: #0190a2;
  border-radius: 4px;
  color: #ffffff;
}

.btn-base.btn-fill-green:hover {
  background: #1a848f;
  color: #ffffff;
  border: 1px solid #1a848f;
}

.btn-base.btn-fill-green2 {
  background: #16a085;
  color: #f8f8f8;
}

.btn-base.btn-fill-green2:hover {
  background: #198872;
  color: #ffffff;
}

/* ----------------------------------------------------------------------------
   ボタン - ブルー系
   ---------------------------------------------------------------------------- */

.btn-base.btn-fill-blue {
  color: #f8f8f8;
  background: #2b6eb9;
}

.btn-base.btn-fill-blue:hover {
  background: #2961a0;
  color: #ffffff;
}

.btn-base.btn-fill-blue2 {
  background: #2980b9;
  color: #f8f8f8;
}

.btn-base.btn-fill-blue2:hover {
  background: #2c6d98;
  color: #ffffff;
}

.btn-base.btn-outline-blue {
  background: #ffffff;
  color: #2b6eb9;
  border-color: #2b6eb9;
}

.btn-base.btn-outline-blue:hover {
  background-color: #ddeaf9;
  color: #0150a8;
  border: 1px solid #0150a8;
}

/* ----------------------------------------------------------------------------
   ボタン - レッド系
   ---------------------------------------------------------------------------- */

.btn-fill-red {
  color: #f8f8f8;
  background: #c63c3c;
  font-weight: bold;
}

.btn-fill-red:hover {
  background: #b63737;
  color: #ffffff;
}

.btn-base.btn-outline-red {
  color: #c63c3c;
  border-color: #c63c3c;
  background: #ffffff;
}

.btn-base.btn-outline-red:hover {
  border-color: #c63c3c;
  color: #c63c3c;
  background-color: #fdebeb;
}

.btn-base.btn-fill-red {
  color: #f8f8f8;
  background: #c63c3c;
  font-weight: bold;
}

.btn-base.btn-fill-red:hover {
  background: #b63737;
  color: #ffffff;
}

/* ----------------------------------------------------------------------------
   ボタン - オレンジ系
   ---------------------------------------------------------------------------- */

.btn-base.btn-outline-orange {
  color: #f2994a;
  border-color: #f2994a;
  background: #ffffff;
}

.btn-base.btn-outline-orange:hover {
  border-color: #f2994a;
  color: #f2994a;
  background-color: #f8e1cd;
}

.btn-base.btn-fill-orange {
  color: #f8f8f8;
  background: #f2994a;
  font-weight: bold;
}

.btn-base.btn-fill-orange:hover {
  background: #d9812b;
  border-color: #d9812b;
  color: #ffffff;
}

/* ----------------------------------------------------------------------------
   ボタン - グレー系
   ---------------------------------------------------------------------------- */

.btn-base.btn-outline-gray {
  color: #858c90;
  border-color: #c8cfd7;
  background: #ffffff;
}

.btn-base.btn-outline-gray:hover {
  background: #f0f2f4;
  border: 1px solid #c8cfd7;
  color: #858c90;
}

.btn-fill-gray {
  background: #858c90;
  color: #f8f8f8;
}

.btn-fill-gray:hover {
  background: #6f777b;
  color: #ffffff;
}

.btn-base.btn-fill-gray {
  background: #adcad6;
  color: #f8f8f8;
}

.btn-base.btn-fill-gray:hover {
  background: #98b8c5;
  color: #ffffff;
}

/* ----------------------------------------------------------------------------
   ボタン - パープル系
   ---------------------------------------------------------------------------- */

.btn-base.btn-outline-purple {
  color: #9555c1;
  border-color: #9555c1;
  background: #ffffff;
}

.btn-base.btn-outline-purple:hover {
  background: #e5d0f3;
  border: 1px solid #9555c1;
  color: #9555c1;
}

/* ----------------------------------------------------------------------------
   メッセージ
   ---------------------------------------------------------------------------- */

.c-ai-message {
  color: #28c4d8;
  border: 1px solid #28c4d8;
  border-radius: 5px;
}

/* ----------------------------------------------------------------------------
   モーダル
   ---------------------------------------------------------------------------- */

.c-modal__title {
  color: #555d65;
  font-size: 20px;
}

/* ----------------------------------------------------------------------------
   固定ボックス
   ---------------------------------------------------------------------------- */

.fixed-box {
  background: #f5f7f9;
  position: fixed;
  bottom: 0;
  z-index: 1000;
  width: calc(100% - 48px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 24px;
  left: 48px;
  transition:
    left 0.3s ease,
    width 0.3s ease;
  border-top-width: 1px;
  border-top-style: solid;
  border-color: var(--secondarylight-color);
}

.fixed-box2 {
  background: #f5f7f9;
  height: 120px;
  position: fixed;
  bottom: 0;
  z-index: 1000;
  width: calc(100% - 48px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 24px;
  left: 48px;
  transition:
    left 0.3s ease,
    width 0.3s ease;
  border-top-width: 1px;
  border-top-style: solid;
  border-color: var(--secondarylight-color);
}

/* ----------------------------------------------------------------------------
   ボタン（その他）
   ---------------------------------------------------------------------------- */

.btn-main {
  border-radius: 4px;
  background: #f2994a;
  color: #f8f8f8;
  --bs-body-font-weight: bold;
  border-style: solid;
  border-color: #f2994a;
  width: 160px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}

.btn-main:hover {
  background: #d9812b;
  border-color: #d9812b;
  color: #fff;
}

.btn-outline-main {
  border-radius: 4px;
  width: 160px;
  background: #fff;
  border: 1px solid #0190a2;
  color: #0190a2;
  padding: 10px 20px;
  box-sizing: border-box;
  line-height: 1;
}

.btn-outline-main:hover,
.modal-button,
.modal-button:hover {
  background: rgba(1, 144, 162, 0.15);
  border-color: #017a8a;
  color: #017a8a;
}

.btn-loading {
  position: relative;
}

.btn-loading:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ボタングループ */

.btn-group-actions {
  display: flex;
  gap: 0.25rem;
}

.btn-group-actions .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* 小さい削除ボタン - フォーム内の行削除などに使用 */

.btn-remove-small {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* タグ用閉じるボタン */
.btn-tag-close {
  background: none;
  width: 14px;
  height: 14px;
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  opacity: 1;
}

.btn-tag-close:focus {
  outline: 2px solid var(--primarycolor);
  outline-offset: 2px;
}

.btn-tag-close::before,
.btn-tag-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #c63c3c;
}

.btn-tag-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.btn-tag-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* 閉じるボタン(モーダル用) - Bootstrapのデフォルトアイコンを使用 */
.btn.btn-close:focus {
  outline: 2px solid var(--primarycolor);
  outline-offset: 2px;
  box-shadow: none;
}

/* ボタン幅 */
.c-btn-width-120 {
  width: 120px;
}

/* ページタイトル右側ボタングループ（注文フォーム用） */
.c-fixed-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
}

/* メッセージボタン */
.c-message-btn {
  font-weight: bold;
  position: relative;
}

/* ----------------------------------------------------------------------------
   ローディングスピナー
   ---------------------------------------------------------------------------- */

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--gray-300);
  border-top: 3px solid var(--primarycolor);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ローディングオーバーレイ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-overlay-content {
  background: var(--defaultwhite);
  padding: 30px 50px;
  border-radius: var(--collection-1-radius-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-large);
}

.loading-overlay-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-300);
  border-top: 4px solid var(--primarycolor);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

.loading-overlay-message {
  font-family: var(--body-base-text-font-family);
  font-size: var(--body-base-text-font-size);
  color: var(--gray-800);
}


/* ----------------------------------------------------------------------------
   フォーム
   ---------------------------------------------------------------------------- */

/* フォームラベル（セクション内） */
.p-section .form-label {
  color: #555d65;
}

/* 必須項目マーク */
.required-mark {
  color: var(--status-color-danger, #dc3545);
  margin-left: 0.125rem;
}

/* フォームコントロールバリデーションスタイル（Bootstrap 5対応） */
/* 無効状態 - is-invalidクラスが付いたform-controlに赤枠を適用 */
/* was-validated内の:validスタイルより優先させるため詳細度を高める */
.form-control.is-invalid,
.was-validated .form-control.is-invalid,
.was-validated .form-control.is-invalid:valid,
.was-validated .form-control.is-invalid:invalid {
  border-color: var(--status-color-danger, #dc3545) !important;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right calc(0.375em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Select2 バリデーションスタイル（Bootstrap 5対応） */
/* 無効状態 - was-validated内のinvalid select要素のSelect2コンテナにスタイル適用 */
.was-validated select.form-select:invalid + .select2-container .select2-selection,
.was-validated .form-select.is-invalid + .select2-container .select2-selection,
.select2-selection.is-invalid {
  border-color: var(--status-color-danger, #dc3545) !important;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* 有効状態 - was-validated内のvalid select要素のSelect2コンテナにスタイル適用 */
.was-validated select.form-select:valid + .select2-container .select2-selection,
.was-validated .form-select.is-valid + .select2-container .select2-selection {
  border-color: var(--status-color-success, #28a745) !important;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* 入力幅200px */
.c-input-width-200 {
  width: 200px;
}

/* テキストエリア高さ120px */
.c-textarea-height-120 {
  height: 120px;
}

/* チェックボックスラベル（プライマリカラー） */
.c-check-label-primary {
  color: #0190a2;
  font-size: 14px;
}

/* チェックラベル（小さいサイズ） */
.c-check-label-sm {
  font-size: 14px;
}

/* padding-top調整 */
.c-pt-form {
  padding-top: 0.375rem;
}

/* ----------------------------------------------------------------------------
   アラート
   ---------------------------------------------------------------------------- */

.c-alert-sm {
  font-size: 12px;
  padding: 4px;
}

.alert-fixed {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1060; /* モーダル(1055)より上に表示 */
  min-width: 300px;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ----------------------------------------------------------------------------
   カード
   ---------------------------------------------------------------------------- */

.card {
  overflow-x: visible;
}

.card-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  margin-bottom: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.card-subtitle {
  margin-bottom: 0.5rem;
  color: var(--gray-600, #6c757d);
  font-size: 0.875rem;
}

.card-body {
  max-width: 100%;
  overflow: hidden;
}

/* メニューカードスタイル */

.menu-card {
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
}

.p-section .row > [class*="col"] > a {
  display: block;
  height: 100%;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  border-color: var(--primarycolor, #0190a2);
}

.menu-card-title {
  font-size: 20px;
  font-weight: bold;
  color: #0190a2;
}

.menu-card-description {
  color: #162533;
}

/* カード/ボーダースタイル */
.c-border-card {
  border: 1px solid #c8cfd7;
  border-radius: 4px;
}

/* メッセージコンテナ */
.c-message-container {
  background: #f5f7f9;
  max-height: 400px;
  overflow-y: auto;
}

/* メッセージカード（動的生成用） */
.c-message-card {
  border: 1px solid #858c90;
}

.c-message-card-text {
  color: rgb(22, 37, 51);
  font-size: 16px;
}

.c-message-recipient-label {
  font-size: 12px;
  color: #555d65;
}

/* ----------------------------------------------------------------------------
   モーダル
   ---------------------------------------------------------------------------- */

.modal-header {
  border-bottom: 1px solid var(--gray-300, #dee2e6);
}

.modal-footer {
  border-top: 1px solid var(--gray-300, #dee2e6);
}

.modal-body .form-label {
  font-weight: 600;
}

.modal-body .text-danger {
  color: var(--status-color-danger, #dc3545) !important;
}

/* 確認モーダル（プレビューモーダル等の上に表示） */
#confirmDialog {
  z-index: 1060;
}

#confirmDialog + .modal-backdrop {
  z-index: 1055;
}

.c-modal__title {
  color: #555d65;
  font-size: 20px;
}

/* モーダル高z-index */
.c-modal-high-z {
  z-index: 9999;
}

/* ----------------------------------------------------------------------------
   テーブル
   ---------------------------------------------------------------------------- */

.table-actions {
  white-space: nowrap;
  width: 1%;
  text-align: center;
}

.table-actions .btn {
  margin-right: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  min-width: 55px;
}

.table-actions .btn:last-child {
  margin-right: 0;
}

/* テーブル内のアクションボタン */

.table .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  min-width: 55px;
}

/* テーブルレスポンシブコンテナ */

.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.table-responsive .table {
  width: 100%;
  max-width: 100%;
}

/* 横スクロールを有効化（全画面幅で適用） */
.table-responsive .dataTables_wrapper {
  overflow: visible;
}

.table-responsive .dataTables_wrapper > .row:nth-child(2) {
  overflow-x: auto;
}

/* ----------------------------------------------------------------------------
   DataTables
   ---------------------------------------------------------------------------- */

.dataTables_wrapper {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.dataTables_length label {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
}

.dataTables_length .select2-container {
  min-width: 80px !important;
}

.dataTables_wrapper .row:last-child {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 0 1rem 1rem 1rem !important;
  max-width: calc(100% - 2rem) !important;
  width: calc(100% - 2rem) !important;
  box-sizing: border-box !important;
}

.dataTables_wrapper .dataTables_paginate {
  text-align: right;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  flex-shrink: 1;
  box-sizing: border-box;
  white-space: nowrap;
  margin: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* ページング部分の右寄せ */

.dataTables_wrapper .col-sm-12.col-md-7 {
  display: flex;
  justify-content: end;
  max-width: 100%;
  overflow: hidden;
}

/* DataTables処理中表示 */

.dataTables_processing {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  margin-left: -100px;
  margin-top: -26px;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--gray-300, #dee2e6);
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* DataTablesページング制御 */

.dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-block;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.875rem;
  line-height: 1.25;
  color: var(--gray-700, #495057);
  text-decoration: none;
  background-color: var(--gray-100, #f8f9fa);
  border: 1px solid var(--gray-300, #dee2e6);
  border-radius: 0;
  min-width: 24px;
  min-height: 24px;
  box-sizing: border-box;
  border-left: 0;
  text-align: center;
  vertical-align: middle;
}

/* スクロールバーを非表示に */

.dataTables_wrapper .dataTables_paginate::-webkit-scrollbar {
  height: 0;
  width: 0;
  background: transparent;
}

/* DataTablesテーブル幅と行の高さ調整 */

.dataTables_wrapper .table {
  width: auto !important;
  min-width: 100%;
  margin-bottom: 0;
  table-layout: auto !important;
}

.dataTables_wrapper .table td,
.dataTables_wrapper .table th {
  padding: 0.5rem !important;
  vertical-align: middle;
  line-height: 1.4;
  white-space: nowrap;
}

/* 操作列の最小幅を確保 */
.dataTables_wrapper .table td:last-child,
.dataTables_wrapper .table th:last-child {
  min-width: 120px;
  width: 120px;
  white-space: nowrap;
  text-overflow: clip;
}

.dataTables_wrapper .table thead th {
  padding: 0.75rem 0.5rem !important;
  font-weight: 600;
  background-color: var(--gray-100, #f8f9fa);
  border-bottom: 2px solid var(--gray-300, #dee2e6);
}

/* DataTables内のボタンサイズ調整 */

.dataTables_wrapper .table .btn {
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.25rem;
  min-width: 55px;
}

.dataTables_wrapper .table .btn-outline-primary {
  border-width: 1px;
}

.dataTables_wrapper .table .btn-outline-danger {
  border-width: 1px;
}

/* DataTables右寄せカラムの調整（list_base.html統合） */
.dataTables_wrapper table.dataTable thead th.text-end {
  text-align: right !important;
  padding-right: 2.5rem !important;
}

.dataTables_wrapper table.dataTable tbody td.text-end {
  text-align: right !important;
  padding-right: 2.5rem !important;
}

/* DataTables表示件数エリアの詳細調整（list_base.html統合） */
.dataTables_wrapper .dataTables_length {
  float: none;
  text-align: left;
  border-bottom: none;
  margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_length label {
  font-size: 14px;
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.dataTables_wrapper .dataTables_length select {
  width: auto;
  min-width: 80px;
}

/* DataTablesページネーションの詳細調整（list_base.html統合） */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-block;
  border: 1px solid var(--gray-300);
  background: white;
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none;
  min-width: 36px;
  min-height: 24px;
  box-sizing: border-box;
  border-left: 0;
  text-align: center;
  border-radius: 4px;
  margin: 0 2px;
  vertical-align: middle;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:first-child {
  border-left: 1px solid var(--gray-300, #dee2e6);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--gray-700);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--primarycolor);
  border-color: var(--primarycolor);
  color: white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--primarycolor-dark);
  border-color: var(--primarycolor-dark);
  color: white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  color: var(--gray-400);
  cursor: not-allowed;
  background: var(--gray-100);
}

/* DataTables情報表示の調整（list_base.html統合） */
.dataTables_wrapper .dataTables_info {
  font-size: 14px;
  color: var(--gray-700);
  padding-top: 8px;
  margin: 1rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* DataTables検索ボックスの詳細調整（list_base.html統合） */
.dataTables_wrapper .dataTables_filter {
  float: none;
  text-align: right;
  border-bottom: none !important;
  margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_filter label {
  font-size: 14px;
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.dataTables_wrapper .dataTables_filter input {
  padding: 6px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 14px;
  margin-left: 0;
}

.dataTables_wrapper .dataTables_filter input:focus {
  outline: none;
  border-color: var(--primarycolor);
}

/* DataTablesレイアウト調整（list_base.html統合） */
.dataTables_wrapper .row:first-child {
  display: flex;
  justify-content: space-between;
  margin: 0;
  background-color: white;
}

.dataTables_wrapper > .row:first-child {
  border-bottom: 1px solid var(--gray-300);
}

.dataTables_wrapper > .row:nth-child(2) {
  background-color: white;
  border-bottom: 1px solid var(--gray-300);
  margin: 0;
}

/* ----------------------------------------------------------------------------
   テーブルスタイル（list_base.html統合）
   ---------------------------------------------------------------------------- */

.table {
  margin-bottom: 0;
}

.table thead th {
  background-color: var(--gray-100);
  font-size: 16px;
  font-weight: 600;
  color: #858c90;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-300);
}

.table tbody td {
  font-size: 16px;
  padding: 12px 16px;
  color: #162533;
}

.table tbody tr:hover {
  background-color: var(--gray-100) !important;
}

.table .table-secondary {
  --bs-table-bg: rgba(0, 0, 0, 0.05);
  --bs-table-color: inherit;
}

/* ----------------------------------------------------------------------------
   フィルター関連（list_base.html統合）
   ---------------------------------------------------------------------------- */

.filter-panel {
  margin-bottom: 1rem;
}

.filter-tag {
  background: rgba(1, 144, 162, 0.15);
  color: #0190a2;
  font-weight: bold;
  border: 1px solid #0190a2;
  border-radius: 50px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.filter-tag .btn-tag-close {
  font-size: 10px;
  padding: 0;
  margin: 0;
  opacity: 1;
  filter: invert(38%) sepia(98%) saturate(1000%) hue-rotate(160deg) brightness(90%) contrast(101%);
}

.filter-tag .btn-tag-close:hover {
  opacity: 0.7;
}

#addFilterBtn.btn-base.btn-outline-green {
  width: auto;
  height: 38px;
  padding: 0 16px;
}

/* ----------------------------------------------------------------------------
   一覧画面共通レイアウト
   ---------------------------------------------------------------------------- */

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  min-height: 50px;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.list-header h2 {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
  display: none; /* ページタイトルは既にpage-titleで表示されているため非表示 */
}

.list-header .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.list-header .btn-primary {
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  background-color: var(--primarycolor);
  border: none;
}

.list-panel {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  max-width: 100%;
  overflow: hidden;
}

.list-panel .card-header {
  background-color: var(--gray-100, #f8f9fa);
}

.list-panel .card-body {
  padding: 0;
}

/* ----------------------------------------------------------------------------
   ラジオボタン
   ---------------------------------------------------------------------------- */

/* ラジオボタンの基本スタイル */
input[type='radio'].custom-radio {
  border: 2px solid #ced4da !important;
  background-color: transparent !important;
  position: relative;
}

/* 選択時のスタイル */
input[type='radio'].custom-radio:checked {
  border: 2px solid #0190a2 !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* 選択時の内側の丸 */
input[type='radio'].custom-radio:checked::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0190a2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ラベルのテキスト色 */
.custom-radio-label {
  color: #162533;
}

/* ----------------------------------------------------------------------------
   ページネーション
   ---------------------------------------------------------------------------- */

.pagination .page-link:hover {
  background: rgba(204, 249, 255, 0.3);
  color: #0190a2;
}

.page-link {
  color: #555d65;
}

.page-item.active .page-link {
  background-color: #0190a2;
  color: #fff;
}

.pagination .page-link:focus {
  background-color: #0190a2;
  color: #fff;
  outline: 0 !important;
  box-shadow: none !important;
}

/* ----------------------------------------------------------------------------
   その他
   ---------------------------------------------------------------------------- */

.bg-login-left {
  background-color: #0190a2;
}

/* ----------------------------------------------------------------------------
   アクションアイコン
   ---------------------------------------------------------------------------- */

/* アクションアイコン共通スタイル */

.action-icons-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
}

.btn-action-icon {
  border: 1px solid;
  background-color: #fff;
  padding: 0.375rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.375rem;
}

.btn-action-icon i {
  transition: color 0.2s ease;
}

.btn-action-icon:hover {
  transform: none;
}

.btn-action-icon:active {
  transform: scale(0.95);
}

/* 編集アイコン（青色） */

.btn-action-icon.btn-action-primary {
  border-color: #0d6efd;
}

.btn-action-icon.btn-action-primary i {
  color: #0d6efd;
}

.btn-action-icon.btn-action-primary:hover {
  background-color: #0d6efd;
}

.btn-action-icon.btn-action-primary:hover i {
  color: #fff;
}

/* 有効化アイコン（黄色） */

.btn-action-icon.btn-action-warning {
  border-color: #ffc107;
}

.btn-action-icon.btn-action-warning i {
  color: #ffc107;
}

.btn-action-icon.btn-action-warning:hover {
  background-color: #ffc107;
}

.btn-action-icon.btn-action-warning:hover i {
  color: #fff;
}

/* 複製アイコン（灰色） */

.btn-action-icon.btn-action-secondary {
  border-color: #6c757d;
}

.btn-action-icon.btn-action-secondary i {
  color: #6c757d;
}

.btn-action-icon.btn-action-secondary:hover {
  background-color: #6c757d;
}

.btn-action-icon.btn-action-secondary:hover i {
  color: #fff;
}

/* 削除アイコン（赤色） */

.btn-action-icon.btn-action-danger {
  border-color: #dc3545;
}

.btn-action-icon.btn-action-danger i {
  color: #dc3545;
}

.btn-action-icon.btn-action-danger:hover {
  background-color: #dc3545;
}

.btn-action-icon.btn-action-danger:hover i {
  color: #fff;
}

/* ----------------------------------------------------------------------------
   Flexboxユーティリティ
   ---------------------------------------------------------------------------- */
/* Flexbox比率クラス */
.flex-1 {
  flex: 1;
}

.flex-1-5 {
  flex: 1.5;
}

.flex-2 {
  flex: 2;
}

.flex-2-4 {
  flex: 2.4;
  max-width: 18%;
}

.flex-2-5 {
  flex: 2.5;
}

.flex-3 {
  flex: 3;
}

.flex-3-5 {
  flex: 3.5;
}

/* ----------------------------------------------------------------------------
   チェックボックス統一スタイル
   ---------------------------------------------------------------------------- */
.ui-check {
  color: #162533;
  width: 1em;
  height: 1em;
  margin-top: 0;
}

.form-check .ui-check {
  margin-top: 0.2em;
}

.ui-check:checked {
  background-color: #0190a2 !important;
  border-color: #0190a2 !important;
}

.form-check-input:checked {
  background-color: #0190a2 !important;
  border-color: #0190a2 !important;
}

.form-check-input:focus {
  box-shadow: none !important;
}

.form-check-input:not(:checked) {
  border-color: var(--bs-border-color);
}

/* ----------------------------------------------------------------------------
   Bootstrap 5 .invalid-tooltip のカスタマイズ
   デフォルトでは常に表示されるが、ホバー/フォーカス時のみ表示に変更
   ---------------------------------------------------------------------------- */

/* デフォルトでは非表示 */
.invalid-tooltip {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.15s ease-in-out,
    visibility 0.15s ease-in-out;
}

/* フィールドにホバーまたはフォーカス時に表示 */
.form-control:hover + .invalid-tooltip,
.form-control:focus + .invalid-tooltip,
.form-select:hover + .invalid-tooltip,
.form-select:focus + .invalid-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Select2の場合は、.select2-containerにホバー時に表示 */
.select2-container:hover ~ .invalid-tooltip,
.select2-container:focus-within ~ .invalid-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Select2のselection要素にホバー時も表示 */
.select2-selection:hover ~ .invalid-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ----------------------------------------------------------------------------
   メールタグ（Gmail風スタイル）
   ---------------------------------------------------------------------------- */

.badge.bg-email-tag {
  background-color: #fef3cd !important;
  color: #664d03 !important;
  border: 1px solid #f2994a;
}

/* ----------------------------------------------------------------------------
   共通テキストカラー（プロジェクト全体で使用可能）
   ---------------------------------------------------------------------------- */

/* ラベル用テキスト（グレー系） - フォームラベル、項目名など */
.c-text-label {
  color: #555d65;
}

/* 本文・値用テキスト（ダーク） - データ表示、本文など */
.c-text-body {
  color: #162533;
}

/* 本文・値用テキスト（太字） - 強調表示が必要な値 */
.c-text-body-bold {
  color: #162533;
  font-weight: bold;
}

/* 補助テキスト（ライトグレー） - 補足説明、サブテキストなど */
.c-text-sub {
  color: #858c90;
}

/* 合計・サマリー用（大きめ太字） - 金額合計、重量合計など */
.c-text-total {
  color: #162533;
  font-size: 20px;
  font-weight: bold;
}

/* リンク用テキスト（プライマリカラー） - DataTables内リンクなど */
.c-link-primary {
  color: #0190a2;
  font-weight: bold;
  text-decoration: underline;
}

.c-link-primary:hover {
  color: #017a89;
}

/* テキスト中央揃え */
.c-text-center {
  text-align: center;
}

/* ----------------------------------------------------------------------------
   共通テーブルスタイル
   ---------------------------------------------------------------------------- */

/* テーブルヘッダーセル - 色とnowrap */
.c-th {
  color: #858c90;
  white-space: nowrap;
}

/* テーブルデータセル - 本文色 */
.c-td {
  color: #162533;
}

/* テーブルヘッダー（ボーダー付き） */
.c-th-bordered {
  border-color: #858c90;
  color: #858c90;
}

/* ----------------------------------------------------------------------------
   共通背景・ボーダー
   ---------------------------------------------------------------------------- */

/* 情報エリア背景（薄いグレー） */
.c-bg-info {
  background: #f5f7f9;
}

/* 破線ボーダー下線 */
.c-border-dashed {
  border-bottom: 1px dashed #858c90;
}

/* ----------------------------------------------------------------------------
   共通改行制御
   ---------------------------------------------------------------------------- */

/* 改行・空白を保持（備考、メール本文など） */
.c-text-prewrap {
  white-space: pre-wrap;
}

/* ----------------------------------------------------------------------------
   レスポンシブ対応
   ---------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.875rem;
  }

  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .alert-fixed {
    right: 10px;
    left: 10px;
    min-width: auto;
  }

  .list-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    min-height: auto;
  }

  .list-header h2 {
    text-align: center;
  }

  .list-header .btn {
    width: 100%;
    max-width: 200px;
    align-self: center;
  }

  .btn-group-actions {
    flex-direction: column;
  }

  .btn-group-actions .btn {
    width: 100%;
  }

  /* 小さい画面でのページング調整 */
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0 !important;
    font-size: 0.75rem;
    min-width: 20px;
    min-height: 20px;
    text-align: center;
  }

  .dataTables_wrapper .dataTables_paginate {
    text-align: center;
  }

  .flex-1,
  .flex-1-5,
  .flex-2,
  .flex-2-4,
  .flex-2-5,
  .flex-3,
  .flex-3-5 {
    flex: 0 0 100%;
  }
}

/* ----------------------------------------------------------------------------
   製品エントリ - 受注登録フォーム
   ---------------------------------------------------------------------------- */

.product-entry-header {
  color: #555d65;
}

/* 日付フィールド固定幅 */
.date-field-width {
  max-width: 200px;
}

/* ----------------------------------------------------------------------------
   アイコン
   ---------------------------------------------------------------------------- */

/* SVGアイコンサイズ14px */
.c-icon-14 {
  width: 14px;
  height: 14px;
}

/* サマリー税込合計（強調表示） */
.c-text-total-highlight {
  border-bottom: 1px solid rgba(1, 144, 162, 0.15);
  color: #0190a2;
  font-weight: bold;
  font-size: 20px;
}

/* ----------------------------------------------------------------------------
   タブナビゲーション（入出金・消込・相殺等）
   サイドバー .nav スタイルとの競合を解消
   ---------------------------------------------------------------------------- */

.nav.nav-tabs.c-nav-tabs {
  flex-direction: row;
  width: 100%;
  justify-content: start;
  gap: 4px;
  height: auto;
  overflow-y: visible;
  background-color: transparent;
  position: static;
  border: none;
  border-bottom: 1px solid var(--bs-nav-tabs-border-color, #dee2e6);
  transition: none;
}

.nav-tabs .nav-link {
  color: #555d65;
  background: #f5f7f9;
}

.nav-tabs .nav-link.active {
  color: #0190a2;
  background: rgba(0, 172, 193, 0.2);
  border: 1px solid #0190a2;
}

.nav-tabs .nav-link:hover {
  background: #f5f7f9;
  border-color: var(--secondarylight-color);
}

td.is-deadline-soon {
  background-color: #fff5f5;
}

/* ----------------------------------------------------------------------------
   ボタン - ブルー系（btn-baseなし）
   ---------------------------------------------------------------------------- */

.btn-outline-blue {
  background: #ffffff;
  color: #2b6eb9;
  border-color: #2b6eb9;
}

.btn-outline-blue:hover {
  background-color: #DDEAF9;
  color: #0150A8;
  border: 1px solid #0150A8;
}

/* ----------------------------------------------------------------------------
   ボタン - グレー3系
   ---------------------------------------------------------------------------- */

.btn-outline-gray3 {
  background: rgb(255,255,255);
  color: #555D65;
  border-color: #555D65;
}

.btn-outline-gray3:hover {
  border-color: #555D65;
  color: #555D65;
  background-color: #D7DEE4;
}
