:root {
    --bg: #f5f1e8;
    --surface: rgba(255, 252, 247, 0.86);
    --text: #18261f;
    --muted: #5e6d66;
    --line: rgba(24, 38, 31, 0.1);
    --primary: #0f7a65;
    --primary-strong: #0c5e4e;
    --accent: #c36f2d;
    --danger: #b94739;
    --shadow: 0 24px 60px rgba(22, 48, 43, 0.08);
    --radius: 24px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Bahnschrift, "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(195, 111, 45, 0.16), transparent 26%),
        radial-gradient(circle at bottom left, rgba(15, 122, 101, 0.18), transparent 24%),
        linear-gradient(180deg, #f9f5ed 0%, #efe7d8 100%);
}

a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 320px 1fr; }

.sidebar {
    background: linear-gradient(180deg, #102823 0%, #173730 100%);
    color: #f7efe5;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 0;
    min-height: 100vh;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand strong { display: block; font-size: 1.1rem; }
.brand span { color: rgba(247, 239, 229, 0.72); font-size: 0.92rem; }
.brand-logo { width: 64px; height: auto; display: block; }

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #c36f2d 0%, #f0b06c 100%);
    color: #23160d;
    font-weight: 800;
}

.login-body {
    min-height: 100vh;
    background:
        linear-gradient(140deg, rgba(15, 122, 101, 0.12), transparent 32%),
        linear-gradient(320deg, rgba(195, 111, 45, 0.12), transparent 38%),
        #f4f6f2;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, 0.88fr) minmax(380px, 1fr);
    align-items: stretch;
    width: min(1120px, calc(100% - 48px));
    min-height: min(720px, calc(100vh - 48px));
    margin: 24px auto;
    overflow: hidden;
    border: 1px solid rgba(24, 38, 31, 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(24, 38, 31, 0.14);
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
    padding: clamp(34px, 5vw, 64px);
    background: #ffffff;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.login-logo {
    width: 56px;
    height: auto;
    flex: 0 0 auto;
    display: block;
}

.login-brand strong {
    display: block;
    font-size: 1.18rem;
    line-height: 1.1;
}

.login-brand p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
}

.login-heading {
    margin-bottom: 22px;
}

.login-heading h1 {
    margin: 12px 0 0;
    max-width: 420px;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.login-heading p {
    max-width: 390px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 15px;
    max-width: 420px;
}

.login-form .field {
    gap: 8px;
}

.login-form .field > span:first-child {
    color: #314238;
    font-size: 0.88rem;
    font-weight: 800;
}

.login-input-wrap {
    position: relative;
    display: block;
}

.login-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    color: #718078;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-field-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-input-wrap input,
.login-input-wrap select {
    min-height: 50px;
    border-radius: 8px;
    border-color: rgba(24, 38, 31, 0.16);
    background: #fbfcfa;
    padding-left: 44px;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-input-wrap input[name="senha"] {
    padding-right: 48px;
}

.login-input-wrap input:focus,
.login-input-wrap select:focus {
    outline: 0;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 122, 101, 0.14);
}

.login-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #596860;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    color: var(--primary-strong);
    background: rgba(15, 122, 101, 0.08);
    outline: 0;
}

.login-password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-options,
.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 0.92rem;
}

.login-options a,
.login-footer a {
    color: var(--primary-strong);
    font-weight: 800;
}

.check-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #43544b;
    font-weight: 700;
    cursor: pointer;
}

.check-field input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.login-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    border-radius: 8px;
    box-shadow: 0 12px 22px rgba(15, 122, 101, 0.2);
}

.login-submit:hover {
    transform: translateY(-1px);
}

.login-footer {
    width: 100%;
    max-width: 420px;
    justify-content: flex-start;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.login-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 122, 101, 0.12);
}

.login-aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    order: 1;
    padding: clamp(30px, 5vw, 56px);
    color: white;
    background:
        linear-gradient(180deg, rgba(16, 40, 35, 0.08), rgba(16, 40, 35, 0.32)),
        url("assets/login-modern-bg.png") center / cover no-repeat;
}

.login-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.08) 34%, rgba(16, 40, 35, 0.18) 100%);
    pointer-events: none;
}

.login-aside > * {
    position: relative;
    z-index: 1;
}

.login-aside-logo {
    width: min(260px, 70vw);
    height: auto;
    display: block;
    margin: 0;
}

.login-aside-logo-card {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(380px, 78%);
    min-height: 190px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 24px 70px rgba(24, 38, 31, 0.18);
    backdrop-filter: blur(10px);
}

.login-kicker {
    width: fit-content;
    border: 1px solid rgba(15, 122, 101, 0.24);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--primary-strong);
    background: rgba(15, 122, 101, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-aside .login-kicker {
    border-color: rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.12);
}

.login-aside h2 {
    max-width: 500px;
    margin: 16px 0 14px;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.06;
}

.login-aside p {
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.55;
}

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

.login-highlights span {
    min-height: 64px;
    border-radius: 8px;
    padding: 13px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    display: flex;
    align-items: flex-end;
}

.nav { display: grid; gap: 10px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    color: rgba(247, 239, 229, 0.92);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-icon {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    flex: 0 0 12px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    opacity: 0.82;
    display: inline-block !important;
    overflow: visible;
}

.nav-link span,
.nav-sub a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-section {
    display: grid;
    gap: 8px;
}

.nav-section summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.nav-section summary span {
    flex: 1;
}

.nav-section summary::-webkit-details-marker {
    display: none;
}

.nav-section summary::after {
    content: "+";
    margin-left: auto;
    font-weight: 800;
    color: rgba(247, 239, 229, 0.72);
}

.nav-section[open] summary::after {
    content: "-";
}

.nav-section[open] .nav-link-head {
    background: rgba(255, 255, 255, 0.08);
    color: #fff8ee;
}

.nav-link-head {
    font-weight: 800;
}

.nav-sub {
    display: grid;
    gap: 4px;
    padding: 0 0 4px 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.nav-sub a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    color: rgba(247, 239, 229, 0.78);
    font-size: 0.88rem;
}

.nav-sub .nav-icon {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
    flex-basis: 10px !important;
    opacity: 0.68;
}

.nav-sub a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff8ee;
}

.sidebar-note {
    margin-top: auto;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.main { padding: 32px; }

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

.topbar h1 { margin: 4px 0 0; font-size: clamp(1.8rem, 2vw, 2.6rem); }

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 800;
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    padding: 12px 18px;
    box-shadow: var(--shadow);
    color: var(--muted);
}

.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }

.hero-card,
.content-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
}

.hero-card { padding: 28px; display: grid; gap: 24px; margin-bottom: 22px; }
.hero-card h2 { margin: 8px 0 10px; font-size: clamp(1.5rem, 1.8vw, 2.1rem); }
.muted { color: var(--muted); line-height: 1.65; }

.hero-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.card-grid { margin-bottom: 22px; }

.stat-card {
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(250, 243, 235, 0.88));
    border: 1px solid rgba(15, 122, 101, 0.12);
}

.stat-card span { display: block; color: var(--muted); margin-bottom: 8px; }
.stat-card strong { font-size: 1.9rem; }

.content-card { padding: 22px; }

.card-header,
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.card-header h3 { margin: 0; font-size: 1.1rem; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 122, 101, 0.12);
    color: var(--primary-strong);
    font-size: 0.84rem;
    font-weight: 700;
}

.badge-positive { background: rgba(15, 122, 101, 0.12); color: var(--primary-strong); }
.badge-muted { background: rgba(24, 38, 31, 0.08); color: var(--muted); }

.feature-list { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.feature-list.compact { gap: 8px; }
.stack-lg { display: grid; gap: 22px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-stat,
.dashboard-chart {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
}

.dashboard-stat {
    min-height: 118px;
    border-radius: 12px;
    padding: 18px;
    display: grid;
    align-content: space-between;
    gap: 14px;
}

.dashboard-stat span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.dashboard-stat strong {
    color: var(--text);
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1;
}

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

.dashboard-chart {
    border-radius: 12px;
    padding: 18px;
    min-width: 0;
}

.dashboard-bars {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.dashboard-bar-row {
    display: grid;
    gap: 7px;
}

.dashboard-bar-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 800;
}

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

.dashboard-bar-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(24, 38, 31, 0.08);
}

.dashboard-bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.field { display: grid; gap: 8px; }
.field span { font-size: 0.92rem; font-weight: 700; color: var(--muted); }

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

input, select, textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(24, 38, 31, 0.12);
    background: rgba(255, 255, 255, 0.88);
    padding: 14px 16px;
    color: var(--text);
}

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

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

