/* ==========================================================================
   Accurate-style Layout & Multi-Tab System for Mizan Cloud
   ========================================================================== */

/* Main App Shell Container */
.accurate-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 1. Top Navbar / Header Bar */
.accurate-topbar {
    height: 44px;
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1060;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.accurate-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.accurate-topbar-brand img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    padding: 1px;
}

.accurate-topbar-brand .brand-badge {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.accurate-topbar-search {
    position: relative;
    width: 280px;
}

.accurate-topbar-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 12px 4px 32px;
    font-size: 12px;
    color: #ffffff;
    outline: none;
    transition: all 0.2s;
}

.accurate-topbar-search input::placeholder {
    color: #94a3b8;
}

.accurate-topbar-search input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.accurate-topbar-search i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
}

.accurate-topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.accurate-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px 3px 6px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.accurate-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.accurate-action-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.accurate-action-btn:hover {
    color: #ffffff;
}

/* 2. Top Tab Bar (Multi-Tab System) */
.accurate-tabbar-container {
    height: 38px;
    background: #e2e8f0;
    border-bottom: 2px solid #cbd5e1;
    display: flex;
    align-items: flex-end;
    padding: 0 8px;
    overflow: hidden;
    position: relative;
    z-index: 1050;
}

.accurate-tabbar-list {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0;
}

.accurate-tabbar-list::-webkit-scrollbar {
    display: none;
}

.accurate-tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    height: 34px;
    background: #cbd5e1;
    color: #475569;
    border-radius: 8px 8px 0 0;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: all 0.15s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    position: relative;
}

.accurate-tab-item:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Tab Aktif Bergaya Mizan Cloud (Purple Indigo Gradient) */
.accurate-tab-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 600;
    border-color: #556cd6;
    box-shadow: 0 -2px 8px rgba(102, 126, 234, 0.35);
    z-index: 2;
}

.accurate-tab-item.active i {
    color: #ffffff;
}

.accurate-tab-item.active .tab-close-btn {
    color: rgba(255, 255, 255, 0.75);
}

.accurate-tab-item.active .tab-close-btn:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.25);
}

.tab-close-btn {
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 0;
    cursor: pointer;
    transition: all 0.15s;
    margin-left: 2px;
}

.tab-close-btn:hover {
    background: #cbd5e1;
    color: #667eea;
}

/* 3. Main Workspace Area (Left Icon Bar + Right Content) */
.accurate-main-body {
    display: flex;
    flex: 1;
    height: calc(100vh - 82px);
    height: calc(100dvh - 82px);
    overflow: hidden;
    position: relative;
}

/* 4. Narrow Left Icon Sidebar */
.accurate-icon-bar {
    width: 58px;
    background-color: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    z-index: 1040;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.icon-bar-item {
    width: 50px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    margin-bottom: 6px;
    transition: all 0.15s ease-in-out;
    position: relative;
    border: none;
    background: transparent;
}

.icon-bar-item i {
    font-size: 18px;
    margin-bottom: 3px;
}

.icon-bar-item .icon-label {
    font-size: 9.5px;
    text-align: center;
    line-height: 1;
    font-weight: 500;
}

.icon-bar-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.icon-bar-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.icon-bar-item.active::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #667eea;
}

/* 5. Accurate Floating Flyout Drawer / Popover Menu */
.accurate-flyout-drawer {
    position: absolute;
    left: 58px;
    top: 0;
    bottom: 0;
    width: 480px;
    max-width: calc(100vw - 64px);
    background: #ffffff;
    box-shadow: 6px 0 25px rgba(0, 0, 0, 0.18);
    z-index: 1045;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: drawerFadeIn 0.18s ease-out;
    border-right: 1px solid #e2e8f0;
}

@keyframes drawerFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flyout-header {
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flyout-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flyout-close-btn {
    border: none;
    background: transparent;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    border-radius: 4px;
    padding: 4px 8px;
}

.flyout-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.flyout-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

/* Accurate-style Colorful Grid Cards */
.accurate-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.accurate-tile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    min-height: 96px;
}

.accurate-tile-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
    background: #f8fafc;
}

.accurate-tile-card .tile-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
    transition: transform 0.18s;
}

.accurate-tile-card:hover .tile-icon-box {
    transform: scale(1.08);
}

.accurate-tile-card .tile-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

/* Section Header in Flyout */
.flyout-section-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.6px;
    margin: 16px 0 10px 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* List Style Items for Links & Shortcuts */
.accurate-menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.accurate-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.accurate-list-item:hover {
    background-color: #f1f5f9;
    color: #0284c7;
    padding-left: 15px;
}

.accurate-list-item i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: #64748b;
}

.accurate-list-item:hover i {
    color: #0284c7;
}

