
/* ================================================================
        Carental admin v.1.0.0
        by:ganiputras
 ================================================================ */
:root {
    --sidebar-w: 240px;
    --sidebar-collapsed-w: 48px;
    --topnav-h: 48px;
    /* Sidebar */
    --sb-bg: #1b1a19;
    --sb-hover: #323130;
    --sb-active: #434343;
    --sb-text: #c8c6c4;
    --sb-muted: #8a8886;
    --sb-section: rgba(255,255,255,0.08);
    /* Top navbar */
    --nav-bg: #0078d4;
    --nav-text: #ffffff;
    /* Content */
    --page-bg: #ffffff;
    --card-bg: #ffffff;
    --border: #e1dfdd;
    /* Brand */
    --blue: #0078d4;
    --blue-dk: #106ebe;
    --blue-lt: #deecf9;
    --green: #107c10;
    --green-lt: #dff6dd;
    --amber: #8a5700;
    --amber-lt: #fff4ce;
    --red: #d13438;
    --red-lt: #fde7e9;
    --orange: #ca5010;
    --purple: #5c2d91;
    --speed: 0.18s;
}

/* ================================================================
       RESET / BASE
 ================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: var(--page-bg);
    color: #201f1e;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* thin scrollbars everywhere */
* {
    scrollbar-width: thin;
    scrollbar-color: #c8c6c4 transparent;
}

    *::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }

    *::-webkit-scrollbar-thumb {
        background: #c8c6c4;
        border-radius: 3px;
    }


/* ================================================================
       SIDEBAR
 ================================================================ */
#sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--sb-bg);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width var(--speed) ease;
    overflow: hidden;
}
/* ---- Brand / Logo row ---- */
.sb-brand {
    height: var(--topnav-h);
    background: var(--blue);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sb-logo {
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--blue);
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.sb-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    opacity: 1;
    transition: opacity var(--speed);
    white-space: nowrap;
}
/* ---- Nav scrollable area ---- */
.sb-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
}
/* ---- Section label ---- */
.sb-section {
    padding: 12px 12px 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--sb-muted);
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--speed), max-height var(--speed);
}
/* ---- Nav links ---- */
.sb-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--sb-text);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    transition: background var(--speed), color var(--speed);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    position: relative;
}

    .sb-link:hover {
        background: var(--sb-hover);
        color: #fff;
    }

    .sb-link.active {
        background: var(--sb-active);
        color: #fff;
    }

.sb-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sb-text {
    flex: 1;
    transition: opacity var(--speed);
    font-size: 14px;
}

.sb-chevron {
    font-size: 11px;
    transition: transform var(--speed), opacity var(--speed);
    flex-shrink: 0;
    color: var(--sb-muted);
}

.sb-link[aria-expanded="true"] .sb-chevron {
    transform: rotate(90deg);
}
/* ---- Submenu ---- */
.sb-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,0.18);
}

    .sb-submenu .sb-link {
        padding-left: 44px;
        font-size: 13px;
    }

        .sb-submenu .sb-link::before {
            content: '';
            position: absolute;
            left: 30px;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--sb-muted);
        }

        .sb-submenu .sb-link.active::before {
            background: #fff;
        }
/* ---- Sidebar footer ---- */
.sb-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 4px 0;
}

    .sb-footer .sb-link {
        color: var(--sb-muted);
        font-size: 13px;
    }

        .sb-footer .sb-link:hover {
            color: #fff;
        }
/* ================================================================
       COLLAPSED STATE  (body.sb-collapsed)
 ================================================================ */
body.sb-collapsed #sidebar {
    width: var(--sidebar-collapsed-w);
}

body.sb-collapsed .sb-name,
body.sb-collapsed .sb-text,
body.sb-collapsed .sb-chevron,
body.sb-collapsed .sb-section {
    opacity: 0;
    pointer-events: none;
}

body.sb-collapsed .sb-submenu {
    display: none !important;
}

body.sb-collapsed #main {
    margin-left: var(--sidebar-collapsed-w);
}

body.sb-collapsed #topnav {
    left: var(--sidebar-collapsed-w);
}
/* ================================================================
       FLYOUT SUBMENU  (collapsed state hover)
 ================================================================ */
#sb-flyout {
    position: fixed;
    left: var(--sidebar-collapsed-w);
    top: 0;
    min-width: 180px;
    background: var(--sb-bg);
    border-radius: 0 6px 6px 0;
    box-shadow: 6px 4px 16px rgba(0,0,0,0.45);
    z-index: 1045;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

    #sb-flyout.sb-flyout-show {
        opacity: 1;
        transform: translateX(0);
        pointer-events: all;
    }

.sb-flyout-header {
    padding: 9px 14px 7px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .sb-flyout-header .sb-flyout-icon {
        font-size: 14px;
        color: var(--sb-text);
        opacity: 0.8;
    }

#sb-flyout ul {
    list-style: none;
    margin: 4px 0;
    padding: 0;
}

#sb-flyout .sb-flyout-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 20px;
    font-size: 13px;
    color: var(--sb-text);
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--speed), color var(--speed);
    position: relative;
    text-decoration: none;
}

    #sb-flyout .sb-flyout-item::before {
        content: '';
        position: absolute;
        left: 9px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--sb-muted);
    }

    #sb-flyout .sb-flyout-item:hover {
        background: var(--sb-hover);
        color: #fff;
    }

    #sb-flyout .sb-flyout-item.active {
        color: #fff;
        background: var(--sb-active);
    }

        #sb-flyout .sb-flyout-item.active::before {
            background: #fff;
        }
/* ================================================================
       TOP NAVBAR
 ================================================================ */