.button-primary, .button-secondary, .button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 0;
    cursor: pointer;
    padding: 13px 18px;
    font-weight: 700;
}

.button-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%); color: white; }
.button-secondary { background: rgba(24, 38, 31, 0.08); color: var(--text); }
.button-link { padding: 0; background: transparent; color: var(--primary-strong); }
.button-link.danger { color: var(--danger); }

.toolbar-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; width: 100%; }
.toolbar-form input { flex: 1 1 280px; }
.toolbar-form select { flex: 0 0 180px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

.import-progress {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.import-progress[hidden] {
    display: none;
}

.import-progress-header,
.import-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.import-progress-header strong {
    display: block;
    max-width: 100%;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.import-progress-meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.import-gauge {
    width: 100%;
    height: 16px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(24, 38, 31, 0.10);
}

.import-gauge > div {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--primary-strong));
    transition: width 180ms ease;
}

.import-progress-results {
    max-height: 340px;
    overflow: auto;
}
.empty-state { text-align: center; color: var(--muted); padding: 28px 12px; }

.flash { margin-bottom: 18px; padding: 16px 18px; border-radius: 18px; font-weight: 700; }
.flash-success { background: rgba(15, 122, 101, 0.1); color: var(--primary-strong); }
.flash-error { background: rgba(185, 71, 57, 0.12); color: var(--danger); }

.inline-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.summary-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(24, 38, 31, 0.08);
    color: var(--text);
    font-weight: 700;
}

.legacy-routine-card {
    padding: 8px;
}

.legacy-resc-form {
    display: grid;
    gap: 6px;
}

.legacy-toolbar {
    display: grid;
    grid-template-columns: repeat(7, minmax(64px, max-content)) minmax(70px, 0.8fr);
    gap: 4px;
    align-items: end;
}

.legacy-toolbar .button-secondary,
.legacy-toolbar .button-primary {
    min-height: 30px;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 0.72rem;
}

.danger-lite {
    color: var(--danger);
}

.legacy-resc-panel {
    display: grid;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.legacy-row {
    display: grid;
    gap: 4px;
    align-items: end;
}

.resc-row-main {
    grid-template-columns: 48px minmax(240px, 1.8fr) 104px 88px 80px 88px;
}

.resc-row-dates {
    grid-template-columns: 72px 72px 34px minmax(220px, 1.8fr) 42px 58px;
}

.resc-row-launch {
    grid-template-columns: 34px minmax(190px, 1.6fr) 80px 54px 34px 34px 70px;
}

.compact-field {
    gap: 1px;
}

.compact-field span {
    font-size: 0.64rem;
    line-height: 1;
}

.compact-field input,
.compact-field select {
    min-height: 24px;
    border-radius: 5px;
    padding: 3px 5px;
    font-size: 0.74rem;
    line-height: 1.1;
}

.mini-field input {
    text-align: center;
}

.compact-submit {
    min-height: 24px;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 0.74rem;
}

.legacy-resc-bottom {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 340px;
    gap: 6px;
    align-items: start;
}

.legacy-grid-panel,
.legacy-fgts-panel {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px;
    min-height: 178px;
}

.legacy-fgts-panel {
    display: grid;
    gap: 6px;
}

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

.compact-table th,
.compact-table td {
    padding: 5px 6px;
    font-size: 0.72rem;
}

.employees-page-hero {
    padding: 12px 14px;
    gap: 12px;
    margin-bottom: 10px;
}

.employees-page-hero h2 {
    margin: 2px 0 4px;
    font-size: 1.18rem;
    line-height: 1.1;
}

.employees-page-hero .muted {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.25;
}

.employees-page-hero .hero-grid {
    gap: 8px;
}

.employees-page-hero .stat-card {
    min-height: 64px;
    padding: 10px;
    border-radius: 7px;
}

.employees-page-hero .stat-card span {
    font-size: 0.68rem;
}

.employees-page-hero .stat-card strong {
    font-size: 1.15rem;
}

.employees-page-card {
    padding: 10px;
    border-radius: 8px;
}

.employees-page-card .toolbar {
    gap: 8px;
    margin-bottom: 8px;
}

.employees-page-card .toolbar-form {
    gap: 6px;
}

.employees-page-card .toolbar-form input,
.employees-page-card .toolbar-form select {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.82rem;
}

.employees-page-card .button-primary,
.employees-page-card .button-secondary {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.78rem;
}

.employees-table th,
.employees-table td {
    padding: 6px 7px;
    font-size: 0.76rem;
    line-height: 1.15;
    white-space: nowrap;
}

.employees-table th {
    font-size: 0.68rem;
}

.employees-table .badge {
    padding: 3px 7px;
    font-size: 0.68rem;
}

.employees-table .actions {
    gap: 5px;
}

.employees-table .button-link {
    font-size: 0.72rem;
}

.employee-form-hero {
    padding: 6px 10px;
    margin-bottom: 4px;
}

.employee-form-hero h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.1;
}

.employee-form-hero .toolbar {
    gap: 8px;
}

.employee-form-hero .eyebrow {
    margin-bottom: 1px;
    font-size: 0.66rem;
}

.employee-form-hero .actions {
    gap: 6px;
}

.employee-form-hero .badge,
.employee-form-hero .button-secondary {
    padding: 5px 8px;
    font-size: 0.72rem;
}

.employee-form-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
}

.employee-form-section {
    padding: 6px;
    border-radius: 7px;
}

.employee-legacy-grid {
    display: grid;
    gap: 2px;
}

.employee-legacy-row {
    display: grid;
    grid-template-columns: repeat(var(--employee-row-fields), minmax(0, 1fr));
    gap: 3px;
    align-items: end;
}

.employee-legacy-row:first-child {
    grid-template-columns: minmax(0, 0.3fr) minmax(0, 1.7fr) minmax(0, 1fr);
}

.employee-form-section .field {
    gap: 1px;
}

.employee-form-section .field span {
    font-size: 0.6rem;
    line-height: 1;
}

.employee-form-section input,
.employee-form-section select,
.employee-form-section textarea {
    min-height: 22px;
    border-radius: 5px;
    padding: 2px 5px;
    font-size: 0.7rem;
    line-height: 1.1;
}

.employee-form-section textarea {
    min-height: 28px;
    resize: vertical;
}

.employee-form-section .field-wide {
    grid-column: 1 / -1;
}

.employee-form-compact .form-actions {
    grid-column: 1 / -1;
    margin-top: 0;
    padding-top: 2px;
    gap: 5px;
}

.employee-form-compact .form-actions .button-primary,
.employee-form-compact .form-actions .button-secondary {
    padding: 6px 9px;
    font-size: 0.74rem;
}

.legacy-company-page-cover {
    position: static;
    inset: auto;
    z-index: auto;
    overflow: visible;
    background: transparent;
    padding: 0 0 24px;
}

.legacy-company-form {
    width: 1000px;
    max-width: 100%;
    margin: 0;
}

.legacy-company-window {
    width: 925px;
    transform: scale(1.08);
    transform-origin: top left;
    margin-bottom: 46px;
    overflow: visible;
    border: 1px solid rgba(24, 38, 31, 0.12);
    border-radius: 8px;
    background: #f8faf9;
    color: var(--text);
    padding: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    box-shadow: 0 18px 42px rgba(20, 45, 39, 0.10);
}

@media (max-width: 1380px) and (min-width: 1081px) {
    .legacy-company-form {
        width: 912px;
    }

    .legacy-company-window {
        transform: scale(1.03);
        margin-bottom: 24px;
    }
}

@media (max-width: 1080px) {
    .legacy-company-form {
        width: 100%;
    }

    .legacy-company-window {
        transform: none;
    }
}

.legacy-company-caption {
    height: 42px;
    padding: 12px 18px;
    background: #173730;
    color: #fff8ee;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.legacy-company-toolbar {
    position: relative;
    min-width: 925px;
    height: 52px;
    background: #eef3f0;
    border-bottom: 1px solid rgba(24, 38, 31, 0.10);
}

.legacy-company-date {
    position: absolute;
    left: 159px;
    top: 12px;
    width: 225px;
    height: 30px;
    border-radius: 0;
    border: 1px solid rgba(24, 38, 31, 0.16);
    padding: 4px 8px;
    font-size: 0.78rem;
    background: #fff;
    color: var(--text);
}

