:root{color-scheme:dark;--bg:#101219;--surface:#191d27;--ink:#f1f2f7;--muted:#a6a9bd;--line:#303440;--purple:#a88bfa;--purple-soft:#302642;--green:#77d4ad;--red:#f28a9d;font-family:Inter,"Segoe UI",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,a:focus-visible{outline:3px solid #a88bfa;outline-offset:3px}input:focus,select:focus{outline:none;border-color:#a88bfa;box-shadow:0 0 0 3px #7553d80d}[hidden]{display:none!important}.rail{position:fixed;inset:0 auto 0 0;width:72px;background:var(--surface);border-right:1px solid var(--line);display:flex;align-items:center;flex-direction:column;padding:30px 0;z-index:2}.brand{color:var(--purple);display:grid;place-items:center;width:40px;height:40px}.brand svg{width:32px;height:32px}.rail-line{height:1px;width:26px;background:var(--line);margin:30px 0 22px}.rail-button{display:grid;place-items:center;border:0;border-radius:12px;width:42px;height:42px;color:var(--purple);background:var(--purple-soft)}.rail-bottom{margin-top:auto;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;background:#302642;color:#bba1ff;font-size:10px;font-weight:700}.sidebar{position:fixed;inset:0 auto 0 72px;width:248px;background:var(--surface);border-right:1px solid var(--line);padding:35px 20px 20px;display:flex;flex-direction:column;z-index:1}.side-heading{display:flex;justify-content:space-between;align-items:center;padding:0 9px;margin-bottom:26px}.side-heading strong{font-size:20px;letter-spacing:-.5px}.version{font-size:10px;color:var(--muted);background:var(--bg);padding:4px 7px;border-radius:6px}.side-search{display:flex;align-items:center;background:var(--bg);border-radius:11px;padding:10px 12px;color:var(--muted);gap:8px}.side-search svg{width:16px;height:16px}.side-search input{width:100%;min-width:0;border:0;background:none;padding:0;font-size:11px;color:var(--ink);box-shadow:none}.nav-label{font-size:10px;font-weight:650;letter-spacing:1.3px;color:#a6a9bd;margin:33px 12px 12px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;padding:13px 12px;border:0;background:none;color:#bec1d1;border-radius:10px;margin-bottom:7px;text-align:left;font-weight:550;font-size:12px;min-height:44px}.nav-item svg{width:18px;height:18px}.nav-item.selected{background:var(--purple-soft);color:var(--purple)}.nav-item:hover{background:#202430}.nav-count{margin-left:auto;font-size:10px;font-weight:700;background:#302642;padding:3px 7px;border-radius:6px}.side-footer{display:flex;align-items:center;gap:10px;margin-top:auto;padding:18px 8px 0;border-top:1px solid var(--line)}.tiny-logo{width:32px;height:32px;border-radius:10px;background:var(--purple);display:grid;place-items:center;color:white;font-size:10px;font-weight:700}.side-footer strong{font-size:12px;display:block}.side-footer small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.workspace{margin-left:320px;min-height:100vh}.topbar{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 44px;background:#171a23eb;gap:20px}.breadcrumb{font-size:11px;color:var(--muted)}.breadcrumb span{margin:0 13px;color:#babcce}.breadcrumb strong{font-weight:500;color:#bec1d1}.view-switch{display:flex;align-items:center;gap:12px}.view-switch>span{font-size:10px;color:var(--muted)}select{border:1px solid #303440;border-radius:9px;background:var(--surface);color:#bec1d1;padding:10px 32px 10px 12px;font-size:11px;max-width:100%}.view-switch select{max-width:270px}.page{padding:42px 44px 35px;max-width:1550px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:31px}.eyebrow{font-size:9px;letter-spacing:1.6px;color:var(--muted);font-weight:650}h1{font-size:31px;letter-spacing:-1.2px;line-height:1.25;margin:10px 0 12px;font-weight:680}.heading-dot{color:var(--purple)}.page-heading p,.card-top p{color:var(--muted);font-size:11px;line-height:1.6;margin:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:10px;min-height:42px;padding:10px 16px;font-size:11px;font-weight:650;white-space:nowrap}.button svg{width:16px;height:16px}.primary{background:var(--purple);color:#fff;box-shadow:0 4px 9px #7553d824}.primary:hover{background:#9677e5}.secondary{border:1px solid #303440;background:var(--surface);color:#bec1d1}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:28px}.stat{position:relative;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:22px 24px;box-shadow:0 5px 14px #00000022}.stat-label{color:#bec1d1;display:block;font-size:11px}.stat strong{display:block;font-size:32px;font-weight:650;letter-spacing:-1px;margin:13px 0 6px}.stat-note{font-size:10px;color:#a6a9bd}.stat-icon{position:absolute;right:23px;top:22px;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:17px}.purple{background:#302642;color:var(--purple)}.green{background:#20392f;color:var(--green)}.amber{background:#3a3020;color:#e2ba75}.card{border:1px solid var(--line);background:var(--surface);border-radius:17px;overflow:hidden;box-shadow:0 7px 20px #00000022}.card-top{padding:24px 26px 19px;display:flex;justify-content:space-between;align-items:center}h2{font-size:16px;font-weight:650;letter-spacing:-.3px;margin:0 0 8px}.subtle-count{margin-left:7px;font-size:10px;background:var(--bg);color:var(--muted);padding:4px 7px;border-radius:6px;vertical-align:middle}.filters{display:flex;align-items:center;gap:12px;padding:4px 26px 22px}.search{display:flex;align-items:center;gap:10px;border:1px solid #303440;border-radius:10px;padding:10px 12px;min-width:200px;max-width:330px;flex:1;color:#a6a9bd}.search svg{width:16px;height:16px}.search input{border:0;background:none;outline:none;width:100%;font-size:11px;color:var(--ink);box-shadow:none;padding:0}.live-status{margin-left:auto;color:#a6a9bd;font-size:9px;display:flex;align-items:center;gap:6px;white-space:nowrap}.live-status i{width:5px;height:5px;border-radius:50%;background:#84b9a7}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}thead{background:#202430}th{font-size:8px;color:#a6a9bd;font-weight:650;letter-spacing:.8px;padding:14px 20px;white-space:nowrap}th:first-child,td:first-child{padding-left:26px}th:last-child,td:last-child{padding-right:26px}td{padding:19px 20px;border-bottom:1px solid #303440;font-size:11px;color:#bec1d1;white-space:nowrap}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#202430}.person{display:flex;align-items:center;gap:12px;color:var(--ink)}.avatar{width:34px;height:34px;border-radius:10px;background:#302642;display:grid;place-items:center;color:#bba1ff;font-size:10px;font-weight:650;flex-shrink:0}.person-name{font-weight:600;white-space:normal;min-width:130px}.person-id{display:block;color:#a6a9bd;font-size:9px;font-weight:400;margin-top:4px}.grade-tag{display:inline-flex;border-radius:6px;padding:6px 9px;background:var(--purple-soft);color:#bba1ff;font-size:10px;font-weight:600}.grade-tag.none{background:#202430;color:#a6a9bd}.row-action{border:1px solid #303440;background:var(--surface);border-radius:7px;color:#bba1ff;padding:7px 10px;font-size:10px;white-space:nowrap}.row-action:hover{background:var(--purple-soft)}.empty{text-align:center!important;padding:50px 20px!important;white-space:normal;color:var(--muted);line-height:1.6}.table-footer{border-top:1px solid var(--line);padding:15px 26px;display:flex;justify-content:space-between;align-items:center;color:#a6a9bd;font-size:9px}.pagination{display:flex;align-items:center;gap:12px}.pagination button{width:28px;height:28px;background:var(--surface);border:1px solid #303440;border-radius:7px;color:#a6a9bd}.pagination span{background:var(--purple-soft);color:var(--purple);border-radius:7px;min-width:28px;line-height:28px;text-align:center;font-weight:650}.page-note{display:flex;gap:9px;align-items:flex-start;font-size:10px;color:#a6a9bd;margin:20px 2px;line-height:1.6}.note-icon{border:1px solid #b6b7c5;border-radius:50%;width:14px;height:14px;display:inline-grid;place-items:center;flex-shrink:0;font-size:9px}.error-banner,.success-banner,.form-error{padding:12px 15px;border-radius:9px;font-size:11px;line-height:1.6;margin-bottom:18px}.error-banner,.form-error{color:#ef8297;background:#3c232d;border:1px solid #70404b}.success-banner{background:#20392f;color:#8dddb7}.field-error{font-size:11px;color:var(--red);padding:0 26px}.user-dialog{border:0;border-radius:19px;padding:0;width:520px;max-width:calc(100% - 32px);max-height:90vh;box-shadow:0 25px 80px #00000055;color:var(--ink)}.user-dialog::backdrop{background:#00000099;backdrop-filter:blur(3px)}.dialog-head{padding:28px 30px 22px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.dialog-head h2{font-size:22px;margin:10px 0 6px}.dialog-head p{font-size:11px;color:var(--muted);margin:0}.icon-button{width:30px;height:30px;background:#202430;border:0;border-radius:8px;font-size:22px;color:#a6a9bd}.dialog-body{padding:24px 30px 30px}.section-heading,.editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-heading h3,.editor-head h3{font-size:12px;font-weight:650;margin:0}.section-heading>span{font-size:10px;color:var(--muted)}.history{margin:16px 0 24px;max-height:210px;overflow:auto}.history-item{padding:13px 15px;border:1px solid #303440;border-radius:9px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:12px}.history-item.current{border-color:#cfc2ef;background:#202430}.history-item p{font-size:10px;color:var(--muted);margin:7px 0 0}.history-empty{font-size:11px;color:var(--muted);padding:16px;background:#202430;border-radius:9px}.text-button{background:none;border:0;color:var(--purple);font-size:10px;padding:4px}.editor-head{margin-bottom:16px}form label:not(.checkbox-label){display:flex;flex-direction:column;gap:8px;font-size:10px;color:#bec1d1;font-weight:550}form input:not([type=checkbox]),form select{width:100%;border:1px solid #303440;border-radius:9px;min-height:42px;padding:10px 12px;background:var(--surface);color:var(--ink);font-size:12px}form input:disabled{background:#202430;color:var(--muted)}.date-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:11px;color:#bec1d1;cursor:pointer}.checkbox-label input{accent-color:var(--purple)}.form-hint{font-size:10px;color:#a6a9bd;margin:13px 0 18px}.full{width:100%}.toast{position:fixed;bottom:25px;right:25px;background:#302642;color:white;padding:13px 20px;border-radius:12px;box-shadow:0 8px 25px #00000055;font-size:12px;z-index:10}.grade-directory{max-width:900px}.directory-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 26px;border-top:1px solid var(--line)}.directory-row small{color:var(--muted);font-size:10px}.grade-create{padding:24px 26px;display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end;border-top:1px solid var(--line)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1550px){.page{padding-top:50px}td{font-size:12px}}@media(max-width:1150px){.sidebar{width:216px;padding-left:14px;padding-right:14px}.workspace{margin-left:288px}.topbar{padding:0 25px}.page{padding:30px 25px}.view-switch>span{display:none}.stats{gap:12px}.stat{padding:18px}.stat-icon{right:16px;top:16px}.live-status{display:none}.filters{flex-wrap:wrap}.page-heading p{max-width:320px}.stat-label{max-width:130px;line-height:1.5}.grade-create{grid-template-columns:1fr 1fr}.grade-create .button{grid-column:span 2}}@media(max-width:800px){.rail{width:56px;padding-top:20px}.sidebar{left:56px;width:190px;padding:25px 12px}.workspace{margin-left:246px}.side-heading{padding:0 5px}.side-heading strong{font-size:17px}.nav-item{font-size:11px;gap:8px;padding:11px 8px}.topbar{height:auto;min-height:80px;flex-wrap:wrap;padding:18px 20px;gap:12px}.page{padding:25px 20px}h1{font-size:26px}.stats{grid-template-columns:1fr}.stat{display:grid;grid-template-columns:1fr 70px;gap:5px;padding:16px 19px}.stat strong{grid-column:2;grid-row:1/3;margin:0;font-size:28px;align-self:center}.stat-icon{display:none}.page-heading{align-items:flex-start}.page-heading .button{padding:10px;min-width:38px}.card-top,.filters{padding-left:18px;padding-right:18px}.filters{gap:10px}.search{max-width:100%;min-width:140px}th:first-child,td:first-child{padding-left:18px}}@media(max-width:580px){.rail{display:none}.sidebar{position:relative;inset:auto;width:100%;height:auto;padding:18px 20px;border-right:0;border-bottom:1px solid var(--line)}.side-heading{margin-bottom:12px}.side-search,.nav-label,.side-footer{display:none}#settings-nav{display:flex;gap:8px}.nav-item{margin:0;width:auto;flex:1}.workspace{margin-left:0}.topbar{min-height:65px;padding:15px 20px}.breadcrumb{display:none}.view-switch{width:100%}.view-switch>span{display:block}.view-switch select{flex:1;max-width:none}.page{padding:25px 16px}.eyebrow{font-size:8px}h1{font-size:26px}.page-heading p{font-size:10px}.page-heading .secondary{font-size:0}.stats{grid-template-columns:repeat(3,1fr);gap:7px}.stat{display:block;padding:14px 10px}.stat-label{font-size:9px;min-height:28px}.stat strong{font-size:24px;margin:8px 0 5px}.stat-note{font-size:8px}.page-heading{gap:10px;margin-bottom:22px}.card-top h2{font-size:15px}.dialog-head{padding:23px 22px}.dialog-body{padding:22px}.date-fields{gap:10px}.grade-create{grid-template-columns:1fr}.grade-create .button{grid-column:1}.page-note{font-size:9px}}

.table-scroll{position:relative}
.report-filter-panel .button[data-more]{background:var(--purple-soft);border:1px solid var(--purple);color:var(--purple);box-shadow:0 4px 12px #a88bfa24}
.report-filter-panel .button[data-more]:hover{background:#3b2f50}
.report-filter-panel .button[data-more][aria-expanded="true"]{background:#3b2f50}

.user-dialog{width:760px}.history{position:relative;border:1px solid var(--line);border-radius:10px;max-height:260px}.history-table th{font-size:8px;padding:12px}.history-table td{padding:14px 12px;font-size:11px}.history-table th:first-child,.history-table td:first-child{padding-left:16px}.history-table th:last-child,.history-table td:last-child{padding-right:16px}.history-table .grade-tag{white-space:normal;max-width:220px}.history-table tr.current{background:#202430}.history-table .history-empty{text-align:center;white-space:normal;padding:24px 16px}.history-actions{display:flex;align-items:center;gap:14px}.history-actions>span{font-size:10px;color:var(--muted)}.period-status{font-size:10px;white-space:nowrap}.period-status.active{color:var(--green)}.period-status.planned{color:var(--purple)}.period-status.ended{color:var(--muted)}@media(max-width:580px){.history-actions{gap:8px}.history-table{min-width:570px}.section-heading{align-items:flex-start}.history-actions{align-items:flex-end;flex-direction:column}}

.delete-button{color:var(--red);margin-left:10px}.delete-button:hover{text-decoration:underline}

.rate-heading-actions{display:flex;gap:10px}.rate-code{display:block;margin-top:5px;color:var(--muted);font-size:9px}.rate-value{font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums}.rate-amount-label{margin-top:16px}.rate-dialog{width:540px}@media(max-width:580px){.rate-heading-actions{flex-direction:column}#settings-nav{flex-wrap:wrap}.nav-item{flex:1 1 40%}}

.organization-fields{display:grid;gap:18px;margin-bottom:22px}.organization-name{color:var(--ink);font-weight:600;white-space:normal;min-width:180px}.jira-fields{background:var(--bg);padding:16px;border-radius:10px;display:grid;gap:12px}.jira-fields input[readonly]{background:#202430;color:var(--muted)}#settings-nav{overflow:auto}.organization-fields+.form-error{margin-top:15px}@media(max-width:580px){#settings-nav{overflow:visible}#settings-nav .nav-label{display:none}}

.archive-control{display:flex!important;align-items:center;gap:10px}.archive-control input{width:18px;height:18px;margin:0;accent-color:#bba1ff}.archive-badge{display:inline-block;margin-left:8px;padding:3px 7px;border-radius:6px;background:#202430;color:#bec1d1;font-size:11px}
.archive-control{flex-direction:row!important;justify-content:flex-start!important}.archive-control input{flex:0 0 18px}

.rail-bottom{border:0;cursor:pointer;font:inherit}body:has(.sidebar[hidden]) .workspace{margin-left:72px}.profile-dialog .dialog-body{max-height:65vh;overflow:auto}
.profile-dialog #profile-error:empty{display:none}
.report-toolbar{display:flex;gap:20px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.report-toolbar label{display:flex;flex-direction:column;gap:8px;color:var(--muted);font-size:12px}.report-toolbar select,.report-toolbar input{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);min-height:42px;color:var(--ink)}#realization-status{font-size:12px;color:var(--muted);padding-bottom:12px}.month-navigation{display:flex;align-items:center;gap:8px;margin-bottom:22px}#realization-tabs{display:flex;gap:6px;overflow:auto;flex:1}.month-tab{white-space:nowrap;background:var(--surface);border:1px solid var(--line);padding:12px 18px;border-radius:10px;color:var(--muted)}.month-tab.selected{background:var(--purple-soft);border-color:#d3c6ee;color:var(--purple);font-weight:600}.realization-scroll{max-height:65vh;overflow:auto}.realization-table{min-width:3350px;border-collapse:separate;border-spacing:0}.realization-table th{text-transform:none;letter-spacing:0;white-space:normal;text-align:center;font-size:11px;padding:12px 8px;border-right:1px solid var(--line)}.realization-table thead{position:sticky;top:0;z-index:3}.realization-table thead th{background:#202430;border-bottom:1px solid #303440}.realization-table td{padding:8px;border-right:1px solid var(--line);vertical-align:top;min-width:105px}.realization-table .project-column{position:sticky;left:0;min-width:210px;max-width:210px;background:var(--surface);z-index:2;box-shadow:3px 0 5px #20213508}.realization-table thead .project-column{background:#202430;z-index:4}.realization-table input:not([type=checkbox]),.realization-table select,.realization-table textarea{font:inherit;font-size:12px;width:100%;min-height:38px;border:1px solid #303440;border-radius:6px;padding:8px;background:var(--surface);color:var(--ink)}.realization-table textarea{min-width:180px;min-height:64px;resize:vertical}.realization-table .report-amount{text-align:right;min-width:110px}.realization-table .report-confirm{min-width:90px;text-align:center}.report-confirm input{width:18px;height:18px;accent-color:var(--purple);margin-top:10px}.realization-table .report-calculated{font-variant-numeric:tabular-nums;text-align:right;font-size:12px;padding-top:18px;white-space:nowrap;color:#bec1d1}.realization-table .uncertain{background:#42381e}.realization-table .dropped{background:#462a32}.realization-table .report-summary th,.realization-table .report-summary td{background:#202430;font-weight:600;text-align:right;font-size:12px;padding:10px 8px;white-space:nowrap}.realization-table .report-summary th{text-align:left;position:sticky;left:0;z-index:2}.report-footer{padding:18px 22px;display:flex;justify-content:space-between;align-items:center}.report-footer span{color:var(--muted);font-size:12px}.report-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:11px;color:#bec1d1;margin-top:16px}.report-legend span{display:flex;gap:7px;align-items:center}.report-legend i{display:inline-block;width:12px;height:12px;border:1px solid #303440;border-radius:3px}.report-legend .uncertain{background:#42381e}.report-legend .dropped{background:#462a32}@media(max-width:700px){.month-tab{padding:10px}.report-toolbar{gap:12px}.report-toolbar select{max-width:240px}.report-legend{gap:10px}}
#realization-page{max-width:none;width:100%;margin:0;padding:30px 20px}.realization-table{table-layout:fixed;min-width:1817px;width:100%}.realization-table td{min-width:0;padding:5px 3px}.realization-table th{font-size:10px;padding:10px 3px;overflow-wrap:anywhere}.realization-table .project-column{min-width:0;max-width:none}.realization-table .report-confirm{min-width:0}.realization-table .report-amount{min-width:0;font-size:11px;padding:7px 3px}.realization-table textarea{min-width:0;min-height:72px;font-size:11px;padding:7px 4px}.realization-table select{min-width:0;font-size:11px;padding:7px 2px}.realization-table .report-calculated{font-size:11px;padding:14px 3px;overflow:hidden;text-overflow:ellipsis}.realization-table .report-summary th,.realization-table .report-summary td{font-size:10px;padding:8px 3px;overflow:hidden;text-overflow:ellipsis}.realization-table .report-confirm input{width:15px;height:15px}.report-col-140{width:140px}.report-col-100{width:100px}.report-col-44{width:44px}.report-col-40{width:40px}.report-col-90{width:90px}.report-col-75{width:75px}.report-col-26{width:26px}.report-col-110{width:110px}.report-col-55{width:55px}.report-col-85{width:85px}.report-col-48{width:48px}.realization-table .delete-button{font-size:20px;padding:5px 10px}@media(max-width:700px){#realization-page{padding:24px 12px}}
#realization-page{padding-left:12px;padding-right:12px}
#portfolio-page{max-width:none;padding:32px 28px}.portfolio-indicators{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.portfolio-indicator{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:22px;min-height:155px;display:flex;flex-direction:column;gap:14px}.portfolio-indicator>span{font-size:12px;color:#bec1d1;min-height:18px}.portfolio-indicator>strong{font-size:clamp(24px,2.1vw,36px);font-weight:800;letter-spacing:-1px;line-height:1.15;overflow-wrap:anywhere}.portfolio-indicator>small{font-size:11px;line-height:1.55;color:var(--muted)}.portfolio-placeholder{background:#202430}.portfolio-min{font-size:11px;color:var(--muted);margin:14px 3px 22px}.portfolio-min strong{color:var(--purple)}.portfolio-charts{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;margin-top:24px}.portfolio-chart{min-width:0;overflow:hidden}.portfolio-chart .card-top{padding:23px 24px 12px}.portfolio-chart h2{font-size:15px}.portfolio-canvas{height:330px;padding:10px 22px 0}.portfolio-chart-note{font-size:11px;color:var(--muted);line-height:1.6;padding:0 24px}.portfolio-empty{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted);padding:24px}.portfolio-empty span{font-size:36px;color:#bfb2e9;line-height:1.5}.portfolio-empty strong{font-size:15px;color:#bec1d1}.portfolio-empty p{font-size:12px}.portfolio-series{padding:10px 24px 20px;font-size:11px;color:var(--muted)}.portfolio-series summary{cursor:pointer}.portfolio-series .table-scroll{max-height:300px;margin-top:15px}@media(max-width:1100px){.portfolio-indicators{grid-template-columns:repeat(2,minmax(0,1fr))}.portfolio-charts{grid-template-columns:1fr}}@media(max-width:600px){#portfolio-page{padding:24px 12px}.portfolio-indicators{grid-template-columns:1fr}.portfolio-indicator{min-height:130px}.portfolio-canvas{padding:0 10px;height:290px}}
.documents-table td{vertical-align:middle}.documents-table td small{display:block;margin-top:6px;font-size:10px;color:var(--muted)}.documents-table td strong{font-size:12px}.document-amount{white-space:nowrap;font-variant-numeric:tabular-nums}.document-unlinked{font-size:11px;color:#e2ba75}.document-details{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:25px;border-bottom:1px solid var(--line);padding-bottom:24px}.document-details>div{min-width:0;overflow-wrap:anywhere}.document-details span{display:block;color:var(--muted);font-size:10px;margin-bottom:6px}.document-details strong{font-size:12px;font-weight:550}.document-dialog{max-width:620px}.sidebar nav{overflow-y:auto;min-height:0;flex:1}.document-dialog select{width:100%}@media(max-width:600px){.document-details{grid-template-columns:1fr}}
.documents-table .document-work{min-width:240px;max-width:400px;font-size:11px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}.document-work ul{padding:0;margin:0;list-style:none}.document-work li+li{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.documents-table td{vertical-align:top}
.documents-table{table-layout:fixed;width:100%;min-width:800px}.documents-table th,.documents-table td{padding:16px 10px;overflow-wrap:anywhere}.documents-table th:nth-child(1){width:9%}.documents-table th:nth-child(2){width:12%}.documents-table th:nth-child(3){width:30%}.documents-table th:nth-child(4){width:13%}.documents-table th:nth-child(5){width:14%}.documents-table th:nth-child(6){width:14%}.documents-table th:nth-child(7){width:8%}.documents-table .document-work{min-width:0;max-width:none}.documents-table .document-amount{font-size:11px}
.portfolio-document-card{min-width:0;overflow:hidden}.portfolio-document-card .card-top{padding:23px 24px 18px}.portfolio-document-card h2{font-size:15px}.portfolio-document-scroll{max-height:520px}.portfolio-document-table{width:100%;min-width:480px;table-layout:fixed}.portfolio-document-table th:nth-child(1){width:17%}.portfolio-document-table th:nth-child(2){width:38%}.portfolio-document-table th:nth-child(3){width:22%}.portfolio-document-table th:nth-child(4){width:23%}.portfolio-document-table td,.portfolio-document-table th{padding:14px 12px;vertical-align:top;overflow-wrap:anywhere}.portfolio-document-table th{font-size:9px}.portfolio-document-table td{font-size:11px;line-height:1.6}.portfolio-document-table td strong{font-size:12px}.portfolio-document-table small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.portfolio-document-amount{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.portfolio-document-work{list-style:none;padding:0;margin:12px 0 0;color:var(--muted);font-size:10px;line-height:1.6}.portfolio-document-work li+li{margin-top:8px}.portfolio-document-table tfoot{background:#202430;color:var(--purple);font-weight:700}.portfolio-document-table thead{position:sticky;top:0;z-index:1;background:#202430}
.portfolio-document-table th,.portfolio-document-table td{white-space:normal}.portfolio-document-table .portfolio-document-amount{white-space:nowrap}
.bill-delete-button{display:block;color:var(--red);margin-top:10px;font-size:10px}.bill-delete-button:hover{color:#ff9eaf}
.bill-exclude-option{display:flex;align-items:flex-start;gap:7px;margin-top:12px;font-size:10px;color:var(--muted);line-height:1.5;white-space:normal;cursor:pointer}.bill-exclude-option input{width:14px;height:14px;flex-shrink:0;margin:1px 0;accent-color:var(--purple)}
.documents-table td:not(.document-amount){white-space:normal}
.portfolio-monthly-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px}.portfolio-monthly-heading h3{font-size:13px;color:var(--ink);margin:0}.portfolio-monthly-heading select{max-width:220px;font-size:11px;padding:8px}.portfolio-monthly-canvas{height:330px;margin-top:12px}.portfolio-series>p{line-height:1.6}@media(max-width:600px){.portfolio-monthly-canvas{height:300px}}
.portfolio-monthly-scroll{overflow-x:auto;overflow-y:hidden;max-width:100%;scrollbar-color:#b8afd2 #202430;scrollbar-width:auto}.portfolio-monthly-scroll:focus-visible{outline:2px solid var(--purple);outline-offset:3px}.portfolio-monthly-canvas{position:relative;height:310px}.portfolio-monthly-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:15px}.portfolio-monthly-legend button{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--muted);font-size:11px;cursor:pointer;padding:4px 0}.portfolio-monthly-legend span{display:inline-block;width:10px;height:10px;border-radius:2px}.portfolio-monthly-legend button[aria-pressed=false]{opacity:.4;text-decoration:line-through}.portfolio-monthly-heading .button{padding:8px 10px;font-size:11px}
.portfolio-monthly-scroll{overflow:hidden}.portfolio-monthly-canvas{width:100%;height:310px}.portfolio-monthly-navigation{display:flex;gap:6px;overflow-x:auto;padding:10px 0;scrollbar-color:#b8afd2 #202430}.portfolio-monthly-navigation button{flex:0 0 auto;min-width:78px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--muted);padding:8px;font-size:11px;cursor:pointer}.portfolio-monthly-navigation button[aria-pressed=true]{background:#302642;border-color:#c9b9ed;color:var(--purple)}

.user-dialog{background:var(--surface)}input::placeholder,textarea::placeholder{color:#9195ab}textarea{color:var(--ink)}.primary,.tiny-logo{color:#fff;background:#7855cf}.primary:hover{background:#8a66dd}body{scrollbar-color:#56526b var(--bg)}
#project-page{max-width:none;padding:32px 28px}.project-picker{display:flex;flex-direction:column;gap:8px;max-width:580px;color:var(--muted);font-size:11px;margin-bottom:22px}.project-picker select{font-size:13px;min-height:44px}.project-tabs{display:flex;gap:8px;margin-bottom:24px}.project-planned{font-size:11px;color:var(--muted)}.project-planned b{display:block;font-size:20px;line-height:1.5;color:var(--ink)}.project-calculation-note{font-size:11px;color:var(--muted);line-height:1.7;margin-top:22px}.project-quality{color:var(--red)}.project-expense-form{padding:0 24px 24px;display:grid;grid-template-columns:150px 180px minmax(180px,1fr) auto;gap:14px;align-items:end}.project-expense-form textarea{background:var(--surface);border:1px solid var(--line);border-radius:9px;color:var(--ink);padding:10px;resize:vertical;font:inherit;width:100%;min-height:44px}.project-expenses-table td:nth-child(2){white-space:pre-wrap;min-width:180px}.project-expenses-table td:last-child{text-align:right}.project-expenses-table small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.project-expenses-table tfoot{background:#202430}.project-expense-form+.form-error{padding:0 24px}@media(max-width:1000px){.project-expense-form{grid-template-columns:1fr 1fr}.project-expense-form label:nth-child(3){grid-column:1/-1}}@media(max-width:600px){#project-page{padding:24px 12px}.project-expense-form{grid-template-columns:1fr}.project-picker{max-width:none}}
#project-expense-error:empty{display:none}

.project-economy{width:100%;margin-top:24px}.project-economy .portfolio-canvas{height:390px}.project-chart-caption{font-size:11px;color:var(--muted);white-space:nowrap}@media(max-width:600px){.project-economy .portfolio-canvas{height:300px}.project-economy .card-top{align-items:flex-start;flex-direction:column;gap:8px}}

.project-specialist-charts{grid-template-columns:repeat(2,minmax(0,1fr))}.project-specialist-month-scroll{overflow-x:auto;margin:0 22px}.project-specialist-month-canvas{height:350px;position:relative}.project-specialist-total-scroll{overflow-y:auto;max-height:350px;margin:0 22px}.project-specialist-total-canvas{position:relative;min-height:330px}@media(max-width:1000px){.project-specialist-charts{grid-template-columns:1fr}}@media(max-width:600px){.project-specialist-month-scroll,.project-specialist-total-scroll{margin:0 10px}}

.project-specialist-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 22px;font-size:11px;color:var(--muted)}.project-specialist-navigation .button{padding:8px 12px}

.project-detail-canvas{height:370px;position:relative;margin:0 22px}.project-task-filter{display:flex;flex-direction:column;gap:6px;font-size:10px;color:var(--muted);max-width:150px}.project-task-filter select{font-size:11px;padding:8px;min-width:125px}.project-detail-charts .card-top{align-items:flex-start;gap:12px}.project-detail-canvas .empty{display:flex;align-items:center;justify-content:center;height:100%;margin:0}@media(max-width:600px){.project-detail-canvas{margin:0 10px;height:330px}.project-detail-charts .card-top{flex-direction:column}}

.project-monthly-economy{margin-top:24px;overflow:hidden}.project-monthly-economy .card-top{padding:24px}.project-monthly-economy table{min-width:1400px;width:100%;border-collapse:collapse;font-size:11px}.project-monthly-economy th,.project-monthly-economy td{padding:14px 12px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}.project-monthly-economy thead th{white-space:normal;font-size:10px;line-height:1.6;color:var(--muted);background:var(--surface);vertical-align:bottom}.project-monthly-economy th:first-child{text-align:left;position:sticky;left:0;background:var(--surface);z-index:1;min-width:145px}.project-monthly-economy small{display:block;font-size:10px;line-height:1.5;color:var(--muted)}.project-monthly-economy .economy-current{background:#27213c}.project-monthly-economy .economy-current th:first-child{background:#27213c}.project-monthly-economy .economy-future{background:#1c2030}.project-monthly-economy .economy-future th:first-child{background:#1c2030}.project-monthly-economy .economy-total{background:#252a38;font-weight:700}.project-monthly-economy .economy-total th:first-child{background:#252a38}.economy-pair{display:flex;flex-direction:column;gap:7px}.economy-pair>span{display:flex;justify-content:space-between;gap:14px}.economy-positive{color:#72c6a6}.economy-negative{color:#e58391}.project-monthly-notes{padding:12px 24px 20px;font-size:11px;line-height:1.7;color:var(--muted)}.project-monthly-economy .project-quality{color:var(--red)}

.project-monthly-fixed-header{position:fixed;z-index:4;overflow:hidden;background:var(--surface);box-shadow:0 3px 9px #00000055;pointer-events:none}.project-monthly-fixed-header table{table-layout:fixed;margin:0}.project-monthly-fixed-header thead th{vertical-align:bottom}.project-monthly-fixed-header th:first-child{z-index:2}

.realization-table{min-width:1857px}.report-col-vat{width:80px}.realization-table .report-vat select{font-size:14px;font-weight:600;min-height:42px;padding:8px 6px 8px 8px}

.realization-table{min-width:1893px}.report-col-contract{width:80px}.realization-table .report-contract select{font-size:14px;font-weight:600;min-height:42px;padding:8px 6px 8px 8px}

.portfolio-indicator .indicator-negative{color:var(--red)}.portfolio-indicator .indicator-positive{color:var(--green)}.portfolio-indicator .indicator-warning{color:#e6c76a}

.portfolio-profit-scroll{max-height:345px;overflow-y:auto;overflow-x:hidden;padding:0 20px;scrollbar-color:#737a90 #202430}.portfolio-profit-canvas{position:relative;height:300px;min-width:0}.portfolio-profit .card-top{align-items:flex-start}

.portfolio-project-economy{margin-top:24px}.portfolio-project-economy table{min-width:1450px}.portfolio-project-economy th,.portfolio-project-economy td{padding:14px 12px;text-align:right;border-bottom:1px solid var(--line);font-size:11px;letter-spacing:0;white-space:nowrap}.portfolio-project-economy thead th{white-space:normal;line-height:1.6;background:#202430;font-size:10px}.portfolio-project-economy th:first-child{text-align:left;position:sticky;left:0;background:var(--surface);z-index:1;min-width:230px;max-width:300px;white-space:normal}.portfolio-project-economy thead th:first-child{background:#202430}.portfolio-project-economy small{display:block;color:var(--muted);font-size:10px;line-height:1.6}.portfolio-project-economy .economy-total,.portfolio-project-economy .economy-total th:first-child{background:#252a38;font-weight:700}.portfolio-project-link{color:var(--purple);font-weight:650;line-height:1.6}.portfolio-project-link:hover{text-decoration:underline}.portfolio-project-economy .project-quality{color:var(--red)}.economy-warning{color:#e6c76a}

.portfolio-profit-indicator{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;column-gap:12px}.portfolio-profit-indicator>span,.portfolio-profit-indicator>small{grid-column:1/-1}.portfolio-profit-indicator>strong{grid-row:2;grid-column:1;margin:0;white-space:nowrap;align-self:baseline}.portfolio-profit-indicator>.project-planned{grid-row:2;grid-column:2;display:flex;gap:6px;align-items:baseline;align-self:baseline;white-space:nowrap;margin:0}.portfolio-profit-indicator>.project-planned b{display:inline;margin:0}.project-monthly-economy table{min-width:1520px}

.portfolio-project-economy table{min-width:1570px}

.portfolio-financial-indicator{container-type:inline-size}.portfolio-financial-values{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:clamp(12px,4.8cqw,24px);font-weight:800;line-height:1.4}.portfolio-financial-values>span{display:flex;align-items:baseline;gap:5px;white-space:nowrap;min-width:0}.portfolio-financial-values small{font-size:9px;color:var(--muted);font-weight:400}.portfolio-financial-values b{font-variant-numeric:tabular-nums}

.portfolio-project-economy table{min-width:1650px}

.office-report .portfolio-indicators{grid-template-columns:repeat(3,minmax(0,1fr))}.portfolio-project-economy .office-manager-heading th{position:static;max-width:none;background:#302642;color:var(--purple);text-align:left;padding:16px 20px}.office-manager-heading small{display:inline;margin-left:12px}@media(max-width:1100px){.office-report .portfolio-indicators{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.office-report .portfolio-indicators{grid-template-columns:1fr}}

/* Main navigation: distinct controls with comfortable spacing. */
.report-loader{min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:32px;text-align:center;color:var(--muted);font-size:12px}.report-loader strong{color:var(--ink);font-size:16px;font-weight:650}.report-loader-spinner{width:40px;height:40px;border:3px solid var(--line);border-top-color:var(--purple);border-radius:50%;margin-bottom:8px;animation:report-loader-spin .8s linear infinite}@keyframes report-loader-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.report-loader-spinner{animation:none}}
.rail{gap:10px}.brand{font-size:21px;font-weight:800;letter-spacing:-1.5px;border:1px solid #574572;border-radius:12px;background:#302642;flex-shrink:0}.rail-line{margin:12px 0 8px;flex-shrink:0}.rail-button{flex-shrink:0;background:transparent;color:var(--muted);border:1px solid transparent;transition:background .15s,color .15s}.rail-button:hover{background:#252a38;color:var(--ink)}.rail-button.active{background:var(--purple-soft);border-color:#574572;color:var(--purple)}.rail-bottom{flex-shrink:0;border:1px solid #574572}.office-manager-total,.portfolio-project-economy .office-manager-total th:first-child{background:#262c39;font-weight:700}.office-manager-total th:first-child{border-bottom:1px solid var(--line)}

.project-expense-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.project-expense-editing{padding:0 24px;color:var(--purple);font-size:12px}.project-expenses-table td:nth-child(3){text-align:right;white-space:nowrap}.project-expenses-table td:last-child{white-space:nowrap}.project-expenses-table th:last-child{min-width:170px}
.project-expenses-table thead th:nth-child(3),.project-expenses-table tfoot td:nth-child(2){text-align:right;white-space:nowrap}.project-expenses-table th:last-child{text-align:right}.project-expenses-table tfoot td:nth-child(2){font-variant-numeric:tabular-nums}.project-expenses-table tbody td:nth-child(3){font-variant-numeric:tabular-nums}
.import-errors-table{min-width:1000px}.import-errors-table .import-error-message{white-space:pre-wrap;overflow-wrap:anywhere;min-width:260px;max-width:520px}.import-errors-table td{vertical-align:top}.import-errors-table a{color:var(--purple)}
.import-error-delete{color:var(--red);white-space:nowrap}.import-error-delete:hover{color:#ff9eaf}
.sso-entry{max-width:640px;margin:15vh auto;padding:32px}.sso-entry p{line-height:1.7;color:var(--muted);margin-bottom:28px}
.office-period-filter{display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin:0 0 24px}.office-period-filter[hidden]{display:none}.office-period-filter label{min-width:160px}.office-period-filter small{flex-basis:100%;color:var(--muted);font-size:11px}
.review-client-id{display:block;margin-top:6px;color:var(--muted);font-size:10px}.review-pending-link{color:#e6b653}.review-nav-badge{position:absolute;right:-3px;top:-4px;min-width:18px;padding:2px 4px;border-radius:10px;font-size:9px;font-weight:700;background:#e6b653;color:#171a23;line-height:14px}.rail-button{position:relative}.rail-button.needs-review{animation:review-pulse 2.4s ease-in-out infinite;color:#f0c96c}#act-review-page .filters{flex-wrap:wrap}#review-client-form{display:grid;gap:16px}@keyframes review-pulse{0%,100%{box-shadow:0 0 0 0 #e6b65322;background:#e6b65310}50%{box-shadow:0 0 0 5px #e6b65318;background:#e6b65330}}@media(prefers-reduced-motion:reduce){.rail-button.needs-review{animation:none;background:#e6b65322}}
.act-review-bulk{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 26px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--purple-soft)}.act-review-bulk strong{font-size:12px}.act-review-bulk select{max-width:420px;flex:1;min-width:220px}.documents-table .act-selection{width:42px;padding-left:14px;padding-right:8px}.act-selection input{width:16px;height:16px;accent-color:var(--purple);cursor:pointer}
/* Review includes a selection column; its eight columns have their own layout. */
#act-review-page .documents-table{min-width:1050px}
#act-review-page .documents-table th:nth-child(1){width:3%}
#act-review-page .documents-table th:nth-child(2){width:9%}
#act-review-page .documents-table th:nth-child(3){width:10%}
#act-review-page .documents-table th:nth-child(4){width:34%}
#act-review-page .documents-table th:nth-child(5){width:12%}
#act-review-page .documents-table th:nth-child(6){width:12%;text-align:right}
#act-review-page .documents-table th:nth-child(7){width:14%}
#act-review-page .documents-table th:nth-child(8){width:6%}
#act-review-page .documents-table .act-selection{text-align:center;padding:16px 8px}
#act-review-page .documents-table .document-amount{text-align:right}
#act-review-page .documents-table th:last-child,#act-review-page .documents-table td:last-child{text-align:right;padding-right:16px}
.profile-switch-banner{position:sticky;top:0;z-index:40;background:#4a3b1f;border-bottom:1px solid #b99544;color:#ffe3a0;padding:10px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.profile-switch-banner .button{min-height:32px;padding:6px 12px}#profile-switch-controls{display:grid;gap:12px;margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:10px}#profile-switch-controls label{display:grid;gap:8px;font-size:12px}#profile-switch-controls select{width:100%}
.office-economy-fixed-header{position:fixed;z-index:5;overflow:hidden;background:#202430;box-shadow:0 3px 9px #00000055;pointer-events:none}.office-economy-fixed-header table{table-layout:fixed;margin:0}.office-economy-fixed-header thead th{vertical-align:bottom}.office-economy-fixed-header th:first-child{z-index:2}
.realization-table .report-project-error{background:#48232e!important}.report-unresolved-project{padding:9px 8px;border:1px solid #de7187;border-radius:8px;color:#ffadbd;white-space:normal;overflow-wrap:anywhere;cursor:help;line-height:1.5}.report-unresolved-project strong{font-size:11px}.report-unresolved-project small{display:block;margin-top:6px;font-size:10px;color:#ffadbd}.report-unresolved-project:focus{outline:2px solid #ffadbd;outline-offset:2px}
.project-acts-table{table-layout:fixed;min-width:1000px;width:100%}.project-acts-table .project-acts-number{width:12%}.project-acts-table .project-acts-value{width:13%}.project-acts-table .project-acts-work{width:32%}.project-acts-table .project-acts-status{width:17%}.project-acts-table th,.project-acts-table td{padding:16px 14px;vertical-align:top;white-space:normal;overflow-wrap:anywhere;line-height:1.6}.project-acts-table small{display:block;margin-top:6px;color:var(--muted);font-size:10px}.project-acts-table .project-act-amount,.project-acts-table th:nth-last-child(-n+2){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.project-acts-table tfoot{background:#252a38;font-weight:700}.project-acts-table .project-act-exclusion{color:#e6b653}.project-act-excluded{background:#24222a}
.documents-heading-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.document-link-status{padding:12px 16px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--purple-soft);font-size:12px;line-height:1.6}
.realization-view-tabs[hidden]{display:none}.realization-overview table{width:100%;min-width:1120px;border-collapse:collapse}.realization-overview th,.realization-overview td{padding:14px 12px;border:1px solid var(--line);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}.realization-overview thead th{text-align:center;background:#202430;white-space:normal;line-height:1.6}.realization-overview tbody th[scope=rowgroup]{text-align:left;min-width:190px;white-space:normal}.realization-overview tbody th{font-weight:500}.realization-overview tr:has(th[scope=rowgroup]){border-top:2px solid var(--line)}.realization-overview .summary-fact{background:var(--purple-soft);font-weight:650}.realization-overview .summary-office th{padding:18px;background:#302642;color:var(--purple);font-weight:700;text-align:left}.realization-overview .summary-total{background:#252a38;font-weight:650}.realization-overview .summary-total th,.realization-overview .summary-grand-total th{font-weight:700}.realization-overview .summary-grand-total{background:#302642;font-weight:700}.realization-overview .summary-negative{color:var(--red)}.realization-overview .summary-positive{color:var(--green)}

.realization-overview tr:has(th[scope=rowgroup])>td{font-weight:650}.realization-overview th[scope=row]{min-width:50px;color:var(--muted);text-align:left}
.import-errors-table .import-error-ignore{text-align:center}.import-error-ignore input{width:18px;height:18px;accent-color:var(--purple);cursor:pointer}.import-error-ignored{background:#24232b;color:var(--muted)}.summary-errors{margin-top:10px;font-size:11px;font-weight:400;max-width:420px}.summary-errors summary{color:#e6c76a;cursor:pointer;font-weight:600;list-style:none}.summary-errors summary:focus-visible{outline:2px solid var(--purple);outline-offset:4px}.summary-errors ul{margin:10px 0 0;padding:12px 16px 12px 28px;border:1px solid var(--line);border-radius:8px;background:#202430;color:var(--ink);max-height:300px;overflow:auto;line-height:1.6}.summary-errors li+li{margin-top:12px}.summary-errors p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.summary-errors small{color:var(--muted)}

.summary-manager-link{font:inherit;font-weight:650;border:0;background:none;padding:0;color:var(--purple);cursor:pointer;text-align:left;line-height:1.6}.summary-manager-link:hover{text-decoration:underline}.summary-manager-link:focus-visible{outline:2px solid var(--purple);outline-offset:4px;border-radius:2px}

.realization-table .report-vat-error{background:#48232e!important}.realization-table .report-vat-error select{border-color:#de7187;color:#ffadbd}

.summary-manager-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px}.summary-file-link{font-size:10px;font-weight:400;color:var(--muted);white-space:nowrap}.summary-file-link:hover{color:var(--purple);text-decoration:underline}

.rail .brand{width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:21px;font-weight:800;letter-spacing:-1.5px;border:1px solid #574572;border-radius:12px;background:#302642;flex-shrink:0}.brand:focus-visible{outline:2px solid var(--purple);outline-offset:4px}

.shipment-report table{width:100%;min-width:1000px;border-collapse:collapse}.shipment-report th,.shipment-report td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:right;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.shipment-report th:first-child{text-align:left;white-space:normal;min-width:220px}.shipment-report thead th{background:#202430;white-space:normal;line-height:1.6}.shipment-report .shipment-project th{background:#302642;color:var(--purple);font-weight:700;text-align:left}.shipment-project a:hover{text-decoration:underline}.shipment-report small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.shipment-report .shipment-subtotal,.shipment-report tfoot{background:#252a38;font-weight:700}.shipment-report .shipment-warning{color:var(--red)}.shipment-archive{font-size:10px;color:var(--muted);margin-left:12px}

.realization-table .report-contract-error{background:#48232e!important}.realization-table .report-contract-error select{border-color:#de7187;color:#ffadbd}
.report-filter-panel{margin:0 0 22px;min-width:0}.report-filter-panel[hidden],.report-filter-panel [hidden]{display:none}.report-filter-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.report-filter-row select{height:40px;min-width:0;max-width:100%;text-overflow:ellipsis;font-size:12px}.report-filter-row [data-office]{flex:1 1 240px;max-width:420px}.report-filter-row [data-period]{flex:0 1 220px}.report-filter-row .text-button{height:40px;margin:0;display:flex;align-items:center;white-space:nowrap}.report-filter-row .button{height:40px;min-height:40px;white-space:nowrap;padding:8px 14px}.report-filter-row .has-active-filters{border-color:var(--purple);color:var(--purple)}.report-filter-custom,.report-filter-extra{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:14px 0 0}.report-filter-panel label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted);min-width:0}.report-filter-panel input[type=month],.report-filter-panel input[type=search]{border:1px solid var(--line);border-radius:9px;padding:8px 12px;background:var(--surface);color:var(--ink);font-size:12px;height:40px;min-width:0;max-width:100%}.report-filter-extra{border-top:1px solid var(--line);margin-top:14px;align-items:start}.report-filter-managers{display:flex;flex-wrap:wrap;gap:8px 18px;max-height:180px;overflow:auto;flex:1 1 300px;padding:8px 0}.report-filter-managers label{flex-direction:row;align-items:center;overflow-wrap:anywhere;max-width:100%;color:var(--ink)}.report-filter-managers input{accent-color:var(--purple);flex-shrink:0}.report-filter-summary{font-size:11px;color:var(--muted);margin-top:10px;overflow-wrap:anywhere}.report-filter-custom .form-error{margin:0}@media(max-width:600px){.report-filter-row [data-office],.report-filter-row [data-period]{flex:1 1 100%;max-width:100%;width:100%}.report-filter-custom label{flex:1 1 130px}.report-filter-panel input{width:100%}.report-filter-managers input{width:auto}.report-filter-extra>label{width:100%}}
.pulse-indicators{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}#pulse-page{max-width:none;padding:32px 28px}.pulse-pair{display:flex;gap:18px;justify-content:space-between;flex-wrap:wrap}.pulse-pair>div{display:flex;flex-direction:column;gap:6px}.pulse-pair small,.pulse-table td>small,.pulse-table th>small{display:block;color:var(--muted);font-size:10px;font-weight:400}.pulse-pair b{font-size:clamp(14px,1.4vw,23px);white-space:nowrap;font-variant-numeric:tabular-nums}.pulse-cost{display:flex;flex-direction:column;gap:10px;font-size:11px}.pulse-cost span{display:flex;justify-content:space-between;gap:14px}.pulse-cost b{white-space:nowrap;font-variant-numeric:tabular-nums}.pulse-errors{position:relative;color:#e6c76a;cursor:help;font-size:11px}.pulse-errors>[role=tooltip]{display:none;position:absolute;z-index:20;top:100%;left:0;width:340px;max-width:75vw;max-height:280px;overflow:auto;background:#302b3c;border:1px solid var(--line);padding:14px;border-radius:8px;color:var(--ink);line-height:1.6;box-shadow:0 8px 30px #0008}.pulse-errors:hover>[role=tooltip],.pulse-errors:focus>[role=tooltip],.pulse-errors:focus-within>[role=tooltip]{display:block}.pulse-table{overflow:visible}.pulse-table table{min-width:1420px;width:100%;border-collapse:collapse}.pulse-table th,.pulse-table td{padding:16px;vertical-align:top;border-bottom:1px solid var(--line);text-align:left}.pulse-table thead th{font-size:11px;color:var(--muted)}.pulse-table th:first-child{min-width:210px}.pulse-table td{min-width:210px}.pulse-table td:last-child{min-width:140px}.pulse-table .pulse-pair{gap:14px}.pulse-table .pulse-pair b{font-size:12px}.pulse-table .pulse-manager th{background:#302642;color:var(--purple)}.pulse-subtotal,.pulse-table tfoot{background:#262938;font-weight:700}.pulse-filters .report-filter-row>label{flex:1 1 190px;max-width:310px}.pulse-filters select{width:100%;max-width:100%!important}.pulse-filters details{position:relative;min-width:170px;flex:1 1 170px;max-width:300px;align-self:end}.pulse-filters summary{padding:12px;border:1px solid var(--line);border-radius:9px;font-size:12px;cursor:pointer;background:var(--surface)}.pulse-dropdown{position:absolute;top:calc(100% + 6px);left:0;z-index:30;min-width:280px;max-width:85vw;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px #0008}.pulse-dropdown [data-options]{max-height:280px;overflow:auto;margin-top:10px}.pulse-dropdown [data-options] label{display:flex;flex-direction:row;gap:8px;align-items:center;color:var(--ink);padding:7px 0}.pulse-dropdown input[type=checkbox]{accent-color:var(--purple)}.pulse-filters .text-button{align-self:end}@media(max-width:1100px){.pulse-indicators{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#pulse-page{padding:24px 12px}.pulse-indicators{grid-template-columns:1fr}.pulse-filters .report-filter-row>label,.pulse-filters details{width:100%;max-width:none;flex-basis:100%}.pulse-dropdown{right:0;min-width:0;max-width:none}}
.pulse-filters .report-filter-row select{flex:none;height:40px;min-height:40px}.pulse-filters .report-filter-row{align-items:end}
.pulse-heading{padding:14px 0;border-bottom:1px solid var(--line)}.pulse-extra{align-items:end}.pulse-extra .has-active-filters{border-color:var(--purple);color:var(--purple)}.pulse-filters .report-filter-row [data-more]{align-self:end}.pulse-filters .pulse-extra details{align-self:auto}.pulse-filters .pulse-extra .text-button{height:auto}

.shipment-report table{min-width:1320px}.shipment-report .shipment-employee th,.shipment-report .shipment-employee td{background:#302642;font-weight:700}.shipment-report .shipment-employee th{color:var(--purple)}.shipment-person-project th:first-child{padding-left:32px;font-weight:400}.shipment-person-project a:hover,.shipment-unallocated a:hover{text-decoration:underline}.shipment-unallocated{margin-top:12px;color:var(--muted);font-size:12px}.shipment-unallocated summary{cursor:pointer}.shipment-unallocated ul{padding-left:20px}.shipment-unallocated li{margin:6px 0}

.pulse-sticky-header{position:fixed;z-index:35;top:0;overflow:hidden;background:#202430;box-shadow:0 4px 12px #0004;pointer-events:none}.pulse-sticky-header table{table-layout:fixed;margin:0}.pulse-sticky-header th{background:#202430}

#shipment-employees{position:relative;min-width:240px;align-self:end}#shipment-employees>summary{cursor:pointer;list-style:none;border:1px solid var(--line);border-radius:10px;padding:12px 16px;background:var(--surface);font-size:12px}#shipment-employees .pulse-dropdown{min-width:340px;max-width:min(450px,85vw);z-index:30}

.shipment-filters details{position:relative;min-width:210px;align-self:end}.shipment-filters details>summary{cursor:pointer;list-style:none;border:1px solid var(--line);border-radius:10px;padding:12px 16px;background:var(--surface);font-size:12px}.shipment-filters .pulse-dropdown{min-width:300px;max-width:min(450px,85vw)}.shipment-report .shipment-merged-acts{vertical-align:middle;background:#242332;font-weight:700;border-left:1px solid var(--line);border-right:1px solid var(--line)}
.pulse-kpi-chart{width:100%;min-width:0;margin-bottom:24px}
.pulse-kpi-canvas{position:relative;height:340px;padding:0 24px 20px}
@media(max-width:700px){.pulse-kpi-canvas{height:280px;padding:0 12px 12px}}

.sync-status{position:relative;margin-top:auto;margin-bottom:12px}.rail .sync-status+.rail-bottom{margin-top:0}.sync-status-trigger{position:relative;width:58px;padding:9px 2px 7px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:4px}.sync-status-trigger>span{font-size:8px;line-height:1.4}.sync-status-dot{position:absolute;right:4px;top:5px;width:7px;height:7px;border-radius:50%;background:var(--muted)}.sync-status[data-severity="ok"] .sync-status-dot{background:var(--green)}.sync-status[data-severity="warning"] .sync-status-dot{background:#f0c86b}.sync-status[data-severity="critical"] .sync-status-trigger{border-color:var(--red);color:var(--red)}.sync-status[data-severity="critical"] .sync-status-dot{background:var(--red);animation:sync-status-pulse 1.6s ease-in-out infinite}.sync-status-popup{display:none;position:absolute;left:100%;bottom:0;padding:19px;width:min(420px,calc(100vw - 86px));border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:0 12px 45px #0008;z-index:1}.sync-status.is-open .sync-status-popup{display:block}.rail:has(.sync-status.is-open){z-index:80}.sync-status-popup>strong{font-size:14px}.sync-status-popup ul{padding:0;margin:14px 0;list-style:none}.sync-status-popup li{padding:11px 0 11px 13px;border-left:3px solid var(--green);margin:9px 0}.sync-status-popup li[data-severity="warning"]{border-color:#f0c86b;color:#f0c86b}.sync-status-popup li[data-severity="critical"]{border-color:var(--red);color:var(--red)}.sync-status-popup li[data-severity="unknown"]{border-color:var(--muted)}.sync-status-popup li strong,.sync-status-popup li span,.sync-status-popup li small{display:block}.sync-status-popup li strong{font-size:11px;margin-bottom:6px}.sync-status-popup li span{font-weight:600;font-size:13px}.sync-status-popup small{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:5px}.sync-status-message{color:var(--muted);font-size:11px}@keyframes sync-status-pulse{50%{opacity:.25;box-shadow:0 0 0 4px #f28a9d25}}@media(prefers-reduced-motion:reduce){.sync-status-dot{animation:none!important}}

.pulse-act-mismatch{padding:10px;border:1px solid var(--red);border-radius:8px;background:#f28a9d14}.pulse-act-mismatch>small,.pulse-act-mismatch .pulse-pair b{color:var(--red)}.pulse-act-mismatch>small{display:block;margin-bottom:7px;font-size:10px}

.journal-filters label{min-width:140px}.journal-table{min-width:1100px}.journal-table td{vertical-align:top;white-space:normal}.journal-table td:nth-child(3){min-width:200px}.journal-table td:nth-child(n+5){width:25%;min-width:240px}.journal-table small{display:block;margin:5px 0;color:var(--muted)}.journal-table pre{font:inherit;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 12px;max-height:220px;overflow:auto}.journal-field{border-bottom:1px solid var(--line)}.journal-event-removed{color:var(--red)}.journal-event-added,.journal-event-restored{color:var(--green)}.journal-event-warning,.journal-event-ambiguous{color:#f0c86b}.journal-pages{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px}

.journal-added-fields>summary{cursor:pointer;color:var(--purple);padding:6px 0;font-size:12px;font-weight:600}.journal-added-fields[open]>summary{margin-bottom:10px}.journal-added-fields>summary:focus-visible{outline:2px solid var(--purple);outline-offset:3px}

.journal-filters .report-filter-row{align-items:flex-end}.journal-filters .report-filter-row :is(input,select,button){height:42px;min-height:42px}.journal-filters .report-filter-row>button{align-self:flex-end}

.shipment-help{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-left:4px;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--muted);font-size:14px;vertical-align:middle;cursor:help}.shipment-help:hover,.shipment-help:focus-visible{color:var(--purple);border-color:var(--purple);background:var(--purple-soft)}.shipment-help:focus-visible{outline:2px solid var(--purple);outline-offset:3px}.shipment-help-tooltip{position:fixed;inset:auto;margin:0;width:310px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:0 8px 28px #0006;font-family:inherit;font-size:12px;font-weight:400;line-height:1.6;white-space:normal;text-align:left;pointer-events:none}

.discrepancy-warning{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;width:26px;height:26px;padding:4px;border:1px solid #e7ba543d;border-radius:8px;background:#e7ba5414;color:#e7ba54;cursor:help;vertical-align:middle}.discrepancy-warning:focus-visible{outline:2px solid #845400;outline-offset:2px}

.discrepancy-warning svg{width:16px;height:16px}.discrepancy-warning:hover{background:#e7ba5426}.discrepancy-tooltip{border-color:#e7ba5452}

.payment-toolbar{display:flex;align-items:center;gap:14px;margin:20px 0}.payment-toolbar input{min-width:260px}.payment-table-wrap{overflow:auto;border:1px solid var(--border,#333);border-radius:12px}.payment-table{width:100%;min-width:2200px;border-collapse:collapse}.payment-table th,.payment-table td{padding:14px;vertical-align:top;text-align:left;border-bottom:1px solid #333}.payment-table th{font-size:12px}.payment-table small,.payment-document small{display:block;opacity:.7;margin-top:6px}.payment-table td:nth-child(n+8):nth-child(-n+10){white-space:nowrap}.payment-dialog{width:min(900px,95vw);max-height:90vh}.payment-dialog textarea{width:100%;min-height:85px}.payment-dialog form{margin:18px 0}.payment-comments p,.payment-table td{white-space:pre-wrap}.payment-issue,.payment-comments article{padding:16px 0;border-bottom:1px solid #444}.payment-document{margin-bottom:10px}

#payment-error:empty{display:none}.payment-toolbar input{background:#20232e;border:1px solid #363946;border-radius:8px;color:#edeef2;padding:12px 14px}.payment-dialog small{color:#a0a4b6}.payment-dialog h3{margin-top:24px}

/* Payment schedule: full-width report and right-hand details panel. */
#payments-page{max-width:none;width:100%;padding:32px;min-width:0}
#payments-page .page-heading{margin-bottom:24px}
.payment-toolbar{flex-wrap:wrap;gap:10px;margin:0 0 20px}
.payment-toolbar input{flex:1;min-width:220px;max-width:360px;background:var(--surface);border-color:var(--line);color:var(--ink)}
.payment-toolbar select{min-height:42px;font-size:12px}
#payment-total{margin-left:auto;font-size:13px;font-weight:600;color:var(--ink)}
.payment-table-wrap{width:100%;max-height:calc(100dvh - 300px);min-height:240px;border:1px solid var(--line);border-radius:10px;background:var(--surface);scrollbar-gutter:stable}
.payment-table{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:2200px}
.payment-table th,.payment-table td{padding:16px 12px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.payment-table th{position:sticky;top:0;z-index:1;background:#242532;color:var(--ink);font-weight:500;letter-spacing:0;white-space:normal;vertical-align:middle}
.payment-table th:last-child,.payment-table td:last-child{border-right:0}
.payment-table th:nth-child(1){width:110px}.payment-table th:nth-child(2){width:220px}.payment-table th:nth-child(3){width:240px}
.payment-table th:nth-child(4),.payment-table th:nth-child(5){width:190px}
.payment-table th:nth-child(6){width:120px}.payment-table th:nth-child(7){width:180px}
.payment-table th:nth-child(n+8):nth-child(-n+10){width:150px}
.payment-table th:nth-child(11),.payment-table th:nth-child(12){width:140px}
.payment-table th:nth-child(13){width:210px}.payment-table th:nth-child(14){width:240px}
.payment-table td:nth-child(n+8):nth-child(-n+10){text-align:right;font-variant-numeric:tabular-nums}
.payment-table .text-button,.payment-table a{color:var(--purple);text-align:left;white-space:normal;line-height:1.5}
.payment-table small,.payment-document small{font-size:10px;line-height:1.5;color:var(--muted);opacity:1}
.payment-table select{width:100%;font-size:11px;white-space:normal}
.payment-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(760px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border-left:1px solid var(--line);box-shadow:-20px 0 70px #0006;overflow:hidden}
.payment-drawer[open]{display:flex;flex-direction:column;animation:payment-drawer-enter .22s ease-out}
.payment-drawer::backdrop{background:#080a1080;backdrop-filter:blur(2px)}
.payment-drawer .dialog-head{flex-shrink:0;padding:26px 28px;border-bottom:1px solid var(--line);background:var(--surface)}
.payment-drawer .dialog-head h2{font-size:20px;line-height:1.45;margin:0;overflow-wrap:anywhere}
.payment-drawer .dialog-head .icon-button{flex-shrink:0}
.payment-drawer .dialog-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 28px 36px;line-height:1.6}
.payment-drawer .dialog-body>p{overflow-wrap:anywhere}
.payment-drawer [data-error]:empty{display:none}
.payment-drawer h3{padding-top:24px;border-top:1px solid var(--line);font-size:14px}
.payment-drawer form{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.payment-drawer form label,.payment-drawer form>select,.payment-drawer form>textarea{width:100%}
.payment-drawer textarea{resize:vertical;background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:12px;font:inherit}
.payment-drawer textarea:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.payment-drawer .payment-document{padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.payment-drawer .payment-document a{color:var(--purple)}
.payment-drawer .payment-comments article{border-color:var(--line)}
body:has(.payment-drawer[open]){overflow:hidden}
@keyframes payment-drawer-enter{from{transform:translateX(100%);opacity:.5}to{transform:translateX(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.payment-drawer[open]{animation:none}}
@media(max-width:700px){#payments-page{padding:24px 16px}#payments-page .page-heading{flex-wrap:wrap}.payment-toolbar input{min-width:0;max-width:none;flex-basis:100%}#payment-total{width:100%;margin:4px 0 0}.payment-table-wrap{max-height:65dvh}.payment-drawer .dialog-head{padding:22px 18px}.payment-drawer .dialog-body{padding:18px}}

/* Payment details and a separate discussion column. */
.payment-drawer{width:min(1540px,calc(100vw - 96px))}
.payment-drawer .dialog-head{padding:24px 28px}
.payment-drawer .dialog-head h2{font-size:24px}
.payment-drawer .dialog-head p{font-size:15px;color:var(--ink);margin-top:8px}
.payment-drawer .payment-card-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;overflow:hidden;padding:0;line-height:1.55}
.payment-card-main{min-width:0;overflow:auto;overscroll-behavior:contain;padding:24px 28px 36px}
.payment-origin{font-size:11px;color:#e8ba77;margin:0 0 12px;overflow-wrap:anywhere}
.payment-description{font-size:13px;margin:0 0 20px;color:var(--muted);white-space:pre-wrap}
.payment-card-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.payment-card-metrics>div{background:#242532;padding:14px;min-width:0}
.payment-card-metrics span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase}
.payment-card-metrics strong{display:block;margin-top:8px;font-size:17px;font-weight:600;overflow-wrap:anywhere}
.payment-card-metrics>div:last-child strong{color:var(--purple)}
.payment-card-dates{display:flex;flex-wrap:wrap;gap:12px 24px;color:var(--muted);font-size:12px;margin:22px 0 12px}
.payment-card-dates strong{font-weight:500;color:var(--ink)}
.payment-settings{font-size:12px;margin:14px 0 22px}.payment-settings summary{color:var(--purple);cursor:pointer}.payment-settings summary:focus-visible{outline:2px solid var(--purple);outline-offset:4px}
.payment-drawer .payment-settings form{padding:14px;background:var(--bg);border:1px solid var(--line);border-radius:8px}
.payment-settings input,.payment-settings select{width:100%;margin-top:6px}
.payment-doc-section{padding:16px;margin:18px 0;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.payment-section-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.payment-drawer .payment-section-head h3{font-size:16px;border:0;padding:0;margin:0}.payment-section-head h3 span{color:var(--muted)}
.payment-accent{background:var(--purple-soft);color:var(--purple);border:1px solid #625080;min-height:36px;font-weight:500}
.payment-coverage{font-size:11px;color:#e8ba77;margin:12px 0 0}.payment-section-head .payment-coverage{margin:0}.payment-coverage.is-complete{color:var(--green)}
.payment-doc-columns,.payment-doc-row{display:grid;grid-template-columns:minmax(160px,1.6fr) minmax(95px,.85fr) minmax(95px,.85fr) minmax(82px,.7fr);gap:12px;align-items:start}
.payment-doc-list{overflow-x:auto}.payment-doc-columns{min-width:540px;color:var(--muted);font-size:9px;text-transform:uppercase;margin-bottom:12px;padding:0 10px}
.payment-doc-row{min-width:540px;padding:12px 10px;margin-top:8px;background:var(--surface);font-size:11px}.payment-doc-row>span{font-variant-numeric:tabular-nums;white-space:nowrap}.payment-doc-row a{color:var(--purple);font-size:12px}.payment-doc-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.payment-doc-row .text-button{padding:4px 0}
.payment-form-actions{display:flex;gap:8px}.payment-muted{color:var(--muted);font-size:12px}
.payment-card-history{display:flex;flex-direction:column;min-width:0;min-height:0;border-left:1px solid var(--line);background:#151821}
.payment-history-heading{padding:24px 22px 18px;border-bottom:1px solid var(--line);flex-shrink:0}
.payment-drawer .payment-history-heading h3{border:0;margin:0;padding:0;font-size:16px}.payment-history-heading p{color:var(--muted);font-size:11px;margin:6px 0 0}
.payment-timeline{flex:1;min-height:0;overflow:auto;padding:6px 22px 20px;overscroll-behavior:contain}
.payment-drawer .payment-timeline article{padding:16px 0;border-bottom:1px solid var(--line);font-size:12px}.payment-timeline article.is-comment{padding:14px;margin:14px 0;background:var(--surface);border:1px solid var(--line);border-radius:10px}
.payment-timeline-meta{display:flex;flex-wrap:wrap;gap:5px 12px;align-items:center}.payment-timeline-meta strong{font-size:11px;font-weight:600}.payment-timeline-meta time{font-size:10px;color:var(--muted)}.payment-timeline p{margin:8px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.payment-timeline .is-event p{color:var(--muted)}
.payment-drawer #payment-comment-form{margin:0;padding:18px 22px;border-top:1px solid var(--line);flex-shrink:0;gap:10px}
#payment-comment-form label{font-size:11px;color:var(--muted)}.payment-drawer #payment-comment{min-height:92px;max-height:180px;font-size:12px}.payment-drawer #payment-comment-form .button{width:100%}
@media(max-width:1200px){.payment-drawer{width:calc(100vw - 72px)}.payment-drawer .payment-card-layout{grid-template-columns:minmax(0,1fr) 310px}.payment-card-main{padding:22px 18px}.payment-card-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.payment-drawer{width:100vw}.payment-drawer .payment-card-layout{display:block;overflow-y:auto}.payment-card-main{overflow:visible;padding:22px 18px}.payment-card-history{border-left:0;border-top:1px solid var(--line);min-height:500px}.payment-timeline{flex:none;max-height:440px}.payment-drawer #payment-comment-form{margin-top:auto}.payment-card-metrics strong{font-size:16px}.payment-drawer .dialog-head h2{font-size:20px}}

.payment-picker{width:min(1040px,calc(100vw - 48px));max-width:calc(100vw - 24px);max-height:94dvh;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.payment-picker[open]{display:flex;flex-direction:column}.payment-picker .dialog-head{padding:26px 28px 22px;flex-shrink:0}.payment-picker h2{font-size:25px;margin:0 0 10px}.payment-picker .dialog-head p{font-size:12px;line-height:1.6}.payment-picker .dialog-body{padding:22px 28px;min-height:0;overflow:auto;overscroll-behavior:contain}
.payment-picker-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}.payment-picker-filters input,.payment-picker-filters select{width:100%;min-width:0;background:#242532;border:1px solid var(--line);color:var(--ink);padding:11px 12px;border-radius:8px;font-size:12px}
.payment-picker #payment-picker-error:empty{display:none}.payment-picker-document{padding:16px;margin-top:12px;border:1px solid var(--line);border-radius:9px;background:#242532}.payment-picker-document.is-selected{background:var(--purple-soft);border-color:#6c568d}.payment-picker-document.is-linked{opacity:.65}
.payment-picker-document-head{display:flex;align-items:flex-start;gap:12px}.payment-picker-document-head label{display:flex;align-items:flex-start;gap:12px;flex:1;min-width:0;font-size:13px;font-weight:600;color:var(--purple);cursor:pointer}.payment-picker-document-head input{width:17px;height:17px;flex-shrink:0;margin:1px 0 0;accent-color:var(--purple)}.payment-picker-document-head a{color:var(--purple)}.payment-picker-document-head strong{font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.payment-picker-document p{font-size:12px;color:var(--muted);line-height:1.6;margin:10px 0 6px;overflow-wrap:anywhere}.payment-picker-document small{font-size:11px;color:var(--green)}.payment-picker-document.is-linked small{color:var(--muted)}.payment-picker-description{white-space:pre-wrap;max-height:80px;overflow:auto}.payment-picker-empty{padding:32px 16px;text-align:center;color:var(--muted);line-height:1.7;font-size:13px}
.payment-picker-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:20px;font-size:12px;color:var(--muted)}
.payment-picker-footer{flex-shrink:0;border-top:1px solid var(--line);padding:18px 28px 24px;background:var(--surface)}.payment-picker-total{padding:14px 16px;background:#18382e;border-radius:8px;color:var(--green);font-size:13px;margin-bottom:14px}.payment-picker-total p{margin:7px 0;font-size:12px}.payment-picker-total small{font-size:11px;color:var(--muted)}
.payment-cross-project{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #e8ba7760;border-radius:8px;color:#e8ba77;font-size:12px;line-height:1.6;margin-bottom:14px}.payment-cross-project input{margin:3px 0 0;width:17px;height:17px;flex-shrink:0;accent-color:var(--purple)}
.payment-picker .payment-form-actions{justify-content:flex-end;flex-wrap:wrap}
.payment-reassign-warning{padding:12px 14px;border:1px solid #e8ba7760;border-radius:8px;color:#e8ba77;margin-bottom:14px;font-size:12px;line-height:1.6;max-height:220px;overflow:auto}.payment-reassign-warning p{margin:8px 0}.payment-reassign-warning label{display:flex;align-items:flex-start;gap:10px;cursor:pointer}.payment-reassign-warning input{width:17px;height:17px;flex-shrink:0;margin:3px 0 0;accent-color:var(--purple)}
.payment-merge-section{padding:16px;margin:18px 0;border:1px solid var(--line);border-radius:10px;background:var(--bg)}.payment-drawer .payment-merge-section h3{margin:0;padding:0;border:0;font-size:16px}.payment-merge-record{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:14px 0;font-size:12px}.payment-merge-record strong{font-weight:500}.payment-merge-record small{display:block;color:var(--muted);font-size:10px;margin-top:7px}.payment-merge-confirm{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;margin:14px 0;color:var(--muted)}.payment-merge-confirm input{width:17px;height:17px;margin:2px 0 0;flex-shrink:0;accent-color:var(--purple)}.payment-merge-filters{grid-template-columns:2fr 1fr}.payment-merge-dialog .payment-picker-document-head>strong:first-child{white-space:normal;flex:1}.payment-merge-dialog .payment-picker-footer{max-height:45dvh;overflow:auto}@media(max-width:700px){.payment-merge-record{align-items:flex-start;flex-direction:column}.payment-merge-record .button{width:100%}}
.payment-merge-dialog #payment-merge-error:empty{display:none}

.payment-review-workspace{width:min(1400px,calc(100vw - 72px));max-width:calc(100vw - 24px);height:min(900px,94dvh);max-height:94dvh;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.payment-review-workspace[open]{display:flex;flex-direction:column}.payment-review-workspace .dialog-head{padding:24px 28px;flex-shrink:0}.payment-review-workspace h2{margin:0 0 8px;font-size:24px}.payment-review-workspace .dialog-head p{margin:0;font-size:12px;color:var(--muted)}
.payment-review-toolbar{display:grid;grid-template-columns:2fr 1.2fr 1fr auto;gap:10px;padding:18px 28px 12px;flex-shrink:0}.payment-review-toolbar input,.payment-review-toolbar select,.payment-review-candidate-search{width:100%;min-width:0;background:var(--bg);border:1px solid var(--line);border-radius:8px;color:var(--ink);padding:11px 12px;font-size:12px}
.payment-review-tabs{display:flex;gap:8px;padding:0 28px 18px;overflow-x:auto;flex-shrink:0}.payment-review-tab{display:flex;align-items:center;gap:8px;background:transparent;border:1px solid var(--line);border-radius:8px;color:var(--muted);padding:9px 12px;white-space:nowrap;font-size:12px}.payment-review-tab span{font-size:10px;border-radius:5px;padding:2px 6px;background:var(--bg)}.payment-review-tab.is-active{background:var(--purple-soft);color:var(--purple);border-color:#625080}
.payment-review-layout{flex:1;min-height:0;display:grid;grid-template-columns:350px minmax(0,1fr);border-top:1px solid var(--line)}.payment-review-queue{display:flex;flex-direction:column;min-height:0;background:#151821;border-right:1px solid var(--line)}#payment-review-shown{color:var(--muted);font-size:11px;padding:15px 18px;flex-shrink:0}#payment-review-list{overflow:auto;padding:0 12px 16px;min-height:0;overscroll-behavior:contain}
.payment-review-case{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:15px;margin:0 0 9px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);text-align:left}.payment-review-case strong{font-size:13px;font-weight:600}.payment-review-case>span:not(.payment-review-badge){font-size:12px;overflow-wrap:anywhere}.payment-review-case small{color:var(--muted);font-size:10px;line-height:1.5}.payment-review-case b{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}.payment-review-case.is-selected{background:var(--purple-soft);border-color:#8665bf}
.payment-review-badge{display:inline-flex;width:fit-content;font-size:10px;padding:3px 7px;border-radius:5px;background:#e8ba7715;color:#e8ba77}.payment-review-badge.documents{background:var(--purple-soft);color:var(--purple)}.payment-review-badge.removed{background:#f28a9d15;color:var(--red)}.payment-review-badge.unmapped{background:#f28a9d15;color:var(--red)}
#payment-review-detail{min-width:0;overflow:auto;padding:26px 30px;overscroll-behavior:contain}.payment-review-detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.payment-review-detail-heading h3{font-size:22px;margin:12px 0 8px}.payment-review-detail-heading p{font-size:14px;line-height:1.6;margin:0 0 18px;white-space:pre-wrap}.payment-review-navigation{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);flex-shrink:0}
.payment-review-reason{padding:14px 16px;border:1px solid #e8ba7733;border-radius:9px;background:#e8ba770a;color:#e8ba77;font-size:12px;line-height:1.7;margin:0 0 20px}.payment-review-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:0 0 20px;margin:0 0 18px;border-bottom:1px solid var(--line)}.payment-review-facts dt{font-size:10px;color:var(--muted);margin-bottom:5px}.payment-review-facts dd{font-size:13px;margin:0;overflow-wrap:anywhere}#payment-review-detail [data-error]:empty{display:none}.payment-review-modes{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}#payment-review-resolution h4{font-size:13px;margin:20px 0 12px}
#payment-review-candidates{max-height:320px;overflow:auto;overscroll-behavior:contain;margin-top:12px}.payment-review-candidate{padding:14px;border:1px solid var(--line);border-radius:9px;margin-bottom:9px;background:var(--bg)}.payment-review-candidate.is-selected{background:var(--purple-soft);border-color:#8665bf}.payment-review-candidate label{display:flex;gap:12px;cursor:pointer}.payment-review-candidate input,.payment-review-confirm input{width:17px;height:17px;flex-shrink:0;margin:1px 0 0;accent-color:var(--purple)}.payment-review-candidate label>span{display:flex;flex-direction:column;gap:6px;min-width:0}.payment-review-candidate strong{font-size:12px;font-weight:600;overflow-wrap:anywhere}.payment-review-candidate small{font-size:10px;color:var(--muted);line-height:1.5}.payment-review-candidate b{font-size:13px;font-weight:500}.payment-review-candidate .text-button{margin:8px 0 0 29px;padding:0}
.payment-review-action-summary{padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:var(--bg);font-size:12px;line-height:1.7;margin:18px 0 14px}.payment-review-action-summary p{margin:6px 0 0;color:var(--muted)}.payment-review-action-summary small{font-size:11px;color:var(--muted)}.payment-review-confirm{display:flex;align-items:flex-start;gap:10px;margin:14px 0 18px;font-size:12px;line-height:1.7;color:var(--muted)}.payment-review-confirm input{margin-top:3px}.payment-review-empty{padding:25px 12px;color:var(--muted);font-size:12px;line-height:1.6}.payment-review-complete{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;color:var(--muted)}.payment-review-complete>span{color:var(--green);font-size:40px}.payment-review-complete h3{margin:0;color:var(--ink);font-size:21px}.payment-review-complete p{font-size:13px;line-height:1.6;margin:0 0 8px}
@media(max-width:1050px){.payment-review-layout{grid-template-columns:290px minmax(0,1fr)}#payment-review-detail{padding:22px 20px}.payment-review-toolbar{grid-template-columns:2fr 1fr 1fr}.payment-review-toolbar>button{grid-column:3}.payment-review-detail-heading{flex-direction:column}.payment-review-navigation{order:-1;align-self:flex-end}}
@media(max-width:700px){.payment-review-workspace{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.payment-review-workspace .dialog-head{padding:18px;gap:10px}.payment-review-workspace h2{font-size:21px}.payment-review-workspace .dialog-head>.payment-form-actions{gap:7px}.payment-review-toolbar{padding:14px 18px;grid-template-columns:1fr 1fr}.payment-review-toolbar input{grid-column:1/-1}.payment-review-toolbar>button{grid-column:1/-1}.payment-review-tabs{padding:0 18px 14px}.payment-review-layout{display:block;overflow:auto}.payment-review-queue{border-right:0;border-bottom:1px solid var(--line);max-height:260px}#payment-review-list{display:flex;gap:10px;overflow:auto;padding-bottom:12px}.payment-review-case{min-width:245px;width:245px;margin:0}#payment-review-detail{overflow:visible;padding:22px 18px}.payment-review-facts{gap:14px}#payment-review-resolution>.button{width:100%}}
@media(max-width:700px){.payment-picker{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;margin:0;border-radius:0}.payment-picker .dialog-head{padding:20px 18px}.payment-picker h2{font-size:21px}.payment-picker .dialog-body{padding:18px}.payment-picker-filters{grid-template-columns:1fr 1fr}.payment-picker-filters input{grid-column:1/-1}.payment-picker-footer{padding:14px 18px}.payment-picker-document-head{flex-wrap:wrap}.payment-picker-document-head strong{padding-left:29px;width:100%}.payment-picker .payment-form-actions .button{flex:1}.payment-picker-total{padding:10px 12px}}

/* Page scroll with synchronized sticky column headings and an independent horizontal rail. */
.payment-table-region{position:relative;min-width:0;--payment-office-width:110px;--payment-project-width:220px;--payment-description-width:240px}.payment-table-heading{position:sticky;top:0;z-index:20;background:var(--bg);border:1px solid var(--line);border-bottom:0;border-radius:10px 10px 0 0;overflow:hidden}.payment-header-scroll{overflow-x:auto;scrollbar-width:thin}
.payment-table-wrap{max-height:none;min-height:0;overflow-x:auto;border:1px solid var(--line);border-top:0;border-bottom:0;border-radius:0;background:transparent;scrollbar-gutter:auto}
.payment-table{width:100%;min-width:2590px;table-layout:fixed}.payment-table th:last-child{width:auto}.payment-table th:nth-child(11){width:160px}.payment-table th:nth-child(12){width:260px}
.payment-table .payment-column-1{width:var(--payment-office-width)}.payment-table .payment-column-2{width:var(--payment-project-width)}.payment-table .payment-column-3{width:var(--payment-description-width)}.payment-table .payment-column-4,.payment-table .payment-column-5{width:190px}.payment-table .payment-column-6{width:120px}.payment-table .payment-column-7{width:180px}.payment-table .payment-column-8,.payment-table .payment-column-9,.payment-table .payment-column-10{width:150px}.payment-table .payment-column-11{width:160px}.payment-table .payment-column-12{width:260px}.payment-table .payment-column-13{width:210px}.payment-table .payment-column-14{width:auto}
.payment-header-table th{position:relative;top:auto;min-height:60px}.payment-accessible-head{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%)}
.payment-row{--payment-row-bg:var(--surface);--payment-row-hover:#222633;cursor:pointer}.payment-row-paid{--payment-row-bg:#19372e;--payment-row-hover:#204337}.payment-row-due{--payment-row-bg:#363021;--payment-row-hover:#413a27}.payment-row-late{--payment-row-bg:#39252d;--payment-row-hover:#452c35}
.payment-table td{background:var(--payment-row-bg,var(--surface));transition:background .12s}.payment-table tbody tr:hover td{background:var(--payment-row-hover,#222633)}.payment-table td:nth-child(-n+3),.payment-header-table th:nth-child(-n+3){position:sticky;z-index:3}.payment-table td:first-child,.payment-header-table th:first-child{left:0}.payment-table td:nth-child(2),.payment-header-table th:nth-child(2){left:var(--payment-office-width)}.payment-table td:nth-child(3),.payment-header-table th:nth-child(3){left:calc(var(--payment-office-width) + var(--payment-project-width));box-shadow:5px 0 8px #0003}.payment-header-table th:nth-child(-n+3){z-index:5;background:#242532}
.payment-row:focus-visible{outline:2px solid var(--purple);outline-offset:-2px}.payment-status-label{color:var(--ink)!important;font-weight:600;font-size:11px!important}.payment-row-paid .payment-status-label,.payment-success-note{color:var(--green)!important}.payment-success-note{font-size:11px;line-height:1.55;margin:0 0 8px}.payment-status-reasons{padding:12px 14px;border:1px solid #e8ba7744;border-radius:8px;color:#e8ba77;font-size:12px;line-height:1.6}.payment-status-reasons p{margin:3px 0}
.payment-inline-calendar{padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--bg);cursor:default;font-size:11px;white-space:normal}.payment-calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:3px}.payment-calendar-heading strong{font-size:11px;font-weight:500;text-transform:capitalize}.payment-calendar-heading .text-button{font-size:20px;padding:1px 6px}.payment-calendar-week,.payment-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.payment-calendar-week{color:var(--muted);font-size:9px;text-align:center;margin:9px 0 5px}.payment-calendar-days button{padding:4px 0;min-height:26px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--ink);font-size:10px}.payment-calendar-days button:hover{background:var(--purple-soft)}.payment-calendar-days button.is-today{border-color:#625080}.payment-calendar-days button.is-selected{background:var(--purple-soft);color:var(--purple);border-color:var(--purple)}.payment-inline-calendar>p{color:var(--muted);font-size:10px;text-align:center;margin:8px 0}.payment-calendar-actions{display:flex;align-items:center;justify-content:space-between;gap:3px;flex-wrap:wrap}.payment-calendar-actions .text-button{font-size:9px!important}.payment-calendar-actions .button{font-size:10px;min-height:30px;padding:6px 9px}.payment-date-trigger{font-size:11px!important}
@media(max-width:700px){.payment-table-wrap{max-height:none}.payment-header-scroll{scrollbar-width:thin}}

.department-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:12px;padding:0 24px 24px}.department-tile{display:flex;flex-direction:column;gap:9px;text-align:left;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);cursor:pointer;min-width:0}.department-tile strong{font-size:16px}.department-tile span{font-size:13px;color:var(--purple)}.department-tile small{color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.department-tile.selected,.department-tile:hover{border-color:var(--purple);background:var(--purple-soft)}.department-tile:focus-visible{outline:2px solid var(--purple);outline-offset:3px}.department-members-card{margin-top:24px}#departments-page .filters{flex-wrap:wrap}#departments-page table{min-width:900px}#departments-page td{vertical-align:top}

/* Test environment notice, enabled only by APP_READ_ONLY. */
.preview-notice{position:fixed;left:0;right:0;bottom:0;z-index:10000;padding:8px 16px;text-align:center;background:#ffd166;color:#241c00;font:700 12px/1.4 sans-serif;pointer-events:none}.preview-read-only{padding-bottom:36px}
