:root {
    color-scheme: light;
    --bg: #f4f7fb;
    --bg-soft: #edf8f7;
    --panel: rgba(255, 255, 255, .92);
    --panel-strong: #ffffff;
    --text: #0b1220;
    --muted: #64748b;
    --line: #d7e1e8;
    --line-soft: #e8eef3;
    --brand: #21BBB0;
    --brand-dark: #0d8f86;
    --brand-soft: #ddf8f6;
    --ink: #071112;
    --ink-soft: #101a1d;
    --blue: #2563eb;
    --violet: #7c3aed;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --warning: #b7791f;
    --gold: #caa04a;
    --sidebar: #04090a;
    --sidebar-soft: #0d1719;
    --shadow: 0 18px 54px rgba(15, 23, 42, .08);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, .05);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100%;
    background:
        linear-gradient(135deg, rgba(33, 187, 176, .12), rgba(37, 99, 235, .07) 34%, rgba(255, 255, 255, 0) 64%),
        linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .028) 1px, transparent 1px),
        var(--bg);
    background-size: auto, 38px 38px, 38px 38px, auto;
    color: var(--text);
    font-family: "Instrument Sans", Inter, "Segoe UI Variable", "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

a { color: var(--brand-dark); text-decoration: none; font-weight: 650; }
a:hover { color: #0f766e; }

input, select, textarea, button { font: inherit; }

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    min-width: 0;
    transition: grid-template-columns .2s ease;
}

body.sidebar-collapsed .shell {
    grid-template-columns: 82px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(33, 187, 176, .18), rgba(124, 58, 237, .06) 42%, rgba(33, 187, 176, 0) 78%),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px),
        var(--sidebar);
    background-size: auto, 28px 28px, 28px 28px, auto;
    color: #fff;
    padding: 22px 16px;
    box-shadow: 14px 0 46px rgba(5, 6, 7, .22);
    transition: padding .2s ease;
}

.sidebar-toggle {
    position: absolute;
    top: 58px;
    right: 22px;
    z-index: 40;
    display: none;
    place-items: center;
    gap: 3px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(33, 187, 176, .38);
    border-radius: 999px;
    background: rgba(7, 17, 18, .72);
    box-shadow: 0 8px 18px rgba(5, 6, 7, .18);
    cursor: pointer;
}

body.sidebar-collapsed .sidebar-toggle {
    display: grid;
}

.sidebar-toggle span {
    display: block;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand);
    transition: transform .18s ease;
}

body.sidebar-collapsed .sidebar-toggle span:first-child {
    transform: rotate(35deg) translate(1px, 2px);
}

body.sidebar-collapsed .sidebar-toggle span:last-child {
    transform: rotate(-35deg) translate(1px, -2px);
}

.sidebar-head {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    margin-bottom: 22px;
    padding: 10px 44px 10px 10px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 34px rgba(0, 0, 0, .2);
    transition: justify-content .2s ease, padding .2s ease;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 999px;
    background: #000;
    box-shadow: 0 0 0 1px rgba(202, 160, 74, .62), 0 0 24px rgba(33, 187, 176, .2);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-name {
    font-size: 17px;
    font-weight: 750;
    letter-spacing: 0;
}

.brand-subtitle {
    color: #9aa8b7;
    font-size: 12px;
    font-weight: 520;
}

.brand-switch-trigger {
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a5b1bc;
    text-align: left;
    text-decoration: underline;
    text-transform: uppercase;
    text-underline-offset: 3px;
    font-size: 11px;
    font-weight: 520;
    letter-spacing: .06em;
    cursor: pointer;
}

.nav {
    flex: 1 1 auto;
    min-height: 0;
}

.nav-scroll {
    display: grid;
    align-content: start;
    gap: 5px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .55) transparent;
}

.nav-scroll::-webkit-scrollbar {
    width: 6px;
}

.nav-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, .45);
}

.nav-section {
    margin: 12px 8px 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #74828f;
    font-size: 11px;
    font-weight: 720;
    text-transform: uppercase;
}

.nav a,
.nav button {
    width: 100%;
    color: #d8e0e8;
    background: transparent;
    border: 0;
    text-align: left;
    padding: 10px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
}

.nav-icon {
    display: grid;
    flex: 0 0 26px;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    color: #9ce8e2;
    background: rgba(255, 255, 255, .045);
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.nav-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-item.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(33, 187, 176, .28), rgba(37, 99, 235, .12));
    box-shadow: inset 3px 0 0 var(--brand), 0 12px 26px rgba(33, 187, 176, .12);
}

.nav-item.is-active .nav-icon {
    color: #042323;
    background: var(--brand);
    box-shadow: 0 0 22px rgba(33, 187, 176, .28);
}

.nav a:hover,
.nav button:hover {
    background: linear-gradient(90deg, rgba(33, 187, 176, .18), rgba(37, 99, 235, .08));
    color: #fff;
    transform: translateX(2px);
}

.nav form {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.employee-sidebar .nav-scroll {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.employee-sidebar .nav-section {
    margin-top: 10px;
}

.employee-sidebar .nav-item {
    min-height: 46px;
}

.employee-sidebar .nav form {
    margin-top: auto;
}

body.sidebar-collapsed .sidebar {
    padding: 54px 12px 22px;
}

body.sidebar-collapsed .sidebar-toggle {
    top: 12px;
    right: 50%;
    transform: translateX(50%);
}

body.sidebar-collapsed .brand {
    justify-content: center;
    min-height: 0;
    margin-bottom: 18px;
    padding: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

body.sidebar-collapsed .system-mode-pill {
    width: 38px;
    min-height: 38px;
    margin: 0 auto 12px;
    padding: 0;
    border-radius: 12px;
}

body.sidebar-collapsed .system-mode-label,
body.sidebar-collapsed .system-mode-name {
    display: none;
}

body.sidebar-collapsed .system-mode-letter {
    display: block;
    font-size: 15px;
    line-height: 1;
}

body.sidebar-collapsed .brand-logo {
    display: none;
}

body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .nav-section {
    display: none;
}

body.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 10px;
}

body.sidebar-collapsed .nav-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
}

body.sidebar-collapsed .nav form {
    border-top: 0;
}

body.sidebar-collapsed .company-switcher {
    left: 98px;
    top: 22px;
}

.main {
    width: 100%;
    max-width: 1440px;
    min-width: 0;
    padding: 30px;
}

.main-header {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    min-height: 0;
    margin-bottom: 0;
}

.system-mode-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 34px;
    margin: 0 0 10px;
    padding: 7px 10px;
    border: 1px solid rgba(245, 158, 11, .42);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 251, 235, .95), rgba(254, 243, 199, .86));
    color: #92400e;
    box-shadow: 0 12px 30px rgba(146, 64, 14, .12);
    backdrop-filter: blur(12px);
    transition: width .2s ease, min-height .2s ease, margin .2s ease, padding .2s ease;
}

.system-mode-pill .system-mode-label {
    color: #a16207;
    font-size: 11px;
    font-weight: 780;
    text-transform: uppercase;
}

.system-mode-pill .system-mode-name,
.system-mode-pill .system-mode-letter {
    color: #78350f;
    font-size: 13px;
    font-weight: 820;
}

.system-mode-pill .system-mode-letter {
    display: none;
}

.system-mode-production {
    border-color: rgba(33, 187, 176, .42);
    background: linear-gradient(135deg, rgba(236, 253, 245, .96), rgba(209, 250, 229, .84));
    color: #065f46;
    box-shadow: 0 12px 30px rgba(6, 95, 70, .12);
}

.system-mode-production .system-mode-label,
.system-mode-production .system-mode-name,
.system-mode-production .system-mode-letter {
    color: #065f46;
}

.company-switcher {
    display: none;
    position: fixed;
    left: 20px;
    top: 106px;
    z-index: 60;
    width: min(260px, calc(100vw - 36px));
    padding: 12px;
    border: 1px solid rgba(33, 187, 176, .22);
    border-radius: 8px;
    background: rgba(6, 15, 17, .97);
    box-shadow: 0 18px 46px rgba(5, 6, 7, .34);
}

.company-switcher.is-open {
    display: block;
}

.company-switcher-title {
    color: #d7dee5;
    font-size: 12px;
    font-weight: 800;
}

