* {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            background: #f5f7fb;
            color: #1f2937;
        }

        .layout {
            min-height: 100vh;
            display: flex;
        }

        .sidebar {
            width: 250px;
            background: #111827;
            color: white;
            padding: 24px 16px;
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
        }

        .brand {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .brand-subtitle {
            font-size: 12px;
            color: #9ca3af;
            margin-bottom: 35px;
        }

        .nav-title {
            font-size: 11px;
            text-transform: uppercase;
            color: #6b7280;
            margin: 20px 10px 8px;
            letter-spacing: 1px;
        }

        .nav-link {
            display: block;
            color: #d1d5db;
            text-decoration: none;
            padding: 12px 10px;
            border-radius: 8px;
            margin-bottom: 5px;
            font-size: 14px;
        }

        .nav-link:hover,
        .nav-link.active {
            background: #1f2937;
            color: white;
        }

        .main {
            margin-left: 250px;
            width: calc(100% - 250px);
            padding: 30px;
        }

        .topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }

        .page-title {
            margin: 0;
            font-size: 28px;
        }

        .page-subtitle {
            margin: 6px 0 0;
            color: #6b7280;
            font-size: 14px;
        }

        .user-box {
            text-align: right;
            font-size: 14px;
        }

        .user-name {
            font-weight: 600;
        }

        .user-role {
            color: #6b7280;
            font-size: 12px;
            margin-top: 3px;
        }

        .card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
            border: 1px solid #e5e7eb;
        }

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

        .queue-title {
            font-size: 18px;
            font-weight: 700;
        }

        .count-badge {
            background: #fef3c7;
            color: #92400e;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
        }

        .loading,
        .empty,
        .error {
            padding: 40px 20px;
            text-align: center;
            color: #6b7280;
        }

        .error {
            color: #b91c1c;
        }

        .requisition-list {
            display: flex;
            flex-direction: column;
        }

        .requisition-row {
            padding: 20px;
            border-bottom: 1px solid #e5e7eb;
            display: grid;
            grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
            gap: 20px;
            align-items: center;
        }

        .requisition-row:last-child {
            border-bottom: none;
        }

        .req-number {
            font-weight: 700;
            color: #111827;
        }

        .site {
            margin-top: 5px;
            color: #6b7280;
            font-size: 13px;
        }

        .label {
            color: #9ca3af;
            font-size: 11px;
            text-transform: uppercase;
            margin-bottom: 4px;
            letter-spacing: .5px;
        }

        .value {
            font-size: 14px;
        }

        .status {
            display: inline-block;
            padding: 6px 10px;
            border-radius: 20px;
            background: #fef3c7;
            color: #92400e;
            font-size: 12px;
            font-weight: 700;
        }

        button {
            border: none;
            border-radius: 8px;
            padding: 10px 15px;
            cursor: pointer;
            font-weight: 600;
            font-size: 13px;
        }

        .btn-primary {
            background: #111827;
            color: white;
        }

        .btn-primary:hover {
            background: #374151;
        }

        .btn-approve {
            background: #166534;
            color: white;
        }

        .btn-approve:hover {
            background: #14532d;
        }

        .btn-reject {
            background: #b91c1c;
            color: white;
        }

        .btn-reject:hover {
            background: #991b1b;
        }

        .btn-secondary {
            background: #e5e7eb;
            color: #374151;
        }

        .actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 1000;
        }

        .modal-overlay.show {
            display: flex;
        }

        .modal {
            background: white;
            width: 100%;
            max-width: 900px;
            max-height: 90vh;
            overflow-y: auto;
            border-radius: 14px;
        }

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

        .modal-title {
            margin: 0;
            font-size: 20px;
        }

        .close {
            background: transparent;
            font-size: 24px;
            padding: 4px 8px;
            color: #6b7280;
        }

        .modal-body {
            padding: 22px;
        }

        .details-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
            margin-bottom: 25px;
        }

        .detail-box {
            background: #f9fafb;
            border-radius: 8px;
            padding: 13px;
        }

        .items-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .items-table {
            width: 100%;
            border-collapse: collapse;
        }

        .items-table th,
        .items-table td {
            padding: 12px 10px;
            text-align: left;
            border-bottom: 1px solid #e5e7eb;
            font-size: 13px;
        }

        .items-table th {
            background: #f9fafb;
            font-size: 11px;
            text-transform: uppercase;
            color: #6b7280;
        }

        .remarks {
            margin-top: 20px;
            padding: 15px;
            background: #f9fafb;
            border-radius: 8px;
        }

        .modal-footer {
            padding: 18px 22px;
            border-top: 1px solid #e5e7eb;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .message {
            position: fixed;
            right: 25px;
            bottom: 25px;
            max-width: 400px;
            padding: 14px 18px;
            border-radius: 8px;
            color: white;
            display: none;
            z-index: 2000;
            box-shadow: 0 4px 15px rgba(0,0,0,.2);
        }

        .message.show {
            display: block;
        }

        .message.success {
            background: #166534;
        }

        .message.error {
            background: #b91c1c;
        }

        .reject-form {
            display: none;
            margin-top: 15px;
        }

        .reject-form.show {
            display: block;
        }

        textarea {
            width: 100%;
            min-height: 110px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            padding: 12px;
            resize: vertical;
            font-family: inherit;
            font-size: 14px;
        }

        @media (max-width: 1000px) {
            .sidebar {
                width: 210px;
            }

            .main {
                margin-left: 210px;
                width: calc(100% - 210px);
            }

            .requisition-row {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 700px) {
            .sidebar {
                position: static;
                width: 100%;
                min-height: auto;
            }

            .layout {
                display: block;
            }

            .main {
                margin-left: 0;
                width: 100%;
                padding: 20px;
            }

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

            .requisition-row {
                grid-template-columns: 1fr;
            }

            .actions {
                justify-content: flex-start;
            }
        }
