
:root{
    --brand: #2f8f83;
    --brand-strong: #237267;
    --brand-soft: #e8f6f3;
    --brand-soft-2: #d8efe9;
    --surface: #f4f7fb;
    --surface-2: #eef3f8;
    --surface-card: #ffffff;
    --sidebar-bg: #16202a;
    --sidebar-bg-2: #1d2a36;
    --sidebar-border: rgba(255,255,255,.08);
    --sidebar-text: rgba(255,255,255,.93);
    --sidebar-text-soft: rgba(255,255,255,.66);
    --sidebar-hover: rgba(255,255,255,.06);
    --sidebar-active: linear-gradient(135deg, #2f8f83 0%, #43a693 100%);
    --text-main: #17212b;
    --text-soft: #6b7280;
    --text-inverse: #f8fbfc;
    --border-soft: rgba(15,23,42,.08);
    --border-strong: rgba(15,23,42,.12);
    --danger: #dc3545;
    --warning: #f59e0b;
    --success: #16a34a;
    --info: #2563eb;
    --shadow-soft: 0 16px 40px rgba(15,23,42,.08);
    --shadow-card: 0 10px 28px rgba(15,23,42,.06);
    --shadow-login: 0 30px 80px rgba(23,33,43,.18);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --topbar-h: 78px;
    --sidebar-w: 292px;
}

/* ===== base ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    color: var(--text-main);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--surface);
    overflow: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a{
    text-decoration:none;
}

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

.eyebrow-text{
    font-size: .76rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-soft);
    font-weight: 700;
    margin-bottom: 2px;
}

.btn-brand{
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-strong);
    --bs-btn-hover-border-color: var(--brand-strong);
    --bs-btn-focus-shadow-rgb: 47, 143, 131;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-strong);
    --bs-btn-active-border-color: var(--brand-strong);
}

.btn-soft-brand{
    background: var(--brand-soft);
    color: var(--brand-strong);
    border: 1px solid rgba(47,143,131,.14);
}
.btn-soft-brand:hover{
    background: var(--brand-soft-2);
    color: var(--brand-strong);
}

.form-control,
.form-select{
    border-radius: 14px;
    border-color: rgba(15,23,42,.1);
    min-height: 46px;
    box-shadow: none !important;
}
.form-control:focus,
.form-select:focus{
    border-color: rgba(47,143,131,.45);
    box-shadow: 0 0 0 .2rem rgba(47,143,131,.12) !important;
}

.card-soft{
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ===== login compact version ===== */
.auth-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(47,143,131,.20), transparent 28%), radial-gradient(circle at bottom right, rgba(67,166,147,.14), transparent 24%), linear-gradient(135deg, #eef6f4 0%, #f4f7fb 55%, #ebf3fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1fr .88fr;
    background: rgba(255,255,255,.80);
    border: 1px solid rgba(255,255,255,.68);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(23,33,43,.14);
    overflow: hidden;
}

.auth-hero {
    position: relative;
    /*    background: linear-gradient(160deg, rgba(22,32,42,.96) 0%, rgba(31,67,74,.94) 45%, rgba(47,143,131,.92) 100%);*/
    /*background: linear-gradient(160deg, rgba(64,167,152,.85) 0%, rgba(35,99,104,.92) 45%, rgba(18,30,40,.98) 100% );*/
    /*    background: radial-gradient(circle at top left, rgba(255,255,255,0.15), transparent 10%), linear-gradient(160deg, rgba(64,167,152,.85) 0%, rgba(35,99,104,.92) 45%, rgba(18,30,40,.98) 100% );*/
    background: linear-gradient(180deg, rgba(255,255,255,.50) 0%, rgba(35,99,104,.92) 45%, rgba(18,30,40,.98) 100% );
    color: #fff;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
}

    .auth-hero::before {
        content: "";
        position: absolute;
        inset: auto -50px -50px auto;
        width: 180px;
        height: 180px;
        background: rgba(255,255,255,.07);
        border-radius: 50%;
    }

    .auth-hero::after {
        content: "";
        position: absolute;
        inset: 70px auto auto -60px;
        width: 140px;
        height: 140px;
        background: rgba(255,255,255,.06);
        border-radius: 50%;
    }

