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

        :root {
            --navy: #0c1f40;
            --navy-light: #16325c;
            --navy-dark: #060f1f;
            --gold: #fdb519;
            --gold-light: #fdc84f;
            --gold-dark: #d1910a;
            --white: #ffffff;
            --off-white: #f4f6fa;
            --gray-100: #f0f2f6;
            --gray-200: #e4e7ef;
            --gray-300: #c8cdd9;
            --gray-400: #9aa2b5;
            --gray-500: #6b7a8f;
            --gray-600: #4a5568;
            --text-dark: #1a2a3a;
            --shadow: 0 4px 16px rgba(12, 31, 64, 0.08);
            --shadow-lg: 0 8px 24px rgba(12, 31, 64, 0.12);
            --radius: 8px;
            --radius-sm: 4px;
            --transition: 0.25s ease;
            --sidebar-width: 280px;
            --header-height: 64px;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--off-white);
            color: var(--text-dark);
            line-height: 1.5;
            display: flex;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* ----- SCROLLBAR ----- */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: var(--gray-300);
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--gray-400);
        }

        /* ----- SIDEBAR ----- */
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: var(--sidebar-width);
            height: 100vh;
            background: var(--navy);
            color: rgba(255, 255, 255, 0.8);
            overflow-y: auto;
            overflow-x: hidden;
            z-index: 1000;
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
            border-right: 1px solid rgba(255, 255, 255, 0.05);
        }

        .sidebar-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 18px 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            flex-shrink: 0;
            min-height: var(--header-height);
        }

        .sidebar-brand .logo-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            background: var(--gold);
            border-radius: 10px;
            color: var(--navy);
            font-size: 1.1rem;
        }

        .sidebar-brand span {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--white);
        }

        .sidebar-brand span.gold {
            color: var(--gold);
        }

        .sidebar-user {
            padding: 16px 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .sidebar-user .avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--gold);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: var(--navy);
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .sidebar-user .user-info {
            flex: 1;
            min-width: 0;
        }

        .sidebar-user .user-info .name {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--white);
        }

        .sidebar-user .user-info .role {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .sidebar-user .user-info .role i {
            color: var(--gold);
            margin-right: 4px;
        }

        .sidebar-nav {
            flex: 1;
            padding: 12px 0 20px;
            overflow-y: auto;
        }

        .sidebar-nav .nav-label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: rgba(255, 255, 255, 0.25);
            padding: 12px 24px 6px;
            font-weight: 600;
        }

        .sidebar-nav .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 24px 8px 20px;
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            font-size: 0.82rem;
            font-weight: 500;
            transition: var(--transition);
            cursor: pointer;
            border-left: 3px solid transparent;
            position: relative;
        }

        .sidebar-nav .nav-item:hover {
            color: var(--white);
            background: rgba(255, 255, 255, 0.04);
        }

        .sidebar-nav .nav-item.active {
            color: var(--gold);
            background: rgba(212, 168, 83, 0.08);
            border-left-color: var(--gold);
        }

        .sidebar-nav .nav-item i {
            width: 20px;
            text-align: center;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .sidebar-nav .nav-item .badge {
            margin-left: auto;
            background: rgba(212, 168, 83, 0.15);
            color: var(--gold);
            font-size: 0.65rem;
            padding: 1px 10px;
            border-radius: 20px;
            font-weight: 600;
        }

        .sidebar-nav .nav-item .badge.pending {
            background: rgba(255, 193, 7, 0.15);
            color: #f5c542;
        }

        .sidebar-nav .nav-item .badge.approved {
            background: rgba(46, 204, 113, 0.15);
            color: #2ecc71;
        }

        .sidebar-footer {
            padding: 12px 24px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            flex-shrink: 0;
            display: flex;
            gap: 16px;
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.3);
        }

        .sidebar-footer a {
            color: rgba(255, 255, 255, 0.3);
            text-decoration: none;
            transition: var(--transition);
        }

        .sidebar-footer a:hover {
            color: var(--gold);
        }

        /* ----- SIDEBAR TOGGLE (mobile) ----- */
        .sidebar-toggle {
            display: none;
            position: fixed;
            top: 12px;
            left: 12px;
            z-index: 1100;
            background: var(--navy);
            color: var(--white);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 10px;
            font-size: 1.2rem;
            cursor: pointer;
            box-shadow: var(--shadow);
            transition: var(--transition);
            align-items: center;
            justify-content: center;
        }

        .sidebar-toggle:hover {
            background: var(--navy-light);
        }

        .sidebar-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 999;
        }

        /* ----- MAIN CONTENT ----- */
        .main-content {
            margin-left: var(--sidebar-width);
            flex: 1;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* ----- TOP HEADER ----- */
        .top-header {
            background: var(--white);
            padding: 0 32px;
            height: var(--header-height);
            border-bottom: 1px solid var(--gray-200);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .top-header .page-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--navy);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .top-header .page-title i {
            color: var(--gold);
        }

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

        .top-header .header-actions .role-selector {
            padding: 6px 14px;
            border-radius: 50px;
            border: 1px solid var(--gray-200);
            background: var(--white);
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--text-dark);
            cursor: pointer;
            font-family: inherit;
            transition: var(--transition);
        }

        .top-header .header-actions .role-selector:focus {
            outline: none;
            border-color: var(--gold);
        }

        .top-header .header-actions .icon-btn {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: none;
            background: var(--off-white);
            color: var(--gray-500);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            position: relative;
        }

        .top-header .header-actions .icon-btn:hover {
            background: var(--gray-200);
            color: var(--text-dark);
        }

        .top-header .header-actions .icon-btn .dot {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 8px;
            height: 8px;
            background: #e74c3c;
            border-radius: 50%;
            border: 2px solid var(--white);
        }

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

        /* ----- DASHBOARD STATS ----- */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 16px;
            margin-bottom: 28px;
        }

        .stat-card {
            background: var(--white);
            border-radius: var(--radius);
            padding: 18px 20px;
            box-shadow: var(--shadow);
            border-left: 4px solid var(--gold);
            transition: var(--transition);
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .stat-card .stat-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--gray-500);
            font-weight: 600;
        }

        .stat-card .stat-value {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--navy);
            margin: 2px 0;
        }

        .stat-card .stat-sub {
            font-size: 0.75rem;
            color: var(--gray-400);
        }

        .stat-card .stat-icon {
            float: right;
            font-size: 1.6rem;
            color: var(--gold);
            opacity: 0.3;
        }

        .stat-card.approved {
            border-left-color: #2ecc71;
        }
        .stat-card.pending {
            border-left-color: #f39c12;
        }
        .stat-card.clarification {
            border-left-color: #e74c3c;
        }
        .stat-card.info {
            border-left-color: #3498db;
        }

        /* ----- TOOLBAR (search + filters) ----- */
        .toolbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px;
            background: var(--white);
            padding: 14px 20px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            margin-bottom: 24px;
        }

        .toolbar .search-wrapper {
            flex: 1;
            min-width: 200px;
            display: flex;
            align-items: center;
            background: var(--off-white);
            border-radius: 50px;
            padding: 0 16px;
            border: 1px solid var(--gray-200);
            transition: var(--transition);
        }

        .toolbar .search-wrapper:focus-within {
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.12);
        }

        .toolbar .search-wrapper i {
            color: var(--gray-400);
            font-size: 0.9rem;
        }

        .toolbar .search-wrapper input {
            border: none;
            background: transparent;
            padding: 8px 12px;
            font-family: inherit;
            font-size: 0.85rem;
            flex: 1;
            outline: none;
            color: var(--text-dark);
        }

        .toolbar .filter-group {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .toolbar .filter-group select {
            padding: 8px 14px;
            border-radius: 50px;
            border: 1px solid var(--gray-200);
            background: var(--off-white);
            font-size: 0.8rem;
            font-family: inherit;
            color: var(--text-dark);
            cursor: pointer;
            transition: var(--transition);
            outline: none;
        }

        .toolbar .filter-group select:focus {
            border-color: var(--gold);
        }

        .toolbar .filter-group .btn-filter {
            padding: 8px 20px;
            border-radius: 50px;
            border: none;
            background: var(--gold);
            color: var(--navy);
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
        }

        .toolbar .filter-group .btn-filter:hover {
            background: var(--gold-light);
            transform: translateY(-1px);
        }

        /* ----- DOCUMENT CHECKLIST TABLE ----- */
        .table-container {
            background: var(--white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            margin-bottom: 24px;
        }

        .table-container .table-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--gray-200);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }

        .table-container .table-header h3 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--navy);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .table-container .table-header h3 i {
            color: var(--gold);
        }

        .table-container .table-header .table-actions {
            display: flex;
            gap: 8px;
        }

        .table-container .table-header .table-actions button {
            padding: 6px 14px;
            border-radius: 50px;
            border: 1px solid var(--gray-200);
            background: var(--white);
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
            color: var(--gray-500);
        }

        .table-container .table-header .table-actions button:hover {
            background: var(--off-white);
            border-color: var(--gold);
            color: var(--text-dark);
        }

        .table-scroll {
            overflow-x: auto;
            padding: 0 4px 4px;
        }

        table.doc-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.85rem;
        }

        table.doc-table thead {
            background: var(--off-white);
        }

        table.doc-table th {
            text-align: left;
            padding: 12px 16px;
            font-weight: 600;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--gray-500);
            border-bottom: 2px solid var(--gray-200);
            white-space: nowrap;
        }

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

        table.doc-table tbody tr {
            transition: var(--transition);
            cursor: pointer;
        }

        table.doc-table tbody tr:hover {
            background: rgba(212, 168, 83, 0.04);
        }

        table.doc-table tbody tr:last-child td {
            border-bottom: none;
        }

        .doc-name {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 500;
            color: var(--navy);
        }

        .doc-name i {
            color: var(--gold);
            font-size: 1.1rem;
            width: 20px;
            text-align: center;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 14px;
            border-radius: 50px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .status-badge.uploaded {
            background: #d4edda;
            color: #155724;
        }
        .status-badge.under-review {
            background: #fff3cd;
            color: #856404;
        }
        .status-badge.clarification {
            background: #f8d7da;
            color: #721c24;
        }
        .status-badge.approved {
            background: #cce5ff;
            color: #004085;
        }
        .status-badge.rejected {
            background: #f8d7da;
            color: #721c24;
        }
        .status-badge.not-uploaded {
            background: var(--gray-200);
            color: var(--gray-500);
        }

        .action-btns {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .action-btns button {
            padding: 4px 10px;
            border-radius: 50px;
            border: none;
            font-size: 0.7rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
            background: var(--off-white);
            color: var(--gray-500);
        }

        .action-btns button:hover {
            background: var(--gold);
            color: var(--navy);
        }

        .action-btns button.view-btn {
            background: rgba(212, 168, 83, 0.12);
            color: var(--gold-dark);
        }

        .action-btns button.view-btn:hover {
            background: var(--gold);
            color: var(--navy);
        }

        /* ----- MISSING DOCUMENTS TRACKER ----- */
        .missing-tracker {
            background: var(--white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 20px 24px;
            margin-bottom: 24px;
        }

        .missing-tracker .tracker-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 14px;
        }

        .missing-tracker .tracker-header h3 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--navy);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .missing-tracker .tracker-header h3 i {
            color: #e74c3c;
        }

        .missing-items {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
        }

        .missing-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            background: var(--off-white);
            border-radius: var(--radius-sm);
            border-left: 3px solid #e74c3c;
            font-size: 0.85rem;
        }

        .missing-item .miss-icon {
            color: #e74c3c;
            font-size: 1rem;
        }

        .missing-item .miss-info {
            flex: 1;
        }

        .missing-item .miss-info .miss-title {
            font-weight: 500;
            color: var(--text-dark);
        }

        .missing-item .miss-info .miss-reason {
            font-size: 0.7rem;
            color: var(--gray-400);
        }

        .missing-item .miss-action {
            font-size: 0.7rem;
            color: var(--gold);
            font-weight: 600;
            cursor: pointer;
        }

        /* ----- ACTIVITY LOG ----- */
        .activity-log {
            background: var(--white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 20px 24px;
            margin-bottom: 24px;
        }

        .activity-log .activity-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 14px;
        }

        .activity-log .activity-header h3 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--navy);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .activity-log .activity-header h3 i {
            color: var(--gold);
        }

        .activity-timeline {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 300px;
            overflow-y: auto;
        }

        .activity-item {
            display: flex;
            gap: 14px;
            padding: 8px 0;
            border-bottom: 1px solid var(--gray-100);
            font-size: 0.85rem;
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-item .act-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--off-white);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: var(--gold);
            font-size: 0.85rem;
        }

        .activity-item .act-content {
            flex: 1;
        }

        .activity-item .act-content .act-text {
            color: var(--text-dark);
        }

        .activity-item .act-content .act-text strong {
            color: var(--navy);
        }

        .activity-item .act-content .act-time {
            font-size: 0.7rem;
            color: var(--gray-400);
        }

        /* ----- SECURITY BADGES ----- */
        .security-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            padding: 16px 20px;
            background: var(--white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            margin-bottom: 24px;
        }

        .security-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.75rem;
            color: var(--gray-500);
            padding: 4px 12px;
            border-radius: 50px;
            background: var(--off-white);
        }

        .security-badge i {
            color: var(--gold);
            font-size: 0.9rem;
        }

        .security-badge .secure-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #2ecc71;
            display: inline-block;
        }

        /* ----- DOCUMENT VIEWER MODAL ----- */
        .viewer-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 2000;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .viewer-modal.open {
            display: flex;
        }

        .viewer-panel {
            background: var(--white);
            border-radius: var(--radius);
            width: 100%;
            max-width: 1100px;
            max-height: 92vh;
            display: flex;
            flex-direction: column;
            box-shadow: var(--shadow-lg);
            overflow: hidden;
        }

        .viewer-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 24px;
            border-bottom: 1px solid var(--gray-200);
            flex-shrink: 0;
            flex-wrap: wrap;
            gap: 10px;
        }

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

        .viewer-header .viewer-title h4 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--navy);
        }

        .viewer-header .viewer-title .file-type-badge {
            font-size: 0.65rem;
            padding: 2px 12px;
            border-radius: 50px;
            background: var(--off-white);
            color: var(--gray-500);
            font-weight: 600;
            text-transform: uppercase;
        }

        .viewer-header .viewer-actions {
            display: flex;
            gap: 8px;
        }

        .viewer-header .viewer-actions button {
            padding: 6px 14px;
            border-radius: 50px;
            border: 1px solid var(--gray-200);
            background: var(--white);
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
            color: var(--gray-500);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .viewer-header .viewer-actions button:hover {
            background: var(--off-white);
            border-color: var(--gold);
            color: var(--text-dark);
        }

        .viewer-header .viewer-actions .close-viewer {
            background: none;
            border: none;
            font-size: 1.4rem;
            color: var(--gray-400);
            cursor: pointer;
            padding: 0 8px;
            transition: var(--transition);
        }

        .viewer-header .viewer-actions .close-viewer:hover {
            color: #e74c3c;
        }

        .viewer-body {
            display: flex;
            flex: 1;
            min-height: 400px;
            overflow: hidden;
        }

        .viewer-preview {
            flex: 1;
            background: var(--off-white);
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: auto;
            position: relative;
        }

        .viewer-preview .preview-placeholder {
            text-align: center;
            color: var(--gray-400);
        }

        .viewer-preview .preview-placeholder i {
            font-size: 4rem;
            margin-bottom: 12px;
            display: block;
            color: var(--gray-300);
        }

        .viewer-preview .preview-placeholder p {
            font-size: 0.9rem;
        }

        .viewer-preview .preview-toolbar {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            background: rgba(0, 0, 0, 0.7);
            padding: 8px 16px;
            border-radius: 50px;
            backdrop-filter: blur(8px);
        }

        .viewer-preview .preview-toolbar button {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            padding: 4px 12px;
            cursor: pointer;
            font-size: 0.8rem;
            transition: var(--transition);
            font-family: inherit;
        }

        .viewer-preview .preview-toolbar button:hover {
            color: var(--white);
        }

        .viewer-sidebar {
            width: 320px;
            border-left: 1px solid var(--gray-200);
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            overflow: hidden;
        }

        .viewer-sidebar .vs-tabs {
            display: flex;
            border-bottom: 1px solid var(--gray-200);
            flex-shrink: 0;
        }

        .viewer-sidebar .vs-tabs button {
            flex: 1;
            padding: 10px 12px;
            border: none;
            background: transparent;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--gray-400);
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
            border-bottom: 2px solid transparent;
        }

        .viewer-sidebar .vs-tabs button.active {
            color: var(--gold);
            border-bottom-color: var(--gold);
        }

        .viewer-sidebar .vs-tabs button:hover {
            color: var(--text-dark);
        }

        .viewer-sidebar .vs-content {
            flex: 1;
            overflow-y: auto;
            padding: 16px 20px;
        }

        .viewer-sidebar .vs-content .tab-panel {
            display: none;
        }

        .viewer-sidebar .vs-content .tab-panel.active {
            display: block;
        }

        .viewer-sidebar .vs-content .doc-meta {
            font-size: 0.85rem;
        }

        .viewer-sidebar .vs-content .doc-meta .meta-row {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            border-bottom: 1px solid var(--gray-100);
        }

        .viewer-sidebar .vs-content .doc-meta .meta-row .meta-label {
            color: var(--gray-500);
            font-weight: 500;
        }

        .viewer-sidebar .vs-content .doc-meta .meta-row .meta-value {
            color: var(--text-dark);
            font-weight: 500;
        }

        .comment-item {
            padding: 12px 0;
            border-bottom: 1px solid var(--gray-100);
            font-size: 0.85rem;
        }

        .comment-item .comment-author {
            font-weight: 600;
            color: var(--navy);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .comment-item .comment-author .role-tag {
            font-size: 0.6rem;
            background: var(--off-white);
            padding: 1px 10px;
            border-radius: 50px;
            color: var(--gray-500);
            font-weight: 500;
        }

        .comment-item .comment-text {
            margin: 4px 0 2px;
            color: var(--text-dark);
        }

        .comment-item .comment-time {
            font-size: 0.7rem;
            color: var(--gray-400);
        }

        .comment-input-area {
            display: flex;
            gap: 10px;
            margin-top: 12px;
            flex-shrink: 0;
            padding: 12px 0;
            border-top: 1px solid var(--gray-200);
        }

        .comment-input-area textarea {
            flex: 1;
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--gray-200);
            font-family: inherit;
            font-size: 0.85rem;
            resize: vertical;
            min-height: 50px;
            transition: var(--transition);
            outline: none;
        }

        .comment-input-area textarea:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
        }

        .comment-input-area button {
            padding: 8px 18px;
            border-radius: 50px;
            border: none;
            background: var(--gold);
            color: var(--navy);
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
            align-self: flex-end;
            height: 50px;
        }

        .comment-input-area button:hover {
            background: var(--gold-light);
        }

        .status-update-area {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--gray-200);
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .status-update-area select {
            padding: 6px 14px;
            border-radius: 50px;
            border: 1px solid var(--gray-200);
            font-size: 0.8rem;
            font-family: inherit;
            background: var(--white);
            cursor: pointer;
            outline: none;
        }

        .status-update-area select:focus {
            border-color: var(--gold);
        }

        .status-update-area button {
            padding: 6px 18px;
            border-radius: 50px;
            border: none;
            background: var(--gold);
            color: var(--navy);
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
        }

        .status-update-area button:hover {
            background: var(--gold-light);
        }

        /* ----- RESPONSIVE ----- */
        @media (max-width: 1024px) {
            .viewer-sidebar {
                width: 280px;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                width: 300px;
            }

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

            .sidebar-overlay.open {
                display: block;
            }

            .sidebar-toggle {
                display: flex;
            }

            .main-content {
                margin-left: 0;
            }

            .top-header {
                padding: 0 16px;
                height: 56px;
            }

            .top-header .page-title {
                font-size: 0.95rem;
            }

            .page-content {
                padding: 16px;
            }

            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
                gap: 10px;
            }

            .stat-card .stat-value {
                font-size: 1.4rem;
            }

            .toolbar {
                flex-direction: column;
                align-items: stretch;
                padding: 12px 16px;
            }

            .toolbar .filter-group {
                justify-content: stretch;
            }

            .toolbar .filter-group select,
            .toolbar .filter-group .btn-filter {
                flex: 1;
            }

            .viewer-modal {
                padding: 8px;
            }

            .viewer-panel {
                max-height: 98vh;
            }

            .viewer-body {
                flex-direction: column;
            }

            .viewer-sidebar {
                width: 100%;
                border-left: none;
                border-top: 1px solid var(--gray-200);
                max-height: 300px;
            }

            .viewer-header {
                padding: 12px 16px;
            }

            .viewer-header .viewer-title h4 {
                font-size: 0.85rem;
            }

            .missing-items {
                grid-template-columns: 1fr;
            }

            table.doc-table {
                font-size: 0.75rem;
            }

            table.doc-table th,
            table.doc-table td {
                padding: 8px 10px;
            }

            .action-btns button {
                font-size: 0.6rem;
                padding: 2px 8px;
            }
        }

        @media (max-width: 480px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }

            .top-header .header-actions .role-selector {
                font-size: 0.7rem;
                padding: 4px 10px;
            }

            .top-header .header-actions .icon-btn {
                width: 32px;
                height: 32px;
                font-size: 0.85rem;
            }
        }

        /* ----- MOBILE SIDEBAR ----- */
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--navy);
            font-size: 1.5rem;
            cursor: pointer;
            margin-right: 15px;
            vertical-align: middle;
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }
            .sidebar.open {
                transform: translateX(0);
            }
            .main-content {
                margin-left: 0;
            }
            .top-header {
                left: 0;
            }
            .menu-toggle {
                display: inline-block;
            }
            .header-actions .user-info {
                display: none;
            }
        }
        
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 999;
        }
        .sidebar-overlay.open {
            display: block;
        }
    </style>
</head>
<body>