:root { color-scheme: light; --blue: #123d66; --blue-2: #1f5e91; --gold: #d6a63e; --ink: #183044; --muted: #617487; --line: #dbe4eb; --paper: #fff; --bg: #f2f6f9; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); }
.system-header { position: relative; min-height: 76px; padding: 14px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; background: linear-gradient(120deg, #0d3153, var(--blue-2)); border-bottom: 4px solid var(--gold); }
.system-header strong { display: block; font-size: 1.45rem; letter-spacing: .03em; }
.system-header span { opacity: .78; font-size: .86rem; }
.system-header nav { display: flex; align-items: center; gap: 8px; }
.system-header a { color: white; text-decoration: none; padding: 8px 12px; border-radius: 6px; }
.system-header a:hover { background: #ffffff1c; }
.session-status { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; width: min(450px, 34vw); text-align: center; transform: translate(-50%, -50%); pointer-events: none; }
.session-status strong { font-size: .86rem; line-height: 1.25; letter-spacing: 0; }
.session-status span { margin-top: 3px; color: #e3edf5; font-size: .76rem; opacity: 1; }
.session-dialog { width: min(520px, calc(100% - 32px)); padding: 28px; color: var(--ink); background: white; border: 0; border-radius: 12px; box-shadow: 0 24px 80px #071e3370; }
.session-dialog::backdrop { background: #071e3388; }
.session-dialog h2 { margin: 0 0 10px; color: var(--blue); font-size: 1.6rem; }
.session-dialog p { margin: 8px 0; }
.session-countdown { color: #8a3c32; font-weight: 700; }
.session-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.system-layout { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.system-sidebar { min-height: calc(100vh - 76px); display: flex; flex-direction: column; padding: 26px 12px 18px; background: white; border-right: 1px solid var(--line); }
.sidebar-caption { margin: 0 10px 12px; color: #83909c; font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.sidebar-user { margin: 0 4px 18px; padding: 12px 14px; color: white; background: var(--blue); border-radius: 8px; }
.sidebar-user strong, .sidebar-user span { display: block; }
.sidebar-user strong { overflow: hidden; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user span { margin-top: 3px; color: #d9e7f2; font-size: .72rem; line-height: 1.25; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-nav a { padding: 10px 13px; color: var(--ink); text-decoration: none; border-radius: 7px; }
.sidebar-nav a:hover { color: var(--blue); background: #edf3f7; }
.sidebar-nav a.current { color: white; background: #315281; font-weight: 700; }
.sidebar-logout { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.sidebar-logout-button { width: 100%; min-height: 40px; color: #8a2929; background: white; border-color: #dfbcbc; text-align: left; }
.sidebar-logout-button:hover { color: white; background: #a83232; border-color: #a83232; }
.sidebar-pegasus { display: flex; flex-direction: column; align-items: center; padding: 14px 6px 0; text-align: center; }
.sidebar-pegasus img { display: block; width: 92px; height: 92px; margin: 0 auto 7px; object-fit: contain; mix-blend-mode: multiply; }
.sidebar-pegasus strong { color: var(--blue); font-size: .9rem; letter-spacing: .05em; }
.sidebar-pegasus span { color: var(--muted); font-size: .78rem; line-height: 1.35; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 72px; }
main.wide-report { width: min(1540px, calc(100% - 32px)); }
main.wide-recesses { width: min(1540px, calc(100% - 32px)); }
main.wide-terms { width: min(1540px, calc(100% - 32px)); }
main.wide-payments { width: min(1680px, calc(100% - 32px)); }
main.wide-groups { width: calc(100% - 32px); max-width: none; margin-left: 16px; margin-right: 16px; }
main.wide-groups .record-form fieldset { padding: 16px; }
main.wide-groups .permission-table-wrap { overflow-x: hidden; }
main.wide-groups .group-permissions-table { width: 100%; table-layout: fixed; font-size: .84rem; }
main.wide-groups .group-permissions-table th:first-child { width: 20%; }
main.wide-groups .group-permissions-table th:not(:first-child) { width: 11.43%; }
main.wide-groups .group-permissions-table th,
main.wide-groups .group-permissions-table td { padding: 9px 6px; text-align: center; overflow-wrap: anywhere; }
main.wide-groups .group-permissions-table th:first-child { text-align: left; }
main.wide-groups .permission-check { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .78rem; }
main.wide-groups .permission-check input { width: 22px; min-width: 22px; height: 22px; min-height: 22px; margin: 0; padding: 0; }
.hero { padding: 30px 0 18px; max-width: 760px; }
.eyebrow { margin: 0 0 6px; color: var(--blue-2); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; }
.hero > p:last-child { color: var(--muted); font-size: 1.08rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.card { min-height: 190px; padding: 24px; color: inherit; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 25px #1830440b; }
.card > span { color: var(--gold); font-weight: 800; }
.card h2 { margin: 28px 0 6px; }
.card p { margin: 0; color: var(--muted); }
.card:not(.disabled):hover { border-color: var(--blue-2); transform: translateY(-2px); }
.disabled { opacity: .62; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { font-size: 2.2rem; }
.search { display: flex; gap: 8px; }
input, button { min-height: 42px; border-radius: 6px; border: 1px solid #becbd5; font: inherit; }
select { min-height: 42px; width: 100%; padding: 8px 12px; border-radius: 6px; border: 1px solid #becbd5; background: white; font: inherit; }
input { width: min(330px, 55vw); padding: 8px 12px; background: white; }
button { padding: 8px 18px; color: white; background: var(--blue-2); border-color: var(--blue-2); cursor: pointer; }
.user-name { margin-left: 10px; padding-left: 18px; border-left: 1px solid #ffffff38; font-size: .9rem; }
.logout-form { margin: 0; }
.link-button { min-height: auto; padding: 8px 12px; background: transparent; border-color: #ffffff40; }
.login-page { min-height: 100vh; background: linear-gradient(130deg, #0b2d4d 0 45%, #eaf0f4 45% 100%); }
.login-shell { min-height: 100vh; width: min(1000px, calc(100% - 36px)); display: grid; grid-template-columns: 1fr 430px; align-items: center; gap: clamp(40px, 9vw, 120px); padding: 40px 0; }
.login-brand { color: white; }
.login-city-logo { display: block; width: 112px; height: 112px; margin: 0 0 18px; object-fit: contain; background: white; border-radius: 10px; box-shadow: 0 12px 30px #061d3245; }
.login-brand h1 { font-size: clamp(3.8rem, 9vw, 7rem); letter-spacing: -.04em; }
.login-brand > p:last-child { max-width: 360px; color: #d3e0ea; font-size: 1.1rem; }
.light { color: #e4b955; }
.login-card { padding: 36px; background: white; border-radius: 14px; box-shadow: 0 26px 80px #071e3350; }
.login-card h2 { margin: 0; font-size: 2rem; }
.login-help { margin: 6px 0 24px; color: var(--muted); }
.login-form { display: grid; gap: 8px; }
.login-form label { margin-top: 8px; color: var(--blue); font-weight: 700; }
.login-form input { width: 100%; }
.login-form button { margin-top: 16px; }
.login-pegasus { display: flex; flex-direction: column; align-items: center; margin-top: 24px; padding-top: 20px; text-align: center; border-top: 1px solid var(--line); }
.login-pegasus img { width: 92px; height: 92px; margin-bottom: 8px; object-fit: contain; }
.login-pegasus strong { color: var(--blue); font-size: 1.08rem; letter-spacing: .06em; }
.login-pegasus span { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.alert { margin: 0 0 16px; padding: 11px 13px; color: #7d2020; background: #fff0f0; border: 1px solid #efc6c6; border-radius: 7px; }
.heading-actions, .actions, .form-actions { display: flex; align-items: center; gap: 10px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 8px 16px; color: white; background: var(--blue-2); border: 1px solid var(--blue-2); border-radius: 6px; text-decoration: none; white-space: nowrap; }
.button.secondary { color: var(--blue); background: white; border-color: #b7c7d3; }
.button.danger, button.danger { color: white; background: #a83232; border-color: #a83232; }
.danger-link { color: #a83232 !important; }
.actions a { color: var(--blue-2); font-weight: 600; }
.status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.status.active { color: #17603b; background: #e4f5eb; }.status.inactive { color: #8a3c32; background: #fae9e6; }
.compact h1 { font-size: 2.2rem; }
.record-form { display: grid; gap: 18px; }
.record-form fieldset { margin: 0; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.record-form legend { padding: 0 8px; color: var(--blue); font-size: 1.05rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-grid label { display: grid; align-content: start; gap: 6px; color: var(--blue); font-weight: 700; }
.form-grid input { width: 100%; font-weight: 400; }
.checkbox-field { align-content: center !important; }
.checkbox-field input { width: auto; min-height: auto; margin: 8px 0 0; }
.span-2 { grid-column: span 2; }
.form-actions { justify-content: flex-end; margin-top: 4px; }
.notice { margin-bottom: 18px; padding: 12px 15px; color: #17603b; background: #e4f5eb; border: 1px solid #b8dfc8; border-radius: 7px; }
.detail-card { padding: 26px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.detail-grid div { padding: 15px; border-bottom: 1px solid var(--line); }
.detail-grid dt { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.detail-grid dd { margin: 4px 0 0; font-weight: 600; }
.filters { display: grid; grid-template-columns: minmax(220px, 1fr) 190px auto; align-items: end; gap: 12px; margin-bottom: 8px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.filters label { display: grid; gap: 5px; color: var(--blue); font-weight: 700; }
.filters input { width: 100%; }
.result-count { margin: 12px 0; color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 20px; }
.pagination a { color: var(--blue-2); font-weight: 700; }
.confirm-card { max-width: 760px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.dependency-list { display: grid; gap: 6px; margin: 16px 0; }
.warning-text { color: #8a3c32; font-weight: 600; }
.field-help { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.subnav { display: flex; gap: 8px; margin: -6px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 8px 12px; color: var(--muted); text-decoration: none; border-radius: 6px; }
.subnav a.current { color: white; background: var(--blue-2); }
.aux-filter { grid-template-columns: minmax(220px, 1fr) auto; }
.narrow-form { max-width: 820px; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.card-links a { padding: 8px 11px; color: var(--blue); background: #f4f8fb; border: 1px solid #cbd9e3; border-radius: 6px; text-decoration: none; font-size: .86rem; font-weight: 700; }
.card-links a:hover { color: white; background: var(--blue-2); border-color: var(--blue-2); }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--blue); background: #edf3f7; font-size: .82rem; text-transform: uppercase; }
.message { max-width: 720px; margin: 70px auto; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.message h1 { font-size: 1.8rem; }
.print-only { display: none; }
.report-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.report-filters { grid-template-columns: repeat(4, minmax(120px, 1fr)) auto; }
.report-filter-summary { color: var(--muted); }
.report-total { text-align: right; font-size: 1.05rem; }
main.wide-report .report-table { min-width: 1420px; table-layout: auto; font-size: .9rem; }
main.wide-report .report-table th,
main.wide-report .report-table td { padding-left: 12px; padding-right: 12px; white-space: nowrap; }
main.wide-report .relation-payment-table { min-width: 0; width: 100%; table-layout: auto; }
main.wide-report .relation-payment-table th,
main.wide-report .relation-payment-table td { padding: 10px 9px; white-space: nowrap; }
main.wide-report .relation-payment-table .workplace-group th { padding: 9px 12px; color: white; background: #315f99; font-size: .86rem; text-align: left; }
.report-table .workplace-group th { padding: 9px 12px; color: white; background: #315f99; font-size: .86rem; text-align: left; }
main.wide-report .relation-payment-table .workplace-subtotal td { color: var(--blue); background: #e4edf4; font-weight: 800; }
main.wide-report .relation-payment-table .workplace-subtotal td:first-child { text-align: right; }
main.wide-recesses .recesses-table { min-width: 1420px; table-layout: auto; font-size: .94rem; }
main.wide-recesses .recesses-table th,
main.wide-recesses .recesses-table td { padding-left: 12px; padding-right: 12px; white-space: nowrap; }
main.wide-recesses .recesses-table .actions { flex-wrap: nowrap; }
main.wide-terms .terms-table { min-width: 1500px; table-layout: auto; font-size: .9rem; }
main.wide-terms .terms-table th,
main.wide-terms .terms-table td { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
main.wide-terms .terms-table .actions { flex-wrap: nowrap; }
main.wide-terms .terms-table tr.term-expiring td { background: #fde8e8; }
main.wide-terms .terms-table tr.term-expiring:hover td { background: #fbdede; }
main.wide-terms .terms-table td.expiry-date { color: #8a2929; font-weight: 800; }
main.wide-payments .filters { grid-template-columns: minmax(360px, 1fr) 130px 140px minmax(220px, 280px); }
main.wide-payments .payments-table { min-width: 1320px; table-layout: auto; font-size: .94rem; }
main.wide-payments .payments-table th,
main.wide-payments .payments-table td { padding-left: 11px; padding-right: 11px; white-space: nowrap; }
main.wide-payments .payments-table th:nth-child(2),
main.wide-payments .payments-table td:nth-child(2) { min-width: 260px; }
main.wide-payments .payments-table .actions { flex-wrap: nowrap; }
th.sortable-column { cursor: pointer; user-select: none; }
th.sortable-column::after { content: " ⇅"; color: #6f7e8d; font-size: .78em; }
th.sortable-column.sorted-ascending::after { content: " ↑"; color: #173f6b; }
th.sortable-column:focus-visible { outline: 2px solid #315f99; outline-offset: -3px; }
@media print { .system-header, .no-print { display: none !important; } body, main { background: white; } main { width: 100%; padding: 0; } .report-heading { margin-bottom: 10px; } .report-heading h1 { font-size: 22px; } .report-heading p { margin: 4px 0; } .print-only { display: flex; justify-content: space-between; } .report-print-brand { padding-bottom: 8px; border-bottom: 2px solid #123d66; } .table-wrap { overflow: visible; border: 0; } .report-table { font-size: 9px; } .report-table th, .report-table td { padding: 5px 6px; } .report-table thead { display: table-header-group; } .report-table tr { break-inside: avoid; } @page { size: A4 landscape; margin: 12mm; } }
.error { border-left: 5px solid #b43b3b; }
@media (max-width: 1100px) { .session-status { position: static; width: auto; margin-left: auto; transform: none; } }
@media (max-width: 760px) { .system-header, .page-heading { align-items: flex-start; flex-direction: column; } .session-status { align-items: flex-start; width: 100%; margin-left: 0; text-align: left; } .system-layout { grid-template-columns: 180px minmax(0, 1fr); } .system-sidebar { padding-left: 8px; padding-right: 8px; } .heading-actions { flex-wrap: wrap; } .cards, .form-grid, .detail-grid, .filters { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } main { padding-top: 24px; } .login-page { background: #eaf0f4; } .login-shell { display: block; padding: 30px 0; } .login-brand { color: var(--blue); margin-bottom: 24px; } .login-city-logo { width: 90px; height: 90px; } .login-brand h1 { font-size: 3.5rem; } .login-brand > p:last-child { color: var(--muted); } .login-card { padding: 26px; box-shadow: 0 14px 45px #18304422; } }