.company-switcher-list {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.company-switcher-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 7px;
    background: rgba(255, 255, 255, .045);
    color: #ecf4f3;
    text-align: left;
    font-weight: 760;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.company-switcher-option:hover,
.company-switcher-option.is-active {
    border-color: rgba(33, 187, 176, .55);
    background: linear-gradient(90deg, rgba(33, 187, 176, .2), rgba(37, 99, 235, .08));
    color: #fff;
}

.company-switcher-check {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(33, 187, 176, .16);
    color: #9ce8e2;
    font-size: 10px;
    font-weight: 800;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.topbar h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: 0;
    font-weight: 760;
}

.muted { color: var(--muted); }

.dashboard-filters {
    display: grid;
    grid-template-columns: minmax(132px, 160px) repeat(2, minmax(138px, 160px)) auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.dashboard-filters select,
.dashboard-filters input {
    min-height: 42px;
    padding: 8px 10px;
}

.dashboard-report-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: -6px 0 18px;
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(255, 255, 255, .62);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.dashboard-report-strip .actions {
    justify-content: flex-end;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .45fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
    padding: 22px;
    border: 1px solid rgba(33, 187, 176, .22);
    border-radius: 14px;
    background:
        radial-gradient(circle at 12% 10%, rgba(33, 187, 176, .24), transparent 32%),
        linear-gradient(135deg, rgba(5, 14, 18, .97), rgba(9, 38, 43, .95) 48%, rgba(12, 22, 35, .95));
    color: #fff;
    box-shadow: 0 28px 74px rgba(4, 11, 18, .18);
}

.dashboard-hero-copy {
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 0;
}

.dashboard-hero h1 {
    margin: 2px 0;
    color: #fff;
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: 0;
}

.dashboard-hero p {
    margin: 0;
    max-width: 620px;
    color: #b9c9d4;
}

.dashboard-eyebrow {
    color: #7be3dc;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    font-weight: 780;
}

.dashboard-period-pill {
    width: fit-content;
    margin-top: 14px;
    padding: 8px 12px;
    border: 1px solid rgba(123, 227, 220, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #eafafa;
    font-size: 12px;
    font-weight: 650;
}

.dashboard-hero-metric {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.dashboard-hero-metric span {
    color: #b9c9d4;
    font-weight: 650;
}

.dashboard-hero-metric strong {
    color: #fff;
    font-size: 34px;
    line-height: 1.05;
}

.dashboard-hero-metric small {
    color: #7be3dc;
    font-weight: 720;
}

.dashboard-hero .dashboard-filters {
    grid-column: 1 / -1;
    grid-template-columns: minmax(150px, .8fr) repeat(2, minmax(150px, 1fr)) auto;
    width: 100%;
    align-self: center;
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .1);
    box-shadow: none;
}

.dashboard-hero .dashboard-filters input,
.dashboard-hero .dashboard-filters select {
    background: rgba(255, 255, 255, .94);
}

.dashboard-hero .dashboard-filters .btn {
    min-height: 42px;
    white-space: nowrap;
}

.dashboard-report-strip span {
    color: #304054;
    font-weight: 760;
}

.dashboard-kpi-grid,
.dashboard-health-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.dashboard-kpi,
.dashboard-health-card {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 138px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.dashboard-kpi::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 14px;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    opacity: .14;
    transform: rotate(10deg);
}

.dashboard-kpi span,
.dashboard-health-card span {
    color: #64748b;
    font-weight: 680;
}

.dashboard-kpi strong,
.dashboard-health-card strong {
    color: #07111f;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 800;
}

.dashboard-kpi small,
.dashboard-health-card small {
    color: #64748b;
    font-weight: 620;
}

.dashboard-kpi.is-income { border-color: rgba(33, 187, 176, .22); }
.dashboard-kpi.is-income::after { background: var(--brand); }
.dashboard-kpi.is-expense::after { background: #fb7185; }
.dashboard-kpi.is-profit::after { background: #2563eb; }
.dashboard-kpi.is-alert::after { background: #f59e0b; }

.dashboard-chart-panel {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.dashboard-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.dashboard-panel-header.compact {
    margin-bottom: 12px;
}

.dashboard-panel-header h2 {
    margin: 2px 0 0;
    font-size: 22px;
}

.dashboard-panel-header p {
    margin: 3px 0 0;
    color: var(--muted);
}

.dashboard-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dashboard-chart-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.dashboard-chart-toggle {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(74px, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-soft);
}

.dashboard-chart-toggle label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #44546a;
    cursor: pointer;
    font-size: 12px;
    font-weight: 760;
}

.chart-mode-input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

#chart-mode-bars:checked ~ .dashboard-panel-header label[for="chart-mode-bars"],
#chart-mode-line:checked ~ .dashboard-panel-header label[for="chart-mode-line"] {
    background: linear-gradient(135deg, var(--brand), #1ba5c9);
    color: #061216;
    box-shadow: 0 10px 22px rgba(33, 187, 176, .2);
}

.dashboard-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: #fff;
    color: #44546a;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-legend i {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.legend-income {
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(33, 187, 176, .14);
}

.legend-expense {
    background: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, .14);
}

.progress-line {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eef4;
}

.progress-line i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), #19a7cf);
}

.dashboard-split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 16px;
    margin-top: 18px;
}

.dashboard-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.dashboard-quick-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(33, 187, 176, .18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(33, 187, 176, .08), rgba(37, 99, 235, .04)), rgba(255, 255, 255, .86);
    box-shadow: var(--shadow-soft);
}

.dashboard-quick-actions h2 {
    margin: 2px 0 0;
}

.dashboard-latest {
    margin-top: 22px;
}

.grid { display: grid; gap: 16px; min-width: 0; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.card {
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    min-width: 0;
    backdrop-filter: blur(12px);
}

.card h2 {
    color: #111827;
    font-size: 18px;
    letter-spacing: 0;
    font-weight: 720;
}

.profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(240, 253, 250, .86), rgba(239, 246, 255, .88));
}

.profile-hero-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.profile-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid rgba(33, 187, 176, .32);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(33, 187, 176, .22), rgba(37, 99, 235, .16));
    color: #0f172a;
    font-weight: 900;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}

.profile-avatar-large {
    width: 86px;
    height: 86px;
    font-size: 26px;
}

.profile-avatar img,
.employee-portal-avatar img,
.payroll-request-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-hero h2 {
    margin: 6px 0 4px;
    font-size: 28px;
}

.profile-hero p {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
}

.profile-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-readonly-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.profile-readonly-grid > div {
    min-height: 82px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(248, 252, 253, .9), rgba(255, 255, 255, .95));
}

.profile-readonly-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 680;
}

.profile-readonly-grid strong {
    display: block;
    margin-top: 7px;
    overflow-wrap: anywhere;
}

.profile-readonly-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-readonly-wide {
    grid-column: 1 / -1;
}

.profile-security-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 110px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(240, 253, 250, .7), rgba(255, 255, 255, .94));
}

.profile-security-summary p {
    margin: 4px 0 0;
}

.profile-security-icon {
    display: grid;
    flex: 0 0 54px;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 900;
    letter-spacing: 2px;
}

.profile-modal {
    width: min(560px, calc(100vw - 28px));
}

.profile-help-text {
    margin: 14px 0 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 2px 0 0;
}

.section-heading .badge {
    flex: 0 0 auto;
}

.metric {
    font-size: 30px;
    font-weight: 760;
    margin-top: 8px;
    color: #08111f;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .84);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.toolbar.is-filtering {
    opacity: .72;
}

.actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--brand);
    background: linear-gradient(135deg, var(--brand), #19a7cf);
    color: #031f24;
    border-radius: 7px;
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 730;
    box-shadow: 0 12px 24px rgba(33, 187, 176, .22);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.btn:hover {
    background: linear-gradient(135deg, var(--brand-dark), #1d7fbf);
    border-color: var(--brand-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(13, 143, 134, .24);
}

.btn.secondary {
    background: rgba(255, 255, 255, .78);
    color: #116b66;
    box-shadow: none;
}

.btn.secondary:hover {
    background: var(--brand-soft);
    color: #0f524b;
}

.btn.danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
    box-shadow: 0 9px 20px rgba(180, 35, 24, .16);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfefe; }

.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    cursor: pointer;
    font-weight: 650;
}

.link-button:hover {
    color: #0f766e;
}

.link-button.danger {
    color: #b91c1c;
}

.link-button.danger:hover {
    color: #7f1d1d;
}

th {
    color: #526276;
    font-size: 11px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #f8fbfc, #f2f7f8);
    letter-spacing: .05em;
    font-weight: 760;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-type-panel {
    display: grid;
    grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(33, 187, 176, .18);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(33, 187, 176, .08), rgba(37, 99, 235, .04));
}

.account-type-panel .muted {
    padding-bottom: 12px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(33, 187, 176, .18);
    border-radius: 8px;
    background: rgba(33, 187, 176, .05);
}

.checkbox-row input {
    width: auto;
    margin-top: 3px;
}

.checkbox-row small {
    display: block;
    margin-top: 4px;
    line-height: 1.35;
}

.checkbox-row.compact {
    align-items: center;
    padding: 8px 10px;
}

.account-logo-preview {
    align-items: center;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 10px;
    display: flex;
    gap: 12px;
    padding: 10px;
}

.account-logo-preview img {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    height: 46px;
    object-fit: contain;
    padding: 6px;
    width: 70px;
}

.account-form-grid [hidden] {
    display: none !important;
}

.money-movement-card [hidden] {
    display: none !important;
}

.movement-kind-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.movement-kind-option {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 128px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #f8fcfd);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.movement-kind-option:hover {
    border-color: rgba(33, 187, 176, .45);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.movement-kind-option input {
    position: absolute;
    inset: 14px 14px auto auto;
    width: auto;
}

.movement-kind-option:has(input:checked) {
    border-color: var(--brand);
    background: linear-gradient(135deg, rgba(33, 187, 176, .16), rgba(37, 99, 235, .06));
}

.movement-kind-option span {
    max-width: calc(100% - 34px);
    font-size: 18px;
    font-weight: 780;
    color: var(--ink);
}

.movement-kind-option small {
    color: var(--muted);
    line-height: 1.45;
}

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

.details-grid > div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}

.details-grid strong {
    font-weight: 720;
    overflow-wrap: anywhere;
}

.employee-admin-details > div {
    min-height: 76px;
    align-content: center;
    background:
        linear-gradient(135deg, rgba(33, 187, 176, .06), rgba(255, 255, 255, .86));
}

.employee-admin-details-wide {
    grid-column: span 2;
}

.details-logo {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    height: 46px;
    object-fit: contain;
    padding: 6px;
    width: 80px;
}

.admin-timeline-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
}

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

.admin-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 220px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 650;
    color: #1f2937;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, .92);
    color: var(--text);
    font-weight: 520;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(33, 187, 176, .14), 0 12px 28px rgba(15, 23, 42, .07);
}

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

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

.notice {
    background: rgba(230, 250, 248, .88);
    color: #0f524b;
    border: 1px solid #b9efea;
    border-radius: 7px;
    padding: 12px;
    margin-bottom: 16px;
}

.notice.is-danger {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: #ffd0cc;
}