#topnav {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--topnav-h);
    background: var(--nav-bg);
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 6px;
    transition: left var(--speed) ease;
}
/* hamburger / toggle */
.nav-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 5px 7px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: background var(--speed);
}

    .nav-toggle:hover {
        background: rgba(255,255,255,0.12);
    }
/* page tabs (like Azure DevOps breadcrumb-tabs) */
.nav-tabs-bar {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0;
    margin-left: 4px;
}

.nav-tab {
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,0.82);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--speed);
    white-space: nowrap;
}

    .nav-tab:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

    .nav-tab.active {
        color: #fff;
        border-bottom-color: #fff;
    }
/* search */
.nav-search {
    position: relative;
    width: 210px;
    /* margin-left handled by flex spacer, not auto */
}

    .nav-search input {
        width: 100%;
        background: rgba(255,255,255,0.14);
        border: 1px solid rgba(255,255,255,0.22);
        border-radius: 3px;
        color: #fff;
        padding: 5px 8px 5px 28px;
        font-size: 13px;
        outline: none;
        transition: background var(--speed);
    }

        .nav-search input::placeholder {
            color: rgba(255,255,255,0.6);
        }

        .nav-search input:focus {
            background: rgba(255,255,255,0.24);
        }

    .nav-search .si {
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(255,255,255,0.6);
        font-size: 13px;
    }
/* icon buttons in topnav */
.nav-icon-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    transition: background var(--speed);
    flex-shrink: 0;
}

    .nav-icon-btn:hover {
        background: rgba(255,255,255,0.12);
    }
/* red badge on bell */
.nav-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
/* user avatar circle */
.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
}
/* ================================================================
       DROPDOWN PANEL  (shared for notif + user)
 ================================================================ */
.drop-wrap {
    position: relative;
}

.drop-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    min-width: 290px;
    z-index: 3000;
    display: none;
}

    .drop-panel.show {
        display: block;
    }
/* panel header row */
.dp-head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #201f1e;
}

    .dp-head a {
        font-size: 12px;
        color: var(--blue);
        font-weight: 400;
        cursor: pointer;
    }
/* notification item */
.notif-row {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #f3f2f1;
    cursor: pointer;
    transition: background var(--speed);
}

    .notif-row:last-of-type {
        border-bottom: none;
    }

    .notif-row:hover {
        background: #f3f2f1;
    }

.notif-ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.notif-body .nb-title {
    font-size: 13px;
    font-weight: 600;
    color: #201f1e;
    line-height: 1.4;
}

.notif-body .nb-desc {
    font-size: 12px;
    color: #605e5c;
    margin-top: 2px;
}

.notif-body .nb-time {
    font-size: 11px;
    color: #8a8886;
    margin-top: 3px;
}
/* panel footer link */
.dp-footer {
    padding: 10px 16px;
    text-align: center;
    border-top: 1px solid var(--border);
}

    .dp-footer a {
        font-size: 13px;
        color: var(--blue);
    }
/* setting dropdown section */
.setting-section {
    padding-top: 8px;
}

.setting-section-label {
    padding: 4px 16px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #8a8886;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* user dropdown */
.user-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-av-lg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #201f1e;
}

.user-email {
    font-size: 12px;
    color: #605e5c;
}

.user-info-grid {
    display: grid;
    grid-template-columns: 1fr; /* ubah jadi 1 kolom */
    row-gap: 6px; /* kasih jarak antar item */
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

    .user-info-grid .text-muted {
        color: #8a8886;
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

    .user-info-grid .text-primary {
        color: var(--blue);
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 14px;
    color: #323130;
    cursor: pointer;
    transition: background var(--speed);
}

    .user-item:hover {
        background: #f3f2f1;
    }

    .user-item.danger {
        color: var(--red);
    }

        .user-item.danger:hover {
            background: var(--red-lt);
        }

    .user-item i {
        font-size: 14px;
        color: #605e5c;
    }

    .user-item.danger i {
        color: var(--red);
    }
/* ================================================================
       MAIN WRAPPER
 ================================================================ */
#main {
    margin-left: var(--sidebar-w);
    padding-top: var(--topnav-h);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--speed) ease;
}
/* ================================================================
       PAGE CONTENT
 ================================================================ */
.pg-content {
    padding: 20px 24px 40px;
    flex: 1;
}

.pg-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.pg-title {
    font-size: 19px;
    font-weight: 600;
    color: #201f1e;
    margin: 0;
}

.pg-sub {
    font-size: 13px;
    color: #605e5c;
    margin: 3px 0 0;
}
/* filter pill tabs */
.pill-tabs {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.pill-tab {
    padding: 6px 13px;
    font-size: 13px;
    background: none;
    border: none;
    cursor: pointer;
    color: #605e5c;
    border-right: 1px solid var(--border);
    transition: background var(--speed);
}

    .pill-tab:last-child {
        border-right: none;
    }

    .pill-tab:hover {
        background: #f3f2f1;
    }

    .pill-tab.active {
        background: var(--blue);
        color: #fff;
    }
/* ================================================================
       STAT CARDS
 ================================================================ */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow var(--speed);
}

    .stat-card:hover {
        box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    }

.stat-ico {
    width: 46px;
    height: 46px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
}

.sv {
    font-size: 27px;
    font-weight: 700;
    color: #201f1e;
    line-height: 1;
}

.sl {
    font-size: 13px;
    color: #605e5c;
    margin-top: 4px;
}

.sc {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
}

    .sc.up {
        color: var(--green);
    }

    .sc.down {
        color: var(--red);
    }
/* ================================================================
       CHART CONTAINERS
 ================================================================ */
.chart-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 16px 18px;
}

.chart-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: #201f1e;
}

.chart-sub {
    font-size: 12px;
    color: #8a8886;
    margin-top: 2px;
}
/* legend */
.chart-legend {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #605e5c;
    flex-wrap: wrap;
}