.legacy-company-button {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 9px;
    width: 77px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    background: #ffffff;
    color: #111;
    box-shadow: 0 6px 16px rgba(20, 45, 39, 0.08);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.legacy-company-toolbar .legacy-company-button-delete {
    left: 1px;
}

.legacy-company-toolbar a.legacy-company-button {
    left: 844px;
}

.legacy-company-button:disabled,
.legacy-company-button-delete {
    background: #f0f2f1;
    color: #8b9691;
    cursor: default;
    box-shadow: none;
}

.legacy-company-canvas {
    position: relative;
    min-width: 925px;
    height: 452px;
    background: #f8faf9;
}

.legacy-company-field {
    position: absolute;
    display: block;
}

.legacy-company-field span {
    display: block;
    height: 15px;
    font-size: 0.66rem;
    line-height: 1;
    font-weight: 800;
    color: #53635d;
    text-transform: uppercase;
    white-space: nowrap;
}

.legacy-company-field input {
    display: block;
    width: 100%;
    height: 25px;
    min-height: 25px;
    border-radius: 5px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    background: #fff;
    color: var(--text);
    padding: 3px 7px;
    font-size: 0.78rem;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.legacy-company-field input:focus,
.legacy-company-date:focus {
    border-color: var(--primary);
    outline: 2px solid rgba(15, 122, 101, 0.14);
    outline-offset: 0;
}

.legacy-company-lookup {
    position: absolute;
    height: 25px;
    min-height: 25px;
    border-radius: 5px;
    border: 1px solid rgba(24, 38, 31, 0.10);
    background: #edf3f0;
    padding: 3px 7px;
    color: #53635d;
    font-size: 0.78rem;
    line-height: 1;
}

.lookup-ferias { left: 39px; top: 363px; width: 240px; }
.lookup-ferpro { left: 326px; top: 363px; width: 200px; }
.lookup-fer13 { left: 576px; top: 363px; width: 200px; }
.lookup-saldosal { left: 40px; top: 403px; width: 240px; }
.lookup-avisotra { left: 326px; top: 403px; width: 200px; }
.lookup-avisoind { left: 576px; top: 403px; width: 200px; }

.legacy-company-field[style*="top: 346px"] input,
.legacy-company-field[style*="top: 386px"] input {
    text-align: center;
}

.legacy-company-submit {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.legacy-pay-page {
    display: grid;
    gap: 10px;
    padding: 0 0 16px;
    overflow: visible;
}

.legacy-pay-window {
    width: min(100%, 1180px);
    border: 1px solid rgba(24, 38, 31, 0.10);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 12px 28px rgba(20, 45, 39, 0.07);
    overflow: hidden;
}

.legacy-pay-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background:
        linear-gradient(115deg, rgba(195, 111, 45, 0.24), transparent 38%),
        linear-gradient(135deg, #173730 0%, #0b5f88 100%);
    color: #ffffff;
}

.legacy-pay-kicker {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 4px;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.legacy-pay-caption strong {
    display: block;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: 0;
}

.legacy-pay-caption > div:not(.legacy-pay-summary) > span:not(.legacy-pay-kicker) {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.74rem;
    font-weight: 700;
}

.legacy-pay-summary {
    display: grid;
    min-width: 112px;
    justify-items: end;
    gap: 2px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
}

.legacy-pay-summary span {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 850;
}

.legacy-pay-summary small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
}

.legacy-pay-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8faf9;
    border-bottom: 1px solid rgba(24, 38, 31, 0.11);
}

.legacy-pay-delete-form {
    margin: 0;
}

.legacy-pay-tool {
    min-width: 74px;
    min-height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 6px;
    background: #ffffff;
    color: #173730;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(20, 45, 39, 0.05);
}

.legacy-pay-tool-delete {
    color: #9d2b2b;
    background: #fff8f8;
}

.legacy-pay-tool-save {
    margin-left: auto;
    background: #0f7a65;
    border-color: #0f7a65;
    color: #ffffff;
}

.legacy-pay-tool:hover,
.legacy-pay-row-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(20, 45, 39, 0.10);
}

.legacy-pay-form {
    margin: 0;
}

.legacy-pay-form-card {
    display: grid;
    gap: 8px;
    padding: 10px 16px 12px;
    background: #ffffff;
    border-bottom: 1px solid rgba(24, 38, 31, 0.10);
}

.legacy-pay-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.08);
}

.legacy-pay-form-head h3,
.legacy-pay-section h4 {
    margin: 0;
    color: #173730;
    letter-spacing: 0;
}

.legacy-pay-form-head h3 {
    font-size: 0.92rem;
}

.legacy-pay-form-head p {
    display: none;
    margin: 0;
    color: #64736d;
    font-size: 0.72rem;
}

.legacy-pay-form-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(15, 122, 101, 0.10);
    color: #0c5e4e;
    font-size: 0.64rem;
    font-weight: 850;
    white-space: nowrap;
}

.legacy-pay-section {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px;
    align-items: start;
}

.legacy-pay-section h4 {
    padding-top: 4px;
    color: #3e4c47;
    font-size: 0.66rem;
    font-weight: 850;
    text-transform: uppercase;
}

.legacy-pay-fields {
    display: grid;
    gap: 7px;
}

.legacy-pay-fields-main {
    grid-template-columns: minmax(76px, 0.4fr) minmax(240px, 2.6fr) repeat(2, minmax(72px, 0.55fr));
}

.legacy-pay-fields-flags {
    grid-template-columns: repeat(7, minmax(68px, 1fr));
}

.legacy-pay-fields-calc {
    grid-template-columns: minmax(78px, 0.7fr) minmax(190px, 1.8fr) minmax(82px, 0.75fr) minmax(96px, 0.8fr) minmax(90px, 0.75fr);
}

.legacy-pay-field {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 4px;
    min-width: 0;
}

.legacy-pay-field span {
    font-size: 0.62rem;
    line-height: 1;
    font-weight: 800;
    color: #53635d;
    white-space: nowrap;
}

.legacy-pay-field small {
    position: absolute;
    right: 4px;
    bottom: 8px;
    color: #6e7a75;
    font-size: 0.56rem;
    font-weight: 800;
    pointer-events: none;
}

.legacy-pay-field input,
.legacy-pay-reference,
.legacy-pay-calc-panel input {
    height: 28px;
    min-height: 28px;
    border: 1px solid rgba(24, 38, 31, 0.16);
    border-radius: 5px;
    background: #ffffff;
    color: var(--text);
    padding: 5px 7px;
    font: inherit;
    font-size: 0.78rem;
    line-height: 1.15;
    width: 100%;
    min-width: 0;
}

.legacy-pay-field input:focus,
.legacy-pay-calc-panel input:focus {
    border-color: var(--primary);
    outline: 2px solid rgba(15, 122, 101, 0.14);
    outline-offset: 0;
}

.legacy-pay-reference {
    position: static;
    width: 100%;
    border: 1px solid rgba(24, 38, 31, 0.08);
    background: #f7f9fb;
    color: #143d78;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-weight: 700;
}

.legacy-pay-reference-field input:first-of-type {
    width: 64px;
}

.legacy-pay-calc-panel {
    width: min(100%, 280px);
    padding: 8px;
    border: 1px solid rgba(24, 38, 31, 0.18);
    border-radius: 8px;
    background: #f0f4f2;
    box-shadow: 0 12px 26px rgba(20, 45, 39, 0.08);
}

.legacy-pay-calc-panel span {
    font-size: 0.62rem;
}

.legacy-pay-calc-panel input {
    width: 100%;
}

.legacy-pay-grid {
    width: 100%;
    max-height: 520px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: auto;
    box-shadow: none;
}

.legacy-pay-grid-caption {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.10);
    background: #ffffff;
}

.legacy-pay-grid-caption strong {
    color: #173730;
    font-size: 0.76rem;
}

.legacy-pay-grid-caption span {
    color: #6e7a75;
    font-size: 0.64rem;
    font-weight: 700;
}

.legacy-pay-grid table {
    min-width: 980px;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.64rem;
    line-height: 1.05;
}

.legacy-pay-grid th,
.legacy-pay-grid td {
    height: 22px;
    border-right: 1px solid rgba(24, 38, 31, 0.10);
    border-bottom: 1px solid rgba(24, 38, 31, 0.08);
    padding: 3px 5px;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.legacy-pay-grid th {
    position: sticky;
    top: 32px;
    z-index: 1;
    background: #edf2ef;
    color: #3e4c47;
    font-weight: 800;
    text-align: left;
}

.legacy-pay-grid tbody tr {
    cursor: default;
}

.legacy-pay-grid tbody tr:hover {
    background: rgba(15, 122, 101, 0.08);
}

.legacy-pay-empty {
    height: 60px;
    color: #6e7a75;
    text-align: center;
}

.legacy-pay-row-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legacy-pay-row-actions form {
    margin: 0;
}

.legacy-pay-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 20px;
    padding: 0 5px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 4px;
    background: #f7faf8;
    color: #173730;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.legacy-pay-row-button-delete {
    color: #9d2b2b;
    background: #fff8f8;
}

