:root {
    --ink: #17212b;
    --muted: #657180;
    --line: #dbe2ea;
    --panel: #ffffff;
    --bg: #f4f7fb;
    --primary: #0e5f7f;
    --primary-dark: #0a4660;
    --accent: #1d7fb5;
    --danger: #b42318;
    --good: #147a4d;
    --nav: #081a35;
    --nav-soft: #102849;
    --blue-soft: #e7f3ff;
    --warn-bg: #fff7df;
    --danger-bg: #fff0ed;
    --radius: 8px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, #f8fbff 0, var(--bg) 240px);
}
a { color: inherit; text-decoration: none; }
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    background: var(--nav);
    color: #f6fbfc;
    padding: 18px 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.25;
}
.brand-logo {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    display: block;
    flex: 0 0 38px;
}
.nav { display: grid; gap: 6px; }
.nav-section {
    margin: 12px 4px 4px;
    color: #8fb3c7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.nav a {
    --item-accent: #74c7ff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px 9px 12px;
    border-radius: 6px;
    color: #d9e7eb;
    font-size: 14px;
    font-weight: 650;
    position: relative;
    transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
}
.nav a svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.1;
    flex: 0 0 auto;
    color: var(--item-accent);
    filter: drop-shadow(0 0 8px rgba(255,255,255,.03));
}
.nav a span { line-height: 1.15; }
.nav a:hover {
    background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
    color: #fff;
    transform: translateX(3px);
}
.nav a:hover::before, .nav a.active::before { background: var(--item-accent); }
.nav a.active {
    background: linear-gradient(90deg, rgba(255,255,255,.17), rgba(255,255,255,.075));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.nav a.active svg { color: #fff; }
.nav-group {
    display: grid;
    gap: 5px;
}
.nav-group summary {
    --item-accent: #34d399;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px 9px 12px;
    border-radius: 6px;
    color: #d9e7eb;
    font-size: 14px;
    font-weight: 750;
    list-style: none;
    cursor: pointer;
    position: relative;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
}
.nav-group summary::after {
    content: "";
    margin-left: auto;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .75;
}
.nav-group[open] summary::after { transform: rotate(225deg); }
.nav-group summary svg {
    width: 17px;
    height: 17px;
    color: var(--item-accent);
}
.nav-group summary:hover,
.nav-group summary.active {
    background: linear-gradient(90deg, rgba(255,255,255,.17), rgba(255,255,255,.075));
    color: #fff;
}
.nav-group summary:hover::before,
.nav-group summary.active::before { background: var(--item-accent); }
.nav-subitems {
    display: grid;
    gap: 4px;
    padding-left: 12px;
}
.nav-subitems a {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
}
.nav-dashboard { --item-accent: #8fd3ff; }
.nav-clients { --item-accent: #7dd3fc; }
.nav-projects { --item-accent: #a7f3d0; }
.nav-categories { --item-accent: #f9c74f; }
.nav-workers { --item-accent: #f4a261; }
.nav-assignments { --item-accent: #c4b5fd; }
.nav-timesheets { --item-accent: #67e8f9; }
.nav-expenses { --item-accent: #fca5a5; }
.nav-suppliers { --item-accent: #86efac; }
.nav-rfqs { --item-accent: #fbbf24; }
.nav-purchase_orders { --item-accent: #facc15; }
.nav-quotations { --item-accent: #38bdf8; }
.nav-job_offers { --item-accent: #34d399; }
.nav-hr_pending_employees { --item-accent: #fbbf24; }
.nav-hr_employees { --item-accent: #60a5fa; }
.nav-hr_archived_employees { --item-accent: #cbd5e1; }
.nav-invoices { --item-accent: #93c5fd; }
.nav-reports { --item-accent: #5eead4; }
.nav-financial_statements { --item-accent: #d8b861; }
.nav-users { --item-accent: #d8b4fe; }
.nav-roles { --item-accent: #cbd5e1; }
.nav-purchase_orders.active {
    background: linear-gradient(90deg, rgba(250, 204, 21, .24), rgba(250, 204, 21, .08));
}
.nav-quotations.active {
    background: linear-gradient(90deg, rgba(56, 189, 248, .22), rgba(56, 189, 248, .07));
}
.nav-invoices.active {
    background: linear-gradient(90deg, rgba(147, 197, 253, .22), rgba(147, 197, 253, .07));
}
.nav-suppliers.active {
    background: linear-gradient(90deg, rgba(134, 239, 172, .20), rgba(134, 239, 172, .06));
}
.nav-rfqs.active {
    background: linear-gradient(90deg, rgba(251, 191, 36, .22), rgba(251, 191, 36, .07));
}
.main { min-width: 0; }
.topbar {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.content { padding: 22px; max-width: 1400px; }
h1 { font-size: 24px; margin: 0 0 16px; letter-spacing: 0; }
h2 { font-size: 18px; margin: 0 0 12px; letter-spacing: 0; }
.muted { color: var(--muted); }
.eyebrow {
    margin: 0 0 7px;
    color: #0e5f7f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.grid { display: grid; gap: 14px; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.card, .panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(8, 26, 53, .04);
}
.card { padding: 16px; }
.card .label { color: var(--muted); font-size: 13px; }
.card .value { font-size: 24px; font-weight: 700; margin-top: 7px; }
.panel { padding: 16px; margin-bottom: 16px; }
.onboarding-page {
    display: block;
    padding: 28px;
}
.onboarding-box {
    width: min(1040px, 100%);
    max-width: 1040px;
    margin: 0 auto;
}
.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #d8e7ee;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(235, 247, 251, .96)),
        linear-gradient(90deg, rgba(14,95,127,.10), rgba(20,122,77,.08));
    box-shadow: 0 16px 42px rgba(8, 26, 53, .07);
}
.dashboard-hero h1 { margin-bottom: 6px; font-size: 30px; }
.hero-date {
    min-width: 156px;
    padding: 13px 15px;
    border: 1px solid rgba(14,95,127,.15);
    border-radius: var(--radius);
    background: rgba(255,255,255,.78);
    text-align: right;
}
.hero-date span { display: block; color: var(--muted); font-size: 13px; }
.hero-date strong { display: block; margin-top: 4px; font-size: 17px; }
.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.metric-card {
    --metric: var(--primary);
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-height: 108px;
    padding: 17px;
    border: 1px solid rgba(216,226,234,.95);
    border-top: 4px solid var(--metric);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #f9fcff);
    box-shadow: 0 12px 30px rgba(8, 26, 53, .055);
}
.metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--metric);
    background: color-mix(in srgb, var(--metric) 12%, white);
    flex: 0 0 auto;
}
.metric-icon svg { width: 20px; height: 20px; }
.metric-card .label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
}
.metric-card .value {
    margin-top: 8px;
    font-size: 23px;
    font-weight: 850;
    color: #081827;
}
.metric-card .money { white-space: normal; }
.metric-blue { --metric: #1d7fb5; }
.metric-green { --metric: #147a4d; }
.metric-amber { --metric: #b7791f; }
.metric-teal { --metric: #0f766e; }
.metric-slate { --metric: #52677a; }
.metric-purple { --metric: #7c3aed; }
.metric-indigo { --metric: #3155a4; }
.metric-rose { --metric: #be4b68; }
.dashboard-panel {
    border-color: #d7e4ec;
    box-shadow: 0 14px 34px rgba(8, 26, 53, .055);
}
.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.panel-title h2 { margin: 0; }
.panel-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--blue-soft);
    border-radius: 8px;
}
.panel-icon svg { width: 18px; height: 18px; }
.calm-state {
    margin: 0;
    padding: 16px;
    border: 1px solid #cfe9d8;
    border-radius: var(--radius);
    background: #f0fbf5;
    color: #17613e;
    font-weight: 700;
}
.dashboard-project-list {
    display: grid;
    gap: 8px;
}
.dashboard-project-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) 94px 112px 112px 94px;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 9px 12px;
    border: 1px solid #dbe5ec;
    border-left: 3px solid #18a058;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(8, 26, 53, .035);
}
.dashboard-project-row.completed {
    border-left-color: #94a3b8;
    background: #fbfcfd;
}
.dashboard-project-name {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.dashboard-project-name span,
.dashboard-project-mini span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}
.dashboard-project-name strong {
    color: #071827;
    font-size: 15px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.dashboard-project-status {
    justify-self: start;
}
.dashboard-project-mini {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.dashboard-project-mini strong {
    color: var(--ink);
    font-size: 13px;
    white-space: nowrap;
}
.dashboard-project-mini.team strong { color: #0e5f7f; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.button, button {
    border: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    padding: 9px 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
}
.button svg, button svg { width: 16px; height: 16px; }
.button.secondary { background: #e8eef2; color: var(--ink); }
.button.danger, button.danger { background: var(--danger); }
.button:hover, button:hover { background: var(--primary-dark); }
button.danger:hover, .button.danger:hover { background: #8f1d15; }
.compact-button { padding: 9px 10px; white-space: nowrap; }
.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 26, 53, .42);
}
.confirm-overlay.show { display: flex; }
.confirm-overlay.is-assignment-confirm .confirm-box {
    width: min(560px, 100%);
    padding: 20px;
    border-color: #d8e5ee;
    box-shadow: 0 30px 70px rgba(8, 26, 53, .28);
}
.confirm-overlay.is-assignment-confirm .confirm-title {
    margin-bottom: 6px;
    color: var(--nav);
}
.confirm-overlay.is-assignment-confirm .confirm-message {
    max-width: 460px;
    margin-bottom: 14px;
}
.confirm-box {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 24px 60px rgba(8, 26, 53, .22);
}
.confirm-box p { margin: 0 0 16px; color: var(--muted); }
.confirm-assignment-wrap {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid #dbe7ee;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(27, 22, 79, .05), transparent 42%),
        linear-gradient(135deg, #f8fbfe, #fff);
}
.confirm-assignment-wrap.show { display: grid !important; }
.confirm-assignment-wrap div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #e3edf3;
    border-radius: 9px;
    background: rgba(255,255,255,.86);
}
.confirm-assignment-wrap div:nth-child(3),
.confirm-assignment-wrap div:nth-child(4) {
    grid-column: 1 / -1;
}
.confirm-assignment-wrap span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.confirm-assignment-wrap strong {
    display: block;
    color: var(--nav);
    font-size: 13px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.confirm-date-wrap {
    display: none;
    margin: 0 0 16px;
}
.confirm-date-wrap.show { display: grid; }
.confirm-overlay.is-assignment-confirm .confirm-date-wrap {
    gap: 5px;
}
.confirm-overlay.is-assignment-confirm .confirm-date-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.confirm-overlay.is-assignment-confirm .confirm-end-date {
    min-height: 40px;
    border-radius: 8px;
    font-weight: 800;
}
.confirm-expense-wrap {
    display: none;
    gap: 10px;
    margin: 0 0 16px;
}
.confirm-expense-wrap.show {
    display: grid;
}
.confirm-expense-wrap label {
    display: grid;
    gap: 4px;
}
.confirm-expense-wrap span,
.confirm-date-wrap span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.confirm-expense-wrap textarea {
    min-height: 58px;
    resize: vertical;
}
.record-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(8, 26, 53, .48);
}
.record-modal-overlay.show { display: flex; }
.record-modal {
    position: relative;
    width: min(880px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(219, 226, 234, .9);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 30px 80px rgba(8, 26, 53, .28);
}
.user-modal {
    width: min(1180px, 100%);
}
.modal-title-row {
    position: sticky;
    top: -18px;
    z-index: 25;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: -18px -18px 14px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    cursor: move;
    user-select: none;
}
.modal-title-row h2 { margin: 0; }
.record-modal.is-dragging {
    transition: none;
    cursor: grabbing;
}
.modal-close {
    position: sticky;
    top: 0;
    z-index: 30;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 999px;
    background: #eef3f7;
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.modal-close:hover { background: #dfe8ef; color: var(--ink); }
.directory-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid #d7e5ed;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(236, 247, 252, .94)),
        linear-gradient(90deg, rgba(14,95,127,.10), rgba(20,122,77,.07));
    box-shadow: 0 16px 42px rgba(8, 26, 53, .07);
}
.directory-head h1 { margin-bottom: 5px; }
.directory-head .muted { margin: 0; }
.supplier-head {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(241, 251, 245, .94)),
        linear-gradient(90deg, rgba(20,122,77,.10), rgba(14,95,127,.06));
}
.expense-head {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(255, 245, 245, .94)),
        linear-gradient(90deg, rgba(180,35,24,.08), rgba(14,95,127,.06));
}
.scheduled-payment-head,
.expenses-compact-head {
    padding: 12px 20px;
    margin-bottom: 12px;
}
.scheduled-payment-head h1,
.expenses-compact-head h1 {
    margin-bottom: 0;
}
.users-head {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(248, 245, 255, .94)),
        linear-gradient(90deg, rgba(124,58,237,.10), rgba(14,95,127,.06));
}
.projects-head {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(239, 251, 246, .94)),
        linear-gradient(90deg, rgba(20,122,77,.10), rgba(14,95,127,.06));
}
.categories-head,
.manpower-head {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(255, 249, 235, .94)),
        linear-gradient(90deg, rgba(183,121,31,.10), rgba(14,95,127,.06));
}
.assignments-head {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(246, 243, 255, .94)),
        linear-gradient(90deg, rgba(124,58,237,.10), rgba(14,95,127,.06));
}
.assignment-finance-strip {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #d7e4ee;
    border-left: 4px solid #240046;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.99), rgba(246,248,255,.96)),
        linear-gradient(90deg, rgba(36,0,70,.07), rgba(14,95,127,.05));
    box-shadow: 0 14px 30px rgba(8,26,53,.045);
}
.assignment-finance-title {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.assignment-finance-title span,
.assignment-finance-metrics span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.assignment-finance-title strong {
    color: #240046;
    font-size: 16px;
    line-height: 1.1;
}
.assignment-finance-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(118px, 1fr));
    gap: 7px;
    min-width: 0;
}
.assignment-finance-metrics > div {
    display: grid;
    gap: 3px;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid #dce7ee;
    border-top: 3px solid #1b164f;
    border-radius: 8px;
    background: #fff;
}
.assignment-finance-metrics strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.1;
}
.assignment-finance-metrics .revenue {
    border-top-color: #0f766e;
    background: linear-gradient(135deg, #ffffff, #f0fdfa);
}
.assignment-finance-metrics .cost {
    border-top-color: #b7791f;
    background: linear-gradient(135deg, #ffffff, #fff8eb);
}
.assignment-finance-metrics .net-positive {
    border-top-color: #147a4d;
    background: linear-gradient(135deg, #ffffff, #effdf5);
}
.assignment-finance-metrics .net-negative {
    border-top-color: var(--danger);
    background: linear-gradient(135deg, #ffffff, #fff3f0);
}
.assignment-finance-metrics .net-positive strong {
    color: #087344;
}
.assignment-finance-metrics .net-negative strong {
    color: var(--danger);
}
.assignment-finance-export {
    white-space: nowrap;
}
.position-rate-panel {
    border-left: 4px solid #7561d8;
    background:
        linear-gradient(135deg, rgba(255,255,255,.99), rgba(248,247,255,.96)),
        #fff;
}
.freelancer-salary-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid #dbe7ef;
    border-left: 4px solid #245f86;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.98), rgba(239,247,255,.94)),
        linear-gradient(135deg, rgba(36,95,134,.08), rgba(180,138,44,.05));
}
.freelancer-salary-note strong {
    color: #0b3150;
    font-size: 13px;
    font-weight: 900;
}
.freelancer-salary-note span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}
.position-rate-body {
    display: grid;
    gap: 10px;
    padding-top: 10px;
}
.position-rate-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.position-rate-title h2 {
    margin: 0 0 3px;
}
.position-rate-title .muted {
    margin: 0;
}
.position-rate-panel .table-wrap {
    margin-top: 2px;
    box-shadow: 0 12px 28px rgba(8,26,53,.045);
}
.position-rate-panel table th,
.position-rate-panel table td {
    padding: 8px 10px;
}
.position-rate-panel td:last-child .row-actions {
    justify-content: flex-start;
    flex-wrap: nowrap;
}
.position-rate-panel td:last-child .row-actions form {
    margin: 0;
}
.position-rate-panel > summary {
    min-height: 46px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.position-rate-body {
    padding: 8px 10px 10px;
}
.position-rate-title {
    align-items: center;
    margin-bottom: 7px;
}
.position-rate-title h2 {
    font-size: 16px;
    margin: 0;
}
.position-rate-title .muted {
    display: none;
}
.position-rate-title .button {
    min-height: 31px;
    padding: 7px 10px;
    border-radius: 7px;
}
.position-rate-panel table th {
    padding: 7px 10px;
    font-size: 10px;
}
.position-rate-panel table td {
    padding: 7px 10px;
    font-size: 13px;
}
.position-rate-panel .badge,
.position-rate-panel .status-badge {
    min-height: 21px;
    padding: 3px 8px;
    font-size: 10px;
}
.position-rate-panel td:last-child .button,
.position-rate-panel td:last-child button {
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 12px;
}
.assignment-group {
    border-left: 4px solid #2b0a57;
    background:
        linear-gradient(135deg, rgba(255,255,255,.99), rgba(248,247,255,.96)),
        #fff;
}
.assignment-group > summary {
    position: relative;
}
.assignment-project-status-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 24px;
    padding: 4px 13px;
    border: 1px solid rgba(20, 164, 111, .22);
    border-radius: 999px;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.96), rgba(255,255,255,0) 34%),
        linear-gradient(135deg, #eafff2, #d9fbe8);
    color: #087344;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 0 0 3px rgba(20, 164, 111, .07), 0 6px 16px rgba(8, 115, 68, .12), inset 0 0 0 1px rgba(255,255,255,.82);
    pointer-events: none;
}
.assignment-project-status-center.completed {
    border-color: rgba(100, 116, 139, .18);
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.92), rgba(255,255,255,0) 34%),
        linear-gradient(135deg, #f3f6fa, #e8edf3);
    color: #475569;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .06), 0 6px 14px rgba(51, 65, 85, .08), inset 0 0 0 1px rgba(255,255,255,.72);
}
.assignment-project-stats {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11px;
}
.assignment-project-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.66);
}
.assignment-project-stats .stat-total {
    border-color: rgba(43,10,87,.12);
    background: linear-gradient(135deg, #f7f3ff, #eef3f8);
    color: #2b0a57;
}
.assignment-project-stats .stat-active {
    border-color: rgba(20,164,111,.14);
    background: linear-gradient(135deg, #effdf5, #e3fbef);
    color: #087344;
}
.assignment-project-stats .stat-ended {
    border-color: rgba(180,46,31,.12);
    background: linear-gradient(135deg, #fff5f3, #fff0ed);
    color: var(--danger);
}
.assignment-list {
    display: grid;
    gap: 7px;
    padding: 10px 12px 12px;
    background: #f6f9fc;
}
.assignment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid #dbe6ef;
    border-left: 4px solid #16a46f;
    border-radius: 8px;
    background: linear-gradient(90deg, #ffffff, #f8fcfb);
    box-shadow: 0 8px 18px rgba(8,26,53,.035);
}
.assignment-row.is-ended {
    border-left-color: var(--danger);
    background: linear-gradient(90deg, #ffffff, #fff8f7);
}
.assignment-row-main {
    display: grid;
    grid-template-columns: minmax(150px, 1.15fr) 104px minmax(116px, .9fr) minmax(105px, .75fr) 72px minmax(108px, .75fr) minmax(108px, .75fr) 82px;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.assignment-worker {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.assignment-worker strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.assignment-worker small,
.assignment-meta small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.assignment-chip {
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef3f8;
    color: #1b3954;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
.assignment-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: #102033;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
}
.assignment-meta .money {
    font-size: inherit;
    font-weight: 900;
}
.assignment-status-pill,
.assignment-status-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
.assignment-status-pill.is-active {
    background: #e8fbf1;
    color: #087344;
}
.assignment-status-pill.is-ended,
.assignment-status-dot.is-ended {
    background: #fff0ed;
    color: var(--danger);
}
.assignment-row-actions {
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: nowrap;
}
.assignment-row-actions form {
    margin: 0;
}
.assignment-row-actions .icon-button,
.assignment-row-actions button.icon-button {
    width: 31px;
    min-width: 31px;
    height: 31px;
    min-height: 31px;
    padding: 0;
}
.assignment-row-actions button.secondary.icon-button {
    background: #e8eef2;
    color: var(--ink);
}
.assignment-row-actions button.secondary.icon-button:hover {
    background: #dce6ec;
}
.assignment-row-actions .reassign-button {
    background: #e8fbf1 !important;
    color: #087344 !important;
}
.assignment-row-actions .reassign-button:hover {
    background: #d7f7e8 !important;
}
.assignment-detail-head {
    align-items: center;
}
.assignment-detail-shell,
.assignment-month-panel {
    display: grid;
    gap: 12px;
}
.assignment-detail-summary,
.assignment-metrics-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    gap: 8px;
}
.assignment-detail-summary > div,
.assignment-metrics-strip > div {
    display: grid;
    gap: 5px;
    min-height: 56px;
    padding: 9px 11px;
    border: 1px solid #dce7ee;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    box-shadow: 0 8px 18px rgba(8,26,53,.035);
}
.assignment-detail-summary span,
.assignment-metrics-strip span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.assignment-detail-summary strong,
.assignment-metrics-strip strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.assignment-metrics-strip .is-positive strong,
.assignment-month-row .is-positive {
    color: #087344;
}
.assignment-metrics-strip .is-negative strong,
.assignment-month-row .is-negative {
    color: var(--danger);
}
.assignment-metrics-strip .metric-accent {
    border-top: 3px solid #240046;
    background: linear-gradient(135deg, #fff, #f7f3ff);
}
.assignment-metrics-strip .metric-revenue {
    border-top: 3px solid #0f766e;
    background: linear-gradient(135deg, #fff, #f0fdfa);
}
.assignment-metrics-strip .metric-cost {
    border-top: 3px solid #b7791f;
    background: linear-gradient(135deg, #fff, #fff8eb);
}
.assignment-month-list {
    display: grid;
    gap: 7px;
}
.assignment-month-row {
    display: grid;
    grid-template-columns: 92px repeat(7, minmax(96px, 1fr));
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #dbe6ef;
    border-left: 4px solid #2b0a57;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}
.assignment-month-row strong {
    color: #1b164f;
}
@media (max-width: 1180px) {
    .assignment-finance-strip {
        grid-template-columns: 1fr;
    }
    .assignment-finance-metrics {
        grid-template-columns: repeat(3, minmax(130px, 1fr));
    }
    .assignment-row-main {
        grid-template-columns: minmax(150px, 1fr) 100px minmax(110px, .8fr) 82px;
    }
    .assignment-row-main .assignment-meta:nth-of-type(2),
    .assignment-row-main .assignment-meta:nth-of-type(3) {
        display: none;
    }
    .assignment-month-row {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 760px) {
    .assignment-row {
        grid-template-columns: 1fr;
    }
    .assignment-row-main,
    .assignment-month-row {
        grid-template-columns: 1fr;
    }
    .assignment-finance-metrics {
        grid-template-columns: 1fr 1fr;
    }
    .assignment-row-actions {
        justify-content: flex-start;
    }
}
.timesheet-head {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(239, 247, 255, .94)),
        linear-gradient(90deg, rgba(49,85,164,.10), rgba(20,122,77,.06));
    min-height: 86px;
    padding: 16px 22px;
    border-left: 4px solid #0b3150;
}
.timesheet-head h1 {
    margin-bottom: 0;
}
.po-head {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(255, 252, 235, .94)),
        linear-gradient(90deg, rgba(250,204,21,.14), rgba(14,95,127,.06));
}
.invoices-head {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(239, 247, 255, .94)),
        linear-gradient(90deg, rgba(49,85,164,.10), rgba(14,95,127,.06));
}
.invoice-filter-form {
    grid-template-columns: minmax(300px, 1.15fr) minmax(170px, .72fr) minmax(230px, .9fr) auto;
    gap: 9px;
    align-items: end;
}
.invoice-party-filter {
    display: grid;
    grid-template-columns: minmax(115px, .55fr) minmax(170px, 1fr);
    gap: 7px;
    padding: 7px;
    border: 1px solid #d7e3ee;
    border-radius: 9px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,249,253,.96)),
        linear-gradient(90deg, rgba(27,22,79,.05), rgba(216,184,97,.08));
}
.invoice-filter-form label {
    gap: 5px;
    color: #40566a;
    font-size: 11px;
    font-weight: 900;
}
.invoice-filter-form select {
    min-height: 34px;
    padding: 7px 28px 7px 10px;
    border-color: #cbd9e6;
    border-radius: 8px;
    background-color: #fff;
    color: #061735;
    font-size: 12px;
    font-weight: 800;
}
.invoice-filter-control select {
    border-left: 3px solid #d8b861;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.invoice-filter-form .row-actions {
    flex-wrap: nowrap;
    gap: 7px;
}
.invoice-filter-form .row-actions button,
.invoice-filter-form .row-actions .button {
    min-height: 34px;
    padding: 8px 13px;
}
.po-modal {
    width: min(1180px, 100%);
}
.timesheet-modal {
    width: min(1220px, 100%);
}
.timesheet-month-wrap {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fbfe;
}
.timesheet-month-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}
.timesheet-month-head h3 { margin: 0 0 4px; }
.timesheet-month-head .muted { margin: 0; }
.timesheet-month-table {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.timesheet-month-table table {
    min-width: 980px;
}
.timesheet-month-table th,
.timesheet-month-table td {
    padding: 7px;
}
.timesheet-month-table input {
    padding: 7px 8px;
}
.timesheet-month-table select {
    min-width: 170px;
    padding: 7px 8px;
}
.two-position-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
    color: var(--ink);
}
.two-position-toggle input {
    width: auto;
}
.timesheet-month-table tr.friday-row td {
    background: #fff7df;
}
.timesheet-month-table tr.friday-row td:first-child {
    border-left: 4px solid #d99512;
}
.timesheet-month-table tr.friday-row input {
    background: #fffaf0;
    border-color: #f0c978;
    color: #5f3b00;
    font-weight: 800;
}
.timesheet-month-table tr.friday-row td:nth-child(2) input {
    color: #9a5b00;
}
.timesheet-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.timesheet-summary div {
    padding: 12px;
    border: 1px solid #dce8ef;
    border-radius: 8px;
    background: #fff;
}
.timesheet-summary span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.timesheet-summary strong {
    font-size: 20px;
}
.timesheet-summary-modal {
    width: min(1180px, calc(100vw - 28px));
    max-height: calc(100vh - 34px);
    overflow: auto;
}
.summary-picker {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9fc 100%);
    padding: 12px;
}
.timesheet-summary-modal input[type="checkbox"],
.timesheet-summary-modal input[type="radio"],
.saved-report-section input[type="checkbox"],
.timesheet-bulk-export input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--primary);
}
.summary-picker-head,
.timesheet-export-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.checkline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    font-weight: 700;
    width: auto;
    color: var(--ink);
}
.checkline input {
    width: auto;
    min-height: 0;
    padding: 0;
}
.summary-tech {
    border: 1px solid #d7e4ef;
    border-radius: 8px;
    background: #fff;
    margin-top: 10px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(8, 26, 53, .04);
}
.summary-tech > summary {
    display: grid;
    grid-template-columns: 26px minmax(240px, 1.35fr) minmax(170px, .8fr) 116px 112px 82px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    background: #fff;
}
.summary-tech > summary::-webkit-details-marker {
    display: none;
}
.summary-tech > summary::before {
    content: "+";
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 0;
    border-radius: 50%;
    background: #eaf2f8;
    color: var(--primary);
    font-weight: 900;
}
.summary-tech[open] > summary::before {
    content: "-";
}
.summary-tech > summary .checkline {
    gap: 10px;
}
.summary-tech > summary > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.summary-tech > summary > span:nth-of-type(1) {
    color: var(--ink);
    text-transform: none;
    font-size: 13px;
}
.summary-tech > summary .button {
    justify-self: end;
}
.summary-tech .tiny {
    min-height: 28px;
    padding: 4px 8px;
}
.select-worker-sheets {
    display: inline-flex;
    margin: 8px 12px 0;
    padding: 6px 10px;
    border: 1px solid #dbe7f0;
    border-radius: 7px;
    background: #f8fbff;
}
.summary-sheet-table {
    padding: 10px 12px 12px;
    overflow-x: auto;
}
.summary-sheet-table table {
    width: 100%;
    border-collapse: collapse;
}
.summary-sheet-table th,
.summary-sheet-table td {
    border-bottom: 1px solid #e2edf5;
    padding: 7px 8px;
    font-size: 12px;
    text-align: left;
}
.summary-options {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: #fff;
}
.summary-options h3 {
    margin: 0 0 10px;
}
.summary-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.summary-options-grid .checkline {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    margin-top: 7px;
    padding: 8px 10px;
    border: 1px solid #dce8ef;
    border-radius: 7px;
    background: #f9fcff;
    color: var(--ink);
}
.summary-options-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.live-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
.live-summary div {
    border: 1px solid #cfe0ee;
    border-radius: 7px;
    background: #f8fbff;
    padding: 8px;
}
.live-summary span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.live-summary strong {
    display: block;
    margin-top: 3px;
    color: var(--ink);
    font-size: 15px;
}
.saved-summary-reports .row-actions,
.timesheet-bulk-export .row-actions {
    flex-wrap: nowrap;
}
.saved-report-section {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-left: 4px solid #0b3150;
    background:
        linear-gradient(90deg, rgba(255,255,255,.98), rgba(248,251,253,.96)),
        linear-gradient(135deg, rgba(11,49,80,.07), rgba(176,134,38,.05));
    box-shadow: 0 10px 26px rgba(7, 18, 40, .045);
}
.saved-report-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(11,49,80,.045), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.55), transparent);
}
.saved-report-summary {
    border-left-color: #b48a2c;
    background:
        linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,251,239,.95)),
        linear-gradient(135deg, rgba(180,138,44,.12), rgba(11,49,80,.04));
}
.saved-report-pdfs {
    border-left-color: #245f86;
    background:
        linear-gradient(90deg, rgba(255,255,255,.98), rgba(239,247,255,.95)),
        linear-gradient(135deg, rgba(36,95,134,.11), rgba(11,49,80,.04));
}
.saved-report-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 16px;
    cursor: pointer;
    list-style: none;
    position: relative;
    z-index: 1;
}
.saved-report-section > summary::-webkit-details-marker {
    display: none;
}
.saved-report-section > summary h2 {
    margin: 0;
    color: #071228;
    font-size: 17px;
    line-height: 1.05;
    letter-spacing: .01em;
}
.saved-report-section > summary .muted {
    margin: 0;
}
.saved-report-section > summary > div {
    flex: 1 1 auto;
    min-width: 0;
}
.saved-report-section > summary::before {
    content: "+";
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: linear-gradient(135deg, #ffffff, #edf4fa);
    color: #0b3150;
    font-weight: 900;
    box-shadow:
        inset 0 0 0 1px #cfdeeb,
        0 6px 14px rgba(7,18,40,.08);
}
.saved-report-summary > summary::before {
    color: #8a6417;
    background: linear-gradient(135deg, #fffdf5, #f6ead0);
    box-shadow:
        inset 0 0 0 1px #e6cf94,
        0 6px 14px rgba(122,85,12,.10);
}
.saved-report-pdfs > summary::before {
    color: #245f86;
    background: linear-gradient(135deg, #ffffff, #e5f1fa);
}
.saved-report-summary > summary h2 {
    color: #7a5a16;
}
.saved-report-pdfs > summary h2 {
    color: #245f86;
}
.saved-report-section > summary .badge {
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(207,222,235,.9);
    color: #0b3150;
    box-shadow: 0 6px 16px rgba(7,18,40,.055);
}
.saved-report-summary > summary .badge {
    border-color: #ead8a8;
    color: #7a5a16;
}
.saved-report-pdfs > summary .badge {
    border-color: #cde0ef;
    color: #245f86;
}
.saved-report-section[open] > summary::before {
    content: "-";
}
.saved-report-section > table,
.saved-report-section > .table-wrap {
    margin: 0 16px 16px;
}
.summary-review-panel .panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.timesheet-bulk-export .table-wrap {
    margin-top: 8px;
}
.timesheet-row-focus {
    outline: 2px solid #16a34a;
    outline-offset: -2px;
    background: #f0fff6;
    box-shadow: inset 4px 0 0 #16a34a;
    animation: timesheetFocusPulse 1.2s ease 2;
}
@keyframes timesheetFocusPulse {
    50% { background: #dcfce7; }
}
.timesheet-export-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) repeat(2, auto);
    align-items: end;
    gap: 8px;
    margin: 8px 0;
}
.timesheet-export-options label {
    font-size: 11px;
}
.timesheet-export-options input {
    min-height: 34px;
    padding: 7px 9px;
}
.timesheet-export-options .client-fixed-rate {
    align-self: end;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #d8e5f0;
    border-radius: 7px;
    background: #f8fbff;
    white-space: nowrap;
}
.hidden-form {
    display: none;
}
.invoice-file-note {
    padding: 10px 12px;
    border: 1px solid #dce8ef;
    border-radius: 7px;
    background: #f8fbfe;
    color: var(--muted);
    font-weight: 700;
}
.invoice-timesheet-picker {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: #f8fbfe;
}
.invoice-timesheet-picker .panel-title {
    margin-bottom: 10px;
}
.invoice-timesheet-list {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow: auto;
}
.invoice-timesheet-option {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #dce8ef;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
}
.invoice-timesheet-option input {
    width: auto;
    margin-top: 3px;
}
.invoice-timesheet-option span {
    display: grid;
    gap: 3px;
}
.invoice-timesheet-option small {
    color: var(--muted);
    font-weight: 700;
}
.invoice-timesheet-option em {
    color: #9a5b00;
    font-style: normal;
    font-weight: 800;
}
.invoice-status-note {
    display: grid;
    gap: 6px;
    align-content: center;
    padding: 10px 12px;
    border: 1px solid #dce8ef;
    border-radius: 7px;
    background: #f8fbfe;
}
.invoice-status-note span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.invoice-status-note strong {
    color: #0c314d;
    text-transform: capitalize;
}
.readonly-field {
    background: #f4f7fa;
    color: var(--muted);
}
.invoice-group-list {
    display: grid;
    gap: 12px;
}
.invoice-group > summary {
    background: linear-gradient(90deg, #ffffff, #f5fbff);
}
.invoice-group-issued > summary::before {
    background: #e9f4ff;
    color: #1d5f92;
}
.invoice-group-received > summary::before {
    background: #f1eaff;
    color: #6d28d9;
}
.invoice-group-body {
    padding: 12px;
    background: #f7fafc;
    border-top: 1px solid var(--line);
}
.invoice-group-empty {
    margin: 0;
    padding: 8px 4px;
}
.invoice-settings-modal,
.generate-invoice-modal {
    width: min(1180px, 100%);
}
.invoice-settings-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.invoice-settings-nav {
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid #dbe6ef;
    border-radius: 12px;
    background: #f5f9fc;
}
.invoice-settings-nav button {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 2px 9px;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #0b3150;
    text-align: left;
    box-shadow: none;
}
.invoice-settings-nav button:hover,
.invoice-settings-nav button.active {
    border-color: #bfd3e4;
    background: #fff;
    box-shadow: 0 10px 22px rgba(11, 49, 80, .08);
}
.invoice-settings-nav button.active {
    border-left: 4px solid var(--brand);
}
.invoice-settings-nav button i {
    grid-row: span 2;
    width: 17px;
    height: 17px;
}
.invoice-settings-nav button span {
    font-size: 12px;
    font-weight: 900;
}
.invoice-settings-nav button small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}
.invoice-settings-content {
    min-width: 0;
}
.invoice-settings-panel {
    display: none;
    border: 1px solid #dbe6ef;
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,.99), rgba(247,251,255,.96)), #fff;
}
.invoice-settings-panel.active {
    display: block;
}
.settings-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4edf4;
}
.settings-panel-head h3 {
    margin: 0 0 2px;
    color: #0b3150;
    font-size: 16px;
}
.settings-panel-head .muted {
    margin: 0;
}
.invoice-settings-search {
    display: block;
    margin-bottom: 10px;
}
.invoice-settings-search input {
    margin-top: 5px;
}
.invoice-settings-add-form {
    display: none;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #dbe6ef;
    border-radius: 10px;
    background: #f8fbfe;
}
.invoice-settings-add-form.show {
    display: grid;
}
.quick-client-panel,
.invoice-item-builder {
    border: 1px solid #dbe6ef;
    border-radius: 10px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,.99), rgba(247,251,255,.96)), #fff;
}
.quick-client-panel h3,
.invoice-item-builder h3 {
    margin: 0 0 10px;
    color: #0b3150;
    font-size: 14px;
}
.invoice-settings-list {
    display: grid;
    gap: 7px;
    margin-top: 10px;
    max-height: 390px;
    overflow: auto;
}
.invoice-settings-row {
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    background: #fff;
}
.invoice-settings-row summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    list-style: none;
}
.invoice-settings-row summary::-webkit-details-marker {
    display: none;
}
.invoice-settings-row summary strong {
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.invoice-settings-row summary span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}
.invoice-settings-row summary i {
    width: 15px;
    height: 15px;
    color: var(--muted);
    transition: transform .15s ease;
}
.invoice-settings-row[open] summary i {
    transform: rotate(180deg);
}
.invoice-settings-row form {
    padding: 0 10px 10px;
}
.invoice-settings-empty {
    margin: 0;
    padding: 12px;
    border: 1px dashed #c8d8e6;
    border-radius: 8px;
    background: #fbfdff;
}
.generated-invoice-form {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}
.quick-client-panel {
    display: none;
}
.invoice-item-builder {
    padding: 10px;
}
.invoice-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.invoice-add-item-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.invoice-add-item-button svg {
    width: 17px;
    height: 17px;
}
.generated-items {
    display: grid;
    gap: 7px;
}
.generated-item-row {
    display: grid;
    grid-template-columns: 34px minmax(340px, 1fr) 76px 100px 100px 86px 100px 32px;
    align-items: stretch;
    gap: 6px;
    padding: 7px;
    border: 1px solid #d9e5ee;
    border-left: 3px solid #1f5d83;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff, #f8fbfe);
}
.generated-item-row .item-no,
.generated-item-row strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid #dbe6ef;
    border-radius: 7px;
    background: #f8fbff;
    color: #0b3150;
    font-size: 12px;
    font-weight: 900;
}
.generated-item-row .item-no {
    margin-top: 17px;
    width: 100%;
    padding: 0 4px;
    text-align: center;
    appearance: textfield;
}
.generated-item-field {
    display: grid;
    gap: 4px;
    margin: 0;
    min-width: 0;
    align-content: start;
}
.generated-item-field small {
    color: #5f6b7a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}
.generated-item-computed {
    min-width: 0;
}
.generated-item-computed strong {
    min-height: 36px;
    width: 100%;
    padding: 0 7px;
    justify-content: flex-end;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.generated-item-row textarea {
    min-height: 40px;
    resize: vertical;
}
.generated-item-row input,
.generated-item-row textarea {
    width: 100%;
}
.generated-item-row > .icon-button {
    align-self: end;
    margin-bottom: 1px;
}
.generated-item-delete {
    width: 32px;
    height: 36px;
    min-height: 36px;
    border-color: #dbe6ef !important;
    background: #f3f7fb !important;
    color: #64748b !important;
}
.generated-item-delete:hover {
    border-color: #f3b8ae !important;
    background: #fff4f2 !important;
    color: #b42b1f !important;
}
.finance-list {
    display: grid;
    gap: 10px;
}
.finance-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) minmax(200px, 1.25fr) 112px 110px 132px 88px 88px auto;
    gap: 12px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,251,254,.96));
    border: 1px solid #dbe5ec;
    border-left: 4px solid #1d7fb5;
    border-radius: var(--radius);
    padding: 13px 14px;
    box-shadow: 0 12px 30px rgba(8, 26, 53, .06);
}
.finance-row.received { border-left-color: #7c3aed; }
.finance-row.paid { border-left-color: #18a058; background: linear-gradient(135deg, #fff, #f4fbf7); }
.finance-row.po-row {
    grid-template-columns: minmax(180px, 1.25fr) minmax(210px, 1.35fr) 102px 110px 126px 78px auto;
    border-left-color: #d99512;
    min-height: 74px;
    padding: 10px 13px;
    gap: 10px;
}
.finance-row.po-row.received-po {
    border-left-color: #1b164f;
    background:
        linear-gradient(135deg, rgba(255,255,255,.99), rgba(246,248,255,.96)),
        linear-gradient(90deg, rgba(27,22,79,.05), rgba(216,184,97,.05));
}
.po-groups {
    display: grid;
    gap: 10px;
}
.po-group {
    padding: 0;
    overflow: hidden;
}
.po-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 11px 15px;
    list-style: none;
    cursor: pointer;
    background:
        linear-gradient(135deg, rgba(255,255,255,.99), rgba(247,250,253,.96)),
        linear-gradient(90deg, rgba(216,184,97,.12), rgba(14,95,127,.05));
}
.po-group > summary::-webkit-details-marker {
    display: none;
}
.po-group > summary span {
    color: #0b3150;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.po-group > summary strong {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef5fb;
    color: #1b164f;
    font-size: 11px;
    font-weight: 900;
}
.po-group-body {
    padding: 10px;
}
.po-row-actions {
    gap: 6px;
}
.po-action-icon {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 8px;
}
.po-action-icon svg {
    width: 16px;
    height: 16px;
}
.po-filter-panel {
    padding: 13px 16px;
}
.po-filter-form {
    grid-template-columns: minmax(300px, 420px) auto;
    align-items: end;
    gap: 9px;
}
.po-party-filter {
    max-width: 420px;
}
.finance-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.finance-main h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.finance-main h2 span {
    color: var(--muted);
    font-size: 12px;
}
.finance-main .muted {
    margin: 0;
    overflow-wrap: anywhere;
}
.finance-detail,
.finance-total {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.finance-detail span,
.finance-total span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.finance-detail strong,
.finance-total strong {
    color: var(--ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.finance-total {
    padding: 10px;
    border: 1px solid #dce8ef;
    border-radius: 7px;
    background: #fff;
}
.finance-total strong {
    font-size: 15px;
    color: #0c314d;
}
.finance-status {
    justify-self: start;
}
.finance-row .row-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}
.finance-row .row-actions form {
    margin: 0;
}
.due-pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 900;
}
.due-pill.good,
.due-pill.paid {
    background: #e6f6ee;
    color: var(--good);
}
.due-pill.bad {
    background: var(--danger-bg);
    color: var(--danger);
}
.due-pill.neutral {
    background: #edf2f7;
    color: var(--muted);
}
.directory-list {
    display: grid;
    gap: 10px;
}
.directory-row {
    display: grid;
    grid-template-columns: 58px minmax(220px, 1.4fr) minmax(120px, .8fr) minmax(120px, .8fr) minmax(180px, 1fr) minmax(120px, .8fr) minmax(112px, .7fr) auto;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid #dbe5ec;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 13px 14px;
    box-shadow: 0 12px 28px rgba(8, 26, 53, .055);
}
.supplier-row {
    grid-template-columns: 58px minmax(220px, 1.35fr) minmax(120px, .85fr) minmax(120px, .85fr) minmax(200px, 1.1fr) minmax(140px, .8fr) auto;
    border-left-color: #18a058;
}
.directory-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #0e5f7f, #1d7fb5);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 10px 22px rgba(14, 95, 127, .22);
}
.supplier-mark { background: linear-gradient(135deg, #147a4d, #27a76f); }
.supplier-request-row {
    grid-template-columns: minmax(230px, 1.2fr) repeat(4, minmax(120px, .75fr)) minmax(260px, auto);
    border-left: 4px solid #38bdf8;
}
.supplier-request-row.attention-row {
    position: relative;
    overflow: visible;
    border-left-color: #ef4444;
    border-color: #fecaca;
    background: linear-gradient(90deg, #fff7f7 0%, #ffffff 44%, #fff 100%);
    box-shadow: 0 12px 28px rgba(239, 68, 68, .16);
    animation: supplierReviewGlow 1.35s ease-in-out infinite;
}
.supplier-request-row.attention-row::before {
    content: "";
    position: absolute;
    top: 14px;
    left: -8px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #dc2626;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, .72);
    animation: submissionPulse 1.05s ease-in-out infinite;
}
.supplier-request-row.attention-row .eyebrow {
    color: #b91c1c;
}
@keyframes supplierReviewGlow {
    0%, 100% {
        box-shadow: 0 12px 28px rgba(239, 68, 68, .12), 0 0 0 0 rgba(239, 68, 68, 0);
    }
    50% {
        box-shadow: 0 14px 34px rgba(239, 68, 68, .28), 0 0 0 3px rgba(239, 68, 68, .18);
    }
}
.supplier-review-form select[multiple],
.supplier-registration-form select[multiple] {
    min-height: 132px;
}
.supplier-review-panel {
    display: grid;
    gap: 16px;
}
.document-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.document-card {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfd;
}
.document-card span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.document-card a,
.document-card strong {
    color: var(--brand);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.document-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.document-actions .button {
    padding: 6px 10px;
    min-height: 0;
    font-size: 11px;
}
.check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0;
}
.check-grid label {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}
.supplier-public-page .onboarding-shell {
    max-width: 980px;
}
.supplier-registration-form .form-panel {
    margin-bottom: 14px;
}
.supplier-registration-form {
    gap: 14px;
}
.supplier-section-card {
    padding: 18px;
    border-color: #d3e2eb;
    background: linear-gradient(135deg, #ffffff, #f7fbfe);
    box-shadow: 0 12px 28px rgba(8, 26, 53, .06);
}
.supplier-section-card h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin: 0 0 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef7fb;
    color: #0e5f7f;
    font-size: 14px;
    letter-spacing: .02em;
}
.supplier-service-picker {
    display: grid;
    grid-column: span 2;
    gap: 10px;
    width: min(100%, 560px);
    margin: 0;
    padding: 0;
    border: 0;
}
.supplier-service-picker legend {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.supplier-service-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 210px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.supplier-service-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 9px;
    border: 1px solid #dde9f0;
    border-radius: 7px;
    background: #f8fbfe;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}
.supplier-service-options input {
    width: 15px;
    height: 15px;
    accent-color: var(--brand);
}
.supplier-selected-services {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 42px;
    padding: 9px;
    border: 1px dashed #bed2df;
    border-radius: 8px;
    background: #f9fcff;
}
.supplier-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 5px 8px 5px 10px;
    border: 1px solid #c8e5d8;
    border-radius: 999px;
    background: #edf9f3;
    color: #064e3b;
    font-size: 12px;
    font-weight: 900;
}
.supplier-service-tag span {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d8f0e4;
}
.supplier-registration-actions {
    align-items: center;
    justify-content: flex-start;
    padding: 2px 0 18px;
}
.supplier-registration-actions button[name="save_registration"] {
    background: var(--brand);
}
.supplier-submit-button {
    background: #9fb3c2;
    color: #fff;
    opacity: .62;
    cursor: not-allowed;
}
.supplier-submit-button.is-ready {
    background: var(--good);
    opacity: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(11, 138, 82, .18);
}
.supplier-registration-form .invalid-field,
.supplier-registration-form input.invalid-field,
.supplier-registration-form fieldset.invalid-field {
    border-color: var(--danger) !important;
    background: #fff7f5 !important;
}
.vat-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d7e5ed;
    border-radius: 8px;
    background: #fff;
}
.vat-choice legend {
    margin-right: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.vat-choice label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}
.vat-choice input {
    width: 15px;
    height: 15px;
    accent-color: var(--brand);
}
.supplier-review-services {
    display: grid;
    gap: 7px;
}
.supplier-review-services > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.supplier-review-service-tags {
    min-height: 38px;
    border-style: solid;
}
.supplier-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.supplier-detail-grid > div {
    min-height: 62px;
    padding: 10px 11px;
}
.supplier-detail-grid .compact-address {
    grid-column: span 2;
}
.supplier-detail-grid strong {
    font-size: 12px;
    line-height: 1.35;
}
.supplier-correction-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0;
}
.supplier-correction-grid label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid #d9e7ef;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #f8fbfe);
    color: var(--ink);
    font-size: 12px;
    font-weight: 850;
}
.supplier-correction-grid input {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    accent-color: var(--brand);
}
.supplier-correction-grid span {
    line-height: 1.2;
}
.directory-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.directory-main h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}
.directory-main .muted {
    margin: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.directory-detail,
.directory-stat {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.directory-detail span,
.directory-stat span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.directory-detail strong,
.directory-stat strong {
    color: var(--ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.directory-stat {
    padding: 9px 10px;
    border: 1px solid #dce8ef;
    border-radius: 7px;
    background: #f8fbfe;
}
.directory-stat small {
    color: var(--muted);
    font-weight: 700;
}
.directory-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}
.directory-actions form { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { padding: 10px 11px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; }
td:last-child .row-actions { flex-wrap: nowrap; align-items: flex-start; }
td:last-child .row-actions form { margin: 0; }
th { background: #f0f4f7; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form-grid .wide { grid-column: span 3; }
.is-hidden { display: none !important; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.expense-supplier-field {
    position: relative;
}
.searchable-supplier {
    position: relative;
    display: block;
}
.searchable-supplier input {
    padding-right: 38px;
}
.supplier-combo-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent !important;
    color: var(--ink) !important;
    display: grid;
    place-items: center;
    box-shadow: none;
    min-height: 0;
    line-height: 1;
}
.supplier-combo-toggle:hover {
    background: #eef3f8 !important;
}
.supplier-combo-menu {
    position: absolute;
    z-index: 10030;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 230px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid #cfd9e6;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .16);
}
.supplier-combo-menu[hidden] {
    display: none !important;
}
.supplier-combo-menu .supplier-combo-option {
    width: 100%;
    min-height: 32px;
    padding: 7px 9px;
    border: 0;
    border-radius: 4px;
    background: #fff !important;
    color: var(--ink) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    box-shadow: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}
.supplier-combo-menu .supplier-combo-option:hover {
    background: #eef5fc !important;
}
.supplier-combo-menu .supplier-combo-option strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.supplier-combo-menu .supplier-combo-option span {
    flex: 0 0 auto;
    color: #526174;
    font-size: 11px;
    font-weight: 800;
}
.supplier-combo-menu .supplier-combo-option mark {
    padding: 0 1px;
    border-radius: 3px;
    background: #d9fbe6;
    color: #057a3d;
}
.supplier-combo-empty {
    display: block;
    padding: 8px 9px;
    color: #64748b;
    font-size: 12px;
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}
input[readonly] { background: #f4f7fb; color: var(--muted); cursor: not-allowed; }
textarea { min-height: 84px; resize: vertical; }
.smart-date {
    cursor: pointer;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231B164F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}
.smart-date[readonly],
.smart-date:disabled {
    cursor: not-allowed;
    background-image: none;
}
.smart-date::-webkit-calendar-picker-indicator {
    display: none;
}
.date-popover {
    position: fixed;
    z-index: 10020;
    width: 320px;
    max-width: calc(100vw - 20px);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 40px rgba(8, 26, 53, .16);
}
.date-head {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    text-align: center;
}
.date-head button {
    min-height: 32px;
    padding: 0;
    background: #e8eef2;
    color: var(--ink);
}
.date-year-input {
    min-height: 32px;
    padding: 4px 8px;
    border-color: transparent;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-weight: 900;
    text-align: center;
}
.date-year-input:focus {
    border-color: #b8daf2;
    box-shadow: 0 0 0 3px rgba(31, 93, 131, .12);
    outline: none;
}
.month-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}
.month-grid button, .day-grid button {
    min-height: 34px;
    padding: 0;
    background: #f4f7fb;
    color: var(--ink);
    border: 1px solid transparent;
}
.month-grid button:hover, .day-grid button:hover,
.month-grid button.active, .day-grid button.active {
    background: var(--blue-soft);
    color: var(--primary);
    border-color: #b8daf2;
}
.weekday-grid {
    margin: 0 0 5px;
    color: #5c6877;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
}
.weekday-grid span {
    min-height: 14px;
    line-height: 14px;
}
.date-muted-day {
    min-height: 34px;
    display: grid;
    place-items: center;
    color: #9aa4b2;
    font-weight: 700;
}
.day-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}
.password-wrap {
    display: block;
    position: relative;
    width: 100%;
}
.password-wrap input {
    padding-right: 48px;
}
.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    bottom: auto;
    z-index: 2;
    width: 34px;
    height: 30px;
    min-height: 0;
    padding: 0;
    transform: translateY(-50%);
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    line-height: 1;
    pointer-events: auto;
}
.password-toggle:hover {
    background: #eef4f8;
    color: var(--primary);
}
.password-toggle svg {
    width: 17px;
    height: 17px;
    pointer-events: none;
}
.login-box .password-toggle {
    width: 34px;
    margin-top: 0;
}
.login-box .password-wrap input {
    padding-right: 48px;
}
.user-access-toggle-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
}
.user-access-toggle-form strong {
    font-size: 12px;
    color: #526173;
}
.user-access-toggle {
    position: relative;
    width: 42px;
    height: 22px;
    min-height: 0;
    border: 0;
    border-radius: 999px;
    padding: 2px;
    cursor: pointer;
    background: #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
    transition: background .18s ease, opacity .18s ease;
}
.user-access-toggle span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .22);
    transition: transform .18s ease;
}
.user-access-toggle.is-active {
    background: #16a34a;
}
.user-access-toggle.is-active span {
    transform: translateX(20px);
}
.user-access-toggle:disabled {
    cursor: not-allowed;
    opacity: .65;
}
.flash {
    position: fixed;
    left: 50%;
    top: 22px;
    z-index: 10060;
    transform: translateX(-50%);
    min-width: 260px;
    max-width: min(460px, calc(100vw - 32px));
    padding: 13px 18px;
    border-radius: 10px;
    background: #e7f7ee;
    color: var(--good);
    margin-bottom: 12px;
    border: 1px solid #bfe7cf;
    box-shadow: 0 16px 36px rgba(18, 92, 54, .18);
    font-weight: 900;
    text-align: center;
    animation: flashToastOut .45s ease 3.2s forwards;
}
.flash.flash-success-center {
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 280px;
    padding: 20px 24px 18px;
    border-radius: 14px;
    background: #ecfbf3;
    color: #0f7a45;
    border-color: #aee8c6;
    box-shadow: 0 22px 56px rgba(15, 122, 69, .22);
    animation: flashCenterToastOut .45s ease 2.4s forwards;
}
.flash.flash-success-center::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #18a45b;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
}
@keyframes flashToastOut {
    to { opacity: 0; transform: translate(-50%, -12px); visibility: hidden; }
}
@keyframes flashCenterToastOut {
    to { opacity: 0; transform: translate(-50%, calc(-50% - 14px)); visibility: hidden; }
}
.alert { padding: 10px 12px; border-radius: 6px; margin-bottom: 10px; border: 1px solid var(--line); }
.alert.overdue { background: var(--danger-bg); color: var(--danger); border-color: #ffd2cc; }
.alert.soon { background: var(--warn-bg); color: #7a4a00; border-color: #ffe6a6; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #edf2f7; color: #30404f; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.good { background: #e6f6ee; color: var(--good); }
.badge.bad { background: var(--danger-bg); color: var(--danger); }
.text-danger { color: var(--danger) !important; font-weight: 800; }
.month-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: #0d5f93;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.compact-form { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.expense-summary { margin: 16px 0; }
.expense-list {
    display: grid;
    gap: 8px;
}
.expense-row {
    display: grid;
    grid-template-columns: minmax(230px, 1.15fr) minmax(390px, 1fr) minmax(165px, .7fr) 34px 120px;
    gap: 10px;
    align-items: center;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid #dbe7ee;
    border-left: 4px solid #34d399;
    border-radius: 7px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.99), rgba(247,253,250,.96)),
        #fff;
    box-shadow: 0 12px 28px rgba(8, 26, 53, .06);
}
.expense-date,
.expense-detail,
.expense-total {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 5px 7px;
    border: 1px solid #dce8ef;
    border-radius: 6px;
    background: #f8fbfd;
}
.expense-date span,
.expense-detail span,
.expense-total span,
.expense-view-grid span,
.expense-view-amount span,
.expense-attachment-panel span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}
.expense-date strong,
.expense-detail strong,
.expense-total strong {
    color: var(--ink);
    font-size: 11px;
    line-height: 1.18;
    overflow-wrap: anywhere;
}
.expense-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.expense-main strong {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.expense-main span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.expense-main h2 {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.expense-main .muted {
    margin: 0;
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.expense-total strong {
    color: #0c314d;
    font-size: 13px;
}
.expense-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}
.expense-facts div {
    display: grid;
    gap: 2px;
    min-height: 34px;
    align-content: center;
    padding: 4px 7px;
    border: 1px solid #dbe7ee;
    border-radius: 6px;
    background: #f8fbfd;
}
.expense-facts small {
    color: var(--muted);
    font-size: 8.5px;
    font-weight: 900;
    text-transform: uppercase;
}
.expense-facts span {
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.18;
    overflow-wrap: anywhere;
}
.expense-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.expense-meta strong {
    color: var(--ink);
    font-size: 11px;
}
.expense-attachment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    padding: 0;
}
.expense-attachment svg,
.expense-paperclip-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    stroke-width: 2.2;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.expense-paperclip-char {
    display: block;
    font-size: 16px;
    line-height: 1;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", Arial, sans-serif;
}
.expense-attachment.has-file {
    background: #dff8ea;
    color: #047857;
}
.expense-attachment.neutral {
    background: #edf2f7;
    color: #94a3b8;
}
.expense-attachment.add-file {
    text-decoration: none;
}
.expense-attachment.add-file:hover {
    background: #e0f2fe;
    color: var(--primary);
}
.expense-attachment-modal {
    width: min(860px, 96vw);
}
.expense-attachment-preview-media {
    display: block;
    width: 100%;
    height: min(70vh, 620px);
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 12px;
}
.expense-actions {
    display: inline-flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 5px;
    width: max-content;
    min-width: 104px;
    justify-self: end;
}
.expense-actions form {
    display: inline-flex;
    margin: 0;
}
.expense-actions .icon-button,
.expense-actions button.icon-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
}
.scheduled-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.scheduled-payment-row {
    grid-template-columns: minmax(260px, 1.15fr) minmax(390px, 1fr) minmax(185px, .72fr) 190px;
    border-left-color: #1f6f9d;
}
.scheduled-payment-row.cancelled {
    border-left-color: #94a3b8;
    opacity: .78;
}
.scheduled-payment-row.completed {
    border-left-color: #18a058;
}
.scheduled-payment-row .expense-meta .due-pill {
    width: max-content;
    margin-top: 2px;
}
.scheduled-actions {
    min-width: 184px;
}
.compact-modal {
    max-width: 620px;
}
.finance-report {
    display: grid;
    gap: 14px;
}
.finance-report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.finance-report h1 {
    margin: 0;
}
.vat-summary-strip {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.finance-report table {
    margin-top: 4px;
}
.finance-report .badge,
.finance-pdf-report .badge {
    display: inline-flex;
    width: max-content;
}
.expense-view-card {
    display: grid;
    gap: 14px;
}
.expense-view-amount {
    display: grid;
    gap: 3px;
    width: max-content;
    min-width: 180px;
    padding: 12px 14px;
    border: 1px solid #dce8ef;
    border-radius: 8px;
    background: #f8fbfd;
}
.expense-view-amount strong {
    color: #0c314d;
    font-size: 24px;
    line-height: 1;
}
.expense-view-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.expense-view-grid div {
    display: grid;
    gap: 4px;
    min-height: 54px;
    padding: 10px;
    border: 1px solid #dce8ef;
    border-radius: 7px;
    background: #fff;
}
.expense-view-grid strong,
.expense-attachment-panel strong {
    color: var(--ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.expense-view-notes {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #dce8ef;
    border-radius: 7px;
    background: #fff;
}
.expense-view-notes h2 {
    margin: 0;
    font-size: 14px;
}
.expense-view-notes p {
    margin: 0;
    color: var(--ink);
    line-height: 1.45;
}
.expense-attachment-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dce8ef;
    border-radius: 7px;
    background: #f8fbfd;
}
.expense-attachment-panel > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.expense-report {
    padding: 0;
    overflow: hidden;
}
.expense-report > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,250,253,.96)),
        #fff;
}
.expense-report > summary::-webkit-details-marker { display: none; }
.expense-report > summary h2,
.expense-report > summary strong {
    display: block;
    margin: 0 0 3px;
    font-size: 16px;
    color: var(--ink);
}
.expense-report > summary p,
.expense-report > summary small {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.expense-report > summary svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    transition: transform .18s ease;
}
.expense-report[open] > summary {
    border-bottom: 1px solid var(--line);
}
.expense-report[open] > summary svg {
    transform: rotate(180deg);
}
.expense-report-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}
.smart-expense-filter {
    display: grid;
    grid-template-columns: minmax(190px, 1.1fr) minmax(150px, .72fr) minmax(210px, 1fr) minmax(130px, .6fr) minmax(130px, .6fr) auto;
    gap: 8px;
    align-items: end;
}
.smart-expense-filter label {
    font-size: 11px;
}
.smart-expense-filter input,
.smart-expense-filter select {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
}
.smart-expense-filter .row-actions {
    flex-wrap: nowrap;
}
.scheduled-filter {
    grid-template-columns: minmax(118px, .7fr) minmax(126px, .7fr) 95px minmax(150px, 1fr) minmax(140px, .85fr) minmax(130px, .78fr) minmax(150px, .95fr) auto;
    align-items: end;
    padding: 10px 12px;
    gap: 7px;
}
.scheduled-filter label {
    color: #40566a;
    font-size: 10px;
    font-weight: 900;
}
.scheduled-filter input,
.scheduled-filter select {
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 7px;
}
.scheduled-filter .row-actions {
    align-self: end;
    gap: 7px;
}
.scheduled-filter .row-actions button,
.scheduled-filter .row-actions .button {
    min-height: 32px;
    padding: 7px 12px;
}
.expense-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.expense-summary-strip div {
    display: grid;
    gap: 4px;
    min-height: 50px;
    align-content: center;
    padding: 8px 10px;
    border: 1px solid #dbe7ee;
    border-top: 3px solid #1d7fb5;
    border-radius: 7px;
    background: #fff;
}
.expense-summary-strip span {
    color: var(--muted);
    font-size: 10px;
}
.expense-summary-strip strong {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.1;
}
.report-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}
.report-split h2 {
    margin: 0 0 8px;
    font-size: 14px;
}
.report-split table { min-width: 0; }
.permissions-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: #f8fbff;
}
.permissions-panel h2 { margin-bottom: 4px; }
.permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
}
.permission-grid label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 9px 10px;
    color: var(--ink);
    font-weight: 700;
}
.permission-grid input { width: auto; }
.approval-permission-grid label {
    grid-template-columns: minmax(170px, 1fr) auto auto;
    gap: 10px;
}
.approval-permission-grid em,
.user-security-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #14213f;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}
.user-security-toggle {
    display: grid;
    gap: 7px;
}
.permission-registry {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}
.permission-builder {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 14px;
    margin-top: 12px;
    min-height: 520px;
}
.permission-builder-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.permission-builder-nav {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.permission-module-tab {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d5e1ee;
    border-radius: 7px;
    background: #fff;
    color: #26364c;
    text-align: left;
    font-weight: 900;
    cursor: pointer;
}
.permission-module-tab:hover {
    background: #f3f7fb;
}
.permission-module-tab.has-selected {
    border-color: #b9cde0;
    background: #f8fbff;
}
.permission-module-tab.active {
    border-color: rgba(31, 91, 130, .22);
    background: #eaf3fb;
    color: var(--primary);
}
.permission-module-tab em {
    min-width: 22px;
    height: 22px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #5c6b7c;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}
.permission-module-tab:not(.has-selected) em {
    display: none;
}
.permission-module-tab.has-selected em {
    background: var(--primary);
    color: #fff;
}
.permission-builder-body {
    min-width: 0;
}
.permission-builder-body > .permission-module-panel,
.permission-builder-body > .permission-module-panel.is-hidden,
.permission-builder [hidden] {
    display: none !important;
}
.permission-builder-body > .permission-module-panel.active:not(.is-hidden) {
    display: block !important;
}
.permission-module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.permission-module-head h3 {
    margin: 0 0 2px;
    color: var(--brand);
    font-size: 15px;
}
.permission-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 10px;
}
.permission-feature-card {
    display: grid;
    gap: 10px;
    padding: 11px;
    border: 1px solid #dbe6f1;
    border-left: 4px solid #dbe6f1;
    border-radius: 8px;
    background: #fff;
}
.permission-feature-card.has-selected {
    border-left-color: var(--primary);
    background: #fbfdff;
}
.permission-feature-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.permission-feature-title strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
}
.permission-feature-title small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}
.permission-feature-check {
    display: none;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 13px;
    font-weight: 900;
}
.permission-feature-card.has-selected .permission-feature-check {
    display: grid;
}
.permission-action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.permission-action-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 31px;
    padding: 6px 9px;
    border: 1px solid #dbe6f1;
    border-radius: 7px;
    background: #f8fbff;
    color: #24364d;
    font-size: 12px;
    font-weight: 900;
}
.permission-action-toggle input {
    width: 15px;
    height: 15px;
}
.permission-feature-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.permission-feature-options label {
    display: grid;
    gap: 5px;
    color: #5d6b7c;
    font-size: 11px;
    font-weight: 900;
}
.permission-feature-options select {
    min-width: 0;
    height: 32px;
    padding: 4px 8px;
    font-size: 12px;
}
.permission-module {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.permission-module h3 {
    margin: 0;
    padding: 10px 12px;
    color: var(--brand);
    background: #eef6ff;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.permission-table-wrap { overflow-x: auto; }
.permission-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}
.permission-table th,
.permission-table td {
    padding: 8px 9px;
    border-bottom: 1px solid #e5edf6;
    text-align: center;
    vertical-align: middle;
    font-size: 12px;
}
.permission-table th:first-child,
.permission-table td:first-child {
    text-align: left;
    min-width: 220px;
}
.permission-table td:first-child strong {
    display: block;
    color: var(--ink);
    font-size: 12px;
}
.permission-table td:first-child small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
}
.permission-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
}
.permission-table select {
    min-width: 160px;
    height: 32px;
    padding: 4px 8px;
}
.permission-na {
    color: #94a3b8;
    font-weight: 700;
}
.permission-approval-cell label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 2px 6px 2px 0;
    color: #14213f;
    font-weight: 800;
    white-space: nowrap;
}
.nav-approval-requests {
    position: relative;
    border: 1px solid rgba(197, 155, 45, .28);
    background: linear-gradient(135deg, rgba(197, 155, 45, .16), rgba(31, 91, 130, .18));
}
.nav-approval-requests em {
    margin-left: auto;
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #c59b2d;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}
.nav-approval-requests.has-pending-approval {
    animation: approvalPulse 1.8s ease-in-out infinite;
}
@keyframes approvalPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(197, 155, 45, 0); }
    50% { box-shadow: 0 0 0 4px rgba(197, 155, 45, .18); }
}
.approval-requests-head {
    border-color: rgba(197, 155, 45, .34);
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(247, 250, 252, .95)),
        linear-gradient(90deg, rgba(197,155,45,.15), rgba(31,91,130,.10));
}
.approval-filter-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}
.approval-filter-pills .active-filter {
    background: var(--primary);
    color: #fff;
}
.approval-request-list {
    display: grid;
    gap: 10px;
}
.my-approval-requests-panel {
    margin-bottom: 12px;
}
.my-approval-requests-panel .section-title-row {
    margin-bottom: 8px;
}
.my-approval-requests-panel .section-title-row h2 {
    margin-bottom: 2px;
    font-size: 18px;
}
.my-approval-requests-panel .section-title-row .muted {
    margin: 0;
    font-size: 12px;
}
.compact-approval-list {
    gap: 6px;
}
.compact-approval-list .approval-request-row {
    grid-template-columns: minmax(260px, 1fr) minmax(110px, .28fr) auto minmax(76px, auto) minmax(120px, auto);
    min-height: 0;
    gap: 8px;
    padding: 7px 10px;
    box-shadow: none;
}
.compact-approval-list .approval-request-row h2 {
    font-size: 14px;
    line-height: 1.2;
}
.compact-approval-list .approval-request-row .eyebrow {
    margin-bottom: 3px;
    font-size: 10px;
}
.compact-approval-list .approval-request-row .muted {
    margin: 4px 0 0;
    font-size: 12px;
}
.compact-approval-list .finance-detail span {
    margin-bottom: 2px;
    font-size: 10px;
}
.compact-approval-list .finance-detail strong {
    font-size: 13px;
}
.compact-approval-list .approval-view-details summary,
.compact-approval-list .approval-actions button {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
}
.approval-request-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) minmax(120px, .45fr) auto minmax(130px, .6fr) minmax(260px, auto);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #dbe6f1;
    border-left: 4px solid #c59b2d;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff 0%, #f9fcff 78%, #fff8e8 100%);
    box-shadow: 0 10px 24px rgba(17, 38, 74, .045);
}
.approval-request-row.approved { border-left-color: #18a058; }
.approval-request-row.rejected { border-left-color: #b52b20; }
.approval-request-row h2 {
    margin: 0;
    font-size: 16px;
}
.approval-view-details summary {
    width: max-content;
    padding: 8px 12px;
    border-radius: 7px;
    background: #eef3f7;
    color: #14213f;
    cursor: pointer;
    font-weight: 900;
}
.approval-view-details[open] {
    grid-column: 1 / -1;
}
.approval-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.approval-detail-item {
    min-height: 54px;
    padding: 9px 10px;
    border: 1px solid #e1e9f2;
    border-radius: 7px;
    background: #fff;
}
.approval-detail-item.wide {
    grid-column: span 2;
}
.approval-detail-item span,
.approval-current-record span {
    display: block;
    margin-bottom: 4px;
    color: #52627a;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.approval-detail-item strong,
.approval-current-record strong {
    display: block;
    color: #14213f;
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
}
.approval-current-record {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 6px 10px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #e1e9f2;
    border-radius: 7px;
    background: #f8fbff;
}
.approval-attachment-actions {
    grid-template-columns: 110px minmax(180px, 1fr) auto auto;
    align-items: center;
}
.approval-attachment-actions span {
    margin-bottom: 0;
}
.approval-attachment-actions .button {
    white-space: nowrap;
}
.approval-edit-section {
    margin-top: 10px;
}
.approval-edit-section > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #cfe0ef;
    border-radius: 7px;
    background: #eef4fb;
    color: #123653;
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}
.approval-edit-section > summary::-webkit-details-marker {
    display: none;
}
.approval-edit-section[open] > summary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.approval-edit-form {
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #cfe0ef;
    border-radius: 8px;
    background: #f8fbff;
}
.approval-attachment-modal {
    width: min(980px, 96vw);
}
.approval-attachment-preview-media {
    display: block;
    width: 100%;
    height: min(74vh, 700px);
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 12px;
}
.approval-view-details dl {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 6px 10px;
    margin: 10px 0 0;
    padding: 10px;
    border: 1px solid #e1e9f2;
    border-radius: 8px;
    background: #fff;
}
.approval-view-details dt {
    color: #52627a;
    font-size: 12px;
    font-weight: 900;
}
.approval-view-details dd {
    margin: 0;
    color: #14213f;
    word-break: break-word;
}
.approval-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}
.approval-actions form {
    display: inline-flex;
    gap: 6px;
    margin: 0;
}
.approval-actions input[name="rejection_reason"] {
    width: 130px;
    min-height: 34px;
}
.otp-code-input {
    text-align: center;
    font-size: 22px;
    font-weight: 900;
}
.worker-timesheets h2 { margin-bottom: 4px; }
.timesheet-group-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.timesheet-project {
    border-left: 4px solid #1d7fb5;
    box-shadow: 0 12px 28px rgba(8, 26, 53, .055);
}
.timesheet-project > summary {
    background: linear-gradient(90deg, #ffffff, #eef8fc);
}
.timesheet-project-body {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: #f8fbfe;
}
.timesheet-worker {
    overflow: hidden;
    border: 1px solid #dbe5ec;
    border-left: 4px solid #18a058;
    border-radius: 7px;
    background: #fff;
}
.timesheet-worker > summary {
    padding: 12px 14px;
    background: linear-gradient(90deg, #ffffff, #f5fbf8);
}
.timesheet-worker .table-wrap {
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
}
.collapsible-list {
    padding: 0;
    overflow: hidden;
}
.collapsible-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    color: var(--ink);
    font-weight: 800;
    list-style: none;
    background: linear-gradient(90deg, #ffffff, #f3f8fc);
}
.collapsible-list summary::-webkit-details-marker { display: none; }
.collapsible-list summary::before {
    content: "+";
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-soft);
    color: var(--primary);
    font-weight: 900;
    flex: 0 0 auto;
}
.collapsible-list[open] summary::before { content: "-"; }
.collapsible-list summary span { flex: 1; }
.collapsible-list summary strong {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}
.collapsible-list .table-wrap {
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
}
.project-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 14px;
}
.project-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 64%, #eef7f3 100%);
    border: 1px solid #d8e4ec;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 14px 34px rgba(8, 26, 53, .07);
    display: grid;
    gap: 14px;
}
.project-card.completed {
    background: linear-gradient(135deg, #ffffff 0%, #f7f8fa 100%);
    opacity: .82;
}
.project-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.project-card-top h2 { margin-bottom: 0; }
.project-meta-grid, .team-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.project-meta-grid div, .team-meta-grid div {
    background: rgba(255,255,255,.78);
    border: 1px solid #e0e8ef;
    border-radius: 7px;
    padding: 10px;
}
.project-meta-grid span, .team-meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.project-meta-grid strong, .team-meta-grid strong {
    font-size: 14px;
    color: var(--ink);
}
.project-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}
.project-card-actions { border-top: 1px solid #e1e9ef; padding-top: 12px; }
.project-roster {
    display: grid;
    gap: 10px;
}
.project-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) 110px 92px 120px 112px 102px auto;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid #dbe5ec;
    border-left: 4px solid #18a058;
    border-radius: var(--radius);
    padding: 13px 14px;
    box-shadow: 0 12px 28px rgba(8, 26, 53, .055);
}
.project-row.completed {
    border-left-color: #94a3b8;
    background: #fbfcfd;
    opacity: .86;
}
.project-main {
    min-width: 0;
}
.project-main .eyebrow { margin-bottom: 4px; }
.project-main h2 { margin: 0; font-size: 18px; }
.project-cell {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.project-cell span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.project-cell strong {
    color: var(--ink);
    font-size: 14px;
}
.project-status-cell { justify-self: start; }
.project-row-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}
.empty-state { padding: 18px; color: var(--muted); }
.team-board { display: grid; gap: 14px; }
.team-group summary { background: linear-gradient(90deg, #ffffff, #f4fbff); }
.team-roster {
    display: grid;
    gap: 8px;
    padding: 12px;
    background: #f8fbfe;
}
.roster-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.3fr) 120px minmax(110px, .8fr) minmax(110px, .8fr) 100px 100px minmax(250px, 1.5fr) 64px;
    gap: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid #dbe5ec;
    border-left: 4px solid #94a3b8;
    border-radius: 7px;
    padding: 10px 12px;
    box-shadow: 0 8px 20px rgba(8, 26, 53, .045);
}
.roster-row.still-assigned { border-left-color: #18a058; }
.roster-row.exited { background: #fbfcfd; opacity: .86; }
.roster-person {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.roster-person strong { font-size: 15px; color: #071827; }
.roster-person span { color: var(--muted); line-height: 1.25; }
.roster-detail {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.roster-detail span, .roster-money span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.roster-detail strong, .roster-money strong {
    font-size: 12px;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.roster-money {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-left: 10px;
    border-left: 1px solid #e2eaf0;
}
.roster-money div { display: grid; gap: 3px; }
.roster-action {
    justify-content: center;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
}
.status-pill {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.status-pill.active { background: #e6f6ee; color: var(--good); }
.status-pill.ended { background: #eef2f6; color: #526173; }
.report-cards .card { border-top: 3px solid var(--accent); }
.reports-hero {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(238, 249, 252, .96)),
        linear-gradient(90deg, rgba(14,95,127,.11), rgba(124,58,237,.06));
}
.reports-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.reports-metrics .metric-card {
    min-height: 96px;
}
.report-panel {
    padding: 18px;
    overflow: hidden;
}
.report-panel h2 { color: #0c314d; }
.report-panel .panel-title {
    align-items: flex-start;
    padding-bottom: 13px;
    border-bottom: 1px solid #e2eaf0;
}
.report-panel .panel-title .muted {
    margin: 4px 0 0;
}
.report-panel .table-wrap {
    border-color: #d7e5ed;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.report-panel th {
    background: linear-gradient(180deg, #f4f8fb, #ecf2f6);
}
.report-panel td:last-child,
.report-panel th:last-child {
    color: #0c314d;
    font-weight: 800;
}
.reports-toolbar { align-items: flex-start; }
.login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at top, rgba(29, 127, 181, .10), transparent 340px),
        linear-gradient(180deg, #f8fbff 0, var(--bg) 100%);
}
.login-box {
    width: min(390px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px 22px;
    box-shadow: 0 18px 45px rgba(8, 26, 53, .10);
}
.login-box h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
}
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    text-align: center;
}
.login-logo {
    width: 74px;
    height: 74px;
    max-width: 74px;
    max-height: 74px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    display: block;
    box-shadow: 0 10px 24px rgba(8, 26, 53, .08);
}
.login-box > .muted {
    margin: 0 0 18px;
    text-align: center;
    line-height: 1.45;
}
.login-box form { gap: 13px; }
.login-box button { width: 100%; margin-top: 2px; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.po-form .po-items-table table { min-width: 1180px; table-layout: fixed; }
.po-form .po-items-table th, .po-form .po-items-table td { padding: 7px; }
.po-form .po-items-table th:nth-child(1), .po-form .po-items-table td:nth-child(1) { width: 54px; }
.po-form .po-items-table th:nth-child(2), .po-form .po-items-table td:nth-child(2) { width: 40%; }
.po-form .po-items-table th:nth-child(3), .po-form .po-items-table td:nth-child(3) { width: 13%; }
.po-form .po-items-table th:nth-child(4), .po-form .po-items-table td:nth-child(4) { width: 14%; }
.po-form .po-items-table th:nth-child(5), .po-form .po-items-table td:nth-child(5) { width: 13%; }
.po-form .po-items-table th:nth-child(6), .po-form .po-items-table td:nth-child(6) { width: 12%; }
.po-form .po-items-table th:nth-child(7), .po-form .po-items-table td:nth-child(7) { width: 46px; text-align: center; }
.po-form .po-items-table input, .po-form .po-items-table select, .po-form .po-items-table textarea { padding: 7px; font-size: 13px; width: 100%; }
.po-form .po-items-table textarea { min-height: 58px; line-height: 1.35; resize: vertical; }
.po-add-item { margin-top: 10px; }
.po-remove-item {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
}
.po-remove-item:hover { background: #fecaca; color: #7f1d1d; }
.terms-box { min-height: 170px; font-size: 12px; line-height: 1.45; }
.business-card-head {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
        linear-gradient(90deg, rgba(8,27,61,.10), rgba(72,36,126,.055));
}
.business-card-review {
    display: grid;
    gap: 16px;
}
.business-card-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}
.business-card-mini {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
}
.business-card-mini::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 64%;
    background: #081b3d;
}
.business-card-mini::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(64% - 2px);
    width: 4px;
    background: #48247e;
}
.business-card-mini-front {
    background: #ffffff;
    color: #fff;
}
.business-card-mini-back {
    background: #ffffff;
    color: #10182a;
}
.business-card-mini strong,
.business-card-mini span,
.business-card-mini small {
    position: relative;
    z-index: 2;
    display: block;
}
.business-card-mini strong {
    margin-top: 24px;
    font-size: 22px;
    line-height: 1.05;
}
.business-card-mini span {
    margin-top: 5px;
    color: #e3eef7;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}
.business-card-mini small {
    margin-top: 18px;
    color: inherit;
    opacity: .72;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
}
.business-card-mini-back::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 42px;
    width: 64px;
    height: 64px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #fff;
}
.business-card-mini-back::before {
    width: 30%;
    background: #081b3d;
    border-right: 4px solid #48247e;
}
.business-card-mini-back::after {
    z-index: 1;
}
.business-card-mini-back {
    border-color: #d7deea;
}
.business-card-mini-back > * {
    position: relative;
    z-index: 2;
}
.business-card-mini-back strong,
.business-card-mini-back span,
.business-card-mini-back small {
    margin-left: 33%;
    color: #10182a;
}
.business-card-mini-back span { color: #48247e; }
.business-card-form {
    margin-top: 2px;
}
.quotation-head {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(238, 249, 252, .96)),
        linear-gradient(90deg, rgba(14,95,127,.10), rgba(56,189,248,.08));
}
.quotation-modal { max-width: 1180px; }
.quotation-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.quotation-split section {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #dbe7ee;
    border-radius: var(--radius);
    background: #f9fcff;
}
.quotation-items-table { overflow-x: visible; }
.quotation-items-table table { min-width: 0; width: 100%; table-layout: fixed; }
.quotation-items-table th, .quotation-items-table td { padding: 7px; }
.quotation-items-table th:nth-child(1), .quotation-items-table td:nth-child(1) { width: 48px; }
.quotation-items-table th:nth-child(2), .quotation-items-table td:nth-child(2) { width: 46%; }
.quotation-items-table th:nth-child(3), .quotation-items-table td:nth-child(3) { width: 12%; }
.quotation-items-table th:nth-child(4), .quotation-items-table td:nth-child(4) { width: 15%; }
.quotation-items-table th:nth-child(5), .quotation-items-table td:nth-child(5) { width: 14%; }
.quotation-items-table th:nth-child(6), .quotation-items-table td:nth-child(6) { width: 42px; text-align: center; }
.quotation-items-table input, .quotation-items-table select, .quotation-items-table textarea {
    width: 100%;
    padding: 7px;
    font-size: 13px;
}
.quotation-items-table textarea { min-height: 58px; line-height: 1.35; resize: vertical; }
.quotation-filter-form {
    grid-template-columns: minmax(300px, 420px) minmax(170px, 260px) auto;
    align-items: end;
    gap: 10px;
}
.quotation-client-picker {
    position: relative;
}
.quotation-client-trigger {
    width: 100%;
    min-height: 38px;
    justify-content: space-between;
    border: 1px solid #cddde9;
    border-radius: 8px;
    background:
        linear-gradient(135deg, #ffffff, #f7fbff),
        linear-gradient(90deg, rgba(56,189,248,.08), rgba(216,184,97,.06));
    color: #081a35;
    font-weight: 850;
    padding: 8px 10px;
    box-shadow: inset 3px 0 0 rgba(216,184,97,.45);
}
.quotation-client-trigger:hover,
.quotation-client-picker.open .quotation-client-trigger {
    border-color: #0e5f7f;
    box-shadow: inset 3px 0 0 rgba(216,184,97,.7), 0 0 0 3px rgba(14,95,127,.08);
}
.quotation-client-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.quotation-client-trigger svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}
.quotation-client-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    display: none;
    width: max-content;
    min-width: 100%;
    max-width: min(520px, 82vw);
    max-height: 265px;
    overflow: auto;
    padding: 7px;
    border: 1px solid #cddde9;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.99), rgba(247,251,255,.98)),
        #fff;
    box-shadow: 0 18px 42px rgba(8, 26, 53, .16);
}
.quotation-client-picker.open .quotation-client-menu {
    display: grid;
    gap: 3px;
}
.quotation-client-menu-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 7px 5px 4px;
    color: #b3932f;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.quotation-client-menu-label::before {
    content: "";
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: #bfa236;
}
.quotation-client-menu [data-client-filter-option] {
    display: flex;
    width: 100% !important;
    min-height: 30px !important;
    align-items: center !important;
    justify-content: flex-start;
    padding: 6px 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #081a35 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    white-space: nowrap !important;
    cursor: pointer;
}
.quotation-client-menu [data-client-filter-option]:hover,
.quotation-client-menu [data-client-filter-option]:focus {
    background: #eef6ff !important;
    color: #0e5f7f !important;
    outline: none;
}
.quotation-client-menu [data-client-filter-option].selected {
    background: linear-gradient(135deg, #1b164f, #0e5f7f) !important;
    color: #fff !important;
    font-weight: 900 !important;
}
.quotation-status-filter select {
    border-color: #cddde9;
    background:
        linear-gradient(135deg, #ffffff, #f7fbff),
        linear-gradient(90deg, rgba(56,189,248,.08), rgba(216,184,97,.06));
    color: #081a35;
    font-weight: 800;
}
.quotation-status-filter select:focus {
    border-color: #0e5f7f;
    box-shadow: 0 0 0 3px rgba(14,95,127,.10);
}
.quotation-row {
    grid-template-columns: minmax(230px, 1.35fr) minmax(190px, 1fr) minmax(90px, .65fr) 94px 126px 82px minmax(300px, auto);
    border-left: 4px solid #38bdf8;
    background:
        linear-gradient(135deg, rgba(255,255,255,.99), rgba(246,252,255,.96)),
        #fff;
}
.quotation-row .row-actions {
    justify-self: end;
    min-width: max-content;
}
.quotation-row-actions {
    gap: 6px;
}
.quotation-row-actions form {
    margin: 0;
}
.quotation-action-icon {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 8px;
}
.quotation-action-icon svg {
    width: 15px;
    height: 15px;
}
.signature-preview img {
    max-width: 180px;
    max-height: 72px;
    object-fit: contain;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}
.signature-library-preview {
    display: block;
    max-width: 118px;
    max-height: 46px;
    object-fit: contain;
    padding: 4px 7px;
    border: 1px solid #d8e5ec;
    border-radius: 6px;
    background: #fff;
}
.certificate-preview-panel {
    border: 1px solid #d7c18a;
    border-radius: 8px;
    padding: 13px 15px;
    background: linear-gradient(135deg, #fff, #fbfdff 65%, #f8fbf4);
    color: var(--nav);
    text-align: center;
}
.certificate-preview-panel strong,
.certificate-preview-panel span,
.certificate-preview-panel small,
.certificate-preview-panel em {
    display: block;
}
.certificate-preview-panel em {
    color: #7b641f;
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    margin-bottom: 5px;
}
.certificate-preview-panel strong {
    font-size: 18px;
    color: #1b0647;
}
.certificate-preview-panel span {
    margin-top: 7px;
    font-size: 22px;
    font-weight: 900;
    color: #0e5f7f;
}
.certificate-preview-panel small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 800;
}
.certificate-preview-panel p {
    max-width: 680px;
    margin: 10px auto 0;
    line-height: 1.55;
    color: #26364d;
}
.quotation-row.accepted { border-left-color: #18a058; }
.quotation-row.cancelled { border-left-color: var(--danger); opacity: .84; }
.job-offer-head {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(242,252,248,.96)),
        linear-gradient(90deg, rgba(24,160,88,.10), rgba(56,189,248,.08));
}
.job-offer-modal { max-width: 1040px; }
.job-offer-type-modal { max-width: 460px; }
.job-offer-type-picker {
    display: grid;
    gap: 14px;
}
.job-offer-type-picker label {
    display: grid;
    gap: 6px;
    color: #42546b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.job-offer-type-picker select {
    height: 40px;
    border: 1px solid #cfdde8;
    border-radius: 7px;
    background: linear-gradient(180deg, #fff, #f7fbfe);
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    padding: 0 11px;
}
.job-offer-type-picker .row-actions {
    justify-content: flex-end;
    gap: 8px;
    margin-top: 2px;
}
.job-offer-row {
    grid-template-columns: minmax(230px, 1.15fr) minmax(390px, 1fr) 82px 274px;
    border-left: 4px solid #34d399;
    background:
        linear-gradient(135deg, rgba(255,255,255,.99), rgba(247,253,250,.96)),
        #fff;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    min-height: 52px;
}
.job-offer-person {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.job-offer-person strong {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.job-offer-person span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.job-offer-type-pill {
    justify-self: start;
    width: max-content;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0e5f7f !important;
    font-size: 9.5px !important;
    font-weight: 900;
    line-height: 1.2 !important;
    text-transform: uppercase;
}
.job-offer-type-pill.freelance {
    background: #fff7ed;
    color: #9a3412 !important;
}
.job-offer-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}
.job-offer-facts div {
    display: grid;
    gap: 2px;
    min-height: 34px;
    align-content: center;
    padding: 4px 7px;
    border: 1px solid #dbe7ee;
    border-radius: 6px;
    background: #f8fbfd;
}
.job-offer-facts small {
    color: var(--muted);
    font-size: 8.5px;
    font-weight: 900;
    text-transform: uppercase;
}
.job-offer-facts span {
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.18;
    overflow-wrap: anywhere;
}
.job-offer-row .row-actions {
    justify-self: end;
    min-width: 0;
    width: 274px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
}
.job-offer-row .row-actions .button,
.job-offer-row .row-actions button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    justify-content: center;
}
.job-offer-actions form { margin: 0; }
.icon-button svg { width: 15px; height: 15px; }
.job-offer-row .status {
    justify-self: start;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0e5f7f;
    font-size: 11px;
    font-weight: 800;
    text-transform: capitalize;
}
.job-offer-row.cancelled { border-left-color: var(--danger); opacity: .84; }
.job-offer-row.draft { border-left-color: #facc15; }
.hr-setup-panel {
    max-width: 1120px;
}
.hr-setup-panel .panel-title {
    margin-bottom: 12px;
}
.onboarding-link-box {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid #dbe7ee;
    border-radius: 7px;
    background: #f8fbfe;
}
.onboarding-link-box a {
    color: #0e5f7f;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.pending-employee-row {
    grid-template-columns: minmax(210px, 1.05fr) 118px minmax(180px, .9fr) 142px minmax(135px, .75fr) minmax(220px, auto);
    padding: 12px 14px;
    align-items: center;
}
.pending-person {
    min-width: 0;
}
.pending-person h2 {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.18;
}
.pending-person .muted {
    margin: 0;
    line-height: 1.35;
}
.submission-alert-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 0 rgba(220,38,38,.65);
    animation: submissionPulse 1.1s ease-in-out infinite;
    flex: 0 0 auto;
}
.submission-alert-label {
    display: inline-flex;
    width: max-content;
    margin: 0 0 4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}
@keyframes submissionPulse {
    0% { box-shadow: 0 0 0 0 rgba(220,38,38,.65); opacity: 1; }
    55% { box-shadow: 0 0 0 8px rgba(220,38,38,0); opacity: .55; }
    100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); opacity: 1; }
}
.pending-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 220px;
}
.pending-actions form {
    margin: 0;
}
.pending-actions .button,
.pending-actions button {
    min-height: 32px;
    padding: 7px 10px;
}
.employee-row {
    display: grid !important;
    grid-template-columns: 220px minmax(390px, 1fr) 288px !important;
    padding: 6px 10px !important;
    align-items: center !important;
    min-height: 46px !important;
    gap: 8px !important;
    background: linear-gradient(90deg, #ffffff 0, #fbfdff 100%);
    box-shadow: 0 8px 18px rgba(8, 26, 53, .04);
}
.employee-main {
    min-width: 0;
}
.employee-main .eyebrow {
    margin: 0 0 1px;
    font-size: 9px;
    letter-spacing: .05em;
    line-height: 1;
}
.employee-main h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0 0 2px;
    font-size: 13px;
    line-height: 1.08;
}
.employee-main h2 > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-icon-strip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
}
.employee-mini-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe7ee;
    border-radius: 999px;
    background: #f8fbfe;
    color: #19577c;
}
.employee-mini-icon.education {
    color: #11154a;
    background: #f5f7ff;
}
.employee-mini-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 12px;
    line-height: 1;
    transform: translateY(.2px);
}
.employee-mini-icon.driving {
    color: #127653;
    background: #ecfbf4;
    border-color: #cceedd;
}
.employee-mini-icon svg {
    width: 11px;
    height: 11px;
    stroke-width: 2.3;
}
.employee-view-icon-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.employee-main .muted {
    margin: 0;
    font-size: 10.5px;
    line-height: 1.08;
}
.employee-facts {
    display: grid !important;
    grid-template-columns: minmax(120px, 1fr) minmax(92px, .75fr) minmax(88px, .72fr) minmax(110px, .85fr) !important;
    gap: 5px !important;
    align-items: stretch;
    min-width: 0;
}
.employee-facts div {
    display: grid;
    gap: 1px;
    align-content: center;
    min-height: 30px;
    padding: 4px 7px;
    border: 1px solid #dbe7ee;
    border-radius: 6px;
    background: #f8fbfe;
    min-width: 0;
}
.employee-facts span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
}
.employee-facts strong {
    color: var(--ink);
    font-size: 10.5px;
    line-height: 1.05;
    overflow-wrap: anywhere;
}
.employee-actions {
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    min-width: 0;
    width: max-content;
    justify-self: end;
    gap: 5px;
}
.employee-actions form {
    margin: 0;
}
.employee-actions .icon-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    justify-content: center;
}
.employee-request-list {
    gap: 8px;
}
.employee-request-month {
    border: 1px solid #dbe7ee;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.employee-request-month > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    background: #f4f8fb;
    color: var(--nav);
    font-weight: 900;
}
.employee-request-month > summary::-webkit-details-marker { display: none; }
.employee-request-month > summary span {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}
.employee-request-month-list {
    display: grid;
    gap: 6px;
    padding: 8px;
}
.employee-request-row {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(140px, .62fr) minmax(120px, .52fr) minmax(145px, .62fr) auto;
    gap: 6px;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8px 10px 8px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 9px;
    background: linear-gradient(100deg, #fff 0, #fbfdff 55%, #f7fbfd 100%);
    box-shadow: 0 8px 22px rgba(8, 26, 53, .04);
}
.employee-request-row.archived-row {
    border-left-color: #94a3b8;
    background: linear-gradient(100deg, #fff 0, #f8fafc 100%);
}
.employee-request-row.attention-row {
    border-left-color: #d22f27;
    animation: requestPulse 1.65s ease-in-out infinite;
}
@keyframes requestPulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(8, 26, 53, .045), 0 0 0 rgba(210, 47, 39, 0); }
    50% { box-shadow: 0 10px 28px rgba(8, 26, 53, .045), 0 0 0 4px rgba(210, 47, 39, .11); }
}
.employee-request-row h2 {
    margin: 0 0 2px;
    color: var(--nav);
    font-size: 14px;
}
.employee-request-row span,
.employee-request-row .eyebrow {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}
.employee-request-row strong {
    font-size: 11px;
}
.employee-request-row .request-status-text.status-approved {
    color: #067a46;
    font-weight: 1000;
}
.employee-request-row .request-status-text.status-rejected {
    color: #b42318;
    font-weight: 1000;
}
.employee-request-row > div:not(:first-child):not(.row-actions) {
    display: grid;
    gap: 2px;
    min-height: 30px;
    align-content: center;
    padding: 5px 7px;
    border: 1px solid #dce8ef;
    border-radius: 7px;
    background: rgba(255,255,255,.72);
}
.employee-request-actions {
    flex-wrap: nowrap;
    gap: 5px;
}
.employee-request-actions form {
    margin: 0;
}
.employee-request-actions .button.secondary {
    min-height: 34px;
    padding: 7px 11px;
}
.employee-request-actions .payroll-remove-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
}
.employee-request-archive {
    margin-top: 4px;
    border-style: dashed;
}
.employee-request-archive > summary {
    background: linear-gradient(90deg, #f8fafc, #eef5f8);
}

.payroll-page-title {
    align-items: center;
}
.payroll-create-form {
    display: flex;
    align-items: end;
    gap: 8px;
    flex-wrap: wrap;
}
.payroll-create-form label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.payroll-create-form input,
.payroll-create-form select {
    min-width: 138px;
}
.payroll-list {
    display: grid;
    gap: 8px;
}
.payroll-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid #dbe6ef;
    border-left: 4px solid #b9933b;
    border-radius: 8px;
    background: linear-gradient(90deg, #fff, #f9fbfd);
    box-shadow: 0 8px 18px rgba(8,26,53,.035);
}
.payroll-row.is-paid {
    border-left-color: #0f8f5f;
}
.payroll-row-main {
    display: grid;
    grid-template-columns: 170px 145px 82px 170px 92px;
    column-gap: 22px;
    row-gap: 0;
    align-items: start;
    justify-items: start;
    color: inherit;
    text-decoration: none;
    width: max-content;
    max-width: 100%;
}
.payroll-row-main div {
    display: grid;
    gap: 3px;
    justify-items: start;
    align-content: start;
    min-width: 0;
    text-align: left;
}
.payroll-row-main small,
.payroll-summary-strip span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.payroll-row-main strong {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}
.payroll-status {
    justify-self: start;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
.payroll-status.paid {
    background: #e8fbf1;
    color: #087344;
}
.payroll-status.not-paid,
.payroll-status.not_paid {
    background: #fff8e7;
    color: #8a5b04;
}
.payroll-status.draft {
    background: #edf2f7;
    color: #334155;
}
.payroll-row-actions {
    flex-wrap: nowrap;
}
.payroll-row-actions form {
    margin: 0;
}
.payroll-row-actions .icon-button,
.payroll-row-actions button.icon-button {
    width: 31px;
    min-width: 31px;
    height: 31px;
    min-height: 31px;
    padding: 0;
}
.payroll-detail {
    display: grid;
    gap: 9px;
    padding: 10px 12px;
    background:
        linear-gradient(135deg, rgba(10, 32, 61, .06), rgba(255,255,255,0) 42%),
        #fff;
}
.payroll-detail-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #dbe6ef;
    border-left: 4px solid #0b3150;
    border-radius: 8px;
    background: linear-gradient(90deg, #ffffff, #f6fafc);
}
.payroll-detail-title > div:first-child {
    min-width: 0;
}
.payroll-detail-title span {
    display: block;
    margin-bottom: 1px;
    color: #b9933b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}
.payroll-detail-title h1 {
    margin: 0;
    color: #071228;
    font-size: 22px;
    line-height: 1.05;
}
.payroll-detail-title .row-actions {
    gap: 6px;
    flex-wrap: nowrap;
}
.payroll-detail-title .button,
.payroll-detail-title button {
    min-height: 31px;
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 7px;
}
.payroll-summary-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid #d6e3ee;
    border-radius: 9px;
    background: #f8fbfd;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.payroll-summary-strip > div {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-right: 1px solid #dbe6ef;
    background: linear-gradient(180deg, #fff, #f7fafc);
}
.payroll-summary-strip > div:last-child {
    border-right: 0;
}
.payroll-summary-strip strong {
    color: var(--ink);
    font-size: 15px;
}
.payroll-summary-strip .status-approved {
    color: #087344;
}
.payroll-summary-strip .status-muted {
    color: #8a5b04;
}
.payroll-summary-strip .status-draft {
    color: #334155;
}
.payroll-items-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 2px;
    color: #0b3150;
}
.payroll-items-table-wrap {
    overflow-x: auto;
    border: 0;
    border-radius: 0;
}
.payroll-items-list {
    display: grid;
    gap: 5px;
}
.payroll-item-row {
    min-width: 1120px;
    display: grid;
    grid-template-columns: minmax(210px, 1.35fr) minmax(130px, .78fr) 104px 104px 108px 98px 116px minmax(116px, .78fr) 74px;
    gap: 5px;
    align-items: end;
    padding: 6px 8px;
    border: 1px solid #d7e4ef;
    border-left: 4px solid #0b3150;
    border-radius: 8px;
    background: linear-gradient(90deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 8px 18px rgba(8, 26, 53, .035);
}
.payroll-item-row.is-overtime {
    grid-template-columns: minmax(230px, 1.45fr) minmax(150px, .95fr) 112px 112px 104px 124px minmax(132px, .82fr) 46px;
}
.payroll-item-row.is-freelancer {
    min-width: 1240px;
    grid-template-columns: minmax(190px, 1.16fr) minmax(130px, .76fr) 104px 78px 82px 82px 104px minmax(105px, .62fr) minmax(140px, .82fr) minmax(78px, .44fr) 40px;
    border-left-color: #16a34a;
}
.payroll-item-row.is-freelancer.is-hourly-freelancer {
    grid-template-columns: minmax(200px, 1.18fr) minmax(145px, .82fr) 106px 84px 82px 104px minmax(110px, .66fr) minmax(145px, .86fr) minmax(82px, .48fr) 40px;
}
.payroll-item-row.is-employee {
    min-width: 1660px;
    grid-template-columns:
        minmax(250px, 1.55fr)
        repeat(6, minmax(76px, .48fr))
        minmax(86px, .52fr)
        minmax(70px, .42fr)
        minmax(86px, .52fr)
        minmax(68px, .4fr)
        minmax(88px, .52fr)
        minmax(94px, .58fr)
        minmax(88px, .52fr)
        minmax(116px, .7fr)
        minmax(88px, .52fr)
        minmax(116px, .7fr)
        minmax(92px, .55fr)
        minmax(120px, .72fr)
        38px;
    align-items: end;
    border-left-color: #b9933b;
}
.payroll-item-row:nth-child(even) {
    background: linear-gradient(90deg, #f9fcfe 0%, #ffffff 100%);
}
.payroll-item-row label,
.payroll-worker-cell {
    display: grid;
    gap: 2px;
}
.payroll-item-row label span {
    color: #5f7186;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .045em;
    line-height: 1;
    text-transform: uppercase;
}
.payroll-item-row input {
    width: 100%;
    min-height: 24px;
    padding: 4px 6px;
    font-size: 11.5px;
    border-color: #d4e1ec;
    background: rgba(255,255,255,.94);
}
.payroll-item-row select {
    width: 100%;
    min-height: 24px;
    padding: 3px 5px;
    font-size: 11px;
    border-color: #d4e1ec;
    border-radius: 6px;
    background: rgba(255,255,255,.94);
}
.payroll-item-row.is-employee input[readonly] {
    background: #eef5fa;
    color: #0b3150;
    font-weight: 900;
}
.payroll-item-row.is-employee [data-payroll-net] {
    background: #edf9f1;
    color: #087344;
}
.payroll-employee-worker {
    align-self: stretch;
}
.payroll-worker-cell input:first-of-type {
    font-weight: 900;
    color: #0b3150;
}
.payroll-worker-cell input + input {
    margin-top: 2px;
    color: #334155;
    background: #f8fbfd;
}
.payroll-worker-name-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    align-items: center;
}
.payroll-worker-name-line:has(.payroll-employee-picker) {
    grid-template-columns: minmax(0, 1fr) auto 24px;
}
.payroll-worker-name-line input {
    min-width: 0;
}
.payroll-employee-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 6px;
    border: 1px solid #c9dced;
    border-radius: 999px;
    background: #eef6fb;
    color: #0b3150;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}
.payroll-freelance-badge {
    border-color: #bce8ce;
    background: #ecfdf3;
    color: #0f8f5f;
}
.payroll-item-row.is-freelancer [data-freelancer-daily-rate] {
    background: #eef5fa;
    color: #0b3150;
    font-weight: 900;
}
.payroll-item-row.is-freelancer .payroll-notes-cell input {
    font-size: 10.5px;
}
.payroll-item-row.is-freelancer .payroll-bank-cell input,
.payroll-item-row.is-freelancer .payroll-iban-cell input {
    font-size: 10.5px;
}
.payroll-employee-picker {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border: 1px solid #d4e1ec;
    border-radius: 6px;
    background: #f8fbfd;
    color: #245f86;
    box-shadow: none;
}
.payroll-employee-picker svg {
    width: 13px;
    height: 13px;
}
.payroll-remove-cell .payroll-edit-button {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    border: 1px solid #d4e1ec !important;
    border-radius: 7px !important;
    background: #eef6fb !important;
    color: #0b3150 !important;
    box-shadow: none !important;
}
.payroll-remove-cell .payroll-edit-button:hover {
    background: #e3f0f9 !important;
    border-color: #adc9df !important;
}
.payroll-remove-cell .payroll-edit-button svg {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 2.4;
}
.payroll-source-cell strong,
.payroll-source-cell em {
    display: block;
    min-height: 15px;
    padding: 2px 6px;
    border: 1px solid #d4e1ec;
    background: rgba(255,255,255,.94);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.payroll-source-cell strong {
    border-radius: 6px 6px 0 0;
    color: #0b3150;
    font-size: 10.5px;
    font-weight: 900;
}
.payroll-source-cell em {
    border-top: 0;
    border-radius: 0 0 6px 6px;
    color: #8a5b04;
    font-size: 9.5px;
    font-style: normal;
    font-weight: 800;
}
.payroll-source-cell em:empty {
    display: none;
}
.payroll-remove-cell {
    align-self: center;
    justify-self: center;
    width: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-height: 24px;
    overflow: visible;
}
.payroll-remove-button {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0c8c2;
    border-radius: 7px;
    background: #fff7f6;
    color: #b52b1e;
    box-shadow: none;
}
.payroll-remove-button:hover {
    background: #c03426;
    border-color: #c03426;
    color: #fff;
}
.payroll-remove-button svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.4;
}
.payroll-save-actions {
    margin-top: 8px;
    justify-content: flex-end;
    gap: 7px;
}
.payroll-save-actions button {
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 7px;
    font-size: 12.5px;
}
.multi-check-filter {
    display: grid;
    gap: 4px;
    position: relative;
}
.multi-check-filter .filter-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.multi-check-filter details {
    position: relative;
}
.multi-check-filter summary {
    min-height: 37px;
    display: flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}
.multi-check-filter summary::-webkit-details-marker {
    display: none;
}
.multi-check-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 5px);
    left: 0;
    width: min(340px, 88vw);
    max-height: 310px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #d4e1ec;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(8, 26, 53, .14);
}
.multi-check-menu .checkline {
    margin: 0;
    padding: 7px 8px;
    border-radius: 7px;
}
.multi-check-menu .checkline:hover {
    background: #f4f8fb;
}
.vat-quarter-select {
    position: relative;
    display: grid;
    gap: 6px;
}
.vat-quarter-select .filter-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.vat-quarter-select details {
    position: relative;
}
.vat-quarter-select summary {
    min-height: 37px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 34px 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
    box-shadow: inset 3px 0 0 rgba(198, 163, 58, .55);
}
.vat-quarter-select summary::-webkit-details-marker {
    display: none;
}
.vat-quarter-select summary::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: translateY(-65%) rotate(45deg);
}
.vat-quarter-select details[open] summary {
    border-color: #9fbad2;
    box-shadow: inset 3px 0 0 var(--gold), 0 10px 24px rgba(14, 95, 127, .08);
}
.vat-quarter-menu {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    left: 0;
    width: min(280px, 82vw);
    padding: 7px;
    border: 1px solid #cfdae8;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 20px 46px rgba(8, 26, 53, .16);
}
.vat-quarter-menu label {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}
.vat-quarter-menu label:hover {
    background: #f3f8fc;
}
.vat-quarter-menu input {
    width: 14px;
    height: 14px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--blue);
}
.vat-quarter-menu em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}
.vat-report-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 37px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 900;
}
.vat-report-toggle input {
    width: 15px;
    height: 15px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--blue);
}
.timesheet-default-controls {
    display: grid;
    grid-template-columns: 112px 116px 104px 104px auto auto auto;
    gap: 5px;
    align-items: end;
    padding: 5px 6px;
    border: 1px solid #d8e4ef;
    border-radius: 7px;
    background: linear-gradient(90deg, #ffffff, #f7fbfd);
}
.timesheet-default-controls label {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.timesheet-default-controls select,
.timesheet-default-controls input {
    min-height: 27px;
    padding: 4px 7px;
    font-size: 11.5px;
    text-transform: none;
}
.timesheet-default-controls button {
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    white-space: nowrap;
}
.timesheet-default-controls .timesheet-apply-month {
    background: linear-gradient(135deg, #0f8f5f, #087344);
    color: #fff;
    border: 1px solid #087344;
    box-shadow: 0 8px 16px rgba(15, 143, 95, .14);
}
.timesheet-default-controls .timesheet-apply-month:hover {
    background: #087344;
}
.timesheet-default-controls .two-position-toggle {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid #d4e1ec;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}
.timesheet-default-controls .two-position-toggle input {
    width: auto;
    min-height: auto;
    padding: 0;
}
.employee-request-review {
    display: grid;
    gap: 14px;
}
.employee-request-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 18, 40, .46);
    backdrop-filter: blur(4px);
}
.employee-request-modal {
    width: min(1180px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-shadow: 0 28px 70px rgba(7, 19, 39, .28);
}
.employee-request-modal .portal-section-title {
    align-items: flex-start;
    gap: 12px;
}
.modal-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--nav);
    background: #eef4f8;
    text-decoration: none;
}
.modal-close-button:hover {
    background: #dfeaf2;
}
.employee-request-review-grid {
    display: grid;
    grid-template-columns: minmax(320px, .85fr) minmax(360px, 1.15fr);
    gap: 14px;
    align-items: stretch;
}
.employee-request-info dl {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.employee-request-info dt,
.employee-request-info dd {
    margin: 0;
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
}
.employee-request-info dt {
    background: #f4f8fb;
    color: var(--ink);
    font-weight: 900;
}
.employee-request-document-preview iframe {
    width: 100%;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.portal-review-table-wrap {
    overflow-x: auto;
}
.portal-review-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.portal-review-table-wrap th {
    background: var(--nav);
    color: #fff;
    text-align: left;
}
.portal-review-table-wrap th,
.portal-review-table-wrap td {
    padding: 7px 8px;
    border: 1px solid var(--line);
}
.employee-portal-home { display: grid; gap: 14px; }
.portal-profile-hero {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 74px;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 1px solid #dbe7ee;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f5fbff 62%, #eef7f3 100%);
    box-shadow: 0 18px 38px rgba(8, 26, 53, .08);
}
.portal-profile-photo {
    width: 104px;
    height: 124px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 16px;
    background: #edf5f8;
    color: #0e5f7f;
    box-shadow: 0 14px 24px rgba(8, 26, 53, .12);
}
.portal-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.portal-profile-hero h1 { margin: 0 0 4px; color: var(--nav); font-size: 30px; line-height: 1.05; }
.portal-profile-hero p { margin: 0; color: #40566a; font-weight: 800; }
.portal-company-mark { width: 68px; height: 68px; object-fit: contain; justify-self: end; }
.portal-profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.portal-profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid #dbe7ee;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: #244157;
    font-size: 11px;
    font-weight: 900;
}
.portal-profile-meta svg { width: 13px; height: 13px; }
.portal-kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.portal-kpi-strip div { padding: 11px 12px; border: 1px solid #dbe7ee; border-radius: 10px; background: #fff; }
.portal-kpi-strip span { display: block; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.portal-kpi-strip strong { display: block; margin-top: 3px; color: var(--nav); font-size: 17px; }
.portal-action-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px; align-items: start; }
.portal-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portal-section-title h2 { margin: 0; }
.portal-request-form, .portal-timesheet-form, .portal-password-form { display: grid; gap: 10px; }
.portal-annual-leave-fields { display: grid; gap: 9px; padding: 10px; border: 1px solid #dbe7ee; border-radius: 9px; background: #f8fbfe; }
.portal-salary-certificate-fields { display: none; gap: 9px; padding: 10px; border: 1px solid #dbe7ee; border-radius: 9px; background: #f8fbfe; }
.portal-timesheet-controls { display: flex; align-items: end; gap: 7px; flex-wrap: wrap; }
.portal-timesheet-days { display: grid; gap: 7px; max-height: 460px; overflow: auto; padding-right: 4px; }
.portal-day-card {
    display: grid;
    grid-template-columns: 26px minmax(118px, .9fr) minmax(130px, 1fr) 92px 92px minmax(120px, 1fr);
    gap: 7px;
    align-items: center;
    padding: 8px;
    border: 1px solid #dbe7ee;
    border-radius: 9px;
    background: #fff;
}
.portal-day-check { display: flex; justify-content: center; }
.portal-day-date strong, .portal-day-date span { display: block; }
.portal-day-date span { color: var(--muted); font-size: 10px; font-weight: 800; }
.portal-day-card label { display: grid; gap: 3px; margin: 0; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.portal-day-card input, .portal-day-card select { min-height: 30px; height: 30px; }
.portal-timesheet-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.portal-timesheet-summary div { padding: 8px 9px; border: 1px solid #dbe7ee; border-radius: 8px; background: #f8fbfe; }
.portal-timesheet-summary span { display: block; color: var(--muted); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.portal-timesheet-summary strong { color: var(--nav); }
.portal-request-list { display: grid; gap: 8px; }
.portal-request-row { display: grid; grid-template-columns: minmax(220px, 1fr) 150px auto; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid #dbe7ee; border-radius: 9px; background: #fff; }
.portal-request-row strong, .portal-request-row span { display: block; }
.portal-request-row span { color: var(--muted); font-size: 11px; }
.portal-request-row .status-approved,
.portal-section-title .status-approved {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 4px 9px;
    border: 1px solid #b7ead0;
    border-radius: 999px;
    background: #eafaf1;
    color: #118044;
    font-weight: 1000;
}
.portal-request-row .status-rejected,
.portal-section-title .status-rejected {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 4px 9px;
    border: 1px solid #f3b7b2;
    border-radius: 999px;
    background: #fff0ee;
    color: #b42318;
    font-weight: 1000;
}
.portal-letter-list .portal-request-row {
    grid-template-columns: minmax(260px, 1fr) minmax(180px, auto) auto;
}
.portal-page-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d4e4ec;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}
.portal-letter-table {
    display: grid;
    gap: 8px;
}
.portal-letter-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) minmax(110px, .7fr) minmax(160px, 1fr) minmax(150px, .85fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid #d7e4ec;
    border-left: 4px solid var(--primary);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(11, 31, 48, .045);
}
.portal-letter-row > div {
    min-width: 0;
}
.portal-letter-row span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.portal-letter-row strong {
    display: block;
    overflow: hidden;
    color: var(--nav);
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-letter-main strong {
    font-size: 14px;
}
.portal-letter-main span {
    margin-top: 2px;
    text-transform: none;
    letter-spacing: 0;
}
.portal-letter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}
.portal-letter-actions .button {
    min-height: 34px;
    padding: 8px 11px;
}
.portal-request-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.portal-request-detail-grid div { padding: 9px; border: 1px solid #dbe7ee; border-radius: 8px; background: #f8fbfe; }
.portal-request-detail-grid span { display: block; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.portal-logout { justify-content: flex-end; }
.portal-profile-hero {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff, #f5f9fc 58%, #eef6fb);
}
.portal-profile-photo {
    width: 82px;
    height: 92px;
    border-radius: 12px;
}
.portal-profile-hero h1 { font-size: 25px; }
.portal-company-mark { display: none; }
.portal-action-menu {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
.portal-action-tile {
    min-height: 86px;
    padding: 12px 10px;
    border: 1px solid #d8e5ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f7fbfe);
    color: var(--nav);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 10px 22px rgba(8, 26, 53, .05);
}
.portal-action-tile:hover { border-color: #b8d0df; transform: translateY(-1px); }
.portal-action-tile svg { width: 22px; height: 22px; color: var(--primary); }
.portal-action-link { text-decoration: none; }
.portal-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}
.portal-modal.is-open { display: flex; }
body.portal-modal-open { overflow: hidden; }
.portal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 21, 39, .56);
    backdrop-filter: blur(2px);
}
.portal-modal-box {
    position: relative;
    z-index: 1;
    width: min(780px, 100%);
    max-height: min(82vh, 820px);
    overflow: auto;
    box-shadow: 0 24px 64px rgba(7, 21, 39, .26);
    padding-top: 20px;
}
.portal-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border-radius: 50%;
    background: #edf4f9;
    border: 1px solid #dce8ef;
    color: var(--nav);
    z-index: 3;
}
.portal-section-title { padding-right: 44px; }
.portal-profile-readonly {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.portal-profile-readonly div {
    padding: 10px 11px;
    border: 1px solid #dbe7ee;
    border-radius: 9px;
    background: #f9fcfe;
}
.portal-profile-readonly span { display: block; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.portal-profile-readonly strong { color: var(--nav); }
.employee-letters-panel { margin-top: 14px; }
.employee-letters-collapsible {
    padding: 0;
    overflow: hidden;
}
.employee-letters-collapsible > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 13px 16px;
    cursor: pointer;
    background: linear-gradient(90deg, #f8fcff 0%, #eef7fb 100%);
    border-bottom: 1px solid #dbe7ee;
}
.employee-letters-collapsible > summary::-webkit-details-marker { display: none; }
.employee-letters-collapsible > summary::before {
    content: "+";
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e6f1f7;
    color: var(--brand);
    font-weight: 900;
    margin-right: 8px;
}
.employee-letters-collapsible[open] > summary::before { content: "-"; }
.employee-letters-collapsible > summary > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-right: auto;
}
.employee-letters-collapsible > summary p { margin: 0; }
.employee-letters-collapsible > summary strong {
    color: var(--nav);
    font-size: 15px;
}
.employee-letters-count {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}
.employee-letters-toolbar,
.employee-letter-actions,
.employee-letters-collapsible .table-wrap {
    margin-left: 14px;
    margin-right: 14px;
}
.employee-letters-toolbar {
    margin-top: 14px;
}
.employee-letter-actions { margin: 12px 14px; }
.employee-upload-letter-form {
    display: grid;
    grid-template-columns: minmax(150px, .9fr) minmax(180px, 1fr) minmax(220px, 1fr) minmax(240px, 1.2fr) auto;
    gap: 8px;
    align-items: end;
}
.employee-upload-letter-form .wide { grid-column: auto; }
.employee-inner-details {
    margin: 12px 14px;
    border: 1px solid #dbe7ee;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}
.employee-inner-details > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 12px;
    cursor: pointer;
    background: linear-gradient(90deg, #f8fcff 0%, #eef7fb 100%);
    border-bottom: 1px solid #dbe7ee;
}
.employee-inner-details > summary::-webkit-details-marker { display: none; }
.employee-inner-details > summary > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.chambered-section .eyebrow { color: #0e5f7f; }
.chambered-list {
    display: grid;
    gap: 7px;
    padding: 10px 12px 12px;
}
.chambered-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(260px, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 7px 9px 7px 12px;
    border: 1px solid #d8e4ec;
    border-left: 4px solid #0e5f7f;
    border-radius: 8px;
    background: linear-gradient(90deg, #ffffff 0%, #f8fcff 100%);
}
.chambered-main,
.chambered-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}
.chambered-main strong {
    color: var(--nav);
    font-size: 13px;
}
.chambered-main span:not(.chambered-badge),
.chambered-meta span {
    color: #607183;
    font-size: 11px;
    font-weight: 800;
}
.chambered-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e5f5ef;
    color: #147a4d;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.chambered-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}
.chambered-actions form { margin: 0; }
.hr-letter-modal { max-width: 820px; }
.hr-letter-modal textarea { min-height: 90px; }
#employee-letter-choice-modal .record-modal {
    max-width: 560px;
    border-top: 4px solid var(--brand);
    box-shadow: 0 24px 60px rgba(9, 30, 66, .28);
}
#employee-letter-choice-modal .modal-title-row {
    border-bottom: 1px solid #dbe7ee;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.letter-choice-grid {
    display: grid;
    gap: 8px;
    margin: 12px 0 18px;
}
.letter-choice-grid label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #d7e4ec;
    border-radius: 8px;
    background: #f9fcfe;
    padding: 11px 12px;
    cursor: pointer;
    color: var(--nav);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.letter-choice-grid label:hover {
    border-color: #a7c6d7;
    background: #f4fbfe;
    transform: translateY(-1px);
}
.letter-choice-grid label:has(input:checked) {
    border-color: var(--brand);
    background: #eef8fc;
    box-shadow: inset 0 0 0 1px rgba(14, 95, 127, .2), 0 8px 18px rgba(14, 95, 127, .08);
}
.letter-choice-grid input[type="radio"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
    margin: 0;
}
.letter-reflect-form {
    display: grid;
    gap: 6px;
    min-width: 210px;
}
.letter-reflect-form .checkline {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    color: var(--nav);
}
.letter-reflect-form button { width: max-content; }
.portal-month-picker {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}
.portal-month-buttons {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}
.portal-month-buttons button { min-height: 34px; padding: 7px 8px; }
.portal-month-buttons button.active {
    background: var(--nav);
    color: #fff;
    border-color: var(--nav);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.32), 0 8px 18px rgba(9, 30, 66, .12);
}
.portal-timesheet-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}
.portal-timesheet-form .portal-timesheet-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.employee-filter-bar {
    display: grid;
    grid-template-columns: 180px minmax(220px, 360px) auto;
    gap: 8px;
    align-items: end;
    margin: 10px 0 12px;
    padding: 9px 10px;
}
.employee-filter-bar label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}
.employee-filter-bar input,
.employee-filter-bar select {
    min-height: 32px;
    height: 32px;
}
.employee-filter-value > span {
    display: block;
}
.employee-filter-bar .row-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}
.form-section-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.form-section-card h2 {
    margin: 0;
    font-size: 15px;
}
.employee-polished-section {
    gap: 9px;
    padding: 11px 12px;
    border-color: #d8e4f0;
    background:
        linear-gradient(135deg, rgba(31, 91, 130, .035), rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    box-shadow: 0 7px 18px rgba(17, 38, 74, .025);
}
.employee-polished-section h2,
.employee-certificates-card h2 {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 9px;
    border-left: 3px solid #c59b2d;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(31, 91, 130, .11), rgba(255, 255, 255, 0));
    color: #10183d;
}
.employee-polished-section .form-grid.compact {
    gap: 7px;
}
.employee-polished-section .form-grid.compact > label {
    min-width: 0;
    padding: 5px 7px 6px;
    border: 1px solid #dce7f1;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    color: #14213f;
    font-size: 12px;
    line-height: 1.15;
    box-shadow: inset 2px 0 0 rgba(31, 91, 130, .12);
}
.employee-polished-section .form-grid.compact > label:focus-within {
    border-color: rgba(31, 91, 130, .45);
    box-shadow: inset 2px 0 0 #c59b2d, 0 0 0 2px rgba(31, 91, 130, .07);
}
.employee-polished-section .form-grid.compact input,
.employee-polished-section .form-grid.compact select {
    margin-top: 4px;
    min-height: 28px;
    padding-top: 4px;
    padding-bottom: 4px;
    background: #fff;
}
.pending-employee-import-card {
    padding: 12px 14px;
    gap: 10px;
    border-color: #cbd8e6;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 62%, #fffaf0 100%);
    border-left: 4px solid var(--accent);
}
.pending-employee-import-card .section-title-row {
    align-items: flex-start;
}
.pending-employee-import-card .muted {
    margin: 2px 0 0;
    font-size: 13px;
}
.pending-employee-import-card label {
    max-width: 560px;
}
.pending-employee-import-card select {
    min-height: 36px;
}
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.employee-certificates-card .certificate-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}
.employee-inline-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding-top: 2px;
}
.employee-inline-upload {
    position: relative;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #d8e5ee;
    border-radius: 7px;
    background: linear-gradient(135deg, #f8fbfe 0%, #fff 72%, #fff8eb 100%);
    color: var(--ink);
    cursor: pointer;
}
.employee-inline-upload:hover {
    border-color: #bdd7e7;
    box-shadow: 0 8px 18px rgba(15, 48, 82, .07);
}
.employee-inline-upload span {
    min-width: 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-inline-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.employee-inline-upload em {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}
.employee-inline-upload em svg {
    width: 12px;
    height: 12px;
}
.certificate-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px 30px;
    gap: 5px;
    align-items: center;
    min-height: 36px;
    padding: 5px;
    border: 1px solid #d8e5ee;
    border-radius: 7px;
    background: linear-gradient(135deg, #f8fbfe 0%, #fff 76%, #fff8eb 100%);
}
.certificate-row input[name="certificate_name[]"],
.certificate-row input[name="other_document_name"] {
    min-height: 26px;
    padding: 4px 6px;
    border-color: transparent;
    background: #fff;
    font-size: 12px;
}
.edit-other-document-list {
    margin: 0 0 8px;
}
.edit-other-document-row {
    grid-template-columns: minmax(0, 1fr) 32px 30px;
}
.employee-other-document-grid {
    margin: 0 0 8px;
}
.employee-other-document-tile {
    background: linear-gradient(135deg, #f8fbfe 0%, #fff 78%, #fff8eb 100%);
}
.certificate-file-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    width: 32px;
    min-height: 28px;
    padding: 0;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}
.certificate-file-pill:hover {
    background: #184b70;
}
.certificate-file-pill input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.certificate-file-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
}
.certificate-file-pill b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.certificate-file-pill svg {
    width: 11px;
    height: 11px;
}
.certificate-row .icon-button {
    width: 30px;
    min-width: 30px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    justify-content: center;
}
.add-other-document-button {
    min-height: 32px;
    padding: 7px 10px;
    border-color: rgba(31, 91, 130, .18);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 7px 14px rgba(31, 91, 130, .12);
}
.add-other-document-button:hover {
    background: #184b70;
}
.employee-photo-edit-grid {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}
.employee-photo-edit img {
    display: block;
    width: 118px;
    height: 138px;
    object-fit: cover;
    background: #fff;
}
.employee-edit-documents-panel {
    gap: 9px;
    padding: 12px 14px;
}
.employee-edit-upload-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.employee-edit-document-tile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 5px 7px;
    border: 1px solid #d8e5ee;
    border-radius: 7px;
    background: linear-gradient(135deg, #f8fbfe 0%, #fff 72%, #fff8eb 100%);
    box-shadow: inset 2px 0 0 rgba(31, 91, 130, .08);
}
.employee-edit-document-tile.available {
    box-shadow: inset 2px 0 0 rgba(22, 163, 74, .35);
}
.employee-edit-document-tile.missing {
    box-shadow: inset 2px 0 0 rgba(197, 155, 45, .42);
}
.employee-edit-document-main {
    min-width: 0;
    display: grid;
    gap: 1px;
}
.employee-edit-document-main span {
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-edit-document-main small {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-edit-document-tile.missing .employee-edit-document-main small {
    color: #8a5d00;
}
.employee-edit-document-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.employee-edit-document-actions .icon-button {
    width: 28px;
    min-width: 28px;
    height: 26px;
    min-height: 26px;
    padding: 0;
}
.employee-edit-attach-form {
    margin: 0;
}
.employee-edit-attach-button {
    min-height: 26px;
    padding: 2px 4px 2px 7px;
    gap: 5px;
}
.employee-edit-attach-button span {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
}
.employee-edit-attach-button em {
    min-height: 21px;
    padding: 3px 7px;
    font-size: 11px;
}
.employee-document-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.employee-document-status {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #dbe7ee;
    border-radius: 7px;
    background: #f8fbfe;
}
.employee-document-status span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.employee-document-status a {
    color: #0e5f7f;
    font-weight: 900;
    overflow-wrap: anywhere;
}
.employee-document-file {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    min-width: 0;
}
.employee-document-file > a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-document-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.employee-document-actions .icon-button {
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
}
.employee-document-actions .icon-button svg {
    width: 13px;
    height: 13px;
}
.employee-document-status strong {
    width: max-content;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    text-transform: uppercase;
}
.employee-document-status.available strong {
    background: #dcfce7;
    color: #166534;
}
.employee-document-status.missing {
    border-color: #fecaca;
    background: #fff7f7;
}
.employee-document-status.missing em {
    color: #991b1b;
    font-style: normal;
    font-weight: 900;
}
.employee-document-status.missing strong {
    background: #fee2e2;
    color: #991b1b;
}
.join-date-form {
    display: grid;
    grid-template-columns: 108px 30px;
    gap: 5px;
    align-items: center;
}
.join-date-form input {
    height: 30px;
    padding: 5px 6px;
    font-size: 11px;
}
.hr-review-view .job-offer-view-grid {
    align-items: start;
}
.hr-document-list {
    display: grid;
    gap: 8px;
}
.hr-document-link {
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 1px solid #dbe7ee;
    border-radius: 7px;
    background: #f8fbfe;
}
.hr-document-link span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.hr-document-link strong {
    color: #0e5f7f;
    overflow-wrap: anywhere;
}
.hr-review-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    gap: 14px;
}
.hr-correction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #dbe7ee;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
}
.check-row input {
    width: auto;
}
.document-view-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.document-view-head h1 { margin: 0; }
.job-offer-view {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dbe5ec;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 34px rgba(8, 26, 53, .06);
}
.job-offer-view-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.job-offer-view-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.job-offer-view h2 {
    margin: 0 0 8px;
    color: #11154a;
    font-size: 16px;
}
.job-offer-view dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    margin: 0;
    border: 1px solid #dbe7ee;
    border-radius: 6px;
    overflow: hidden;
}
.job-offer-view dt,
.job-offer-view dd {
    margin: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #dbe7ee;
}
.job-offer-view dt {
    color: #11154a;
    background: #f6f9fc;
    font-weight: 800;
}
.job-offer-view dd { color: var(--ink); }
.job-offer-view dt:nth-last-of-type(1),
.job-offer-view dd:nth-last-of-type(1) { border-bottom: 0; }
.job-offer-view-inline { grid-template-columns: 180px 1fr 120px 1fr !important; }
.employee-view-page {
    gap: 12px;
    padding: 14px;
    border-color: #cddfe8;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,252,254,.98)),
        radial-gradient(circle at top right, rgba(14,95,127,.12), transparent 34%);
}
.employee-profile-head {
    align-items: center;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid #d7e5ed;
    border-radius: 12px;
    background: linear-gradient(120deg, #ffffff 0%, #f2f8fb 64%, #eaf4f8 100%);
    box-shadow: 0 14px 34px rgba(8, 26, 53, .055);
}
.employee-profile-head h1 {
    color: var(--nav);
    font-size: 22px;
}
.employee-profile-hero-panel {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.5fr);
    gap: 12px;
    align-items: stretch;
    padding: 14px 16px;
    border: 1px solid #cbdde7;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(27,6,71,.94), rgba(14,95,127,.92)),
        radial-gradient(circle at right, rgba(255,255,255,.18), transparent 34%);
    color: #fff;
}
.employee-profile-hero-panel .eyebrow {
    color: #cfe9f4;
}
.employee-profile-hero-panel h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
}
.employee-profile-hero-panel h2::before {
    display: none;
}
.employee-profile-hero-panel p {
    margin: 4px 0 0;
    color: #e3f1f7;
    font-weight: 800;
}
.employee-profile-hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.employee-profile-hero-metrics span {
    display: grid;
    align-content: center;
    min-height: 58px;
    padding: 9px 11px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    background: rgba(255,255,255,.1);
}
.employee-profile-hero-metrics em {
    color: #cfe9f4;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.employee-profile-hero-metrics strong {
    margin-top: 3px;
    color: #fff;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.employee-assignment-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 12px 0 16px;
    padding: 12px 14px;
    border: 1px solid #d7e3ef;
    border-left: 4px solid #245f86;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6fb 100%);
}
.employee-assignment-strip > div:first-child {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 120px;
}
.employee-assignment-strip > .row-actions {
    margin-left: auto;
}
.employee-assignment-strip strong {
    display: inline-block;
    margin-left: 8px;
    color: #0f1430;
    font-size: 13px;
}
.employee-assignment-strip p {
    margin: 4px 0 0;
    color: #53627a;
    font-size: 12px;
}
.employee-activity-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.employee-activity-status.is-assigned {
    background: #dcfce7 !important;
    color: #047857 !important;
    border: 1px solid #86efac;
}
.employee-activity-status.is-unassigned {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5;
}

.rfq-list {
    display: grid;
    gap: 10px;
}
.rfq-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, .7fr)) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #d7e3ef;
    border-left: 4px solid #fbbf24;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 8px 22px rgba(8, 26, 53, .04);
}
.rfq-row .row-actions {
    gap: 6px;
}
.rfq-row .row-actions .button,
.rfq-row .row-actions button {
    padding: 8px 10px;
    font-size: 12px;
}
.rfq-head-ui {
    padding: 14px 18px;
    align-items: center;
}
.rfq-head-ui h1 {
    margin-bottom: 0;
}
.rfq-row strong {
    display: block;
    color: #21003f;
    font-size: 14px;
}
.rfq-row span,
.rfq-row small {
    color: #526174;
}
.rfq-row small {
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.rfq-modal {
    width: min(1180px, calc(100vw - 34px));
}
.rfq-form {
    display: grid;
    gap: 14px;
}
.rfq-type-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d7e3ef;
    border-radius: 8px;
    background: #fff;
}
.rfq-type-choice > span {
    color: #59677a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.rfq-type-choice label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #0f172a;
    font-weight: 800;
}
.rfq-type-choice input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #1f5d83;
}
.rfq-form-band {
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    padding: 12px;
    background: #f8fbff;
}
.rfq-form-band h3 {
    margin: 0 0 10px;
    color: #0e5f7f;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.rfq-vendor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 260px;
    overflow: auto;
    margin-bottom: 10px;
}
.rfq-vendor-card {
    display: grid;
    grid-template-columns: 18px 76px minmax(0, 1fr);
    grid-template-areas:
        "check code name"
        "check code email";
    align-items: center;
    gap: 2px 10px;
    border: 1px solid #d7e3ef;
    border-radius: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.rfq-vendor-card:hover,
.rfq-vendor-card.is-selected {
    border-color: #0e5f7f;
    box-shadow: 0 8px 20px rgba(14, 95, 127, .09);
    background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
}
.rfq-vendor-card input {
    grid-area: check;
    width: 15px;
    height: 15px;
    margin: 0;
}
.rfq-vendor-code {
    grid-area: code;
    justify-self: start;
    padding: 4px 7px;
    border-radius: 999px;
    background: #21003f;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}
.rfq-vendor-name {
    grid-area: name;
    color: #10172a;
    font-size: 13px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rfq-vendor-email {
    grid-area: email;
    color: #526174;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rfq-external-email-block {
    margin-top: 10px;
}
.rfq-external-email-block .section-title-row {
    margin-bottom: 8px;
}
.rfq-external-email-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.rfq-external-email-row input {
    max-width: 420px;
}
.rfq-items-editor textarea,
.rfq-items-editor input {
    width: 100%;
    min-width: 120px;
}
.rfq-items-editor .serial-cell {
    width: 52px;
    text-align: center;
    font-weight: 900;
    color: #21003f;
}
.rfq-view-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.rfq-view-grid div {
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fbff;
}
.rfq-view-grid span {
    display: block;
    margin-bottom: 4px;
    color: #526174;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.rfq-email-preview {
    margin: 0;
    white-space: pre-wrap;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    padding: 12px;
    background: #f8fbff;
    color: #17212b;
    font: 13px/1.55 Arial, Helvetica, sans-serif;
}
.employee-assignment-modal .form-grid,
.employee-activity-modal {
    max-width: 880px;
}
.employee-activity-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.employee-activity-overview div {
    border: 1px solid #d9e4ef;
    border-radius: 8px;
    background: #f8fbff;
    padding: 10px 12px;
}
.employee-activity-overview span,
.employee-current-projects em {
    display: block;
    color: #607086;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.employee-activity-overview strong {
    display: block;
    margin-top: 4px;
    color: #0f1430;
    font-size: 15px;
}
.employee-activity-overview .status-approved {
    color: #047857;
}
.employee-activity-overview .status-muted {
    color: #64748b;
}
.employee-current-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.employee-current-projects span {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #cfe0ec;
    background: #fff;
    color: #10203b;
    font-weight: 800;
    font-size: 12px;
}
.employee-activity-table-wrap table th,
.employee-activity-table-wrap table td {
    font-size: 11px;
    padding: 8px 9px;
}
.employee-view-page .job-offer-view-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 9px;
    align-items: start;
}
.employee-view-page .job-offer-view-grid > section {
    min-width: 0;
    grid-column: span 4;
    padding: 10px;
    border: 1px solid #d7e5ed;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
    box-shadow: 0 9px 22px rgba(8, 26, 53, .045);
}
.employee-view-page .job-offer-view-grid > section:first-child {
    grid-column: 1 / -1;
}
.employee-view-page .job-offer-view-grid > section:first-child dl {
    grid-template-columns: 120px minmax(0, 1fr) 120px minmax(0, 1fr) 120px minmax(0, 1fr);
}
.employee-view-page h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--nav);
    font-size: 14px;
    letter-spacing: .01em;
}
.employee-view-page h2::before {
    content: "";
    width: 7px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary), #1b0647);
}
.employee-view-page dl {
    grid-template-columns: 112px minmax(0, 1fr);
    border: 0;
    gap: 5px;
    overflow: visible;
}
.employee-view-page dt,
.employee-view-page dd {
    min-height: 30px;
    padding: 6px 8px;
    border: 1px solid #d9e6ee;
    background: #fff;
}
.employee-view-page dt {
    display: flex;
    align-items: center;
    color: #1b3450;
    background: #eef6fb;
    border-radius: 8px 0 0 8px;
    font-size: 11px;
    line-height: 1.1;
}
.employee-view-page dd {
    display: flex;
    align-items: center;
    min-width: 0;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    font-size: 11.5px;
    overflow-wrap: anywhere;
}
.employee-view-page dt:nth-last-of-type(1),
.employee-view-page dd:nth-last-of-type(1) {
    border-bottom: 1px solid #d9e6ee;
}
.employee-view-page > section h2 {
    margin-top: 2px;
}
.employee-view-page .employee-document-status-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}
.employee-view-page .employee-documents-panel .employee-document-status-grid {
    margin: 12px 14px 14px;
}
.employee-view-page .employee-document-status {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    align-items: center;
    min-height: 62px;
    padding: 8px;
    border-left: 4px solid #b7cad6;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff 0%, #f8fbfe 100%);
}
.employee-view-page .employee-document-status span {
    font-size: 9px;
    letter-spacing: .02em;
}
.employee-view-page .employee-document-status .employee-document-file > a,
.employee-view-page .employee-document-status em {
    min-width: 0;
    font-size: 12px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-view-page .employee-document-status strong {
    align-self: center;
    width: max-content;
    padding: 3px 6px;
    font-size: 8px;
}
.employee-view-page .employee-document-status.available {
    border-left-color: #16a36a;
}
.employee-view-page .employee-document-status.missing {
    border-left-color: #d22f27;
}
.employee-view-page .employee-letters-panel {
    border-color: #cddfe8;
    background: linear-gradient(180deg, #fff, #f8fbfe);
}
.employee-view-page .employee-letters-collapsible > summary {
    min-height: 46px;
    padding: 10px 13px;
    background: linear-gradient(90deg, #eef7fb 0%, #fff 72%);
}
.employee-view-page .employee-letters-toolbar {
    align-items: center;
    margin-top: 10px;
}
.employee-view-page .employee-letter-actions {
    margin-top: 8px;
    margin-bottom: 8px;
}
.employee-view-page .employee-upload-letter-form {
    grid-template-columns: minmax(130px, .75fr) minmax(160px, .85fr) minmax(190px, 1fr) minmax(210px, 1.1fr) auto;
    gap: 7px;
}
.employee-view-page .employee-upload-letter-form input,
.employee-view-page .employee-upload-letter-form select {
    min-height: 32px;
    height: 32px;
    font-size: 11px;
}
.employee-view-page .employee-upload-letter-form button {
    min-height: 32px;
    padding: 8px 10px;
    white-space: nowrap;
}
.employee-view-page .employee-letters-collapsible .table-wrap {
    margin-bottom: 12px;
    border-color: #c8dce7;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 24px rgba(8, 26, 53, .045);
}
.employee-view-page .employee-letters-collapsible table {
    min-width: 860px;
    table-layout: fixed;
    font-size: 11.5px;
    border-collapse: separate;
    border-spacing: 0;
}
.employee-view-page .employee-letters-collapsible thead th {
    background: linear-gradient(180deg, #eaf3f8, #dfeaf2);
    color: #18324c;
    border-bottom: 1px solid #c7dbe6;
    font-size: 10px;
    letter-spacing: .04em;
}
.employee-view-page .employee-letters-collapsible th,
.employee-view-page .employee-letters-collapsible td {
    padding: 7px 9px;
    vertical-align: middle;
}
.employee-view-page .employee-letters-collapsible tbody tr {
    background: linear-gradient(90deg, #fff 0%, #fbfdff 70%, #f5fafc 100%);
}
.employee-view-page .employee-letters-collapsible tbody tr:nth-child(even) {
    background: linear-gradient(90deg, #fbfdff 0%, #f6fbfe 100%);
}
.employee-view-page .employee-letters-collapsible tbody td {
    border-bottom: 1px solid #dce8ef;
}
.employee-view-page .employee-letters-collapsible tbody tr:hover {
    background: #eef8fc;
}
.employee-view-page .employee-letters-collapsible td:first-child {
    border-left: 4px solid var(--primary);
    color: var(--nav);
    font-weight: 900;
}
.employee-view-page .employee-letters-collapsible th:nth-child(1) { width: 150px; }
.employee-view-page .employee-letters-collapsible th:nth-child(2) { width: 190px; }
.employee-view-page .employee-letters-collapsible th:nth-child(3) { width: 150px; }
.employee-view-page .employee-letters-collapsible th:nth-child(4) { width: 75px; }
.employee-view-page .employee-letters-collapsible th:nth-child(5) { width: 235px; }
.employee-view-page .employee-letters-collapsible th:nth-child(6) { width: 170px; }
.employee-view-page .employee-letters-collapsible td {
    overflow-wrap: anywhere;
}
.employee-view-page .employee-letters-collapsible .status-approved {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: 3px 8px;
    border: 1px solid #b7ead0;
    border-radius: 999px;
    background: #eafaf1;
    color: #087443;
    font-size: 10px;
    font-weight: 1000;
    line-height: 1.15;
}
.employee-view-page .employee-letters-collapsible td .muted {
    display: block;
    margin-top: 3px;
    color: #607083;
    font-size: 10px;
}
.financial-records-panel {
    margin-top: 14px;
    border-color: #cddfe8;
    background: linear-gradient(180deg, #ffffff, #f8fbfe);
}
.financial-records-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 13px;
    border-radius: 10px;
    background: linear-gradient(90deg, #eef7fb 0%, #ffffff 72%);
    cursor: pointer;
}
.financial-records-panel > summary::-webkit-details-marker { display: none; }
.financial-records-panel > summary::before {
    content: "+";
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 9px;
    border-radius: 999px;
    background: #e6f1f7;
    color: var(--primary);
    font-weight: 1000;
}
.financial-records-panel[open] > summary::before { content: "-"; }
.financial-record-list {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.fs-shell {
    direction: rtl;
    display: grid;
    gap: 14px;
}
.fs-shell input,
.fs-shell textarea,
.fs-shell select {
    text-align: right;
}
.fs-hero,
.fs-titlebar {
    border: 1px solid #d7e2ec;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 62%, #fffaf0 100%);
    box-shadow: 0 14px 34px rgba(8, 26, 53, .055);
}
.fs-hero {
    padding: 10px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.fs-hero h1,
.fs-titlebar h1 {
    margin: 0;
    color: #081b3d;
    letter-spacing: 0;
}
.fs-titlebar {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 4;
    border-inline-start: 4px solid #d8b861;
}
.fs-titlebar .eyebrow {
    color: #b9953d;
    font-size: 11px;
    letter-spacing: .08em;
}
.fs-titlebar h1 {
    font-size: 22px;
    line-height: 1.2;
}
.fs-titlebar .row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fs-titlebar .button {
    min-height: 34px;
    border-radius: 8px;
    padding: 8px 12px;
}
.fs-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px auto 0;
    max-width: 980px;
}
.fs-home-card {
    position: relative;
    min-height: 76px;
    border: 1px solid rgba(23, 43, 85, .14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.98)),
        radial-gradient(circle at 12% 10%, rgba(216,184,97,.18), transparent 36%);
    color: #081b3d;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(8, 26, 53, .07);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.fs-home-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: #d8b861;
}
.fs-home-card:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 184, 97, .55);
    box-shadow: 0 20px 38px rgba(8, 26, 53, .12);
}
.fs-home-card.accent {
    background:
        linear-gradient(135deg, #081b3d, #1c3067),
        radial-gradient(circle at 0 0, rgba(216,184,97,.22), transparent 42%);
    color: #fff;
    border-color: #193466;
}
.fs-home-card.accent::before {
    background: #d8b861;
}
.fs-home-card svg {
    width: 22px;
    height: 22px;
    color: #b9953d;
    stroke-width: 2.2;
    margin-bottom: 2px;
}
.fs-home-card.accent svg {
    color: #d8b861;
}
.fs-home-card strong {
    display: block;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
}
.fs-home-card span {
    color: #64748b;
    line-height: 1.35;
}
.fs-home-card.accent span {
    color: rgba(255,255,255,.78);
}
.fs-panel {
    border-color: #d7e2ec;
    background: linear-gradient(180deg, #fff, #f9fcff);
}
.fs-panel h2,
.fs-section-card h2 {
    margin: 0 0 12px;
    color: #081b3d;
    font-size: 18px;
}
.fs-signatory-list,
.fs-template-grid {
    display: grid;
    gap: 10px;
}
.fs-signatory-row,
.fs-add-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 8px;
    align-items: end;
    border: 1px solid #d9e5ef;
    border-radius: 8px;
    padding: 10px;
    background: rgba(255,255,255,.78);
}
.fs-add-row {
    margin-top: 12px;
}
.fs-signatory-row .checkline,
.fs-add-row .checkline {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
}
.fs-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fs-template-grid label span {
    display: block;
    margin-bottom: 4px;
    font-weight: 850;
    color: #081b3d;
}
.fs-template-grid textarea {
    min-height: 116px;
    line-height: 1.55;
}
.fs-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.fs-check-grid label {
    border: 1px solid #d9e5ef;
    border-radius: 8px;
    padding: 9px 10px;
    background: #fff;
}
.fs-section-card {
    position: relative;
    border: 1px solid rgba(23, 43, 85, .13);
    border-radius: 12px;
    padding: 13px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,251,255,.97)),
        radial-gradient(circle at 100% 0, rgba(216,184,97,.16), transparent 32%);
    box-shadow: 0 16px 34px rgba(8, 26, 53, .065);
    overflow: hidden;
}
.fs-section-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 13px;
    bottom: 13px;
    width: 4px;
    border-radius: 999px;
    background: #d8b861;
}
.fs-section-card h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 7px 13px;
    border: 1px solid rgba(216,184,97,.36);
    border-radius: 999px;
    background: linear-gradient(135deg, #fff, #fff8e8 64%, #edf4fb);
    color: #081b3d;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(8, 26, 53, .045);
}
.fs-table-wrap {
    overflow-x: auto;
    border: 1px solid #d6e3ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(8, 26, 53, .035);
}
.fs-table {
    min-width: 820px;
    border-collapse: collapse;
}
.fs-table th {
    background: linear-gradient(135deg, #10264d, #1f3b73);
    color: #fff;
    text-align: right;
    padding: 8px 11px;
    font-size: 12px;
    letter-spacing: 0;
}
.fs-table td {
    padding: 8px 11px;
    border-bottom: 1px solid #e6edf5;
    font-size: 13px;
    background: rgba(255,255,255,.98);
    vertical-align: middle;
}
.fs-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}
.fs-table tbody tr:hover td {
    background: #fffdf5;
}
.fs-table td small {
    display: block;
    margin-top: 2px;
    color: #b7791f;
    font-size: 11px;
    font-weight: 800;
}
.fs-table .num {
    text-align: left;
    direction: ltr;
    white-space: nowrap;
}
.fs-table .strong {
    color: #081b3d;
    font-weight: 900;
}
.fs-table input {
    max-width: 150px;
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 7px;
    border-color: #cfddea;
    background: #fff;
}
.fs-total-strip {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid rgba(23,43,85,.12);
    border-radius: 12px;
    padding: 9px;
    background: linear-gradient(90deg, #fff, #f4f8fc 68%, #fff8e8);
    box-shadow: 0 12px 24px rgba(8, 26, 53, .045);
}
.fs-total-strip span {
    border: 1px solid #dce6ef;
    background: linear-gradient(180deg, #fff, #f9fcff);
    border-radius: 999px;
    padding: 7px 13px;
    color: #475569;
    font-weight: 800;
}
.fs-total-strip strong {
    color: #081b3d;
}
.fs-alert {
    border: 1px solid #f0d48a;
    background: #fff8e8;
    color: #7c4d00;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 800;
}
.fs-alert.danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #9f1239;
}
.fs-sticky-actions {
    position: sticky;
    bottom: 10px;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    padding: 10px;
    border: 1px solid #d7e2ec;
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 28px rgba(8, 26, 53, .10);
}
@media (max-width: 900px) {
    .fs-home-grid,
    .fs-template-grid,
    .fs-check-grid {
        grid-template-columns: 1fr;
    }
    .fs-signatory-row,
    .fs-add-row {
        grid-template-columns: 1fr;
    }
    .fs-titlebar {
        align-items: stretch;
        flex-direction: column;
    }
}
.financial-record-card {
    border: 1px solid #d8e6ee;
    border-left: 5px solid #8aa9bd;
    border-radius: 10px;
    background: linear-gradient(90deg, #ffffff 0%, #f8fbfe 100%);
    overflow: hidden;
}
.financial-record-card > summary {
    display: grid;
    grid-template-columns: 140px 130px 130px minmax(150px, 1fr) 94px auto;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 7px 10px;
    cursor: pointer;
}
.financial-record-card > summary::-webkit-details-marker { display: none; }
.financial-record-card .financial-type {
    color: var(--nav);
    font-weight: 1000;
}
.financial-record-bonus { border-left-color: #16a36a; }
.financial-record-deduction { border-left-color: #d98a12; }
.financial-record-penalty { border-left-color: #c0392b; }
.financial-record-loan { border-left-color: #4f46e5; }
.financial-status {
    display: inline-flex;
    justify-content: center;
    width: max-content;
    min-width: 76px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 1000;
}
.financial-status-pending { background: #f3f6fa; color: #405064; border: 1px solid #d8e0ea; }
.financial-status-active { background: #eaf4ff; color: #155d93; border: 1px solid #bfdcf5; }
.financial-status-applied { background: #eafaf1; color: #087443; border: 1px solid #b7ead0; }
.financial-status-closed { background: #edf0f3; color: #5b6470; border: 1px solid #d4d9df; }
.financial-status-cancelled { background: #fff0ef; color: #b42318; border: 1px solid #ffc8c2; }
.financial-record-detail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px 10px;
    border-top: 1px solid #dce8ef;
    background: #fbfdff;
}
.financial-record-detail div {
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid #d9e6ee;
    border-radius: 8px;
    background: #fff;
}
.financial-record-detail .wide { grid-column: 1 / -1; }
.financial-record-detail span {
    display: block;
    margin-bottom: 3px;
    color: #607083;
    font-size: 9px;
    font-weight: 1000;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.financial-record-detail strong {
    display: block;
    color: #101735;
    font-size: 11.5px;
    line-height: 1.35;
}
.financial-record-detail em {
    display: inline-flex;
    margin: 0 5px 5px 0;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eef7fb;
    color: #1b3450;
    font-style: normal;
    font-weight: 800;
}
.financial-system-preview,
.financial-installment-preview {
    display: grid;
    gap: 5px;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid #d8e6ee;
    border-radius: 9px;
    background: linear-gradient(135deg, #f8fcff 0%, #eef7fb 100%);
}
.financial-system-preview span,
.financial-installment-preview span {
    color: #607083;
    font-size: 9px;
    font-weight: 1000;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.financial-system-preview strong,
.financial-installment-preview strong {
    color: var(--nav);
    font-size: 12px;
    line-height: 1.35;
}
.financial-installment-preview strong {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.financial-installment-preview b,
.financial-installment-preview em {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d8e6ee;
    font-style: normal;
    font-weight: 900;
}
.financial-installment-preview em {
    background: #eef7fb;
    color: #1b3450;
}
.employee-view-page .letter-reflect-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.employee-view-page .letter-reflect-form .checkline {
    min-width: 0;
    max-width: 170px;
    font-size: 10px;
    line-height: 1.1;
}
.employee-view-page .letter-reflect-form .icon-button {
    flex: 0 0 30px;
}
.employee-view-page .row-actions {
    gap: 5px;
    flex-wrap: nowrap;
}
.employee-view-page .row-actions .icon-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
}
.employee-view-page .hr-review-actions {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .48fr);
    gap: 10px;
}
.employee-view-page .hr-review-actions .form-panel {
    border-color: #d7e5ed;
    background: #f8fbfe;
}
.employee-view-page .hr-correction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.employee-view-page .check-row {
    min-height: 34px;
    padding: 7px 9px;
}
.employee-request-collapsible {
    padding: 0;
    overflow: hidden;
    border-color: #cddfe8;
    background: linear-gradient(180deg, #fff, #f8fbfe);
}
.employee-request-collapsible > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 10px 13px;
    cursor: pointer;
    background: linear-gradient(90deg, #eef7fb 0%, #fff 72%);
}
.employee-request-collapsible > summary::-webkit-details-marker { display: none; }
.employee-request-collapsible > summary::before {
    content: "+";
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e6f1f7;
    color: var(--brand);
    font-weight: 900;
    margin-right: 8px;
}
.employee-request-collapsible[open] > summary::before { content: "-"; }
.employee-request-collapsible > summary > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}
.employee-request-collapsible > summary p { margin: 0; }
.employee-request-collapsible > summary strong {
    color: var(--nav);
    font-size: 15px;
}
.employee-request-summary-status {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}
.employee-request-collapsible .hr-review-actions {
    margin: 12px 14px 14px;
}
.simple-table.job-offer-view-salary {
    min-width: 0;
    table-layout: fixed;
}
.simple-table.job-offer-view-salary th {
    background: #11154a;
    color: #fff;
}
.simple-table.job-offer-view-salary td:last-child,
.simple-table.job-offer-view-salary th:last-child { text-align: right; }
.simple-table.job-offer-view-salary .net td {
    background: #eef6ff;
    color: #11154a;
    font-weight: 900;
}
.job-offer-terms {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #dbe7ee;
    border-radius: 8px;
    background: #f8fbfd;
    color: var(--ink);
    line-height: 1.45;
    white-space: pre-wrap;
}
.job-offer-terms li {
    margin: 0 0 7px;
}
.job-offer-terms strong {
    color: #11154a;
}
.form-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #dbe7ee;
    border-radius: var(--radius);
    background: #f9fcff;
}
.form-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.allowance-builder {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}
.allowance-builder-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.allowance-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 42px;
    gap: 8px;
    margin-bottom: 8px;
}
.allowance-row button {
    min-width: 42px;
    padding: 8px;
}
.salary-preview {
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid #c7e7d8;
    border-radius: var(--radius);
    background: #f0fdf7;
    color: #064e3b;
    font-weight: 700;
}
.salary-preview strong { font-size: 18px; }
.muted-field {
    opacity: .62;
}
.onboarding-public-page {
    min-height: 100vh;
    padding: 28px 18px 42px;
    background:
        linear-gradient(180deg, #eef5fb 0, #f7faff 260px),
        #f7faff;
}
.onboarding-shell {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 16px;
}
.onboarding-hero {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    border: 1px solid #dbe5ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(8, 26, 53, .08);
}
.onboarding-hero img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}
.onboarding-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #081a35;
}
.onboarding-hero .muted {
    margin: 0;
    max-width: 720px;
    line-height: 1.5;
}
.onboarding-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.onboarding-summary div {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    border: 1px solid #dbe7ee;
    border-radius: 8px;
    background: #fff;
}
.onboarding-summary span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.onboarding-summary strong {
    color: #081a35;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.onboarding-form {
    display: grid;
    gap: 16px;
}
.required-note,
.save-required-notice,
.password-confirmed-alert {
    padding: 10px 12px;
    border: 1px solid #dbe7ee;
    border-radius: 8px;
    background: #f8fbfe;
    color: #394756;
    font-weight: 700;
}
.req {
    color: var(--danger);
    font-weight: 900;
    margin-left: 3px;
}
.password-confirmed-alert {
    border-color: #bce8d0;
    background: #edf9f2;
    color: var(--good);
}
.onboarding-card {
    display: grid;
    gap: 13px;
    padding: 18px;
    border: 1px solid #dbe5ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(8, 26, 53, .045);
}
.onboarding-card h2 {
    margin: 0;
    color: #081a35;
}
.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.onboarding-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.onboarding-photo-card {
    grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr);
    align-items: start;
}
.photo-requirements {
    margin: 0 0 14px;
    padding-left: 18px;
    color: #394756;
    line-height: 1.55;
    font-size: 13px;
}
.photo-crop-tool {
    display: grid;
    gap: 12px;
    justify-items: start;
    padding: 14px;
    border: 1px solid #dbe7ee;
    border-radius: 8px;
    background: #f8fbfe;
}
.photo-crop-tool[hidden] { display: none; }
.crop-frame {
    width: 300px;
    height: 300px;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #eef3f7;
    box-shadow: inset 0 0 0 1px #cbd9e3;
}
.crop-frame canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.crop-nudges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.crop-nudges button {
    min-height: 30px;
    padding: 6px 10px;
    background: #e8eef2;
    color: var(--ink);
}
.onboarding-submit {
    justify-content: flex-end;
}
.onboarding-submit button {
    min-width: 220px;
}
.onboarding-submit button:disabled {
    cursor: not-allowed;
    opacity: .55;
}
.employee-portal-shell {
    width: min(900px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 16px;
}
.employee-portal-login {
    width: min(460px, 100%);
    margin: 0 auto;
}
.portal-type-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.portal-type-row label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    border: 1px solid #dbe7ee;
    border-radius: 7px;
    background: #f8fbfe;
    color: var(--ink);
}
.portal-type-row input {
    width: auto;
}
.portal-number-wrap {
    display: grid;
    grid-template-columns: 74px 1fr;
    align-items: center;
}
.portal-prefix {
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 6px 0 0 6px;
    background: #eef3f7;
    color: #081a35;
    font-weight: 900;
}
.portal-number-wrap input {
    border-radius: 0 6px 6px 0;
}
.portal-dashboard {
    gap: 16px;
}
.po-print-body {
    background: #e9edf3;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
}
.po-print-actions {
    width: 210mm;
    margin: 18px auto 10px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.po-page {
    width: 210mm;
    height: 297mm;
    margin: 0 auto 24px;
    background: #fff;
    padding: 5mm 8mm 18mm;
    box-shadow: 0 12px 36px rgba(8, 26, 53, .16);
    font-size: 10px;
    line-height: 1.18;
    position: relative;
    page-break-after: always;
    overflow: hidden;
}
.po-page:last-of-type { page-break-after: auto; }
.po-last-page { padding-bottom: 46mm; }
.po-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid #111b3d;
    padding-bottom: 4px;
    min-height: 25mm;
}
.po-header img { width: 262px; height: 80px; object-fit: contain; object-position: left center; }
.po-company { text-align: right; color: #000; display: grid; gap: 6px; line-height: 1.1; }
.po-company strong { font-size: 20px; letter-spacing: .02em; }
.po-company span { font-size: 24px; font-weight: 800; font-family: Tahoma, Arial, Helvetica, sans-serif; }
.po-header-compact {
    min-height: 16mm;
    border-bottom-width: 3px;
}
.po-header-compact img { width: 185px; height: 48px; }
.po-header-compact .po-company { gap: 3px; }
.po-header-compact .po-company strong { font-size: 15px; }
.po-header-compact .po-company span { font-size: 16px; }
.po-continuation {
    margin: 12px 0 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.po-page h1 {
    text-align: center;
    margin: 24px 0 23px;
    font-size: 20px;
    text-decoration: underline;
}
.po-meta {
    display: grid;
    grid-template-columns: 285px 285px;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 24px;
    font-size: 10px;
    font-weight: 500;
}
.po-main-details { justify-self: start; width: 285px; text-align: left; }
.po-party { justify-self: end; width: max-content; min-width: 0; text-align: left !important; }
.po-party p { text-align: left !important; white-space: nowrap; }
.po-meta p { margin: 0 0 5px; }
.po-lines {
    min-width: 0;
    border-top: 1.5px solid #000;
    border-bottom: 1.5px solid #000;
    margin-bottom: 20px;
}
.po-lines th, .po-lines td {
    border: 0;
    color: #000;
    padding: 6px 5px;
    background: transparent;
    font-size: 10px;
    text-transform: none;
    letter-spacing: 0;
    vertical-align: top;
}
.po-lines th:nth-child(2), .po-lines td:nth-child(2) { width: 38%; }
.po-lines th:nth-child(3), .po-lines td:nth-child(3),
.po-lines th:nth-child(4), .po-lines td:nth-child(4),
.po-lines th:nth-child(5), .po-lines td:nth-child(5),
.po-lines th:nth-child(7), .po-lines td:nth-child(7) {
    text-align: center;
}
.po-lines thead th {
    border-bottom: 1.5px solid #000;
    font-weight: 500;
}
.po-summary {
    display: grid;
    grid-template-columns: 1.25fr .6fr;
    gap: 42mm;
    margin-bottom: 24px;
}
.po-summary p { margin: 0 0 8px; }
.po-words {
    display: grid;
    grid-template-columns: 105px 1fr;
    column-gap: 12px;
    row-gap: 7px;
}
.po-words p { display: contents; }
.po-words strong { grid-column: 1; }
.po-words p::after {
    content: attr(data-value);
    grid-column: 2;
}
.po-totals p {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    margin-bottom: 8px;
    min-width: 170px;
}
.po-terms { font-size: 8.4px; line-height: 1.12; margin-top: 6px; }
.po-terms h2 { font-size: 12px; font-weight: 500; margin-bottom: 13px; }
.po-terms p { margin: 0 0 2px; }
.po-note { margin-top: 24px; font-size: 9px; }
.po-footer {
    position: absolute;
    left: 8mm;
    right: 8mm;
    bottom: 5mm;
    margin-top: 0;
    display: grid;
    grid-template-columns: 90px 150px 420px;
    align-items: end;
    gap: 16px;
    justify-content: space-between;
    color: #0b1d49;
    font-size: 11px;
}
.po-footer-simple {
    grid-template-columns: 1fr;
    align-items: end;
}
.po-stamp { width: 122px; height: 122px; object-fit: contain; justify-self: center; }
.po-address-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
    width: 420px;
    justify-self: end;
}
.po-address { line-height: 1.13; padding-right: 10px; text-align: left; }
.po-address-ar {
    direction: rtl;
    text-align: right;
    border-left: 4px solid #0b1d49;
    padding-left: 10px;
    padding-right: 0;
}
.quotation-print-page {
    padding-bottom: 30mm;
    font-size: 10.5px;
    line-height: 1.28;
}
.quotation-last-page { padding-bottom: 30mm; }
.quotation-title-block {
    text-align: center;
    margin: 18px 0 14px;
}
.quotation-title-block p {
    margin: 0 0 10px;
    font-weight: 800;
    color: #0b1d49;
}
.quotation-title-block h1 {
    margin: 0 0 8px;
    font-size: 20px;
    text-decoration: none;
    color: #071827;
}
.quotation-meta-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin: 0 0 14px;
    padding: 0;
}
.quotation-meta-line p { margin: 0; }
.quotation-party-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 16px;
}
.quotation-party-grid > div {
    border: 1px solid #d8e4ec;
    border-top: 3px solid #0b1d49;
    padding: 11px 12px;
    min-height: 110px;
}
.quotation-party-grid h2 {
    margin: 0 0 8px;
    font-size: 12px;
    color: #0b1d49;
}
.quotation-party-grid p {
    margin: 0 0 4px;
}
.quotation-section {
    margin: 14px 0 0;
    break-inside: avoid;
}
.quotation-section h2 {
    display: inline-block;
    margin: 0 0 8px;
    font-size: 13px;
    color: #0b1d49;
    border-bottom: 1.5px solid #0b1d49;
    padding-bottom: 4px;
}
.quotation-section p {
    margin: 0;
    white-space: normal;
}
.quotation-lines { margin-bottom: 10px; }
.quotation-lines th:nth-child(2), .quotation-lines td:nth-child(2) { width: 42%; }
.quotation-lines th:nth-child(3), .quotation-lines td:nth-child(3),
.quotation-lines th:nth-child(4), .quotation-lines td:nth-child(4),
.quotation-lines th:nth-child(5), .quotation-lines td:nth-child(5),
.quotation-lines th:nth-child(6), .quotation-lines td:nth-child(6) {
    text-align: center;
}
.quotation-total-box {
    width: 210px;
    margin-left: auto;
    display: grid;
    gap: 5px;
}
.quotation-total-box p {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 5px 0;
    border-bottom: 1px solid #0b1d49;
}
.quotation-total-box p:last-child {
    font-weight: 900;
    color: #0b1d49;
}
.quotation-terms { font-size: 9.3px; }
.quotation-bottom-block {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}
.quotation-approvals {
    display: grid;
    grid-template-columns: minmax(190px, 250px);
    gap: 16px;
    margin-top: 0;
    break-inside: avoid;
}
.quotation-signature {
    display: block;
    width: 150px;
    max-height: 55px;
    object-fit: contain;
    margin: 0 0 6px;
}
.quotation-approvals div {
    padding-top: 0;
}
.quotation-approvals span {
    display: block;
    color: #526173;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.quotation-approvals strong {
    display: block;
    color: #071827;
    font-size: 11px;
}
.quotation-approvals p {
    margin: 3px 0 0;
    color: #0b1d49;
}
.quotation-generated-note {
    margin: 0;
    color: #0b1d49;
    font-size: 10px;
    text-align: center;
    align-self: center;
}
.quotation-footer {
    position: absolute;
    left: 8mm;
    right: 8mm;
    bottom: 5mm;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 7px;
    border-top: 2px solid #0b1d49;
    color: #0b1d49;
    font-size: 10px;
}
@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .cards, .form-grid, .compact-form, .permission-grid, .project-meta-grid, .onboarding-summary, .onboarding-grid, .onboarding-grid.two, .onboarding-photo-card, .hr-review-actions, .hr-correction-grid, .portal-type-row { grid-template-columns: 1fr; }
    .dashboard-hero { align-items: flex-start; flex-direction: column; }
    .dashboard-metrics { grid-template-columns: 1fr; }
    .dashboard-project-row { grid-template-columns: 1fr; align-items: start; }
    .reports-hero-actions { align-items: flex-start; flex-direction: column; width: 100%; }
    .hero-date { width: 100%; text-align: left; }
    .form-grid .wide { grid-column: auto; }
    .supplier-service-picker { grid-column: auto; width: 100%; }
    .supplier-service-options { grid-template-columns: 1fr; }
    .supplier-detail-grid, .supplier-correction-grid { grid-template-columns: 1fr; }
    .supplier-detail-grid .compact-address { grid-column: auto; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .project-board { grid-template-columns: 1fr; }
    .project-row { grid-template-columns: 1fr; align-items: start; }
    .project-row-actions { justify-content: flex-start; flex-wrap: wrap; }
    .roster-row, .roster-money { grid-template-columns: 1fr; }
    .roster-money { padding-left: 0; border-left: 0; border-top: 1px solid #e2eaf0; padding-top: 8px; }
    .directory-head { align-items: flex-start; flex-direction: column; }
    .position-rate-title { align-items: flex-start; flex-direction: column; }
    .employee-filter-bar { grid-template-columns: 1fr; }
    .employee-filter-bar .row-actions { justify-content: flex-start; }
    .employee-inline-upload-grid { grid-template-columns: 1fr; }
    .employee-certificates-card .certificate-list { grid-template-columns: 1fr; }
    .employee-polished-section .form-grid.compact { grid-template-columns: 1fr; }
    .employee-request-row,
    .employee-request-review-grid,
    .portal-profile-hero,
    .portal-action-grid,
    .portal-request-row,
    .portal-letter-row,
    .portal-request-detail-grid {
        grid-template-columns: 1fr;
    }
    .portal-company-mark {
        justify-self: start;
    }
    .portal-kpi-strip,
    .portal-timesheet-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .portal-action-menu,
    .portal-profile-readonly,
    .portal-month-picker,
    .portal-timesheet-compact-grid {
        grid-template-columns: 1fr;
    }
    .portal-month-buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .portal-day-card {
        grid-template-columns: 26px minmax(0, 1fr);
        align-items: start;
    }
    .portal-day-card label:not(.portal-day-check) {
        grid-column: 1 / -1;
    }
    .portal-day-date {
        min-width: 0;
    }
    .directory-row, .supplier-row, .supplier-request-row, .finance-row, .quotation-split, .job-offer-row, .pending-employee-row, .employee-row { grid-template-columns: 1fr; align-items: start; }
    .approval-request-row { grid-template-columns: 1fr; align-items: start; }
    .approval-view-details dl { grid-template-columns: 1fr; }
    .approval-detail-grid { grid-template-columns: 1fr; }
    .approval-detail-item.wide { grid-column: auto; }
    .approval-current-record { grid-template-columns: 1fr; }
    .approval-permission-grid label { grid-template-columns: 1fr; }
    .permission-builder { grid-template-columns: 1fr; min-height: 0; }
    .permission-builder-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .permission-feature-list,
    .permission-feature-options {
        grid-template-columns: 1fr;
    }
    .job-offer-row .row-actions, .pending-actions, .employee-actions { width: auto; min-width: 0; justify-content: flex-start; flex-wrap: wrap; }
    .job-offer-facts { grid-template-columns: 1fr; width: 100%; }
    .employee-facts { grid-template-columns: 1fr; width: 100%; }
    .employee-view-page .job-offer-view-grid,
    .employee-view-page .employee-document-status-grid,
    .employee-view-page .employee-upload-letter-form,
    .employee-profile-hero-panel,
    .employee-profile-hero-metrics,
    .employee-view-page .hr-review-actions,
    .employee-view-page .hr-correction-grid {
        grid-template-columns: 1fr;
    }
    .employee-view-page .job-offer-view-grid > section:first-child {
        grid-column: auto;
    }
    .employee-view-page .job-offer-view-grid > section,
    .employee-view-page .job-offer-view-grid > section:first-child {
        grid-column: auto;
    }
    .employee-view-page .job-offer-view-grid > section:first-child dl {
        grid-template-columns: 112px minmax(0, 1fr);
    }
    .employee-view-page dl {
        grid-template-columns: 112px minmax(0, 1fr);
    }
    .employee-view-page .letter-reflect-form {
        align-items: flex-start;
        flex-direction: column;
    }
    .expense-row { grid-template-columns: 1fr; align-items: stretch; }
    .expense-facts { grid-template-columns: 1fr; width: 100%; }
    .expense-actions { justify-content: flex-start; width: auto; justify-self: start; }
    .smart-expense-filter, .expense-summary-strip { grid-template-columns: 1fr; }
    .expense-view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .expense-attachment-panel { align-items: flex-start; flex-direction: column; }
    .document-grid, .check-grid { grid-template-columns: 1fr; }
    .onboarding-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .onboarding-hero h1 { font-size: 24px; }
    .onboarding-public-page { padding: 14px 10px 28px; }
    .crop-frame { width: 260px; height: 260px; }
    .finance-row .row-actions { justify-content: flex-start; flex-wrap: wrap; }
    .directory-actions { justify-content: flex-start; flex-wrap: wrap; }
    .section-title-row { align-items: flex-start; flex-direction: column; }
    .certificate-row { grid-template-columns: minmax(0, 1fr) 32px 30px; }
    .record-modal { transform: none !important; }
    .modal-title-row { cursor: default; }
}
@media print {
    .sidebar, .topbar, .reports-toolbar button, .button, button, .po-print-actions, .expense-entry, .expense-report form { display: none !important; }
    .app-shell { display: block; }
    .content { max-width: none; padding: 0; }
    body { background: #fff; }
    .card, .panel, .table-wrap { box-shadow: none; break-inside: avoid; }
    .expense-report { border: 0; padding: 0; }
    .report-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    table { min-width: 0; }
    @page { size: A4; margin: 0; }
    .po-print-body { background: #fff; }
    .po-page {
        width: 210mm;
        height: 297mm;
        margin: 0;
        box-shadow: none;
        padding: 5mm 8mm 18mm;
        page-break-after: always;
    }
    .po-page:last-of-type { page-break-after: auto; }
    .po-last-page { padding-bottom: 46mm; }
    .quotation-print-page {
        height: 297mm;
        padding-bottom: 30mm;
        overflow: hidden;
    }
    .quotation-footer { position: absolute; }
}

/* Timesheet summary modal: keep these after the global label/input rules. */
.timesheet-summary-modal label.checkline,
.timesheet-summary-modal .summary-picker-head label.checkline,
.timesheet-summary-modal .summary-tech > summary label.checkline,
.timesheet-summary-modal .summary-options-grid label.checkline {
    display: inline-flex !important;
    grid-template-columns: none !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-height: 0;
    gap: 8px !important;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}
.timesheet-summary-modal input[type="checkbox"],
.timesheet-summary-modal input[type="radio"] {
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 16px !important;
}
.timesheet-summary-modal .summary-picker {
    margin-top: 10px;
    padding: 10px;
}
.timesheet-summary-modal .summary-version-panel {
    display: grid;
    grid-template-columns: minmax(220px, 320px) auto;
    align-items: end;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #d8e5f0;
    border-radius: 8px;
    background: #f8fbff;
}
.timesheet-summary-modal .summary-version-panel select {
    min-height: 36px;
}
.timesheet-summary-modal .summary-fixed-rate {
    padding: 8px 10px;
    border: 1px solid #bdd5ea;
    border-radius: 7px;
    background: #eef7ff;
}
.timesheet-summary-modal .summary-picker-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid #d8e5f0;
    border-radius: 8px;
    background: #fff;
}
.timesheet-summary-modal .summary-picker-head .muted {
    margin: 0;
    font-size: 12px;
}
.timesheet-summary-modal .summary-tech {
    margin-top: 8px;
}
.timesheet-summary-modal .summary-tech > summary {
    display: grid !important;
    grid-template-columns: minmax(220px, 1.25fr) minmax(160px, .85fr) 108px 112px 72px;
    gap: 10px;
    padding: 10px 12px;
}
.timesheet-summary-modal .summary-tech > summary::before {
    display: none;
}
.timesheet-summary-modal .summary-tech > summary > span,
.timesheet-summary-modal .summary-tech > summary .button {
    align-self: center;
}
.timesheet-summary-modal .summary-options {
    margin-top: 12px;
}
.timesheet-summary-modal .summary-options-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 12px;
}
.timesheet-summary-modal .summary-options-grid > div {
    padding: 12px;
    border: 1px solid #d8e5f0;
    border-radius: 8px;
    background: #fff;
}
.timesheet-summary-modal .summary-options-grid strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.timesheet-summary-modal .summary-options-grid label.checkline {
    margin-top: 6px;
    padding: 7px 9px;
    border: 1px solid #e3ebf3;
    border-radius: 7px;
    background: #f8fbff;
}
.timesheet-summary-modal .summary-options-grid label.checkline:has(input:checked) {
    border-color: #bdd5ea;
    background: #eef7ff;
}
.timesheet-summary-modal .live-summary {
    margin-top: 12px;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.timesheet-summary-modal .live-summary div {
    min-height: 50px;
}
.timesheet-details-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.timesheet-details-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}
.timesheet-details-grid label {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 9px;
    border: 1px solid #d7e4ef;
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.96)),
        #ffffff;
    box-shadow: 0 8px 18px rgba(12, 29, 55, .045);
}
.timesheet-details-grid .ts-main-field {
    grid-column: span 4;
}
.timesheet-details-grid .ts-date-field,
.timesheet-details-grid .timesheet-approved-field {
    grid-column: span 2;
}
.timesheet-details-grid .timesheet-attachment-field {
    grid-column: span 8;
}
.ts-field-title {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 18px;
    padding: 2px 7px;
    border-right: 3px solid #b79539;
    border-radius: 6px;
    background: #eef5fb;
    color: var(--primary);
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.timesheet-details-grid input,
.timesheet-details-grid select {
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
    border-color: #d2e0ec;
    border-radius: 7px;
    background-color: #ffffff;
    color: #081b35;
    font-size: 12.5px;
    font-weight: 800;
}
.timesheet-details-grid input:focus,
.timesheet-details-grid select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 95, 127, .12);
}
.timesheet-approved-field {
    align-self: stretch;
}
.timesheet-approved-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d2e0ec;
    border-radius: 7px;
    background: #ffffff;
}
.timesheet-approved-box input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    accent-color: var(--primary);
}
.timesheet-attachment-field .muted {
    font-size: 11px;
    font-weight: 800;
}
.inline-control-with-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 6px;
    align-items: center;
}
.inline-control-with-action select:disabled {
    color: #0b1b35;
    background: #f7fafc;
    opacity: 1;
}
.inline-control-with-action .compact-icon {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
}
@media (max-width: 900px) {
    .timesheet-details-grid,
    .timesheet-summary-modal .summary-tech > summary,
    .timesheet-summary-modal .summary-options-grid,
    .timesheet-summary-modal .live-summary {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 1180px) {
    .invoice-settings-shell {
        grid-template-columns: 210px minmax(0, 1fr);
    }
    .generated-invoice-form {
        grid-template-columns: 1fr 1fr;
    }
    .generated-item-row {
        grid-template-columns: 34px minmax(180px, 1fr) 82px 104px;
    }
}
@media (max-width: 900px) {
    .invoice-settings-shell {
        grid-template-columns: 1fr;
    }
    .invoice-settings-nav {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 760px) {
    .invoice-settings-nav,
    .generated-invoice-form {
        grid-template-columns: 1fr;
    }
    .generated-item-row {
        grid-template-columns: 1fr;
    }
}