.auth-brand {
    position: relative;
    z-index: 1;
}

    .auth-brand img {
        max-width: 170px;
        height: auto;
        object-fit: contain;
    }

    .auth-brand h1 {
        margin-top: 18px;
        margin-bottom: 10px;
        font-size: 1.9rem;
        font-weight: 800;
        line-height: 1.18;
    }

    .auth-brand p {
        margin: 0;
        color: rgba(255,255,255,.78);
        max-width: 390px;
        font-size: .93rem;
        line-height: 1.6;
    }

.auth-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.auth-chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--brand-strong);
    font-size: .76rem;
    font-weight: 700;
}

.auth-feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.auth-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.14);
    font-size: .92rem;
    flex: 0 0 36px;
}

.auth-feature strong {
    display: block;
    margin-bottom: 2px;
    font-size: .94rem;
    line-height: 1.35;
}

.auth-feature span {
    color: rgba(255,255,255,.74);
    font-size: .86rem;
    line-height: 1.55;
}

.auth-panel {
    background: rgba(255,255,255,.95);
    padding: 28px 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card-head {

    margin-bottom: 20px;
}

    .auth-card-head h2 {
        margin: 3px 0 4px;
        font-size: 1.7rem;
        font-weight: 800;
        color: var(--text-main);
    }

    .auth-card-head p {
        margin: 0;
        color: var(--text-soft);
        font-size: .95rem;
        line-height: 1.55;
    }

.auth-alert {
    border-radius: 14px;
    border: none;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: .92rem;
}

.auth-input-group {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #8a94a6;
    z-index: 3;
    font-size: .95rem;
}

.auth-input-group .form-control {
    padding-left: 42px;
    padding-right: 44px;
    min-height: 44px;
    border-radius: 13px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #7a8596;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

    .auth-password-toggle:hover {
        background: rgba(15,23,42,.04);
    }

.auth-actions {
    display: grid;
    gap: 10px;
}

    .auth-actions .btn {
        min-height: 44px;
        border-radius: 13px;
        font-weight: 700;
        font-size: .95rem;
    }

.auth-line-btn {
    background: #06c755;
    border-color: #06c755;
    color: #fff;
}

    .auth-line-btn:hover {
        background: #03ad4a;
        border-color: #03ad4a;
        color: #fff;
    }

/*.auth-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: .82rem;
    
}*/


.auth-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: var(--text-soft);
}
}

    .auth-footer .divider {
        opacity: 0.5;
    }

/* responsive */
@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
        width: min(680px, 100%);
    }

    .auth-hero {
        min-height: auto;
        padding: 24px 22px;
    }

    .auth-panel {
        padding: 24px 22px 20px;
    }

    .auth-brand h1 {
        font-size: 1.65rem;
    }

    .auth-feature-list {
        margin-top: 14px;
    }
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 12px;
    }

    .auth-shell {
        border-radius: 18px;
    }

    .auth-hero {
        padding: 20px 18px;
    }

    .auth-panel {
        padding: 20px 18px 18px;
    }

    .auth-brand img {
        max-width: 145px;
    }

    .auth-brand h1 {
        font-size: 1.45rem;
        margin-top: 14px;
    }

    .auth-card-head h2 {
        font-size: 1.45rem;
    }

    .auth-chip {
        font-size: .72rem;
        padding: 5px 9px;
    }

    .auth-feature {
        padding: 10px 12px;
    }

        .auth-feature strong {
            font-size: .9rem;
        }

        .auth-feature span {
            font-size: .82rem;
        }
}

/* ===== application layout ===== */
.app-layout {
    display: flex;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
}

/*.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    height: 100vh;
    background: linear-gradient(180deg, #2b2f36 0%, #252930 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--sidebar-border);
    position: sticky;
    top: -60px;
    z-index: 20;
    transition: width .25s ease, min-width .25s ease;
    box-shadow: 8px 0 24px rgba(15,23,42,0.10);
}

.sidebar-header {
    height: var(--topbar-h);
    min-height: var(--topbar-h);
    padding: 0 22px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(180deg, rgba(47,143,131,.18) 0%, rgba(47,143,131,.06) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}*/

.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    height: 100vh;
    background: linear-gradient(180deg, #2b2f36 0%, #252930 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--sidebar-border);
    position: relative;
    top: -60px;
    z-index: 20;
    transition: width .25s ease, min-width .25s ease;
    box-shadow: 8px 0 24px rgba(15,23,42,0.10);
}

/*.sidebar-header {
    height: var(--topbar-h);
    min-height: var(--topbar-h);
    padding: 0 22px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(180deg, rgba(47,143,131,.18) 0%, rgba(47,143,131,.06) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}*/