.cost-center-page {
    display: grid;
    gap: 20px;
    padding: 0 0 28px;
}

.cost-center-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(24, 38, 31, 0.10);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(24, 38, 31, 0.08);
}

.cost-center-header h2,
.cost-center-panel h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

.cost-center-header h2 {
    font-size: 1.55rem;
}

.cost-center-header p {
    max-width: 640px;
    margin: 8px 0 0;
    color: var(--muted);
}

.cost-center-kicker,
.cost-center-label {
    display: block;
    margin: 0 0 6px;
    color: #6c796f;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cost-center-actions,
.cost-center-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cost-center-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 0 15px;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.cost-center-button-primary {
    background: #0f6f5c;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 111, 92, 0.20);
}

.cost-center-button-primary:hover {
    background: #0c5d4d;
}

.cost-center-button-secondary {
    border-color: rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
}

.cost-center-button-secondary:hover {
    border-color: rgba(15, 111, 92, 0.32);
    background: #ffffff;
}

.cost-center-button-danger {
    border-color: rgba(170, 50, 50, 0.24);
    background: #fff7f7;
    color: #9d2b2b;
}

.cost-center-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cost-center-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.cost-center-panel {
    border: 1px solid rgba(24, 38, 31, 0.10);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(24, 38, 31, 0.08);
}

.cost-center-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.09);
}

.cost-center-panel h3 {
    font-size: 1.05rem;
}

.cost-center-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef6f3;
    color: #0f6f5c;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.cost-center-form {
    margin: 0;
}

.cost-center-form-grid {
    display: flex;
    align-items: end;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 18px;
}

.cost-center-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    flex: 0 0 144px;
}

.cost-center-field span {
    color: #52635d;
    font-size: 0.78rem;
    font-weight: 800;
}

.cost-center-field input,
.cost-center-field select,
.cost-center-search {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 7px;
    background: #fbfdfc;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.cost-center-field input:focus,
.cost-center-field select:focus,
.cost-center-search:focus {
    border-color: #0f6f5c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 111, 92, 0.12);
}

.cost-center-code input {
    font-weight: 850;
}

.cost-center-code {
    flex-basis: 82px;
}

.cost-center-wide {
    flex: 1 1 224px;
}

.cost-center-type {
    flex-basis: 124px;
}

.cost-center-parent {
    flex-basis: 86px;
}

.cost-center-form-actions {
    padding: 0 18px 18px;
}

.cost-center-delete-form {
    margin: 0;
}

.cost-center-data-grid {
    display: grid;
    max-height: 560px;
    overflow: auto;
}

.cost-center-data-row {
    display: grid;
    grid-template-columns: 82px 144px minmax(220px, 1fr) 82px 82px 154px;
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.08);
}

.cost-center-data-row:hover,
.cost-center-data-row.is-selected {
    background: rgba(15, 111, 92, 0.08);
}

.cost-center-data-cell {
    min-width: 0;
    color: #233b34;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cost-center-data-name {
    font-weight: 800;
}

.cost-center-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.cost-center-row-delete {
    margin: 0;
}

.cost-center-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 34px;
    border: 1px solid rgba(24, 38, 31, 0.13);
    border-radius: 7px;
    background: #f8faf9;
    color: #173730;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.cost-center-row-button:hover {
    border-color: rgba(15, 111, 92, 0.32);
    background: #ffffff;
}

.cost-center-row-button-danger {
    border-color: rgba(170, 50, 50, 0.24);
    background: #fff7f7;
    color: #9d2b2b;
}

@media (max-width: 980px) {
    .cost-center-header,
    .cost-center-layout {
        grid-template-columns: 1fr;
    }

    .cost-center-header {
        display: grid;
    }

    .cost-center-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .cost-center-header,
    .cost-center-panel-head {
        padding: 16px;
    }

    .cost-center-form-grid {
        display: grid;
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .cost-center-field,
    .cost-center-code,
    .cost-center-wide,
    .cost-center-type,
    .cost-center-parent {
        flex-basis: auto;
    }

    .cost-center-wide {
        grid-column: 1;
    }

    .cost-center-form-actions {
        padding: 0 16px 16px;
        justify-content: stretch;
    }

    .cost-center-button,
    .cost-center-delete-form {
        width: 100%;
    }

    .cost-center-data-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .cost-center-row-actions {
        justify-content: stretch;
    }

    .cost-center-row-button {
        flex: 1;
    }
}

.job-function-page {
    display: grid;
    gap: 20px;
    padding: 0 0 28px;
}

.job-function-header,
.job-function-panel {
    border: 1px solid rgba(24, 38, 31, 0.10);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(24, 38, 31, 0.08);
}

.job-function-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.job-function-header h2,
.job-function-panel h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

.job-function-header h2 {
    font-size: 1.55rem;
}

.job-function-header p {
    max-width: 640px;
    margin: 8px 0 0;
    color: var(--muted);
}

.job-function-kicker,
.job-function-label {
    display: block;
    margin: 0 0 6px;
    color: #6c796f;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.job-function-actions,
.job-function-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.job-function-button,
.job-function-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.job-function-button {
    min-height: 40px;
    border: 1px solid transparent;
    padding: 0 15px;
    font-size: 0.88rem;
}

.job-function-button-primary {
    background: #0f6f5c;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 111, 92, 0.20);
}

.job-function-button-primary:hover {
    background: #0c5d4d;
}

.job-function-button-secondary {
    border-color: rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
}

.job-function-button-danger,
.job-function-row-button-danger {
    border-color: rgba(170, 50, 50, 0.24);
    background: #fff7f7;
    color: #9d2b2b;
}

.job-function-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.job-function-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.09);
}

.job-function-panel h3 {
    font-size: 1.05rem;
}

.job-function-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef6f3;
    color: #0f6f5c;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.job-function-form {
    margin: 0;
}

.job-function-form-grid {
    display: grid;
    grid-template-columns: 96px minmax(260px, 1fr) 150px;
    gap: 14px;
    padding: 18px;
}

.job-function-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.job-function-field span {
    color: #52635d;
    font-size: 0.78rem;
    font-weight: 800;
}

.job-function-field input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 7px;
    background: #fbfdfc;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    outline: none;
}

.job-function-field input:focus {
    border-color: #0f6f5c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 111, 92, 0.12);
}

.job-function-code input {
    font-weight: 850;
}

.job-function-form-actions {
    padding: 0 18px 18px;
}

.job-function-delete-form,
.job-function-row-delete {
    margin: 0;
}

.job-function-data-grid {
    display: grid;
    max-height: 560px;
    overflow: auto;
}

.job-function-data-row {
    display: grid;
    grid-template-columns: 96px minmax(260px, 1fr) 150px 154px;
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.08);
}

.job-function-data-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 42px;
    background: #f2f6f4;
}

.job-function-data-head .job-function-data-cell {
    color: #5d6c65;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.job-function-data-row:hover,
.job-function-data-row.is-selected {
    background: rgba(15, 111, 92, 0.08);
}

.job-function-data-cell {
    min-width: 0;
    color: #233b34;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-function-data-name {
    font-weight: 800;
}

.job-function-data-empty {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 8px 12px;
    color: #6e7a75;
    font-size: 0.9rem;
}

.job-function-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.job-function-row-button {
    min-width: 68px;
    min-height: 34px;
    border: 1px solid rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 850;
}

.job-function-row-button:hover {
    border-color: rgba(15, 111, 92, 0.32);
    background: #ffffff;
}

@media (max-width: 720px) {
    .job-function-header,
    .job-function-panel-head {
        display: grid;
        padding: 16px;
    }

    .job-function-actions,
    .job-function-form-actions {
        justify-content: stretch;
    }

    .job-function-button,
    .job-function-delete-form {
        width: 100%;
    }

    .job-function-form-grid,
    .job-function-data-row {
        grid-template-columns: 1fr;
    }

    .job-function-form-grid {
        padding: 16px;
    }

    .job-function-form-actions {
        padding: 0 16px 16px;
    }

    .job-function-row-actions {
        justify-content: stretch;
    }

.job-function-row-button {
        flex: 1;
    }
}

.status-page {
    display: grid;
    gap: 20px;
    padding: 0 0 28px;
}

.status-header,
.status-panel {
    border: 1px solid rgba(24, 38, 31, 0.10);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(24, 38, 31, 0.08);
}

.status-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.status-header h2,
.status-panel h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

.status-header h2 {
    font-size: 1.55rem;
}

.status-header p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.status-kicker,
.status-label {
    display: block;
    margin: 0 0 6px;
    color: #6c796f;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-actions,
.status-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.status-button,
.status-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.status-button {
    min-height: 40px;
    border: 1px solid transparent;
    padding: 0 15px;
    font-size: 0.88rem;
}

.status-button-primary {
    background: #0f6f5c;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 111, 92, 0.20);
}

.status-button-secondary {
    border-color: rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
}

.status-button-danger,
.status-row-button-danger {
    border-color: rgba(170, 50, 50, 0.24);
    background: #fff7f7;
    color: #9d2b2b;
}

.status-button:disabled,
.status-row-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.status-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.09);
}

