

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            background: #f4f6f8;
            color: #222;
        }

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

        /* SIDEBAR */

        .sidebar {
            width: 250px;
            background: #1f4e79;
            color: white;
            padding: 25px 15px;
        }

        .brand {
            text-align: center;
            margin-bottom: 35px;
        }

        .brand h1 {
            margin: 0;
            font-size: 25px;
        }

        .brand p {
            margin: 6px 0 0;
            font-size: 13px;
            opacity: 0.8;
        }

        .nav-button {
            width: 100%;
            border: none;
            background: transparent;
            color: white;
            padding: 13px 15px;
            text-align: left;
            border-radius: 6px;
            margin-bottom: 5px;
            cursor: pointer;
            font-size: 14px;
        }

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

        .nav-button.active {
            background: rgba(255,255,255,0.2);
        }

        /* LOGOUT */

        .logout {
            margin-top: 30px;
            border-top: 1px solid rgba(255,255,255,0.2);
            padding-top: 20px;
        }

        .logout button {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 6px;
            background: rgba(255,255,255,0.12);
            color: white;
            cursor: pointer;
        }

        .logout button:hover {
            background: rgba(255,255,255,0.2);
        }

        /* MAIN */

        .main {
            flex: 1;
        }

        .topbar {
            background: white;
            padding: 18px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #ddd;
        }

        .topbar h2 {
            margin: 0;
            font-size: 21px;
        }

        .user-info {
            text-align: right;
        }

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

        .user-role {
            font-size: 12px;
            color: #666;
            margin-top: 4px;
        }

        .content {
            padding: 30px;
        }

        /* CARDS */

        .cards {
            display: grid;
            grid-template-columns:
                repeat(auto-fit, minmax(200px, 1fr));

            gap: 20px;
            margin-bottom: 30px;
        }

        .card {
            background: white;
            padding: 22px;
            border-radius: 10px;
            box-shadow:
                0 3px 12px rgba(0,0,0,0.06);
        }

        .card-title {
            color: #666;
            font-size: 13px;
            margin-bottom: 10px;
        }

        .card-value {
            font-size: 28px;
            font-weight: bold;
            color: #1f4e79;
        }

        /* SECTION */

        .section {
            background: white;
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow:
                0 3px 12px rgba(0,0,0,0.06);
        }

        .section h3 {
            margin-top: 0;
        }

        /* TOOLBAR */

        .toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
            gap: 15px;
        }

        .refresh-button {
            border: none;
            background: #1f4e79;
            color: white;
            padding: 10px 16px;
            border-radius: 6px;
            cursor: pointer;
        }

        .refresh-button:hover {
            background: #173a5c;
        }

        /* TABLE */

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

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

        th {
            background: #f5f7fa;
            color: #555;
            font-size: 13px;
            padding: 13px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        td {
            padding: 13px;
            border-bottom: 1px solid #eee;
            font-size: 14px;
        }

        tr:hover td {
            background: #fafafa;
        }

        /* STATUS */

        .status {
            display: inline-block;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: bold;
        }

        .status-approved {
            background: #fff3cd;
            color: #856404;
        }

        .status-processing {
            background: #cfe2ff;
            color: #084298;
        }

        .status-issued {
            background: #d1e7dd;
            color: #0f5132;
        }

        /* BUTTONS */

        .btn {
            border: none;
            border-radius: 5px;
            padding: 8px 12px;
            cursor: pointer;
            font-size: 12px;
            margin-right: 5px;
        }

        .btn-review {
            background: #6c757d;
            color: white;
        }

        .btn-process {
            background: #0d6efd;
            color: white;
        }

        .btn-issue {
            background: #198754;
            color: white;
        }

        .btn:hover {
            opacity: 0.85;
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* EMPTY */

        .empty {
            text-align: center;
            padding: 35px;
            color: #777;
        }

        /* ALERT */

        .alert {
            display: none;
            padding: 12px 15px;
            border-radius: 6px;
            margin-bottom: 20px;
        }

        .alert-success {
            display: block;
            background: #d1e7dd;
            color: #0f5132;
        }

        .alert-error {
            display: block;
            background: #f8d7da;
            color: #842029;
        }

        /* MODAL */

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow-y: auto;
            background: rgba(0,0,0,0.55);
            padding: 30px 15px;
        }

        .modal-content {
            background: white;
            max-width: 1000px;
            margin: auto;
            border-radius: 10px;
            overflow: hidden;
        }

        .modal-header {
            background: #1f4e79;
            color: white;
            padding: 18px 22px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            margin: 0;
        }

        .close {
            background: transparent;
            border: none;
            color: white;
            font-size: 26px;
            cursor: pointer;
        }

        .modal-body {
            padding: 25px;
        }

        .details {
            display: grid;
            grid-template-columns:
                repeat(auto-fit, minmax(200px, 1fr));

            gap: 15px;
            margin-bottom: 25px;
        }

        .detail {
            background: #f7f8fa;
            padding: 13px;
            border-radius: 6px;
        }

        .detail-label {
            color: #777;
            font-size: 11px;
            margin-bottom: 5px;
        }

        .detail-value {
            font-weight: bold;
        }

        .items-table input {
            width: 100px;
            padding: 7px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-top: 20px;
        }

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

        .form-group.full {
            grid-column: 1 / -1;
        }

        label {
            font-size: 12px;
            font-weight: bold;
            margin-bottom: 6px;
        }

        input,
        textarea {
            font-family: inherit;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }

        textarea {
            min-height: 80px;
            resize: vertical;
        }

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

        .footer-button {
            border: none;
            padding: 10px 16px;
            border-radius: 6px;
            cursor: pointer;
        }

        .footer-close {
            background: #e9ecef;
        }

        .footer-process {
            background: #0d6efd;
            color: white;
        }

        .footer-issue {
            background: #198754;
            color: white;
        }

        @media (max-width: 700px) {

            .sidebar {
                width: 190px;
            }

            .content {
                padding: 15px;
            }

            .topbar {
                padding: 15px;
            }

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

            .form-group.full {
                grid-column: auto;
            }

        }

    
        .procurement-section {
            background: white;
            border-radius: 10px;
            padding: 25px;
            margin-top: 25px;
            margin-bottom: 25px;
            box-shadow: 0 3px 12px rgba(0,0,0,0.06);
        }
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
            gap: 15px;
        }
        .section-header h2 {
            margin: 0 0 5px;
            font-size: 20px;
        }
        .section-header p {
            margin: 0;
            color: #777;
            font-size: 13px;
        }
        .secondary-button {
            border: 1px solid #1f4e79;
            background: white;
            color: #1f4e79;
            padding: 10px 16px;
            border-radius: 6px;
            cursor: pointer;
        }
        .secondary-button:hover { background: #f0f5f9; }
        .empty-state {
            text-align: center;
            padding: 35px;
            color: #777;
        }
        .completed-row { cursor: pointer; }
        .completed-row:hover td { background: #f0f5f9; }

        .completed-tools {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
            margin: 18px 0;
        }

        .completed-tools input,
        .completed-tools select {
            min-height: 40px;
            padding: 8px 12px;
            border: 1px solid #d5dce3;
            border-radius: 6px;
            background: #fff;
            font-size: 14px;
        }

        .completed-tools input {
            flex: 1 1 260px;
        }

        .completed-tools select {
            flex: 0 1 180px;
        }

        .completed-summary {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin: 10px 0 14px;
        }

        .completed-summary .summary-pill {
            padding: 8px 12px;
            border: 1px solid #dfe5ea;
            border-radius: 999px;
            background: #f8fafb;
            font-size: 13px;
        }

        .completed-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .completed-pagination {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 14px;
        }

        .pagination-buttons {
            display: flex;
            gap: 8px;
        }

        .pagination-buttons button {
            padding: 7px 12px;
            border: 1px solid #d5dce3;
            border-radius: 6px;
            background: #fff;
            cursor: pointer;
        }

        .pagination-buttons button:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .completed-row .view-completed {
            white-space: nowrap;
        }

        @media print {
            body * {
                visibility: hidden !important;
            }

            #completedPrintArea,
            #completedPrintArea * {
                visibility: visible !important;
            }

            #completedPrintArea {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
            }

            #completedPrintArea .completed-tools,
            #completedPrintArea .completed-pagination,
            #completedPrintArea .no-print {
                display: none !important;
            }

            #completedPrintTitle {
                display: block !important;
            }

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

            th, td {
                border: 1px solid #999;
                padding: 7px;
            }
        }

        #completedPrintTitle {
            display: none;
        }

    

.queue-description { color:#777; font-size:13px; }
.hidden-by-default { display:none; }
