/* GAZ WOJTEK · compact operational workspace · local preview v2 */
:root{--paper:#f4f5f7;--white:#fff;--ink:#252c34;--muted:#59636e;--line:#dce1e6;--green:#984510;--green2:#77350d;--accent:#fff0e2;--brand-orange:#ef7e3b;--brand-graphite:#575656;--brand-blue:#738dc7;--surface-subtle:#f8f9fb;--focus:#315ca0;--row-done:#edf7ee;--row-project:#fff6d7;--row-urgent:#fff0ec;--radius:8px}
body{background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px;line-height:1.45}
button,input,select,textarea,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.sidebar{width:206px;padding:20px 12px 16px;background:var(--white);border-right:1px solid var(--line)}.brand{display:block;padding:0 12px;letter-spacing:0}.brand-logo{display:block;width:164px;height:auto}.brand>small{color:var(--muted);font-size:10px;margin-top:6px}
.workspace{margin:20px 12px;padding:12px 0;border:0;border-bottom:1px solid var(--line);font-size:12px;color:var(--ink)}.workspace small{font-size:10px;color:var(--muted)}.workspace-icon{display:none}.nav-label{margin:0 12px 9px;font-size:9px;letter-spacing:1.3px;color:var(--muted)}
#navigation{display:grid;gap:4px}#navigation button{min-height:42px;padding:9px 11px;color:#535b65;font-size:12px;line-height:1.4;gap:10px;border-radius:6px}#navigation button:hover{background:#f3f5f7;color:var(--ink)}#navigation button.active{background:var(--accent);color:#8a3c14;box-shadow:inset 3px 0 var(--brand-orange);font-weight:650}.nav-svg{flex:none;width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-count{padding:1px 6px;border-radius:4px;background:#ffe0c8;color:#753408;font-size:10px}.sidebar-bottom{font-size:10px;color:var(--muted);padding:12px 10px 0}.sidebar-bottom p,.sidebar-bottom button{font-size:10px;color:var(--muted);line-height:1.6}
.shell{margin-left:206px}.topbar{height:48px;padding:0 24px;background:var(--white);border-bottom:1px solid var(--line);font-size:11px}.topbar-right{gap:16px}#identity{font-size:11px;color:var(--ink)}#save-indicator,.crumb,.slash{font-size:10px;color:var(--muted)}.text-button{font-size:11px;color:#465466;min-height:30px}
main{padding:20px 24px 18px;max-width:2000px;margin:auto}.page-heading{margin-bottom:14px;gap:16px;align-items:center}.eyebrow{font-size:9px;font-weight:600;letter-spacing:1.3px;color:var(--muted);margin-bottom:4px}h1{font-size:25px;font-weight:700;letter-spacing:-.65px;line-height:1.2;color:var(--ink)}.page-heading p{font-size:12px;color:var(--muted);line-height:1.5;margin:5px 0 0}.heading-actions{gap:7px;flex-wrap:wrap}
.button{min-height:34px;padding:7px 11px;font-size:11px;font-weight:600;line-height:1.45;border-radius:6px;white-space:normal}.primary{background:var(--brand-orange);color:#2c190b;border:1px solid #dc6b29}.primary:hover{background:#e9702b;color:#2c190b}.primary:active{background:#d96120}.secondary{background:var(--white);color:#3f4b59;border:1px solid #c9d0d7}.secondary:hover{background:#edf0f4;color:var(--ink)}
.source-notice{display:flex;align-items:center;gap:9px;background:transparent;border:0;padding:0;margin:0 0 12px;color:var(--muted);font-size:10px;line-height:1.5;border-radius:0}.test-label{font-size:9px;font-weight:650;letter-spacing:.4px;color:#965020;border:1px solid #e6d2be;background:#fff9f1;padding:2px 5px;border-radius:4px}
.metrics{display:flex;gap:0;margin:0 0 14px;padding:0;border:1px solid var(--line);border-radius:7px;background:var(--white);overflow:hidden}.metric,.metric:first-child{display:flex;align-items:center;flex:1;gap:10px;min-height:46px;padding:10px 15px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}.metric:last-child{border-right:0}.metric-top{font-size:11px;color:var(--muted);line-height:1.4}.metric-value,.metric:first-child .metric-value,.metric:last-child .metric-value{order:-1;font-size:20px;line-height:1.2;letter-spacing:-.3px;font-weight:700;color:var(--ink);margin:0}.metric-foot{display:none}
.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--white);box-shadow:0 1px 2px #27374704;overflow:hidden}.panel-heading{padding:14px 16px 12px;gap:16px;align-items:center}.panel-heading h2{font-size:14px;line-height:1.4;letter-spacing:-.2px;font-weight:650;color:var(--ink)}.panel-heading p,.workspace-panel .panel-heading p{font-size:11px;color:var(--muted);margin-top:4px}.panel-heading .small-muted{font-size:10px;color:var(--muted)}
.table-legend{display:flex;align-items:center;gap:14px;font-size:10px;color:var(--muted)}.table-legend>span:before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px;border:1px solid #0002}.legend-green:before{background:#9ed4aa}.legend-yellow:before{background:#f3d569}.legend-red:before{background:#eaa396}
.filters{display:grid;grid-template-columns:minmax(230px,1fr) 155px 145px 180px;gap:10px;padding:0 16px 14px;align-items:end}.search,.filter-field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:10px;font-weight:550;color:var(--muted)}.search:before{display:none}.search input,.filters select{flex:none;width:100%;min-width:0;min-height:34px;padding:7px 10px;border:1px solid #bec7d1;background:var(--white);color:var(--ink);border-radius:5px;font-size:12px;font-weight:400;line-height:1.4}.search input::placeholder{color:#626d79}
.table-wrap{overflow:auto;scrollbar-width:thin;scrollbar-color:#b4bdc7 transparent}.orders-table{width:100%;min-width:1170px;table-layout:fixed;border-collapse:collapse}.orders-table th,.workspace-table th{font-size:9px;line-height:1.4;font-weight:650;letter-spacing:.45px;text-transform:uppercase;color:#f8fafb;background:#4d5953;padding:9px 10px;border:0;border-right:1px solid #ffffff18;text-align:left;white-space:normal;position:sticky;top:0;z-index:1}
.orders-table th:nth-child(1){width:118px}.orders-table th:nth-child(2){width:260px}.orders-table th:nth-child(3){width:92px}.orders-table th:nth-child(4),.orders-table th:nth-child(5),.orders-table th:nth-child(6){width:87px}.orders-table th:nth-child(7){width:107px}.orders-table th:nth-child(8){width:104px}.orders-table th:nth-child(9){width:100px}.orders-table th:nth-child(10){width:42px}
.orders-table td,.orders-table td:first-child,.orders-table td:nth-child(2),.orders-table td:nth-child(3){min-width:0;max-width:none;padding:5px 10px;vertical-align:middle;color:#343f49;font-size:12px;line-height:1.4;border-bottom:1px solid #e0e6e8;overflow-wrap:anywhere}.orders-table tbody tr{height:36px;background:var(--white)}.orders-table tbody tr:nth-child(even){background:#fafbfd}.orders-table tbody tr:hover{background:#edf2f7}.orders-table tbody tr:last-child td{border-bottom:0}
.order-link{display:block;min-height:20px;padding:0;background:transparent;color:#293c50;font-size:11px;font-weight:700;text-decoration:none;letter-spacing:-.1px;text-align:left;white-space:nowrap}.order-link:hover{text-decoration:underline;color:#8b3d14}.order-customer{display:block;font-size:10px;font-weight:400;color:var(--muted);line-height:1.4;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.address-link{display:block;max-width:100%;min-height:24px;padding:0;background:transparent;color:var(--ink);font:inherit;font-size:13px;font-weight:550;line-height:1.5;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:2px}.address-link:hover{text-decoration:underline;text-underline-offset:3px}.order-address{font-size:13px}.orders-table .date{font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap;color:#35424d}.date small.deadline-countdown{font-size:9px;line-height:1.4;white-space:normal;margin:1px 0 0;color:var(--muted)}.status{display:inline-block;font-size:10px;font-weight:500;line-height:1.4;padding:2px 5px;border-radius:4px;white-space:normal;max-width:100%;background:#edf0f3;color:#4d5864;overflow-wrap:normal}.status:before{display:none}.status.progress{background:#eaf0f8;color:#345577}.status.done{background:#d8eddd;color:#275e35}.files-cell{text-align:center;font-variant-numeric:tabular-nums}
.orders-table tr.work-complete,.orders-table tr.work-complete:nth-child(even){background:var(--row-done);box-shadow:inset 3px 0 #5f9b6c}.orders-table tr.project-complete,.orders-table tr.project-complete:nth-child(even){background:var(--row-project);box-shadow:inset 3px 0 #d3ae34}.orders-table tr.work-complete:hover{background:#dfeee1}.orders-table tr.project-complete:hover{background:#ffedb3}.orders-table tr.deadline-urgent,.orders-table tr.deadline-urgent:nth-child(even){background:var(--row-urgent);box-shadow:inset 3px 0 #bf4b38}.orders-table tr.deadline-urgent:hover{background:#ffe5dd}.orders-table tr.deadline-urgent td,.orders-table tr.deadline-urgent td *{color:#962c23;font-weight:650}.orders-table tr.deadline-urgent .status{background:#ffdfd5}.annex-reminder{font-size:9px;line-height:1.3;margin:1px 0 0}.table-bottom{padding:9px 16px;border-top:1px solid var(--line);background:#fafbfc;color:var(--muted);font-size:10px}
.quick-entry{display:block;margin:12px 0 0;padding:0;border:1px solid var(--line);border-radius:7px;background:var(--white)}.quick-entry summary{cursor:pointer;padding:11px 14px;font-size:11px;font-weight:600;color:var(--ink)}.quick-entry summary>span{font-size:10px;color:var(--muted);font-weight:400;margin-left:10px}.quick-entry-body{padding:0 14px 12px}.quick-heading,.quick-icon{display:none}.quick-content{min-width:0}.message-help{font-size:10px;color:var(--muted)}#message-input{font-size:12px;min-height:35px}.main-footer{font-size:10px;color:var(--muted);margin-top:16px;line-height:1.6;gap:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.empty{padding:28px 16px;text-align:center;color:var(--muted);font-size:12px}
/* Documentation and plan: compact registry, honest field completion, clear actions. */
.workspace-toolbar{padding:0}.workspace-filters{display:flex;gap:18px;padding:0 18px;border-bottom:1px solid var(--line);overflow:auto}.filter-tab{display:flex;align-items:center;gap:7px;flex:none;min-height:46px;padding:12px 0;border-bottom:2px solid transparent;color:#5f6974;background:transparent;font-size:12px}.filter-tab>span{background:#edf0f4;padding:1px 6px;border-radius:4px;font-size:10px;line-height:1.5}.filter-tab.selected{border-bottom-color:var(--brand-orange);color:#944716;font-weight:650}.filter-tab.selected>span{background:#ffeadb;color:#8b4314}.filter-tab:hover{color:var(--ink)}.workspace-searchbar{display:flex;align-items:center;gap:18px;padding:14px 18px}.workspace-searchbar .search{max-width:420px;flex:1}.workspace-searchbar .search input{font-size:12px;min-height:36px}.workspace-searchbar .check{font-size:11px;white-space:nowrap;gap:7px}.workspace-table{width:100%;min-width:1000px;table-layout:fixed;border-collapse:collapse}.workspace-table th:nth-child(1){width:150px}.workspace-table th:nth-child(2){width:auto}.workspace-table th:nth-child(3){width:146px}.workspace-table th:nth-child(4){width:160px}.workspace-table th:nth-child(5){width:105px}.workspace-table th:nth-child(6){width:190px}.workspace-table td{padding:12px 12px;vertical-align:middle;font-size:12px;line-height:1.5;color:var(--ink);border-bottom:1px solid #e8ebee;overflow-wrap:anywhere}.workspace-table tr:hover{background:#fafbfd}.workspace-table tr:last-child td{border-bottom:0}.workspace-table td>b{font-size:11px}.workspace-table .address-link{font-size:13px;line-height:1.5}.form-state{display:inline-block;border:1px solid #dae0e6;border-radius:5px;padding:3px 7px;background:#f4f6f8;color:#5c6670;font-size:10px;white-space:nowrap}.form-state.draft{background:#eef3fb;color:#3e5b80;border-color:#d6e0ef}.form-state.review{background:#fff5dc;color:#795b19;border-color:#ebddb1}.field-progress{display:flex;align-items:center;gap:9px}.field-progress progress{width:75px;height:5px;border:0;appearance:none;background:#e6eaf0;border-radius:6px;overflow:hidden;accent-color:#7891ba}.field-progress progress::-webkit-progress-bar{background:#e6eaf0}.field-progress progress::-webkit-progress-value{background:#7891ba;border-radius:6px}.field-progress span{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.last-save{font-size:10px!important;font-variant-numeric:tabular-nums}.last-save small{display:block;color:var(--muted);font-size:10px}.workspace-table .workspace-actions{white-space:nowrap;overflow:visible}.workspace-actions>.button{display:inline-block;min-height:30px;font-size:10px;padding:6px 9px;margin-right:5px}.row-more{display:inline-block;vertical-align:middle;position:relative}.row-more summary{font-size:12px;cursor:pointer;list-style:none;padding:7px 6px;min-width:28px}.row-more>div{position:absolute;right:0;bottom:30px;min-width:160px;background:var(--white);border:1px solid var(--line);border-radius:7px;padding:6px;box-shadow:0 8px 22px #19253618;z-index:5}.row-more .text-button{display:block;width:100%;text-align:left;padding:7px 8px;border-radius:4px}.row-more .text-button:hover{background:#f2f4f7}.workspace-footer{display:flex;justify-content:space-between;gap:14px;padding:10px 18px;background:#fafbfd;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.workflow-note{display:flex;flex-wrap:wrap;gap:20px;font-size:11px;line-height:1.7;margin:16px 0;color:var(--muted)}.workflow-note b{color:#414e5d;font-weight:600}
/* Section editor, shared by as-built documentation and the site plan. */
#modal.workspace-editor{width:min(1380px,96vw);max-width:96vw;max-height:94dvh;border-radius:12px;padding:0}.workspace-editor #modal-form{display:flex;flex-direction:column;max-height:94dvh}.workspace-editor #modal-body{overflow:auto;padding:0;min-height:0}.editor-heading{padding:20px 24px 18px;border-bottom:1px solid var(--line);background:var(--white)}.workspace-editor #modal-title{font-size:23px;font-weight:650;line-height:1.3;margin:0 0 5px}.editor-heading .intro{margin:0!important;font-size:12px!important;line-height:1.6!important;color:var(--muted)}.editor-layout{display:grid;grid-template-columns:192px minmax(0,1fr) 280px;min-height:520px}.editor-nav{display:flex;flex-direction:column;justify-content:flex-start;gap:4px;padding:18px 12px;background:#fafbfc;border-right:1px solid var(--line)}.editor-nav .section-button{display:flex;align-items:flex-start;gap:10px;padding:12px 10px;width:100%;min-height:64px;background:transparent;border-radius:6px;text-align:left;color:#535e6b;font-size:11px;line-height:1.5}.section-button small{display:block;margin-top:4px;color:var(--muted);font-size:10px;font-weight:400}.section-index{display:grid;place-items:center;flex:none;width:23px;height:23px;border:1px solid #cbd3dc;border-radius:50%;color:#65717e;font-size:10px;background:white}.editor-nav .section-button.selected{background:#fff0e4;color:#853d13;font-weight:650}.section-button.selected .section-index{background:#ef7e3b;color:#2c190b;border-color:#dc6b29}.editor-nav .section-button:hover{background:#f0f3f7}.editor-main{padding:20px 24px;min-width:0;background:var(--white)}.workspace-editor .workspace-section{border:0;margin:0;padding:0;min-width:0}.workspace-editor .workspace-section[hidden]{display:none!important}.workspace-editor legend{font-size:16px;font-weight:650;padding:0;margin-bottom:22px;line-height:1.5}.workspace-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}.workspace-editor .field{font-size:11px;color:#505e6a;line-height:1.5;gap:7px}.workspace-editor .field input,.workspace-editor .field select,.workspace-editor .field textarea{font-size:13px;padding:9px 10px;min-height:40px;line-height:1.5;border:1px solid #bac5d0;border-radius:6px;background:white;color:var(--ink);width:100%;max-width:100%;box-sizing:border-box}.workspace-editor .field input[readonly]{background:#f3f5f8;color:#465364}.workspace-editor .field.full{grid-column:1/-1}.editor-aside{padding:20px 18px;border-left:1px solid var(--line);background:#fafbfc;min-width:0}.editor-aside h3{font-size:12px;color:#374555;font-weight:650;margin:0 0 16px}.editor-aside>.field{margin-bottom:16px}.editor-aside .detail-note{font-size:11px;line-height:1.75;margin:0 0 14px;padding:12px;background:var(--white);border:1px solid #dde3e9;border-radius:7px}.editor-aside .dim{font-size:10px;line-height:1.7;color:var(--muted)}.editor-aside .detail-note ol{padding-left:18px}.workspace-editor .modal-actions{position:static;flex:none;padding:12px 20px;background:var(--white);border-top:1px solid var(--line);display:flex;align-items:center;gap:8px}.section-controls{display:flex;align-items:center;gap:8px;margin-right:auto}.section-controls>span{font-size:10px;color:var(--muted);margin-right:10px}.workspace-editor .trial-docs-note{font-size:11px;padding:12px;background:#f7f9fc;border:1px solid #dde3e9;line-height:1.75}.workspace-editor #asbuilt-summary{color:#354457}.editor-main fieldset:focus{outline:none}
/* Shared surfaces: board, documents, history, data quality, backups, drawer. */
.board-counts{display:flex;gap:0;margin:0 16px 14px;border:1px solid var(--line);border-radius:6px;overflow:hidden}.board-counts span{display:flex;gap:10px;align-items:center;flex:1;padding:10px 14px;background:#fafbfd;border-right:1px solid var(--line);border-radius:0;font-size:11px;color:var(--muted)}.board-counts span:last-child{border:0}.board-counts b{font-size:20px;margin:0;color:var(--ink);line-height:1.2}.board-filters{padding:0 16px 14px;gap:6px}.board-filters .button{min-height:30px;font-size:10px}.board-list{padding:0 16px 16px}.task-card{border:1px solid var(--line);border-radius:7px;padding:14px 16px;margin-bottom:8px;box-shadow:none}.task-card h3{font-size:14px;line-height:1.5;margin:5px 0}.task-card p{font-size:11px;color:var(--muted);margin:4px 0}.task-card .eyebrow{font-size:9px}.task-actions{gap:6px;margin-top:8px}.task-actions .button{font-size:10px;min-height:29px;padding:5px 9px}.task-check input{width:18px;height:18px;margin-top:4px}.task-overdue{border-left:3px solid #b74939}.board-panel .panel-heading p{font-size:11px}.panel table:not(.orders-table):not(.workspace-table){font-size:12px;border-collapse:collapse;width:100%}.panel table:not(.orders-table):not(.workspace-table) th{font-size:9px;letter-spacing:.5px;color:#5b6874;background:#f2f5f8;padding:11px 14px}.panel table:not(.orders-table):not(.workspace-table) td{padding:11px 14px;border-bottom:1px solid var(--line);font-size:12px}.panel table td small{font-size:10px;color:var(--muted)}.journal{padding:8px 18px}.timeline-item{padding:0 0 20px 16px}.timeline-item b{font-size:12px}.timeline-item p{font-size:11px;margin:6px 0}.timeline-item small{font-size:10px;color:var(--muted)}.audit-row{padding:14px 18px;gap:14px}.audit-row b{font-size:12px}.audit-row p{font-size:11px;color:var(--muted);margin-top:5px}.audit-row .button{min-height:30px;font-size:10px}.detail-note{font-size:11px;line-height:1.7;background:#f6f8fb;border-color:#dce3ec;color:#4b5e73}.drawer{background:var(--paper);width:min(640px,100vw)}.drawer-top{padding:22px 24px 16px}.drawer h2{font-size:23px;font-weight:650}.drawer-top p{font-size:12px;line-height:1.7;color:var(--muted)}.drawer-tabs{padding:0 24px;gap:22px}.drawer-tabs button{font-size:12px;padding:13px 0}.drawer-tabs button.active{color:#914018;border-color:var(--brand-orange)}.drawer-body{padding:18px 24px}.detail-section{border:1px solid var(--line);border-radius:7px;padding:16px;background:white}.detail-section h3{font-size:13px}.detail-section p{font-size:12px}.detail-grid{gap:14px}.detail-grid label{font-size:10px;color:var(--muted)}.detail-grid span{font-size:12px}.doc-card{border-radius:7px;border-color:var(--line);padding:15px}.doc-card h3{font-size:13px}.doc-card p{font-size:11px}.doc-actions .button,.doc-actions select{font-size:11px}.field{font-size:12px;color:#505e6a}.field input,.field select,.field textarea{min-height:39px;font-size:13px;background:var(--white);color:var(--ink);border-color:#bac5d0}.form-grid{gap:16px}.check{font-size:12px;gap:8px}.dim,.detail-source{font-size:11px;color:var(--muted)}#modal{border-radius:10px}#modal-body{padding:24px}#modal h2{font-size:22px}.modal-actions{background:white;border-top:1px solid var(--line);padding:12px 24px}.modal-actions,.drawer,.drawer-body{overscroll-behavior:contain}.auth-screen{background:var(--paper)}.auth-card{border-radius:12px;border:1px solid var(--line);box-shadow:0 5px 25px #2332490a}.auth-card p{color:var(--muted)}.error-text{font-size:12px;color:#a02f24}
@media(min-width:761px){body[data-view="zlecenia"] .orders-panel .table-wrap{max-height:calc(100dvh - 354px);min-height:230px}body[data-view="powykonawcza"] .workspace-panel .table-wrap,body[data-view="plan"] .workspace-panel .table-wrap{max-height:calc(100dvh - 310px);min-height:240px}body[data-view="powykonawcza"] .heading-actions,body[data-view="plan"] .heading-actions{display:none}}
@media(max-width:1250px) and (min-width:761px){.sidebar{width:188px}.shell{margin-left:188px}.brand-logo{width:150px}main{padding:18px 18px}.topbar{padding:0 18px}.filters{grid-template-columns:minmax(180px,1fr) 135px 125px 150px}.workspace-editor .editor-layout{grid-template-columns:172px minmax(0,1fr) 240px}.editor-main{padding:18px}.editor-aside{padding:18px 14px}.editor-nav{padding:14px 8px}.table-legend{gap:9px;font-size:9px}}
@media(max-width:1000px) and (min-width:761px){.topbar .crumb,.topbar .slash{display:none}.page-heading{flex-wrap:wrap}.filters{grid-template-columns:1fr 1fr}.metrics{flex-wrap:wrap}.metric{flex:1 1 40%;min-height:40px;padding:8px 12px}.workspace-editor .editor-layout{grid-template-columns:170px minmax(0,1fr)}.editor-aside{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:12px}.editor-aside h3{grid-column:1/-1;margin-bottom:0}.workspace-editor .form-grid{grid-template-columns:1fr}.workspace-searchbar .check{white-space:normal}.table-legend{flex-wrap:wrap}}
@media(max-width:760px){
 .sidebar{position:static;width:100%;padding:14px 14px 10px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0}.brand-logo{width:133px}.brand>small{font-size:9px;margin-top:4px}.workspace,.nav-label,.sidebar-bottom{display:none}#navigation{display:flex;overflow:auto;gap:4px;margin-top:12px;padding-bottom:3px}#navigation button{flex:none;min-height:40px;padding:8px 10px;font-size:11px;white-space:nowrap;gap:7px}#navigation button.active{box-shadow:inset 0 -3px var(--brand-orange)}.nav-svg{width:15px;height:15px}.shell{margin-left:0}.topbar{height:auto;min-height:43px;padding:8px 14px;gap:8px;flex-wrap:wrap}.topbar .crumb,.topbar .slash{display:none}.topbar-right{gap:12px;flex-wrap:wrap}#identity{font-size:10px}#save-indicator{display:none}main{padding:18px 14px;min-width:0}.page-heading{display:block;margin-bottom:13px}h1{font-size:24px}.page-heading p{font-size:11px}.heading-actions{display:flex;margin-top:12px;gap:6px}.heading-actions .button{flex:1;min-height:40px;font-size:11px;padding:8px}.source-notice{font-size:9px;gap:7px;flex-wrap:wrap;margin-bottom:12px}.test-label{font-size:8px}.metrics{flex-wrap:wrap;margin-bottom:12px}.metric,.metric:first-child{flex:1 1 45%;padding:9px 11px;min-height:43px}.metric-value,.metric:first-child .metric-value,.metric:last-child .metric-value{font-size:19px}.metric-top{font-size:10px}.metric:nth-child(2){border-right:0}.metric:nth-child(-n+2){border-bottom:1px solid var(--line)}.panel-heading{padding:13px 12px;flex-wrap:wrap;gap:8px}.panel-heading h2{font-size:13px}.table-legend{font-size:9px;gap:9px;flex-wrap:wrap}.filters{grid-template-columns:1fr 1fr;gap:9px;padding:0 12px 12px}.filters .search{grid-column:1/-1}.filters .filter-field:last-child{grid-column:1/-1}.filters input,.filters select,.field input,.field select,.field textarea{font-size:16px;min-height:40px}.orders-table{min-width:1170px}.orders-table td{padding-top:7px;padding-bottom:7px}.orders-table .order-link,.orders-table .address-link{min-height:28px}.orders-panel .table-wrap{max-height:65dvh}.table-bottom{padding:9px 12px}.quick-entry summary{padding:12px}.quick-entry summary>span{display:block;margin:4px 0 0}.main-footer{display:flex;flex-direction:column;gap:5px;font-size:9px}.workspace-filters{gap:15px;padding:0 12px}.filter-tab{font-size:11px;min-height:43px}.workspace-searchbar{flex-direction:column;align-items:stretch;gap:10px;padding:12px}.workspace-searchbar .search{max-width:none}.workspace-searchbar .search input{font-size:16px;min-height:42px}.workspace-searchbar .check{font-size:11px;min-height:28px}.workspace-table{min-width:960px}.workspace-table .workspace-actions>.button{min-height:36px}.workspace-panel .table-wrap{max-height:65dvh}.workspace-footer{flex-direction:column;gap:5px;padding:10px 12px}.workflow-note{font-size:10px;gap:6px 15px}.workflow-note>b{flex-basis:100%}#modal.workspace-editor{width:96vw;max-width:96vw;max-height:95dvh}.workspace-editor #modal-form{max-height:95dvh}.editor-heading{padding:16px}.workspace-editor #modal-title{font-size:21px}.editor-heading .intro{font-size:11px!important}.editor-layout{display:flex;flex-direction:column}.editor-nav{flex-direction:row;overflow:auto;padding:8px;border-right:0;border-bottom:1px solid var(--line);gap:4px}.editor-nav .section-button{flex:none;width:155px;padding:9px 7px;min-height:61px;font-size:10px;gap:7px}.section-index{width:20px;height:20px;font-size:9px}.editor-main{padding:18px 16px}.workspace-editor .form-grid{grid-template-columns:1fr;gap:16px}.workspace-editor .field.full{grid-column:auto}.workspace-editor .field{font-size:12px}.workspace-editor .field input,.workspace-editor .field select,.workspace-editor .field textarea{font-size:16px;min-height:44px}.workspace-editor legend{font-size:16px;margin-bottom:18px}.editor-aside{border-left:0;border-top:1px solid var(--line);padding:18px 16px}.workspace-editor .modal-actions{padding:10px 12px;flex-wrap:wrap;gap:8px}.section-controls{width:100%;margin:0;justify-content:space-between}.section-controls>span{font-size:10px;margin-right:auto}.workspace-editor .modal-actions>.button{flex:1;min-height:42px}.section-controls .button{min-height:37px}.board-counts{flex-wrap:wrap;margin:0 12px 12px}.board-counts span{flex:1 1 45%;padding:10px;font-size:10px}.board-counts b{font-size:20px}.board-list,.board-filters{padding-left:12px;padding-right:12px}.task-card{padding:13px}.task-main{gap:11px}.task-actions{flex-wrap:wrap}.task-actions .button{min-height:36px}.drawer-top,.drawer-body{padding:18px}.drawer-tabs{padding:0 18px;gap:18px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.auth-card{padding:25px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Dense register: client remains searchable and available in tooltip and card. */
.orders-table .order-customer{display:none}.orders-table .order-link{min-height:22px}.orders-table td .status{font-size:10px}
body:not([data-view="zlecenia"]) .heading-actions{display:none}

/* User preference 2026-11-11: vertical scrolling belongs to the page. */
body[data-view="zlecenia"] .orders-panel .table-wrap{max-height:none;min-height:0;overflow-x:auto;overflow-y:hidden}

.gasworks-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 12px}
.gasworks-tab{min-height:38px;padding:6px 10px;border:1px solid #bac5d0;border-radius:6px;background:#f8fafc;color:#354454;font:inherit;font-size:13px;font-weight:600;line-height:1.4}
.gasworks-tab:hover{background:#edf1f5}
.gasworks-tab[aria-pressed="true"]{background:var(--accent);border-color:#b75d25;color:#78370f;box-shadow:inset 0 -2px #b75d25}
@media(max-width:760px){.gasworks-tabs{padding:0 12px 12px}.gasworks-tab{min-height:44px}}