.status-panel h3 {
    font-size: 1.05rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef6f3;
    color: #0f6f5c;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-form {
    margin: 0;
}

.status-form-grid {
    display: grid;
    grid-template-columns: 96px minmax(260px, 1fr) repeat(4, minmax(132px, 0.5fr));
    gap: 14px;
    padding: 18px;
}

.status-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.status-name {
    grid-column: span 2;
}

.status-field span,
.status-toggle span {
    color: #52635d;
    font-size: 0.78rem;
    font-weight: 800;
}

.status-field input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 7px;
    background: #fbfdfc;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    outline: none;
}

.status-field input:focus {
    border-color: #0f6f5c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 111, 92, 0.12);
}

.status-code input {
    font-weight: 850;
}

.status-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border: 1px solid rgba(24, 38, 31, 0.12);
    border-radius: 7px;
    background: #fbfdfc;
    padding: 0 12px;
}

.status-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0f6f5c;
}

.status-form-actions {
    padding: 0 18px 18px;
}

.status-delete-form,
.status-row-delete {
    margin: 0;
}

.status-data-grid {
    display: grid;
    max-height: 560px;
    overflow: auto;
}

.status-data-row {
    display: grid;
    grid-template-columns: 90px minmax(240px, 1fr) 90px 90px 90px 154px;
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.08);
}

.status-data-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 42px;
    background: #f2f6f4;
}

.status-data-head .status-data-cell {
    color: #5d6c65;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-data-row:hover,
.status-data-row.is-selected {
    background: rgba(15, 111, 92, 0.08);
}

.status-data-cell {
    min-width: 0;
    color: #233b34;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-data-name {
    font-weight: 800;
}

.status-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.status-row-button {
    min-width: 68px;
    min-height: 34px;
    border: 1px solid rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 850;
}

@media (max-width: 900px) {
    .status-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .status-name {
        grid-column: span 1;
    }

    .status-data-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .status-header,
    .status-panel-head {
        display: grid;
        padding: 16px;
    }

    .status-actions,
    .status-form-actions,
    .status-row-actions {
        justify-content: stretch;
    }

    .status-button,
    .status-delete-form {
        width: 100%;
    }

    .status-form-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .status-form-actions {
        padding: 0 16px 16px;
    }

.status-row-button {
        flex: 1;
    }
}

.schedule-page {
    display: grid;
    gap: 20px;
    padding: 0 0 28px;
}

.schedule-header,
.schedule-panel {
    border: 1px solid rgba(24, 38, 31, 0.10);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(24, 38, 31, 0.08);
}

.schedule-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.schedule-header h2,
.schedule-panel h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

.schedule-header h2 {
    font-size: 1.55rem;
}

.schedule-header p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.schedule-kicker,
.schedule-label {
    display: block;
    margin: 0 0 6px;
    color: #6c796f;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schedule-actions,
.schedule-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.schedule-button,
.schedule-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.schedule-button {
    min-height: 40px;
    border: 1px solid transparent;
    padding: 0 15px;
    font-size: 0.88rem;
}

.schedule-button-primary {
    background: #0f6f5c;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 111, 92, 0.20);
}

.schedule-button-secondary {
    border-color: rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
}

.schedule-button-danger,
.schedule-row-button-danger {
    border-color: rgba(170, 50, 50, 0.24);
    background: #fff7f7;
    color: #9d2b2b;
}

.schedule-button:disabled,
.schedule-row-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.schedule-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.09);
}

.schedule-panel h3 {
    font-size: 1.05rem;
}

.schedule-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef6f3;
    color: #0f6f5c;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.schedule-form {
    margin: 0;
}

.schedule-form-grid {
    display: grid;
    grid-template-columns: 96px minmax(260px, 1fr) repeat(3, minmax(120px, 0.5fr));
    gap: 14px;
    padding: 18px;
}

.schedule-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.schedule-name {
    grid-column: span 2;
}

.schedule-field span {
    color: #52635d;
    font-size: 0.78rem;
    font-weight: 800;
}

.schedule-field input,
.schedule-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 7px;
    background: #fbfdfc;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    outline: none;
}

.schedule-field input:focus,
.schedule-field select:focus {
    border-color: #0f6f5c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 111, 92, 0.12);
}

.schedule-code input {
    font-weight: 850;
}

.schedule-form-actions {
    padding: 0 18px 18px;
}

.schedule-delete-form,
.schedule-row-delete {
    margin: 0;
}

.schedule-data-grid {
    display: grid;
    max-height: 560px;
    overflow: auto;
}

.schedule-data-row {
    display: grid;
    grid-template-columns: 90px minmax(240px, 1fr) 96px 96px 110px 154px;
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.08);
}

.schedule-data-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 42px;
    background: #f2f6f4;
}

.schedule-data-head .schedule-data-cell {
    color: #5d6c65;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.schedule-data-row:hover,
.schedule-data-row.is-selected {
    background: rgba(15, 111, 92, 0.08);
}

.schedule-data-cell {
    min-width: 0;
    color: #233b34;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-data-name {
    font-weight: 800;
}

.schedule-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.schedule-row-button {
    min-width: 68px;
    min-height: 34px;
    border: 1px solid rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 850;
}

@media (max-width: 900px) {
    .schedule-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .schedule-name {
        grid-column: span 1;
    }

    .schedule-data-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .schedule-header,
    .schedule-panel-head {
        display: grid;
        padding: 16px;
    }

    .schedule-actions,
    .schedule-form-actions,
    .schedule-row-actions {
        justify-content: stretch;
    }

    .schedule-button,
    .schedule-delete-form {
        width: 100%;
    }

    .schedule-form-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .schedule-form-actions {
        padding: 0 16px 16px;
    }

.schedule-row-button {
        flex: 1;
    }
}

.irrf-page {
    display: grid;
    gap: 20px;
    padding: 0 0 28px;
}

.irrf-header,
.irrf-panel {
    border: 1px solid rgba(24, 38, 31, 0.10);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(24, 38, 31, 0.08);
}

.irrf-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.irrf-header h2,
.irrf-panel h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

.irrf-header h2 {
    font-size: 1.55rem;
}

.irrf-header p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.irrf-kicker,
.irrf-label {
    display: block;
    margin: 0 0 6px;
    color: #6c796f;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.irrf-actions,
.irrf-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.irrf-button,
.irrf-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.irrf-button {
    min-height: 40px;
    border: 1px solid transparent;
    padding: 0 15px;
    font-size: 0.88rem;
}

.irrf-button-primary {
    background: #0f6f5c;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 111, 92, 0.20);
}

.irrf-button-secondary {
    border-color: rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
}

.irrf-button-danger,
.irrf-row-button-danger {
    border-color: rgba(170, 50, 50, 0.24);
    background: #fff7f7;
    color: #9d2b2b;
}

.irrf-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.irrf-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.09);
}

.irrf-panel h3 {
    font-size: 1.05rem;
}

.irrf-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef6f3;
    color: #0f6f5c;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.irrf-form {
    margin: 0;
}

.irrf-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    padding: 18px;
}

.irrf-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.irrf-field-wide {
    grid-column: 1 / -1;
}

.irrf-field span {
    color: #52635d;
    font-size: 0.78rem;
    font-weight: 800;
}

.irrf-field input,
.irrf-field select,
.irrf-field textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 7px;
    background: #fbfdfc;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    outline: none;
}

.irrf-field textarea {
    min-height: 86px;
    padding: 10px 12px;
    resize: vertical;
}

.irrf-field input:focus,
.irrf-field select:focus,
.irrf-field textarea:focus {
    border-color: #0f6f5c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 111, 92, 0.12);
}

.irrf-form-actions {
    padding: 0 18px 18px;
}

.irrf-delete-form,
.irrf-row-delete {
    margin: 0;
}

.irrf-data-grid {
    display: grid;
    max-height: 560px;
    overflow: auto;
}

.irrf-data-row {
    display: grid;
    grid-template-columns: 118px repeat(4, minmax(100px, 1fr)) 154px;
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.08);
}

