:root {
    --erp-ink: #172033;
    --erp-muted: #6b7485;
    --erp-surface: #ffffff;
    --erp-page: #f3f6fb;
    --erp-line: #e3e9f2;
    --erp-primary: #2454a6;
    --erp-primary-dark: #102748;
    --erp-success: #1b8a5a;
    --erp-warning: #c47a13;
    --erp-danger: #c83f49;
    --erp-info: #18778f;
    --erp-shadow: 0 14px 30px rgba(23, 32, 51, 0.08);
}

body {
    color: var(--erp-ink);
    background: var(--erp-page);
}

#content-wrapper {
    background: var(--erp-page) !important;
}

.container-fluid {
    max-width: 1500px;
}

.sidebar {
    background: linear-gradient(180deg, #0c1724 0%, #15263a 54%, #0f1c2d 100%) !important;
    box-shadow: 8px 0 24px rgba(15, 28, 45, 0.16);
}

.sidebar .sidebar-brand {
    min-height: 4.8rem;
    letter-spacing: 0;
}

.sidebar .sidebar-brand img {
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.22));
}

.sidebar .sidebar-heading {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.66rem;
    letter-spacing: 0.08rem;
    margin-top: 0.35rem;
    white-space: nowrap;
}

.sidebar .nav-item .nav-link {
    border-radius: 8px;
    margin: 0.1rem 0.5rem;
    padding: 0.78rem 0.9rem;
}

.sidebar .nav-item .nav-link i,
.sidebar .nav-item .nav-link span {
    color: rgba(255, 255, 255, 0.72);
}

.sidebar .nav-item .nav-link span {
    white-space: normal;
}

.sidebar .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-item.active .nav-link {
    background: transparent;
    box-shadow: none;
    padding-left: 1.35rem;
    position: relative;
}

.sidebar .nav-item.active .nav-link:before {
    background: #4e9bff;
    border-radius: 999px;
    content: "";
    display: block;
    height: 24px;
    left: 0.55rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
}

.sidebar .nav-item.active .nav-link i,
.sidebar .nav-item.active .nav-link span,
.sidebar .nav-item .nav-link:hover i,
.sidebar .nav-item .nav-link:hover span {
    color: #ffffff;
}