.flash-modal {
    width: min(560px, calc(100vw - 28px));
    border: 1px solid rgba(33, 187, 176, .24);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .98);
    color: var(--text);
    box-shadow: 0 28px 90px rgba(15, 23, 42, .28);
}

.flash-modal::backdrop {
    background: rgba(4, 9, 10, .42);
    backdrop-filter: blur(3px);
}

.flash-modal-mark {
    display: grid;
    place-items: center;
    height: 58px;
    background: linear-gradient(135deg, rgba(33, 187, 176, .18), rgba(37, 99, 235, .08));
    color: var(--brand-dark);
    font-size: 30px;
    font-weight: 900;
}

.flash-modal-error .flash-modal-mark {
    background: linear-gradient(135deg, rgba(255, 241, 240, .98), rgba(255, 248, 237, .92));
    color: var(--danger);
}

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

.flash-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.flash-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.flash-modal-header p {
    margin: 4px 0 0;
    color: var(--muted);
}

.flash-modal-messages {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.flash-modal-message {
    padding: 11px 12px;
    border: 1px solid #b9efea;
    border-radius: 8px;
    background: rgba(230, 250, 248, .88);
    color: #0f524b;
    font-weight: 650;
}

.flash-message-error {
    border-color: #ffd0cc;
    background: var(--danger-soft);
    color: var(--danger);
}

.flash-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.expense-payment-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(33, 187, 176, .18);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(33, 187, 176, .08), rgba(37, 99, 235, .04)),
        rgba(255, 255, 255, .68);
}

.expense-payment-panel[hidden] {
    display: none !important;
}

.expense-payment-panel h2 {
    margin: 0;
    font-size: 18px;
}

.expense-payment-panel p {
    margin: 2px 0 0;
}

.expense-payment-panel .notice {
    margin-bottom: 0;
}

.payroll-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(33, 187, 176, .22);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(33, 187, 176, .08), rgba(37, 99, 235, .04));
}

.payroll-summary div {
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
}

.payroll-summary span {
    display: block;
    color: var(--muted);
}

.payroll-summary strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
}

.payroll-summary strong.is-danger {
    color: var(--danger);
}

.payroll-summary.is-disabled {
    opacity: .58;
}

.bulk-role-shell {
    border: 1px solid rgba(33, 187, 176, .2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.bulk-role-header,
.bulk-role-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px;
}

.bulk-role-header h2 {
    margin: 0;
    font-size: 22px;
}

.bulk-role-header p,
.bulk-role-footer p {
    margin: 4px 0 0;
}

.bulk-role-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 10px;
}

.bulk-role-totals div {
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(33, 187, 176, .08), rgba(37, 99, 235, .04));
}

.bulk-role-totals span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.bulk-role-totals strong {
    display: block;
    margin-top: 3px;
    font-size: 18px;
}

.bulk-role-table-wrap {
    max-height: 66vh;
    overflow: auto;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.bulk-role-table {
    min-width: 1860px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}

.bulk-role-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 10px;
    border-right: 1px solid rgba(15, 23, 42, .1);
    background: #ffe7a3;
    color: #0f172a;
    text-align: center;
    white-space: nowrap;
}

.bulk-role-table td {
    padding: 8px;
    border-right: 1px solid rgba(15, 23, 42, .08);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    vertical-align: middle;
    white-space: nowrap;
}

.bulk-role-table .sticky-col {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fff8df;
}

.bulk-role-table tbody .sticky-col {
    z-index: 1;
}

.bulk-role-table .name-col {
    min-width: 250px;
    white-space: normal;
}

.bulk-role-table input {
    min-height: 38px;
    width: 116px;
    border-radius: 8px;
    padding: 8px 9px;
    text-align: right;
}

.bulk-role-table input.is-readonly,
.bulk-role-table input[readonly] {
    border-color: rgba(100, 116, 139, .18);
    background: rgba(241, 245, 249, .86);
    color: #475569;
    cursor: not-allowed;
}

.bulk-role-table input[type="checkbox"] {
    width: 18px;
    min-height: auto;
}

.bulk-role-table td:last-child input {
    width: 210px;
    text-align: left;
}

.bulk-role-table .calc-cell {
    min-width: 112px;
    text-align: right;
    font-weight: 700;
    background: rgba(33, 187, 176, .06);
}

.bulk-role-table .strong {
    font-weight: 900;
}

.bulk-role-table .is-danger {
    color: var(--danger);
}

.bulk-role-table tr.is-locked {
    opacity: .58;
}

.mini-badge {
    display: inline-flex;
    margin-left: 8px;
    padding: 3px 7px;
    border: 1px solid rgba(100, 116, 139, .24);
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
}

.bulk-role-actions {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) minmax(180px, 1fr) 150px auto auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(135deg, rgba(33, 187, 176, .08), rgba(37, 99, 235, .04));
}

.bulk-role-actions strong,
.bulk-role-actions span {
    display: block;
}

.compact-input {
    min-width: 120px;
    height: 42px;
    padding: 8px 10px;
}

.payroll-review-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.payroll-review-summary article {
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-soft);
}

.payroll-review-summary span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
    text-transform: uppercase;
}

.payroll-review-summary strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: 28px;
    line-height: 1.1;
}

.payroll-review-summary .is-warning {
    border-color: rgba(245, 158, 11, .28);
    background: linear-gradient(135deg, rgba(255, 247, 237, .9), rgba(255, 255, 255, .94));
}

.payroll-review-summary .is-ok {
    border-color: rgba(34, 197, 94, .26);
    background: linear-gradient(135deg, rgba(240, 253, 244, .9), rgba(255, 255, 255, .94));
}

.payroll-review-summary .is-info {
    border-color: rgba(33, 187, 176, .28);
    background: linear-gradient(135deg, rgba(240, 253, 250, .9), rgba(255, 255, 255, .94));
}

.payroll-review-summary .is-muted {
    opacity: .86;
}

.payroll-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(auto-fit, minmax(150px, 1fr));
    align-items: end;
}

.payroll-request-board {
    display: grid;
    gap: 12px;
}

.payroll-request-card {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-soft);
}

.payroll-request-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) minmax(260px, 1fr) minmax(120px, auto) auto;
    gap: 14px;
    align-items: center;
}

.payroll-request-person {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.payroll-request-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #2563eb);
    color: #fff;
    font-weight: 900;
}

.payroll-request-name {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payroll-request-info {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.payroll-request-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.payroll-request-title a {
    color: var(--text);
    font-size: 18px;
    font-weight: 850;
}

.payroll-request-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.payroll-request-tags span {
    padding: 4px 8px;
    border: 1px solid rgba(33, 187, 176, .22);
    border-radius: 999px;
    background: rgba(240, 253, 250, .72);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 760;
}

.payroll-request-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: baseline;
}

.payroll-request-line strong {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payroll-request-line span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.payroll-request-status {
    display: grid;
    gap: 4px;
    justify-items: start;
}

.payroll-request-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.payroll-request-detail div {
    padding: 11px 12px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(248, 252, 253, .9), rgba(255, 255, 255, .96));
}

.payroll-request-detail span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 720;
}

.payroll-request-detail strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.payroll-request-note {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(241, 245, 249, .72);
}

.payroll-request-note p {
    margin: 0;
    color: var(--muted);
}

.payroll-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.payroll-request-actions form {
    display: flex;
    flex: 1 1 320px;
    gap: 8px;
    align-items: center;
}

.payroll-request-actions input {
    min-width: 180px;
}

.payroll-roles-card {
    padding: 0;
    overflow: hidden;
}

.payroll-selection-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(248, 252, 253, .74);
}

.field-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.field-action-row label {
    margin: 0;
}

.btn.compact {
    min-height: 48px;
    padding-inline: 14px;
    white-space: nowrap;
}

.quick-modal {
    width: min(720px, calc(100vw - 32px));
    border: 1px solid rgba(33, 187, 176, .22);
    border-radius: 10px;
    padding: 22px;
    background: rgba(255, 255, 255, .98);
    color: var(--text);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}

.quick-modal::backdrop {
    background: rgba(4, 9, 10, .42);
    backdrop-filter: blur(3px);
}

.quick-modal-header,
.quick-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.quick-modal-header {
    margin-bottom: 18px;
}

.quick-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.quick-modal-header p {
    margin: 4px 0 0;
}

.quick-modal-actions {
    justify-content: flex-end;
    align-items: center;
    margin-top: 16px;
}

.warning-detail-modal,
.request-detail-modal {
    max-width: min(860px, calc(100vw - 28px));
}

.warning-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.warning-detail-grid > div,
.warning-detail-section {
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, .72);
}

.warning-detail-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.warning-detail-section {
    margin-top: 12px;
}

.warning-detail-section h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.warning-detail-section p {
    margin: 0 0 8px;
}

.request-review-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.request-review-actions form {
    display: grid;
    gap: 10px;
}

.quick-error {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #ffd0cc;
    border-radius: 7px;
    background: var(--danger-soft);
    color: var(--danger);
    font-weight: 700;
}

.employee-portal-shell {
    display: grid;
    gap: 18px;
    max-width: 1380px;
    margin: 0 auto;
}

.employee-portal-hero {
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    min-height: 230px;
    padding: 30px;
    border: 1px solid rgba(33, 187, 176, .18);
    border-radius: 14px;
    background:
        radial-gradient(circle at 82% 18%, rgba(33, 187, 176, .24), transparent 34%),
        linear-gradient(135deg, rgba(33, 187, 176, .18), rgba(37, 99, 235, .08) 52%, rgba(255, 255, 255, .5)),
        rgba(255, 255, 255, .9);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .09);
}

.employee-portal-hero::after {
    content: "";
    position: absolute;
    right: 28px;
    bottom: -54px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(33, 187, 176, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .34);
}

.employee-portal-hero > * {
    position: relative;
    z-index: 1;
}

.employee-portal-hero-copy {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}