.irrf-data-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 42px;
    background: #f2f6f4;
}

.irrf-data-head .irrf-data-cell {
    color: #5d6c65;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.irrf-data-row:hover,
.irrf-data-row.is-selected {
    background: rgba(15, 111, 92, 0.08);
}

.irrf-data-cell {
    min-width: 0;
    color: #233b34;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.irrf-data-name {
    font-weight: 800;
}

.irrf-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.irrf-row-button {
    min-width: 68px;
    min-height: 34px;
    border: 1px solid rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 850;
}

@media (max-width: 900px) {
    .irrf-form-grid,
    .irrf-data-row {
        grid-template-columns: 1fr 1fr;
    }

    .irrf-field-wide,
    .irrf-row-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .irrf-header,
    .irrf-panel-head {
        display: grid;
        padding: 16px;
    }

    .irrf-actions,
    .irrf-form-actions,
    .irrf-row-actions {
        justify-content: stretch;
    }

    .irrf-button,
    .irrf-delete-form {
        width: 100%;
    }

    .irrf-form-grid,
    .irrf-data-row {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .irrf-form-actions {
        padding: 0 16px 16px;
    }

.irrf-row-button {
        flex: 1;
    }
}

.bank-page {
    display: grid;
    gap: 20px;
    padding: 0 0 28px;
}

.bank-header,
.bank-panel {
    border: 1px solid rgba(24, 38, 31, 0.10);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(24, 38, 31, 0.08);
}

.bank-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.bank-header h2,
.bank-panel h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

.bank-header h2 {
    font-size: 1.55rem;
}

.bank-header p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.bank-kicker,
.bank-label {
    display: block;
    margin: 0 0 6px;
    color: #6c796f;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bank-actions,
.bank-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.bank-button,
.bank-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.bank-button {
    min-height: 40px;
    border: 1px solid transparent;
    padding: 0 15px;
    font-size: 0.88rem;
}

.bank-button-primary {
    background: #0f6f5c;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 111, 92, 0.20);
}

.bank-button-secondary {
    border-color: rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
}

.bank-button-danger,
.bank-row-button-danger {
    border-color: rgba(170, 50, 50, 0.24);
    background: #fff7f7;
    color: #9d2b2b;
}

.bank-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bank-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.09);
}

.bank-panel h3 {
    font-size: 1.05rem;
}

.bank-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef6f3;
    color: #0f6f5c;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.bank-form {
    margin: 0;
}

.bank-form-grid {
    display: grid;
    grid-template-columns: 96px minmax(260px, 1fr) 150px 170px 120px;
    gap: 14px;
    padding: 18px;
}

.bank-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.bank-field span {
    color: #52635d;
    font-size: 0.78rem;
    font-weight: 800;
}

.bank-field input,
.bank-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 7px;
    background: #fbfdfc;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    outline: none;
}

.bank-field input:focus,
.bank-field select:focus {
    border-color: #0f6f5c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 111, 92, 0.12);
}

.bank-code input,
.bank-data-name {
    font-weight: 850;
}

.bank-form-actions {
    padding: 0 18px 18px;
}

.bank-delete-form,
.bank-row-delete {
    margin: 0;
}

.bank-data-grid {
    display: grid;
    max-height: 560px;
    overflow: auto;
}

.bank-data-row {
    display: grid;
    grid-template-columns: 90px minmax(240px, 1fr) 130px 150px 100px 154px;
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.08);
}

.bank-data-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 42px;
    background: #f2f6f4;
}

.bank-data-head .bank-data-cell {
    color: #5d6c65;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bank-data-row:hover,
.bank-data-row.is-selected {
    background: rgba(15, 111, 92, 0.08);
}

.bank-data-cell {
    min-width: 0;
    color: #233b34;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bank-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.bank-row-button {
    min-width: 68px;
    min-height: 34px;
    border: 1px solid rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 850;
}

@media (max-width: 900px) {
    .bank-form-grid,
    .bank-data-row {
        grid-template-columns: 1fr 1fr;
    }

    .bank-name,
    .bank-row-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .bank-header,
    .bank-panel-head {
        display: grid;
        padding: 16px;
    }

    .bank-actions,
    .bank-form-actions,
    .bank-row-actions {
        justify-content: stretch;
    }

    .bank-button,
    .bank-delete-form {
        width: 100%;
    }

    .bank-form-grid,
    .bank-data-row {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .bank-form-actions {
        padding: 0 16px 16px;
    }

.bank-row-button {
        flex: 1;
    }
}

.vacation-page {
    display: grid;
    gap: 20px;
    padding: 0 0 28px;
}

.vacation-header,
.vacation-panel {
    border: 1px solid rgba(24, 38, 31, 0.10);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(24, 38, 31, 0.08);
}

.vacation-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.vacation-header h2,
.vacation-panel h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

.vacation-header h2 {
    font-size: 1.55rem;
}

.vacation-header p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.vacation-kicker,
.vacation-label {
    display: block;
    margin: 0 0 6px;
    color: #6c796f;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vacation-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.vacation-button,
.vacation-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.vacation-button {
    min-height: 40px;
    border: 1px solid transparent;
    padding: 0 15px;
    font-size: 0.88rem;
}

.vacation-button-primary {
    background: #0f6f5c;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 111, 92, 0.20);
}

.vacation-button-secondary {
    border-color: rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
}

.vacation-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.09);
}

.vacation-panel h3 {
    font-size: 1.05rem;
}

.vacation-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef6f3;
    color: #0f6f5c;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.vacation-form {
    margin: 0;
}

.vacation-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    padding: 18px;
}

.vacation-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.vacation-field-employee_id {
    grid-column: span 2;
}

.vacation-field span {
    color: #52635d;
    font-size: 0.78rem;
    font-weight: 800;
}

.vacation-field input,
.vacation-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 7px;
    background: #fbfdfc;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    outline: none;
}

.vacation-field input:focus,
.vacation-field select:focus {
    border-color: #0f6f5c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 111, 92, 0.12);
}

.vacation-data-grid {
    display: grid;
    max-height: 560px;
    overflow: auto;
}

.vacation-data-row {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) 80px 110px 110px 154px;
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.08);
}

.vacation-data-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 42px;
    background: #f2f6f4;
}

.vacation-data-head .vacation-data-cell {
    color: #5d6c65;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vacation-data-row:hover {
    background: rgba(15, 111, 92, 0.08);
}

.vacation-data-cell {
    min-width: 0;
    color: #233b34;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vacation-data-name {
    font-weight: 850;
}

.vacation-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.vacation-row-button {
    min-width: 68px;
    min-height: 34px;
    border: 1px solid rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 850;
}

.vacation-row-button-danger {
    border-color: rgba(170, 50, 50, 0.24);
    background: #fff7f7;
    color: #9d2b2b;
}

@media (max-width: 900px) {
    .vacation-form-grid,
    .vacation-data-row {
        grid-template-columns: 1fr 1fr;
    }

    .vacation-field-employee_id,
    .vacation-row-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .vacation-header,
    .vacation-panel-head {
        display: grid;
        padding: 16px;
    }

    .vacation-actions,
    .vacation-row-actions {
        justify-content: stretch;
    }

    .vacation-button {
        width: 100%;
    }

    .vacation-form-grid,
    .vacation-data-row {
        grid-template-columns: 1fr;
        padding: 16px;
    }

.vacation-row-button {
        flex: 1;
    }
}

.overtime-page {
    display: grid;
    gap: 20px;
    padding: 0 0 28px;
}

.overtime-header,
.overtime-panel {
    border: 1px solid rgba(24, 38, 31, 0.10);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(24, 38, 31, 0.08);
}

.overtime-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.overtime-header h2,
.overtime-panel h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

.overtime-header h2 {
    font-size: 1.55rem;
}

.overtime-header p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.overtime-kicker,
.overtime-label {
    display: block;
    margin: 0 0 6px;
    color: #6c796f;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.overtime-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.overtime-button,
.overtime-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.overtime-button {
    min-height: 40px;
    border: 1px solid transparent;
    padding: 0 15px;
    font-size: 0.88rem;
}

.overtime-button-primary {
    background: #0f6f5c;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 111, 92, 0.20);
}

.overtime-button-secondary {
    border-color: rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
}

.overtime-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.09);
}

.overtime-panel h3 {
    font-size: 1.05rem;
}

.overtime-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef6f3;
    color: #0f6f5c;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.overtime-form {
    margin: 0;
}

.overtime-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    padding: 18px;
}

.overtime-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.overtime-field-employee_id {
    grid-column: span 2;
}

