:root {
    --bv-radius: .5rem;
    --bv-soft-blue: #eff6ff;
    --bv-soft-green: #ecfdf5;
    --bv-soft-amber: #fffbeb;
}

.page-heading,
.form-section,
.content-panel,
.chart-panel,
.insight-card,
.stat-tile {
    border-radius: var(--bv-radius) !important;
}

.navbar .dropdown-menu {
    border-color: var(--bv-border);
    border-radius: var(--bv-radius);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
}

.admin-work-nav {
    flex-wrap: wrap;
}

.admin-section-menu {
    min-width: 17rem;
    padding: .55rem;
}

.admin-section-menu .dropdown-header {
    color: #8c959f;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: .45rem .75rem .25rem;
    text-transform: uppercase;
}

.admin-section-menu .dropdown-divider {
    margin: .45rem 0;
}

.admin-create-button {
    align-items: center;
    box-shadow: 0 1px 2px rgba(31, 35, 40, .08);
    display: inline-flex;
    gap: .5rem;
    justify-content: center;
    min-height: 2.45rem;
    padding: .55rem .85rem;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.admin-create-button::before {
    align-items: center;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: .35rem;
    content: "+";
    display: inline-flex;
    font-size: 1rem;
    font-weight: 800;
    height: 1.35rem;
    justify-content: center;
    line-height: 1;
    width: 1.35rem;
}

.admin-create-button--secondary::before {
    background: var(--bv-info-soft);
    border-color: #b6e3ff;
}

.admin-create-button:hover,
.admin-create-button:focus-visible {
    box-shadow: 0 5px 14px rgba(31, 111, 235, .16);
    transform: translateY(-1px);
}

.admin-breadcrumbs {
    color: var(--bv-muted);
    font-size: .82rem;
    margin-bottom: .85rem;
}

.admin-breadcrumbs .breadcrumb {
    margin-bottom: 0;
}

.admin-breadcrumbs .breadcrumb-item a {
    color: #475569;
    text-decoration: none;
}

.admin-breadcrumbs .breadcrumb-item a:hover {
    color: #1d4ed8;
}

.admin-breadcrumbs .breadcrumb-item.active {
    color: #64748b;
}

.auth-panel {
    background: #fff;
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    padding: 1.35rem;
}

.auth-panel .btn-primary {
    width: 100%;
}

.field-help {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    color: #475569;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 700;
    height: 1.1rem;
    justify-content: center;
    line-height: 1;
    margin-left: .35rem;
    padding: 0;
    vertical-align: text-top;
    width: 1.1rem;
}

.field-help:hover,
.field-help:focus {
    background: var(--bv-soft-blue);
    border-color: #93c5fd;
    color: #1d4ed8;
}

.admin-tour-mask {
    background: rgba(15, 23, 42, .36);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .18s ease;
    z-index: 1070;
}

.admin-tour-mask.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.admin-tour-panel {
    background: #fff;
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
    max-width: min(360px, calc(100vw - 2rem));
    opacity: 0;
    padding: 1rem;
    pointer-events: none;
    position: fixed;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 1080;
}

.admin-tour-panel.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.admin-tour-panel h2 {
    font-size: 1rem;
    margin: 0 0 .35rem;
}

.admin-tour-panel p {
    color: #475569;
    font-size: .9rem;
    margin-bottom: .85rem;
}

.admin-tour-preview {
    background: #f6f8fa;
    border: 1px solid var(--bv-border);
    border-radius: .5rem;
    display: grid;
    gap: .35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: .85rem;
    padding: .65rem;
}

.admin-tour-preview span,
.admin-tour-preview em {
    background: #d0d7de;
    border-radius: 999px;
    display: block;
    height: .55rem;
}

.admin-tour-preview span {
    grid-column: 1 / -1;
}

.admin-tour-preview strong {
    background: #ffffff;
    border: 1px solid #8c959f;
    border-radius: .4rem;
    color: #24292f;
    font-size: .75rem;
    padding: .45rem .5rem;
}

.admin-tour-preview strong.active {
    background: var(--bv-primary);
    border-color: var(--bv-primary);
    color: #ffffff;
}

.admin-tour-preview em {
    grid-column: 1 / -1;
    opacity: .65;
}

.admin-tour-target {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .24), 0 0 0 1px #2563eb;
    position: relative;
    z-index: 1075;
}

