
        /* --------------- ROOT � Dynamics 365 Style --------------- */
        :root {
            /* Dynamics 365 primary � deep navy */
            --primary: #0b2b4a;
            --primary-dark: #071f33;
            --primary-light: #d4e0f0;
            --primary-soft: #eaf0f8;
            --primary-bg: #f2f6fc;
            --topbar-bg: #0b2b4a;

            --sidebar-width: 260px;
            --sidebar-collapsed: 68px;
            --topbar-height: 56px;
            --bg-body: #f2f6fc;
            --text-main: #0b1a2f;
            --text-muted: #4a5a72;
            --border-color: #e2e8f0;
            --shadow-sm: 0 1px 2px rgba(11, 43, 74, 0.06);
            --shadow-md: 0 4px 20px rgba(11, 43, 74, 0.08);
            --shadow-lg: 0 12px 40px rgba(11, 43, 74, 0.12);
            --radius: 12px;
            --transition: 0.28s ease;

            /* semantic � kept for workflow */
            --c-blue: #2563eb;
            --c-emerald: #059669;
            --c-emerald-soft: #d1fae5;
            --c-rose: #e11d48;
            --c-rose-soft: #fce7f3;
            --c-amber: #d97706;
            --c-amber-soft: #fef3c7;
            --c-indigo: #4f46e5;
            --c-indigo-soft: #e0e7ff;
            --c-teal: #0d9488;
            --c-teal-soft: #ccfbf1;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
        }

        body {
            background: var(--bg-body);
            color: var(--text-main);
            height: 100vh;
            overflow: hidden;
        }

        button {
            font-family: inherit;
        }

        .icon-btn {
            background: transparent;
            border: none;
            color: #fff;
            font-size: 17px;
            cursor: pointer;
            padding: 6px;
            border-radius: 6px;
            transition: background 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .icon-btn:hover {
            background: rgba(255, 255, 255, 0.16);
        }

        /* --------------- SIDEBAR --------------- */
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: var(--sidebar-width);
            height: 100vh;
            background: #ffffff;
            border-right: 1px solid var(--border-color);
            transition: width var(--transition);
            z-index: 900;
            display: flex;
            flex-direction: column;
            box-shadow: 2px 0 16px rgba(0, 0, 0, 0.02);
        }

        .sidebar-header {
            height: var(--topbar-height);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 14px;
            background: var(--topbar-bg);
            border-bottom: 1px solid rgba(255, 255, 255, 0.10);
            min-height: var(--topbar-height);
        }

        .brand {
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 9px;
            white-space: nowrap;
            overflow: hidden;
            background: none;
            border: none;
            cursor: default;
            padding: 6px 4px;
            border-radius: 6px;
            letter-spacing: -0.2px;
            line-height: 1.4;
        }
        .brand i {
            font-size: 20px;
            flex-shrink: 0;
            opacity: 0.95;
        }
        .brand span {
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sidebar-toggle-btn {
            color: rgba(255, 255, 255, 0.85);
            font-size: 15px;
            padding: 4px 8px;
        }
        .sidebar-toggle-btn:hover {
            color: #fff;
        }

        .menu {
            list-style: none;
            padding: 10px 8px;
            flex-grow: 1;
            overflow-y: auto;
            overflow-x: hidden;
        }
        .menu::-webkit-scrollbar {
            width: 4px;
        }
        .menu::-webkit-scrollbar-thumb {
            background: #d1d9e6;
            border-radius: 4px;
        }
        .menu {
            scrollbar-width: thin;
            scrollbar-color: #d1d9e6 transparent;
        }

        .menu li {
            position: relative;
            margin-bottom: 0;
        }
        .menu a {
            display: flex;
            align-items: center;
            padding: 10px 14px;
            text-decoration: none;
            color: var(--text-main);
            border-radius: 8px;
            transition: all 0.18s;
            cursor: pointer;
            white-space: nowrap;
            font-size: 13.5px;
            font-weight: 500;
            gap: 4px;
            line-height: 1.5;
            min-height: 44px;
        }
        .menu a i {
            font-size: 17px;
            min-width: 22px;
            color: var(--text-muted);
            transition: color 0.2s;
            text-align: center;
            flex-shrink: 0;
        }
        .menu a span {
            margin-left: 10px;
            transition: opacity var(--transition);
            flex: 1;
        }
        .menu a .arrow {
            margin-left: auto;
            font-size: 11px;
            transition: transform 0.25s ease;
            color: var(--text-muted);
            flex-shrink: 0;
        }
        .menu a:hover {
            background: #f1f5f9;
            color: var(--primary);
        }
        .menu a:hover i {
            color: var(--primary);
        }

        .menu li.active > a {
            background: var(--primary-light);
            color: var(--primary);
            border-left: 3px solid var(--primary);
            border-radius: 0 8px 8px 0;
            padding-left: 11px;
        }
        .menu li.active > a i {
            color: var(--primary);
        }

        .submenu-wrapper {
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .has-submenu.open > .submenu-wrapper {
            max-height: 400px;
        }

        .submenu {
            list-style: none;
            padding: 4px 0 6px 12px;
            border-left: 1px solid #edf2f7;
            margin-left: 24px;
        }
        .submenu li {
            margin-bottom: 0;
        }
        .submenu a {
            font-size: 13px;
            padding: 8px 12px;
            font-weight: 400;
            color: var(--text-muted);
            border-radius: 6px;
            min-height: 38px;
            line-height: 1.5;
        }
        .submenu a:hover {
            color: var(--primary);
            background: #f1f5f9;
        }
        .submenu li.active > a {
            color: var(--primary);
            font-weight: 600;
            background: var(--primary-light);
            border-left: none;
            padding-left: 12px;
        }
        .submenu a i {
            font-size: 5px;
            min-width: 14px;
            color: #cbd5e1;
        }
        .submenu li.active > a i {
            color: var(--primary);
        }

        .has-submenu.open > a .arrow {
            transform: rotate(90deg);
        }

        .sidebar-footer {
            padding: 8px 12px;
            border-top: 1px solid var(--border-color);
            background: #fafcff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
            min-height: 48px;
        }

        .user-mini {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 6px;
            transition: background 0.2s;
            line-height: 1.4;
        }
        .user-mini:hover {
            background: #f1f5f9;
        }
        .user-mini .avatar-circle {
            background: var(--primary);
            border: none;
            width: 26px;
            height: 26px;
            font-size: 10px;
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            flex-shrink: 0;
        }
        .user-mini span {
            font-size: 12.5px;
            font-weight: 500;
            line-height: 1.4;
        }

        .footer-dots-btn {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 16px;
            line-height: 1;
            cursor: pointer;
            padding: 6px 10px;
            border-radius: 6px;
            transition: all 0.2s;
        }
        .footer-dots-btn:hover {
            background: #f1f5f9;
            color: var(--text-main);
        }

        .dropup-menu {
            display: none;
            position: absolute;
            bottom: 56px;
            right: 12px;
            background: #fff;
            box-shadow: var(--shadow-lg);
            border-radius: 10px;
            padding: 6px 0;
            min-width: 150px;
            border: 1px solid var(--border-color);
            z-index: 50;
        }
        .dropup-menu.show {
            display: block;
        }
        .dropup-menu a {
            display: block;
            padding: 9px 16px;
            text-decoration: none;
            color: var(--text-main);
            font-size: 13px;
            transition: background 0.15s;
            margin: 0 6px;
            border-radius: 6px;
            line-height: 1.5;
        }
        .dropup-menu a:hover {
            background: #f1f5f9;
            color: var(--primary);
        }

        /* -- COLLAPSED STATE -- */
        body.nav-collapsed .sidebar {
            width: var(--sidebar-collapsed);
        }
        body.nav-collapsed .sidebar-header {
            padding: 0;
            justify-content: center;
        }
        body.nav-collapsed .brand span {
            display: none;
        }
        body.nav-collapsed .sidebar-toggle-btn {
            display: none;
        }
        body.nav-collapsed .brand {
            cursor: pointer;
            justify-content: center;
            padding: 6px 0;
        }
        body.nav-collapsed .menu a span,
        body.nav-collapsed .menu a .arrow,
        body.nav-collapsed .user-mini span {
            display: none;
        }
        body.nav-collapsed .menu a {
            justify-content: center;
            padding: 10px 0;
        }
        body.nav-collapsed .menu a i {
            margin: 0;
        }
        body.nav-collapsed .sidebar-footer {
            justify-content: center;
            padding: 8px 0;
        }
        body.nav-collapsed .footer-dots-btn {
            display: none !important;
        }
        body.nav-collapsed .submenu-wrapper {
            max-height: 0 !important;
            overflow: hidden !important;
        }
        body.nav-collapsed .main-content {
            margin-left: var(--sidebar-collapsed);
        }
        body.nav-collapsed .topbar {
            left: var(--sidebar-collapsed);
        }

        /* --------------- TOPBAR --------------- */
        .topbar {
            position: fixed;
            top: 0;
            left: var(--sidebar-width);
            right: 0;
            height: var(--topbar-height);
            background: var(--topbar-bg);
            display: flex;
            align-items: center;
            padding: 0 18px;
            z-index: 1000;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
            transition: left var(--transition);
            min-height: var(--topbar-height);
        }

        .topbar-left {
            display: flex;
            align-items: center;
            flex: 1;
            gap: 12px;
        }

        .mobile-toggle-btn {
            display: none;
            font-size: 18px;
        }

        .search-box {
            display: flex;
            align-items: center;
            margin-left: auto;
            margin-right: 20px;
            background: rgba(255, 255, 255, 0.14);
            border-radius: 8px;
            padding: 0 14px;
            transition: all 0.3s;
            max-width: 320px;
            width: 100%;
            border: 1px solid transparent;
            backdrop-filter: blur(2px);
        }
        .search-box:focus-within {
            background: #fff;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
            border-color: rgba(255, 255, 255, 0.3);
        }
        .search-box input {
            background: transparent;
            border: none;
            padding: 8px 0;
            color: #fff;
            width: 100%;
            outline: none;
            font-size: 13.5px;
            line-height: 1.5;
        }
        .search-box input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }
        .search-box:focus-within input {
            color: #1e293b;
        }
        .search-box i {
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
        }
        .search-box:focus-within i {
            color: #64748b;
        }

        .topbar-right {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #fff;
            flex-shrink: 0;
        }

        .topbar-dropdown,
        .user-profile {
            position: relative;
            display: flex;
            align-items: center;
            padding: 7px 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
            gap: 8px;
            font-size: 13px;
            font-weight: 500;
            line-height: 1.4;
        }
        .topbar-dropdown:hover,
        .topbar-dropdown.active,
        .user-profile:hover,
        .user-profile.active {
            background: rgba(255, 255, 255, 0.14);
        }

        .dropdown-content {
            display: none;
            position: absolute;
            top: 46px;
            right: 0;
            background: #ffffff;
            min-width: 220px;
            box-shadow: var(--shadow-lg);
            border-radius: 12px;
            padding: 8px 0;
            color: var(--text-main);
            z-index: 200;
            border: 1px solid var(--border-color);
            opacity: 0;
            transform: translateY(-6px);
            transition: opacity 0.18s ease, transform 0.18s ease;
        }
        .dropdown-content.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        .dropdown-content a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 16px;
            text-decoration: none;
            color: var(--text-main);
            font-size: 13px;
            transition: all 0.15s;
            margin: 0 6px;
            border-radius: 6px;
            line-height: 1.5;
        }
        .dropdown-content a:hover {
            background: #f1f5f9;
            color: var(--primary);
        }
        .dropdown-divider {
            height: 1px;
            background: var(--border-color);
            margin: 6px 10px;
        }

        .notification-bell {
            position: relative;
            padding: 7px 10px;
        }
        .notification-bell i.fa-bell {
            font-size: 17px;
        }
        .notif-badge {
            position: absolute;
            top: 4px;
            right: 6px;
            background: #e11d48;
            color: #fff;
            font-size: 9px;
            font-weight: 700;
            line-height: 1;
            padding: 3px 5px;
            border-radius: 999px;
            border: 2px solid var(--topbar-bg);
            min-width: 8px;
            text-align: center;
        }
        .notification-panel {
            min-width: 350px;
            padding: 0;
            overflow: hidden;
        }
        .notif-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 18px 12px;
            border-bottom: 1px solid var(--border-color);
        }
        .notif-header span:first-child {
            font-size: 14px;
            font-weight: 600;
            color: #0f172a;
        }
        .notif-header .mark-read {
            font-size: 12px;
            color: var(--primary);
            font-weight: 500;
            cursor: pointer;
        }
        .notif-header .mark-read:hover {
            text-decoration: underline;
        }
        .notif-list {
            max-height: 320px;
            overflow-y: auto;
        }
        .notif-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 12px 18px;
            border-bottom: 1px solid #f1f5f9;
            text-decoration: none;
            color: var(--text-main);
            position: relative;
            transition: background 0.15s;
            line-height: 1.4;
        }
        .notif-item:last-child {
            border-bottom: none;
        }
        .notif-item:hover {
            background: #f8fafc;
        }
        .notif-item.unread {
            background: var(--primary-soft);
        }
        .notif-icon {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            flex-shrink: 0;
            color: #fff;
        }
        .notif-icon.blue {
            background: var(--primary);
        }
        .notif-icon.green {
            background: var(--c-emerald);
        }
        .notif-icon.amber {
            background: var(--c-amber);
        }
        .notif-icon.red {
            background: var(--c-rose);
        }
        .notif-body {
            flex: 1;
            min-width: 0;
        }
        .notif-body strong {
            display: block;
            font-size: 13px;
            color: #0f172a;
            font-weight: 600;
            margin-bottom: 2px;
        }
        .notif-body p {
            font-size: 12px;
            color: var(--text-muted);
            line-height: 1.4;
            margin-bottom: 4px;
        }
        .notif-time {
            font-size: 11px;
            color: #94a3b8;
        }
        .notif-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--primary);
            flex-shrink: 0;
            margin-top: 6px;
        }
        .notif-footer {
            text-align: center;
            padding: 10px;
            border-top: 1px solid var(--border-color);
        }
        .notif-footer a {
            font-size: 12.5px;
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
        }
        .notif-footer a:hover {
            text-decoration: underline;
        }

        .user-profile {
            padding: 5px 10px 5px 6px;
        }
        .avatar-circle {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            color: #fff;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        .user-profile-meta {
            display: flex;
            flex-direction: column;
            line-height: 1.3;
        }
        .user-profile-meta strong {
            font-size: 13px;
            font-weight: 600;
        }
        .user-profile-meta small {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.75);
            font-weight: 400;
        }
        .admin-dropdown {
            min-width: 210px;
        }
        .admin-dropdown-header {
            padding: 12px 16px 10px;
        }
        .admin-dropdown-header strong {
            display: block;
            font-size: 13.5px;
            color: #0f172a;
        }
        .admin-dropdown-header span {
            font-size: 12px;
            color: var(--text-muted);
        }

        /* --------------- MAIN CONTENT --------------- */
        .main-content {
            margin-top: var(--topbar-height);
            margin-left: var(--sidebar-width);
            padding: 20px 28px 40px;
            overflow-y: auto;
            transition: margin-left var(--transition);
            background: var(--bg-body);
            height: calc(100vh - var(--topbar-height));
        }

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

        .widget-card {
            border-radius: var(--radius);
            padding: 18px 20px 20px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            gap: 10px;
            position: relative;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.25s;
            background: #fff;
            min-height: 130px;
        }
        .widget-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }

        .widget-card .icon-chip {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: #fff;
            flex-shrink: 0;
        }

        .widget-card .card-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .widget-card .title {
            font-size: 11.5px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            color: var(--text-muted);
        }
        .widget-card .number {
            font-size: 26px;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.2;
        }
        .widget-card .number .rupee {
            font-size: 0.7em;
            font-weight: 600;
            margin-right: 1px;
        }

        /* Dynamics 365 � card variants with deeper navy accents */
        .card-emerald {
            background: linear-gradient(135deg, #f0f4f9 0%, #e4ebf5 100%);
            border-color: #d0dce8;
        }
        .card-emerald .icon-chip {
            background: var(--primary);
        }
        .card-emerald .number {
            color: var(--primary);
        }

        .card-rose {
            background: linear-gradient(135deg, #fff1f2 0%, #fce7f3 100%);
            border-color: #fbcfe8;
        }
        .card-rose .icon-chip {
            background: var(--c-rose);
        }
        .card-rose .number {
            color: #9f1239;
        }

        .card-blue {
            background: linear-gradient(135deg, #f0f4f9 0%, #e4ebf5 100%);
            border-color: #d0dce8;
        }
        .card-blue .icon-chip {
            background: var(--primary);
        }
        .card-blue .number {
            color: var(--primary);
        }

        .card-amber {
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border-color: #fcd34d;
        }
        .card-amber .icon-chip {
            background: var(--c-amber);
        }
        .card-amber .number {
            color: #92400e;
        }

        .card-indigo {
            background: linear-gradient(135deg, #f0f4f9 0%, #e4ebf5 100%);
            border-color: #d0dce8;
        }
        .card-indigo .icon-chip {
            background: var(--primary);
        }
        .card-indigo .number {
            color: var(--primary);
        }

        .card-teal {
            background: linear-gradient(135deg, #f0f4f9 0%, #e4ebf5 100%);
            border-color: #d0dce8;
        }
        .card-teal .icon-chip {
            background: var(--primary);
        }
        .card-teal .number {
            color: var(--primary);
        }

        .stat-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 16px;
            flex-wrap: wrap;
            margin-top: 2px;
        }
        .stat-row .stat-label {
            font-size: 12px;
            display: block;
            color: var(--text-muted);
            margin-bottom: 3px;
            font-weight: 500;
        }
        .stat-row .stat-right {
            text-align: right;
        }

        .charts-row {
            display: grid;
            grid-template-columns: 2fr 1.2fr 1.5fr;
            gap: 20px;
            margin-top: 0;
            align-items: stretch;
        }

        .chart-container {
            background: #fff;
            border-radius: var(--radius);
            padding: 18px 22px 22px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
        }
        .chart-title {
            font-size: 13px;
            font-weight: 600;
            color: #0f172a;
            margin-bottom: 16px;
            letter-spacing: 0.2px;
        }

        .bar-chart-wrapper {
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            height: 150px;
            padding: 8px 4px 30px 4px;
            border-bottom: 1px solid #e9edf4;
            flex: 1;
            gap: 8px;
            min-height: 120px;
        }
        .bar {
            flex: 1;
            max-width: 44px;
            min-width: 28px;
            height: var(--bar-height, 60%);
            background: var(--primary);
            border-radius: 4px 4px 0 0;
            transition: height 0.5s;
            position: relative;
            opacity: 0.9;
        }
        .bar:hover {
            opacity: 1;
        }
        .bar-label {
            position: absolute;
            bottom: -26px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 11px;
            color: var(--text-muted);
            font-weight: 500;
            white-space: nowrap;
        }

        .pie-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            flex: 1;
            flex-wrap: wrap;
        }
        .pie {
            width: 108px;
            height: 108px;
            border-radius: 50%;
            flex-shrink: 0;
            background: conic-gradient(var(--primary) 0% 20%,
                    var(--c-teal) 20% 40%,
                    var(--c-amber) 40% 55%,
                    var(--c-rose) 55% 70%,
                    var(--c-emerald) 70% 85%,
                    var(--c-indigo) 85% 100%);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }
        .pie-legend {
            display: flex;
            flex-direction: column;
            gap: 6px;
            font-size: 12px;
        }
        .pie-legend div {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .activity-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }
        .activity-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #f1f5f9;
            font-size: 13px;
            line-height: 1.4;
        }
        .activity-item:last-child {
            border-bottom: none;
        }
        .activity-icon {
            color: #94a3b8;
            margin-right: 12px;
            font-size: 14px;
            width: 18px;
            text-align: center;
            flex-shrink: 0;
        }
        .activity-info {
            flex: 1;
        }
        .activity-info strong {
            display: block;
            color: #0f172a;
            font-weight: 600;
            font-size: 13px;
        }
        .activity-info span {
            color: var(--text-muted);
            font-size: 11.5px;
        }

        .status-badge {
            padding: 2px 12px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .badge-open {
            background: var(--primary-light);
            color: var(--primary);
        }
        .badge-proc {
            background: var(--c-amber-soft);
            color: #92400e;
        }
        .badge-comp {
            background: #e0f2fe;
            color: #0369a1;
        }

        /* --------------- RESPONSIVE --------------- */
        @media (max-width: 1200px) {
            .charts-row {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 992px) {
            .topbar-left .search-box {
                max-width: 180px;
                margin-right: 10px;
            }
            .dashboard-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                width: 280px !important;
                transform: translateX(-100%);
                transition: transform 0.3s ease;
            }
            .sidebar.open {
                transform: translateX(0);
            }
            .sidebar-header {
                padding: 0 16px !important;
                justify-content: space-between !important;
            }
            .brand span {
                display: inline !important;
            }
            .sidebar-toggle-btn {
                display: none !important;
            }

            .main-content,
            body.nav-collapsed .main-content {
                margin-left: 0;
            }
            .topbar,
            body.nav-collapsed .topbar {
                left: 0;
            }

            .mobile-toggle-btn {
                display: inline-flex;
            }

            .dashboard-grid {
                grid-template-columns: 1fr 1fr;
            }
            .charts-row {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .topbar-left .search-box {
                display: none;
            }
            .user-profile-meta {
                display: none;
            }
            .notification-panel {
                min-width: 300px;
                right: -60px;
            }
            .widget-card .number {
                font-size: 22px;
            }
            .widget-card {
                min-height: 110px;
            }

            .pie {
                width: 90px;
                height: 90px;
            }

            .bar-chart-wrapper {
                height: 140px;
                padding: 6px 2px 28px 2px;
                gap: 6px;
                min-height: 110px;
            }
            .bar {
                min-width: 24px;
                max-width: 36px;
            }
            .bar-label {
                font-size: 10px;
                bottom: -24px;
            }
        }

        @media (max-width: 480px) {
            .main-content {
                padding: 12px 14px 24px;
            }

            .dashboard-grid {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                margin-bottom: 14px;
            }
            .widget-card {
                padding: 12px 14px 14px;
                min-height: 90px;
                gap: 6px;
            }
            .widget-card .icon-chip {
                width: 30px;
                height: 30px;
                font-size: 12px;
            }
            .widget-card .title {
                font-size: 9px;
                letter-spacing: 0.3px;
            }
            .widget-card .number {
                font-size: 19px;
            }
            .widget-card .stat-label {
                font-size: 10px;
            }
            .widget-card .stat-right .number {
                font-size: 16px;
            }
            .widget-card[style*="grid-column:span 2;"] {
                grid-column: 1 / -1 !important;
            }

            .charts-row {
                gap: 12px;
            }
            .chart-container {
                padding: 12px 14px 16px;
            }
            .chart-title {
                font-size: 12px;
                margin-bottom: 10px;
            }

            .bar-chart-wrapper {
                height: 130px;
                padding: 6px 2px 26px 2px;
                gap: 5px;
                min-height: 100px;
                border-bottom-width: 1px;
            }
            .bar {
                min-width: 20px;
                max-width: 30px;
                border-radius: 3px 3px 0 0;
            }
            .bar-label {
                font-size: 9px;
                bottom: -22px;
            }

            .pie {
                width: 76px;
                height: 76px;
            }
            .pie-legend {
                font-size: 10px;
                gap: 4px;
            }
            .pie-legend .legend-dot {
                width: 8px;
                height: 8px;
            }
            .pie-wrapper {
                gap: 10px;
            }

            .activity-item {
                padding: 5px 0;
                font-size: 12px;
            }
            .activity-info strong {
                font-size: 12px;
            }
            .activity-info span {
                font-size: 10px;
            }
            .activity-icon {
                font-size: 12px;
                width: 16px;
                margin-right: 8px;
            }
            .status-badge {
                font-size: 9px;
                padding: 1px 10px;
            }

            .notification-panel {
                min-width: 280px;
                right: -80px;
            }
        }

        @media (max-width: 430px) {
            .main-content {
                padding: 10px 12px 20px;
            }
            .dashboard-grid {
                gap: 8px;
            }
            .widget-card {
                padding: 10px 10px 12px;
                min-height: 80px;
            }
            .widget-card .number {
                font-size: 17px;
            }
            .widget-card .icon-chip {
                width: 26px;
                height: 26px;
                font-size: 11px;
            }
            .widget-card .title {
                font-size: 8px;
            }
            .widget-card .stat-right .number {
                font-size: 14px;
            }
            .widget-card .stat-label {
                font-size: 9px;
            }

            .bar-chart-wrapper {
                height: 120px;
                padding: 6px 2px 24px 2px;
                gap: 4px;
                min-height: 90px;
            }
            .bar {
                min-width: 18px;
                max-width: 26px;
                border-radius: 2px 2px 0 0;
            }
            .bar-label {
                font-size: 8px;
                bottom: -20px;
            }

            .pie {
                width: 66px;
                height: 66px;
            }
            .pie-legend {
                font-size: 9px;
                gap: 3px;
            }
            .pie-legend .legend-dot {
                width: 7px;
                height: 7px;
            }
            .pie-wrapper {
                gap: 8px;
            }

            .chart-container {
                padding: 10px 12px 14px;
            }
            .chart-title {
                font-size: 10.5px;
                margin-bottom: 8px;
            }

            .activity-item {
                padding: 4px 0;
                font-size: 11px;
            }
            .activity-info strong {
                font-size: 11px;
            }
            .activity-info span {
                font-size: 9px;
            }
            .activity-icon {
                font-size: 11px;
                width: 14px;
                margin-right: 6px;
            }
            .status-badge {
                font-size: 8px;
                padding: 1px 8px;
            }
        }

        @media (max-width: 374px) {
            .main-content {
                padding: 8px 8px 16px;
            }
            .dashboard-grid {
                gap: 6px;
            }
            .widget-card {
                padding: 8px 8px 10px;
                min-height: 70px;
                gap: 4px;
            }
            .widget-card .number {
                font-size: 15px;
            }
            .widget-card .icon-chip {
                width: 22px;
                height: 22px;
                font-size: 10px;
            }
            .widget-card .title {
                font-size: 7px;
            }

            .bar-chart-wrapper {
                height: 100px;
                padding: 4px 2px 20px 2px;
                gap: 3px;
                min-height: 80px;
            }
            .bar {
                min-width: 14px;
                max-width: 20px;
                border-radius: 2px 2px 0 0;
            }
            .bar-label {
                font-size: 7px;
                bottom: -18px;
            }

            .pie {
                width: 56px;
                height: 56px;
            }
            .pie-legend {
                font-size: 8px;
                gap: 2px;
            }
            .pie-legend .legend-dot {
                width: 6px;
                height: 6px;
            }
            .pie-wrapper {
                gap: 6px;
            }

            .chart-container {
                padding: 8px 10px 12px;
            }
            .chart-title {
                font-size: 9.5px;
                margin-bottom: 6px;
            }

            .activity-item {
                padding: 3px 0;
                font-size: 10px;
            }
            .activity-info strong {
                font-size: 10px;
            }
            .activity-info span {
                font-size: 8.5px;
            }
            .activity-icon {
                font-size: 10px;
                width: 12px;
                margin-right: 4px;
            }
            .status-badge {
                font-size: 7px;
                padding: 1px 6px;
            }
        }
    