.sidebar .collapse-inner {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

#sidebarSearch {
    border-radius: 8px;
    min-height: 42px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.topbar {
    border-bottom: 1px solid var(--erp-line);
    box-shadow: 0 10px 26px rgba(23, 32, 51, 0.06) !important;
}

.topbar .form-control.bg-light,
.topbar .nav-link {
    border-radius: 8px;
}

.topbar .form-control.bg-light {
    background: #f5f8fc !important;
    border: 1px solid var(--erp-line) !important;
    color: var(--erp-ink);
    min-height: 42px;
}

.topbar .nav-link:hover {
    background: #f5f8fc;
}

.card,
.dropdown-menu,
.modal-content {
    border: 1px solid var(--erp-line);
    border-radius: 8px;
}

.card {
    box-shadow: var(--erp-shadow) !important;
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid var(--erp-line);
}

.card:has(.table) > .card-header,
.card:has(.dataTable) > .card-header,
.card:has(.table-responsive) > .card-header {
    background: linear-gradient(135deg, #10243b 0%, #17385f 100%);
    border-bottom-color: #10243b;
    color: #ffffff;
}

.card:has(.table) > .card-header h1,
.card:has(.table) > .card-header h2,
.card:has(.table) > .card-header h3,
.card:has(.table) > .card-header h4,
.card:has(.table) > .card-header h5,
.card:has(.table) > .card-header h6,
.card:has(.table) > .card-header .text-primary,
.card:has(.table) > .card-header .text-success,
.card:has(.table) > .card-header .text-info,
.card:has(.table) > .card-header .text-warning,
.card:has(.table) > .card-header a,
.card:has(.table) > .card-header button,
.card:has(.table) > .card-header .btn,
.card:has(.table) > .card-header .dropdown-toggle,
.card:has(.table) > .card-header .fa,
.card:has(.table) > .card-header .fas,
.card:has(.table) > .card-header .far,
.card:has(.dataTable) > .card-header h1,
.card:has(.dataTable) > .card-header h2,
.card:has(.dataTable) > .card-header h3,
.card:has(.dataTable) > .card-header h4,
.card:has(.dataTable) > .card-header h5,
.card:has(.dataTable) > .card-header h6,
.card:has(.dataTable) > .card-header .text-primary,
.card:has(.dataTable) > .card-header .text-success,
.card:has(.dataTable) > .card-header .text-info,
.card:has(.dataTable) > .card-header .text-warning,
.card:has(.dataTable) > .card-header a,
.card:has(.dataTable) > .card-header button,
.card:has(.dataTable) > .card-header .btn,
.card:has(.dataTable) > .card-header .dropdown-toggle,
.card:has(.dataTable) > .card-header .fa,
.card:has(.dataTable) > .card-header .fas,
.card:has(.dataTable) > .card-header .far,
.card:has(.table-responsive) > .card-header h1,
.card:has(.table-responsive) > .card-header h2,
.card:has(.table-responsive) > .card-header h3,
.card:has(.table-responsive) > .card-header h4,
.card:has(.table-responsive) > .card-header h5,
.card:has(.table-responsive) > .card-header h6,
.card:has(.table-responsive) > .card-header .text-primary,
.card:has(.table-responsive) > .card-header .text-success,
.card:has(.table-responsive) > .card-header .text-info,
.card:has(.table-responsive) > .card-header .text-warning,
.card:has(.table-responsive) > .card-header a,
.card:has(.table-responsive) > .card-header button,
.card:has(.table-responsive) > .card-header .btn,
.card:has(.table-responsive) > .card-header .dropdown-toggle,
.card:has(.table-responsive) > .card-header .fa,
.card:has(.table-responsive) > .card-header .fas,
.card:has(.table-responsive) > .card-header .far {
    color: #ffffff !important;
}

.card:has(.table) > .card-header .btn,
.card:has(.dataTable) > .card-header .btn,
.card:has(.table-responsive) > .card-header .btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.card:has(.table) > .card-header .btn:hover,
.card:has(.dataTable) > .card-header .btn:hover,
.card:has(.table-responsive) > .card-header .btn:hover,
.card:has(.table) > .card-header a:hover,
.card:has(.dataTable) > .card-header a:hover,
.card:has(.table-responsive) > .card-header a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
}

.card:has(.table) > .card-header .dropdown-menu,
.card:has(.dataTable) > .card-header .dropdown-menu,
.card:has(.table-responsive) > .card-header .dropdown-menu {
    background: #ffffff;
}

.card:has(.table) > .card-header .dropdown-menu a,
.card:has(.table) > .card-header .dropdown-menu button,
.card:has(.table) > .card-header .dropdown-menu .dropdown-item,
.card:has(.dataTable) > .card-header .dropdown-menu a,
.card:has(.dataTable) > .card-header .dropdown-menu button,
.card:has(.dataTable) > .card-header .dropdown-menu .dropdown-item,
.card:has(.table-responsive) > .card-header .dropdown-menu a,
.card:has(.table-responsive) > .card-header .dropdown-menu button,
.card:has(.table-responsive) > .card-header .dropdown-menu .dropdown-item {
    background: transparent;
    color: var(--erp-ink) !important;
}

.card:has(.table) > .card-header .dropdown-menu a:hover,
.card:has(.table) > .card-header .dropdown-menu button:hover,
.card:has(.table) > .card-header .dropdown-menu .dropdown-item:hover,
.card:has(.dataTable) > .card-header .dropdown-menu a:hover,
.card:has(.dataTable) > .card-header .dropdown-menu button:hover,
.card:has(.dataTable) > .card-header .dropdown-menu .dropdown-item:hover,
.card:has(.table-responsive) > .card-header .dropdown-menu a:hover,
.card:has(.table-responsive) > .card-header .dropdown-menu button:hover,
.card:has(.table-responsive) > .card-header .dropdown-menu .dropdown-item:hover {
    background: #f5f8fc;
    color: var(--erp-primary) !important;
}

.btn {
    border-radius: 6px;
    font-weight: 700;
}

.btn-primary {
    background: var(--erp-primary);
    border-color: var(--erp-primary);
}

.btn-primary:hover {
    background: #1d478f;
    border-color: #1d478f;
}

.erp-dashboard {
    padding-bottom: 1rem;
}

.ops-hero {
    align-items: center;
    background: linear-gradient(135deg, #0f1f34 0%, #18365e 52%, #145f73 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: var(--erp-shadow);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    min-height: 138px;
    overflow: hidden;
    padding: 1.55rem 1.7rem;
    position: relative;
}

.ops-hero:after {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09) 25%, transparent 25%) 0 0 / 18px 18px,
        linear-gradient(135deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%) 0 0 / 18px 18px;
    content: "";
    height: 100%;
    opacity: 0.65;
    position: absolute;
    right: 0;
    top: 0;
    width: 28%;
}

