:root{--ink:#252c3c;--muted:#7d8696;--line:#e2e6ed;--accent:#3d63dc;--accent-soft:#edf2ff;--page:#f5f6f8;--gutter:44px}*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:var(--page);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.4}button,input,select,textarea{font:inherit}button{border:1px solid #dce1e9;border-radius:6px;padding:8px 12px;cursor:pointer;background:#fff;color:#3f485a;white-space:nowrap;line-height:1.35}button:hover:not(:disabled){background:#f3f5fa;border-color:#c6cedd}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #86a0f0;outline-offset:2px}input,select,textarea{min-width:0;border:1px solid #d7dde7;border-radius:5px;background:#fff;padding:8px 10px;color:var(--ink)}input[type=checkbox]{accent-color:var(--accent)}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover:not(:disabled){background:#3157cf;border-color:#3157cf}.quiet-button{border-color:transparent;background:transparent;color:#667187}.quiet-button:hover:not(:disabled){background:#eaf0f9;border-color:transparent}.icon-button{padding:6px 8px;min-width:31px}.danger{color:#ab4550}.workspace{height:100dvh;min-height:420px;display:flex;flex-direction:column;padding:0 24px 20px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:0 0 92px}.page-title{display:flex;align-items:center;gap:13px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#e6ebf6;font-size:21px;font-weight:700;color:#51678f}.page-title h1{font-size:24px;line-height:1.2;letter-spacing:-.6px;margin:0;font-weight:650}.page-title h1 span{font-weight:450;font-size:21px;color:#5a6578}.page-title p{font-size:12px;color:var(--muted);margin:5px 0 0}.save-controls{display:flex;align-items:center;gap:18px}.save-status{font-size:12px;color:#6d7d79;white-space:nowrap}.save-status::before{content:"";display:inline-block;margin-right:7px;width:6px;height:6px;background:#75a890;border-radius:50%;vertical-align:middle}.save-status.loading,.save-status.saving{color:#818ca2}.save-status.loading::before,.save-status.saving::before{background:#97a5c1}.save-status.saving::before{animation:pulse 1s ease-in-out infinite}.save-status.error{color:#ac4b55}.save-status.error::before{background:#c77a82}.sheet-workspace{min-height:0;flex:1;display:flex;flex-direction:column;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 3px 13px #28345104;overflow:hidden}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid var(--line);flex:0 0 auto}.toolbar-group{display:flex;align-items:center;gap:8px}.toolbar-navigation{gap:4px}.toolbar-navigation>.quiet-button{font-size:12px;padding:8px}.search-box{display:flex;align-items:center;gap:6px;padding-left:10px;border:1px solid #dce1e9;border-radius:6px;background:#fff;margin-left:11px;color:#8a96ad}.search-box>span{font-size:23px;line-height:1}.search-box input{padding:8px 10px 8px 0;border:0;width:190px;font-size:13px;background:transparent}.search-box:focus-within{outline:2px solid #bcccf6;outline-offset:1px}.search-box input:focus-visible{outline:none}.selection-bar{flex:0 0 40px;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 16px;border-bottom:1px solid var(--line);background:#fbfcfd}.selection-hint{font-size:12px;color:#8a94a7}.selected-name{font-size:12px;color:#5e6c83;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%}.selected-name strong{color:#354663;font-weight:550;margin-right:7px}.selection-actions{display:flex;gap:3px;flex-shrink:0}.selection-actions button{font-size:12px;padding:4px 8px;border-color:transparent;background:transparent}.selection-actions button:hover{background:#edf1f8}.table-scroll{overflow:auto;min-height:0;flex:1;position:relative;overscroll-behavior:contain;scrollbar-color:#c4cbd8 #f6f7fa;scrollbar-width:thin}.budget-table{border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font-size:13px;text-align:left}.budget-table th{position:sticky;top:0;z-index:4;height:58px;padding:10px 12px 9px;border-bottom:1px solid #dbe1eb;border-right:1px solid #e9edf2;background:#f7f9fc;color:#68758b;text-align:left;font-size:11px;line-height:1.35;font-weight:600;vertical-align:middle}.budget-table th.numeric{text-align:right}.column-head{display:flex;align-items:center;gap:5px;min-width:0}.numeric .column-head{justify-content:flex-end}.column-label{overflow-wrap:anywhere;white-space:normal}.column-unit{font-size:10px;color:#9aa4b6;font-weight:400;margin-top:3px}.column-handle{font-size:13px;font-weight:400;letter-spacing:-3px;color:#a6afbf;padding:0 4px 0 0;cursor:grab;flex-shrink:0;opacity:0}.budget-table th:hover .column-handle{opacity:1}.column-menu{border:0;background:transparent;padding:0 3px;font-size:16px;color:#8592a8;border-radius:3px;line-height:1;opacity:0;flex-shrink:0;margin-left:auto}.budget-table th:hover .column-menu,.column-menu:focus-visible{opacity:1}.budget-table td{padding:0;height:42px;border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4;background:#fff;color:#3e495c;vertical-align:middle;position:relative}.budget-table tbody tr:hover td{background:#f8faff}.budget-table tr.selected-row td{background:#f1f5ff}.budget-table tr.group-row td{background:#eef2f7;color:#3d4c63;font-weight:600;border-bottom-color:#dee5ef;border-top:1px solid #dfe5ee}.budget-table tr.group-row:hover td{background:#e7edf7}.budget-table tr.group-row.selected-row td{background:#e4edff}.budget-table tr.depth-0.group-row td{background:#e7edf6;color:#2f405f}.budget-table tr.depth-0.group-row.selected-row td{background:#dce8ff}.cell{padding:9px 11px;min-height:41px;min-width:0;position:relative;white-space:pre-line;line-height:1.5;overflow-wrap:anywhere;cursor:cell}.cell.numeric{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;font-size:13px;letter-spacing:-.05px}.cell.empty:not(.name-cell)::after{content:"—";color:#c9cfda;font-weight:400}.cell:focus-visible{outline:2px solid #6a8bef;outline-offset:-2px;z-index:2;background:#fff}.cell.active-cell{box-shadow:inset 0 0 0 2px #8ca7f0;z-index:1}.cell.formula-cell .formula-cue{font-size:10px;color:#adb7c6;position:absolute;left:5px;top:2px;font-weight:400;line-height:1;pointer-events:none}.cell.formula-cell{cursor:default}.cell.editing{padding:2px;box-shadow:inset 0 0 0 2px #7294e6;z-index:3;background:white!important}.cell-editor{display:block;border:0;background:white!important;width:100%;height:36px;padding:6px 9px;border-radius:0;outline:none!important;resize:vertical;font-size:13px;line-height:1.5}.cell-editor.numeric{text-align:right;font-variant-numeric:tabular-nums}.cell-editor.multiline{min-height:58px;height:auto;resize:none;overflow:hidden}.cell.pending-cell::before{content:"";position:absolute;right:2px;top:2px;width:4px;height:4px;background:#91a4cd;border-radius:50%}.name-cell{display:flex;align-items:flex-start;gap:7px;padding-left:calc(11px + var(--indent,0px))}.name-text{min-width:0;flex:1}.collapse-button{border:0;background:transparent;color:#8390a7;padding:0;width:15px;flex:0 0 15px;line-height:21px;font-size:11px;min-height:21px}.collapse-button:hover:not(:disabled){background:#dbe4f6;border-color:transparent}.leaf-indent{width:15px;flex:0 0 15px}.row-gutter{width:var(--gutter);left:0;position:sticky!important;z-index:2;border-right-color:#dfe5ee!important;text-align:center}.budget-table th.row-gutter{z-index:6;background:#f7f9fc}.row-marker{border:0;background:transparent;color:#9ba7ba;font-size:10px;line-height:1;min-height:39px;width:42px;padding:0;cursor:grab;position:relative}.row-marker:hover:not(:disabled){background:transparent;border:0;color:#63779b}.row-marker .grab{display:none;font-size:16px;font-weight:400;letter-spacing:-2px}.budget-table tr:hover .row-marker .row-number{display:none}.budget-table tr:hover .row-marker .grab{display:inline}.pinned-name{position:sticky!important;left:var(--gutter);z-index:2;border-right:1px solid #d7dfeb!important;box-shadow:4px 0 6px -5px #71829c55}.budget-table th.pinned-name{z-index:5}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:10px 16px;flex:0 0 auto;font-size:11px;color:#99a2b1;background:#fcfdfe}.footer-divider{margin:0 7px;color:#c1c8d2}.formula-legend{white-space:nowrap}.formula-legend>span{color:#a0abbc;font-size:12px;margin-right:3px}.drop-target{box-shadow:inset 0 3px #597feb!important;background:#e3edff!important}.table-empty{padding:65px 20px;text-align:center;color:#8a96a9;font-size:13px}.table-empty strong{display:block;color:#53647c;font-size:16px;font-weight:550;margin-bottom:9px}.loading{display:flex;align-items:center;justify-content:center;gap:11px;height:100%;min-height:180px;color:#8d99ae;font-size:13px}.spinner{display:inline-block;width:17px;height:17px;border:2px solid #e0e7f5;border-top-color:#6d88d7;border-radius:50%;animation:spin .8s linear infinite}.error-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fff4f3;color:#a1464e;padding:11px 16px;border-bottom:1px solid #f0d8d9;font-size:12px}.error-banner[hidden]{display:none}.error-banner button{border:0;background:transparent;color:inherit;padding:0 5px;font-size:20px}.toast{position:fixed;bottom:35px;left:50%;transform:translate(-50%,10px);background:#2d3c55;color:white;padding:11px 17px;border-radius:7px;box-shadow:0 5px 25px #243a5c18;font-size:13px;opacity:0;pointer-events:none;z-index:80;transition:.17s ease;max-width:90vw;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.modal-backdrop{position:fixed;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;background:#1d2b4240;padding:24px;backdrop-filter:blur(2px)}.modal{background:white;border-radius:11px;box-shadow:0 22px 85px #182e5540;max-width:100%;width:480px;max-height:calc(100dvh - 48px);display:flex;flex-direction:column;overflow:hidden}.modal.wide{width:760px}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid var(--line);flex:0 0 auto}.modal-header h2{font-size:18px;font-weight:600;margin:0}.modal-header button{border:0;background:transparent;font-size:22px;line-height:1;padding:0 5px;color:#8a95a9}.modal-body{padding:21px 22px;overflow:auto;min-height:0}.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);padding:14px 22px;flex:0 0 auto}.form-field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;min-width:0}.form-field:last-child{margin-bottom:0}.form-field>span{font-size:12px;color:#748198}.form-field input,.form-field select,.form-field textarea{width:100%;font-size:13px;padding:9px 10px}.form-field textarea{resize:vertical;min-height:76px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-help{color:#8a95a8;font-size:12px;margin:15px 0 0;line-height:1.55}.form-error{background:#fff1f1;color:#a4444d;border-radius:5px;padding:10px 12px;font-size:12px;margin-top:15px}.form-error[hidden]{display:none}.settings-options{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:19px}.settings-options label{display:flex;gap:9px;align-items:center;color:#607086;font-size:13px}.column-settings{display:flex;flex-direction:column;gap:5px}.column-setting{display:flex;align-items:center;gap:9px;padding:8px 9px;border:1px solid #e6eaf1;border-radius:6px;background:#fafbfd;min-height:49px}.column-setting.focused-setting{border-color:#92adeb;background:#f2f6ff}.column-setting input[type=checkbox]{flex:0 0 15px;width:15px;height:15px;margin:0}.column-setting .column-name-input{flex:1;width:160px;border-color:transparent;background:transparent;padding:5px 6px;font-size:13px}.column-setting .column-name-input:hover,.column-setting .column-name-input:focus{border-color:#d0d9e9;background:white}.column-type{font-size:10px;color:#94a0b2;white-space:nowrap;width:45px}.column-width-input{width:56px;font-size:11px;padding:5px 4px;color:#7d8ca4;border-color:#e4e9f1}.column-setting button{font-size:13px;padding:4px 6px;line-height:1.2;border-color:transparent;background:transparent;min-width:24px}.column-setting button:hover:not(:disabled){background:#e9eff9}.column-setting.hidden-column{opacity:.65}.settings-caption{display:flex;justify-content:space-between;font-size:11px;color:#9aa5b6;margin:0 8px 8px}.detail-name{font-size:15px;font-weight:550;line-height:1.55;white-space:pre-line;color:#4a5c76;margin:0 0 14px}.detail-meta{font-size:12px;color:#8897ae;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:18px}.detail-row{display:grid;grid-template-columns:160px 1fr;gap:12px;padding:9px 0;border-bottom:1px solid #f0f2f6;line-height:1.5;font-size:13px}.detail-label{color:#8c98ab}.detail-value{white-space:pre-line;overflow-wrap:anywhere}.detail-formula{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;color:#8593ab;white-space:pre-wrap;margin-top:5px}.detail-warning{color:#a37b50;background:#fffbf3;padding:11px 13px;border:1px solid #eee3ce;border-radius:5px;font-size:12px;line-height:1.6;margin:15px 0 0}.delete-description{font-size:14px;line-height:1.6;color:#627188;margin:0}.nowrap-table .cell:not(.editing){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-height:41px;line-height:23px}.nowrap-table .name-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nowrap-table .cell.numeric{white-space:nowrap}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.35}}@media(min-width:1700px){.workspace{padding-left:34px;padding-right:34px}.page-header{flex-basis:100px}}@media(max-width:1050px){.workspace{padding:0 16px 16px}.table-toolbar{align-items:flex-start;flex-wrap:wrap;padding:12px}.toolbar-navigation{margin-left:auto}.page-title h1{font-size:23px}.page-title h1 span{font-size:18px}.save-controls{gap:9px}.search-box input{width:175px}.selection-bar{padding-left:12px;padding-right:12px}}@media(max-width:700px){.workspace{padding:0 8px 8px}.page-header{flex-basis:81px;gap:8px}.page-title{gap:8px}.brand-mark{width:29px;height:29px;font-size:18px}.page-title h1{font-size:21px}.page-title h1 span{font-size:14px;display:block;margin-top:2px;letter-spacing:0}.page-title p{display:none}.save-controls{gap:2px;align-items:flex-end;flex-direction:column}.save-controls>.quiet-button{padding:4px;font-size:11px}.save-status{font-size:10px}.table-toolbar{gap:9px;padding:10px}.toolbar-group{gap:5px}.toolbar-group button{font-size:12px;padding:7px 8px}.toolbar-navigation{width:100%;justify-content:space-between;margin-left:0}.toolbar-navigation>.quiet-button{font-size:10px;padding:5px}.search-box{margin-left:2px}.search-box input{width:122px;font-size:12px;padding-top:6px;padding-bottom:6px}.selection-hint{font-size:10px}.selection-bar{padding:4px 9px}.selected-name{max-width:45%;font-size:10px}.selection-actions{gap:0}.selection-actions button{font-size:11px;padding:4px 6px}.table-footer{font-size:9px;padding:8px 10px}.formula-legend{display:none}.footer-divider{margin:0 3px}.modal-backdrop{padding:10px}.modal{max-height:calc(100dvh - 20px)}.modal-body{padding:17px}.modal-header,.modal-footer{padding:15px 17px}.column-setting{gap:4px;padding:7px 5px}.column-type{display:none}.column-setting .column-name-input{width:100px;font-size:12px}.column-width-input{width:43px}.column-setting button{padding:4px}.detail-row{grid-template-columns:110px 1fr}.form-grid{grid-template-columns:1fr;gap:0}}
.backup-link{font-size:12px;color:#6380bd;text-decoration:none;white-space:nowrap}.backup-link:hover{text-decoration:underline}.error-cell{color:#a98150!important;background:#fffbf2!important}.budget-table tr.drop-target td{border-top:2px solid #597feb}.column-handle:focus-visible{opacity:1}
.budget-table,.cell.numeric,.cell-editor{font-size:14px}
.column-head{display:block;position:relative;padding:0 2px;min-height:15px}
.column-label{display:block;overflow-wrap:normal;word-break:normal}
.column-handle{position:absolute;left:-10px;top:0}
.column-menu{position:absolute;right:-9px;bottom:-12px;margin-left:0}
.sheet-tabs{display:flex;gap:6px;flex:0 0 auto;padding:0 0 12px;overflow-x:auto}
.sheet-tab{padding:11px 18px;border:1px solid #c9d2df;background:#edf1f7;color:#526278;font-weight:600;font-size:14px}
.sheet-tab.active{background:#fff;color:#274ca7;border-color:#6b88ca;box-shadow:inset 0 -3px #4168c5}
.project-subnav{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-width:0;margin:0 0 10px}
#project-subnav>.sheet-tabs{display:flex;align-items:center;flex:1;flex-wrap:nowrap;gap:4px;min-width:0;overflow-x:auto;overflow-y:hidden;margin:0;padding:4px;border:1px solid #e0e5ee;border-radius:8px;background:#edf1f7;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#c6cfdf transparent}
#project-subnav .sheet-tab{flex:0 0 auto;min-height:34px;padding:8px 13px;border:0;border-radius:5px;background:transparent;box-shadow:none;color:#64728a;font-size:13px;font-weight:550;white-space:nowrap}
#project-subnav .sheet-tab:hover:not(:disabled){background:#e2e8f4;color:#3e527a}
#project-subnav .sheet-tab.active,#project-subnav .sheet-tab[aria-selected=true]{background:#fff;color:#3e548d;box-shadow:0 1px 3px #26375412,inset 0 -2px #7083ba;font-weight:650}
#project-subnav .sheet-tab:focus-visible{outline:2px solid #8099e0;outline-offset:-2px}
#project-subnav .sheet-tab[draggable=true]{position:relative;cursor:grab;user-select:none}#project-subnav .sheet-tab.estimate-tab-dragging{opacity:.45;cursor:grabbing}#project-subnav .sheet-tab.estimate-tab-drop-before::before,#project-subnav .sheet-tab.estimate-tab-drop-after::after{content:"";position:absolute;top:3px;bottom:3px;width:3px;border-radius:2px;background:#617bc2;box-shadow:0 0 0 1px #edf1f7;pointer-events:none}#project-subnav .sheet-tab.estimate-tab-drop-before::before{left:-3px}#project-subnav .sheet-tab.estimate-tab-drop-after::after{right:-3px}
.new-estimate-button{flex:0 0 auto;min-height:42px;padding:8px 12px;border:1px dashed #b9c7e3;border-radius:7px;background:#f8faff;color:#556d9e;font-size:13px;font-weight:550}
.estimate-context-menu .context-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#445578;font-weight:650}.context-menu .context-hint{margin:5px 10px 7px;color:#7a879b;font-size:12px;line-height:1.45}
@media(max-width:700px){.project-subnav{gap:6px;margin-bottom:8px}#project-subnav .sheet-tab{min-height:32px;padding:7px 11px;font-size:12px}.new-estimate-button{min-height:40px;padding:8px 10px;font-size:12px}}
@media print{.project-subnav{display:none!important}}
.edit-toggle{border-color:#8ba1c2;background:#f5f8fd;color:#335780;font-weight:650}
.edit-toggle[aria-pressed=true]{background:#335dbf;border-color:#335dbf;color:white}
.budget-table th{font-size:14px;font-weight:750;color:#33435b;height:66px;border-right:1px solid #bdc9da;border-bottom:2px solid #9dacbf;background:#edf2fa}
.budget-table td{border-right:1px solid #c4cedb;border-bottom:1px solid #c4cedb}
.budget-table tr.group-row td{border-top:2px solid #aab8cd;border-bottom:1px solid #b5c2d5}
.budget-table .pinned-name{border-right:2px solid #adbcd0!important}
.collapse-button{width:27px;flex:0 0 27px;min-height:27px;line-height:24px;font-size:21px;font-weight:800;color:#315680;background:#dfe8f5;border:1px solid #a8bbd7;border-radius:4px;margin-top:0}
.collapse-button:hover:not(:disabled){color:#173e73;background:#cbdcf5;border-color:#7198c9}
.leaf-indent{width:27px;flex:0 0 27px}
body:not(.edit-mode) .cell{cursor:default}
body:not(.edit-mode) .column-handle{display:none}
body:not(.edit-mode) .row-marker{cursor:default}
body:not(.edit-mode) .budget-table tr:hover .row-marker .grab{display:none}
body:not(.edit-mode) .budget-table tr:hover .row-marker .row-number{display:inline}
.cell-editor:is(select){padding-right:24px;cursor:pointer;border:1px solid #6288d2;border-radius:3px}
.budget-table th[data-column-target=unit] .column-label{font-size:13px}
@media(max-width:700px){.sheet-tabs{padding-bottom:8px;gap:4px}.sheet-tab{font-size:12px;padding:9px 12px}.budget-table th{font-size:13px}}
.table-toolbar>.toolbar-group:first-child{flex-wrap:wrap}
.collapse-button,.collapse-button:hover:not(:disabled){border:0;background:transparent;border-radius:0;box-shadow:none}
.collapse-button:hover:not(:disabled){color:#173e73}
.budget-table .pinned-name{position:sticky!important;left:var(--gutter);z-index:3;box-shadow:5px 0 8px -5px #55688280;background-clip:padding-box}
.budget-table th.pinned-name{z-index:7}
.budget-table th.row-gutter{z-index:8}
.column-resizer{position:absolute;right:-4px;top:0;bottom:0;width:10px;padding:0;border:0;border-radius:0;background:transparent;cursor:col-resize;touch-action:none;z-index:10;opacity:1}
.column-resizer::after{content:"";position:absolute;right:4px;top:5px;bottom:5px;width:2px;background:transparent}
.column-resizer:hover:not(:disabled){background:transparent;border:0}
.column-resizer:hover:not(:disabled)::after,.column-resizer:focus-visible::after{background:#4169c8}
body:not(.edit-mode) .column-resizer{display:none}
body.resizing-column,body.resizing-column *{cursor:col-resize!important;user-select:none!important}
.budget-table{min-width:0}
.edit-toggle[aria-pressed=true]:hover:not(:disabled){background:#294ea4;border-color:#294ea4;color:#fff}

:root{--gutter:76px}
.row-selection{display:flex;align-items:center;justify-content:center;gap:3px}
.row-selection input,.row-gutter>input{width:16px;height:16px;min-width:16px;margin:0;accent-color:#405ab5;cursor:pointer}
.row-selection .row-marker{width:33px;min-width:33px}

.delete-list{padding-left:20px;max-height:180px;overflow:auto;color:#536078;font-size:13px;line-height:1.5}.delete-list li{margin:6px 0}

.column-bulk{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:12px 0}.column-bulk button{font-size:12px;padding:6px 8px}.column-bulk span{width:100%;font-size:12px;color:#65738b}.duplicate-group{border:1px solid #d7dfed;border-radius:6px;margin:10px 0;padding:10px;font-size:13px}.duplicate-group>div{padding:6px 0}.duplicate-group small{display:block;color:#7d8696;font-size:11px;margin-top:4px}

.context-menu{position:fixed;z-index:300;width:225px;padding:6px;border:1px solid #cbd5e4;border-radius:9px;background:#fff;box-shadow:0 8px 28px #26334d26}.context-caption{padding:7px 10px;color:#7a879b;font-size:12px;border-bottom:1px solid #edf0f5;margin-bottom:4px}.context-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:9px 10px;border-radius:5px;font-size:13px}.context-menu button:hover:not(:disabled),.context-menu button:focus-visible{background:#eaf0fc;outline:0}.context-menu button:disabled{opacity:.4}.budget-table th.selected-column{box-shadow:inset 0 -3px #405ab5;background:#e4ebfa}

.budget-table .cut-position{opacity:.6;outline:1px dashed #5b74b7;outline-offset:-2px}

[hidden]{display:none!important}.sheet-tabs{flex-wrap:wrap}.section-placeholder{padding:60px 24px;text-align:center;color:#8591a4}.section-placeholder h2{font-size:22px;color:#4c5a72;margin:0 0 12px}.section-placeholder p{font-size:14px;margin:0}

.contractors-mode .table-toolbar .toolbar-group>button:not(#edit-toggle),.contractors-mode .toolbar-navigation{display:none!important}
.contractor-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 18px}.contractor-heading h2{margin:0;font-size:20px}.contractor-table{width:100%;border-collapse:collapse;min-width:1050px}.contractor-table th{padding:13px;text-align:left;font-size:14px;font-weight:700;background:#edf2f9;border:1px solid #c9d2e1}.contractor-table td{padding:12px;border:1px solid #c9d2e1;font-size:13px;vertical-align:top;white-space:pre-wrap}.contractor-table td.numeric{white-space:nowrap}.contractor-table td:last-child{width:160px}.contractor-table td:last-child button{font-size:12px;margin:0 4px 5px 0}.contractor-links{max-width:340px}.link-chip{display:block;text-align:left;font-size:11px;line-height:1.4;padding:5px 7px;margin:0 0 5px;border-radius:5px;background:#edf3ff;color:#3b5785;border:1px solid #ccdaf1;white-space:normal}.tab-link{background:#f3f5f8}.missing-link{display:block;color:#a56634}.link-heading{font-size:14px;margin:18px 0 12px}.contractor-link-list{max-height:220px;overflow:auto;border:1px solid #cbd5e4;border-radius:6px}.contractor-link-list label{display:flex;gap:10px;align-items:flex-start;padding:9px 12px;border-bottom:1px solid #e5eaf2;font-size:12px;line-height:1.5}.contractor-link-list input{margin:4px 0;flex-shrink:0}.contractor-link-list small{display:block;color:#7b8ba3}.contractor-tab-links{display:flex;flex-wrap:wrap;gap:12px;font-size:12px}.contractor-tab-links label{display:flex;gap:5px;align-items:center}

.act-items{max-height:340px;overflow:auto;border:1px solid #c3cad7;border-radius:8px}.act-items table{border-collapse:collapse;width:100%;font-size:13px}.act-items th,.act-items td{padding:9px;border:1px solid #cbd2df;text-align:left}.act-items th{position:sticky;top:0;background:#eef2f8;z-index:1}.act-items td:nth-child(2){min-width:260px}.act-items input[type=number]{width:110px;padding:8px;border:1px solid #aab6ca;border-radius:5px}.act-items small{display:block;color:#68778e;margin-top:5px}.act-selected{background:#f0f4ff}.act-total{font-weight:700;font-size:16px}.act-filter{display:block;margin-bottom:12px}.contractor-links small{display:block;color:#68778e}

.budget-table .act-value{background:#f0f5ff;color:#254780}.budget-table .act-exceeded{background:#fff0ef;color:#b3261e;font-weight:700}.detail-act-links{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.act-percent-tools{display:flex;align-items:end;gap:12px;margin:12px 0}.act-percent-tools .form-field{margin:0;max-width:260px}.act-percent-tools button{margin-bottom:2px}.act-items input[data-act-percent]{width:90px}
.estimate-vat-toggle.vat-configured{color:#52689b;border-color:#c8d3eb;background:#f4f7fe}.estimate-vat-enabled{display:flex;align-items:center;gap:8px;margin-bottom:18px;color:#52647f;font-size:13px}.estimate-vat-enabled input{width:16px;height:16px;margin:0}.estimate-vat-summary{margin:12px 0;padding:11px 13px;border:1px solid #dce4f4;border-radius:7px;background:#f3f6fc;color:#5e7398;font-size:12px;line-height:1.6}#estimate-vat-form input[name=rate]{max-width:180px}.act-vat-note{white-space:normal;font-size:11px}.act-vat-unknown{display:block;max-width:220px;margin-top:4px;white-space:normal;color:#a47a42!important;font-size:11px;font-weight:400}.act-total{line-height:1.7;white-space:normal}

.act-complete-label{display:block;font-size:11px;font-weight:600;color:#27704c;margin-top:4px}.act-limit-message{color:#b3261e!important}.act-over-limit{background:#fff0ef!important}.act-items tr:has(input[name="actRows"]:disabled:not(:checked)){background:#f3f4f6;color:#788293}

.act-status{display:inline-block;padding:5px 9px;border-radius:6px;font-size:12px;font-weight:700;white-space:nowrap}.act-status.draft{background:#fff1cd;color:#8b5d0a}.act-status.signed{background:#e2f3e8;color:#22633e}

.act-filters{display:grid;grid-template-columns:minmax(160px,1fr) minmax(130px,.8fr) minmax(180px,1fr) minmax(200px,1.2fr) auto;gap:12px;align-items:end;padding:0 18px 10px}.act-filters .form-field{margin:0;min-width:0}.act-filters input,.act-filters select{width:100%;min-width:0}.act-filters>button{height:38px}.act-filter-count{margin:0;padding:0 18px 14px;color:#65738a;font-size:13px}@media(max-width:950px){.act-filters{grid-template-columns:1fr 1fr}}@media(max-width:550px){.act-filters{grid-template-columns:1fr}}

.act-picking #generate-act{background:#edf2ff;border-color:#5878d7;color:#294ba2}.act-picking .selection-bar{background:#eef4ff;border-bottom:1px solid #abc0e6}.act-picking .selected-name{white-space:normal}.act-picking .selection-actions .primary{background:#3d63dc;color:white;border:1px solid #3d63dc;padding:8px 12px}

.saved-act-notice {display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 24px;padding:16px 20px;border:1px solid #b8cddd;border-radius:10px;background:#edf5fa;color:#203746;}
.saved-act-notice[hidden] {display:none;}
.saved-act-notice strong,.saved-act-notice span {display:block;}
.saved-act-notice span {margin-top:5px;font-size:14px;}
@media(max-width:760px) {.saved-act-notice {flex-direction:column;align-items:flex-start;margin:12px;}}
/* Project directory */
.projects-page {background:#f5f6f8;overflow:auto;}
.projects-shell {max-width:1320px;margin:0 auto;padding:40px 32px;}
.projects-header {display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:38px;}
.projects-header h1 {margin:0;font-size:30px;letter-spacing:-.6px;}
.projects-header p {margin:8px 0 0;color:#687386;font-size:14px;}
.projects-header .primary {padding:12px 18px;white-space:nowrap;}
.projects-tools {display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;color:#687386;font-size:14px;}
.projects-tools .search-box {width:360px;background:white;}
.projects-tools input {width:100%;}
.project-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:22px;}
.project-card {display:flex;flex-direction:column;min-height:230px;padding:26px;background:white;border:1px solid #dbe1e8;border-radius:16px;text-decoration:none;color:#253347;transition:box-shadow .15s,border-color .15s,transform .15s;}
.project-card:hover {border-color:#809daf;box-shadow:0 10px 28px #21344712;transform:translateY(-2px);}
.project-card:focus-visible {outline:3px solid #5592b7;outline-offset:3px;}
.project-icon {display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#edf4f8;color:#315d76;font-size:28px;}
.project-card h2 {font-size:25px;margin:20px 0 8px;overflow-wrap:anywhere;}
.project-card p {color:#687386;margin:0 0 26px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap;}
.project-card-link {margin-top:auto;display:flex;justify-content:space-between;color:#315d76;font-size:14px;font-weight:600;gap:15px;}
.all-projects {font-size:14px;color:#486478;text-decoration:none;white-space:nowrap;margin-right:18px;}
.all-projects:hover {text-decoration:underline;}
#new-project-form .form-field {margin-bottom:18px;}
#new-project-form textarea {border:1px solid #cdd5df;border-radius:6px;padding:10px;font:inherit;resize:vertical;}
@media(max-width:760px){.projects-shell {padding:24px 16px;}.projects-header {align-items:flex-start;flex-direction:column;}.projects-header h1 {font-size:26px;}.projects-tools .search-box {width:75%;}.page-header .page-title {flex-wrap:wrap;}.all-projects {width:100%;margin:0 0 8px;}}
.project-filters {display:flex;gap:4px;padding:4px;background:#e8edf3;border-radius:9px;}
.project-filters button {border:0;background:transparent;}
.project-filters button[aria-pressed=true] {background:white;box-shadow:0 1px 4px #20374618;}
.project-card h2 a {color:inherit;text-decoration:none;}
.project-card h2 a:hover {text-decoration:underline;}
.project-card .project-card-link {text-decoration:none;padding-top:12px;}
.project-cover {width:calc(100% + 52px);margin:-26px -26px 18px;height:190px;object-fit:cover;border-radius:16px 16px 0 0;}
.project-tags {display:flex;flex-wrap:wrap;gap:6px;margin-top:14px;}
.project-tags span {font-size:12px;padding:4px 7px;border-radius:6px;background:#edf3f7;color:#496379;}
.project-card-actions {display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 8px;}
.project-card-actions button {font-size:12px;padding:8px;}
.project-address {color:#687386;line-height:1.5;white-space:pre-wrap;}
.archived-project {background:#f9fafb;}
.project-passport h3 {margin:12px 0 20px;font-size:18px;}
.project-passport textarea {font:inherit;resize:vertical;min-height:100px;border:1px solid #cdd5df;border-radius:7px;padding:10px;}
.project-passport .form-field {margin-bottom:16px;}
.project-passport .form-field[hidden] {display:none;}
.project-passport .passport-draft-status{flex:0 0 auto;margin:0;padding:9px 22px;font-size:11px;color:#697b70;background:#f5f9f6;border-top:1px solid #e3ebe5}
.project-passport .passport-draft-status.is-error{color:#a4444d;background:#fff2f1;border-color:#f0d4d4}
.passport-draft-banner{padding:12px 14px;margin:0 0 18px;background:#f0f3ff;border:1px solid #d9e0f5;border-radius:8px;color:#4d5d7e}
.passport-draft-banner p{margin:0 0 10px;font-size:13px;line-height:1.5}.passport-draft-banner>div{display:flex;gap:8px;flex-wrap:wrap}.passport-draft-banner button{font-size:12px;padding:6px 11px}
.passport-history-explainer{margin:0 0 18px}.passport-history-list{display:flex;flex-direction:column;gap:10px}.passport-history-entry{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #e2e6ef;border-radius:8px;padding:13px 15px;background:#fafbfe}.passport-history-entry>div{min-width:0}.passport-history-entry strong{font-size:14px;color:#35425c}.passport-history-operation{margin-left:10px;color:#65738b;font-size:12px}.passport-history-entry p{font-size:12px;color:#728097;margin:7px 0 0;overflow-wrap:anywhere}.passport-history-entry>button{flex-shrink:0;font-size:12px}.passport-history-meta{display:flex;gap:8px 16px;flex-wrap:wrap;font-size:12px;color:#75819a;margin:7px 0}.passport-history-meta>span{font-weight:550;color:#586985}.passport-history-table-wrap{overflow:auto;margin:12px 0 20px;border:1px solid #e2e6ef;border-radius:7px;max-width:100%}.passport-history-table{border-collapse:collapse;width:100%;min-width:480px;table-layout:fixed;font-size:12px}.passport-history-table th,.passport-history-table td{padding:10px 12px;border-bottom:1px solid #e6eaf1;text-align:left;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}.passport-history-table thead th{background:#f1f4fa;color:#57657c;font-weight:600}.passport-history-table th[scope=row]{font-weight:500;color:#68768e;width:29%}.passport-history-table tbody tr:last-child>*{border-bottom:0}.passport-history-table tr.history-field-changed>*{background:#fffaf0}.passport-history-comparison>summary{font-size:13px;color:#536788;cursor:pointer;font-weight:600}.passport-history-photos{display:flex;gap:20px;flex-wrap:wrap}.passport-history-photos figure{margin:0}.passport-history-photos img{width:180px;height:120px;object-fit:cover;border-radius:8px;border:1px solid #e0e5ef}.passport-history-photos figcaption{font-size:11px;color:#8090a6;margin-top:5px}
.passport-history-field-tools{margin:12px 0;padding:13px 15px;background:#f3f6fd;border:1px solid #dce3f2;border-radius:8px;display:flex;flex-direction:column;gap:10px}.passport-history-field-tools strong{font-size:13px;color:#415471}.passport-history-field-tools>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.passport-history-field-tools button{font-size:12px;padding:7px 10px}.passport-history-field-tools label{display:flex;align-items:center;gap:7px;font-size:12px;color:#536481;cursor:pointer}.passport-history-field-tools input,.passport-history-select-col input{width:16px;height:16px;accent-color:#576bb1;cursor:pointer}.passport-history-field-tools input:disabled,.passport-history-select-col input:disabled{cursor:default}.passport-history-field-tools [role=status],.passport-history-field-tools small{font-size:12px;color:#6c7b93}.passport-history-select-table{min-width:560px}.passport-history-table .passport-history-select-col{width:52px;text-align:center;padding-left:5px;padding-right:5px}.passport-history-select-table th[scope=row]{width:24%}.passport-history-table tr.history-field-selected>*{background:#eaf0ff}
.passport-history-compare-picker{margin:0 0 18px;padding:15px;border:1px solid #dce3f2;border-radius:8px;background:#f3f6fd}
.passport-history-compare-picker h4{margin:0 0 6px;font-size:14px;font-weight:600;color:#415471}
.passport-history-compare-picker>p{margin:0 0 13px;font-size:12px;line-height:1.5;color:#6c7b93}
.passport-history-compare-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px}
.passport-history-compare-controls>label{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0}
.passport-history-compare-controls>label>span{font-size:12px;color:#536481}
.passport-history-compare-controls select{width:100%;min-width:0;font-size:12px;padding:8px 9px;text-overflow:ellipsis}
.passport-history-compare-controls>button{font-size:12px;padding:8px 11px;min-height:35px}
.passport-history-compare-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 15px}
.passport-history-compare-summary>div,.passport-history-compare-summary>section{min-width:0;padding:13px 14px;border:1px solid #e2e6ef;border-radius:8px;background:#fafbfe;overflow-wrap:anywhere}
.project-passport .passport-history-compare-summary h3{margin:0 0 8px;font-size:14px;font-weight:600;color:#415471}
.passport-history-compare-summary .passport-history-meta{margin:7px 0 12px}
.passport-history-compare-summary button{max-width:100%;font-size:12px;padding:7px 10px;white-space:normal;text-align:left}
.passport-history-compare-tools{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;margin:12px 0;color:#6c7b93;font-size:12px}
.passport-history-compare-tools button{font-size:12px;padding:7px 10px;white-space:normal}
.passport-history-compare-tools label{display:flex;align-items:center;gap:7px;cursor:pointer;color:#536481}
.passport-history-compare-tools input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:#576bb1;cursor:pointer}
.passport-history-compare-tools [role=status]{margin-left:auto;font-size:12px}
.passport-history-readonly{display:block;font-size:10px;color:#8190a5;font-weight:400;line-height:1.4;margin-top:4px}
.passport-history-compare-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0 0}
.passport-history-compare-photos figure{min-width:0;margin:0}
.passport-history-compare-photos img{display:block;width:180px;max-width:100%;height:120px;object-fit:cover;border:1px solid #e0e5ef;border-radius:8px}
.passport-history-compare-photos figcaption{font-size:11px;color:#8090a6;margin-top:6px;overflow-wrap:anywhere}
@media(max-width:650px){.passport-history-compare-picker{padding:12px}.passport-history-compare-controls,.passport-history-compare-summary,.passport-history-compare-photos{grid-template-columns:1fr}.passport-history-compare-controls{gap:10px}.passport-history-compare-controls>button{justify-self:start}.passport-history-compare-summary{gap:10px}.passport-history-compare-tools{align-items:flex-start;gap:10px 12px}.passport-history-compare-tools [role=status]{flex-basis:100%;margin-left:0}}
@media(max-width:650px){.passport-history-entry{padding:11px;gap:10px;align-items:flex-start}.passport-history-operation{display:block;margin:4px 0 0}.passport-history-entry>button{padding:6px 9px}.passport-history-table{min-width:430px}.passport-history-select-table{min-width:530px}.passport-history-meta{font-size:11px;gap:5px 12px}}
.project-passport .modal-footer{flex-wrap:wrap}.project-passport .modal-footer button{max-width:100%;white-space:normal}
@media(max-width:700px){.project-passport .passport-draft-status{padding:8px 17px}.project-passport .modal-footer{gap:6px}.project-passport .modal-footer button{font-size:12px;padding:7px 9px}}
.passport-photo-row {display:flex;gap:20px;align-items:center;margin-bottom:24px;}
.passport-photo-preview {width:180px;height:120px;object-fit:cover;border-radius:10px;border:1px solid #dbe1e8;}
.address-suggestions {border:1px solid #cdd5df;border-radius:8px;margin-bottom:12px;background:white;}
.address-suggestions button {display:block;text-align:left;width:100%;border:0;border-bottom:1px solid #e4e9ef;border-radius:0;padding:10px;background:white;}
.address-suggestions button:hover,.address-suggestions button:focus {background:#edf5fa;}
.address-suggestions small {display:block;color:#687386;margin-top:3px;}
#passport-map {margin-bottom:20px;}
@media(max-width:760px){.projects-tools {flex-wrap:wrap;}.projects-tools .search-box {width:100%;}.passport-photo-row {flex-direction:column;align-items:flex-start;}}
/* Photo cards and passport preview */
.project-card {position:relative;}
.project-card:has(.project-info-popup:not([hidden])) {z-index:10;transform:none;}
.project-media {margin:-26px -26px 0;height:210px;border-radius:16px 16px 0 0;overflow:hidden;}
.project-media .project-cover {display:block;width:100%;height:100%;object-fit:cover;margin:0;border-radius:0;}
.project-photo-placeholder {height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:linear-gradient(145deg,#e4edf3,#f0f4f7);color:#8095a6;}
.project-photo-placeholder>span {font-size:48px;line-height:1;}
.project-photo-placeholder small {font-size:13px;}
.project-card .project-tags {margin-top:18px;}
.project-card h2 {margin-top:16px;}
.project-info {position:absolute;top:12px;right:12px;z-index:2;}
.project-info-button {width:32px;height:32px;display:grid;place-items:center;padding:0;border:1px solid #d0dae4;background:#ffffffed;border-radius:50%;color:#365b74;box-shadow:0 2px 7px #20374612;font-family:Georgia,serif;font-weight:bold;font-size:20px;cursor:pointer;}
.project-info-button:hover,.project-info-button[aria-expanded=true] {background:#365b74;color:white;border-color:#365b74;}
.project-info-button:focus-visible {outline:3px solid #7a9fd5;outline-offset:3px;}
.project-info-popup {position:absolute;top:32px;right:0;width:min(360px,calc(100vw - 48px));padding-top:10px;background:transparent;filter:drop-shadow(0 10px 20px #20374626);color:#253347;}
.project-info-popup[hidden] {display:none;}
.project-info-popup>header {padding:18px 20px 14px;border:1px solid #d6dfe7;border-bottom:0;border-radius:12px 12px 0 0;background:white;}
.project-info-popup>header small {font-size:12px;color:#7a8794;}
.project-info-popup h3 {font-size:19px;line-height:1.35;margin:6px 0 0;overflow-wrap:anywhere;}
.project-info-content {padding:0 20px 8px;max-height:320px;overflow:auto;border:1px solid #d6dfe7;border-top:0;border-bottom:0;background:white;}
.project-info-photo {width:100%;height:110px;object-fit:cover;border-radius:7px;margin:0 0 8px;}
.project-info-content dl {margin:0;}
.project-info-content dl>div {padding:10px 0;border-bottom:1px solid #edf0f4;}
.project-info-content dt {font-size:11px;font-weight:600;color:#7a8794;margin-bottom:4px;}
.project-info-content dd {font-size:13px;line-height:1.5;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;}
.project-info-popup>footer {padding:12px 20px;border:1px solid #d6dfe7;border-top:0;border-radius:0 0 12px 12px;background:white;}
.project-info-popup>footer button {width:100%;}
.project-info-popup {padding-top:0;}
.project-info-content {max-height:min(300px,calc(100vh - 220px));}
.project-info-button span {color:inherit;}
.project-info .project-info-button:hover:not(:disabled),.project-info .project-info-button[aria-expanded=true] {background:#365b74;color:white;border-color:#365b74;}
.project-metrics {padding:16px 0 0;border-top:1px solid #e6ebf0;margin-top:2px;}
.project-budget,.project-completion {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.project-budget>span,.project-completion>span {font-size:12px;color:#687386;}
.project-budget small {display:block;font-size:10px;}
.project-budget strong {font-size:21px;letter-spacing:-.4px;white-space:nowrap;}
.project-completion {margin-top:18px;}
.project-completion strong {font-size:19px;color:#365b74;}
.project-progress {height:7px;border-radius:5px;background:#e8edf3;margin:8px 0 9px;overflow:hidden;}
.project-progress>span {display:block;height:100%;border-radius:5px;background:#4c79a0;}
.project-signed,.project-metrics-note,.project-metrics-warning {display:block;font-size:11px;color:#7a8794;line-height:1.5;}
.project-metrics-note {margin-top:7px;}
.project-metrics-warning {color:#ab4550;margin-top:7px;}
.metrics-exceeded .project-completion strong {color:#ab4550;}
.metrics-exceeded .project-progress>span {background:#bb6570;}
.project-metrics-details {margin-top:9px;color:#7a8794;font-size:10px;}
.project-metrics-details summary {cursor:pointer;width:fit-content;}
.project-card .project-metrics-details p {font-size:11px;margin:7px 0 0;line-height:1.5;}
.project-card .missing-budget-button {display:block;width:100%;padding:7px 0;background:transparent;border:0;white-space:normal;text-align:left;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;color:#486b8b;}
.project-card .missing-budget-button:hover:not(:disabled) {color:#254780;background:#edf4fa;}
.missing-budget-table {border-collapse:collapse;width:100%;font-size:13px;}
.missing-budget-table th,.missing-budget-table td {text-align:left;padding:12px 10px;border-bottom:1px solid #e0e6ed;vertical-align:top;}
.missing-budget-table th {background:#f3f6fa;font-size:12px;color:#687386;}
.missing-budget-table td:first-child {min-width:220px;}
.missing-budget-table td span,.missing-budget-table td small {display:block;margin-top:5px;}
.missing-budget-table td small {color:#7a8794;}
.missing-budget-link {display:inline-block;color:#315d76;white-space:nowrap;}
#missing-budget-list {overflow-x:auto;}

.budget-navigation {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 16px;background:#f0f6fa;border-top:1px solid #dbe5ee;border-bottom:1px solid #dbe5ee;color:#486b82;font-size:12px;}
.budget-navigation[hidden] {display:none;}
.budget-navigation button {font-size:12px;border-color:#bfd0df;color:#315d76;}
@media(max-width:650px){.budget-navigation {flex-wrap:wrap;gap:8px;}.budget-navigation button {white-space:normal;text-align:left;}}

.project-card {box-shadow:5px 5px 18px rgba(35,52,70,.06);}
.project-card:hover {box-shadow:8px 8px 24px rgba(35,52,70,.09);}
.project-archive-button {color:#7d6d75;font-size:12px;}

.project-photo-link {display:block;text-decoration:none;}
.project-photo-link:focus-visible {outline:3px solid #6a91bb;outline-offset:3px;}
.project-photo-link .project-cover {transition:transform .2s ease;}
.project-photo-link:hover .project-cover {transform:scale(1.025);}
.import-modal {width:min(1240px,calc(100vw - 30px));}
.import-selection-tools {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0;}
.import-selection-tools strong {margin-left:auto;font-size:13px;}
.import-preview-scroll {overflow:auto;max-height:45vh;border:1px solid #dbe3ed;border-radius:8px;}
.import-preview-table {border-collapse:collapse;font-size:12px;min-width:1200px;width:100%;}
.import-preview-table th {position:sticky;top:0;background:#f0f4f8;text-align:left;padding:10px;z-index:1;white-space:nowrap;}
.import-preview-table td {padding:8px;border-bottom:1px solid #e0e6ed;vertical-align:top;}
.import-preview-table input:not([type=checkbox]) {width:100px;font-size:12px;}
.import-preview-table td:nth-child(4) input {width:240px;}
.import-preview-table td:nth-child(3) input {width:75px;display:block;}
.import-preview-table select {max-width:180px;font-size:12px;}
.import-preview-table .import-group {background:#edf4f8;}
.import-preview-table [data-import-check] {display:block;min-width:180px;color:#92702c;line-height:1.5;}
.import-warnings {background:#fff7e7;border:1px solid #eed7a4;border-radius:8px;padding:10px 14px;margin:12px 0;color:#886521;}
.import-warnings p {margin:4px 0;font-size:12px;}
#import-busy {color:#486b82;font-size:13px;}
.import-mapping {padding:10px 12px;border:1px solid #dbe3ed;border-radius:8px;margin:12px 0;}
.import-mapping summary {cursor:pointer;color:#486b82;font-size:13px;}
.import-mapping .form-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:700px){.import-mapping .form-grid {grid-template-columns:1fr;}}

.import-preview-table input.import-cell-missing,
.import-preview-table select.import-cell-missing {
  background: #fff5cf;
  border: 2px solid #d6a53c;
}
.import-preview-table input.import-cell-invalid,
.import-preview-table select.import-cell-invalid {
  background: #ffeded;
  border: 2px solid #d15c5c;
  color: #8e2929;
}
#import-validation { font-weight: 600; color: #73581e; }
.import-preview-table [data-import-check] { display: block; min-width: 210px; font-size: 12px; line-height: 1.5; }
.section-unit-empty { background: inherit; }

.import-problems-filter { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.import-problems-filter input { width: 16px; height: 16px; accent-color: #6575bd; }
.import-filter-empty { padding: 16px; background: #edf7f0; border-radius: 8px; color: #346747; }
.import-preview-table tr[hidden] { display: none; }

.budget-table .cell.imported-missing-cell { background: #fff5cf; box-shadow: inset 0 0 0 1px #d6a53c; }
.budget-table .cell.imported-missing-cell.active-cell { outline: 2px solid #627bd0; outline-offset: -2px; }

#import-missing-tools { flex-wrap: wrap; }
.shortcuts-help { position: relative; display: inline-flex; }
.shortcuts-help .shortcuts-help-button { border-radius: 50%; width: 28px; height: 28px; padding: 0; font-weight: 700; color: #647494; }
.shortcuts-tooltip { position: absolute; top: calc(100% + 8px); right: 0; width: 330px; max-width: 80vw; z-index: 30; padding: 14px; border: 1px solid #d9e0ec; border-radius: 8px; background: #fff; color: #303b51; box-shadow: 4px 6px 20px #25354b24; visibility: hidden; opacity: 0; pointer-events: none; line-height: 1.5; font-size: 13px; }
.shortcuts-tooltip strong,.shortcuts-tooltip span,.shortcuts-tooltip small { display: block; margin-bottom: 5px; }
.shortcuts-tooltip small { color: #738098; margin-bottom: 0; }
.shortcuts-help:hover .shortcuts-tooltip,.shortcuts-help:focus-within .shortcuts-tooltip { visibility: visible; opacity: 1; }

#notification-stack { position: fixed; right: 20px; bottom: 20px; width: 380px; max-width: calc(100vw - 32px); max-height: calc(100vh - 40px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; z-index: 2000; pointer-events: none; }
.operation-notice { position: relative; background: #fff; border: 1px solid #dbe2ed; border-left: 4px solid #7186bd; border-radius: 10px; box-shadow: 0 5px 24px #24344a22; padding: 14px 38px 14px 16px; pointer-events: auto; font-size: 13px; line-height: 1.5; }
.operation-notice p { margin: 0; overflow-wrap: anywhere; }
.operation-notice.notice-success { border-left-color: #43916d; }
.operation-notice.notice-error { border-left-color: #cb5b5b; }
.operation-notice.notice-pending { border-left-color: #c39b3b; }
.notice-close { position: absolute; top: 7px; right: 7px; border: 0; background: transparent; font-size: 21px; padding: 0 5px; color: #7c879b; cursor: pointer; }
.notice-actions { display: flex; gap: 8px; margin-top: 12px; }
.notice-actions button { border: 1px solid #d4ddec; background: #f5f7fc; border-radius: 6px; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.notice-actions button:first-child { background: #6575bd; border-color: #6575bd; color: white; }
#toast { display: none !important; }
body:has(.modal-backdrop) #notification-stack { bottom: 100px; max-height: calc(100vh - 160px); }
#notification-center { position: fixed; right: 20px; top: 16px; z-index: 2100; }
#notification-bell { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #fff; border: 1px solid #d7deea; border-radius: 50%; color: #657492; box-shadow: 0 2px 8px #26375014; cursor: pointer; }
#notification-unread { position: absolute; right: -4px; top: -4px; background: #6575bd; color: white; min-width: 18px; border-radius: 12px; font-size: 10px; padding: 2px 4px; }
#notification-history { position: absolute; right: 0; top: 48px; width: 420px; max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); background: #fff; border: 1px solid #d7deea; border-radius: 12px; box-shadow: 0 10px 35px #25365030; overflow: hidden; }
#notification-history header { display: flex; justify-content: space-between; align-items: center; padding: 15px 16px; border-bottom: 1px solid #e4e8ef; }
#notification-history h2 { font-size: 16px; margin: 0; }
#notification-history header button { border: 0; background: transparent; font-size: 24px; color: #78849a; cursor: pointer; }
.notification-history-filter { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 13px; background: #f6f8fc; }
#notification-history-list { max-height: calc(100vh - 220px); overflow-y: auto; padding: 12px; }
.history-notice { border-bottom: 1px solid #e5e9f0; padding: 12px 4px; font-size: 13px; line-height: 1.5; }
.history-notice small { color: #7d889c; }
.history-notice p { margin: 6px 0 0; overflow-wrap: anywhere; }
.history-notice.notice-pending { border-left: 3px solid #c39b3b; padding-left: 10px; }
.notification-history-empty { color: #7d889c; font-size: 13px; }
.page-header .save-controls,.projects-header { padding-right: 52px; }
@media(max-width:700px){#notification-center { right: 10px; top: 12px; } #notification-bell { width: 32px; height: 32px; } .page-header .save-controls { padding-right: 36px; }}

.notification-history-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid #e5e9f0; }
.notification-history-tools button { border: 1px solid #d8dfeb; border-radius: 6px; padding: 7px 10px; background: white; font-size: 12px; cursor: pointer; }
.notification-history-tools button:disabled { opacity: .45; cursor: default; }
#notification-clear-status { font-size: 12px; color: #4d8065; }
.notification-clear-confirm { background: #fff8e9; border-bottom: 1px solid #e9d8ad; padding: 12px 16px; font-size: 13px; line-height: 1.5; }
.notification-clear-confirm p { margin: 0; }
#confirm-notification-clear { background: #b55c57; border-color: #b55c57; color: white; }
#notification-history:has(#notification-clear-confirm:not([hidden])) #notification-history-list { max-height: calc(100vh - 390px); }

:root { --main-sidebar-width: 224px; }
body.has-main-nav { margin-left: var(--main-sidebar-width); }
.main-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--main-sidebar-width); background: #242b49; border-right: 1px solid #303958; padding: 28px 14px; z-index: 100; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 2px 12px 30px; color: #f2f4ff; text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: 1px; }
.sidebar-brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: #7181cb; color: #fff; border-radius: 10px; font-size: 23px; }
.sidebar-brand small { display: block; font-size: 10px; font-weight: 450; letter-spacing: 0; color: #aeb7d4; margin-top: 3px; }
.main-sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.main-nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: #c7cde2; border-radius: 8px; text-decoration: none; font-weight: 550; font-size: 14px; }
.main-nav-link:hover { background: #303958; color: #fff; }
.main-nav-link.active { color: #fff; background: #46558e; font-weight: 650; box-shadow: inset 3px 0 #94a3f0; }
.main-nav-link:focus-visible { outline: 2px solid #a5b3ff; outline-offset: -2px; }
.has-main-nav .page-header .brand-mark,.has-main-nav .projects-header .brand-mark { display: none; }
#main-menu-toggle,.main-menu-shade { display: none; }
.section-shell { padding: 44px 40px; max-width: 1200px; margin: 0 auto; }
.section-eyebrow { color: #8792a5; font-size: 12px; }
.section-shell h1 { margin: 8px 0 32px; font-size: 30px; letter-spacing: -.6px; }
.main-section-empty { border: 1px solid #e0e6ef; border-radius: 14px; background: white; padding: 30px; min-height: 200px; }
.main-section-empty p { color: #738096; margin: 0 0 22px; }
.section-projects-link { color: #566bb4; text-decoration: none; font-weight: 600; }
@media(max-width:900px){body.has-main-nav { margin-left: 0; } .main-sidebar { transform: translateX(-100%); transition: transform .18s ease; z-index: 2200; padding-top: 62px; } .main-nav-open .main-sidebar { transform: translateX(0); } #main-menu-toggle { position: fixed; display: block; left: 14px; top: 12px; width: 34px; height: 34px; border: 1px solid #d6deec; background: white; border-radius: 8px; color: #657492; z-index: 2300; padding: 0; font-size: 19px; cursor: pointer; } .main-nav-open .main-menu-shade { display: block; position: fixed; inset: 0; background: #25344b50; z-index: 2150; } .has-main-nav .projects-shell,.has-main-nav .section-shell { padding-top: 65px; } .has-main-nav .workspace { padding-top: 45px; } .section-shell { padding-left: 20px; padding-right: 20px; }}
@media(max-width:900px){.main-sidebar { visibility: hidden; } .main-nav-open .main-sidebar { visibility: visible; }}
.main-sidebar { scrollbar-color: #58658b #242b49; scrollbar-width: thin; }
@media(max-width:900px){.main-nav-open #main-menu-toggle { background: #303958; border-color: #4c5a80; color: #fff; }}
/* Shared application chrome: compact navigation and dark top bar. */
:root { --app-topbar-height: 56px; }
body.has-main-nav { padding-top: var(--app-topbar-height); }
.has-main-nav .workspace { height: calc(100dvh - var(--app-topbar-height)); }
.main-sidebar { padding: 0 12px 20px; }
.sidebar-brand { height: var(--app-topbar-height); padding: 0 12px; margin-bottom: 24px; flex-shrink: 0; }
.main-nav-link svg { flex-shrink: 0; }
.app-topbar { position: fixed; top: 0; left: var(--main-sidebar-width); right: 0; height: var(--app-topbar-height); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px 0 16px; background: #242b49; border-bottom: 1px solid #303958; color: #eef1ff; z-index: 1000; }
.topbar-context,.topbar-account,.topbar-user { display: flex; align-items: center; }
.topbar-context { gap: 13px; flex-shrink: 0; }
.topbar-user:focus-visible { outline: 2px solid #a5b3ff; outline-offset: 2px; }
.topbar-context-label { color: #b6bfd9; font-size: 13px; font-weight: 550; }
.topbar-summaries { flex: 1; min-width: 0; }
.topbar-account { gap: 20px; flex-shrink: 0; }
.topbar-user { gap: 10px; text-decoration: none; color: #eef1ff; font-size: 13px; font-weight: 550; border-radius: 7px; }
.topbar-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #3a456e; color: #dce3ff; }
.topbar-user-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-topbar #notification-center { position: relative; top: auto; right: auto; }
.app-topbar #notification-bell { background: transparent; color: #c7cde2; border-color: transparent; box-shadow: none; border-radius: 8px; width: 36px; height: 36px; }
.app-topbar #notification-bell:hover,.app-topbar #notification-bell[aria-expanded=true] { background: #303958; color: #fff; }
.app-topbar #notification-unread { background: #96a6f3; color: #202a49; right: -3px; top: -2px; font-weight: 700; }
.app-topbar #notification-history { position: fixed; right: 16px; top: calc(var(--app-topbar-height) + 8px); color: #252c3c; }
#main-nav-tooltip { position: fixed; transform: translateY(-50%); padding: 9px 13px; border: 1px solid #4a577f; background: #303958; color: white; border-radius: 7px; box-shadow: 0 4px 18px #1b244830; font-size: 13px; white-space: nowrap; pointer-events: none; z-index: 2500; }
.has-main-nav .page-header .save-controls,.has-main-nav .projects-header { padding-right: 0; }
@media(min-width:901px){
  body.nav-collapsed { --main-sidebar-width: 72px; }
}
@media(max-width:900px){
  .app-topbar { left: 0; gap: 10px; padding: 0 14px 0 60px; }
  .has-main-nav .main-sidebar { width: 224px; padding-top: 56px; }
  .has-main-nav .workspace { padding-top: 0; }
  .has-main-nav .projects-shell,.has-main-nav .section-shell { padding-top: 28px; }
  #main-menu-toggle { display: grid; place-items: center; top: 11px; background: transparent; border-color: transparent; color: #dce3ff; }
  .topbar-account { gap: 10px; }
  .topbar-user { gap: 7px; }
  .topbar-user-name { max-width: 110px; }
}
@media(max-width:440px){.topbar-context-label { font-size: 12px; } .topbar-user-name { max-width: 86px; font-size: 12px; } .topbar-account { gap: 6px; } .topbar-avatar { width: 28px; height: 28px; }}
.app-topbar #notification-bell { padding: 0; }
.app-topbar #notification-bell svg { flex-shrink: 0; }

.sidebar-brand { gap: 10px; }
.sidebar-brand-mark { width: 38px; height: 38px; background: transparent; border-radius: 0; flex-shrink: 0; }
.sidebar-brand-mark img { display: block; width: 38px; height: 38px; }
.brand-wordmark { display: block; font-size: 14px; font-weight: 750; letter-spacing: .6px; white-space: nowrap; line-height: 1.2; }
.sidebar-brand .brand-erp { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 600; letter-spacing: 3px; color: #b6c1e2; margin-top: 5px; line-height: 1.1; }
.brand-erp::before { content: ''; width: 18px; height: 2px; background: #aab7f6; border-radius: 2px; }

.sidebar-brand { margin-bottom: 10px; }
.sidebar-menu-control { display: flex; align-items: center; padding: 0 12px; margin-bottom: 8px; }
#sidebar-toggle-arrow { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #445175; background: #303958; color: #cdd5f0; border-radius: 8px; cursor: pointer; }
#sidebar-toggle-arrow:hover { background: #43517f; border-color: #6878a7; color: white; }
#sidebar-toggle-arrow:focus-visible { outline: 2px solid #a5b3ff; outline-offset: 2px; }
#sidebar-toggle-arrow svg { transition: transform .15s ease; }
#sidebar-toggle-arrow.arrow-points-left svg { transform: rotate(180deg); }
@media(prefers-reduced-motion:reduce){#sidebar-toggle-arrow svg { transition: none; }}

/* Keep the icon rail stationary while the menu and workspace resize together. */
@media(min-width:901px){
  .main-sidebar { overflow-x: hidden; }
  .main-nav-link { position: relative; display: block; height: 42px; line-height: 22px; padding: 10px 0 10px 48px; overflow: hidden; }
  .main-nav-link > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
  .sidebar-brand { justify-content: flex-start; padding: 0 0 0 5px; overflow: hidden; }
  .sidebar-menu-control { justify-content: flex-start; padding: 0 7px; }
  .main-nav-label,.sidebar-brand-label { display: block; min-width: 0; white-space: nowrap; opacity: 1; transform: translateX(0); visibility: visible; }
  .sidebar-brand-label { overflow: hidden; }
  .nav-collapsed .main-nav-label,.nav-collapsed .sidebar-brand-label { opacity: 0; transform: translateX(-6px); visibility: hidden; }
  .nav-motion-ready.has-main-nav { transition: margin-left 260ms cubic-bezier(.22,.75,.25,1); }
  .nav-motion-ready .main-sidebar { transition: width 260ms cubic-bezier(.22,.75,.25,1); }
  .nav-motion-ready .app-topbar { transition: left 260ms cubic-bezier(.22,.75,.25,1); }
  .nav-motion-ready .main-nav-label,.nav-motion-ready .sidebar-brand-label { transition: opacity 180ms ease 70ms, transform 220ms ease 40ms, visibility 0s; }
  .nav-motion-ready.nav-collapsed .main-nav-label,.nav-motion-ready.nav-collapsed .sidebar-brand-label { transition: opacity 110ms ease, transform 160ms ease, visibility 0s linear 110ms; }
}
@media(prefers-reduced-motion:reduce){
  .nav-motion-ready.has-main-nav,.nav-motion-ready .main-sidebar,.nav-motion-ready .app-topbar,.nav-motion-ready .main-nav-label,.nav-motion-ready .sidebar-brand-label,#sidebar-toggle-arrow svg { transition: none; }
}
/* The fixed header carries the current page and project context. */
.topbar-project-title{display:block;max-width:100%;min-width:0;padding:2px 0;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;line-height:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;cursor:pointer}.app-topbar .topbar-project-title:hover:not(:disabled){background:transparent;border-color:transparent;color:#fff;text-decoration:underline;text-decoration-color:#aab8f3;text-underline-offset:4px}.topbar-project-title:focus-visible{outline:2px solid #a5b3ff;outline-offset:2px}
.app-topbar{gap:18px}.topbar-context{flex:1 1 auto;min-width:0;gap:0;overflow:hidden}.topbar-breadcrumbs{display:flex;align-items:center;gap:10px;min-width:0;width:100%;white-space:nowrap;line-height:1.3}.topbar-breadcrumbs [hidden]{display:none!important}.topbar-back,.topbar-section{flex:0 1 auto;min-width:0;max-width:130px;overflow:hidden;text-overflow:ellipsis;color:#b9c4e3;font-size:12px;text-decoration:none}.topbar-back:hover{color:#fff;text-decoration:underline}.topbar-back:focus-visible{outline:2px solid #a5b3ff;outline-offset:2px}.topbar-separator{flex:0 0 auto;color:#7785aa;font-size:16px;font-weight:400}.topbar-page-title{flex:0 1 auto;min-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;color:#f1f4ff;font-size:18px;font-weight:650;letter-spacing:-.2px;line-height:1.3}.topbar-tab,.topbar-detail{flex:0 1 auto;min-width:0;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#c7d1ef}.topbar-tab{font-weight:550}.topbar-detail{color:#aebddd;font-size:11px}.topbar-summaries:empty{display:none}.topbar-summaries:not(:empty){flex:0 1 auto;max-width:28%}.has-main-nav .project-actions-header{flex:0 0 auto;min-height:0;justify-content:flex-end;gap:8px;margin:8px 0;padding:0}.has-main-nav .project-actions-header:empty{display:none}.has-main-nav .project-actions-header .save-controls{flex-direction:row;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding:0}.has-main-nav .project-actions-header .save-controls>button{font-size:12px;padding:6px 9px}.has-main-nav .project-actions-header .save-status{font-size:11px}
@media(max-width:1100px) and (min-width:901px){.app-topbar{padding-right:16px;gap:12px}.topbar-account{gap:12px}.topbar-tab,.topbar-detail{max-width:135px}.topbar-breadcrumbs{gap:7px}.topbar-page-title{font-size:16px}}
@media(max-width:900px){.app-topbar{gap:10px;padding-left:58px;padding-right:12px}.topbar-breadcrumbs{flex-wrap:wrap;column-gap:6px;row-gap:2px;line-height:1.15}.topbar-page-title{order:0;flex:1 0 100%;width:100%;min-width:0;font-size:16px;line-height:1.25}.topbar-back,.topbar-section,.topbar-tab,.topbar-detail{order:1;flex:1 1 0;max-width:150px;min-width:0;font-size:10px;line-height:1.3}.topbar-separator{order:1;font-size:12px;line-height:1.1}.topbar-prefix-separator{display:none}.topbar-breadcrumbs:not(.has-prefix) .topbar-tab-separator{display:none}.topbar-breadcrumbs:not(.has-prefix):not(.has-tab) .topbar-detail-separator{display:none}.topbar-account{gap:8px}.topbar-user{gap:6px}.topbar-user-name{font-size:12px;max-width:96px}.topbar-summaries:not(:empty){display:none}.has-main-nav .project-actions-header{margin:7px 0}.has-main-nav .project-actions-header .save-controls{gap:7px}}
@media(max-width:480px){.topbar-avatar{display:none}.topbar-user-name{max-width:78px;font-size:11px}.app-topbar #notification-bell{width:32px;height:32px}.topbar-account{gap:6px}.topbar-page-title{font-size:14px}.topbar-back,.topbar-section,.topbar-tab,.topbar-detail{font-size:10px}.has-main-nav .project-actions-header .save-controls>button{font-size:11px;padding:5px 7px}}
.has-main-nav .contractor-heading{justify-content:flex-end;gap:9px;padding:10px 14px;min-height:0}.has-main-nav .contractor-heading:empty{display:none}.has-main-nav .projects-tools{flex-wrap:wrap;gap:12px}.has-main-nav .projects-tools .search-box{flex:1 1 200px;width:auto;max-width:360px;margin-left:0}.has-main-nav .projects-tools #add-project{flex:0 0 auto;margin-left:auto;padding:9px 13px}.has-main-nav .projects-tools #project-count{font-size:12px;white-space:nowrap}@media(max-width:760px){.has-main-nav .projects-tools .search-box{order:3;flex:1 0 100%;max-width:none}.has-main-nav .projects-tools #add-project{order:1;padding:8px 10px;font-size:12px}.has-main-nav .projects-tools #project-count{order:2;flex:1;text-align:right;font-size:11px}.has-main-nav .contractor-heading{padding:8px 10px}}

/* The VAT breakdown stays aligned across the act register's tax columns. */
.act-register-table.has-vat{min-width:1540px}
.act-register-table .act-vat-rate-cell{min-width:125px;white-space:normal}
.act-register-table .act-vat-tax-cell,.act-register-table .act-gross-cell{min-width:125px}
.act-register-table .act-vat-breakdown-line{min-height:26px;line-height:20px;padding:3px 0;white-space:nowrap;font-variant-numeric:tabular-nums}
.act-register-table .act-vat-breakdown-line.act-vat-unknown{font-size:12px;color:#997230}
.act-register-table .act-vat-breakdown-total{margin-top:5px;padding-top:7px;border-top:1px solid #dce2ed;font-weight:650;white-space:nowrap;line-height:20px}

.act-register-table .act-vat-rate-button{display:block;width:100%;padding:3px 5px;border:0;background:transparent;color:#3f58a5;text-align:left;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px;font-weight:550}
.act-register-table .act-vat-rate-button:hover{background:#edf2ff;color:#2946a5}
.modal.wide:has(.act-vat-positions){width:1040px}
.act-vat-positions-meta{display:flex;align-items:center;gap:9px;margin:0 0 10px;color:#647187;font-size:13px}
.act-vat-positions-party{margin:0 0 18px;color:#758196;font-size:13px;overflow-wrap:anywhere}
.act-vat-positions-scroll{overflow:auto}
.act-vat-positions-table{width:100%;min-width:680px;border-collapse:collapse;font-size:13px}
.act-vat-positions-table th,.act-vat-positions-table td{padding:11px 12px;border:1px solid #dce2ec;text-align:left;vertical-align:top}
.act-vat-positions-table thead th{background:#eef2f8;font-weight:650}
.act-vat-positions-table tbody td:nth-child(2){min-width:200px;max-width:350px;overflow-wrap:anywhere}
.act-vat-positions-table td strong{font-weight:550}
.act-vat-positions-table small{display:block;margin-top:4px;color:#7a8799;font-size:11px}
.act-vat-positions-table .numeric{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.act-vat-positions-table tfoot th,.act-vat-positions-table tfoot td{background:#f1f4fb;font-weight:650}

.act-vat-position-link{color:#3f58a5;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px;overflow-wrap:anywhere}
.act-vat-position-link:hover{color:#2946a5;text-decoration-style:solid}
.act-vat-positions-table .act-vat-position-unavailable{color:#997230}