.leg-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}
/* SVG chart area */
.svg-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    background: #fafafa;
    border-radius: 3px;
    overflow: hidden;
}

    .svg-wrap svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
/* x-axis labels */
.x-labels {
    display: flex;
    justify-content: space-between;
    padding: 4px 0 0;
    font-size: 11px;
    color: #8a8886;
}
/* ================================================================
       DONUT CHART
 ================================================================ */
.donut-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.fleet-legend {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
}

.fl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fl-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fl-sq {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.fl-val {
    font-weight: 600;
}

.fl-pct {
    color: #8a8886;
    font-weight: 400;
    margin-left: 4px;
}
/* ================================================================
       DATA CARD  (table wrapper)
 ================================================================ */
.data-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.dc-head {
    padding: 11px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.dc-title {
    font-size: 14px;
    font-weight: 600;
    color: #201f1e;
}

/* status badges */
.sbadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

    .sbadge .dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
    }

.s-ongoing {
    background: var(--blue-lt);
    color: var(--blue);
}

    .s-ongoing .dot {
        background: var(--blue);
    }

.s-confirmed {
    background: var(--green-lt);
    color: var(--green);
}

    .s-confirmed .dot {
        background: var(--green);
    }

.s-pending {
    background: var(--amber-lt);
    color: var(--amber);
}

    .s-pending .dot {
        background: var(--amber);
    }

.s-cancelled {
    background: var(--red-lt);
    color: var(--red);
}

    .s-cancelled .dot {
        background: var(--red);
    }
/* avatar-xs — image thumbnail sesuai tinggi row table */
.avatar-xs {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* mini avatar in table */
.tbl-av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
/* pagination */
.tbl-foot {
    padding: 10px 14px;
    border-top: 1px solid #f3f2f1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .tbl-foot span {
        font-size: 12px;
        color: #8a8886;
    }

.pg-btn {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: none;
    cursor: pointer;
    transition: background var(--speed);
}

    .pg-btn:hover:not(:disabled) {
        background: #f3f2f1;
    }

    .pg-btn:disabled {
        opacity: 0.4;
        cursor: default;
    }

    .pg-btn.active-pg {
        background: var(--blue);
        color: #fff;
        border-color: var(--blue);
    }
/* ================================================================
       AVAILABILITY BARS (right panel)
 ================================================================ */
.avail-row {
    display: flex;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f3f2f1;
    font-size: 13px;
    gap: 8px;
}

    .avail-row:last-child {
        border-bottom: none;
    }

.avail-label {
    min-width: 70px;
    color: #323130;
}

.avail-track {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.avail-fill {
    height: 100%;
    border-radius: 3px;
}

.avail-count {
    min-width: 38px;
    text-align: right;
    font-weight: 600;
}
/* ================================================================
       ACTIVITY FEED (right panel)
 ================================================================ */
.act-row {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f3f2f1;
}

    .act-row:last-child {
        border-bottom: none;
    }

.act-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.act-text {
    font-size: 13px;
    color: #323130;
    line-height: 1.5;
}

.act-time {
    font-size: 12px;
    color: #8a8886;
    margin-top: 2px;
}
/* ================================================================
       CHAT POPUP
 ================================================================ */
#chat-wrap {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.chat-box {
    width: 320px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 36px rgba(0,0,0,0.16);
    display: none;
    flex-direction: column;
    max-height: 420px;
    overflow: hidden;
}

    .chat-box.open {
        display: flex;
    }

.chat-hd {
    background: var(--blue);
    color: #fff;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.chat-hd-name {
    font-size: 14px;
    font-weight: 600;
}

.chat-hd-status {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 1px;
}

.chat-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 15px;
    display: flex;
    padding: 0;
}

    .chat-close:hover {
        color: #fff;
    }

.chat-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg {
    display: flex;
    gap: 8px;
    max-width: 88%;
}

    .msg.sent {
        margin-left: auto;
        flex-direction: row-reverse;
    }

.msg-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.msg-bbl {
    background: #f3f2f1;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    color: #323130;
    line-height: 1.55;
}

.msg.sent .msg-bbl {
    background: var(--blue);
    color: #fff;
}

.msg-time {
    font-size: 11px;
    color: #8a8886;
    margin-top: 3px;
}

.msg.sent .msg-time {
    text-align: right;
}

.chat-inp {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.chat-field {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 7px 13px;
    font-size: 13px;
    outline: none;
    transition: border-color var(--speed);
}

    .chat-field:focus {
        border-color: var(--blue);
    }

.chat-send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--speed);
}

    .chat-send:hover {
        background: var(--blue-dk);
    }

.chat-fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,120,212,0.45);
    transition: transform var(--speed), background var(--speed);
    position: relative;
}

    .chat-fab:hover {
        background: var(--blue-dk);
        transform: scale(1.05);
    }

.chat-unread {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ================================================================
       MOBILE OVERLAY
 ================================================================ */
#sb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.48);
    z-index: 1035;
    display: none;
}

body.mob-sb-open #sb-overlay {
    display: block;
}
/* ================================================================
       RESPONSIVE
 ================================================================ */
