.b2b-portal {
    --meta-primary: #2f63b8;
    --meta-secondary: #0c2448;
    --b2b-ink: #0c2448;
    --b2b-muted: #607493;
    --b2b-line: #dce7f2;
    --b2b-teal: #178e98;
    background: #f5f9fd;
    color: var(--b2b-ink);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.b2b-portal main { min-height: calc(100vh - 180px); }
.b2b-portal .meta-footer a { color: #fff; }
.b2b-access-page { display: flex; justify-content: center; padding-top: clamp(32px, 6vw, 66px); padding-bottom: 70px; }
.b2b-access-card { width: min(100%, 650px); padding: clamp(22px, 3vw, 34px); }
.b2b-access-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 13px; background: #e8f2ff; color: #2f63b8; font-size: 1.35rem; }
.b2b-access-card h1 { margin: 8px 0 10px; font-size: clamp(1.55rem, 2.4vw, 1.9rem); line-height: 1.25; }
.b2b-access-card > p { color: var(--b2b-muted); font-size: .93rem; line-height: 1.6; }
.b2b-access-card .b2b-card-eyebrow { font-size: .68rem; }
.b2b-access-card .b2b-notice { margin: 18px 0; font-size: .81rem; }
.b2b-access-card .btn { font-size: .88rem; }
.b2b-access-footnote { margin-top: 22px; font-size: .88rem; }
.b2b-code-input { max-width: 220px; font-size: 1.35rem; letter-spacing: .28em; }
.b2b-request-panel { max-width: 900px; }
.b2b-request-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin: 0; }
.b2b-request-facts dt { color: var(--b2b-muted); font-size: .78rem; font-weight: 700; }
.b2b-request-facts dd { margin: 4px 0 0; font-weight: 700; }
@media (max-width: 600px) { .b2b-request-facts { grid-template-columns: 1fr; } }

.b2b-portal h1,
.b2b-portal h2,
.b2b-portal h3 {
    color: var(--b2b-ink);
    font-family: Manrope, Inter, sans-serif;
    font-weight: 800;
    letter-spacing: -.035em;
}

.b2b-portal .partner-navbar {
    min-height: 76px;
    border-bottom: 1px solid #dfe8f2;
    background: rgba(255, 255, 255, .96);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.b2b-portal .partner-navbar .navbar-brand,
.b2b-portal .partner-navbar .nav-link,
.b2b-portal .partner-navbar .dropdown-toggle {
    color: #304967 !important;
}

.b2b-portal .partner-navbar .navbar-brand { gap: 12px !important; }
.b2b-portal .partner-navbar .navbar-brand img { width: 132px; height: auto; }
.b2b-portal .partner-navbar .navbar-brand span {
    border-left: 1px solid #cfdae8;
    padding-left: 12px;
    color: #102c5a;
    font-family: Inter, sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.b2b-portal #navbarMetaBooking > div { margin-left: auto; }
.b2b-portal .partner-navbar .nav-link.active { border-bottom: 2px solid #2f63b8; }
.b2b-portal .partner-navbar .text-white,
.b2b-portal .partner-navbar .text-white-soft { color: #304967 !important; }
.b2b-portal .partner-navbar .text-white-soft { color: #73859e !important; }
.b2b-portal .tenant-mobile-icon-btn {
    border-color: #dce7f2;
    background: #f5f9fd;
    color: #2f63b8;
}
.b2b-portal .tenant-mobile-icon-btn:hover,
.b2b-portal .tenant-mobile-icon-btn:focus { border-color: #aac7e9; background: #e8f1ff; color: #174e9c; }
.b2b-portal .meta-footer { margin-top: 0; background: #081f3d; }
.b2b-portal .meta-footer img { filter: brightness(0) invert(1); }
.b2b-portal main { min-height: calc(100vh - 180px); }

.b2b-shell { padding-bottom: 72px; }
.b2b-container { max-width: 1160px; }
.b2b-hero {
    padding: 42px 0 38px;
    border-bottom: 1px solid #e2eaf3;
    background: radial-gradient(circle at 82% 36%, rgba(29, 192, 198, .18), transparent 29%),
        linear-gradient(135deg, #f4f9ff 0%, #fff 58%, #e9fbfa 100%);
}
.b2b-hero--detail { padding: 34px 0 38px; }
.b2b-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border: 1px solid #cfe0f5;
    border-radius: 999px;
    background: #fff;
    color: #2f63b8;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.b2b-hero h1 { max-width: 750px; margin: 15px 0 10px; font-size: clamp(2.05rem, 3.3vw, 2.85rem); line-height: 1.12; }
.b2b-hero:not(.b2b-hero--detail) h1 { margin-top: 0; }
.b2b-hero h1 span { color: #2f63b8; }
.b2b-hero p { max-width: 650px; margin: 0; color: var(--b2b-muted); line-height: 1.65; }
.b2b-hero--detail h1 { font-size: clamp(2rem, 3vw, 2.65rem); }
.b2b-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.b2b-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 21px; color: #2f63b8; font-size: .86rem; font-weight: 700; text-decoration: none; }
.b2b-back:hover { color: #174e9c; }
.b2b-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.b2b-hero-actions .btn { border-radius: 11px; padding: 11px 17px; font-weight: 700; }

.b2b-section { padding-top: 32px; }
.b2b-section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.b2b-section-heading h2 { margin: 0; font-size: 1.65rem; }
.b2b-section-heading p { margin: 5px 0 0; color: var(--b2b-muted); font-size: .91rem; }
.b2b-count { color: #59708d; font-size: .83rem; font-weight: 700; }
.b2b-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.b2b-card,
.b2b-panel,
.b2b-metric {
    border: 1px solid var(--b2b-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(25, 70, 130, .06);
}
.b2b-card { display: flex; flex-direction: column; padding: 24px; }
.b2b-card-head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 12px; }
.b2b-card-eyebrow { display: block; color: #2f63b8; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.b2b-card h3 { margin: 8px 0 3px; font-size: 1.22rem; }
.b2b-card-company { margin: 0; color: var(--b2b-muted); font-size: .87rem; }
.b2b-card-facts { display: flex; flex-wrap: wrap; gap: 18px; margin: 24px 0; padding-top: 17px; border-top: 1px solid #e7edf5; }
.b2b-card-facts span { display: inline-flex; align-items: center; gap: 7px; color: #435877; font-size: .86rem; font-weight: 700; }
.b2b-card-facts i { color: var(--b2b-teal); font-size: 1rem; }
.b2b-card-total { margin: auto 0 18px; }
.b2b-card-total small { display: block; color: var(--b2b-muted); font-size: .75rem; }
.b2b-card-total strong { color: #174e9c; font-family: Manrope, sans-serif; font-size: 1.42rem; }
.b2b-card .btn { align-self: flex-start; border-radius: 11px; font-weight: 700; }
.b2b-empty { padding: 40px; text-align: center; }
.b2b-empty i { display: inline-grid; width: 52px; height: 52px; place-items: center; border-radius: 14px; background: #e9f1ff; color: #2f63b8; font-size: 1.5rem; }
.b2b-empty h2 { margin: 18px 0 8px; font-size: 1.25rem; }
.b2b-empty p { margin: 0; color: var(--b2b-muted); }

.b2b-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: #eaf2ff; color: #285eb0; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.b2b-status i { font-size: .93rem; }
.b2b-status--accepted { background: #fff3d9; color: #986617; }
.b2b-status--review { background: #fff0e8; color: #a2502f; }
.b2b-status--active { background: #e4f7ef; color: #16734f; }

.b2b-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: -18px; position: relative; }
.b2b-metric { position: relative; padding: 21px 68px 21px 23px; }
.b2b-metric-icon { position: absolute; top: 20px; right: 20px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #e8f1ff; color: #2f63b8; font-size: 1.1rem; }
.b2b-metric--primary .b2b-metric-icon { background: #dceaff; }
.b2b-metric small { display: block; margin-bottom: 7px; color: var(--b2b-muted); font-size: .75rem; font-weight: 700; }
.b2b-metric strong { color: var(--b2b-ink); font-family: Manrope, sans-serif; font-size: clamp(1.08rem, 2vw, 1.5rem); font-weight: 800; }
.b2b-metric--primary { border-color: #c8def7; background: #f0f6ff; }
.b2b-metric--primary strong { color: #174e9c; }
.b2b-panel { overflow: hidden; }
.b2b-panel + .b2b-panel { margin-top: 18px; }
.b2b-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid #e7edf5; }
.b2b-panel-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.28rem; }
.b2b-panel-head h2 i { color: #2f63b8; font-size: 1.35rem; }
.b2b-panel-body { padding: 23px 24px; }
.b2b-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.b2b-detail-grid--single { grid-template-columns: 1fr; }
.b2b-detail-grid .b2b-panel { margin-top: 0; }
.b2b-table { margin: 0; color: var(--b2b-ink); }
.b2b-table th { padding: 13px 18px; border-bottom-color: #dce7f2; background: #f7faff; color: #59708d; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.b2b-table td { padding: 16px 18px; border-bottom-color: #e7edf5; font-size: .92rem; vertical-align: middle; }
.b2b-table tbody tr:last-child td { border-bottom: 0; }
.b2b-table .b2b-total-row td { background: #f0f6ff; color: #174e9c; font-weight: 800; }
.b2b-table .b2b-vehicle-name { font-weight: 800; }
.b2b-table .b2b-vehicle-name i { margin-right: 5px; color: #2f63b8; font-size: 1.03rem; }
.b2b-portal .form-control { border-color: #d7e3f0; border-radius: 10px; }
.b2b-portal .form-control:focus { border-color: #83a9dd; box-shadow: 0 0 0 .2rem rgba(47, 99, 184, .12); }
.b2b-portal .btn { border-radius: 11px; }
.b2b-form-block + .b2b-form-block { margin-top: 22px; padding-top: 22px; border-top: 1px solid #e7edf5; }
.b2b-form-block h3 { margin: 0 0 6px; font-size: .98rem; }
.b2b-form-block p { margin: 0 0 13px; color: var(--b2b-muted); font-size: .83rem; }
.b2b-form-block textarea { min-height: 100px; }
.b2b-payment-note { margin: 0; color: var(--b2b-muted); font-size: .85rem; line-height: 1.6; }
.b2b-payments { margin: 20px 0 0; padding: 0; list-style: none; }
.b2b-payments li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid #e7edf5; }
.b2b-payments strong { display: block; font-size: .88rem; }
.b2b-payments small { color: var(--b2b-muted); font-size: .75rem; }
.b2b-payments a { font-size: .8rem; font-weight: 700; }
.b2b-rentals { margin: 0; padding: 0; list-style: none; }
.b2b-rentals li { display: flex; align-items: start; gap: 12px; padding: 15px 0; }
.b2b-rentals li + li { border-top: 1px solid #e7edf5; }
.b2b-rentals i { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #e9f1ff; color: #2f63b8; }
.b2b-rentals strong { display: block; }
.b2b-rentals small { display: block; margin-top: 3px; color: var(--b2b-muted); }
.b2b-notice { display: flex; align-items: start; gap: 11px; padding: 14px 17px; border: 1px solid #cce5ed; border-radius: 13px; background: #edfbfd; color: #315d71; font-size: .85rem; line-height: 1.5; }
.b2b-notice i { color: #178e98; font-size: 1.15rem; }
.b2b-notice--warning { border-color: #f3d8c2; background: #fff7ec; color: #82502f; }
.b2b-notice--warning i { color: #ba6d35; }
.b2b-portal .alert { border-radius: 12px; }

@media (max-width: 991px) {
    .b2b-portal .partner-navbar { min-height: 68px; }
    .b2b-card-grid, .b2b-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .b2b-hero { padding: 36px 0 38px; }
    .b2b-hero h1 { font-size: 2.18rem; }
    .b2b-metrics { grid-template-columns: 1fr 1fr; }
    .b2b-metric--primary { grid-column: 1 / -1; }
    .b2b-section { padding-top: 25px; }
    .b2b-panel-head, .b2b-panel-body { padding: 18px; }
    .b2b-card { padding: 20px; }
}
@media (max-width: 480px) {
    .b2b-metrics { grid-template-columns: 1fr; }
    .b2b-metric--primary { grid-column: auto; }
    .b2b-hero-actions .btn { width: 100%; }
}