/* 6. Workspace Panel (Right Side) */
.accurate-workspace {
    flex: 1;
    overflow-y: auto;
    background: #f1f5f9;
    padding: 16px 20px;
}

/* 7. Dashboard Customizable Header & Toolbar */
.dashboard-top-toolbar {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.dashboard-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-add-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.25);
    transition: all 0.2s;
}

.btn-add-widget:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.35);
}

.dashboard-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-profile-select {
    width: 210px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    padding: 5px 10px;
    background-color: #f8fafc;
}

.btn-dashboard-control {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-dashboard-control.btn-add:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.btn-dashboard-control.btn-del:hover {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

/* 8. Dashboard Widgets Styling */
.widget-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.widget-card-header {
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-card-header .widget-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-btn-action {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
}

.widget-btn-action:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.widget-btn-action.btn-remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

.widget-card-body {
    padding: 16px;
    flex: 1;
}

/* Widget Modal / Drawer */
.widget-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease-out;
}

.widget-modal-dialog {
    background: #ffffff;
    border-radius: 12px;
    width: 640px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.widget-modal-header {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
}

.widget-catalog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.15s;
}

.widget-catalog-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* 9. Non-Dashboard Tab Generic Workplace */
.accurate-tab-view {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    min-height: calc(100vh - 120px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.tab-view-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-view-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Daftar Laporan (Accurate Two-Panel Report Hub)
   ========================================================================== */
.daftar-laporan-container {
    display: flex;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    min-height: calc(100vh - 165px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Left Column: Kelompok Laporan */
.report-categories-sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 16px 10px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    user-select: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.report-category-item i {
    font-size: 15px;
    width: 20px;
    text-align: center;
    color: #64748b;
    transition: color 0.15s;
}

.report-category-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.report-category-item:hover i {
    color: #667eea;
}

/* Active Category Pill (Mizan Cloud Signature Gradient - No Red!) */
.report-category-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.35);
}

.report-category-item.active i {
    color: #ffffff;
}

.report-category-item .badge-count {
    margin-left: auto;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
}

.report-category-item.active .badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Right Column: Isi Laporan */
.report-content-panel {
    flex: 1;
    padding: 20px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.report-header-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.report-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-search-box {
    position: relative;
    width: 280px;
}

.report-search-box input {
    width: 100%;
    padding: 7px 12px 7px 34px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    background: #f8fafc;
}

.report-search-box input:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.report-search-box i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}

/* 2-Column Grid of Report Items (Accurate Style) */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 28px;
}

.report-card-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    background: #ffffff;
    position: relative;
}

.report-card-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.report-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #eff6ff;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.15s;
    border: 1px solid #dbeafe;
}

.report-card-item:hover .report-card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
}

.report-card-body {
    flex: 1;
    min-width: 0;
}

.report-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.report-card-item:hover .report-card-title {
    color: #4f46e5;
}

.report-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.report-star-btn {
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    transition: color 0.15s;
    margin-left: 6px;
}

.report-star-btn:hover,
.report-star-btn.active {
    color: #f59e0b;
}

/* ==========================================================================
   Comprehensive Tablet & Mobile Responsiveness
   ========================================================================== */

/* Flyout Backdrop */
.accurate-flyout-backdrop {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1042;
    animation: backdropFadeIn 0.15s ease-out;
}