.sidebar-header {
    min-height: var(--topbar-h);
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    /*background: linear-gradient(180deg, rgba(79,174,149,0.16) 0%, rgba(79,174,149,0.06) 100%);*/
    /*background: linear-gradient(135deg,rgba(47,143,131,.20) 10%, #22564f 48%, #2f8f83 100%);*/
/*    background: linear-gradient(180deg, rgba(255,255,255,.50) 0%, rgba(35,99,104,.92) 45%, rgba(18,30,40,.98) 100% );*/
    background: linear-gradient(180deg, rgba(255,255,255,.80) 0%, rgba(35,99,104,.92) 70%, rgba(18,30,40,.98) 100% );
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: padding .25s ease;
}

.sidebar-brand{
    margin:0;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color:#fff;
}
.sidebar-subtitle{
    margin-top:8px;
    color: var(--sidebar-text-soft);
    font-size: .92rem;
}
.sidebar-menu-wrap{
    flex:1;
    overflow-y:auto;
    padding: 14px 12px 18px;
}
.sidebar-menu-wrap::-webkit-scrollbar{
    width:8px;
}
.sidebar-menu-wrap::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.14);
    border-radius:999px;
}

.menu,
.submenu{
    list-style:none;
    margin:0;
    padding:0;
}
.menu > li{
    margin-bottom: 10px;
}
.menu > li > a,
.submenu > li > a{
    color: var(--sidebar-text);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
/*.menu > li > a{
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 15px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.03);
    transition: .2s ease;
    font-weight: 600;
}*/
.menu > li > a {
    position: relative;
    min-height: 48px;
    padding: 12px 14px;
    padding-right: 44px;
    border-radius: 15px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.03);
    transition: .2s ease;
    font-weight: 600;
}
.menu > li > a:hover{
    background: var(--sidebar-hover);
    color:#fff;
    transform: translateX(2px);
}
.menu > li.open > a{
    background: rgba(47,143,131,.14);
}
.menu > li > a.active,
.menu > li.active > a{
    background: var(--sidebar-active);
    color:#fff;
    box-shadow: 0 10px 20px rgba(47,143,131,.2);
}
.menu .left,
.menu > li > a > span:first-child{
    display:inline-flex;
    align-items:center;
    gap:12px;
    min-width:0;
}
.menu-text{
    white-space:nowrap;
}
.chevron{
    font-size: .76rem;
    opacity: .78;
    transition: transform .2s ease;
}
.menu > li.open > a .chevron{
    transform: rotate(180deg);
}
.submenu{
    display:none;
    padding: 10px 0 2px;
}
.menu > li.open > .submenu{
    display:block;
}
.submenu > li{
    margin: 4px 0;
}
.submenu > li > a{
    min-height: 38px;
    margin-left: 16px;
    padding: 8px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,.78);
    font-size: .92rem;
    transition: .18s ease;
}
.submenu > li > a:hover,
.submenu > li > a.active{
    background: rgba(255,255,255,.08);
    color:#fff;
}