.employee-portal-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    border: 1px solid rgba(33, 187, 176, .34);
    border-radius: 50%;
    background: rgba(255, 255, 255, .68);
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}

.employee-portal-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px;
    border: 1px solid rgba(33, 187, 176, .18);
    border-radius: 14px;
    background:
        radial-gradient(circle at 92% 8%, rgba(33, 187, 176, .18), transparent 30%),
        linear-gradient(135deg, rgba(33, 187, 176, .12), rgba(255, 255, 255, .9));
    box-shadow: var(--shadow-soft);
}

.employee-portal-page-head h1 {
    margin: 7px 0 6px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
}

.employee-portal-page-head p {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
}

.employee-portal-hero h1 {
    max-width: 760px;
    margin: 8px 0 10px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: .98;
    letter-spacing: 0;
}

.employee-portal-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    font-weight: 680;
}

.employee-portal-greeting {
    max-width: 640px;
}

.employee-portal-role {
    margin-top: 8px !important;
    font-size: 15px !important;
    color: #566783 !important;
}

.employee-portal-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.employee-notifications {
    position: relative;
}

.employee-notifications[open] {
    z-index: 90;
}

.employee-notifications summary {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(33, 187, 176, .28);
    border-radius: 14px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    list-style: none;
}

.employee-notifications summary::-webkit-details-marker {
    display: none;
}

.employee-notifications[open] summary,
.employee-notifications summary:hover {
    border-color: rgba(33, 187, 176, .52);
    background: var(--brand-soft);
}

.employee-notification-icon {
    display: grid;
    place-items: center;
    color: var(--brand-dark);
}

.employee-notification-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.employee-notification-count {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #f59e0b;
    color: #3b2500;
    font-size: 11px;
    font-weight: 850;
}

.employee-notification-panel {
    position: fixed;
    top: 148px;
    right: 44px;
    z-index: 100;
    width: min(340px, calc(100vw - 36px));
    max-height: min(420px, calc(100vh - 174px));
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
}

.employee-notification-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 8px 10px;
    border-bottom: 1px solid var(--line-soft);
}

.employee-notification-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.employee-notification-item {
    position: relative;
    display: grid;
    gap: 3px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(240, 253, 250, .72), rgba(255, 255, 255, .94));
    color: var(--ink);
}

.employee-notification-item.is-unread {
    border-color: rgba(33, 187, 176, .5);
    background: linear-gradient(135deg, rgba(204, 251, 241, .74), rgba(255, 255, 255, .96));
}

.employee-notification-item.is-unread::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 13px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(33, 187, 176, .14);
}

.employee-notification-item.is-read {
    opacity: .72;
}

.employee-notification-item:hover {
    border-color: rgba(33, 187, 176, .34);
    color: var(--ink);
}

.employee-notification-item span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 680;
}

.employee-notification-state {
    width: fit-content;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(100, 116, 139, .1);
    color: #475569 !important;
    font-size: 10px !important;
    text-transform: uppercase;
}

.employee-notification-item.is-unread .employee-notification-state {
    background: rgba(33, 187, 176, .14);
    color: var(--brand-dark) !important;
}

.employee-notification-item strong {
    font-size: 13px;
}

.employee-notification-item.is-warning {
    background: linear-gradient(135deg, rgba(255, 247, 237, .9), rgba(255, 255, 255, .96));
}

.employee-notification-empty {
    padding: 18px 10px 10px;
    color: var(--muted);
    font-weight: 650;
    text-align: center;
}

.employee-empty-state {
    display: grid;
    gap: 6px;
    justify-items: center;
    min-height: 118px;
    padding: 24px;
    border: 1px dashed rgba(33, 187, 176, .32);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(240, 253, 250, .74), rgba(255, 255, 255, .92));
    color: var(--muted);
    text-align: center;
}

.employee-empty-state::before {
    content: "";
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(33, 187, 176, .28), rgba(37, 99, 235, .16));
}

.employee-empty-state strong {
    color: var(--text);
    font-size: 16px;
}

.employee-empty-state span {
    max-width: 420px;
    font-size: 13px;
    font-weight: 650;
}

.employee-empty-state.compact {
    min-height: 86px;
    padding: 14px;
    align-content: center;
    justify-items: start;
    text-align: left;
}

.employee-empty-state.compact::before {
    display: none;
}

.employee-portal-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.employee-portal-kpis article,
.employee-portal-card {
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.employee-portal-kpis article {
    position: relative;
    overflow: hidden;
    min-height: 138px;
    padding: 20px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.employee-portal-kpis article:hover {
    transform: translateY(-2px);
    border-color: rgba(33, 187, 176, .24);
    box-shadow: 0 22px 46px rgba(15, 23, 42, .08);
}

.employee-portal-kpis article::after {
    content: "";
    position: absolute;
    inset: auto 18px 14px 18px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), #2563eb);
    opacity: .75;
}

.employee-portal-kpis span,
.employee-detail-list span,
.employee-request-date span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 720;
}

.employee-portal-kpis strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: 26px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.employee-portal-kpis small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.employee-portal-grid {
    display: grid;
    grid-template-columns: minmax(300px, .85fr) minmax(0, 1.4fr);
    gap: 18px;
}

.employee-portal-card {
    padding: 22px;
}

.employee-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.employee-detail-list div {
    min-height: 72px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(248, 252, 253, .86), rgba(255, 255, 255, .92));
}

.employee-detail-list strong {
    display: block;
    margin-top: 7px;
    overflow-wrap: anywhere;
}

.employee-recent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.employee-recent-block {
    display: grid;
    gap: 10px;
}

.employee-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.employee-recent-head strong {
    font-size: 14px;
}

.employee-recent-head a {
    font-size: 12px;
}

.employee-recent-list {
    display: grid;
    gap: 8px;
}

.employee-recent-item,
.employee-recent-empty {
    display: grid;
    gap: 3px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(248, 252, 253, .9), rgba(255, 255, 255, .96));
}

.employee-recent-item:hover {
    border-color: rgba(33, 187, 176, .36);
    background: linear-gradient(135deg, rgba(221, 248, 246, .62), rgba(255, 255, 255, .96));
}

.employee-recent-item span,
.employee-recent-item small,
.employee-recent-empty {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.employee-recent-item strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

.employee-income-card {
    overflow: hidden;
}

.employee-income-filters {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) repeat(4, minmax(130px, 170px)) auto;
    gap: 10px;
    align-items: end;
    margin: 14px 0 18px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(240, 253, 250, .62), rgba(255, 255, 255, .9));
}

.employee-income-filters label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 720;
}

.employee-income-filters [hidden] {
    display: none !important;
}

.employee-income-line-wrap {
    display: grid;
    gap: 10px;
    padding: 12px 4px 2px;
}

.employee-income-line {
    width: 100%;
    height: 260px;
    overflow: visible;
}

.employee-income-line line {
    stroke: rgba(148, 163, 184, .22);
    stroke-width: .35;
    vector-effect: non-scaling-stroke;
}

.employee-income-line polyline {
    fill: none;
    stroke: var(--brand);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 8px 12px rgba(33, 187, 176, .2));
}

.employee-income-line circle {
    fill: #2563eb;
    stroke: #fff;
    stroke-width: .9;
    vector-effect: non-scaling-stroke;
}

.employee-income-axis {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.employee-income-axis span {
    min-width: fit-content;
}

.employee-income-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.employee-income-point {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(248, 252, 253, .9), rgba(255, 255, 255, .96));
}

.employee-income-point:hover {
    border-color: rgba(33, 187, 176, .36);
}

.employee-income-point span,
.employee-income-point small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.employee-income-point strong {
    color: var(--text);
}

.employee-mini-table {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.employee-mini-table-head,
.employee-mini-row {
    display: grid;
    grid-template-columns: minmax(90px, .8fr) minmax(110px, 1fr) minmax(120px, 1fr);
    gap: 12px;
    align-items: center;
}

.employee-mini-table-head {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.employee-mini-table-head a {
    justify-self: end;
}

.employee-mini-row {
    padding: 11px 12px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(248, 252, 253, .9), rgba(255, 255, 255, .96));
}

.employee-mini-row:hover {
    border-color: rgba(33, 187, 176, .36);
}

.employee-mini-row span,
.employee-mini-row small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.employee-detail-modal {
    max-width: 780px;
}

.employee-detail-note {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 8px;
    background: rgba(248, 252, 253, .86);
}

.employee-detail-note span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.employee-detail-note p {
    margin: 0;
    color: var(--text);
    font-weight: 650;
}

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

.payroll-sheet {
    max-width: 980px;
    margin: 0 auto;
    padding: 58px 64px 70px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .12);
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
}

.payroll-sheet strong {
    font-weight: 800;
}

.payroll-doc-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 3px solid #111;
}

.payroll-logo {
    width: 118px;
    height: 118px;
    object-fit: contain;
    border-radius: 999px;
}

.payroll-company {
    text-align: right;
    font-weight: 700;
}

.payroll-company a {
    display: block;
    margin: 8px 0;
    color: #0f5bd7;
    text-decoration: underline;
}

.payroll-title {
    margin: 24px 0 26px;
    text-align: center;
    font-weight: 900;
    letter-spacing: .02em;
}

.payroll-info-grid,
.payroll-payment-grid,
.payroll-rubrics,
.payroll-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.payroll-info-grid {
    gap: 48px;
    margin-bottom: 38px;
}

.payroll-line {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 14px;
    margin: 7px 0;
}

.payroll-section-title {
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 3px solid #111;
    font-weight: 900;
}

.payroll-rubrics {
    gap: 74px;
    margin-bottom: 28px;
}

.payroll-money-row,
.payroll-total-row,
.payroll-net-row {
    display: grid;
    gap: 14px;
}

