/* Layout adapters and product-specific components. */
.hidden,[hidden]{display:none!important}a.btn{text-decoration:none}.wide{width:100%}.app{min-height:100vh}.nav button b{font-weight:500}.nav button span{display:flex}.nav-sep{height:1px;background:#383f4d;margin:20px 13px 14px}.nav .nav-count{display:inline;font-style:normal}.sidebar .brand{padding-bottom:34px}.sidebar .help-btn{border-radius:7px}.sidebar .help-btn:hover{background:#2f3542}.shell{display:block}.topbar{position:sticky;top:0;z-index:10}.content{outline:none}.page-head .actions{justify-content:flex-end}.auth-screen{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh;background:white}.auth-brand{background:#222732;color:white;min-height:100dvh;padding:42px 52px;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-brand .brand{padding:0}.auth-brand:after{content:"";position:absolute;width:300px;height:650px;right:-220px;bottom:-270px;transform:rotate(25deg);border:1px solid #4b414a;pointer-events:none}.auth-story{margin:auto 0;padding:80px 0}.auth-story>small{font-size:.75rem;letter-spacing:.15em;color:#ff8991}.auth-story h1{font-size:clamp(2.75rem,4.4vw,4.5rem);font-weight:650;line-height:1.15;letter-spacing:-.04em;margin:24px 0}.auth-story p{font-size:1.05rem;line-height:1.8;color:#b4bdca}.auth-features{display:flex;flex-direction:column;gap:17px;margin-top:48px}.auth-features span{color:#cf626d;font-size:.8125rem;display:flex;gap:18px}.auth-features b{font-weight:450;color:#d2d8e1;font-size:.9375rem}.auth-caption{font-size:.75rem;color:#919bad}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px 32px}.auth-card{width:100%;max-width:370px}.auth-overline{font-size:.75rem;letter-spacing:.14em;color:#8b96a6;font-weight:600}.auth-card h2{font-size:1.85rem;line-height:1.3;margin-top:18px;letter-spacing:-.03em}.auth-card>p{font-size:.9375rem;color:var(--muted);margin:9px 0 31px}.auth-card .field{margin-bottom:21px}.auth-card .field input{min-height:47px}.auth-card .btn.wide{margin-top:7px;min-height:47px;justify-content:space-between;padding:12px 17px}.auth-card .form-error{margin-top:15px}.demo-login{margin-top:35px;border-top:1px solid var(--line);padding-top:22px}.demo-login>span{font-size:.8125rem;color:#6c788a}.demo-login>small{display:block;font-size:.75rem;color:#9099a8;margin-top:13px}.demo-roles{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.demo-roles button{font-size:.75rem;border:1px solid var(--line);padding:5px 9px;border-radius:5px;background:#f7f8fb;color:#687588}.demo-roles button:hover,.demo-roles button.active{color:#bf3a48;border-color:#ebc2c9;background:#fff1f3}.auth-standalone{min-height:100dvh;display:grid;place-items:center;padding:30px;background:var(--bg)}.auth-standalone .auth-card{background:white;padding:35px;border:1px solid var(--line);border-radius:16px;max-width:450px}.auth-standalone .brand{color:var(--ink);padding:0 0 15px}.auth-standalone .brand-sub{color:#798494}.auth-standalone .auth-card>h1{font-size:1.6rem}.auth-standalone .auth-card>p{margin-bottom:24px}.auth-standalone label{display:block;font-size:.875rem}.auth-standalone label input{display:block;width:100%;margin:8px 0 20px;border:1px solid var(--line);border-radius:7px;padding:10px}.auth-standalone .linkbtn{margin-top:20px;display:block;text-align:center;text-decoration:none}.day-banner{display:flex;align-items:center;gap:12px;padding:14px 19px;border:1px solid #d7e3f4;border-radius:11px;background:#f0f5fc;margin-top:-7px;margin-bottom:22px}.day-banner-icon{color:#587eaf}.day-banner strong{font-size:.875rem;display:block;font-weight:600}.day-banner span{font-size:.8125rem;color:#65768f}.day-banner .badge{margin-left:auto;color:#2c7e60}.dash-projects{grid-template-columns:repeat(2,minmax(0,1fr))}.project-card-end{display:flex;justify-content:space-between;align-items:center;margin-top:22px;color:#929dad}.project-card-end .badge{font-size:.75rem}.project-numbers{flex-wrap:wrap;gap:13px}.project-numbers span{font-size:.75rem}.delivery-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:15px;font-size:.75rem;color:#8792a3}.feed-item{display:flex;gap:12px;padding:18px 23px;border-bottom:1px solid #edf0f5;align-items:flex-start}.feed-item:last-child{border-bottom:0}.feed-item b{font-size:.875rem;font-weight:550}.feed-item p{font-size:.8125rem;line-height:1.55;margin-top:5px;color:var(--muted)}.feed-item small{display:block;font-size:.75rem;color:#94a0af;margin-top:6px}.feed-event-icon{width:29px;height:29px;display:grid;place-items:center;color:#8090a4;background:#f1f4f8;border-radius:7px;flex-shrink:0;margin-top:2px}.feed-event-icon .icon{width:16px;height:16px}.feed-compact .feed-item{padding:15px 22px}.feed-compact .feed-item b{font-size:.8125rem}.online-panel{max-width:1000px}.positive{color:var(--green)}.report-location{font-weight:500}.dialog-card{display:flex;flex-direction:column;min-height:0;max-height:inherit;width:100%;overflow:auto;position:relative}.dialog-card>.dialog-head{position:sticky;top:0;z-index:3;background:#fff}.dialog-card>.dialog-footer{position:sticky;bottom:0;z-index:3}.dialog-card .dialog-body{flex:1}.dialog-card>.dialog-head h3{font-size:1.25rem;line-height:1.4}.dialog-card>.dialog-head p{color:var(--muted);font-size:.875rem;line-height:1.5;margin-top:5px}.dialog-card>.field{margin:20px 28px 0}.dialog-card>.dialog-actions{padding:19px 28px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);margin-top:25px;background:white;position:sticky;bottom:0;z-index:2}.dialog-card>.import-grid,.dialog-card>.mapping-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;padding:22px 28px 0}.dialog-card>.mapping-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dialog-card>.preview-table{margin:8px 28px 20px;flex:1;max-height:300px}.dialog-card>.check-row{margin:18px 28px;font-size:.875rem}.dialog-card>.project-checks{padding:20px 28px}.dialog-card .project-checks{display:flex;flex-direction:column;gap:8px}.project-checks label{display:flex;align-items:center;gap:7px;font-weight:400!important}.project-checks input,.check-row input{accent-color:var(--accent);width:16px;height:16px;min-height:0}.dialog-card .project-checks input{width:16px;min-height:0}.dialog-card .form-error{flex-shrink:0}.dialog-card>.form-error{margin:14px 25px}.dialog-eyebrow .icon{width:16px;height:16px}.dialog-card>.dialog-body>.form-error{margin:18px 22px 0}.dialog-card .window-main>.form-error:first-child{margin-top:0}.dialog-card .window-main>.form-error:first-child:empty{margin:0}.dialog-body.help-content{max-height:none}.dialog-card .dialog-controls{flex-shrink:0}.invoice-window{grid-template-columns:minmax(0,1fr) 260px}.invoice-items{min-width:500px}.invoice-items td:first-child{width:52%}.invoice-items strong{font-size:.875rem;font-weight:550}.match-label{display:block;margin-top:8px;max-width:275px}.invoice-match{border:0;background:#f4f6fa;color:#647995;font-size:.75rem;padding:5px 7px;border-radius:4px;width:100%;text-overflow:ellipsis}.files a{text-decoration:none}.upload-label input{display:none}.editor-body{padding-bottom:10px;min-height:200px}.editor-meta{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:18px 25px;border-bottom:1px solid var(--line)}.editor-meta .field{margin:0;min-width:260px}.editor-explain{font-size:.8125rem;line-height:1.8;color:#4f5e73}.excel-toolbar{padding:15px 25px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.save-state{margin-left:auto;font-size:.75rem;color:var(--muted)}.excel-grid{border-collapse:collapse;width:100%;font-size:.8125rem}.excel-grid thead th{padding:13px 9px;text-align:left;background:#f7f9fc;border:1px solid #e2e7ef;border-top:0;color:#728095;font-weight:500;white-space:nowrap}.excel-grid tbody td{border:1px solid #e5e9f0;min-width:115px;padding:0}.excel-grid td:first-child,.excel-grid th:first-child{min-width:35px;width:35px;text-align:center}.excel-grid td:nth-child(6){min-width:85px}.excel-grid td:nth-child(7){min-width:64px}.excel-grid td.name-cell{min-width:280px}.excel-grid td:nth-child(9){min-width:220px}.excel-grid input:not([type=checkbox]){width:100%;min-width:0;padding:12px 9px;font-size:.875rem;border:0;border-radius:0;min-height:46px;background:transparent}.excel-grid input:not([type=checkbox]):focus{outline:2px solid #87aee1;outline-offset:-2px;background:#f7faff}.excel-grid tr:has(.row-check:checked){background:#f3f7ff}.excel-grid input[type=checkbox]{accent-color:var(--accent);width:15px;height:15px}.excel-grid-wrap{min-height:230px}.fullscreen .dialog-card{height:100%;max-height:100%;overflow:hidden}.editor-body>.form-error{margin:13px 25px}.material-balance{display:flex;align-items:center;gap:6px;color:#748297;font-size:.75rem;margin-top:8px}.material-balance .icon{width:15px;height:15px}.material-balance b{font-weight:550;color:#52729a}.work-line-card{padding:16px 18px;border:1px solid #dfe5ee;border-radius:10px;background:#fff;margin-bottom:13px}.work-line-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.work-line-title>span{font-size:.75rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#96a0ae}.work-line-title .icon-btn{height:28px;min-height:28px;width:28px;color:#99a4b4}.work-line-title .icon{width:15px;height:15px}.work-line-card .field{margin-bottom:12px}.work-quantity-row{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;align-items:end}.work-quantity-row .field{margin-bottom:0}.work-quantity-row .field-label{font-size:.8125rem;margin-bottom:7px;display:block}.work-quantity-row .field label{font-size:.8125rem}.operation-selector{width:100%;height:43px}.operation-selector button{padding:5px 9px;flex:1}.report-process{display:flex;gap:10px;align-items:flex-start;margin-top:18px}.process-number{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;border:1px solid #d4dce8;background:white;color:#7e8ca1;font-size:.75rem;flex-shrink:0}.report-process b{display:block;font-size:.8125rem;font-weight:550}.report-process small{display:block;font-size:.75rem;color:var(--muted);margin-top:3px}.report-builder .window-main{background:#fff}.photo-gallery{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}.photo-gallery a{display:block;width:calc(50% - 6px);border:1px solid var(--line);border-radius:8px;overflow:hidden;text-decoration:none}.photo-gallery img{width:100%;height:135px;object-fit:cover;display:block;background:#f3f5f8}.photo-gallery span{font-size:.75rem;display:block;padding:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.start-projects{display:flex;flex-direction:column;gap:10px}.start-project{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:white;padding:16px;border-radius:10px;text-align:left}.start-project:hover{border-color:#97b2d5;background:#f7faff}.start-project>span:nth-child(2){flex:1}.start-project strong{font-size:.9375rem;font-weight:550;display:block}.start-project small{font-size:.75rem;color:var(--muted);display:block;margin-top:4px}.start-project>.icon{color:#93a0b2}.timesheet-scroll{max-width:100%}.timesheet td.time-cell{background:none}.timesheet .today-col{background:#edf3ff;color:#426eac;box-shadow:inset 0 3px 0 #7295c6}.timesheet .live-cell{background:#e7f0fd;color:#406fab;box-shadow:inset 0 0 0 1px #c6d8f1}.timesheet td.total{background:#f6f8fb}.timesheet tfoot .person-cell{background:#f1f4f8;font-size:.8125rem}.timesheet .person-cell{min-width:220px}.timesheet .time-cell{border:0;line-height:1.5}.timesheet tr:hover .person-cell{background:#fafbfd}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.card-head{display:flex;align-items:center;justify-content:space-between;padding:20px 23px;border-bottom:1px solid var(--line)}.card-head h3{font-size:1rem}.card-body{padding:20px 23px}.table{border-collapse:collapse;width:100%;text-align:left}.table th{font-size:.75rem;color:#748195;background:#fafbfc;font-weight:500;padding:13px 19px;border-bottom:1px solid var(--line);white-space:nowrap}.table td{font-size:.875rem;padding:16px 19px;border-bottom:1px solid #edf0f4}.table td b{font-weight:550}.table tr:last-child td{border:0}.table small{font-size:.75rem}.table tbody tr:hover{background:#fcfcfe}.admin-user{display:flex;gap:15px;align-items:center;padding:10px 0;font-size:.875rem}.admin-user>.btn{margin-left:auto}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:5px;font-size:.75rem;padding:4px 8px;font-weight:500;background:#eef2f8;color:#58789d;white-space:nowrap}.pill.green{background:#e7f3ed;color:#26785b}.pill.amber{background:#fff3d9;color:#97660e}.pill.red{background:#fff0f1;color:#c43e4a}.btn.tiny{font-size:.8125rem;min-height:34px;padding:6px 11px}.error{color:#b83040;font-size:.875rem;margin-top:10px}.dialog-card>.doc-code{padding:25px;text-align:center}.receipt-table{min-width:480px}.receipt-table .receipt-qty{width:80px}.receipt-result .badge{font-size:.75rem}.dialog-card .table-wrap{scrollbar-width:thin}#toast{display:none;position:fixed;right:24px;bottom:24px;z-index:999;max-width:min(480px,calc(100vw - 40px));background:#283445;padding:13px 18px;min-height:0;font-size:.875rem;border-radius:9px;box-shadow:0 4px 25px #15243635;color:white}#toast.show{display:block}#modal #toast{position:sticky;bottom:12px;align-self:center;margin:0 20px 10px;right:auto;z-index:20;flex-shrink:0}.modal-body .form-error{margin-bottom:10px}.window-side .btn{white-space:normal}.btn.danger-soft{color:#bd3a47;background:#fff3f4}.back-link{display:inline-flex;align-items:center;gap:7px;font-size:.8125rem;text-decoration:none;margin-bottom:22px}.mobile-backdrop{border:0;padding:0}button.nav-item b{white-space:nowrap}.nav-count:empty{display:none}.window-main .table-wrap>.item-table{min-width:440px}.section-heading .section-step{flex-shrink:0}.dialog-body .form-section:first-of-type{border:0;padding-top:0;margin-top:0}
@media(min-width:721px){#modal:has(>.dialog-card:not(.dialog-wide):not(.dialog-fullscreen):not(.dialog-medium)){width:min(720px,calc(100% - 48px))}.fullscreen#modal{width:calc(100% - 32px)}.fullscreen#modal .window-grid{min-height:100%}.dialog-wide .window-grid{min-height:440px}}
@media(max-width:1200px){.topbar{gap:12px}.header-date{display:none}.auth-brand{padding:35px}.auth-story h1{font-size:3.5rem}.auth-story p{font-size:.9375rem}.page-head .actions .btn{padding:10px 12px}.timesheet .person-cell{min-width:195px}.project-numbers{gap:9px}.invoice-window{grid-template-columns:minmax(0,1fr) 245px}}
@media(max-width:980px){.auth-story h1{font-size:3rem}.auth-brand{padding:30px}.auth-form-wrap{padding:35px 25px}.auth-features{margin-top:30px}.page-head .actions{max-width:100%}.invoice-window{grid-template-columns:minmax(0,1fr) 220px}.timesheet .person-cell{min-width:180px}.work-quantity-row{gap:10px}.operation-selector button{font-size:.75rem;padding:6px}.editor-meta{gap:15px}.editor-explain{font-size:.75rem}.editor-meta .field{min-width:210px}.report-builder{grid-template-columns:minmax(0,1fr) 230px}}
@media(max-width:720px){.auth-screen{grid-template-columns:1fr}.auth-brand{min-height:0;padding:25px 25px 22px}.auth-brand .brand-word{font-size:1.6rem}.auth-brand .brand-sub{font-size:.75rem}.auth-story,.auth-caption{display:none}.auth-form-wrap{padding:32px 25px 45px;align-items:flex-start}.auth-card{max-width:420px}.auth-card h2{font-size:1.75rem}.auth-overline{display:none}.auth-card>p{margin-bottom:25px}.auth-card .field input{font-size:1rem}.auth-brand:after{display:none}.auth-standalone{padding:18px}.auth-standalone .auth-card{padding:25px}.topbar{gap:5px}.breadcrumbs strong{font-size:.8125rem}.breadcrumbs span:first-child{display:none}.top-actions>.profile-btn{margin-left:3px}.top-actions #logoutBtn{width:33px}.profile-btn .avatar{width:32px;height:32px;font-size:.75rem}.page-head .actions{width:100%;justify-content:stretch}.page-head .actions .btn{flex:1}.day-banner{padding:12px 14px;gap:10px}.day-banner strong{font-size:.8125rem}.day-banner span{font-size:.75rem}.day-banner .badge{display:none}.dash-projects{grid-template-columns:1fr 1fr}.dash-projects .project-numbers{flex-direction:column;gap:5px;margin-top:16px;padding-top:12px}.project-card-end{margin-top:15px}.project-card-end .badge{font-size:.75rem}.project-card-end>.icon{width:16px}.project-card .project-symbol{width:32px;height:32px}.feed-item{padding:15px 17px;gap:10px}.feed-compact .feed-item{padding:15px 17px}.feed-item b{font-size:.8125rem}.feed-item p{font-size:.75rem}.feed-item small{font-size:.75rem}.dialog-card{height:100%;max-height:100dvh}.dialog-card>.dialog-head{position:relative}.dialog-card>.dialog-footer{position:relative}.dialog-card>.dialog-body{flex:1}.dialog-card>.dialog-actions{margin-top:auto;padding:16px;flex-wrap:wrap}.dialog-card>.field{margin:18px 18px 0}.dialog-card>.import-grid,.dialog-card>.mapping-grid{padding:20px 18px 0;gap:0 12px}.dialog-card>.mapping-grid{grid-template-columns:1fr 1fr}.dialog-card>.check-row{margin:18px}.dialog-card .field input{font-size:1rem}.dialog-card>.dialog-head h3{font-size:1.125rem}.dialog-card>.dialog-head p{font-size:.8125rem}.dialog-card>.preview-table{margin:10px 18px;min-height:150px}.dialog-card>.dialog-actions .btn{flex:1;white-space:normal}.dialog-card .window-main>.form-error{margin:0 0 15px}.editor-meta{padding:16px;display:block}.editor-meta .field{width:100%}.editor-explain{margin-top:12px;font-size:.75rem;line-height:1.6}.excel-toolbar{padding:12px 16px;gap:7px}.excel-toolbar .btn{font-size:.75rem;padding:8px 9px;min-height:37px}.excel-toolbar .btn .icon{width:14px}.excel-toolbar .save-state{width:100%;margin-left:0;margin-top:4px}.excel-grid-wrap{min-height:280px}.excel-grid input:not([type=checkbox]){font-size:1rem}.work-line-card{padding:14px}.work-line-card select{font-size:.875rem!important}.work-line-card .field label{font-size:.8125rem}.work-quantity-row{grid-template-columns:1.2fr 1fr;gap:12px}.operation-selector button{font-size:.75rem}.material-balance{font-size:.75rem;flex-wrap:wrap;gap:5px}.report-process{max-width:330px}.photo-gallery img{height:120px}.invoice-items{min-width:460px}.window-side .side-card{margin-top:17px}.window-side>.stack{display:grid;grid-template-columns:1fr 1fr;gap:8px}.window-side>.stack .btn{font-size:.75rem}.start-project{padding:14px}.timesheet .person-cell{min-width:165px}.timesheet .person-cell .person strong{font-size:.8125rem}.timesheet th{font-size:.75rem;min-width:44px}.timesheet .time-cell{font-size:.75rem;padding:6px 4px}.timesheet tfoot td{font-size:.75rem}.table th{padding:12px 14px}.table td{padding:13px 14px}.card-head{padding:17px}.card-body{padding:17px}.admin-user{flex-wrap:wrap}.report-builder .window-side #draftStatus{margin-top:12px}.note-inline{font-size:.8125rem}.table-foot span:last-child{display:none}.dialog-footer-note{display:none}.dialog-footer{padding:13px 16px}.dialog-footer .btn{min-height:44px}.dialog-card>.form-error{margin:12px 16px}.receipt-table{min-width:470px}.upload-box{padding:16px 12px}.window-main .table-wrap>.item-table{min-width:420px}.window-side .summary-kv dt{font-size:.8125rem}.window-side .summary-kv dd{font-size:.875rem}.dialog-eyebrow{flex-wrap:wrap;gap:6px}.dialog-eyebrow .object-label{font-size:.75rem}.auth-card .demo-roles button{min-height:34px}}
@media(min-width:1800px){.auth-story{padding-left:45px}.auth-brand{padding:50px 70px}.auth-form-wrap{padding:80px}.auth-card{max-width:400px}.dashboard-grid{grid-template-columns:minmax(0,1.9fr) minmax(320px,1fr)}}

.mapping-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px}.invoice-meta-strip{display:flex;gap:20px;padding:13px 16px;background:#f4f7fb;border-radius:8px;font-size:.8125rem;color:#66758c;margin-bottom:22px;flex-wrap:wrap}.preview-table td{white-space:nowrap}.content[aria-busy=true]{opacity:.65;pointer-events:none;transition:opacity .15s}.upload-box input[type=file]{display:none}@media(max-width:720px){.mapping-fields{grid-template-columns:1fr 1fr;gap:0 12px}.invoice-meta-strip{gap:8px 16px}.preview-table{margin-top:14px}}
