:root {
    --bg-day: #eef7f1;
    --panel: #ffffff;
    --text: #0f2f25;
    --brand: #1b5e20;
    --accent: #4caf50;
    --muted: #4f6f64;
    --mutedd: #9fd3b8;
    --card-radius: 14px;
    --gold: #8bc34a;
    --text-color: #0f2f25;
    --radius:12px;
    --royal:#1b5e20;
    --royal-2:#2e7d32;
    --card:#123c2a;
    --maxw:1280px;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
    background: var(--bg-day);
    color: var(--text);
    -webkit-font-smoothing: antialiased
}

.topbar {
    /* display: flex;
    align-items: center;
    justify-content: space-between; */
    padding: 12px 20px;
    background: linear-gradient(90deg, var(--brand), #43a047);
    color: #fff
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand img {
    height: 56px;
    width: 56px;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    object-fit: contain
}

.controls {
    margin-left:auto;
    display: flex;
    gap: 10px;
    align-items: center
}

.selectish {
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff
}

.theme-btn {
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    background: #e8f5e9;
    color: var(--brand);
    cursor: pointer
}

.primary-btn {
    background: #4caf50;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.container {
    max-width: 1300px;
    margin: 18px auto;
    padding: 0 18px
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    margin-bottom: 18px
}

.tile {
    background: var(--panel);
    border-radius: var(--card-radius);
    padding: 14px;
    box-shadow: 0 10px 30px rgba(27,94,32,0.12);
    transition: transform .28s;
    transform-style: preserve-3d;
    border: 1px solid rgba(27,94,32,0.08);
    overflow: hidden
}

.tile:hover {
    transform: translateY(-6px)
}

footer {
    max-width: 1300px;
    margin: 18px auto 40px;
    color: var(--muted);
    font-size: 13px;
    text-align: center
}

body {
    font-family: 'Inter', sans-serif;
    background: #eef7f1;
}

/* ================= SIDEBAR ================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: linear-gradient(180deg, #0f3d2e, #1b5e20, #2e7d32);
    color: #fff;
    z-index: 1050;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
}

.sidebar-header span {
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-header span {
    display: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-title {
    padding: 12px 20px;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
}

.sidebar.collapsed .menu-title {
    display: none;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: #eafff3;
    text-decoration: none;
    transition: 0.2s;
}

.menu-item a:hover,
.menu-item.active a {
    background: rgba(255,255,255,0.18);
    border-left: 4px solid #8bc34a;
    color: #fff;
}

.menu-item i {
    font-size: 18px;
    min-width: 24px;
}

.sidebar.collapsed .menu-item span {
    display: none;
}

/* ================= TOPBAR ================= */
.topbar {
    /* height: 64px; */
    background: #1b5e20;
    color: #fff;
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: space-between; */
    padding: 0 20px;
    /* margin-left: 260px; */
    transition: all 0.3s ease;
}

.sidebar.collapsed ~ .topbar {
    margin-left: 80px;
}

/* ================= CONTENT ================= */
main {
    margin-left: 260px;
    padding: 20px;
    transition: all 0.3s ease;
}

.sidebar.collapsed ~ main {
    margin-left: 80px;
}

/* ================= MOBILE ================= */
#sidebarOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1049;
}

@media (max-width: 992px) {
    .sidebar {
        left: -260px;
    }
    .sidebar.show {
        left: 0;
    }
    .topbar,
    main {
        margin-left: 0 !important;
    }
    #sidebarOverlay.show {
        display: block;
    }
}

.kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px
}

.kpi .label {
    font-size: 13px;
    color: var(--muted)
}

.kpi .value {
    font-size: 20px;
    font-weight: 700;
    margin-top: 8px;
    color: var(--brand)
}

.colorgold {
    color: #4caf50;
}

.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single .select2-selection__rendered{
    height: 36px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
    top: 5px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height: 35px;
}




/* HEADER BASE */
.main-header{
    background:#1b5e20;
    padding:12px 0;
    position:sticky;
    top:0;
    z-index:999;
}

/* FLEX LAYOUT */
.header-wrapper{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

/* BRAND */
.brand{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
}

.brand-text h5{
    margin:0;
    font-size:17px;
    color:#d4a017;
    font-weight:700;
}

.brand-text span{
    font-size:12px;
    color:#cfe0ff;
}

/* MENU */
.menu{
    display:flex;
    gap:35px;
    list-style:none;
    margin:0;
    padding:0;
}

.menu a{
    color:white;
    text-decoration:none;
    padding-bottom:4px;
    position:relative;
}

.menu a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:2px;
    background:#ffcc00;
    transition:0.3s;
}

.menu a:hover::after,
.menu a.active::after{
    width:100%;
}

/* RIGHT */
.header-right{
    display:flex;
    align-items:center;
    gap:12px;
}

/* LOGIN BUTTON */
.btn-login{
    border:1px solid #fff;
    background:none;
    color:white;
    padding:6px 14px;
    border-radius:6px;
    text-decoration:none;
}

.btn-login:hover{
    background:#ffcc00;
    color:#000;
}

/* MOBILE MENU */
.mobile-menu{
    position:fixed;
    /* top:70px; */
    left:-100%;
    width:240px;
    height:100%;
    background:#1b5e20;
    padding:20px;
    transition:0.3s;
    z-index: 99999;
}

.mobile-menu a{
    display:block;
    color:white;
    padding:12px 0;
    text-decoration:none;
    border-bottom:1px solid rgba(255,255,255,.3);
}

.mobile-menu.show{
    left:0;
}
/* OVERLAY */
.menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.4);
    z-index:998;
    display:none;
}

/* MOBILE MENU IMPROVED */
.mobile-menu{
    position:fixed;
    top:0;
    left:-260px;
    width:260px;
    height:100vh;
    background:#1b5e20;
    padding:80px 20px 20px;
    transition:0.3s ease;
    z-index:999;
    overflow-y:auto;
}

/* SHOW STATE */
.mobile-menu.show{
    left:0;
}

.menu-overlay.show{
    display:block;
}

/* Prevent body scroll */
body.menu-open{
    overflow:hidden;
}

/* MOBILE HEADER TUNING */
@media (max-width: 768px){

    .brand{
        align-items:flex-start;
    }

    .brand-text h5{
        font-size:15px;
        line-height:1.2;
    }

    /* Hide long subtitle on mobile */
    .brand-text span{
        display:none;
    }

    .main-header{
        padding:10px 0;
    }

    .header-right{
        gap:8px;
    }

    .btn-login{
        padding:5px 10px;
        font-size:13px;
    }

    #menuToggle{
        padding:5px 10px;
        font-size:16px;
    }
}