@media (max-width: 768px) {
    /* Sidebar becomes offcanvas overlay on mobile */
    #sidebar {
        width: var(--sidebar-w) !important;
        transform: translateX(-100%);
        transition: transform var(--speed) ease !important;
    }

    body.mob-sb-open #sidebar {
        transform: translateX(0);
    }

    #topnav {
        left: 0 !important;
    }

    #main {
        margin-left: 0 !important;
    }

    .nav-search {
        display: none;
    }

    .nav-tabs-bar {
        display: none !important;
    }

    body.sb-collapsed #main {
        margin-left: 0;
    }
    /* Dropdown panels: fixed to viewport so they never overflow on mobile */
    .drop-panel {
        position: fixed;
        top: 56px;
        left: 8px;
        right: 8px;
        width: auto;
        min-width: 0 !important;
        max-width: none;
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
    }
    /* Stat card values slightly smaller */
    .sv {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .pg-content {
        padding: 12px 14px 30px;
    }

    .stat-card {
        padding: 12px 14px;
    }

    .sv {
        font-size: 22px;
    }

    #chat-wrap {
        bottom: 12px;
        right: 12px;
    }

    .chat-box {
        width: 290px;
    }
}
/* ================================================================
       UTILITY HELPERS
================================================================ */
.divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.text-blue {
    color: var(--blue) !important;
}

.text-green {
    color: var(--green) !important;
}

.text-muted-sm {
    font-size: 12px;
    color: #8a8886;
}

.fw-semibold {
    font-weight: 600;
}

/* ================================================================
       BOOTSTRAP ENTERPRISE THEME OVERRIDES
       Base template for business/enterprise dashboard
 ================================================================ */

/* ---- Bootstrap CSS Variable Overrides ---- */
:root {
    /* Remap Bootstrap primary to our brand blue */
    --bs-primary: #0078d4;
    --bs-primary-rgb: 0, 120, 212;
    --bs-primary-bg-subtle: #deecf9;
    --bs-primary-border-subtle: #b3d4f0;
    --bs-primary-text-emphasis: #004e8c;
    --bs-secondary: #605e5c;
    --bs-secondary-rgb: 96, 94, 92;
    --bs-success: #107c10;
    --bs-success-rgb: 16, 124, 16;
    --bs-success-bg-subtle: #dff6dd;
    --bs-success-border-subtle: #9fd89f;
    --bs-success-text-emphasis: #0a530a;
    --bs-warning: #ffc107;
    --bs-warning-rgb: 255, 193, 7;
    --bs-warning-bg-subtle: #fff4ce;
    --bs-warning-border-subtle: #ffd966;
    --bs-warning-text-emphasis: #6a4200;
    --bs-danger: #c50f1f;
    --bs-danger-rgb: 197, 15, 31;
    --bs-danger-bg-subtle: #fde7e9;
    --bs-danger-border-subtle: #f5b8bc;
    --bs-danger-text-emphasis: #8e0b16;
    --bs-info: #0dcaf0;
    --bs-info-rgb: 13, 202, 240;
    --bs-info-bg-subtle: #d0eaf5;
    --bs-info-border-subtle: #9dcde8;
    --bs-info-text-emphasis: #004e70;
    --bs-body-font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --bs-body-font-size: 0.875rem; /* 14px */
    --bs-body-color: #201f1e;
    --bs-body-bg: #ffffff;
    --bs-border-color: #e1dfdd;
    --bs-border-radius: 6px;
    --bs-border-radius-sm: 4px;
    --bs-border-radius-lg: 8px;
    --bs-border-radius-xl: 10px;
    --bs-border-radius-pill: 50rem;
    --bs-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --bs-box-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
    --bs-box-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.11);
}

/* ================================================================
       SECTION TITLE
 ================================================================ */
.section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3b3a39;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 16px;
    display: block;
}

/* ================================================================
       NAVBAR (Bootstrap .navbar)
 ================================================================ */
.navbar {
    background-color: #0f3d6b !important;
    padding: 0 1rem;
    min-height: 48px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 15px;
    font-weight: 600;
    color: #fff !important;
    letter-spacing: 0.2px;
}

.navbar-nav .nav-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82) !important;
    padding: 0 14px;
    height: 48px;
    line-height: 48px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

    .navbar-nav .nav-link:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.08);
    }

    .navbar-nav .nav-link.active {
        color: #fff !important;
        border-bottom-color: #fff;
    }

.navbar-toggler {
    border: none;
    padding: 4px 7px;
    color: #fff;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/* ================================================================
       CARD
 ================================================================ */
.card {
    border: 1px solid var(--border);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow-sm);
    background: #ffffff;
    transition: box-shadow 0.18s;
}

    .card:hover {
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.09);
    }

.card-header {
    background: #f8f7f6;
    border-bottom: 1px solid var(--border);
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #201f1e;
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0 !important;
}

.card-body {
    padding: 18px 18px;
}

.card-footer {
    background: #f8f7f6;
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    font-size: 13px;
    color: #605e5c;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #201f1e;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 13px;
    color: #8a8886;
    margin-bottom: 12px;
}

/* ================================================================
       BUTTONS
 ================================================================ */
.btn {
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--bs-border-radius-sm);
    padding: 7px 15px;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
    letter-spacing: 0.1px;
}

    .btn:focus-visible {
        box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.25);
        outline: none;
    }

/* Primary */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0078d4;
    --bs-btn-border-color: #0078d4;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #106ebe;
    --bs-btn-hover-border-color: #005a9e;
    --bs-btn-active-bg: #005a9e;
    --bs-btn-active-border-color: #004f8a;
    --bs-btn-disabled-bg: #7bb8e8;
    --bs-btn-disabled-border-color: #7bb8e8;
}

/* Secondary */
.btn-secondary {
    --bs-btn-color: #323130;
    --bs-btn-bg: #f3f2f1;
    --bs-btn-border-color: #e1dfdd;
    --bs-btn-hover-color: #201f1e;
    --bs-btn-hover-bg: #e8e6e4;
    --bs-btn-hover-border-color: #d0cecc;
    --bs-btn-active-bg: #dbd9d7;
}