.admin-top-actions {
    align-items: center;
    display: flex;
    gap: .5rem;
}

.transfer-notifier-button.has-new {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

.transfer-notifier-button .badge {
    min-width: 1.45rem;
}

.transfer-notifier-toast[hidden] {
    display: none !important;
}

.transfer-notifier-toast {
    position: fixed;
    right: 1rem;
    top: 4.25rem;
    width: min(420px, calc(100vw - 2rem));
    z-index: 2000;
}

.transfer-notifier-panel {
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: .5rem;
    box-shadow: 0 20px 52px rgba(15, 23, 42, .18);
    padding: .9rem;
}

.transfer-notifier-head {
    align-items: flex-start;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.transfer-notifier-list {
    display: grid;
    gap: .5rem;
    max-height: min(42vh, 320px);
    overflow-y: auto;
    padding-right: .15rem;
}

.transfer-notifier-item {
    border: 1px solid var(--bv-border);
    border-radius: .5rem;
    color: inherit;
    display: block;
    padding: .65rem .7rem;
    text-decoration: none;
}

.transfer-notifier-item:hover {
    background: #f8fbff;
    border-color: #93c5fd;
}

.transfer-notifier-item strong,
.transfer-notifier-item span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transfer-notifier-item span {
    color: #64748b;
    font-size: .82rem;
    margin-top: .15rem;
}

.ops-check-list {
    display: grid;
    gap: .65rem;
}

.ops-check-row {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: .5rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .75rem .85rem;
}

.ops-check-row.ok {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.ops-check-row span {
    color: #475569;
    font-size: .9rem;
    text-align: right;
}

.transfer-kpi-link {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.transfer-kpi-link:hover .content-panel,
.transfer-kpi-link:hover .insight-card,
.transfer-kpi-link:hover .stat-tile {
    border-color: #93c5fd;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.transfer-action-list {
    display: grid;
    gap: .65rem;
}

.transfer-action-item {
    align-items: center;
    background: #fff;
    border: 1px solid var(--bv-border);
    border-radius: .5rem;
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr auto;
    padding: .85rem;
    text-decoration: none;
}

.transfer-action-item:hover {
    background: #f8fbff;
    border-color: #93c5fd;
}

.transfer-clickable-row {
    cursor: pointer;
}

.transfer-clickable-row:hover > * {
    background: #f8fbff !important;
}

.transfer-route {
    color: #0f172a;
    font-weight: 650;
}

.transfer-subline {
    color: var(--bv-muted);
    font-size: .86rem;
}

.transfer-source-pill {
    background: #f8fafc;
    border: 1px solid var(--bv-border);
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 650;
    padding: .2rem .55rem;
}

.transfer-source-hotel_portal { background: #ecfdf5; border-color: #bbf7d0; color: #047857; }
.transfer-source-b2c_site { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.transfer-source-dispatcher { background: #f8fafc; border-color: #cbd5e1; color: #334155; }
.transfer-source-whatsapp { background: #f0fdf4; border-color: #86efac; color: #15803d; }
.transfer-source-phone { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.transfer-source-api { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }

.transfer-order-late > * {
    background: #fff1f2 !important;
}

.transfer-status-rail {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.transfer-status-step {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--bv-border);
    border-radius: .5rem;
    color: #475569;
    display: flex;
    gap: .55rem;
    font-size: .82rem;
    min-height: 3.65rem;
    padding: .65rem .7rem;
    text-align: left;
    width: 100%;
}

.transfer-status-step strong,
.transfer-status-step small {
    display: block;
    line-height: 1.2;
}

.transfer-status-step small {
    color: inherit;
    font-size: .68rem;
    font-weight: 600;
    margin-top: .18rem;
    opacity: .74;
}

.transfer-status-step__marker {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 800;
    height: 1.65rem;
    justify-content: center;
    width: 1.65rem;
}

.transfer-status-step.active {
    background: #172033;
    border-color: #172033;
    color: #fff;
    font-weight: 700;
}

.transfer-status-step.active .transfer-status-step__marker {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--bv-primary-hover);
}

.transfer-status-step.done {
    background: #f6f8fa;
    border-color: #d0d7de;
    color: #57606a;
}

.transfer-status-step.done .transfer-status-step__marker {
    background: var(--bv-success-soft);
    border-color: #aceebb;
    color: var(--bv-success);
}

.transfer-status-form {
    display: flex;
    margin: 0;
}

.transfer-status-step.is-next {
    background: var(--bv-primary);
    border-color: var(--bv-primary);
    color: #ffffff;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.transfer-status-step.is-next:hover,
.transfer-status-step.is-next:focus-visible {
    background: var(--bv-primary-hover);
    border-color: var(--bv-primary-hover);
    box-shadow: 0 8px 20px rgba(43, 58, 103, .2);
    transform: translateY(-1px);
}

.transfer-status-step.is-next .transfer-status-step__marker {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .45);
}

.transfer-status-step.is-waiting {
    background: var(--bv-warning-soft);
    border-color: #f0cf73;
    color: var(--bv-warning);
}

.transfer-workflow {
    border-top: 1px solid var(--bv-border);
    padding-top: 1rem;
}

.transfer-workflow__head,
.transfer-workflow__actions,
.transfer-workflow__exceptions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
}

.transfer-workflow__head {
    gap: .5rem 1rem;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.transfer-workflow__head strong,
.transfer-workflow__head span {
    display: block;
}

.transfer-workflow__head > div > span,
.transfer-workflow__hint,
.transfer-workflow__exceptions > span {
    color: var(--bv-muted);
    font-size: .75rem;
}

.transfer-workflow__actions {
    border-top: 1px dashed var(--bv-border);
    gap: .75rem 1rem;
    justify-content: space-between;
    margin-top: .85rem;
    padding-top: .75rem;
}

.transfer-workflow__exceptions {
    gap: .45rem;
}

.transfer-workflow__exceptions form {
    margin: 0;
}

.transfer-status-manual {
    position: relative;
}

.transfer-status-manual summary {
    color: #57606a;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    list-style: none;
}

.transfer-status-manual summary::-webkit-details-marker {
    display: none;
}

.transfer-status-manual summary::after {
    content: " ▾";
}

.transfer-status-manual[open] summary::after {
    content: " ▴";
}

.transfer-status-manual__menu {
    background: #ffffff;
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius);
    box-shadow: 0 16px 40px rgba(31, 35, 40, .14);
    margin-top: .5rem;
    min-width: min(32rem, calc(100vw - 2rem));
    padding: .75rem;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 30;
}

@media (max-width: 991.98px) {
    .transfer-status-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .transfer-status-rail {
        grid-template-columns: 1fr;
    }

    .transfer-workflow__actions,
    .transfer-workflow__exceptions {
        align-items: stretch;
        flex-direction: column;
    }

    .transfer-workflow__exceptions form,
    .transfer-workflow__exceptions .btn {
        width: 100%;
    }

    .transfer-status-manual__menu {
        left: 0;
        min-width: calc(100vw - 3.5rem);
        right: auto;
    }
}

.transfer-driver-option {
    align-items: center;
    border: 1px solid var(--bv-border);
    border-radius: .5rem;
    display: flex;
    gap: .65rem;
    padding: .6rem .7rem;
}

.transfer-driver-option .form-check-input {
    margin-top: 0;
}

.transfer-demo-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.transfer-message-list {
    display: grid;
    gap: .75rem;
}

.transfer-message {
    background: #f8fafc;
    border: 1px solid var(--bv-border);
    border-radius: .5rem;
    max-width: 860px;
    padding: .85rem 1rem;
}

.transfer-message.is-driver {
    background: #fff7ed;
    border-color: #fed7aa;
}

.transfer-message__meta {
    align-items: baseline;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: .82rem;
    gap: .5rem;
    justify-content: space-between;
    margin-bottom: .35rem;
}

.transfer-message__meta strong {
    color: #172033;
}

.content-panel > .table-responsive,
.form-section > .table-responsive,
.chart-panel > .table-responsive {
    max-height: min(72vh, 760px);
    overflow: auto;
}

.table-responsive thead th {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.ops-guide-list {
    display: grid;
    gap: .85rem;
}

.ops-guide-list p {
    color: var(--bv-muted);
    margin: .2rem 0 0;
}

.survey-driver-picker {
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius);
    display: grid;
    gap: .5rem;
    max-height: 280px;
    overflow: auto;
    padding: .65rem;
}

.transfer-driver-option-list {
    max-height: 360px;
    overflow: auto;
    padding-right: .2rem;
}

.survey-list {
    display: grid;
    gap: 1rem;
}

.survey-card {
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius);
    padding: 1rem;
}

.survey-card__head {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: .85rem;
}

.survey-results {
    display: grid;
    gap: .7rem;
}

.driver-message-inbox {
    display: grid;
    gap: .85rem;
}

.driver-message-card {
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius);
    display: grid;
    gap: .75rem;
    padding: 1rem;
}

.driver-message-card.is-unread {
    background: var(--bv-warning-soft);
    border-color: #f0cf73;
}

.driver-message-card__head,
.driver-message-card__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: space-between;
}

.driver-message-card__body {
    font-size: .98rem;
}

.driver-message-card__order {
    background: #ffffff;
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius);
    display: grid;
    gap: .25rem;
    padding: .75rem;
}

@media (max-width: 1199.98px) {
    .admin-work-nav {
        align-items: stretch;
    }

    .admin-top-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-top-actions .btn,
    .admin-top-actions form,
    .admin-top-actions select {
        width: 100%;
    }

    .transfer-action-item {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .transfer-notifier-toast {
        bottom: 1rem;
        top: auto;
    }
}

/* Compass Ops Kit final pass */
:root {
    --bv-bg: #f8fafc;
    --bv-panel: #ffffff;
    --bv-border: #d8dee4;
    --bv-muted: #57606a;
    --bv-primary: #1f6feb;
    --bv-primary-hover: #0969da;
    --bv-accent: #c5973e;
    --bv-accent-soft: #fff8c5;
    --bv-clay: #a0522d;
    --bv-success: #1a7f37;
    --bv-success-soft: #dafbe1;
    --bv-danger: #cf222e;
    --bv-danger-soft: #ffebe9;
    --bv-warning: #9a6700;
    --bv-warning-soft: #fff8c5;
    --bv-info: #0969da;
    --bv-info-soft: #ddf4ff;
    --bv-radius: .5rem;
    --bv-shadow: 0 1px 2px rgba(31, 35, 40, .04);
}

body {
    background: var(--bv-bg);
    color: #24292f;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

.navbar {
    background: rgba(255, 255, 255, .96) !important;
    border-color: var(--bv-border) !important;
    box-shadow: var(--bv-shadow);
}

.navbar-brand {
    align-items: center;
    color: #172033;
    display: inline-flex;
    gap: .55rem;
    letter-spacing: 0;
}

.navbar-brand::before {
    align-items: center;
    background: var(--bv-primary);
    border-radius: 6px;
    color: #fff;
    content: "C";
    display: inline-flex;
    font-size: .8rem;
    font-weight: 800;
    height: 1.55rem;
    justify-content: center;
    line-height: 1;
    width: 1.55rem;
}

.navbar-brand.admin-brand::before {
    content: none;
    display: none;
}

.navbar-nav .nav-link,
.dropdown-item {
    border-radius: var(--bv-radius);
    color: #57606a;
    font-weight: 600;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.dropdown-item:hover,
.dropdown-item.active {
    background: var(--bv-info-soft);
    color: var(--bv-primary);
}

main.container-fluid {
    max-width: 1440px;
}

.admin-breadcrumbs .breadcrumb-item a:hover {
    color: var(--bv-primary);
}

.page-heading,
.form-section,
.content-panel,
.chart-panel,
.insight-card,
.stat-tile,
.auth-panel {
    background: var(--bv-panel);
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius) !important;
    box-shadow: var(--bv-shadow);
}

.page-heading {
    align-items: center;
    padding: 1rem 1.15rem;
}

.page-heading h1,
.section-title h2 {
    color: #24292f;
    font-weight: 750;
    letter-spacing: 0;
}

.page-heading .text-muted,
.section-title span,
.text-muted,
.transfer-subline {
    color: var(--bv-muted) !important;
}

.section-title {
    border-bottom-color: var(--bv-border);
    gap: .75rem;
}

.section-title a {
    color: var(--bv-primary);
    font-size: .85rem;
    font-weight: 650;
    text-decoration: none;
}

.section-title a:hover {
    color: var(--bv-primary-hover);
    text-decoration: underline;
}

.btn {
    border-radius: var(--bv-radius);
    font-weight: 650;
}

.btn-primary {
    --bs-btn-bg: var(--bv-primary);
    --bs-btn-border-color: var(--bv-primary);
    --bs-btn-hover-bg: var(--bv-primary-hover);
    --bs-btn-hover-border-color: var(--bv-primary-hover);
    --bs-btn-active-bg: var(--bv-primary-hover);
    --bs-btn-active-border-color: var(--bv-primary-hover);
}

.btn-outline-primary {
    --bs-btn-color: var(--bv-primary);
    --bs-btn-border-color: #8c959f;
    --bs-btn-hover-bg: var(--bv-info-soft);
    --bs-btn-hover-border-color: var(--bv-primary);
    --bs-btn-hover-color: var(--bv-primary-hover);
    --bs-btn-active-bg: var(--bv-primary);
    --bs-btn-active-border-color: var(--bv-primary);
}

.btn-outline-secondary {
    --bs-btn-color: #57606a;
    --bs-btn-border-color: var(--bv-border);
    --bs-btn-hover-bg: #f6f8fa;
    --bs-btn-hover-border-color: #8c959f;
    --bs-btn-hover-color: #24292f;
}

.form-label {
    color: #57606a;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
}

.form-control,
.form-select {
    border-color: var(--bv-border);
    border-radius: var(--bv-radius);
    color: #24292f;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bv-primary);
    box-shadow: 0 0 0 .2rem rgba(31, 111, 235, .12);
}

.table {
    --bs-table-color: #24292f;
    --bs-table-border-color: var(--bv-border);
    font-size: .88rem;
}

.table thead th {
    background: #f6f8fa;
    color: #57606a;
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: uppercase;
}

.table > :not(caption) > * > * {
    padding: .68rem .75rem;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: #f6f8fa;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0;
}

.text-bg-primary,
.text-bg-info {
    background: var(--bv-info-soft) !important;
    color: var(--bv-primary) !important;
}

.text-bg-success {
    background: var(--bv-success-soft) !important;
    color: var(--bv-success) !important;
}

.text-bg-warning {
    background: var(--bv-warning-soft) !important;
    color: var(--bv-warning) !important;
}

.text-bg-danger {
    background: var(--bv-danger-soft) !important;
    color: var(--bv-danger) !important;
}

.text-bg-secondary,
.text-bg-light {
    background: #f6f8fa !important;
    color: #57606a !important;
}

.insight-card {
    background: var(--bv-panel);
}

.insight-card strong,
.stat-tile strong,
.transfer-kpi-link .fs-3 {
    color: var(--bv-primary-hover);
    font-variant-numeric: tabular-nums;
}

.distribution-track {
    background: #eaeef2;
    height: .45rem;
}

.distribution-fill {
    background: var(--bv-primary);
}

.distribution-fill.success { background: var(--bv-success); }
.distribution-fill.warning { background: var(--bv-warning); }
.distribution-fill.danger { background: var(--bv-danger); }

.transfer-action-item,
.transfer-driver-option,
.transfer-message,
.ops-check-row,
.transfer-status-step {
    border-color: var(--bv-border);
    border-radius: var(--bv-radius);
}

.transfer-action-item:hover,
.transfer-driver-option:hover,
.transfer-kpi-link:hover .content-panel,
.transfer-kpi-link:hover .insight-card,
.transfer-kpi-link:hover .stat-tile {
    background: #ffffff;
    border-color: #8c959f;
    box-shadow: 0 8px 24px rgba(31, 35, 40, .08);
}

.transfer-source-pill {
    border-radius: 999px;
    font-weight: 750;
}

.transfer-source-hotel_portal { background: var(--bv-success-soft); border-color: #aceebb; color: var(--bv-success); }
.transfer-source-b2c_site { background: var(--bv-info-soft); border-color: #b6e3ff; color: var(--bv-primary); }
.transfer-source-dispatcher { background: #f6f8fa; border-color: var(--bv-border); color: #57606a; }
.transfer-source-whatsapp { background: var(--bv-success-soft); border-color: #aceebb; color: var(--bv-success); }
.transfer-source-phone { background: var(--bv-warning-soft); border-color: #f0cf73; color: var(--bv-warning); }
.transfer-source-api { background: #fbefff; border-color: #eac7ff; color: #8250df; }

.transfer-order-late > * {
    background: var(--bv-danger-soft) !important;
}

.transfer-status-step.active {
    background: var(--bv-primary-hover);
    border-color: var(--bv-primary-hover);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(43, 58, 103, .12);
}

.transfer-status-step.done {
    background: #f6f8fa;
    border-color: var(--bv-border);
    color: #57606a;
}

.settings-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.settings-form-panel {
    border-left: 4px solid var(--bv-primary);
}

.transfer-order-form .form-section {
    margin-bottom: .85rem;
    padding: 1.2rem;
}

.transfer-order-form .section-title {
    align-items: flex-start;
}

.transfer-order-form .section-title span {
    font-size: .78rem;
}

.transfer-order-form .form-control,
.transfer-order-form .form-select {
    min-height: 2.65rem;
}

.transfer-order-cost-summary {
    background: var(--bv-info-soft);
    border: 1px solid #b6e3ff;
    border-radius: var(--bv-radius);
    padding: .85rem;
}

.transfer-order-addons .form-check {
    align-items: center;
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius);
    display: flex;
    gap: .55rem;
    min-height: 2.7rem;
    padding: .55rem .7rem .55rem 2.15rem;
}

.transfer-order-addons .form-check + .form-check {
    margin-top: .5rem;
}

.transfer-order-addons .form-check-input {
    margin-top: 0;
}

.settings-form-panel .nav-tabs {
    border-bottom-color: var(--bv-border);
}

.settings-form-panel .nav-link {
    color: #57606a;
    font-weight: 700;
}

.settings-form-panel .nav-link.active {
    color: var(--bv-primary-hover);
}

.transfer-message {
    background: #f6f8fa;
}

.transfer-message.is-driver {
    background: var(--bv-warning-soft);
    border-color: #f0cf73;
}

.sticky-actions {
    background: rgba(246, 248, 250, .96);
}

.alert {
    border-radius: var(--bv-radius);
}

.alert-warning {
    background: var(--bv-warning-soft);
    border-color: #f0cf73;
    color: #6f4e00;
}

.alert-danger {
    background: var(--bv-danger-soft);
    border-color: #ffb3ad;
    color: var(--bv-danger);
}

.alert-success {
    background: var(--bv-success-soft);
    border-color: #aceebb;
    color: var(--bv-success);
}

@media (max-width: 767.98px) {
    body {
        font-size: 13px;
    }

    .page-heading {
        align-items: flex-start;
    }

    .settings-form-actions,
    .settings-form-actions .btn {
        width: 100%;
    }
}
