:root{--blue:#2f63a0;--text:#17212b;--muted:#5b6874;--border:#d2d9e0;--page:#f2f4f6;--card:#fff;--red:#b3261e;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--page);margin:0}button{font:inherit;cursor:pointer;background:var(--blue);color:#fff;border:none;border-radius:8px;padding:10px 16px}button:disabled{opacity:.5;cursor:default}input,select,textarea{font:inherit;border:1px solid var(--border);background:#fff;border-radius:8px;padding:8px 10px}.small-button{color:var(--blue);border:1px solid var(--border);background:#fff;padding:6px 12px}.link-button{color:var(--blue);background:0 0;padding:4px}.error{color:var(--red)}.muted{color:var(--muted)}.center-message{text-align:center;margin-top:120px}.login-page{justify-content:center;padding-top:120px;display:flex}.login-card{background:var(--card);border-radius:12px;flex-direction:column;gap:16px;width:380px;padding:28px;display:flex}.login-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.login-header h1{margin:0;font-size:22px}.login-card form{flex-direction:column;gap:12px;display:flex}.login-card label{color:var(--muted);flex-direction:column;gap:6px;font-size:14px;display:flex}.login-card input{color:var(--text);font-size:18px}.layout{min-height:100vh;display:flex}.sidebar{background:var(--text);box-sizing:border-box;flex-direction:column;flex-shrink:0;gap:4px;width:200px;height:100vh;padding:16px 10px;display:flex;position:sticky;top:0;overflow-y:auto}.sidebar-title{color:#fff;padding:8px 10px 16px;font-weight:700}.menu-item{text-align:left;color:#c9d2da;background:0 0}.menu-item.active{background:var(--blue);color:#fff}.main{flex:1;min-width:0}.topbar{background:var(--card);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:12px 24px;display:flex}.topbar h2{margin:0;font-size:20px}.topbar-right{color:var(--muted);align-items:center;gap:12px;display:flex}.content{padding:24px}.page-actions{margin-bottom:16px}.data-table{border-collapse:collapse;background:var(--card);border-radius:8px;width:100%;overflow:hidden}.data-table th,.data-table td{text-align:left;border-bottom:1px solid var(--border);vertical-align:top;padding:10px 12px}.data-table th{color:var(--muted);background:#e8edf2;font-size:14px}.data-table tr.clickable{cursor:pointer}.data-table tr.clickable:hover{background:#eef3f9}.data-table tr.faded{color:var(--muted)}.code-cell{white-space:nowrap;font-weight:600}.modal-backdrop{z-index:20;background:#17212b66;justify-content:center;align-items:flex-start;padding-top:60px;display:flex;position:fixed;inset:0;overflow-y:auto}.modal{background:var(--card);border-radius:12px;flex-direction:column;gap:14px;width:520px;margin-bottom:60px;padding:24px;display:flex}.modal h3{margin:0}.modal label{color:var(--muted);flex-direction:column;gap:4px;font-size:14px;display:flex}.modal input,.modal select{color:var(--text)}.modal fieldset{border:1px solid var(--border);border-radius:8px;margin:0;padding:8px 12px 12px}.modal legend{color:var(--muted);font-size:14px}.checkbox-grid{grid-template-columns:1fr 1fr;gap:6px 12px;display:grid}.modal label.checkbox-label{color:var(--text);flex-direction:row;align-items:center;gap:6px}.hint{color:var(--muted);font-size:12px}.modal-buttons{justify-content:flex-end;gap:8px;display:flex}.tabs{border-bottom:2px solid var(--border);gap:4px;margin-bottom:16px;display:flex}.tab{color:var(--muted);background:0 0;border-bottom:2px solid #0000;border-radius:8px 8px 0 0;margin-bottom:-2px}.tab.active{color:var(--blue);border-bottom-color:var(--blue);font-weight:600}.nowrap{white-space:nowrap}.two-columns{grid-template-columns:1fr 1fr;gap:12px;display:grid}.modal .field{color:var(--muted);flex-direction:column;gap:4px;font-size:14px;display:flex}.date-field{position:relative}.date-button{text-align:left;width:100%;color:var(--text);border:1px solid var(--border);background:#fff;padding:8px 10px}.calendar{z-index:10;background:var(--card);border:1px solid var(--border);border-radius:10px;flex-direction:column;gap:6px;width:280px;margin-top:4px;padding:10px;display:flex;position:absolute;top:100%;left:0;box-shadow:0 6px 20px #00000026}.calendar-header{color:var(--text);justify-content:space-between;align-items:center;font-weight:600;display:flex}.calendar-grid{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.calendar-weekday{text-align:center;color:var(--muted);font-size:12px}.calendar-day{color:var(--text);background:0 0;padding:6px 0}.calendar-day:hover{background:#eef3f9}.calendar-day.other-month{color:#b0b8c0}.calendar-day.today{color:var(--blue);font-weight:700}.calendar-day.selected{background:var(--blue);color:#fff}.notice{color:#1e6b34}.big-checkbox{cursor:pointer;width:18px;height:18px}.stack{flex-direction:column;gap:16px;display:flex}.toolbar{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.sticky-toolbar{background:var(--page);z-index:5;margin:-12px 0;padding:12px 0;position:sticky;top:0}.inline-label{align-items:center;gap:8px;display:flex}.file-button{background:var(--blue);color:#fff;cursor:pointer;border-radius:8px;padding:10px 16px}.preview-box{background:#fff8e6;border:1px solid #f0d58c;border-radius:10px;flex-direction:column;gap:12px;padding:16px;display:flex}.preview-box p{margin:0}.row-problem td{color:var(--red);background:#fde8e6}.row-warning td{background:#fff3cd}h3{font-size:16px}.hint-box{background:#eef3f9;border-radius:8px;margin:0;padding:12px 16px}.danger-button{color:var(--red);background:#fff;border:1px solid #e3b4b0;padding:6px 12px}.push-left{margin-right:auto}p.hint{margin:0 0 12px}.grid-table th,.grid-table td{vertical-align:middle}.center{text-align:center!important}.small{font-size:12px;font-weight:400}.push-right{margin-left:auto}.schedule-table th,.schedule-table td{min-width:130px}.schedule-table td.row-title{background:#f7f9fb;min-width:150px}.today-column{background:#eef5ff!important}.chip{width:100%;color:var(--text);text-align:left;border-left:3px solid var(--blue);background:#e3ecf7;flex-direction:column;align-items:flex-start;gap:2px;margin-bottom:4px;padding:6px 8px;font-size:13px;display:flex}.chip:disabled{opacity:1}.add-chip{color:#9aa6b2;border:1px dashed var(--border);background:0 0;width:100%;padding:2px}.add-chip:hover{color:var(--blue);border-color:var(--blue)}.sunday-column{background:#f4f5f7}.warning-text{color:#9a6700;white-space:nowrap;font-size:12px}.modal label.checkbox-label{white-space:nowrap;flex-wrap:wrap}.card{background:var(--card);border-radius:12px;padding:16px 20px}.card h3{margin:0 0 12px}.card h4{margin:16px 0 8px}.page-date{margin:0}.plain-list{margin:0;padding:0;list-style:none}.plain-list li{padding:6px 0}.todo-row{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.toasts{z-index:50;flex-direction:column;gap:8px;max-width:360px;display:flex;position:fixed;bottom:20px;right:20px}.toast{text-align:left;color:#fff;border-left:6px solid var(--blue);background:#17212b;border-radius:8px;padding:12px 16px;box-shadow:0 4px 16px #0003}.toast-problem{border-left-color:var(--red)}.quantity-input{text-align:right;width:80px}.unit-input{width:80px}.wide-modal{width:680px}.order-line{border-bottom:1px solid var(--border);flex-direction:column;gap:4px;padding:6px 0;display:flex}.details-body{gap:10px;margin-top:10px}.modal summary{cursor:pointer;color:var(--blue)}.request-card{border:1px solid var(--border);border-radius:10px;flex-direction:column;gap:4px;padding:12px 14px;transition:background .6s;display:flex}.request-card.highlighted{background:#fff6cc}.order-block{background:#f6f8fa;border-radius:8px;flex-direction:column;gap:2px;margin-top:6px;padding:8px 10px;display:flex}.order-block.faded{opacity:.6}.no-border{border-bottom:none}.back-office{color:#6b4e00}.strike{text-decoration:line-through}.status-badge{white-space:nowrap;background:#e8edf2;border-radius:999px;padding:2px 10px;font-size:13px}.status-requested,.status-partlyOrdered{background:#fff1d6}.status-ordered,.status-partlyReceived{background:#e3edf8}.status-received{background:#e3f3e6}.status-returned,.status-problem{color:var(--red);background:#fbe3e1}.request-line{align-items:center;gap:8px;margin-bottom:6px;display:flex}.item-input{flex:1}.history-details{margin-top:16px}.history-details summary{cursor:pointer;color:var(--blue);margin-bottom:8px}.filter-chips{flex-wrap:wrap;gap:6px;margin:8px 0;display:flex}.filter-chip{color:var(--text);border:1px solid var(--border);background:#fff;border-radius:999px;padding:3px 12px;font-size:13px}.filter-chip.active{background:var(--blue);color:#fff;border-color:var(--blue)}.month-details{margin:6px 0}.month-details>summary{cursor:pointer;padding:4px 0}.import-modal{max-width:900px}.import-preview{flex-direction:column;gap:10px;max-height:50vh;display:flex;overflow-y:auto}.import-order{border-left:3px solid var(--blue);padding-left:8px}.import-order.bad{border-left-color:#c0392b}.data-table tr.bad-row td{background:#fdecea}.fold>summary{cursor:pointer;padding:4px 0;list-style-position:inside}.fold>summary:hover strong{color:var(--blue)}.fold-body{flex-direction:column;gap:10px;margin-top:10px;display:flex}.month-fold{border-left:2px solid var(--border);padding-left:10px}.table-scroll{overflow-x:auto}.card-toggle{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;justify-content:space-between;align-items:center;gap:12px;padding:0;display:flex}.card-toggle:hover strong{color:var(--blue)}.card-summary{cursor:pointer}.ok-text{color:#1e7b34}.fold-action{float:right;margin-left:16px}.filter-bar{gap:12px}.search-input{width:160px}.count-reason{flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px;display:flex}.count-reason input{min-width:12em}.confirm-box{background:#fff6cc;border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.receipt-photos{flex-wrap:wrap;gap:8px;display:flex}.receipt-photos img{object-fit:cover;border:1px solid var(--border);border-radius:6px;width:140px;height:140px}.grow-input{flex:1;min-width:200px}.export-group{flex-wrap:wrap;align-items:center;gap:16px;padding:4px 0;display:flex}.export-group>.muted{width:40px}.check-label{flex-direction:row;align-items:center;gap:6px;margin:0}.modal .check-label,.modal .inline-label{flex-direction:row;align-items:center}.report-list{flex-direction:column;gap:12px;display:flex}.report-card h4.report-person{color:#2f63a0;margin:0}.report-card p{margin:2px 0 6px}.report-site{border-top:1px solid #eef1f4;flex-direction:column;gap:3px;margin-top:6px;padding-top:8px;display:flex}.done-text{color:#1f7a3a;font-weight:600}.warn-text{color:#9a5b00}.report-photos{flex-wrap:wrap;gap:8px;padding-top:4px;display:flex}.photo-thumb{cursor:zoom-in;background:0 0;border:1px solid #d2d9e0;border-radius:8px;padding:0;overflow:hidden}.photo-thumb img{object-fit:cover;width:96px;height:96px;display:block}.photo-viewer{z-index:50;background:#000000e6;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:24px;display:flex;position:fixed;inset:0}.photo-viewer img{object-fit:contain;max-width:100%;max-height:calc(100vh - 110px)}.photo-viewer-bar{color:#fff;align-items:center;gap:12px;display:flex}.change-day{padding:10px 16px}.change-entry{border-top:1px solid var(--border);flex-direction:column;gap:2px;padding-top:8px;display:flex}.change-entry:first-child{border-top:none;padding-top:0}.change-removed,.change-addedThenRemoved{color:#b3261e}.change-added{color:#1e7b34}.change-detail{color:#3d4954;padding-left:3em}.card-actions{justify-content:space-between;align-items:center;gap:12px;margin-top:8px;display:flex}.card-actions-left{gap:12px;display:flex}.pill-button{color:var(--blue);border:1px solid var(--blue);background:#fff;border-radius:999px;padding:5px 18px;font-weight:600}.pill-button.danger{color:var(--red);border-color:var(--red)}.special-tag{color:#8a5a00;font-weight:600}.field-group{color:var(--muted);font-size:14px}.field-group .filter-chip:not(.active),.field-group input{color:var(--text)}.row-sub{white-space:nowrap;align-items:center;gap:8px;margin-top:4px;font-size:13px;display:flex}.crew-week-table td{vertical-align:top}.helpers-input{width:48px;margin-left:6px}.activity-row{align-items:center;gap:8px;margin-top:6px;display:flex}.activity-row input{flex:1}.compact-table td{padding:4px 8px}.project-file-scope{margin:10px 0 4px}.extra-tag{color:#8a5a00;font-weight:600}.card-toggle-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.variation-photo-row{align-items:flex-start;gap:12px;margin-top:4px;display:flex}.variation-photo-row>div{white-space:pre-wrap;flex:1}span.photo-thumb{cursor:default;display:block}span.photo-thumb.muted{justify-content:center;align-items:center;width:96px;height:96px;font-size:12px;display:flex}.variation-reported{color:#8a5300;background:#fff1d6}.variation-quoted{color:#1f4e86;background:#e3eefa}.variation-approved,.variation-done,.variation-claimed{color:#1e6b3a;background:#e2f3e8}.variation-rejected{color:#8c2a23;background:#f6e3e1}.variation-history>summary{cursor:pointer;color:var(--blue);font-size:13px}.variation-history .fold-body{gap:2px;margin-top:4px}.keep-lines{white-space:pre-line}.day-activity-row{text-align:left;align-items:flex-start;gap:8px;width:100%;margin-top:4px;display:flex}.day-activity-tap{color:inherit;cursor:pointer;background:0 0;border:none;padding:2px 0}.day-activity-row textarea{flex:1}.day-activity-own{color:var(--blue)}.section-title{margin:8px 0 0;font-size:1rem}.error-text{color:var(--red)}.strong{font-weight:600}.red-badge{background:var(--red);color:#fff;text-align:center;border-radius:999px;min-width:18px;margin-left:6px;padding:0 5px;font-size:12px;font-weight:700;line-height:18px;display:inline-block}.weekly-switcher{justify-content:space-between;align-items:center;gap:12px;max-width:640px;display:flex}.weekly-switcher .small-button{white-space:nowrap}.weekly-switcher-middle{text-align:center;flex-direction:column;align-items:center;gap:2px;display:flex}.weekly-summary{flex-direction:column;gap:6px;display:flex}.weekly-summary h3{margin:0 0 4px}.weekly-section{color:var(--muted);margin:8px 0 0}.weekly-grid{grid-template-columns:repeat(auto-fill,minmax(420px,1fr));align-items:start;gap:12px;display:grid}@media (width<=700px){.weekly-grid{grid-template-columns:1fr}}.weekly-site-title{vertical-align:top;flex-direction:column;gap:2px;display:inline-flex}.weekly-crew{flex-direction:column;gap:4px;padding:12px 16px;display:flex}.weekly-flag{justify-content:flex-start}.weekly-flag-detail{border-left:2px solid var(--border);margin:6px 0 10px 6px;padding-left:12px}.weekly-day-reports{flex-direction:column;gap:8px;display:flex}.itp-card{flex-direction:column;gap:6px;display:flex}.itp-card p{margin:0}.itp-floors td,.itp-floors th{white-space:nowrap}.itp-cell-done{color:var(--green,#2e7d32);font-weight:600}.itp-cell-part{font-weight:600}.itp-older{flex-wrap:wrap;align-items:baseline;gap:12px;display:flex}.itp-preview-items{max-height:360px;overflow-y:auto}.itp-preview-sheet td{background:#eef1f4}.itp-hold-row td{background:#fff4c2;font-weight:600}.modal label.itp-choice{align-items:flex-start}.danger-text{color:var(--red)}.modal label.file-button{color:#fff;align-self:flex-start}