/* Outline Primary */
.btn-outline-primary {
    --bs-btn-color: #0078d4;
    --bs-btn-border-color: #0078d4;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0078d4;
    --bs-btn-hover-border-color: #0078d4;
    --bs-btn-active-bg: #106ebe;
}

/* Danger */
.btn-danger {
    --bs-btn-bg: #c50f1f;
    --bs-btn-border-color: #c50f1f;
    --bs-btn-hover-bg: #a80e1a;
    --bs-btn-hover-border-color: #8e0b16;
}

/* Success */
.btn-success {
    --bs-btn-bg: #107c10;
    --bs-btn-border-color: #107c10;
    --bs-btn-hover-bg: #0a5f0a;
    --bs-btn-hover-border-color: #084308;
}

/* Small & Large */
.btn-sm {
    font-size: 13px;
    padding: 5px 11px;
    border-radius: var(--bs-border-radius-sm);
}

.btn-lg {
    font-size: 15px;
    padding: 10px 22px;
    border-radius: var(--bs-border-radius);
}

/* ================================================================
       TABLE
 ================================================================ */
.table {
    font-size: 14px;
    margin-bottom: 0;
    --bs-table-hover-bg: #f5f5f5;
    --bs-table-striped-bg: #f5f5f5;
    --bs-table-border-color: #f5f5f5;
}

    .table thead th {
        background: #ececec;
        color: #696969;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        padding: 10px 14px;
        border-bottom: 1px solid var(--border);
        border-top: none;
        white-space: nowrap;
        vertical-align: middle;
    }

    .table tbody td {
        padding: 11px 14px;
        vertical-align: middle;
        border-color: #eeeeee;
    }

    /* default colspan */
    .table td[colspan] {
        background-color: #fff !important;
        --bs-table-hover-bg: transparent;
    }

    /* saat parent di-hover → tetap putih */
    .table tbody tr:hover > td[colspan] {
        background-color: #fff !important;
    }

/* ================================================================
       ROW SELECTED
 ================================================================ */
.top-tr > td:first-child {
    position: relative;
}

    .top-tr > td:first-child::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--blue, #0d6efd);
    }

.top-tr > td {
    font-weight: 600;
}

.table-sm thead th {
    padding: 7px 10px;
    font-size: 11px;
}

.table-sm tbody td {
    padding: 7px 10px;
    font-size: 13px;
}

/* ================================================================
       FORM CONTROLS
 ================================================================ */
.form-control,
.form-select {
    font-size: 14px;
    border: 1px solid #d0cecc;
    border-radius: var(--bs-border-radius-sm);
    padding: 8px 12px;
    color: #201f1e;
    background-color: #fff;
    box-shadow: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    line-height: 1.6;
}

    .form-control:hover:not(:disabled):not(:focus),
    .form-select:hover:not(:disabled):not(:focus) {
        border-color: #aba9a8;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: #0078d4;
        box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.18);
        outline: none;
        background-color: #fff;
    }

    .form-control::placeholder {
        color: #aba9a8;
        font-size: 14px;
    }

    .form-control:disabled,
    .form-select:disabled {
        background-color: #f3f2f1;
        border-color: #e1dfdd;
        color: #8a8886;
        cursor: not-allowed;
    }

.form-control-sm,
.form-select-sm {
    font-size: 13px;
    padding: 6px 10px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 5px;
}

.form-text {
    font-size: 12px;
    color: #8a8886;
    margin-top: 4px;
}

.invalid-feedback {
    font-size: 12px;
    color: #c50f1f;
    margin-top: 4px;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #c50f1f;
    background-image: none;
    box-shadow: none;
}

    .form-control.is-invalid:focus,
    .form-select.is-invalid:focus {
        box-shadow: 0 0 0 3px rgba(197, 15, 31, 0.18);
    }

.form-control.is-valid,
.form-select.is-valid {
    border-color: #107c10;
    background-image: none;
}

    .form-control.is-valid:focus,
    .form-select.is-valid:focus {
        box-shadow: 0 0 0 3px rgba(16, 124, 16, 0.18);
    }

/* Input group */
.input-group-text {
    font-size: 14px;
    color: #605e5c;
    background: #f3f2f1;
    border: 1px solid #d0cecc;
    border-radius: var(--bs-border-radius-sm);
    padding: 8px 12px;
}

/* Checkbox & Radio */
.form-check-input {
    width: 16px;
    height: 16px;
    border: 1px solid #aba9a8;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

    .form-check-input:checked {
        background-color: #0078d4;
        border-color: #0078d4;
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.18);
        border-color: #0078d4;
    }

.form-check-label {
    font-size: 14px;
    color: #323130;
    cursor: pointer;
}

/* ================================================================
       MODAL
 ================================================================ */

/* Override Bootstrap: .modal scroll-nya diambil alih oleh .modal-body via flex chain */
.modal {
    overflow: hidden;
}

/* Modal dialog: batasi tinggi agar bisa scroll di semua ukuran layar */
.modal-dialog {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3.5rem); /* margin atas+bawah Bootstrap default */
    margin-top: 1.75rem;
    margin-bottom: 1.75rem;
}

.modal-content {
    border: 1px solid var(--border);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 100%; /* ikut batas modal-dialog */
}

/* EditForm render sebagai <form> — harus ikut flex chain agar modal-body bisa scroll */
.modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    align-items: center;
    flex-shrink: 0; /* header tidak ikut scroll */
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #201f1e;
}

/* Body scrollable — konten panjang tidak menyebabkan modal meluap layar */
.modal-body {
    padding: 24px 24px;
    font-size: 14px;
    color: #323130;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
}

.modal-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    background: #f8f7f6;
    gap: 8px;
    flex-shrink: 0; /* footer tidak ikut scroll */
}