.overtime-field span {
    color: #52635d;
    font-size: 0.78rem;
    font-weight: 800;
}

.overtime-field input,
.overtime-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 7px;
    background: #fbfdfc;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    outline: none;
}

.overtime-field input:focus,
.overtime-field select:focus {
    border-color: #0f6f5c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 111, 92, 0.12);
}

.overtime-data-grid {
    display: grid;
    max-height: 560px;
    overflow: auto;
}

.overtime-data-row {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) 120px 110px 90px 100px 154px;
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.08);
}

.overtime-data-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 42px;
    background: #f2f6f4;
}

.overtime-data-head .overtime-data-cell {
    color: #5d6c65;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.overtime-data-row:hover {
    background: rgba(15, 111, 92, 0.08);
}

.overtime-data-cell {
    min-width: 0;
    color: #233b34;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overtime-data-name {
    font-weight: 850;
}

.overtime-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.overtime-row-button {
    min-width: 68px;
    min-height: 34px;
    border: 1px solid rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 850;
}

.overtime-row-button-danger {
    border-color: rgba(170, 50, 50, 0.24);
    background: #fff7f7;
    color: #9d2b2b;
}

@media (max-width: 900px) {
    .overtime-form-grid,
    .overtime-data-row {
        grid-template-columns: 1fr 1fr;
    }

    .overtime-field-employee_id,
    .overtime-row-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .overtime-header,
    .overtime-panel-head {
        display: grid;
        padding: 16px;
    }

    .overtime-actions,
    .overtime-row-actions {
        justify-content: stretch;
    }

    .overtime-button {
        width: 100%;
    }

    .overtime-form-grid,
    .overtime-data-row {
        grid-template-columns: 1fr;
        padding: 16px;
    }

.overtime-row-button {
        flex: 1;
    }
}

.data-movement-page {
    display: grid;
    gap: 20px;
    padding: 0 0 28px;
}

.data-movement-header,
.data-movement-panel {
    border: 1px solid rgba(24, 38, 31, 0.10);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(24, 38, 31, 0.08);
}

.data-movement-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.data-movement-header h2,
.data-movement-panel h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

.data-movement-header h2 {
    font-size: 1.55rem;
}

.data-movement-header p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.data-movement-kicker,
.data-movement-label {
    display: block;
    margin: 0 0 6px;
    color: #6c796f;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.data-movement-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.data-movement-button,
.data-movement-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.data-movement-button {
    min-height: 40px;
    border: 1px solid transparent;
    padding: 0 15px;
    font-size: 0.88rem;
}

.data-movement-button-primary {
    background: #0f6f5c;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 111, 92, 0.20);
}

.data-movement-button-secondary {
    border-color: rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
}

.data-movement-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.09);
}

.data-movement-panel h3 {
    font-size: 1.05rem;
}

.data-movement-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef6f3;
    color: #0f6f5c;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.data-movement-form {
    margin: 0;
}

.data-movement-form-grid {
    display: grid;
    grid-template-columns: 160px minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 14px;
    padding: 18px;
}

.data-movement-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.data-movement-field span {
    color: #52635d;
    font-size: 0.78rem;
    font-weight: 800;
}

.data-movement-field input,
.data-movement-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 7px;
    background: #fbfdfc;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    outline: none;
}

.data-movement-field input:focus,
.data-movement-field select:focus {
    border-color: #0f6f5c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 111, 92, 0.12);
}

.data-movement-grid {
    display: grid;
    max-height: 560px;
    overflow: auto;
}

.data-movement-row {
    display: grid;
    grid-template-columns: 150px minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) 154px;
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.08);
}

.data-movement-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 42px;
    background: #f2f6f4;
}

.data-movement-head .data-movement-cell {
    color: #5d6c65;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.data-movement-row:hover {
    background: rgba(15, 111, 92, 0.08);
}

.data-movement-cell {
    min-width: 0;
    color: #233b34;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-movement-name {
    font-weight: 850;
}

.data-movement-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.data-movement-row-button {
    min-width: 68px;
    min-height: 34px;
    border: 1px solid rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 850;
}

.data-movement-row-button-danger {
    border-color: rgba(170, 50, 50, 0.24);
    background: #fff7f7;
    color: #9d2b2b;
}

@media (max-width: 900px) {
    .data-movement-form-grid,
    .data-movement-row {
        grid-template-columns: 1fr 1fr;
    }

    .data-movement-row-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .data-movement-header,
    .data-movement-panel-head {
        display: grid;
        padding: 16px;
    }

    .data-movement-actions,
    .data-movement-row-actions {
        justify-content: stretch;
    }

    .data-movement-button {
        width: 100%;
    }

    .data-movement-form-grid,
    .data-movement-row {
        grid-template-columns: 1fr;
        padding: 16px;
    }

.data-movement-row-button {
        flex: 1;
    }
}

.conference-page {
    display: grid;
    gap: 20px;
    padding: 0 0 28px;
}

.conference-header,
.conference-panel {
    border: 1px solid rgba(24, 38, 31, 0.10);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(24, 38, 31, 0.08);
}

.conference-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.conference-header h2,
.conference-panel h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

.conference-header h2 {
    font-size: 1.55rem;
}

.conference-header p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.conference-kicker,
.conference-label {
    display: block;
    margin: 0 0 6px;
    color: #6c796f;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.conference-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.conference-button,
.conference-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.conference-button {
    min-height: 40px;
    border: 1px solid transparent;
    padding: 0 15px;
    font-size: 0.88rem;
}

.conference-button-primary {
    background: #0f6f5c;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 111, 92, 0.20);
}

.conference-button-secondary {
    border-color: rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
}

.conference-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.09);
}

.conference-panel h3 {
    font-size: 1.05rem;
}

.conference-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef6f3;
    color: #0f6f5c;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.conference-form {
    margin: 0;
}

.conference-form-grid {
    display: grid;
    grid-template-columns: 160px 220px minmax(260px, 1fr);
    gap: 14px;
    padding: 18px;
}

.conference-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.conference-field span {
    color: #52635d;
    font-size: 0.78rem;
    font-weight: 800;
}

.conference-field input,
.conference-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 7px;
    background: #fbfdfc;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    outline: none;
}

.conference-field input:focus,
.conference-field select:focus {
    border-color: #0f6f5c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 111, 92, 0.12);
}

.conference-grid {
    display: grid;
    max-height: 560px;
    overflow: auto;
}

.conference-row {
    display: grid;
    grid-template-columns: 150px 180px minmax(220px, 1fr) 154px;
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.08);
}

.conference-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 42px;
    background: #f2f6f4;
}

.conference-head .conference-cell {
    color: #5d6c65;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.conference-row:hover {
    background: rgba(15, 111, 92, 0.08);
}

.conference-cell {
    min-width: 0;
    color: #233b34;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conference-name {
    font-weight: 850;
}

.conference-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.conference-row-button {
    min-width: 68px;
    min-height: 34px;
    border: 1px solid rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 850;
}

.conference-row-button-danger {
    border-color: rgba(170, 50, 50, 0.24);
    background: #fff7f7;
    color: #9d2b2b;
}

@media (max-width: 900px) {
    .conference-form-grid,
    .conference-row {
        grid-template-columns: 1fr 1fr;
    }

    .conference-field-employee_id,
    .conference-row-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .conference-header,
    .conference-panel-head {
        display: grid;
        padding: 16px;
    }

    .conference-actions,
    .conference-row-actions {
        justify-content: stretch;
    }

    .conference-button {
        width: 100%;
    }

    .conference-form-grid,
    .conference-row {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .conference-row-button {
        flex: 1;
    }
}

@media (max-width: 1080px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: relative; min-height: auto; }
    .login-page {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .login-panel {
        order: 1;
        border-right: 0;
    }
    .login-aside {
        order: 2;
        min-height: 360px;
    }
}

@media (max-width: 720px) {
    .main { padding: 20px; }
    .topbar, .toolbar, .card-header { flex-direction: column; align-items: flex-start; }
    .toolbar-form { width: 100%; }
    .login-page {
        width: calc(100% - 24px);
        margin: 12px auto;
    }
    .login-panel { padding: 26px 20px; }
    .login-brand p { margin-left: 0; }
    .login-options, .login-footer { align-items: flex-start; flex-direction: column; }
    .login-aside { padding: 30px 20px; }
    .employee-form-compact { grid-template-columns: 1fr; }
    .employee-legacy-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legacy-pay-caption,
    .legacy-pay-toolbar,
    .legacy-pay-form-head,
    .legacy-pay-section {
        align-items: stretch;
        flex-direction: column;
    }

    .legacy-pay-caption {
        display: grid;
    }

    .legacy-pay-summary {
        justify-items: start;
    }

    .legacy-pay-toolbar {
        flex-wrap: wrap;
    }

    .legacy-pay-tool-save {
        margin-left: 0;
    }

    .legacy-pay-section,
    .legacy-pay-fields-main,
    .legacy-pay-fields-flags,
    .legacy-pay-fields-calc {
        grid-template-columns: 1fr;
    }
}

/* Ajustes globais para smartphone e tablet. */
html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
}