.payroll-money-row,
.payroll-total-row {
    grid-template-columns: 1fr 110px;
}

.payroll-money-row {
    margin: 9px 0;
}

.payroll-total-row {
    margin-top: 28px;
    font-weight: 900;
}

.payroll-money-row span:last-child,
.payroll-total-row span:last-child,
.payroll-net-row span:last-child {
    text-align: right;
}

.payroll-net-row {
    grid-template-columns: 1fr 140px;
    margin: 22px 0 36px;
    padding: 7px 0;
    border-top: 3px solid #111;
    border-bottom: 2px solid #111;
    font-weight: 900;
    text-align: right;
}

.payroll-payment-grid {
    gap: 58px;
    margin-bottom: 42px;
}

.payroll-signatures {
    gap: 160px;
    align-items: end;
    margin-top: 56px;
}

.payroll-signature {
    text-align: center;
}

.payroll-signature-line {
    min-height: 28px;
    padding-top: 9px;
    border-top: 1px solid #111;
}

.employee-income-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    align-items: end;
    gap: 14px;
    min-height: 230px;
    padding: 16px 4px 4px;
}

.employee-income-bar {
    display: grid;
    gap: 8px;
    justify-items: center;
    min-width: 0;
}

.employee-income-track {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: 82px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(226, 232, 240, .72), rgba(248, 250, 252, .95));
}

.employee-income-track span {
    display: block;
    width: 100%;
    min-height: 8px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--brand), #2563eb);
    box-shadow: 0 -10px 24px rgba(33, 187, 176, .18);
}

.employee-income-bar strong {
    color: var(--text);
    font-size: 13px;
    text-align: center;
}

.employee-income-bar small {
    color: var(--muted);
    font-weight: 650;
}

.employee-portal-card table {
    box-shadow: none;
}

.employee-support-upload {
    display: grid;
    gap: 8px;
    min-width: 190px;
    margin-top: 8px;
}

.employee-support-upload input {
    padding: 8px;
}

.employee-request-modal {
    width: min(760px, calc(100vw - 28px));
}

.employee-request-modal [data-section][hidden] {
    display: none !important;
}

.employee-request-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(33, 187, 176, .2);
    border-radius: 9px;
    background: var(--brand-soft);
}

.employee-request-date strong {
    color: var(--brand-dark);
}

.employee-request-period {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(33, 187, 176, .18);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(240, 253, 250, .78), rgba(255, 255, 255, .92));
}

.employee-request-period-recovery {
    border-color: rgba(37, 99, 235, .18);
    background: linear-gradient(135deg, rgba(239, 246, 255, .86), rgba(255, 255, 255, .94));
}

.employee-request-period-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.employee-request-period-header span {
    color: var(--ink);
    font-size: 15px;
    font-weight: 780;
}

.employee-request-period-header small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    text-align: right;
}

.employee-request-datetime-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.employee-request-datetime {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(104px, .75fr);
    gap: 10px;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    color: var(--muted);
    cursor: pointer;
    font-weight: 800;
}

.icon-button:hover {
    color: var(--text);
    border-color: rgba(33, 187, 176, .45);
}

.pagination-wrap {
    margin-top: 16px;
}

.errors {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid #ffd0cc;
    border-radius: 7px;
    padding: 12px;
    margin-bottom: 16px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-soft), #eef5ff);
    color: #116b66;
    border: 1px solid rgba(33, 187, 176, .18);
}

.badge.status-ok,
.pay-status.status-ok {
    background: #dcfae6;
    color: #05603a;
    border-color: #86efac;
}

.badge.status-warning,
.pay-status.status-warning {
    background: #fff4df;
    color: #9a4b00;
    border-color: #fdba74;
}

.badge.status-error,
.pay-status.status-error {
    background: #fff1f0;
    color: #b42318;
    border-color: #fda29b;
}

.badge.status-muted,
.pay-status.status-muted {
    background: #f2f4f7;
    color: #475467;
    border-color: #d0d5dd;
}

.badge.status-info,
.pay-status.status-info {
    background: linear-gradient(135deg, var(--brand-soft), #eef5ff);
    color: #116b66;
    border-color: rgba(33, 187, 176, .22);
}

.pagination-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.pagination-summary {
    color: var(--muted);
    font-size: 13px;
    font-weight: 620;
}

.pagination-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.pagination-button {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(33, 187, 176, .34);
    border-radius: 8px;
    background: #fff;
    color: #0f766e;
    font-size: 13px;
    font-weight: 760;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.pagination-button:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: #064e49;
}

.pagination-button.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), #19a7cf);
    color: #031f24;
    box-shadow: 0 12px 24px rgba(33, 187, 176, .18);
}

.pagination-button.disabled {
    border-color: var(--line-soft);
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.pagination-button.muted {
    min-width: 30px;
    border-color: transparent;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
}

.pagination-nav svg {
    width: 16px;
    height: 16px;
}

.settings-shell {
    display: grid;
    gap: 16px;
}

.settings-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.settings-tab {
    flex: 0 0 auto;
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 8px 12px;
    background: transparent;
    color: #344054;
    cursor: pointer;
    font-weight: 680;
}

.settings-tab:hover {
    background: #f7fbfb;
}

.settings-tab.is-active {
    border-color: var(--brand);
    background: linear-gradient(135deg, var(--brand-soft), #eef5ff);
    color: #0f524b;
}

.payroll-tabs {
    margin-bottom: 18px;
}

.settings-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 18px;
    padding: 6px;
    border: 1px solid rgba(33, 187, 176, .18);
    border-radius: 8px;
    background: rgba(242, 251, 250, .62);
}

.settings-subtab {
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 7px 11px;
    background: transparent;
    color: #475467;
    cursor: pointer;
    font-size: 14px;
    font-weight: 680;
}

.settings-subtab:hover {
    background: rgba(255, 255, 255, .82);
    color: #0f524b;
}

.settings-subtab.is-active {
    border-color: rgba(33, 187, 176, .55);
    background: #fff;
    color: #0f524b;
    box-shadow: 0 8px 22px rgba(33, 187, 176, .12);
}

.settings-panel {
    display: none;
}

.settings-panel.is-active {
    display: block;
}

.settings-panel-header,
.settings-provider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.settings-panel-header h2,
.settings-provider-header h3 {
    margin: 0;
}

.settings-panel-header p {
    margin: 4px 0 0;
}

.settings-provider-grid {
    display: grid;
    gap: 16px;
}

.settings-test-mail {
    align-items: center;
    background: linear-gradient(135deg, rgba(50, 203, 196, .12), rgba(255, 255, 255, .92));
    border: 1px solid rgba(31, 186, 181, .28);
    border-radius: 14px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 22px;
    padding: 18px;
}

.settings-test-mail h3 {
    margin: 0 0 4px;
}

.settings-subpanel {
    display: none;
}

.settings-subpanel.is-active {
    display: block;
}

.settings-provider {
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(251, 254, 254, .84);
}

.settings-datil {
    display: grid;
    gap: 16px;
}

.settings-datil-card {
    display: grid;
    grid-template-columns: minmax(220px, .95fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-soft);
}

.settings-datil-card h3 {
    margin: 0 0 6px;
    color: #0b1220;
    font-size: 15px;
    font-weight: 760;
}

.settings-datil-card p {
    margin: 0;
}

.settings-datil-form {
    display: grid;
    gap: 14px;
}

.settings-datil-form label,
.settings-datil-form .full {
    grid-column: auto;
}

.settings-datil-note {
    padding: 14px 16px;
    border: 1px dashed #c9cce0;
    border-radius: 8px;
    background: #f3f4fb;
    color: #111827;
    font-size: 13px;
    line-height: 1.55;
}

.settings-datil-note.compact {
    display: grid;
    gap: 4px;
}

.settings-datil-action {
    width: fit-content;
    min-width: 108px;
    min-height: 38px;
    padding-inline: 16px;
}

.finance-chart {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(34px, 1fr);
    align-items: end;
    gap: 10px;
    min-height: 210px;
    overflow-x: auto;
    padding: 18px 6px 4px;
}

.dashboard-chart-panel .finance-chart {
    min-height: 240px;
    padding: 22px 8px 6px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(248, 252, 253, .94), rgba(255, 255, 255, .88));
}

.dashboard-chart-panel .finance-bars {
    height: 170px;
    border-bottom-color: #dbe7ee;
}

.dashboard-chart-panel .finance-bar {
    width: 16px;
}

.finance-line-chart {
    display: none;
    min-height: 240px;
    padding: 22px 8px 6px;
    overflow-x: auto;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(248, 252, 253, .94), rgba(255, 255, 255, .88));
}

.finance-line-chart svg {
    display: block;
    width: max(100%, 980px);
    height: 210px;
    overflow: visible;
}

.chart-axis {
    stroke: #dbe7ee;
    stroke-width: 1;
}

.chart-line {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 8px 12px rgba(15, 118, 110, .16));
}

.chart-line.income {
    stroke: var(--brand);
}

.chart-line.expense {
    stroke: #fb7185;
    filter: drop-shadow(0 8px 12px rgba(244, 63, 94, .14));
}

.chart-dot {
    stroke: #fff;
    stroke-width: 3;
}

.chart-dot.income {
    fill: var(--brand);
}

.chart-dot.expense {
    fill: #fb7185;
}

.finance-line-labels {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(34px, 1fr);
    gap: 10px;
    width: max(100%, 980px);
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

#chart-mode-line:checked ~ .finance-chart-bars {
    display: none;
}

#chart-mode-line:checked ~ .finance-line-chart {
    display: block;
}

.finance-day {
    display: grid;
    align-items: end;
    gap: 8px;
    min-width: 34px;
}

.finance-bars {
    height: 158px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    padding: 0 2px;
    border-bottom: 1px solid var(--line-soft);
}