.btn-close {
    opacity: 0.5;
    width: 0.85em;
    height: 0.85em;
    transition: opacity 0.15s;
}

    .btn-close:hover {
        opacity: 0.85;
    }

.modal-backdrop.show {
    opacity: 0.42;
}

/* Modal sizes */
.modal-sm .modal-content {
    border-radius: var(--bs-border-radius);
}

/* Mobile: kurangi margin agar modal tidak terlalu kecil */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
}

/* Tablet: sedikit lebih longgar */
@media (min-width: 576px) and (max-width: 991.98px) {
    .modal-dialog {
        max-height: calc(100vh - 2rem);
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* ================================================================
       BADGE
 ================================================================ */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.2px;
}

    .badge.rounded-pill {
        padding: 3px 9px;
        border-radius: 50rem;
    }

    /* Soft semantic badges */
    .badge.bg-primary {
        background-color: #deecf9 !important;
        color: #004e8c !important;
    }

    .badge.bg-success {
        background-color: #dff6dd !important;
        color: #0a530a !important;
    }

    .badge.bg-warning {
        background-color: #fff4ce !important;
        color: #6a4200 !important;
    }

    .badge.bg-danger {
        background-color: #fde7e9 !important;
        color: #8e0b16 !important;
    }

    .badge.bg-info {
        background-color: #d0eaf5 !important;
        color: #004e70 !important;
    }

    .badge.bg-secondary {
        background-color: #f3f2f1 !important;
        color: #3b3a39 !important;
    }

    /* Solid variant (add .badge-solid class alongside) */
    .badge.badge-solid.bg-primary {
        background-color: #0078d4 !important;
        color: #fff !important;
    }

    .badge.badge-solid.bg-success {
        background-color: #107c10 !important;
        color: #fff !important;
    }

    .badge.badge-solid.bg-warning {
        background-color: #8a5700 !important;
        color: #fff !important;
    }

    .badge.badge-solid.bg-danger {
        background-color: #c50f1f !important;
        color: #fff !important;
    }

    .badge.badge-solid.bg-info {
        background-color: #0078a8 !important;
        color: #fff !important;
    }

    .badge.badge-solid.bg-secondary {
        background-color: #605e5c !important;
        color: #fff !important;
    }

/* ================================================================
       ALERT
 ================================================================ */
.alert {
    font-size: 14px;
    padding: 13px 17px;
    border-radius: var(--bs-border-radius);
    border-width: 1px;
    border-style: solid;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-primary {
    background-color: #deecf9;
    border-color: #b3d4f0;
    color: #004e8c;
}

.alert-success {
    background-color: #dff6dd;
    border-color: #9fd89f;
    color: #0a530a;
}

.alert-warning {
    background-color: #fff4ce;
    border-color: #ffd966;
    color: #6a4200;
}

.alert-danger {
    background-color: #fde7e9;
    border-color: #f5b8bc;
    color: #8e0b16;
}

.alert-info {
    background-color: #d0eaf5;
    border-color: #9dcde8;
    color: #004e70;
}

.alert-secondary {
    background-color: #f3f2f1;
    border-color: #e1dfdd;
    color: #3b3a39;
}

.alert-heading {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.alert .btn-close {
    padding: 3px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ================================================================
       BREADCRUMB
 ================================================================ */
.breadcrumb {
    font-size: 13px;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #aba9a8;
    font-size: 12px;
}

.breadcrumb-item a {
    color: var(--blue);
    text-decoration: none;
}

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

.breadcrumb-item.active {
    color: #605e5c;
}

/* ================================================================
       PAGINATION
 ================================================================ */
.pg-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.pagination {
    font-size: 13px;
    gap: 2px;
}

.page-link {
    color: #323130;
    border: 1px solid var(--border);
    border-radius: var(--bs-border-radius-sm) !important;
    padding: 6px 11px;
    font-size: 13px;
    transition: background 0.12s, color 0.12s;
    line-height: 1.4;
}

    .page-link:hover {
        background: #f3f2f1;
        border-color: #d0cecc;
        color: #201f1e;
    }

.page-item.active .page-link {
    background: #0078d4;
    border-color: #0078d4;
    color: #fff;
}

.page-item.disabled .page-link {
    color: #aba9a8;
    background: #f3f2f1;
    border-color: var(--border);
}

/* ================================================================
       TABS (Bootstrap .nav-tabs)
 ================================================================ */
.nav-tabs {
    border-bottom: 1px solid var(--border);
    gap: 2px;
}

    .nav-tabs .nav-link {
        font-size: 14px;
        color: #605e5c;
        padding: 9px 17px;
        border: 1px solid transparent;
        border-bottom: none;
        border-radius: var(--bs-border-radius-sm) var(--bs-border-radius-sm) 0 0;
        transition: color 0.12s, background 0.12s;
    }

        .nav-tabs .nav-link:hover {
            color: #201f1e;
            background: #f3f2f1;
            border-color: transparent;
        }

        .nav-tabs .nav-link.active {
            color: #0078d4;
            background: #fff;
            border-color: var(--border) var(--border) #fff;
            font-weight: 600;
        }

/* Pills */
.nav-pills .nav-link {
    font-size: 14px;
    color: #605e5c;
    border-radius: var(--bs-border-radius-sm);
    padding: 8px 15px;
    transition: background 0.12s, color 0.12s;
}

    .nav-pills .nav-link:hover {
        background: #f3f2f1;
        color: #201f1e;
    }

    .nav-pills .nav-link.active {
        background: #0078d4;
        color: #fff;
    }

/* ================================================================
       DROPDOWN MENU (Bootstrap)
 ================================================================ */
.dropdown-menu {
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.11);
    padding: 4px 0;
    background: #fff;
    z-index: 9999;
}

.dropdown-item {
    font-size: 14px;
    color: #323130;
    padding: 8px 16px;
    transition: background 0.12s;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: #f3f2f1;
        color: #201f1e;
    }

    .dropdown-item.active {
        background: #deecf9;
        color: #004e8c;
    }

    .dropdown-item.text-danger {
        color: #c50f1f !important;
    }

        .dropdown-item.text-danger:hover {
            background: #fde7e9;
            color: #8e0b16 !important;
        }

.dropdown-divider {
    border-color: var(--border);
    margin: 4px 0;
}

.dropdown-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #8a8886;
    padding: 6px 16px 4px;
}

/* ================================================================
       LIST GROUP
 ================================================================ */
.list-group-item {
    font-size: 14px;
    color: #323130;
    border-color: var(--border);
    padding: 11px 16px;
    transition: background 0.12s;
}

    .list-group-item.active {
        background: #deecf9;
        border-color: #b3d4f0;
        color: #004e8c;
    }

.list-group-item-action:hover {
    background: #f5f4f3;
    color: #201f1e;
}

/* ================================================================
       PROGRESS
 ================================================================ */
.progress {
    height: 6px;
    background: #e1dfdd;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: #0078d4;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.progress-sm {
    height: 4px;
}

.progress-md {
    height: 8px;
}

/* ================================================================
       TOAST
 ================================================================ */
.toast {
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: #fff;
    min-width: 260px;
}

.toast-header {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    background: #f8f7f6;
    border-bottom: 1px solid var(--border);
    color: #201f1e;
}

.toast-body {
    padding: 11px 14px;
    color: #323130;
    font-size: 14px;
}

/* ================================================================
       ACCORDION
 ================================================================ */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--bs-border-radius) !important;
    margin-bottom: 4px;
    overflow: hidden;
}

