/* Shared design tokens and reusable component styles extracted from UserProfile view */
:root {
    /* Brand / Theme */
    --color-teal: #4DB6AC;
    --color-teal-dark: #26A69A;
    --color-teal-bg: #E0F2F1;
    --color-teal-border: #80CBC4;
    /* Earthy / Classification theme */
    --color-earthy-primary: #C8935A;
    --color-earthy-dark: #A0703A;
    --color-earthy-light: #FDF6EE;
    --color-earthy-border: #E0C9A8;
    --color-earthy-text: #5C3D1E;
    --color-earthy-muted: #8A6040;
    /* Children table theme (Marital) */
    --color-children-border: #3E92A6; /* Cerulean */
    --color-children-bg: #E8F6F8;
    --color-children-label: #3E92A6;
    /* Education table theme */
    --color-edu-border: #5F6100;
    --color-edu-label: #F57C00;
    --color-edu-bg: #FFF3E0;
    /* Classification history theme */
    --color-ch-primary: #D4A574;
    --color-ch-dark: #B8956A;
    --color-ch-bg: #FFF4E6;
    --color-ch-text: #9E7D61;
    --color-ch-green: #6B9D7A;
    /* Alert / Orange theme */
    --color-alert-primary: #F57C00;
    --color-alert-dark: #E65100;
    --color-alert-bg: #FFF8F0;
    /* Payslip theme */
    --color-payslip-hover: #E0F7FA;
    --color-payslip-sel: #B2EBF2;
    --color-payslip-accent: #4DD0E1;
    --color-payslip-border: #B2EBF2;
    --color-payslip-label: #00796B;
    --color-payslip-sel-bg: #00ACC1;
    /* Neutral */
    --color-text-main: #2C2C2C;
    --color-text-muted: #666;
    --color-border-light: #E0E0E0;
    --color-white: #fff;
    /* Shared */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

.underline-input-sm,
.underline-select-sm { font-size: 12px; }

/* icon and utility classes used across views */
.icon-24 { font-size: 24px; margin-bottom: 10px; color: #6c757d; }
.spinner-24 { font-size: 24px; margin-bottom: 10px; }

/* small reusable label used where views had inline label rules */
.label-block { display: block; margin-bottom: 8px; font-weight: 600; color: #495057; }

.muted-italic { margin: 0; color: #6c757d; font-style: italic; line-height: 1.5; }

.flag-img { width: 24px; height: 18px; margin-right: 10px; object-fit: cover; border: 1px solid #eee; }

.heading-24 { font-size: 24px; font-weight: 600; color: #2c3e50; margin-bottom: 15px; }

/* Hide content until JS initializes the page */
.hideTillJavascriptLoaded { display: none; }
.hideTillJavascriptLoaded.visible { display: block; }

.mr-3 { margin-right: 3px; }
.mr-10 { margin-right: 10px; }
.mr-2 { margin-right: 0.5rem; }
.mx-10 { margin-left: 10px; margin-right: 10px; }

/* Tab menu icon color utilities used in UserProfile tabs */
.tab-icon-teal { color: #00796B; }
.tab-icon-purple { color: var(--color-children-label); }
.tab-icon-brown { color: #8D7D6B; }
.tab-icon-green { color: #388E3C; }
.tab-icon-tan { color: #9A8C75; }
.tab-icon-blue { color: #1976D2; }
.tab-icon-red { color: #C2185B; }
.tab-icon-gray { color: #6B7F8A; }
.tab-icon-navy { color: #2C5780; }
.tab-icon-slate { color: #546E7A; }

/* Table header utility used in various profile tables */
.project-table-cell {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.inbox-icon { font-size: 22px; color: #E8D4B8; display: block; margin-bottom: 6px; }
.text-13 { font-size: 13px; }
.nowrap { white-space: nowrap; }
.label-strong-14 { font-size: 14px; font-weight: 700; }
.border-muted { border-color: #B3C5C6 !important; }
.text-12 { font-size: 12px; }
.text-green { color: #2E7D32 !important; }
/*.input-teal { border: 1px solid #80CBC4; border-radius: 6px; padding: 4px; transition: all 0.3s ease; }
.input-blue { border: 1px solid #90CAF9; border-radius: 6px; padding: 4px; transition: all 0.3s ease; }*/
/*.input-children { border: 1px solid var(--color-children-border); border-radius: 6px; padding: 4px; transition: all 0.3s ease; }*/
/*.input-tan { border: 1px solid #C5B8A0; border-radius: 6px; padding: 4px; transition: all 0.3s ease; }*/
/*.input-pale { border: 1px solid #E0C9A8; border-radius: 6px; padding: 4px; transition: all 0.3s ease; }*/
.input-pale-1-5 { border: 1.5px solid #E0C9A8; border-radius: 7px; padding: 4px; }
.w-150 { width: 150px !important; }
.minw-110 { min-width: 110px !important; max-width: 100% !important; }
.card-action-bar { background-color: #E3F2FD; border-radius: 5px 5px 0 0; }
.btn-main-theme { background-color: var(--mainThemeColor); border: none; }
.ag-h-700 { height: 700px !important; font-family: sans-serif; }
.font-12-bold { font-size: 12px; font-weight: 700; }
.w-94 { width: 94px !important; }
.minw-400 { min-width: 400px !important; width: 100% !important; max-width: 400px !important; }
.font-normal { font-weight: 400 !important; }
.mb-20 { margin-bottom: 20px !important; }
.fw-600 { font-weight: 600 !important; }
.fw-500, .fw-500 { font-weight: 500 !important; }
.icon-20 { font-size: 20px; }
.icon-edit { color: var(--color-children-label); }
.icon-save { color: #388E3C; }
.icon-cancel { color: #d32f2f; }
.fa-action { font-size: 20px; }
.fa-action.edit { color: var(--color-children-label); }
.fa-action.save { color: #388E3C; }
.fa-action.cancel { color: #d32f2f; }
.p-10-20 { padding: 10px 20px; }
.m-20-0 { margin: 20px 0; }
.btn-save-divider { border-top-width: 2px; }
.btn-save-divider.ce93d8 { border-top-color: var(--color-children-border); }
.btn-save-divider.c5b8a0 { border-top-color: #C5B8A0; }
.btn-save-divider.a5d6a7 { border-top-color: #A5D6A7; }
.rounded-md { border-radius: var(--radius-md); }
.mb-16 { margin-bottom: 16px !important; }
.maxw-300 { max-width: 300px !important; }
.modal-rounded-lg { border-radius: var(--radius-lg) !important; }
.text-16 { font-size: 16px; }
.title-cell-pad { padding: 12px; letter-spacing: 0.5px; }
.project-minw-160 { min-width: 160px !important; }
.project-minw-140 { min-width: 140px !important; }
.project-minw-100 { min-width: 100px !important; }
.project-text-center { text-align: center; }
.project-text-right { text-align: right; }
.percent-green { color: #66BB6A; }
.fw-700 { font-weight: 700 !important; }
.fa-17 { font-size: 17px; }
.cl-tab-bar { display: flex; flex-wrap: nowrap; gap: 0; border-bottom: 3px solid #C8935A; }
.cl-tab-btn-minw-160 { min-width: 160px !important; }
.grid-auto-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.icon-earthy { color: #C8935A; }
.icon-coins { color: #BCA882; }
.fa-action.pencil { color: #5F6100; }
.no-border { border: none !important; }
.no-padding { padding: 0 !important; }
.grid-auto-fit-190 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.overflow-x-auto { overflow-x: auto; }
.w-10p { width: 10% !important; }
.w-25p { width: 25% !important; }
.w-8p { width: 8% !important; }
.w-12p { width: 12% !important; }
.w-15p { width: 15% !important; }
.cl-card-unit-color { color: #C8935A; }
.icon-delete { color: #e53935; }
.icon-medal { color: #C4907A; }
.cl-card-unit { color: var(--color-earthy-primary); }
.grid-1fr-1fr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-rounded-lg { border-radius: var(--radius-lg); }
.modal-rounded-11 { border-radius: 11px; overflow: hidden; }
.modal-body--pale { background: #FDF6EE; }
.cl-card-unit-color { color: #C8935A; }
.search-input-highlight { border: 2px solid #5eead4; border-radius: 10px; height: 3.5em; }
.section-divider { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid #EDD9BC; }
.check-small { width: 14px; height: 14px; border-width: 2px; vertical-align: middle; }
.mb-22 { margin-bottom: 22px !important; }
.mb-18 { margin-bottom: 18px !important; }
.table-bordered-pale { background: white; border-radius: 8px; border: 1px solid #E0C9A8; }
.border-pale { border: 1px solid #E0C9A8 !important; }
.border-bottom-pale { border-bottom: 1px solid #E0C9A8 !important; }
.input-inline { display: inline-block; border: 1px solid #E0C9A8; border-radius: 4px; padding: 8px; width: 90%; }
.input-padded { border: 1px solid #E0C9A8; border-radius: 4px; padding: 8px; }
.checkbox-sm { width: 20px; height: 20px; cursor: pointer; accent-color: #C8935A; }
.allowance-empty { padding: 20px; text-align: center; color: #C4AA88; }
.fa-inbox-22 { font-size: 22px; color: #E8D4B8; display: block; margin-bottom: 6px; }
.icon-approve { color: #5A8838 !important; }
.loading-spinner .fa-spinner { font-size: 24px; margin-bottom: 10px; }
.p-80-20 { padding: 80px 20px; }
.fa-64 { font-size: 64px; }
.modal-body-maxh-60vh { max-height: 60vh; overflow: auto; }
.p-0 { padding: 0 !important; }
.cursor-pointer { cursor: pointer; }
.label-muted-uppercase { opacity: 0.9; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.currency-label { font-size: 12px; color: #A0703A; font-weight: 700; flex-shrink: 0; }

/* Small spacing utilities used by PMIS view */
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.mt-10 { margin-top: 10px; }
.mt-8  { margin-top: 8px; }
.mt-0  { margin-top: 0; }
.mt-neg-6 { margin-top: -6px; }

/* PMIS specific utilities */
.pmis-h3 { font-size: 13px; color: var(--pm-muted); margin: 0 0 8px; }
.pmis-actions.mt-10 { margin-top: 10px; }

/* Small input/display utilities */
.input-inline-auto { display: inline-block; width: auto; }
.text-095 { font-size: 0.95rem; }

/* AG Grid defaults used in multiple views */
.ag-grid-default { font-family: sans-serif; }
.ag-grid-height-500 { height: 500px; }

/* spacing utilities for specific pixel values used across views */
.mt-20 { margin-top: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-6  { margin-top: 6px; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }
.mt-4 { margin-top: 4px; }

/* Width utilities */
.w-120 { width: 120px !important; }
.w-auto { width: auto !important; }

/* General Controls & Summary */
input.boldControl,
.boldControl,
select.boldControl {
    font-weight: bold;
    color: #2C2400;
}

.user-summary {
    background-color: var(--mainThemeBackgoundColor, #F3FEFF);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--mainThemeColor, #337687);
    color: #1f2d30;
}

.user-summary .summary-title {
    color: var(--mainThemeColor, #337687);
}

.user-summary .badge {
    background-color: var(--color-white);
    color: #333;
}

.user-summary .icon {
    color: var(--alternateThemeColor, #eeac4e);
}

/* Gradient utilities */
.gradient-earthy {
    background: linear-gradient(135deg, var(--color-earthy-primary) 0%, var(--color-earthy-dark) 100%);
    color: var(--color-white);
}

.gradient-ch {
    background: linear-gradient(135deg, var(--color-ch-primary) 0%, var(--color-ch-dark) 100%);
    color: var(--color-white);
}

.gradient-alert {
    background: linear-gradient(135deg, var(--color-alert-primary), var(--color-alert-dark));
    color: var(--color-white);
}

/* Section heading */
.cl-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #EDD9BC;
}

.cl-section-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cl-section-icon.earthy {
    background: linear-gradient(135deg, var(--color-earthy-primary), var(--color-earthy-dark));
}

.cl-section-icon i {
    color: var(--color-white);
    font-size: 15px;
}

.cl-section-head h4 {
    margin: 0;
    color: var(--color-earthy-text);
    font-weight: 700;
    font-size: 16px;
}

/* Form labels & controls */
.cl-form-label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 7px;
    color: var(--color-earthy-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cl-form-control {
    border: 1.5px solid var(--color-earthy-border) !important;
    border-radius: var(--radius-md) !important;
    padding: 10px !important;
}

.cl-form-control:focus {
    border-color: var(--color-earthy-primary) !important;
    outline: none;
}

/* Card */
.cl-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cl-card:hover {
    transform: translateY(-3px);
}

.cl-card-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
}

/* small utilities */
.classification-bg {
    background: linear-gradient(135deg, var(--color-ch-primary) 0%, var(--color-ch-dark) 100%);
    color: var(--color-white);
}

/* modal overlay used across views */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-box {
    background: var(--color-white);
    padding: 25px;
    width: 90%;
    max-width: 420px;
    text-align: center;
}

/* Consolidated utilities moved from repeated inline styles in .cshtml files */
.underline-input,
.underline-select {
    border: none;
    border-bottom: 1px solid #333;
    background: transparent;
    font-size: 13px;
    padding: 0.25rem 0.35rem;
}

.label-strong {
    font-size: 14px;
    font-weight: 700;
}

.text-13 { font-size: 13px; }
.text-12 { font-size: 12px; }

.mr-6 { margin-right: 6px; }
.mr-8 { margin-right: 8px; }

.panel-box {
    border: 2px solid #B3C5C6;
    border-radius: 5px;
    max-width: 1000px;
    display: none;
}

/* .info-table row rules were repeated in some views; centralize here */
.info-table > .row {
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.08);
    padding-top: 2px;
}

.info-table > .row:last-child { border-bottom: none; }

/* end of shared-extracted.css */

/* ============================================================
   Internal Deductions — teal ledger theme
   Replaces the ".deductions-container / .page-header / .professional-table"
   block in shared-extracted.css. Scoped under .dd-page so nothing leaks.
   ============================================================ */

.dd-page {
    --dd-ink: #0A2C29;
    --dd-teal: #0E7C6F;
    --dd-teal-deep: #0A5A50;
    --dd-teal-soft: #E7F2F0;
    --dd-teal-tint: #F4F9F8;
    --dd-line: #D9E5E2;
    --dd-line-strong: #BCD2CE;
    --dd-muted: #5D7370;
    --dd-surface: #FFFFFF;
    --dd-canvas: #F6F9F8;
    --dd-amber: #A65A12;
    --dd-amber-soft: #FBF2E7;
    --dd-r: 10px;
    --dd-r-sm: 6px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 24px 56px;
    background: var(--dd-canvas);
    min-height: 100vh;
    color: var(--dd-ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

    .dd-page :focus-visible {
        outline: 2px solid var(--dd-teal);
        outline-offset: 2px;
        border-radius: 3px;
    }

/* ---------- Header ---------- */
.dd-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--dd-teal);
}

.dd-head__title {
    margin: 0;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.015em;
    color: var(--dd-ink);
    display: flex;
    align-items: center;
    gap: 12px;
}

    .dd-head__title i {
        font-size: 17px;
        color: var(--dd-teal);
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--dd-teal-soft);
        border-radius: var(--dd-r-sm);
    }

.dd-head__sub {
    margin: 6px 0 0 46px;
    color: var(--dd-muted);
    font-size: 13px;
}

.dd-head__count {
    font-size: 13px;
    color: var(--dd-muted);
    padding-bottom: 3px;
}

    .dd-head__count b {
        color: var(--dd-ink);
        font-weight: 650;
    }

/* ---------- Search ---------- */
.dd-search {
    position: relative;
    max-width: 440px;
    margin-bottom: 18px;
}

    .dd-search i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--dd-muted);
        font-size: 13px;
        pointer-events: none;
    }

    .dd-field,
    .dd-search input {
        width: 100%;
        padding: 11px 14px;
        border: 1px solid var(--dd-line-strong);
        border-radius: var(--dd-r-sm);
        background: var(--dd-surface);
        font-size: 14px;
        color: var(--dd-ink);
        transition: border-color .15s ease, box-shadow .15s ease;
    }

    .dd-search input {
        padding-left: 38px;
    }

        .dd-field::placeholder,
        .dd-search input::placeholder {
            color: #94A8A5;
        }

        .dd-field:focus,
        .dd-search input:focus {
            outline: none;
            border-color: var(--dd-teal);
            box-shadow: 0 0 0 3px rgba(14, 124, 111, .14);
        }

select.dd-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235D7370'%3E%3Cpath d='M4.5 6.5 8 10l3.5-3.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
}

/* ---------- Table ---------- */
.dd-table-wrap {
    background: var(--dd-surface);
    border: 1px solid var(--dd-line);
    border-radius: var(--dd-r);
    overflow: hidden;
}

.dd-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

    .dd-table thead th {
        background: var(--dd-teal-tint);
        color: var(--dd-teal-deep);
        font-size: 12px;
        font-weight: 650;
        text-align: left;
        padding: 12px 16px;
        white-space: nowrap;
        border-bottom: 1px solid var(--dd-line-strong);
    }

        .dd-table thead th i {
            margin-right: 7px;
            opacity: .65;
        }

    .dd-table tbody td {
        padding: 14px 16px;
        border-bottom: 1px solid var(--dd-line);
        vertical-align: middle;
    }

    .dd-table tbody tr:last-child td {
        border-bottom: none;
    }

    .dd-table tbody tr:hover {
        background: var(--dd-teal-tint);
    }

.dd-staff {
    font-weight: 600;
    color: var(--dd-ink);
    white-space: nowrap;
}

.dd-type {
    color: var(--dd-muted);
}

.dd-num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
}

.dd-num--due {
    font-weight: 650;
    color: var(--dd-amber);
}

.dd-num--clear {
    font-weight: 650;
    color: var(--dd-teal);
}

.dd-th--num {
    text-align: right;
}

/* Repayment meter — the one piece of visual weight on the page */
.dd-meter {
    min-width: 132px;
}

.dd-meter__bar {
    height: 6px;
    border-radius: 3px;
    background: var(--dd-line);
    overflow: hidden;
}

.dd-meter__fill {
    display: block;
    height: 100%;
    background: var(--dd-teal);
    border-radius: 3px;
}

.dd-meter__fill--done {
    background: var(--dd-teal-deep);
}

.dd-meter__text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--dd-muted);
    font-variant-numeric: tabular-nums;
}

.dd-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    background: var(--dd-amber-soft);
    color: var(--dd-amber);
}

.dd-pill--clear {
    background: var(--dd-teal-soft);
    color: var(--dd-teal-deep);
}

/* ---------- Buttons ---------- */
.dd-btn,
.dd-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: var(--dd-r-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.dd-btn {
    background: var(--dd-teal);
    color: #fff;
}

    .dd-btn:hover,
    .dd-btn:focus {
        background: var(--dd-teal-deep);
        color: #fff;
    }

.dd-btn-link {
    background: var(--dd-surface);
    border-color: var(--dd-line-strong);
    color: var(--dd-teal-deep);
    padding: 7px 12px;
}

    .dd-btn-link:hover,
    .dd-btn-link:focus {
        background: var(--dd-teal-soft);
        border-color: var(--dd-teal);
        color: var(--dd-teal-deep);
    }

/* ---------- Empty / loading ---------- */
.dd-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--dd-muted);
}

    .dd-empty i {
        font-size: 26px;
        color: var(--dd-line-strong);
        display: block;
        margin-bottom: 12px;
    }

    .dd-empty b {
        display: block;
        color: var(--dd-ink);
        font-size: 15px;
        margin-bottom: 4px;
    }

    .dd-empty p {
        margin: 0;
        font-size: 13px;
    }

/* ---------- Form ---------- */
.dd-form {
    max-width: 880px;
    background: var(--dd-surface);
    border: 1px solid var(--dd-line);
    border-radius: var(--dd-r);
    overflow: hidden;
}

.dd-form__head {
    padding: 16px 24px;
    background: var(--dd-teal-tint);
    border-bottom: 1px solid var(--dd-line-strong);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 650;
    color: var(--dd-teal-deep);
}

.dd-form__body {
    padding: 24px;
}

.dd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
}

.dd-group {
    display: flex;
    flex-direction: column;
}

.dd-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dd-ink);
    margin-bottom: 7px;
}

    .dd-label i {
        color: var(--dd-teal);
        margin-right: 7px;
        width: 14px;
    }

    .dd-label .dd-req {
        color: #B3261E;
        margin-left: 2px;
    }

.dd-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--dd-muted);
}

.dd-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 22px;
    padding: 14px 16px;
    background: var(--dd-teal-soft);
    border-left: 3px solid var(--dd-teal);
    border-radius: 0 var(--dd-r-sm) var(--dd-r-sm) 0;
    font-size: 13px;
    color: var(--dd-teal-deep);
}

    .dd-note i {
        margin-top: 2px;
    }

    .dd-note b {
        font-weight: 650;
    }

.dd-form__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 24px;
    background: var(--dd-teal-tint);
    border-top: 1px solid var(--dd-line);
}

    .dd-form__foot p {
        margin: 0;
        font-size: 13px;
        color: var(--dd-muted);
        max-width: 52ch;
    }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .dd-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dd-page {
        padding: 20px 14px 40px;
    }

    .dd-head__title {
        font-size: 20px;
    }

    .dd-head__sub {
        margin-left: 0;
    }

    .dd-table-wrap {
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .dd-table thead {
        display: none;
    }

    .dd-table tbody tr {
        display: block;
        background: var(--dd-surface);
        border: 1px solid var(--dd-line);
        border-radius: var(--dd-r);
        padding: 14px 16px;
        margin-bottom: 12px;
    }

        .dd-table tbody tr:hover {
            background: var(--dd-surface);
        }

    .dd-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 7px 0;
        border-bottom: none;
        text-align: left;
    }

        .dd-table tbody td::before {
            content: attr(data-label);
            font-size: 12px;
            font-weight: 600;
            color: var(--dd-muted);
            flex-shrink: 0;
        }

        .dd-table tbody td.dd-staff {
            display: block;
            font-size: 16px;
            padding-bottom: 10px;
            margin-bottom: 6px;
            border-bottom: 1px solid var(--dd-line);
        }

            .dd-table tbody td.dd-staff::before {
                display: none;
            }

    .dd-meter {
        display: block;
    }

        .dd-meter::before {
            margin-bottom: 7px;
            display: block;
        }

    .dd-btn-link {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .dd-table tbody td:last-child::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dd-page * {
        transition: none !important;
    }
}

/* Internal Deductions page (dd- prefixed) - centered, responsive form */
.dd-page {
    max-width: 980px;
    margin: 18px auto 48px auto;
    padding: 18px;
}

.dd-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.dd-head__title { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 10px; color: #204d4d; }
.dd-head__sub { margin: 4px 0 0 0; color: #556b6b; font-size: 13px; }

.dd-form {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(18, 83, 83, 0.06);
    padding: 18px;
    border: 1px solid rgba(0,128,128,0.06);
}

.dd-form__head {
    font-weight: 600;
    color: #075e5e;
    padding: 10px 12px;
    background: linear-gradient(90deg, rgba(0,128,128,0.04), rgba(0,128,128,0.02));
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.dd-form__body { padding: 8px 2px 14px 2px; }

.dd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dd-group { display: flex; flex-direction: column; }
.dd-label { font-weight: 700; color: #0b5959; font-size: 13px; margin-bottom: 8px; }
.dd-req { color: #d9534f; margin-left: 6px; }
.dd-field { padding: 10px 12px; border: 1.5px solid #e6f3f3; border-radius: 8px; font-size: 14px; color: #203737; }
.dd-field:focus { outline: none; border-color: #00a0a0; box-shadow: 0 0 0 4px rgba(0,160,160,0.06); }
.dd-hint { font-size: 12px; color: #6b7a7a; margin-top: 6px; }

.dd-note { margin-top: 12px; padding: 10px 12px; background: #f0fbfb; border: 1px solid #d7f0ef; border-radius: 8px; color: #0b6666; font-size: 14px; display: flex; align-items: center; gap: 8px; }

.dd-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,0.04); margin-top: 12px; }
.dd-form__foot p { margin: 0; color: #566d6d; font-size: 13px; }
.dd-btn { background: linear-gradient(135deg,#008080 0%,#006666 100%); color: #fff; border: none; padding: 10px 16px; border-radius: 8px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(0,128,128,0.14); }
.dd-btn i { margin-right: 8px; }

@media (max-width: 900px) {
    .dd-grid { grid-template-columns: 1fr; }
    .dd-page { padding: 12px; }
}