.finance-bar {
    display: block;
    width: 10px;
    min-height: 4px;
    border-radius: 6px 6px 2px 2px;
}

.finance-bar.income {
    background: linear-gradient(180deg, var(--brand), #0f766e);
    box-shadow: 0 0 12px rgba(33, 187, 176, .28);
}

.finance-bar.expense {
    background: linear-gradient(180deg, #fb7185, #b42318);
    box-shadow: 0 0 12px rgba(244, 63, 94, .2);
}

.finance-label {
    color: var(--muted);
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
}

.checkout-page {
    min-height: 100vh;
    padding: 28px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--brand) 12%, white), #f6f8fa 320px),
        #f6f8fa;
}

.checkout-shell {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.checkout-hero,
.checkout-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.checkout-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 999px;
    background: #050607;
}

.checkout-brand span,
.checkout-summary p,
.checkout-total span {
    display: block;
    color: var(--muted);
}

.checkout-status,
.checkout-total {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.checkout-status strong,
.checkout-total strong {
    font-size: 26px;
    color: #0f172a;
}

.checkout-summary {
    padding: 22px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow);
}

.checkout-summary h1 {
    margin: 0 0 6px;
    font-size: 30px;
}

.checkout-bank {
    white-space: pre-wrap;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #f8fbfb;
}

.checkout-footer {
    color: var(--muted);
    text-align: center;
    padding: 24px 0 4px;
}

.pay-page {
    min-height: 100vh;
    padding: 24px;
    background: #f8fafc;
    color: #242329;
}

.pay-shell {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 8px 0 28px;
}

.pay-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

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

.pay-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
}

.pay-brand strong,
.pay-brand span,
.pay-status {
    display: block;
    color: #2a2930;
    font-size: 12px;
    font-weight: 520;
    line-height: 1.35;
}

.pay-brand span {
    color: #676a72;
}

.pay-status {
    padding-top: 4px;
    text-align: right;
    letter-spacing: .02em;
}

.pay-status.status-ok,
.pay-status.status-warning,
.pay-status.status-error,
.pay-status.status-muted,
.pay-status.status-info {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border: 1px solid;
    border-radius: 999px;
    font-weight: 700;
}

.pay-amount {
    display: grid;
    justify-items: center;
    gap: 0;
    padding: 18px 0 16px;
}

.pay-amount span {
    color: #5c5f68;
    font-size: 14px;
    font-weight: 560;
}

.pay-amount strong {
    color: #252429;
    font-size: clamp(60px, 17vw, 86px);
    font-weight: 430;
    line-height: .98;
    letter-spacing: 0;
}

.pay-amount small {
    margin-top: 8px;
    color: #8a8f98;
    font-size: 12px;
}

.pay-receipt {
    display: grid;
    gap: 22px;
    padding: 30px 0 4px;
    text-align: center;
}

.pay-receipt h2 {
    margin: 0;
    color: #545963;
    font-size: 28px;
    font-weight: 520;
}

.pay-receipt p {
    margin: 0 auto;
    max-width: 430px;
    color: #5f636d;
    font-size: 18px;
    line-height: 1.45;
}

.pay-receipt p strong {
    color: #363942;
    font-weight: 620;
}

.pay-receipt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 42px;
    padding: 28px 4px;
    border-top: 1px solid rgba(15, 23, 42, .12);
    border-bottom: 1px solid rgba(15, 23, 42, .12);
    text-align: left;
}

.pay-receipt-grid div {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.pay-receipt-grid span {
    color: #111827;
    font-size: 14px;
    font-weight: 760;
}

.pay-receipt-grid strong {
    color: #30323a;
    font-size: 14px;
    font-weight: 460;
    overflow-wrap: anywhere;
}

.pay-receipt-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
}

.pay-pending-note {
    margin-top: -4px !important;
    color: #0f766e !important;
    font-size: 14px !important;
}

.pay-auto-check {
    justify-self: center;
    width: fit-content;
    max-width: 100%;
    margin-top: -8px;
    padding: 8px 12px;
    border: 1px solid rgba(33, 187, 176, .24);
    border-radius: 999px;
    background: rgba(221, 248, 246, .66);
    color: #116b66;
    font-size: 12px;
    font-weight: 720;
}

.pay-receipt-actions .btn[disabled],
.pay-receipt-actions .btn[disabled]:hover {
    border-color: var(--line);
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
    transform: none;
}

.pay-form,
.pay-methods {
    display: grid;
    gap: 10px;
}

.pay-form [hidden] {
    display: none !important;
}

.pay-section-label {
    color: #344054;
    font-size: 13px;
    font-weight: 760;
}

.pay-document-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 0;
    padding: 3px;
    border: 1px solid rgba(33, 187, 176, .22);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
}

.pay-document-tabs:has(label:only-child) {
    grid-template-columns: 1fr;
}

.pay-document-tabs label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #344054;
    font-size: 14px;
    font-weight: 740;
    padding: 6px 10px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.pay-document-tabs input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pay-document-tabs label:has(input:checked) {
    background: rgba(33, 187, 176, .16);
    border-color: rgba(33, 187, 176, .78);
    color: #0f766e;
    box-shadow: 0 10px 24px rgba(33, 187, 176, .12);
}

.pay-document-tabs label:hover {
    background: rgba(33, 187, 176, .08);
    border-color: rgba(33, 187, 176, .28);
}

.pay-document-tabs label span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.pay-document-tabs label::before {
    content: "";
    width: 9px;
    height: 9px;
    border: 2px solid #98a2b3;
    border-radius: 999px;
    background: #fff;
    flex: 0 0 auto;
}

.pay-document-tabs label:has(input:checked)::before {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: inset 0 0 0 2px #fff;
    accent-color: var(--brand);
}

.pay-validation {
    min-height: 16px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 660;
    padding-left: 2px;
}

.pay-validation.is-ok {
    color: #047d73;
}

.pay-validation.is-error {
    color: #b42318;
}

.pay-form-alert {
    background: #fff1f0;
    border: 1px solid #f3aaa4;
    border-radius: 12px;
    color: #b42318;
    font-size: 13px;
    font-weight: 650;
    padding: 10px 12px;
    text-align: center;
}

.pay-lookup-message {
    min-height: 17px;
    color: #667085;
    font-size: 11px;
    font-weight: 520;
}

.pay-lookup-message.is-ok {
    color: #047d73;
}

.pay-lookup-message.is-error {
    color: #b42318;
}

.pay-field {
    display: grid;
    gap: 4px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.pay-field input,
.pay-field select,
.pay-field textarea {
    min-height: 40px;
    border-radius: 12px;
    border-color: #cfd8e3;
    background: #fff;
    color: #101828;
    padding: 8px 12px;
    box-shadow: none;
}

.pay-field input:focus,
.pay-field select:focus,
.pay-field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(33, 187, 176, .12);
}

.pay-field.is-invalid > input,
.pay-field.is-invalid > select,
.pay-field.is-invalid textarea,
.pay-field.is-invalid .pay-country-select select,
.pay-field.is-invalid .pay-phone-combo input {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .12);
}

.pay-field.is-invalid > span,
.pay-field.is-invalid [data-first-name-label],
.pay-field.is-invalid [data-last-name-label],
.pay-field.is-invalid [data-region-label] {
    color: #b42318;
    font-weight: 700;
}

.pay-two {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: 12px;
}

.pay-foreign-doc-row {
    align-items: start;
}

.pay-foreign-doc-row .pay-field input,
.pay-foreign-doc-row .pay-field select {
    height: 50px;
    min-height: 50px;
}

.pay-contact-fields {
    display: grid;
    gap: 10px;
}

.pay-phone-combo {
    display: grid;
    grid-template-columns: minmax(122px, 160px) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.pay-phone-combo:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(33, 187, 176, .12);
}

.pay-country-select {
    position: relative;
}

.pay-country-native {
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.pay-country-select select {
    padding-left: 44px;
    width: 100%;
}

.pay-country-combo {
    position: relative;
}

.pay-country-trigger {
    align-items: center;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    color: #101828;
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 12px;
    min-height: 50px;
    padding: 8px 42px 8px 14px;
    position: relative;
    text-align: left;
    width: 100%;
}

.pay-country-trigger::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    height: 8px;
    position: absolute;
    right: 16px;
    top: calc(50% - 6px);
    transform: rotate(45deg);
    width: 8px;
}

.pay-country-trigger:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(33, 187, 176, .12);
    outline: 0;
}

.pay-country-trigger strong,
.pay-country-option strong {
    font-weight: 700;
}

.pay-country-menu {
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(16, 24, 40, .16);
    display: grid;
    gap: 2px;
    left: 0;
    max-height: 320px;
    overflow: auto;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
}

.pay-country-option {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #101828;
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 12px;
    min-height: 38px;
    padding: 7px 10px;
    text-align: left;
    width: 100%;
}

.pay-country-option:hover,
.pay-country-option[aria-selected="true"] {
    background: #e9fbf9;
    color: #047d73;
}

.pay-country-flag {
    align-items: center;
    display: none;
    height: 100%;
    left: 12px;
    pointer-events: none;
    position: absolute;
    top: 0;
    z-index: 1;
}

.country-flag-icon {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(16, 24, 40, .14);
    display: inline-block;
    flex: 0 0 auto;
    height: 18px;
    object-fit: cover;
    vertical-align: -3px;
    width: 24px;
}

.country-flag-fallback {
    display: inline-flex;
    width: 24px;
}

.pay-phone-prefix,
.pay-phone-combo input {
    width: 100%;
}

.pay-phone-prefix {
    align-items: center;
    background: #f3f8fa;
    border: 0;
    border-right: 1px solid #e1e8f0;
    color: #344054;
    display: flex;
    gap: 8px;
    font-weight: 650;
    min-height: 40px;
    padding: 8px 12px;
    pointer-events: none;
}