.accordion-button {
    font-size: 14px;
    font-weight: 600;
    color: #201f1e;
    background: #fff;
    padding: 13px 16px;
    transition: background 0.12s;
}

    .accordion-button:not(.collapsed) {
        background: #f0f7fe;
        color: #0078d4;
        box-shadow: none;
    }

    .accordion-button::after {
        width: 14px;
        height: 14px;
        background-size: 14px;
    }

    .accordion-button:focus {
        box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.18);
        z-index: 1;
    }

.accordion-body {
    font-size: 14px;
    color: #605e5c;
    padding: 15px 16px;
    background: #fff;
    border-top: 1px solid var(--border);
}

/* ================================================================
       SPINNER
 ================================================================ */
.spinner-border {
    border-color: #0078d4;
    border-right-color: transparent;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ================================================================
       OFFCANVAS
 ================================================================ */
.offcanvas {
    border: none;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.14);
}

.offcanvas-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.offcanvas-title {
    font-size: 15px;
    font-weight: 600;
    color: #201f1e;
}

.offcanvas-body {
    padding: 20px;
    font-size: 14px;
}

/* ================================================================
       POPOVER & TOOLTIP
 ================================================================ */
.popover {
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.11);
}

.popover-header {
    font-size: 14px;
    font-weight: 600;
    background: #f3f2f1;
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
}

.popover-body {
    font-size: 13px;
    color: #605e5c;
    padding: 11px 14px;
}

.tooltip .tooltip-inner {
    font-size: 12px;
    background: #3b3a39;
    border-radius: var(--bs-border-radius-sm);
    padding: 4px 9px;
    max-width: 220px;
}

/* ================================================================
       UTILITIES — ENTERPRISE HELPERS
 ================================================================ */

/* Soft background variants */
.bg-primary-soft {
    background-color: #deecf9 !important;
}

.bg-success-soft {
    background-color: #dff6dd !important;
}

.bg-warning-soft {
    background-color: #fff4ce !important;
}

.bg-danger-soft {
    background-color: #fde7e9 !important;
}

.bg-info-soft {
    background-color: #d0eaf5 !important;
}

.bg-muted-soft {
    background-color: #f3f2f1 !important;
}

/* Text emphasis - tuned to Bootstrap palette */
.text-primary-em {
    color: #0b5ed7 !important;
}

.text-success-em {
    color: #157347 !important;
}

.text-warning-em {
    color: #997404 !important;
}

.text-danger-em {
    color: #b02a37 !important;
}

.text-info-em {
    color: #087990 !important;
}