@keyframes backdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* TABLET (max-width: 991.98px) */
@media (max-width: 991.98px) {
    /* Header Bar */
    .accurate-topbar {
        padding: 0 12px;
    }
    .accurate-topbar-search {
        width: 190px;
    }
    
    /* Workspace */
    .accurate-workspace {
        padding: 12px 14px;
    }
    
    /* Flyout Drawer on Tablet */
    .accurate-flyout-drawer {
        width: 420px;
        max-width: calc(100vw - 64px);
    }
    .accurate-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    /* Daftar Laporan on Tablet */
    .daftar-laporan-container {
        min-height: auto;
    }
    .report-categories-sidebar {
        width: 190px;
        padding: 12px 6px;
    }
    .report-category-item {
        padding: 8px 10px;
        font-size: 12.5px;
        gap: 8px;
    }
    .report-content-panel {
        padding: 16px 18px;
    }
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* MOBILE (< 768px) */
@media (max-width: 767.98px) {
    /* Topbar */
    .accurate-topbar {
        height: 42px;
        padding: 0 10px;
    }
    .accurate-topbar-brand {
        font-size: 14px;
        gap: 6px;
    }
    .accurate-topbar-brand img {
        width: 24px;
        height: 24px;
    }
    .accurate-topbar-brand .brand-badge {
        display: none;
    }
    .accurate-topbar-search {
        display: none;
    }
    
    /* Multi-Tab Bar */
    .accurate-tabbar-container {
        height: 36px;
        padding: 0 4px;
    }
    .accurate-tab-item {
        height: 32px;
        padding: 4px 10px;
        font-size: 11.5px;
        max-width: 140px;
    }
    .accurate-tab-item span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Body & Sidebar */
    .accurate-main-body {
        height: calc(100vh - 78px);
        height: calc(100dvh - 78px);
    }
    .accurate-icon-bar {
        width: 50px;
        padding: 6px 0;
    }
    .icon-bar-item {
        width: 44px;
        height: 42px;
        margin-bottom: 4px;
    }
    .icon-bar-item i {
        font-size: 16px;
        margin-bottom: 2px;
    }
    .icon-bar-item .icon-label {
        font-size: 8.5px;
    }
    
    /* Flyout Drawer Fullscreen Sheet on Mobile */
    .accurate-flyout-drawer {
        position: fixed;
        left: 0;
        top: 78px;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-right: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        z-index: 1050;
    }
    .accurate-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .accurate-tile-card {
        padding: 10px 8px;
        min-height: 80px;
    }
    .tile-icon-box {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-bottom: 6px;
    }
    .tile-title {
        font-size: 11.5px;
    }
    
    /* Workspace */
    .accurate-workspace {
        padding: 10px 8px;
    }
    
    /* Dashboard Toolbar on Mobile */
    .dashboard-top-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    .dashboard-toolbar-left {
        width: 100%;
        justify-content: space-between;
    }
    .dashboard-toolbar-right {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }
    .dashboard-date-box {
        flex: 1 1 130px;
        min-width: 120px;
    }
    .dashboard-profile-box {
        flex: 1 1 160px;
        width: 100%;
    }
    .dashboard-profile-select {
        flex: 1;
        width: auto;
    }
    
    /* Widgets on Mobile */
    .widget-card {
        border-radius: 8px;
    }
    .widget-card-header {
        padding: 10px 12px;
    }
    .widget-title {
        font-size: 13px;
    }
    .widget-card-body {
        padding: 12px;
    }
    .stat-card-new {
        padding: 10px 12px;
    }
    .stat-value-new {
        font-size: 17px;
    }
    .stat-label-top {
        font-size: 10.5px;
    }
    
    /* Daftar Laporan on Mobile (Horizontal Slideable Pill Carousel) */
    .daftar-laporan-container {
        flex-direction: column;
        border-radius: 8px;
        min-height: auto;
        overflow: hidden;
    }
    .report-categories-sidebar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        padding: 10px 12px !important;
        gap: 8px !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        background: #ffffff;
    }
    .report-categories-sidebar::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    .report-categories-sidebar .border-bottom {
        display: none !important;
    }
    .report-category-item {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        padding: 7px 14px !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        border-radius: 20px !important;
        background: #f1f5f9;
        color: #475569;
        border: 1px solid #e2e8f0;
        gap: 7px !important;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: all 0.2s ease;
    }
    .report-category-item i {
        font-size: 13px !important;
        width: auto !important;
        margin: 0 !important;
    }
    .report-category-item .badge-count {
        font-size: 11px !important;
        padding: 1px 7px !important;
        border-radius: 10px !important;
        margin-left: 2px !important;
        background: rgba(0, 0, 0, 0.07);
        color: #475569;
    }
    .report-category-item.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: #ffffff !important;
        border-color: #556cd6 !important;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35) !important;
    }
    .report-category-item.active i {
        color: #ffffff !important;
    }
    .report-category-item.active .badge-count {
        background: rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
    }
    .report-content-panel {
        padding: 12px 10px;
    }
    .report-header-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }
    .report-header-title {
        font-size: 16px;
    }
    .report-search-box {
        width: 100%;
    }
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .report-card-item {
        padding: 10px;
        gap: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin: 0;
    }
    .report-card-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .report-card-title {
        font-size: 13px;
    }
    .report-card-desc {
        font-size: 11px;
    }
    
    /* Modals on Mobile */
    .widget-modal-dialog {
        width: 94% !important;
        max-width: 94% !important;
        margin: 16px auto;
        border-radius: 10px;
    }
    .widget-modal-body {
        padding: 14px !important;
        max-height: calc(85vh - 120px);
        overflow-y: auto;
    }
}

/* EXTRA SMALL MOBILE (< 480px) */
@media (max-width: 479.98px) {
    .accurate-icon-bar {
        width: 44px;
    }
    .icon-bar-item {
        width: 38px;
        height: 38px;
    }
    .icon-bar-item .icon-label {
        display: none;
    }
    .accurate-main-body {
        height: calc(100vh - 78px);
        height: calc(100dvh - 78px);
    }
    .accurate-tab-item {
        max-width: 110px;
        padding: 4px 8px;
    }
}