.sidebar-footer{
    padding: 16px 12px 18px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.line-btn{
    border-radius: 14px;
    min-height: 44px;
}

.page-shell {
    flex: 1 1 auto;
    min-width: 0;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    height: var(--topbar-h);
    min-height: var(--topbar-h);
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
    position: relative;
    top: 0;
    z-index: 12;
    box-sizing: border-box;
}
.topbar-left{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
}
.topbar-title-wrap{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}
.topbar-title-wrap h5{
    font-weight: 800;
    color: var(--text-main);
}
.topbar-subtitle{
    color: var(--text-soft);
    font-weight: 600;
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
}
.topbar-divider{
    color: #c0c7d2;
}
.sidebar-toggle-btn{
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background:#fff;
    color: var(--text-main);
}
.sidebar-toggle-btn:hover{
    background: var(--brand-soft);
    color: var(--brand-strong);
    border-color: rgba(47,143,131,.2);
}
.topbar-user{
    display:flex;
    align-items:center;
    gap:12px;
}
.user-trigger{
    min-height: 48px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: #fff;
    display:inline-flex;
    align-items:center;
    gap:10px;
    color: var(--text-main);
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(15,23,42,.05);
}
.user-trigger:hover{
    color: var(--brand-strong);
    border-color: rgba(47,143,131,.18);
}
.user-avatar-img{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(47,143,131,.12);
    background: #f8fafc;
}

.page-content {
    padding: 26px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.page-frame{
    display:flex;
    flex-direction:column;
    min-height: calc(100vh - var(--topbar-h) - 52px);
}
.page-body{
    flex:1;
}
.content-footer{
    margin-top: 24px;
    padding: 16px 4px 0;
    border-top: 1px solid var(--border-soft);
    color: var(--text-soft);
    font-size: .9rem;
    display:flex;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
}


.modal-content{
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.modal-header{
    border-bottom-color: var(--border-soft);
}
.dropdown-menu{
    border-radius: 16px;
    padding: 8px;
}
.dropdown-item{
    border-radius: 12px;
    padding: 10px 12px;
}
.dropdown-item:hover{
    background: var(--brand-soft);
    color: var(--brand-strong);
}


/* ===== badge ===== */

/*.badge-menumain,
.badge-counter{
    font-size: .72rem;
}*/

.badge-counter {
    font-size: 0.50rem;
    position: absolute;
    top: 0;
    right: 0;
}

/*.badge-menumain {
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(239,68,68,0.18);
}*/

/*.badge-menumain {
    font-size: 0.52rem;
    font-weight: 700;
    position: absolute;
    top: 6px;
    right: 8px;
    padding: 3px 6px;
    border-radius: 999px;
    line-height: 1;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(239,68,68,0.18);
}*/
.badge-menumain {
    font-size: 0.52rem;
    font-weight: 700;
    position: absolute;
    top: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 3px 6px;
    border-radius: 999px;
    line-height: 1;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(239,68,68,0.18);
}

/* ===== sidebar collapsed ===== */
.app-layout.sidebar-collapsed .sidebar {
    width: 88px;
    min-width: 88px;
    flex: 0 0 88px;
}

.app-layout.sidebar-collapsed .sidebar-header {
    padding-left: 12px;
    padding-right: 12px;
    align-items: center;
    text-align: center;
}

.app-layout.sidebar-collapsed .sidebar-brand,
.app-layout.sidebar-collapsed .sidebar-subtitle,
.app-layout.sidebar-collapsed .menu-text,
.app-layout.sidebar-collapsed .badge-menumain,
.app-layout.sidebar-collapsed .sidebar-footer span,
.app-layout.sidebar-collapsed .chevron {
    display: none !important;
}

.app-layout.sidebar-collapsed .menu > li > a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

    .app-layout.sidebar-collapsed .menu .left,
    .app-layout.sidebar-collapsed .menu > li > a > span:first-child {
        width: 100%;
        justify-content: center;
        gap: 0;
    }

.app-layout.sidebar-collapsed .submenu {
    display: none !important;
}

.app-layout.sidebar-collapsed .sidebar-footer {
    padding-left: 10px;
    padding-right: 10px;
}

.app-layout.sidebar-collapsed .line-btn {
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
}

.app-layout.sidebar-collapsed .sidebar-toggle-btn i {
    transform: rotate(90deg);
    transition: transform .2s ease;
}

/* ===== dashboard ===== */
.dashboard-page{
    display:grid;
    gap: 22px;
}
.dashboard-hero{
    border-radius: 28px;
    padding: 26px 28px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 30%),
        linear-gradient(135deg, #1c2732 0%, #22564f 48%, #2f8f83 100%);
    color: #fff;
    box-shadow: var(--shadow-soft);
}
.dashboard-hero-grid{
    display:grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
    align-items:center;
}
.dashboard-hero h1{
    margin: 8px 0 10px;
    font-size: 2rem;
    font-weight: 800;
}
.dashboard-hero p{
    margin:0;
    color: rgba(255,255,255,.78);
    max-width: 720px;
}
.dashboard-meta{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top: 18px;
}
.dashboard-meta-item{
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
    font-size: .9rem;
}
.dashboard-meta-item i{
    margin-right: 8px;
}
.dashboard-actions{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}
.dashboard-actions .btn{
    border-radius: 14px;
    min-height: 46px;
    font-weight: 700;
    padding-inline: 16px;
}

.metric-grid{
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.metric-card{
    background: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    padding: 22px 22px 18px;
    position: relative;
    overflow:hidden;
}
.metric-card::after{
    content:"";
    position:absolute;
    inset:0 auto auto 0;
    width:100%;
    height:4px;
    background: var(--metric-accent, var(--brand));
}
.metric-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}
.metric-label{
    color: var(--text-soft);
    font-weight: 600;
    margin-bottom: 10px;
}
.metric-value{
    font-size: 2.15rem;
    line-height: 1;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}
.metric-hint{
    color: var(--text-soft);
    font-size: .9rem;
}
.metric-icon{
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display:grid;
    place-items:center;
    background: var(--metric-soft, var(--brand-soft));
    color: var(--metric-accent, var(--brand));
    font-size: 1.28rem;
}
.metric-card.metric-customers{ --metric-accent:#2563eb; --metric-soft:rgba(37,99,235,.10);}
.metric-card.metric-members{ --metric-accent:#a855f7; --metric-soft:rgba(168,85,247,.10);}
.metric-card.metric-checkin{ --metric-accent:#16a34a; --metric-soft:rgba(22,163,74,.10);}
.metric-card.metric-booking{ --metric-accent:#ea580c; --metric-soft:rgba(234,88,12,.10);}
.metric-footer{
    margin-top: 16px;
    display:flex;
    justify-content:flex-end;
}
.metric-footer .btn{
    border-radius: 12px;
}

.dashboard-grid-2{
    display:grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
}
.panel-card{
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    padding: 22px;
}
.panel-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    margin-bottom: 18px;
}
.panel-head h3{
    margin: 6px 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
}
.panel-head p{
    margin:0;
    color: var(--text-soft);
}
.quick-action-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.quick-action-card{
    border:1px solid var(--border-soft);
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    transition: .18s ease;
    color: var(--text-main);
}
.quick-action-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
    border-color: rgba(47,143,131,.18);
}
.quick-action-card .icon{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display:grid;
    place-items:center;
    margin-bottom: 12px;
    background: var(--brand-soft);
    color: var(--brand-strong);
}
.quick-action-card h4{
    margin:0 0 4px;
    font-size: 1rem;
    font-weight: 700;
}
.quick-action-card p{
    margin:0;
    color: var(--text-soft);
    font-size: .9rem;
}
.summary-list{
    display:grid;
    gap: 12px;
}
.summary-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: #fff;
}
.summary-row .label{
    display:flex;
    align-items:center;
    gap:12px;
}
.summary-dot{
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.skeleton{
    position: relative;
    overflow:hidden;
    background: linear-gradient(90deg, rgba(226,232,240,.55) 25%, rgba(241,245,249,.95) 50%, rgba(226,232,240,.55) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.25s infinite linear;
    border-radius: 10px;
}
.metric-value.loading{
    color: transparent;
    min-height: 34px;
}
.metric-value.loading::after{
    content:"";
    display:block;
    width: 76px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(226,232,240,.55) 25%, rgba(241,245,249,.95) 50%, rgba(226,232,240,.55) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.25s infinite linear;
}
@keyframes shimmer{
    from{ background-position: 200% 0; }
    to{ background-position: -200% 0; }
}

@media (max-width: 1199.98px){
    .metric-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-grid-2{
        grid-template-columns: 1fr;
    }
}
@media (max-width: 991.98px){
    .topbar{
        padding: 14px 18px;
    }
    .page-content{
        padding: 18px;
    }
    .topbar-subtitle,
    .topbar-divider{
        display:none;
    }
    .dashboard-hero-grid{
        grid-template-columns: 1fr;
    }
    .dashboard-actions{
        justify-content:flex-start;
    }
}
@media (max-width: 767.98px){
    .app-layout{
        flex-direction:column;
    }
    .sidebar{
        width:100%;
        min-width:100%;
    }
    .page-shell{
        min-height:0;
    }
    .metric-grid{
        grid-template-columns: 1fr;
    }
    .quick-action-grid{
        grid-template-columns: 1fr;
    }
    .dashboard-hero{
        padding: 22px 20px;
    }
    .dashboard-hero h1{
        font-size: 1.6rem;
    }
    .page-content{
        padding: 16px;
    }
}


/* ===== Booking ===== */
.booking-page {
    display: grid;
    gap: 18px;
}

.booking-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #1c2732 0%, #22564f 48%, #2f8f83 100%);
    color: #fff;
}

    .booking-hero h2 {
        margin: 0;
        font-weight: 800;
    }

    .booking-hero p {
        margin: 4px 0 0;
        opacity: .85;
    }

.booking-filter {
    padding: 14px;
    border-radius: 18px;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
    gap: 14px;
}

.booking-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: .2s ease;
}

    .booking-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0,0,0,.08);
    }

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

    .booking-card-head h5 {
        margin: 0;
        font-weight: 700;
    }

.booking-meta {
    font-size: .9rem;
    color: var(--text-soft);
    display: grid;
    gap: 4px;
}

.booking-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}