/* Subtle divider line */
.hr-subtle {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* Small monospace label */
.code-label {
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 12px;
    background: #f3f2f1;
    color: #c50f1f;
    padding: 1px 5px;
    border-radius: 3px;
}

.btn-light {
    --bs-btn-color: #000;
    --bs-btn-bg: #f3f2f1;
    --bs-btn-border-color: #f8f9fa;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #d3d4d5;
    --bs-btn-hover-border-color: #c6c7c8;
    --bs-btn-focus-shadow-rgb: 211, 212, 213;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #c6c7c8;
    --bs-btn-active-border-color: #babbbc;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #f8f9fa;
    --bs-btn-disabled-border-color: #f8f9fa;
}

/* ================================================================
       END BOOTSTRAP ENTERPRISE THEME
 ================================================================ */

/* ================================================================
   BOOKING DETAIL — section & info-row patterns
 ================================================================ */

/* Info row */
.di-row {
    display: flex;
    align-items: baseline;
    padding: 8px 16px;
    border-bottom: 1px solid #f0efee;
    gap: 8px;
    line-height: 1.45;
}

    .di-row:last-child {
        border-bottom: none;
    }

.di-label {
    flex: 0 0 40%;
    font-size: 12px;
    color: #8a8886;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding-top: 1px;
}

.di-value {
    flex: 1;
    font-size: 14px;
    color: #201f1e;
    min-width: 0;
    word-break: break-word;
}

/* Sub-section separator inside card body */
.di-section {
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #aba9a8;
    background: #faf9f8;
    border-bottom: 1px solid #f0efee;
    border-top: 1px solid #f0efee;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Empty placeholder */
.di-empty {
    padding: 12px 16px;
    font-size: 13px;
    color: #aba9a8;
    font-style: italic;
}

/* Entity row (Customer / Vendor) */
.di-entity {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
}

.di-entity-av {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.di-entity-name {
    font-size: 15px;
    font-weight: 600;
    color: #201f1e;
    line-height: 1.3;
}

.di-entity-sub {
    font-size: 12px;
    color: #605e5c;
    margin-top: 2px;
}

.di-entity-meta {
    font-size: 12px;
    color: #8a8886;
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Location block */
.di-location {
    padding: 12px 16px;
}

.di-location-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.di-location-name {
    font-size: 13px;
    font-weight: 600;
    color: #201f1e;
    margin-bottom: 3px;
}

.di-location-address {
    font-size: 13px;
    color: #605e5c;
    margin-bottom: 4px;
}

.di-location-coords {
    font-size: 12px;
    color: #aba9a8;
}

.di-location-note {
    font-size: 13px;
    color: #8a8886;
    margin-top: 5px;
    font-style: italic;
}

/* Timeline */
.di-tl-date {
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #aba9a8;
    background: #faf9f8;
    border-bottom: 1px solid #f0efee;
    border-top: 1px solid #f0efee;
}

.di-tl-item {
    display: flex;
    padding: 10px 16px;
    border-bottom: 1px solid #f0efee;
    align-items: flex-start;
    gap: 0;
}

    .di-tl-item:last-child {
        border-bottom: none;
    }

.di-tl-time {
    flex: 0 0 44px;
    font-size: 12px;
    color: #aba9a8;
    padding-top: 2px;
    flex-shrink: 0;
}

.di-tl-line {
    width: 1px;
    background: #e1dfdd;
    align-self: stretch;
    flex-shrink: 0;
    margin-top: 4px;
    margin-right: 12px;
}

.di-tl-title {
    font-size: 14px;
    font-weight: 600;
    color: #201f1e;
    line-height: 1.3;
}

.di-tl-by {
    font-size: 12px;
    color: #8a8886;
    margin-top: 2px;
}

.di-tl-body {
    font-size: 13px;
    color: #8a8886;
    margin-top: 4px;
    line-height: 1.5;
}

.di-tl-recip {
    font-size: 12px;
    color: #aba9a8;
    margin-top: 3px;
}

/* Note / Remark items */
.di-note-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #323130;
    border-bottom: 1px solid #f0efee;
    line-height: 1.6;
}

    .di-note-item:last-child {
        border-bottom: none;
    }

.di-remark-item {
    display: flex;
    gap: 12px;
    padding: 9px 16px;
    border-bottom: 1px solid #f0efee;
    align-items: flex-start;
}

    .di-remark-item:last-child {
        border-bottom: none;
    }

.di-remark-seq {
    flex: 0 0 22px;
    font-size: 12px;
    color: #aba9a8;
    padding-top: 1px;
}

/* Booking hero: metrics bar */
.bk-metric {
    text-align: center;
    padding: 14px 12px;
    flex: 1;
    min-width: 22%;
    border-right: 1px solid var(--border);
}

    .bk-metric:last-child {
        border-right: none;
    }

.bk-metric-label {
    font-size: 12px;
    color: #8a8886;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.bk-metric-val {
    font-size: 15px;
    font-weight: 600;
    color: #201f1e;
    line-height: 1.2;
}

.bk-metric-sub {
    font-size: 12px;
    color: #8a8886;
    margin-top: 2px;
}

.rsv-detail-card {
    position: relative;
    overflow: hidden;
}

.rsv-detail-card > :not(.rsv-status-watermark) {
    position: relative;
    z-index: 1;
}

.rsv-status-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    opacity: 0.08;
    font-size: clamp(48px, 10vw, 132px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    transform: rotate(-18deg);
    white-space: nowrap;
    z-index: 0;
}

/* Vehicle card inner */
.bk-vehicle-img {
    width: 110px;
    height: 74px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.bk-vehicle-name {
    font-size: 15px;
    font-weight: 600;
    color: #201f1e;
    margin-bottom: 5px;
}

.bk-price-box {
    background: #f8f7f6;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    margin-top: 14px;
}

.bk-price-label {
    font-size: 12px;
    color: #8a8886;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}

.bk-price-val {
    font-size: 20px;
    font-weight: 700;
    color: #201f1e;
    line-height: 1.2;
}

.bk-price-note {
    font-size: 12px;
    color: #8a8886;
    margin-top: 3px;
}

/* ================================================================
   FIX: .table-responsive hanya aktif di layar < lg (992px)
   ----------------------------------------------------------------
   Di atas 992px overflow dibiarkan visible sehingga dropdown-menu
   (position:absolute/fixed via Popper) tidak ter-clip oleh container.
   Di bawah 992px overflow-x: auto kembali aktif agar tabel tetap
   bisa di-scroll horizontal pada layar kecil.
 ================================================================ */
.table-responsive {
    overflow: visible;
}

@media (max-width: 991.98px) {
    .table-responsive {
        overflow-x: auto;
        overflow-y: visible;
    }
}


/* ================================================================
  Application Footer
 ================================================================ */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    border-top: 1px solid var(--border, #e1dfdd);
    font-size: 12px;
    color: #8a8886;
    flex-shrink: 0;
    user-select: none;
}

.app-footer-ver {
    color: #aba9a8;
}

@media (max-width: 576px) {
    .app-footer {
        flex-direction: column;
        gap: 2px;
        text-align: center;
        padding: 8px 14px;
    }
}
