/* ========================================
   HELP DESK ADMIN - MASTER STYLES
   Modern Professional Admin Theme
   ======================================== */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Colors */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;

    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-active: #3b82f6;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
    --sidebar-border: rgba(255, 255, 255, 0.08);

    --header-bg: #ffffff;
    --header-border: #e2e8f0;
    --header-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

    --bg-page: #f5f6fa;
    --bg-card: #ffffff;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    /* Status Colors */
    --success: #22c55e;
    --success-bg: #dcfce7;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --info: #3b82f6;
    --info-bg: #dbeafe;

    /* Sizes */
    --sidebar-width: 260px;
    --header-height: 64px;
    --radius: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --transition-fast: 0.15s;
    --transition: 0.2s;
    --transition-slow: 0.3s;
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition-slow) ease;
    overflow: hidden;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

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

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 11px;
    color: var(--sidebar-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-close {
    display: none;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius);
    color: var(--sidebar-text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Sidebar User */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--sidebar-text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-role i {
    font-size: 6px;
    color: var(--success);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-title {
    display: block;
    padding: 8px 20px 4px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nav-list { margin: 0; padding: 0; }

.nav-item {
    margin: 2px 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.nav-link.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--sidebar-text-active);
}

.nav-link.active .nav-icon {
    background: var(--sidebar-active);
    color: #fff;
}

.nav-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all var(--transition);
}

.nav-link:hover .nav-icon {
    background: rgba(255, 255, 255, 0.12);
}

.nav-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nav-badge.ticket {
    background: rgba(168, 85, 247, 0.2);
    color: #c4b5fd;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.footer-version {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity var(--transition-slow) ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* ========================================
   MAIN WRAPPER
   ======================================== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-slow) ease;
}

/* ========================================
   TOP HEADER
   ======================================== */
.top-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition);
}

.menu-toggle:hover {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
}

.header-title {
    display: flex;
    flex-direction: column;
}

.page-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.breadcrumb i {
    font-size: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition);
    position: relative;
}

.header-btn:hover {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid #fff;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
}

.header-user:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.header-user-info {
    display: flex;
    flex-direction: column;
}