.pay-phone-combo input {
    border: 0;
    border-radius: 0;
    min-height: 40px;
}

.pay-phone-combo input:focus {
    box-shadow: none;
}

.pay-actions.compact {
    margin-top: 2px;
}

.pay-mini-status {
    color: #13847c;
    font-size: 12px;
    font-weight: 650;
}

.pay-methods {
    margin-top: 16px;
    gap: 10px;
}

.pay-method-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 10px;
}

.pay-method-tabs form {
    min-width: 0;
}

.pay-method-tabs button {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(15, 23, 42, .1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .92));
    color: #1f2937;
    border-radius: 14px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 720;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.pay-method-tabs img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.pay-method-tabs button.is-active,
.pay-method-tabs button:hover {
    border-color: var(--brand);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 92%, #fff), color-mix(in srgb, var(--brand) 72%, #08a9d6));
    color: #06272b;
    box-shadow: 0 14px 34px rgba(33, 187, 176, .24);
    transform: translateY(-1px);
}

.pay-method-tabs.is-locked button {
    opacity: .52;
    cursor: not-allowed;
    filter: grayscale(.3);
}

.pay-method-tabs.is-locked button:hover {
    border-color: rgba(15, 23, 42, .1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .92));
    color: #1f2937;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    transform: none;
}

.pay-method-panel {
    min-height: 136px;
    display: grid;
    align-content: center;
    gap: 12px;
    border: 1px solid rgba(33, 187, 176, .16);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(251, 254, 254, .94));
    padding: 24px;
    text-align: center;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .08);
}

.pay-method-panel.is-locked {
    border-color: rgba(33, 187, 176, .28);
    background: linear-gradient(135deg, rgba(33, 187, 176, .08), #fff);
    color: #4b5563;
}

.pay-method-panel p {
    margin: 0;
    color: #363840;
}

.pay-method-panel form {
    display: grid;
    gap: 12px;
}

.pay-bank {
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    background: #f8fafc;
    color: #30323a;
    white-space: pre-wrap;
    text-align: left;
}

.pay-bank-choice {
    display: grid;
    gap: 10px;
    text-align: left;
}

.pay-bank-choice > span {
    color: #1f2937;
    font-size: 14px;
    font-weight: 650;
    text-align: center;
}

.pay-bank-options {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.pay-bank-option {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 9px;
    min-height: 52px;
    padding: 9px 10px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.pay-bank-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pay-bank-option:has(input:checked) {
    background: linear-gradient(135deg, rgba(33, 187, 176, .12), rgba(255, 255, 255, .98));
    border-color: var(--brand);
    box-shadow: 0 14px 30px rgba(33, 187, 176, .18);
}

.pay-bank-option:focus-within,
.pay-bank-option:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.pay-bank-logo {
    align-items: center;
    background: linear-gradient(135deg, #ecfeff, #e0f2fe);
    border: 1px solid rgba(33, 187, 176, .24);
    border-radius: 8px;
    color: #0f766e;
    display: inline-flex;
    flex: 0 0 36px;
    font-size: 12px;
    font-weight: 800;
    height: 36px;
    justify-content: center;
}

.pay-bank-logo.has-image {
    background: #fff;
    overflow: hidden;
    padding: 4px;
}

.pay-bank-logo img,
.pay-bank-card-logo img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.pay-bank-option > span:last-child {
    color: #111827;
    font-size: 13px;
    font-weight: 720;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.pay-bank-details {
    display: grid;
    gap: 10px;
}

.pay-bank-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(33, 187, 176, .24);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(33, 187, 176, .08), rgba(255, 255, 255, .96));
    text-align: left;
}

.pay-bank-card:not([hidden]) {
    display: grid;
}

.pay-bank-card-logo {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 10px;
    display: flex;
    grid-row: span 2;
    justify-content: center;
    min-height: 88px;
    padding: 12px;
}

.pay-bank-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 4px;
}

.pay-bank-card strong {
    color: #101827;
    overflow-wrap: anywhere;
}

.manual-payment-qr {
    width: min(260px, 100%);
    margin: 0 auto 4px;
    padding: 12px;
    border: 1px solid rgba(33, 187, 176, .22);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(33, 187, 176, .08), rgba(255, 255, 255, .94));
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.manual-payment-qr img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #fff;
}

.payphone-box {
    display: grid;
    gap: 16px;
    text-align: left;
}

.payphone-box > div {
    display: grid;
    gap: 3px;
    text-align: center;
}

.payphone-box strong {
    color: #111827;
    font-size: 16px;
}

.payphone-box span {
    color: #667085;
    font-size: 12px;
}

.payphone-widget {
    width: 100%;
    min-height: 112px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(33, 187, 176, .18);
    border-radius: 8px;
    background:
        radial-gradient(circle at top left, rgba(33, 187, 176, .12), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(242, 251, 250, .84));
    padding: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.pay-help {
    color: #667085;
    font-size: 12px;
    text-align: center;
}

.pay-error {
    border: 1px solid rgba(220, 38, 38, .24);
    border-radius: 8px;
    background: rgba(254, 242, 242, .82);
    color: #991b1b !important;
    padding: 12px;
    text-align: center;
}

.pay-footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    margin-top: 8px;
}

.pay-footer-actions .btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.auth-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px),
        linear-gradient(135deg, rgba(33, 187, 176, .16), rgba(37, 99, 235, .08), #f8fafc);
    background-size: 34px 34px, 34px 34px, auto;
}

.auth-card {
    width: min(430px, 100%);
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
}

.auth-card h1 { margin-top: 0; }

.check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.check-list label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-weight: 500;
}

.check-list input { width: auto; }

.payment-link-form input[readonly] {
    background: #f8fafc;
    color: #667085;
}

.payment-link-form .price-field {
    align-self: start;
}

.payment-link-form .price-field input {
    height: 56px;
    min-height: 56px;
}

.tax-box {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(33, 187, 176, .22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(33, 187, 176, .08), rgba(37, 99, 235, .04));
}

.tax-box[hidden] {
    display: none !important;
}

.tax-check {
    align-self: end;
    display: flex;
    min-height: 52px;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fff;
}

.tax-check input {
    width: auto;
}

.tax-summary {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tax-summary span {
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .8);
    color: #526276;
}

.tax-summary strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
}

.payment-method-builder {
    display: grid;
    gap: 12px;
}

.payment-method-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #f8fbfb;
}

.payment-method-box label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.payment-method-box input {
    width: auto;
}

.copy-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.payment-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.payment-settings-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.payment-settings-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
}

.payment-settings-card-compact {
    align-items: center;
    padding: 14px;
}

.payment-settings-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(33, 187, 176, .3);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(33, 187, 176, .12), rgba(255, 255, 255, .95));
    color: var(--brand-dark);
    font-weight: 780;
}

.payment-settings-logo img {
    max-width: 46px;
    max-height: 46px;
    object-fit: contain;
}

.payment-settings-body,
.payment-settings-title {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.payment-settings-heading {
    display: grid;
    gap: 3px;
}

.payment-settings-heading strong {
    font-size: 16px;
    font-weight: 760;
}

.payment-method-tabs-admin {
    margin-bottom: 16px;
}

.payment-method-panel-admin {
    margin-top: 0;
}

.payment-method-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.payment-method-admin-section {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(248, 252, 252, .72);
}

.payment-method-admin-section.full {
    grid-column: 1 / -1;
}

.payment-method-admin-section h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-method-add-empty {
    max-width: 680px;
    padding: 18px;
    border: 1px dashed rgba(33, 187, 176, .42);
    border-radius: 8px;
    background: rgba(33, 187, 176, .07);
}

.payment-method-add-empty strong {
    display: block;
    margin-bottom: 6px;
}

.payment-settings-title input {
    min-height: 38px;
    font-weight: 700;
}

.payment-settings-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-settings-controls label {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #f8fbfb;
}

.payment-settings-controls input {
    width: auto;
}

.payment-settings-meta {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
}

.payment-settings-meta label {
    min-width: 0;
}

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

.permission-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 68px;
    padding: 11px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfefe;
    font-weight: 650;
}

.permission-item input {
    width: auto;
    margin-top: 3px;
}

.permission-item small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.company-role-list {
    display: grid;
    gap: 10px;
}

.company-role-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfefe;
}

.company-role-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.company-role-row input { width: auto; }

.logo-upload {
    display: grid;
    gap: 12px;
}

.logo-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfefe;
}

.logo-preview img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 8px;
    background: #050607;
}

.logo-preview label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
}

.logo-preview input { width: auto; }

.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfefe;
}

.file-preview label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 650;
}

.file-preview input { width: auto; }

.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5, 10, 18, .52);
    backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-card {
    width: min(920px, 100%);
    max-height: min(86vh, 900px);
    overflow: auto;
    border: 1px solid rgba(33, 187, 176, .22);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 252, 253, .96));
    padding: 24px;
    box-shadow: 0 28px 90px rgba(4, 10, 22, .28);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.modal-header h2 {
    margin: 0 0 4px;
}

.modal-header p {
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
}

.modal-close:hover {
    border-color: var(--brand);
    color: var(--text);
}

.file-modal-image {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: #f8fafc;
}

code,
pre {
    font-family: Consolas, "Liberation Mono", Menlo, monospace;
}

