:root {
    --bg-dark-1: #0a0a0b;
    --bg-dark-2: #141416;
    --bg-dark-3: #1c1c1f;
    --text-main: #ffffff;
    --text-muted: #8a8a8e;
    --accent: #A3D133;
    --accent-hover: #b4e044;
    --accent-light: rgba(163, 209, 51, 0.1);
    --border: rgba(255, 255, 255, 0.08);

    --c-cipinang: #3b82f6;
    --c-cakung: #f59e0b;
    --c-bali: #A3D133;
    --c-depok: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;

    --sidebar-w: 280px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glass: rgba(255, 255, 255, 0.03);
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark-1);
    color: var(--text-main);
    min-height: 100vh;
    overflow: hidden;
}

/* Components */
.hidden {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark-1);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-dark-3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.brand-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--c-cakung) !important;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
}

.btn.primary {
    background: var(--accent);
    color: #000;
}

.btn.primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 15px rgba(163, 209, 51, 0.4);
    transform: translateY(-2px);
}

.btn.secondary {
    background: var(--bg-dark-3);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn.sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn.xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.btn-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon.danger:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.btn.danger-outline {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn.danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-dark-2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper {
    background: white;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.brand-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-icon-sm {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin: 1.5rem 1.5rem 0.5rem;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-item:hover {
    color: var(--accent);
    background: rgba(163, 209, 51, 0.05);
}

.nav-item.active {
    background: var(--accent);
    color: #000;
    font-weight: 700;
}

.nav-item.active i {
    color: #000;
}

.nav-item i {
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-dark-3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
}

.user-details {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}

.user-details .role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark-1);
}

.top-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

@media (max-width: 768px) {
    .top-header {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        position: sticky;
        top: 0;
        background: var(--bg-dark-1);
        border-bottom: 1px solid var(--border);
    }
}

.top-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

.header-tools {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.status-indicator {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Views Container - CRITICAL FIX */
.views-container {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 0;
}

.content-view {
    padding: 2rem;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.content-view.hidden {
    display: none !important;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.card {
    background: var(--bg-dark-2);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-stat {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

.c-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.c-green {
    background: var(--accent-light);
    color: var(--accent);
}

.c-orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.c-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.c-red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-info .value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-top: 0.25rem;
}

/* Chart Area */
.chart-container h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.warehouse-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    width: 150px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bar-track {
    flex: 1;
    height: 12px;
    background: var(--bg-dark-3);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.bar-fill.c-blue {
    background: #3b82f6;
}

.bar-fill.c-orange {
    background: #f59e0b;
}

.bar-fill.c-green {
    background: var(--accent);
}

.bar-fill.c-purple {
    background: #8b5cf6;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-full {
    margin-top: 1.5rem;
}

.low-stock-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.low-stock-item {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.low-stock-info {
    display: flex;
    flex-direction: column;
}

.low-stock-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.low-stock-sku {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.low-stock-qty {
    font-weight: 700;
    color: var(--danger);
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
}

.mini-table th {
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.mini-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    border-bottom: 1px dotted var(--border);
}

.text-accent {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.bar-fill.c-blue {
    background: var(--c-cipinang);
}

.bar-fill.c-yellow {
    background: var(--c-cakung);
}

.bar-fill.c-green {
    background: var(--c-bali);
}

.bar-fill.c-purple {
    background: var(--c-depok);
}

/* Table Section */
.table-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    background: var(--bg-dark-2);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 0.5rem;
    color: white;
}

.table-wrapper {
    background: var(--bg-dark-2);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow-x: auto;
    /* Enable horizontal scroll */
    width: 100%;
    border-radius: 12px;
    background: var(--bg-dark-2);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th {
    text-align: left;
    padding: 1.25rem 1rem;
    background: var(--bg-dark-3);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Table Utilities */
.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.badge-cat {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.font-mono {
    font-family: 'Consolas', monospace;
    color: var(--text-muted);
}

.font-medium {
    font-weight: 500;
}

.text-muted {
    color: var(--text-muted);
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* Highlight Colors for Table Headers/Cells */
.highlight-cipinang {
    color: var(--c-cipinang) !important;
}

.highlight-cakung {
    color: var(--c-cakung) !important;
}

.highlight-bali {
    color: var(--c-bali) !important;
}

.highlight-depok {
    color: var(--c-depok) !important;
}

.highlight-cipinang {
    color: #3b82f6 !important;
}

.highlight-cakung {
    color: #f59e0b !important;
}

.highlight-bali {
    color: var(--accent) !important;
}

.highlight-depok {
    color: #8b5cf6 !important;
}

.font-bold {
    font-weight: 700;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Slightly darker */
    z-index: 9999 !important;
    /* Nuked: Ensure always on top */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.modal-content {
    background: var(--bg-dark-2);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    /* Enable scroll if height is small */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.large-modal {
    max-width: 900px;
}

/* Fix for smaller screens/laptops */
@media (max-width: 960px) {
    .large-modal {
        max-width: 95vw !important;
        padding: 1.5rem !important;
    }
}

.modal h2 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    background: var(--bg-dark-1);
    border: 1px solid var(--border);
    padding: 0.85rem;
    border-radius: 12px;
    color: white;
    transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-dark-3);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border);
}

.row {
    display: flex;
    gap: 1rem;
}

@media (max-width: 600px) {
    .row {
        flex-direction: column;
        gap: 0;
    }

    .row .form-group {
        width: 100% !important;
    }
}

.half {
    flex: 1;
}

.quarter {
    flex: 1;
    min-width: 80px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn.text {
    background: transparent;
    color: var(--text-muted);
}

.btn.text:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Login */
.login-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #1c1c1f 0%, #0a0a0b 100%);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: var(--bg-dark-2);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.login-header h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.full-width {
    width: 100%;
    justify-content: center;
}

.error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.hidden-content {
    display: none !important;
}

.app-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Mobile Responsive Components */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: inline-flex !important;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow: hidden;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 2000;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.8);
    }

    .sidebar.show {
        left: 0;
        visibility: visible;
    }

    /* Overlay for mobile when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1500;
        transition: 0.3s;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        height: 100vh;
        overflow-y: auto;
    }

    .views-container {
        padding-bottom: 80px;
        /* Space for mobile navigation if any */
    }

    .content-view {
        padding: 1rem;
        position: relative;
        /* Revert from absolute for natural scrolling on mobile */
    }

    .top-header h2 {
        font-size: 1.25rem;
    }

    .header-tools {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .header-tools .btn {
        width: 100%;
        justify-content: center;
        font-size: 0.75rem;
        padding: 0.6rem 0.5rem;
    }

    .header-tools .status-indicator {
        grid-column: span 2;
        justify-content: center;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .table-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-bar {
        width: 100% !important;
    }

    /* Modal Mobile Adjustments */
    .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0;
        margin: 0;
        padding: 1.5rem !important;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Table Mobile Optimizations */
    table thead {
        display: none;
        /* Hide headers on very small screens or use custom display */
    }

    table,
    tbody,
    tr,
    td {
        display: block;
        width: 100%;
    }

    tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--bg-dark-3);
        padding: 1rem;
    }

    td {
        border: none;
        padding: 0.25rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        text-align: left;
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    /* Special case for Image and Info in table */
    td:first-child,
    td:nth-child(2) {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border);
        margin-bottom: 0.5rem;
    }

    td:first-child::before,
    td:nth-child(2)::before {
        display: none;
    }

    td:last-child {
        justify-content: center;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
        padding-top: 1rem;
    }
}

/* Settings View */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.action-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.action-info strong {
    font-size: 0.9rem;
}

.action-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.danger-zone {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.danger-zone:hover {
    opacity: 1;
}

/* Visibility Control */
.super-admin-only {
    display: none !important;
}

body.role-super-admin .super-admin-only {
    display: block !important;
}

nav .super-admin-only.nav-item {
    display: flex !important;
}

nav .super-admin-only.nav-section-title {
    display: block !important;
}

/* Scrollbar for mini tables */
.table-wrapper.mini {
    max-height: 300px;
    overflow-y: auto;
}

/* Scanner Styling */
#reader {
    border: none !important;
}

#reader video {
    border-radius: 12px;
}

#reader__scan_region {
    background: #000 !important;
}

#reader__dashboard_section_csr button {
    background: var(--accent) !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    color: #000 !important;
    font-weight: 600 !important;
    margin-top: 10px !important;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Audit Log Styles */
.audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.audit-table th,
.audit-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.audit-table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: var(--text-muted);
}

.audit-log-time {
    color: var(--accent);
    font-family: 'Courier New', Courier, monospace;
}

.audit-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.audit-badge.add {
    background: rgba(163, 209, 51, 0.2);
    color: #A3D133;
}

.audit-badge.edit {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.audit-badge.delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.audit-badge.system {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.audit-detail {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Visibility Rules - High Specificity */
.super-admin-only {
    display: none !important;
}

body.role-super-admin .super-admin-only.nav-item {
    display: flex !important;
}

body.role-super-admin .super-admin-only.nav-section-title {
    display: block !important;
}

/* Explicit fallback for any other super-admin-only elements */
body.role-super-admin .super-admin-only:not(.nav-item):not(.nav-section-title) {
    display: block !important;
}