.ops-hero-copy,
.ops-hero-actions {
    position: relative;
    z-index: 1;
}

.ops-eyebrow,
.panel-kicker,
.metric-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.ops-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.5rem;
}

.ops-hero h1 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.ops-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    margin: 0.65rem 0 0;
}

.ops-hero-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.role-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    color: #ffffff;
}

.metric-card {
    background: var(--erp-surface);
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    box-shadow: var(--erp-shadow);
    min-height: 128px;
    overflow: hidden;
    position: relative;
}

.metric-card:before {
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.metric-card-primary:before {
    background: var(--erp-primary);
}

.metric-card-success:before {
    background: var(--erp-success);
}

.metric-card-info:before {
    background: var(--erp-info);
}

.metric-card-warning:before {
    background: var(--erp-warning);
}

.metric-card-link {
    align-items: center;
    color: var(--erp-ink);
    display: flex;
    height: 100%;
    justify-content: space-between;
    padding: 1.35rem;
}

.metric-card-link:hover {
    color: var(--erp-ink);
}

.metric-card:hover,
.ops-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(23, 32, 51, 0.11);
}

.metric-card,
.ops-panel,
.quick-action-tile {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.metric-label {
    color: var(--erp-muted);
}

.metric-value {
    color: var(--erp-ink);
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin: 0.5rem 0 0.3rem;
}

.metric-card small {
    color: var(--erp-muted);
    font-weight: 700;
}

.metric-icon {
    align-items: center;
    background: #eef4fb;
    border-radius: 8px;
    color: var(--erp-primary);
    display: flex;
    flex: 0 0 54px;
    font-size: 1.45rem;
    height: 54px;
    justify-content: center;
}

.metric-card-success .metric-icon {
    background: #e9f7f0;
    color: var(--erp-success);
}

.metric-card-info .metric-icon {
    background: #e8f6fa;
    color: var(--erp-info);
}

.metric-card-warning .metric-icon {
    background: #fff4e4;
    color: var(--erp-warning);
}

.ops-panel {
    background: var(--erp-surface);
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    box-shadow: var(--erp-shadow);
    padding: 1.25rem;
}

.ops-panel-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ops-panel-header h6 {
    color: var(--erp-ink);
    font-size: 1rem;
    font-weight: 800;
    margin: 0.18rem 0 0;
}

.panel-kicker {
    color: var(--erp-muted);
}

.panel-icon {
    align-items: center;
    background: #f4f7fb;
    border-radius: 8px;
    display: flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.date-tile {
    align-items: center;
    background: #f7fafc;
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 144px;
    justify-content: center;
}

.date-tile span,
.date-tile small {
    color: var(--erp-muted);
    font-weight: 800;
}

.date-tile strong {
    color: var(--erp-primary);
    display: block;
    font-size: 3.2rem;
    line-height: 1;
    margin: 0.35rem 0;
}

.queue-list {
    display: grid;
    gap: 0.72rem;
}

.queue-item {
    align-items: center;
    background: #f7fafc;
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: auto 1fr auto;
    min-height: 44px;
    padding: 0.7rem 0.8rem;
}

.queue-item span:not(.status-dot) {
    color: var(--erp-muted);
    font-weight: 800;
}

.queue-item strong {
    color: var(--erp-ink);
}

.status-dot {
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    width: 10px;
}

.status-warning {
    background: var(--erp-warning);
}

.status-info {
    background: var(--erp-info);
}

.status-success {
    background: var(--erp-success);
}

.status-danger {
    background: var(--erp-danger);
}

.quick-action-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-action-tile {
    align-items: center;
    background: #f7fafc;
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    color: var(--erp-ink);
    display: flex;
    flex-direction: column;
    font-weight: 800;
    gap: 0.6rem;
    justify-content: center;
    min-height: 92px;
    padding: 0.85rem;
    text-align: center;
}

.quick-action-tile i {
    font-size: 1.45rem;
}

.quick-action-tile:hover {
    border-color: #bfd0e6;
    color: var(--erp-primary);
    box-shadow: 0 12px 24px rgba(23, 32, 51, 0.08);
    transform: translateY(-2px);
}

.status-list-title {
    color: var(--erp-ink);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.status-list {
    display: grid;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    max-height: 186px;
    overflow-y: auto;
    padding: 0;
}

.status-list li {
    align-items: center;
    background: #f7fafc;
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    color: var(--erp-ink);
    display: flex;
    font-size: 0.84rem;
    font-weight: 700;
    justify-content: space-between;
    min-height: 39px;
    padding: 0.55rem 0.65rem;
}

.status-list .empty-state {
    color: var(--erp-muted);
    justify-content: center;
}

.badge {
    border-radius: 999px;
    font-weight: 800;
}

.attendance-chart-wrap {
    height: 228px;
    padding: 0.25rem 0;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.form-control {
    border-color: #d9e2ee;
    border-radius: 6px;
}

.dataTables_wrapper .dataTables_filter input:focus,
.form-control:focus {
    border-color: #8eb3e6;
    box-shadow: 0 0 0 0.18rem rgba(36, 84, 166, 0.12);
}

.page-item.active .page-link {
    background: var(--erp-primary);
    border-color: var(--erp-primary);
}

.table {
    color: var(--erp-ink);
}

.table thead th {
    background: #f5f8fc;
    border-bottom: 1px solid var(--erp-line);
    color: var(--erp-muted);
    font-size: 0.72rem;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.table td,
.table th {
    vertical-align: middle;
}

.table-hover tbody tr:hover,
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8fbff;
}

::-webkit-scrollbar {
    height: 9px;
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #eef3f9;
}

::-webkit-scrollbar-thumb {
    background: #bfccdc;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9dadbf;
}

@media (min-width: 768px) {
    .sidebar {
        width: 17rem !important;
    }

    .sidebar .nav-item .nav-link {
        width: auto;
    }

    .sidebar.toggled {
        width: 6.5rem !important;
    }

    .sidebar.toggled .nav-item .nav-link {
        margin-left: auto;
        margin-right: auto;
        width: 6.5rem;
    }

    .sidebar.toggled .nav-item .nav-link span,
    .sidebar.toggled .sidebar-heading {
        white-space: normal;
    }
}

@media (max-width: 991.98px) {
    .ops-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.4rem;
    }

    .ops-hero-actions {
        align-items: flex-start;
        width: 100%;
    }

    .ops-hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ops-hero h1 {
        font-size: 1.55rem;
    }

    .ops-hero p {
        font-size: 0.92rem;
    }

    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .metric-card-link {
        padding: 1.1rem;
    }
}

.approval-page {
    padding-bottom: 1rem;
}

.approval-hero,
.approval-detail-hero {
    align-items: center;
    background: linear-gradient(135deg, #10243b 0%, #17385f 58%, #18778f 100%);
    border-radius: 8px;
    box-shadow: var(--erp-shadow);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    min-height: 142px;
    padding: 1.6rem 1.8rem;
}

.approval-detail-hero {
    min-height: 126px;
}

.approval-eyebrow,
.approval-section-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.approval-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.5rem;
}

.approval-hero h1,
.approval-detail-hero h1 {
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 0;
}

.approval-hero p,
.approval-detail-hero p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0.6rem 0 0;
    max-width: 780px;
}

.approval-hero-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.approval-count,
.approval-chip {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
}

.approval-count {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.approval-chip {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
}

.approval-card .card-header {
    background: linear-gradient(135deg, #10243b 0%, #17385f 100%);
    color: #ffffff;
}

.approval-card .card-header h6,
.approval-card .card-header .approval-section-kicker {
    color: #ffffff;
}

.approval-section-kicker {
    color: var(--erp-muted);
    margin-bottom: 0.25rem;
}

.approval-table td,
.approval-table th {
    vertical-align: middle;
}

.site-pill,
.request-type-badge,
.status-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 900;
    gap: 0.35rem;
    padding: 0.38rem 0.62rem;
    white-space: nowrap;
}

.site-pill {
    background: #eef4fb;
    color: var(--erp-primary-dark);
}

.request-type-badge {
    background: #f4f7fb;
    color: var(--erp-ink);
}

.status-pending {
    background: #fff4e4;
    color: #9a5c09;
}

.status-approved {
    background: #e9f7f0;
    color: #12613e;
}

.status-rejected {
    background: #fdecef;
    color: #a92f38;
}

.status-verified {
    background: #e8f6fa;
    color: #126d82;
}

.status-hold {
    background: #eef0f4;
    color: #596273;
}

.approval-detail-btn {
    white-space: nowrap;
}

.approval-review-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.approval-summary-card {
    background: #ffffff;
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    box-shadow: var(--erp-shadow);
    padding: 1.25rem;
}

.summary-row {
    align-items: center;
    border-bottom: 1px solid var(--erp-line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 0;
}

.summary-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.summary-row span,
.timeline-step small,
.old-value span,
.new-value span {
    color: var(--erp-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.summary-row strong {
    color: var(--erp-ink);
    text-align: right;
}

.approval-timeline {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.9rem;
}

.timeline-step {
    align-items: center;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: auto 1fr;
}

.timeline-step > span {
    align-items: center;
    background: #f4f7fb;
    border: 1px solid var(--erp-line);
    border-radius: 999px;
    color: var(--erp-muted);
    display: flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.timeline-step.complete > span {
    background: #e9f7f0;
    color: var(--erp-success);
}

.timeline-step.active > span {
    background: #fff4e4;
    color: var(--erp-warning);
}

.timeline-step strong {
    color: var(--erp-ink);
    display: block;
    font-weight: 900;
}

.approval-action-panel {
    align-items: center;
    background: #fff8ee;
    border: 1px solid #f1d5ad;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.approval-action-panel strong,
.approval-action-panel span {
    display: block;
}

.approval-action-panel strong {
    color: var(--erp-ink);
}

.approval-action-panel span {
    color: var(--erp-muted);
}

.approval-action-buttons {
    white-space: nowrap;
}

.approval-field-change {
    background: #ffffff;
    border: 1px solid var(--erp-line);
    border-left: 4px solid var(--erp-primary);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(23, 32, 51, 0.05);
    padding: 0.95rem;
}

.field-name {
    color: var(--erp-ink);
}

.value-compare {
    align-items: center;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.old-value strong,
.new-value strong {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.22rem;
    overflow-wrap: anywhere;
}

.approval-document-item {
    background: #ffffff;
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    padding: 1rem;
}

.approval-bottom-actions {
    border-top: 1px solid var(--erp-line);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

@media (max-width: 991.98px) {
    .approval-hero,
    .approval-detail-hero,
    .approval-action-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .approval-hero-actions {
        align-items: flex-start;
    }

    .approval-review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .approval-hero,
    .approval-detail-hero {
        padding: 1.25rem;
    }

    .approval-hero h1,
    .approval-detail-hero h1 {
        font-size: 1.55rem;
    }

    .value-compare {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .change-arrow {
        transform: rotate(90deg);
    }
}

.payment-page {
    padding-bottom: 1rem;
}

.payment-hero {
    align-items: center;
    background: linear-gradient(135deg, #10243b 0%, #17385f 58%, #18778f 100%);
    border-radius: 8px;
    box-shadow: var(--erp-shadow);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    min-height: 142px;
    padding: 1.6rem 1.8rem;
}

.payment-entry-hero {
    min-height: 128px;
}

.payment-eyebrow,
.payment-section-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.payment-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.5rem;
}

.payment-hero h1 {
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 0;
}

.payment-hero p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0.6rem 0 0;
    max-width: 720px;
}

.payment-hero-actions {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.payment-filter-panel,
.approval-date-panel {
    background: #ffffff;
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    box-shadow: var(--erp-shadow);
    padding: 1rem;
}

.payment-filter-panel label {
    color: var(--erp-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.payment-filter-btn {
    min-height: 38px;
}

.payment-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.payment-summary-card {
    background: #ffffff;
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    box-shadow: var(--erp-shadow);
    min-height: 96px;
    padding: 1rem;
    position: relative;
}

.payment-summary-card:before {
    border-radius: 8px 8px 0 0;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.summary-pending:before {
    background: var(--erp-warning);
}

.summary-verified:before {
    background: var(--erp-info);
}

.summary-approved:before {
    background: var(--erp-success);
}

.summary-hold:before {
    background: #7a8496;
}

.payment-summary-card span {
    color: var(--erp-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.payment-summary-card strong {
    color: var(--erp-ink);
    display: block;
    font-size: 1.4rem;
    margin-top: 0.55rem;
}

.approval-date-panel {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.approval-date-panel .payment-eyebrow {
    color: var(--erp-primary);
    margin-bottom: 0.25rem;
}

.approval-date-panel strong,
.approval-date-panel small {
    display: block;
}

.approval-date-panel small {
    color: var(--erp-muted);
}

.approval-date-panel input {
    max-width: 190px;
}

.payment-table-card .card-header,
.payment-entry-card .card-header {
    background: linear-gradient(135deg, #10243b 0%, #17385f 100%);
    color: #ffffff;
}

.payment-table-card .card-header h6,
.payment-table-card .card-header .payment-section-kicker,
.payment-entry-card .card-header h6,
.payment-entry-card .card-header .payment-section-kicker {
    color: #ffffff;
}

.payment-table td,
.payment-table th,
.payment-entry-table td,
.payment-entry-table th {
    vertical-align: middle;
}

.payment-amount,
.payment-requested-amount {
    color: var(--erp-ink);
    font-weight: 900;
    white-space: nowrap;
}

.payment-requested-amount {
    color: var(--erp-muted);
}

.attachment-link {
    align-items: center;
    background: #eef4fb;
    border-radius: 999px;
    color: var(--erp-primary);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 0.35rem 0.6rem;
}

.attachment-link:hover {
    color: var(--erp-primary-dark);
    text-decoration: none;
}

.payment-entry-toolbar {
    align-items: center;
    display: flex;
    justify-content: flex-end;
}

.payment-entry-table textarea.form-control {
    min-height: 50px;
}

.payment-remove-row {
    align-items: center;
    background: #fdecef;
    border-radius: 6px;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.payment-remove-row:hover {
    background: #f8d6dc;
}

.payment-entry-card .dropdown-list {
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(23, 32, 51, 0.14);
}

@media (max-width: 1199.98px) {
    .payment-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .payment-hero,
    .approval-date-panel {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 575.98px) {
    .payment-hero {
        padding: 1.25rem;
    }

    .payment-hero h1 {
        font-size: 1.55rem;
    }

    .payment-summary-grid {
        grid-template-columns: 1fr;
    }

    .approval-date-panel input {
        max-width: none;
        width: 100%;
    }
}

.holiday-page {
    padding-bottom: 1rem;
}

.holiday-hero {
    align-items: center;
    background: linear-gradient(135deg, #10243b 0%, #17385f 58%, #18778f 100%);
    border-radius: 8px;
    box-shadow: var(--erp-shadow);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    min-height: 142px;
    padding: 1.6rem 1.8rem;
}

.holiday-eyebrow,
.holiday-section-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.holiday-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.5rem;
}

.holiday-hero h1 {
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 0;
}

.holiday-hero p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0.6rem 0 0;
    max-width: 700px;
}

.holiday-hero-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.holiday-count {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
}

.holiday-toolbar {
    background: #ffffff;
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    box-shadow: var(--erp-shadow);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 0.35fr) minmax(280px, 1fr);
    padding: 1rem;
}

.holiday-tool label {
    color: var(--erp-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.holiday-search {
    align-items: center;
    display: flex;
    position: relative;
}

.holiday-search i {
    color: var(--erp-muted);
    left: 0.9rem;
    position: absolute;
    z-index: 1;
}

.holiday-search .form-control {
    padding-left: 2.45rem;
}

.holiday-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.holiday-card {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    box-shadow: var(--erp-shadow);
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr auto;
    min-height: 132px;
    padding: 1rem;
}

.holiday-date-tile {
    align-items: center;
    background: #eef4fb;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    color: var(--erp-primary-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 82px;
    padding: 0.65rem;
}

.holiday-date-tile span,
.holiday-date-tile small {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.holiday-date-tile strong {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin: 0.25rem 0;
}

.holiday-card-body {
    min-width: 0;
}

.holiday-site-pill {
    background: #e9f7f0;
    border-radius: 999px;
    color: #12613e;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    margin-bottom: 0.65rem;
    padding: 0.34rem 0.6rem;
}

.holiday-card h3 {
    color: var(--erp-ink);
    font-size: 1.05rem;
    font-weight: 900;
    margin: 0;
    overflow-wrap: anywhere;
}

.holiday-card p {
    color: var(--erp-muted);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0.45rem 0 0;
}

.holiday-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.holiday-icon-btn {
    align-items: center;
    background: #eef4fb;
    border-radius: 6px;
    color: var(--erp-primary);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.holiday-icon-btn:hover {
    background: #dce9f8;
    color: var(--erp-primary-dark);
    text-decoration: none;
}

.holiday-delete-btn {
    background: #fdecef;
    color: var(--erp-danger);
}

.holiday-delete-btn:hover {
    background: #f8d6dc;
    color: #a92f38;
}

.holiday-empty-state {
    align-items: center;
    background: #ffffff;
    border: 1px dashed #cbd6e4;
    border-radius: 8px;
    color: var(--erp-muted);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 2rem;
    text-align: center;
}

.holiday-empty-state i {
    color: var(--erp-primary);
    font-size: 1.7rem;
}

.holiday-empty-state strong {
    color: var(--erp-ink);
}

.holiday-table-card .card-header {
    background: linear-gradient(135deg, #10243b 0%, #17385f 100%);
    color: #ffffff;
}

.holiday-table-card .card-header h6,
.holiday-table-card .card-header .holiday-section-kicker {
    color: #ffffff;
}

.holiday-date-badge {
    background: #eef4fb;
    border-radius: 999px;
    color: var(--erp-primary-dark);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 0.36rem 0.62rem;
    white-space: nowrap;
}

.holiday-table td,
.holiday-table th {
    vertical-align: middle;
}

@media (max-width: 1199.98px) {
    .holiday-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .holiday-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .holiday-hero-actions {
        align-items: flex-start;
    }

    .holiday-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .holiday-hero {
        padding: 1.25rem;
    }

    .holiday-hero h1 {
        font-size: 1.55rem;
    }

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

    .holiday-card {
        grid-template-columns: 1fr;
    }

    .holiday-card-actions {
        flex-direction: row;
    }
}
