:root {
            --primary-red: #b91c1c;
            --primary-red-dark: #991b1b;
            --navy: #1f2548;
            --text-main: #0f172a;
            --text-muted: #64748b;
            --border-color: #e5e7eb;
            --page-bg: #f6f7fb;
            --soft-red: #fef2f2;
            --soft-green: #dcfce7;
            --soft-yellow: #fef3c7;
            --soft-blue: #eff6ff;
        }

        body {
            font-family: "DM Sans", sans-serif;
            background: var(--page-bg);
        }

        .approval-summary {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 22px;
        }

        .summary-card {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 9px;
            padding: 17px;
            display: flex;
            align-items: center;
            gap: 13px;
        }

        .summary-icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
        }

        .summary-card h3 {
            margin: 0;
            color: var(--text-muted);
            font-size: .78rem;
            font-weight: 700;
        }

        .summary-card strong {
            display: block;
            margin-top: 4px;
            color: var(--text-main);
            font-size: 1.4rem;
        }

        .approval-tabs {
            display: flex;
            gap: 4px;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 20px;
            overflow-x: auto;
        }

        .approval-tab {
            border: 0;
            background: transparent;
            padding: 13px 17px;
            font: inherit;
            color: var(--text-muted);
            font-size: .88rem;
            font-weight: 700;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            white-space: nowrap;
        }

        .approval-tab.active {
            color: var(--primary-red);
            border-bottom-color: var(--primary-red);
        }

        .approval-tab .count {
            margin-left: 7px;
            min-width: 21px;
            height: 21px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: #f1f5f9;
            color: #475569;
            font-size: .72rem;
        }

        .approval-tab.active .count {
            background: var(--soft-red);
            color: var(--primary-red);
        }

        .filters-row {
            display: flex;
            gap: 12px;
            align-items: end;
            margin-bottom: 18px;
            flex-wrap: wrap;
        }

        .filter-group {
            min-width: 170px;
        }

        .filter-group.search {
            flex: 1;
            min-width: 280px;
            position: relative;
        }

        .filter-group label {
            display: block;
            margin-bottom: 6px;
            color: var(--text-muted);
            font-size: .78rem;
            font-weight: 700;
        }

        .filter-group.search i {
            position: absolute;
            left: 12px;
            bottom: 12px;
            color: #94a3b8;
        }

        .form-control {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 7px;
            background: #fff;
            color: var(--text-main);
            font: inherit;
            font-size: .88rem;
        }

        .filter-group.search .form-control {
            padding-left: 38px;
        }

        .approval-container {
            background: #fff;
            border: 1px solid var(--border-color);
            border-radius: 9px;
            overflow: hidden;
        }

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

        .approval-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 1160px;
        }

        .approval-table th {
            background: var(--navy);
            color: #fff;
            padding: 13px 15px;
            text-align: left;
            font-size: .8rem;
            font-weight: 700;
            white-space: nowrap;
        }

        .approval-table td {
            padding: 15px;
            border-bottom: 1px solid var(--border-color);
            vertical-align: middle;
            font-size: .87rem;
        }

        .approval-table tbody tr:hover {
            background: #fbfcff;
        }

        .request-title {
            color: var(--text-main);
            font-weight: 700;
            margin-bottom: 4px;
        }

        .request-subtitle {
            color: var(--text-muted);
            font-size: .77rem;
            line-height: 1.4;
        }

        .requestor {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .requestor-avatar {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: #e0e7ff;
            color: #4338ca;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .75rem;
            font-weight: 800;
        }

        .requestor-name {
            font-weight: 700;
            color: var(--text-main);
        }

        .requestor-role {
            color: var(--text-muted);
            font-size: .75rem;
            margin-top: 2px;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 5px 9px;
            border-radius: 999px;
            font-size: .72rem;
            font-weight: 800;
            white-space: nowrap;
        }

        .status-supervisor {
            background: var(--soft-yellow);
            color: #b45309;
        }

        .status-hr {
            background: var(--soft-blue);
            color: #1d4ed8;
        }

        .status-finance {
            background: #ede9fe;
            color: #6d28d9;
        }

        .status-approved {
            background: var(--soft-green);
            color: #15803d;
        }

        .approval-flow {
            display: flex;
            align-items: center;
            gap: 5px;
            min-width: 285px;
        }

        .flow-step {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: #94a3b8;
            font-size: .72rem;
            font-weight: 700;
        }

        .flow-step.done {
            color: #15803d;
        }

        .flow-step.current {
            color: var(--primary-red);
        }

        .flow-dot {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 1px solid #cbd5e1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: .65rem;
            background: #fff;
        }

        .flow-step.done .flow-dot {
            background: #dcfce7;
            border-color: #86efac;
        }

        .flow-step.current .flow-dot {
            background: var(--soft-red);
            border-color: #fca5a5;
        }

        .flow-line {
            width: 16px;
            height: 1px;
            background: #cbd5e1;
        }

        .action-buttons {
            display: flex;
            gap: 7px;
            justify-content: center;
            white-space: nowrap;
        }

        .action-btn {
            height: 32px;
            min-width: 32px;
            padding: 0 10px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: #fff;
            color: var(--text-main);
            cursor: pointer;
            font: inherit;
            font-size: .75rem;
            font-weight: 700;
        }

        .action-btn:hover {
            background: #f8fafc;
        }

        .action-btn.approve {
            color: #15803d;
            border-color: #bbf7d0;
            background: #f0fdf4;
        }

        .action-btn.return {
            color: #b45309;
            border-color: #fde68a;
            background: #fffbeb;
        }

        .action-btn.reject {
            color: var(--primary-red);
            border-color: #fecaca;
            background: #fff7f7;
        }

        .table-footer {
            padding: 15px 17px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text-muted);
            font-size: .82rem;
        }

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

        .page-btn {
            min-width: 32px;
            height: 32px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: #fff;
            color: #475569;
            cursor: pointer;
        }

        .page-btn.active {
            background: var(--primary-red);
            border-color: var(--primary-red);
            color: #fff;
        }

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

        .modal-box {
            width: 470px;
            max-width: 100%;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 22px 56px rgba(15, 23, 42, .24);
            overflow: hidden;
        }

        .modal-header {
            padding: 20px 22px;
            border-bottom: 1px solid var(--border-color);
        }

        .modal-header h3 {
            margin: 0 0 6px;
            font-size: 1.08rem;
            color: var(--text-main);
        }

        .modal-header p {
            margin: 0;
            color: var(--text-muted);
            font-size: .83rem;
        }

        .modal-body {
            padding: 20px 22px;
        }

        .modal-body label {
            display: block;
            margin-bottom: 7px;
            color: var(--text-muted);
            font-size: .8rem;
            font-weight: 700;
        }

        .modal-body textarea {
            min-height: 110px;
            resize: vertical;
        }

        .modal-actions {
            padding: 16px 22px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .empty-state {
            display: none;
            text-align: center;
            padding: 55px 20px;
            color: var(--text-muted);
        }

        .empty-state i {
            font-size: 2rem;
            color: #cbd5e1;
            margin-bottom: 12px;
        }

        @media(max-width: 1100px) {
            .approval-summary {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media(max-width: 700px) {
            .approval-summary {
                grid-template-columns: 1fr;
            }

            .page-title-section {
                align-items: flex-start !important;
                flex-direction: column;
                gap: 12px;
            }
        }
