/* .body-content {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

.dl-horizontal dt {
    white-space: normal;
}

.flashToast {
    position: fixed;
    bottom: 0;
    left: 0;
}


.card {
    width: 50vw;
    margin:auto;
    background:#f0f0f0; 
    border:1px solid black;
}

.card-header {
    background: darkseagreen; // comment
    color: rgba(255,255,255,0.85);
    background: #0078d4;
    font-weight: 300;
}

.card-text {
    align-content: center
}

#wrapper {
    display: flex;
  }
  
#left {
flex: content;
margin-right: 0.5em;

}

#right {
flex: 1;
}

#footer {
    width: 50vw;
    margin: auto;
    text-align: left;
    margin-top: 1em;
}

#check-icon {
    height: 1.25em;
    width: 1.25em;
    margin: auto;
    fill: green
} */

.errors {
    padding-top: 0.25rem;
    color: rgba(var(--bs-danger-rgb)) !important;
    font-size: 0.75rem;
}

/* ============================================
   保険管理ページ用スタイル
   ============================================ */

/* カード・セクションのスタイル改善 */
.insurance-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    margin-bottom: 1.5rem;
}

.insurance-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.insurance-card .card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* ステータスバッジ */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.75em;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-expired {
    background-color: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* テーブルスタイル改善 */
.insurance-table {
    border-collapse: separate;
    border-spacing: 0;
}

.insurance-table thead th {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.insurance-table tbody tr {
    transition: background-color 0.15s ease;
}

.insurance-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.insurance-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

/* 金額表示 */
.amount-display {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-weight: 500;
    text-align: right;
}

.amount-large {
    font-size: 1.1rem;
    color: #2c3e50;
}

/* 契約情報サマリーカード */
.summary-stat {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
}

.summary-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.summary-stat .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* フォーム入力改善 */
.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.form-control[readonly] {
    background-color: #f8f9fa;
    cursor: default;
}

/* セクションヘッダー */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header h5 {
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
}

/* アクションボタングループ */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    white-space: nowrap;
}

/* 期限アラート */
.expiry-warning {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.expiry-soon {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.expiry-expired {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

/* 船舶カード（一覧用） */
.ship-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ship-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ship-card .ship-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.ship-card .ship-no {
    font-size: 0.85rem;
    color: #6c757d;
}

/* 検索・フィルターバー */
.filter-bar {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.filter-bar .form-control,
.filter-bar .form-select {
    border-radius: 6px;
}

/* ツールチップ改善 */
[data-bs-toggle="tooltip"] {
    cursor: pointer;
}

/* タブスタイル */
.insurance-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    color: #6c757d;
    border: 1px solid transparent;
    margin-right: 0.25rem;
}

.insurance-tabs .nav-link:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef #e9ecef transparent;
}

.insurance-tabs .nav-link.active {
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    color: #0d6efd;
}

/* 折りたたみセクション */
.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.collapsible-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.collapsible-header .collapse-icon {
    transition: transform 0.3s ease;
}

.collapsible-header[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

/* プログレスバー（更新期限用） */
.expiry-progress {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.expiry-progress .progress-bar {
    transition: width 0.6s ease;
}

/* ============================================
   印刷用スタイル
   ============================================ */
@media print {
    /* 基本設定 */
    body {
        font-size: 10pt !important;
        line-height: 1.4 !important;
        color: #000 !important;
        background: #fff !important;
    }

    /* 不要な要素を非表示 */
    .navbar,
    .sidebar,
    .no-print,
    .btn,
    .action-buttons,
    .filter-bar,
    footer,
    .breadcrumb,
    .alert:not(.print-alert),
    form:not(.print-form) {
        display: none !important;
    }

    /* コンテナ調整 */
    .container,
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* カード・ボックスのシャドウ削除 */
    .card,
    .insurance-card {
        box-shadow: none !important;
        border: 1px solid #333 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .card-header {
        background: #f5f5f5 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* テーブル印刷最適化 */
    .table,
    .insurance-table {
        border-collapse: collapse !important;
        width: 100% !important;
    }

    .table th,
    .table td,
    .insurance-table th,
    .insurance-table td {
        border: 1px solid #333 !important;
        padding: 6px 8px !important;
        font-size: 9pt !important;
    }

    .table thead th,
    .insurance-table thead th {
        background: #e0e0e0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* ステータスバッジ印刷用 */
    .status-badge {
        border: 1px solid #333 !important;
        background: transparent !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .status-active {
        background: #d4edda !important;
    }

    .status-expired {
        background: #f8d7da !important;
    }

    .status-pending {
        background: #fff3cd !important;
    }

    /* 金額表示 */
    .amount-display {
        font-weight: bold !important;
    }

    /* ページ区切り */
    .page-break {
        page-break-before: always;
    }

    .no-page-break {
        page-break-inside: avoid;
    }

    /* ヘッダー・フッター用 */
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #333;
    }

    .print-footer {
        display: block !important;
        text-align: right;
        margin-top: 1rem;
        padding-top: 0.5rem;
        border-top: 1px solid #999;
        font-size: 8pt;
        color: #666;
    }

    /* リンクのURL表示（オプション） */
    a[href]:after {
        content: none !important;
    }

    /* 背景色の強制印刷 */
    .bg-primary,
    .bg-info,
    .bg-success {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* 契約詳細の印刷レイアウト */
    .print-contract-summary {
        display: block !important;
        margin-bottom: 1rem;
    }

    .print-contract-summary .row {
        display: flex;
        flex-wrap: wrap;
    }

    .print-contract-summary .col-md-4,
    .print-contract-summary .col-md-6 {
        width: 50%;
        padding: 0.25rem;
    }

    /* グリッドを印刷用に調整 */
    .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    [class*="col-"] {
        float: none !important;
    }

    /* 印刷時の余白 */
    @page {
        margin: 15mm 10mm;
        size: A4;
    }

    /* 印刷専用表示要素 */
    .print-only {
        display: block !important;
    }
}

/* 印刷専用要素（通常時は非表示） */
.print-only {
    display: none;
}

/* ============================================
   レスポンシブ対応
   ============================================ */
@media (max-width: 768px) {
    .insurance-table {
        font-size: 0.875rem;
    }

    .insurance-table thead th,
    .insurance-table tbody td {
        padding: 0.5rem;
    }

    .summary-stat .stat-value {
        font-size: 1.25rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    /* フッター: fixed解除・relative配置・フォント縮小 */
    #footer.fixed-bottom {
        position: relative !important;
    }

    #footer p {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    /* ハンバーガーメニュー視認性改善 */
    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.6) !important;
        min-width: 44px;
        min-height: 44px;
        padding: 0.4rem 0.5rem;
    }

    .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

/* ============================================
   モバイル向けUI改善
   ============================================ */

/* ハンバーガーアイコンの視認性・タップ領域改善 */
@media (max-width: 992px) {
    .navbar-mol .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5);
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
    }
    .navbar-mol .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 1.5em;
        height: 1.5em;
    }
}

@media (max-width: 768px) {
    /* フッターのモバイル表示改善 */
    footer.footer {
        position: relative !important;
        font-size: 0.75rem;
    }
    footer.footer p {
        margin-bottom: 0.25rem;
    }

    /* 社船一覧テーブルのカード型レイアウト */
    .ships-table thead {
        display: none;
    }

    .ships-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        transform: none;
    }

    .ships-table tbody tr:hover {
        transform: none;
    }

    .ships-table tbody td {
        display: block;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
    }

    .ships-table tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #495057;
    }

    .ships-table tbody td:last-child {
        border-bottom: none;
    }

    .ships-table .manager-badge {
        display: inline-block;
        margin: 0.1rem 0;
    }
}

/* ============================================
   アニメーション・トランジション
   ============================================ */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ローディングスピナー */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   共通ナビバー・フッタースタイル
   (各 base テンプレートから集約)
   ============================================ */

/* MOLブルー — モダンナビバー */
.navbar-mol {
    background: linear-gradient(135deg, #001229 0%, #002855 40%, #003d7a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    font-family: var(--ntb-font-sans, 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif);
    padding: 0.25rem 0;
    transition: box-shadow 0.3s ease;
    position: relative;
}

/* 経緯線（海図のグリッド） */
.navbar-mol::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background:
        repeating-linear-gradient(90deg, rgba(140, 200, 255, 0.09) 0 1px, transparent 1px 42px),
        repeating-linear-gradient(0deg, rgba(140, 200, 255, 0.09) 0 1px, transparent 1px 20px);
}

/* 経緯線より前面に中身を出す */
.navbar-mol > .navbar-shell {
    position: relative;
    z-index: 1;
}

.navbar-shell {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    min-width: 0;
    padding-left: clamp(1rem, 2.4vw, 2.5rem);
    padding-right: clamp(1rem, 2.4vw, 2.5rem);
}

/* ナビが横スクロールを発生させないための封じ込め。
   左メニューだけを縮ませ、あふれる分はナビ内部で処理する */
.navbar-mol .navbar-collapse {
    min-width: 0;
}

.navbar-mol .navbar-nav.me-auto {
    min-width: 0;
    flex-wrap: wrap;
}

/* 右側（Admin/AI/ユーザー等）は縮めない */
.navbar-mol .navbar-nav.ms-auto {
    flex-shrink: 0;
}

.navbar-mol .navbar-brand,
.navbar-mol .nav-link {
    color: #ffffff !important;
    font-family: var(--ntb-font-sans, 'Inter', 'Noto Sans JP', sans-serif);
    letter-spacing: 0.02em;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.navbar-mol .nav-link {
    position: relative;
    /* アイコンとテキストを上下中央で揃える */
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.6rem !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 6px;
}

/* 方位マーカー（海図）の点は抑制。選択/ホバーは背景色で控えめに示す */
.navbar-mol .navbar-nav > .nav-item > .nav-link::after {
    content: none;
}

.navbar-mol .nav-link:hover,
.navbar-mol .nav-link:focus-visible {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.navbar-mol .nav-link:focus-visible {
    outline: 2px solid rgba(0, 229, 199, 0.7);
    outline-offset: 1px;
}

/* ドロップダウンメニュー */
.navbar-mol .dropdown-menu {
    background: rgba(0, 18, 41, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0;
    margin-top: 0.35rem;
    animation: navDropdownFade 0.2s ease;
}

@keyframes navDropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.navbar-mol .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--ntb-font-sans, 'Inter', 'Noto Sans JP', sans-serif);
    font-size: 13px;
    font-weight: 400;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    margin: 0 0.35rem;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.navbar-mol .dropdown-item:hover,
.navbar-mol .dropdown-item:focus-visible {
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.15), rgba(0, 61, 122, 0.3));
    color: #ffffff;
    /* padding を動かすと文字がガタつくため transform で送る */
    transform: translateX(0.25rem);
}

.navbar-mol .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.35rem 0.75rem;
}

.scrollable-dropdown-menu {
    max-height: min(62vh, 420px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.ship-dropdown-menu {
    min-width: 320px;
    max-width: min(92vw, 390px);
}

.ship-dropdown-menu .dropdown-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ship-dropdown-menu .dropdown-header {
    letter-spacing: 0.02em;
}

.ship-group-toggle {
    font-weight: 600;
}

.ship-group-toggle .bi {
    transition: transform 0.2s ease;
}

.ship-dept-header {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.55) !important;
}

.ship-item-nested {
    position: relative;
    padding-left: 1.9rem !important;
}

.ship-item-nested::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 50%;
    width: 0.35rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
}

.ship-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.ship-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

.ship-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* フッターにMOLブルーのグラデーション（逆向き） */
.footer-mol {
    background: linear-gradient(135deg, #003d7a 0%, #002855 50%, #001229 100%);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.03em;
}

/* ロゴ画像のスタイル */
.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.navbar-brand-logo {
    height: 28px;
    width: auto;
    vertical-align: middle;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.navbar-brand:hover .navbar-brand-logo {
    filter: drop-shadow(0 2px 6px rgba(77, 166, 255, 0.4));
    transform: scale(1.03);
}

/* ナビバートグラーアイコン白色（ダークバックグラウンド用） */
.navbar-mol .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-mol .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* パンくずリスト */
.breadcrumb-nav {
    font-size: 0.85rem;
}

.breadcrumb-nav .breadcrumb-item a {
    color: #2563EB;
    text-decoration: none;
}

.breadcrumb-nav .breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: #6c757d;
}

/* ============================================
   燃料ダッシュボード — ゲージスタイル
   ============================================ */

/* 合計パーセント数字（大） */
.fuel-total-pct {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}
.fuel-total-pct-symbol {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6c757d;
}

/* ゲージトラック（85%ライン用のposition親） */
.fuel-gauge-track {
    position: relative;
    margin-bottom: 0.25rem;
}
.fuel-gauge-track-sm {
    position: relative;
}

/* 85% 給油上限ライン — メインゲージ */
.fuel-limit-line {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 3px;
    background: #dc3545;
    z-index: 2;
    border-radius: 1px;
    transform: translateX(-50%);
}
.fuel-limit-label {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 700;
    color: #dc3545;
    white-space: nowrap;
}

/* 85% 給油上限ライン — タンク別の小さいバー */
.fuel-limit-line-sm {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: #dc3545;
    opacity: 0.7;
    z-index: 2;
    transform: translateX(-50%);
}

/* パーセント数字の色 */
.fuel-pct-danger  { color: #dc3545 !important; }
.fuel-pct-warning { color: #e6a800 !important; }
.fuel-pct-success { color: #198754 !important; }

/* カード左ボーダー色分け */
.fuel-card-ok {
    border-left: 4px solid #198754 !important;
}
.fuel-card-warning {
    border-left: 4px solid #ffc107 !important;
}
.fuel-card-critical {
    border-left: 4px solid #dc3545 !important;
    animation: fuelPulse 2s infinite;
}

@keyframes fuelPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.2); }
    50%      { box-shadow: 0 0 8px 2px rgba(220, 53, 69, 0.3); }
}

/* レスポンシブ: モバイルでパーセント数字を少し小さく */
@media (max-width: 768px) {
    .fuel-total-pct {
        font-size: 1.8rem;
    }
    .fuel-total-pct-symbol {
        font-size: 1rem;
    }
}

/* 残量 kL（大） */
.fuel-total-kl {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}
.fuel-total-kl-unit {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   燃料ダッシュボード — テーブルビュー & 表示切替
   ============================================ */

/* テーブル行: critical 行にパルスアニメーション＋左ボーダー */
.fuel-row-critical {
    animation: fuelPulse 2s infinite;
    border-left: 4px solid #dc3545;
}

/* 表示切替ボタンのアクティブ状態 */
#btn-card-view.active,
#btn-table-view.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* プリセット名入力欄の幅制御 */
#preset-name-input {
    max-width: 220px;
}

/* フリートサマリーカード */
.summary-stat {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
}
.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.78rem;
    color: #6c757d;
}

/* ============================================
   統一ナビバー — 追加スタイル
   ============================================ */

/* ◁戻る ボタン（小さめ・目立たせすぎない） */
.navbar-back-btn {
    font-size: 0.78rem !important;
    opacity: 0.6;
    padding: 0.2rem 0.5rem !important;
    font-weight: 400;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: opacity 0.25s ease, color 0.25s ease;
}
.navbar-back-btn:hover {
    opacity: 1;
    color: #b3daff !important;
}

/* ナビの一貫したフォントサイズ（上の .nav-link 指定と揃える） */
.navbar-mol .nav-link {
    font-size: 13px;
}

/* ナビバーアイコンの統一スタイル。flex 配置で上下中央に揃える */
.navbar-mol .nav-link .bi,
.navbar-mol .dropdown-item .bi {
    font-size: 1em;
    vertical-align: middle;
    line-height: 1;
    opacity: 0.85;
    transition: opacity 0.18s ease;
}

/* ホバー時は拡大・移動せず、不透明度だけ控えめに上げる */
.navbar-mol .nav-link:hover .bi,
.navbar-mol .dropdown-item:hover .bi {
    opacity: 1;
}

/* ドロップダウンアイテム内のアイコンカラー */
.navbar-mol .dropdown-item .bi {
    color: rgba(77, 166, 255, 0.7);
}

/* ============================================
   Admin専用: 表示ロール切替スイッチ
   ============================================ */
.role-switcher .btn-group {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}
.role-switcher .btn-role {
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    border: none;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    white-space: nowrap;
}
.role-switcher .btn-role:hover {
    color: #fff;
    background: rgba(77, 166, 255, 0.2);
}
.role-switcher .btn-role.active {
    color: #fff;
    background: rgba(77, 166, 255, 0.45);
    box-shadow: inset 0 0 8px rgba(77, 166, 255, 0.3);
}

.navbar-mol .dropdown-item:hover .bi {
    color: #80bfff;
}

/* Offcanvas内のアイコンスタイル */
#navOffcanvas .bi {
    opacity: 0.7;
    font-size: 1em;
    transition: opacity 0.2s ease;
}

#navOffcanvas a:hover .bi,
#navOffcanvas .accordion-button:not(.collapsed) .bi {
    opacity: 1;
}

/* Offcanvas ダークテーマ調整 */
#navOffcanvas {
    background: linear-gradient(180deg, #001229 0%, #002044 100%);
    max-width: 300px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}
#navOffcanvas .offcanvas-header {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}
#navOffcanvas .offcanvas-title {
    font-weight: 600;
    letter-spacing: 0.05em;
}
#navOffcanvas .accordion-button {
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    box-shadow: none !important;
    letter-spacing: 0.03em;
}
#navOffcanvas .accordion-button::after {
    filter: invert(1);
}
#navOffcanvas .accordion-button:not(.collapsed) {
    background-color: rgba(77, 166, 255, 0.1);
}
#navOffcanvas .accordion-body a {
    font-weight: 400;
    font-size: 0.88rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}
#navOffcanvas .accordion-body a:hover {
    color: #b3daff !important;
    background-color: rgba(77, 166, 255, 0.08);
    padding-left: 1.25rem !important;
    border-radius: 4px;
}