.main,
.content-card,
.hero-card,
.stat-card,
.field,
.toolbar-form,
.topbar,
.card-header {
    min-width: 0;
}

.content-card,
.hero-card,
.stat-card {
    overflow-wrap: anywhere;
}

.table-wrap,
.legacy-grid-panel,
.legacy-fgts-panel,
.legacy-pay-grid,
.cost-center-data-grid,
.job-function-data-grid,
.schedule-data-grid,
.status-data-grid,
.pay-item-data-grid,
.irrf-data-grid,
.bank-data-grid,
.payroll-data-grid,
.vacation-data-grid,
.overtime-data-grid,
.data-movement-grid,
.conference-grid {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.payroll-page {
    display: grid;
    gap: 20px;
    padding-bottom: 28px;
}

.payroll-header,
.payroll-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

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

.payroll-header p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.payroll-kicker,
.payroll-label {
    display: block;
    margin: 0 0 6px;
    color: #6c796f;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.payroll-actions,
.payroll-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.payroll-button,
.payroll-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.payroll-button {
    min-height: 40px;
    border: 1px solid transparent;
    padding: 0 15px;
    font-size: 0.88rem;
}

.payroll-button-primary {
    background: #0f6f5c;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 111, 92, 0.20);
}

.payroll-button-secondary {
    border-color: rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
}

.payroll-panel {
    overflow: hidden;
    border: 1px solid rgba(24, 38, 31, 0.09);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(20, 45, 39, 0.06);
}

.payroll-panel-head {
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.09);
}

.payroll-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef6f3;
    color: #0f6f5c;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.payroll-form {
    margin: 0;
}

.payroll-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    padding: 18px;
}

.payroll-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.payroll-field span {
    color: #52635d;
    font-size: 0.78rem;
    font-weight: 800;
}

.payroll-field input,
.payroll-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(24, 38, 31, 0.14);
    border-radius: 7px;
    background: #fbfdfc;
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    outline: none;
}

.payroll-data-row {
    display: grid;
    grid-template-columns: 110px minmax(180px, 1fr) 120px 100px 100px 110px 154px;
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(24, 38, 31, 0.08);
}

.payroll-data-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 42px;
    background: #f2f6f4;
}

.payroll-data-head .payroll-data-cell {
    color: #5d6c65;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.payroll-data-cell {
    min-width: 0;
    color: #233b34;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payroll-data-name {
    font-weight: 850;
}

.payroll-row-button {
    min-width: 68px;
    min-height: 34px;
    border: 1px solid rgba(24, 38, 31, 0.13);
    background: #f8faf9;
    color: #173730;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 850;
}

.payroll-row-button-danger {
    border-color: rgba(170, 50, 50, 0.24);
    background: #fff7f7;
    color: #9d2b2b;
}

@media (max-width: 900px) {
    .payroll-form-grid,
    .payroll-data-row {
        grid-template-columns: 1fr 1fr;
    }

    .payroll-row-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1080px) {
    body {
        background: linear-gradient(180deg, #f9f5ed 0%, #efe7d8 100%);
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        padding: 18px;
        gap: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .brand-logo {
        width: 54px;
    }

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

    .nav-link {
        min-height: 44px;
        border-radius: 10px;
        padding: 11px 12px;
    }

    .nav-section {
        min-width: 0;
    }

    .nav-sub {
        padding-left: 0;
    }

    .nav-sub a {
        min-height: 38px;
        padding: 9px 10px;
    }

    .sidebar-note {
        display: none;
    }

    .main {
        padding: 24px;
    }

    .topbar {
        align-items: stretch;
    }

    .topbar-chip {
        width: fit-content;
        max-width: 100%;
    }

    .login-page {
        min-height: auto;
    }

    .login-panel {
        min-height: auto;
    }

    .login-logo {
        width: 58px;
    }

    .login-aside-logo {
        width: min(210px, 82vw);
    }

    .login-aside h2 {
        font-size: clamp(1.9rem, 7vw, 3.3rem);
    }

    .legacy-toolbar,
    .legacy-row,
    .legacy-company-toolbar,
    .compact-table,
    .data-table {
        min-width: max-content;
    }
}

@media (max-width: 720px) {
    :root {
        --radius: 14px;
    }

    body {
        font-size: 15px;
    }

    .sidebar {
        padding: 14px;
    }

    .brand {
        align-items: flex-start;
    }

    .brand-logo {
        width: 46px;
    }

    .brand strong {
        font-size: 1rem;
    }

    .brand span {
        font-size: 0.82rem;
    }

    .nav {
        grid-template-columns: 1fr;
        max-height: 52vh;
        overflow: auto;
        padding-right: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        border-radius: 8px;
    }

    .main {
        padding: 14px;
    }

    .topbar {
        gap: 12px;
        margin-bottom: 14px;
    }

    .topbar h1 {
        font-size: 1.45rem;
        line-height: 1.16;
    }

    .topbar-chip {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }

    .hero-card,
    .content-card {
        padding: 16px;
        margin-bottom: 14px;
    }

    .hero-grid,
    .card-grid,
    .dashboard-charts,
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .dashboard-stat,
    .dashboard-chart {
        border-radius: 10px;
        padding: 14px;
    }

    .dashboard-stat {
        min-height: 96px;
    }

    .dashboard-bar-label {
        font-size: 0.82rem;
    }

    .stat-card {
        padding: 14px;
        border-radius: 12px;
    }

    .stat-card strong {
        font-size: 1.45rem;
    }

    .toolbar,
    .card-header,
    .form-actions,
    .actions {
        width: 100%;
        align-items: stretch;
    }

    .form-actions,
    .actions {
        flex-direction: column;
    }

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

    .toolbar-form input,
    .toolbar-form select,
    input,
    select,
    textarea {
        width: 100%;
        min-width: 0;
    }

    .button-primary,
    .button-secondary,
    .button-link {
        width: 100%;
        min-height: 44px;
    }

    .button-link {
        padding: 10px 8px;
        border-radius: 10px;
        background: rgba(24, 38, 31, 0.06);
    }

    .data-table th,
    .data-table td {
        padding: 10px 9px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .login-body {
        overflow-x: hidden;
    }

    .login-page {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .login-panel {
        min-height: auto;
        justify-content: flex-start;
        padding: 24px 16px;
    }

    .login-logo {
        width: 54px;
    }

    .login-aside-logo {
        width: min(198px, 86vw);
        margin-bottom: 2px;
    }

    .login-brand {
        margin-bottom: 24px;
        text-align: left;
    }

    .login-brand p {
        margin: 4px 0 0;
    }

    .login-form {
        gap: 14px;
        max-width: none;
    }

    .login-options,
    .login-footer {
        gap: 12px;
    }

    .login-aside {
        min-height: auto;
        padding: 24px 16px;
    }

    .login-aside h2 {
        font-size: 1.8rem;
        line-height: 1.12;
    }

    .login-highlights {
        display: grid;
        grid-template-columns: 1fr;
    }

    .payroll-header,
    .payroll-panel-head {
        display: grid;
        padding: 16px;
    }

    .payroll-actions,
    .payroll-row-actions {
        justify-content: stretch;
    }

    .payroll-button {
        width: 100%;
    }

    .payroll-form-grid,
    .payroll-data-row {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .payroll-row-button {
        flex: 1;
    }

    .employee-legacy-row,
    .legacy-row,
    .legacy-toolbar,
    .legacy-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .legacy-company-form,
    .legacy-pay-window {
        transform: none;
        width: 100%;
        min-width: 0;
        margin-bottom: 0;
        overflow-x: hidden;
    }

    .legacy-pay-caption,
    .legacy-pay-toolbar,
    .legacy-pay-form-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .legacy-pay-tool {
        flex: 1 1 130px;
    }

    .legacy-company-toolbar {
        min-width: 720px;
    }

    .legacy-pay-grid table {
        min-width: 920px;
    }
}

@media (max-width: 420px) {
    .main {
        padding: 10px;
    }

    .sidebar {
        padding: 12px;
    }

    .content-card,
    .hero-card {
        padding: 12px;
    }

    .eyebrow,
    .login-kicker {
        letter-spacing: 0.06em;
    }
}