@media (max-width: 1200px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }
    .dashboard-hero .dashboard-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-kpi-grid,
    .dashboard-health-grid,
    .employee-portal-kpis,
    .dashboard-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-split {
        grid-template-columns: 1fr;
    }
    .employee-portal-grid {
        grid-template-columns: 1fr;
    }
    .employee-recent-grid {
        grid-template-columns: 1fr;
    }
    .employee-income-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .employee-income-filters .btn {
        grid-column: 1 / -1;
    }
    .profile-hero {
        display: grid;
    }
    .profile-hero-main {
        align-items: flex-start;
    }
    .profile-readonly-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1020px) {
    .shell,
    body.sidebar-collapsed .shell {
        grid-template-columns: minmax(0, 1fr);
    }
    .sidebar {
        position: static;
        height: auto;
        overflow: visible;
        padding: 16px;
    }
    .sidebar-toggle { display: none; }
    body.sidebar-collapsed .brand {
        justify-content: flex-start;
        padding: 10px;
    }
    body.sidebar-collapsed .brand-text,
    body.sidebar-collapsed .nav-label,
    body.sidebar-collapsed .nav-section {
        display: block;
    }
    body.sidebar-collapsed .nav-item {
        justify-content: flex-start;
        padding: 10px 12px;
    }
    .nav {
        min-height: 0;
    }
    .nav-scroll {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
        overflow: visible;
    }
    .employee-sidebar .nav-scroll {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .employee-sidebar .nav form {
        margin-top: 0;
    }
    .nav-scroll form { grid-column: 1 / -1; }
    .main { padding: 18px; }
    .main-header {
        margin-bottom: 22px;
    }
    .company-switcher {
        left: 18px;
        top: 136px;
        width: min(calc(100vw - 36px), 320px);
    }
    .grid-4, .form-grid, .content-grid, .field-action-row, .payroll-summary { grid-template-columns: 1fr; }
    .profile-readonly-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .employee-request-datetime-grid,
    .employee-request-datetime {
        grid-template-columns: 1fr;
    }
    .employee-request-period-header {
        display: grid;
    }
    .employee-request-period-header small {
        text-align: left;
    }
    .account-type-panel,
    .details-grid {
        grid-template-columns: 1fr;
    }
    .employee-admin-details-wide {
        grid-column: auto;
    }
    .dashboard-filters {
        width: 100%;
        grid-template-columns: 1fr;
    }
    .dashboard-hero .dashboard-filters {
        grid-template-columns: 1fr;
    }
    .dashboard-report-strip {
        align-items: stretch;
        flex-direction: column;
    }
    .dashboard-report-strip .actions {
        justify-content: flex-start;
    }
    .dashboard-quick-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .dashboard-quick-actions .actions {
        justify-content: flex-start;
    }
    .payment-method-admin-grid,
    .movement-kind-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }
    .permission-grid { grid-template-columns: 1fr; }
    .settings-panel-header,
    .settings-provider-header {
        align-items: stretch;
        flex-direction: column;
    }
    .settings-datil-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }
    .topbar { flex-direction: column; }
    .checkout-page { padding: 16px; }
    .checkout-hero,
    .checkout-summary {
        align-items: stretch;
        flex-direction: column;
    }
    .checkout-status,
    .checkout-total {
        justify-items: start;
    }
}

@media (max-width: 760px) {
    .profile-readonly-grid {
        grid-template-columns: 1fr;
    }
    .sidebar.employee-sidebar {
        padding: 12px;
    }
    .employee-sidebar .brand {
        min-height: 62px;
        margin-bottom: 12px;
        padding: 8px 10px;
    }
    .employee-sidebar .brand-logo {
        width: 42px;
        height: 42px;
    }
    .employee-sidebar .brand-name {
        font-size: 16px;
    }
    .employee-sidebar .nav-scroll {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 6px;
        scrollbar-width: thin;
    }
    .employee-sidebar .nav-section,
    .employee-sidebar .nav form {
        grid-column: auto;
    }
    .employee-sidebar .nav-section,
    .employee-sidebar .nav-label {
        display: none;
    }
    body.sidebar-collapsed .employee-sidebar .nav-section,
    body.sidebar-collapsed .employee-sidebar .nav-label {
        display: none;
    }
    .employee-sidebar .nav form {
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        border-top: 0;
    }
    .employee-sidebar .nav-item {
        justify-content: center;
        width: 48px;
        min-width: 48px;
        min-height: 48px;
        padding: 9px;
        border-radius: 12px;
    }
    .employee-sidebar .nav-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }
    .employee-portal-hero {
        min-height: 0;
        padding: 22px;
    }
    .employee-portal-page-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }
    .employee-portal-page-head .btn {
        width: 100%;
    }
    .employee-portal-hero h1 {
        font-size: clamp(34px, 10vw, 48px);
        line-height: 1.02;
    }
    .employee-portal-hero-copy {
        display: grid;
        gap: 14px;
    }
    .employee-portal-avatar {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        font-size: 20px;
    }
    .employee-portal-hero-actions {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: flex-start;
        align-items: center;
    }
    .employee-portal-hero-actions .btn {
        grid-column: 1 / -1;
        width: 100%;
    }
    .employee-notification-panel {
        top: 128px;
        right: 18px;
        left: auto;
        width: min(320px, calc(100vw - 36px));
        max-height: min(420px, calc(100vh - 148px));
    }
}

@media (max-width: 620px) {
    .nav { grid-template-columns: 1fr; }
    .toolbar { align-items: stretch; }
    .toolbar > * { width: 100%; }
    .company-role-row { grid-template-columns: 1fr; }
    table {
        display: block;
        overflow-x: auto;
        border-radius: 8px;
    }
    th,
    td {
        padding: 10px;
        min-width: 128px;
    }
    .metric { font-size: 24px; }
    .dashboard-hero {
        padding: 18px;
    }
    .dashboard-hero h1 {
        font-size: 30px;
    }
    .dashboard-hero-metric strong {
        font-size: 28px;
    }
    .dashboard-kpi-grid,
    .dashboard-health-grid,
    .employee-portal-kpis,
    .employee-detail-list,
    .employee-recent-grid,
    .employee-mini-table-head,
    .employee-mini-row,
    .payroll-info-grid,
    .payroll-payment-grid,
    .payroll-rubrics,
    .payroll-signatures,
    .employee-income-filters,
    .dashboard-three {
        grid-template-columns: 1fr;
    }
    .bulk-role-actions,
    .payroll-filter-grid,
    .payroll-request-actions form {
        grid-template-columns: 1fr;
    }
    .bulk-role-actions,
    .payroll-request-actions form {
        display: grid;
    }
    .payroll-request-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .payroll-request-status {
        justify-items: start;
    }
    .payroll-request-line strong {
        white-space: normal;
    }
    .payroll-request-title {
        align-items: flex-start;
        flex-direction: column;
    }
    .payroll-sheet {
        padding: 28px 22px 34px;
    }
    .payroll-doc-header {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .payroll-company {
        text-align: left;
    }
    .payroll-line {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .payroll-money-row,
    .payroll-total-row,
    .payroll-net-row {
        grid-template-columns: 1fr auto;
    }
    .employee-portal-hero {
        display: grid;
        padding: 20px;
    }
    .employee-portal-hero-actions {
        justify-content: flex-start;
    }
    .btn {
        width: 100%;
        min-width: 0;
    }
    .actions {
        width: 100%;
    }
    .actions .btn,
    .actions a {
        flex: 1 1 100%;
    }
    .pay-page { padding: 18px; }
    .pay-document-tabs {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .pay-document-tabs label {
        font-size: 16px;
    }
    .pay-two {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pay-phone-combo {
        grid-template-columns: 1fr;
    }
    .pay-receipt-grid,
    .pay-receipt-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 460px) {
    .employee-sidebar .nav-scroll {
        display: flex;
        grid-template-columns: none;
    }
    .employee-portal-hero {
        padding: 18px;
    }
    .employee-portal-hero h1 {
        font-size: 34px;
    }
    .employee-portal-greeting {
        font-size: 16px !important;
    }
    .employee-portal-role {
        font-size: 14px !important;
    }
}

@media print {
    body { background: #fff; }
    .sidebar,
    .main-header,
    .topbar,
    .payroll-toolbar,
    .no-print { display: none !important; }
    .shell { display: block; }
    .app-shell,
    .main-content {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
    }
    .main {
        max-width: none;
        padding: 0;
    }
    .card,
    table {
        box-shadow: none;
        break-inside: avoid;
    }
    .payroll-sheet {
        max-width: none;
        padding: 36px 46px;
        border-radius: 0;
        box-shadow: none;
    }
}

.financial-control-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 28px;
    margin-bottom: 18px;
    border: 1px solid rgba(33, 187, 176, .2);
    border-radius: 10px;
    background:
        radial-gradient(circle at 88% 18%, rgba(33, 187, 176, .18), transparent 26%),
        linear-gradient(135deg, rgba(221, 250, 247, .86), rgba(255, 255, 255, .92));
    box-shadow: var(--shadow-soft);
}

.financial-control-hero h1 {
    margin: 6px 0;
}

.financial-control-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-weight: 620;
}

.financial-control-hero-status {
    min-width: 260px;
    padding: 18px;
    border: 1px solid rgba(33, 187, 176, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .76);
}

.financial-control-hero-status span,
.financial-control-hero-status strong {
    display: block;
}

.financial-control-hero-status span {
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.financial-control-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr);
    gap: 16px;
    margin-bottom: 16px;
}

.financial-close-card,
.financial-rules-card {
    min-height: 100%;
}

.financial-lock-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.financial-lock-list div {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(245, 252, 252, .7));
}

.financial-lock-list strong {
    color: var(--text);
}

.financial-lock-list span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.financial-close-form {
    margin-top: 14px;
}

.financial-reason-cell {
    max-width: 380px;
    white-space: pre-line;
}

.empty-state.compact {
    display: grid;
    gap: 4px;
    padding: 10px 0;
}

.empty-state.compact span {
    color: var(--muted);
}

@media (max-width: 980px) {
    .financial-control-hero,
    .financial-control-layout {
        grid-template-columns: 1fr;
    }

    .financial-control-hero {
        display: grid;
    }

    .financial-control-hero-status {
        min-width: 0;
    }
}