.header-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.header-user-email {
    font-size: 11px;
    color: var(--text-muted);
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* ========================================
   PAGE CONTENT
   ======================================== */
.page-content {
    flex: 1;
    padding: 24px;
}

/* ========================================
   SHARED PAGE HEADER
   ======================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-header .header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.page-header .email-count {
    background: var(--bg-page);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
    margin: 0;
    width: auto;
    height: auto;
    min-width: auto;
    min-height: auto;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: var(--bg-page);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #fff;
    color: var(--text-primary);
    border-color: #cbd5e1;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

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

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition);
}

.btn-icon:hover {
    background: var(--bg-page);
}

.btn-block { width: 100%; }

/* ========================================
   PANELS
   ======================================== */
.panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-header {
    padding: 14px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header i { color: var(--primary); }

.panel-body { padding: 20px; }

/* ========================================
   FORMS
   ======================================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-control {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    font-size: 14px;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

/* ========================================
   TABLES
   ======================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table tr {
    transition: background var(--transition-fast);
}

.table tr:hover {
    background: #f8fafc;
}

.table-responsive { overflow-x: auto; }

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.badge-new { background: var(--info-bg); color: #1d4ed8; }
.badge-pending { background: var(--warning-bg); color: #b45309; }
.badge-resolved { background: var(--success-bg); color: #15803d; }
.badge-closed { background: var(--bg-page); color: var(--text-secondary); }
.badge-error { background: var(--danger-bg); color: var(--danger); }

/* ========================================
   ALERTS
   ======================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: var(--info-bg); color: #1e40af; border: 1px solid #bfdbfe; }

/* ========================================
   PAGINATION
   ======================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    gap: 4px;
}

.pagination { display: flex; gap: 4px; }

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.pagination a:hover:not(.disabled) {
    background: var(--bg-page);
    border-color: #cbd5e1;
    color: var(--text-primary);
}

.pagination a.active, .pagination span.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination a.disabled, .pagination span.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ========================================
   ACTIONS
   ======================================== */
.actions { display: flex; gap: 6px; align-items: center; }
.inline-form { display: inline; }

.btn-view { background: #e0f2fe; color: #0284c7; }
.btn-view:hover { background: #bae6fd; }

.btn-delete { background: var(--danger-bg); color: var(--danger); }
.btn-delete:hover { background: #fecaca; }

/* ========================================
   UTILITIES
   ======================================== */
.loading { opacity: 0.6; pointer-events: none; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);   
    vertical-align: middle;
    line-height: 1;
}

.empty-state h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #334155;
}

.empty-state p {
    margin: 0 0 20px;
    color: var(--text-muted);
}

.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet: 769px - 1024px */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
    }

    .brand-tagline { display: none; }
    .brand-name { font-size: 15px; }
    .page-content { padding: 20px; }
    .top-header { padding: 0 20px; }
    .header-user-email { display: none; }
    .page-header h2 { font-size: 20px; }

    .form-grid { grid-template-columns: 1fr; }
}

/* Mobile: <= 768px */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 260px;
        --header-height: 56px;
    }

    /* Sidebar hidden by default */
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close { display: flex; }

    /* Overlay */
    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        pointer-events: auto;
    }

    /* Main wrapper - full width */
    .main-wrapper { margin-left: 0; }

    /* Header */
    .top-header {
        padding: 0 16px;
        gap: 12px;
    }

    .menu-toggle { display: flex; }
    .page-heading { font-size: 16px; }
    .breadcrumb { display: none; }
    .header-actions { display: none; }
    .header-user-info { display: none; }

    .header-user {
        padding: 4px;
        border-radius: 50%;
    }

    /* Page Content */
    .page-content { padding: 16px; }

    /* Page Header */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .page-header h2 { font-size: 18px; }

    .page-header .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    /* Filter Bar */
    .filter-bar {
        padding: 12px 14px !important;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-left { width: 100%; flex-wrap: wrap; }
    .filter-right { width: 100%; justify-content: flex-end; }
    .search-box { width: 100%; }
    .search-box .filter-input { width: 100%; }
    .filter-input { width: 100%; }

    /* Tables */
    .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Panels */
    .panel {
        border-radius: var(--radius);
        margin-bottom: 16px;
    }

    .panel-body { padding: 14px; }
    .panel-header { padding: 12px 14px; font-size: 13px; }

    /* Detail sidebar */
    .detail-sidebar { flex-direction: column !important; }

    /* Email detail */
    .info-grid { grid-template-columns: 1fr !important; }

    /* Form */
    .form-grid { grid-template-columns: 1fr; }

    /* Actions */
    .actions { flex-wrap: wrap; }

    /* Pagination */
    .table-footer {
        flex-direction: column;
        gap: 12px;
        padding: 12px 14px;
    }

    /* Account badges */
    .account-badge { display: none; }

    /* Footer version text */
    .footer-version span { display: none; }
}

/* Mobile Small: <= 480px */
@media (max-width: 480px) {
    .top-header { padding: 0 12px; }
    .page-content { padding: 12px; }
    .page-header h2 { font-size: 16px; }

    /* Hide less important table columns on small mobile */
    .mailbox-table th:nth-child(n+5),
    .mailbox-table td:nth-child(n+5) {
        display: none;
    }

    .accounts-table th:nth-child(n+7),
    .accounts-table td:nth-child(n+7) {
        display: none;
    }

    /* Status buttons on detail page */
    .status-buttons { flex-direction: column; }
    .status-btn { width: 100%; justify-content: flex-start; }

    /* Detail header */
    .detail-header { flex-direction: column; align-items: flex-start; }

    /* Date range */
    .date-range { flex-direction: column; width: 100%; }
    .date-range .filter-date { width: 100%; }
    .date-separator { display: none; }
}

/* ========================================
/* ========================================
   SUBMENU (Groups dropdown)
   ======================================== */

.has-submenu .submenu-link {
    padding-left: 12px;
}

.has-submenu .submenu-link .nav-icon {
    opacity: 0.7;
}

.has-submenu .submenu-link:hover .nav-icon {
    opacity: 1;
}

/* ========================================
   PRINT
   ======================================== */
@media print {
    .sidebar,
    .top-header,
    .header-actions,
    .page-header .header-actions,
    .actions,
    .filter-bar {
        display: none !important;
    }

    .main-wrapper { margin-left: 0; }
    .page-content { padding: 0; }
    .panel { box-shadow: none; border: 1px solid #ddd; }
}
