/* Existing warehouse workspace: contain ledgers and keep forms usable on phones. */
body{margin:0;color:#162033;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.5}
body:not(.loggedOut){display:block;grid-template-columns:none}
.wrap,.modal-card,.card,.row>*,.grid>*{box-sizing:border-box;min-width:0}
.wrap{width:100%;max-width:1280px;margin-inline:auto;padding:24px}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:20px}
.page-head h1{font-size:clamp(24px,3vw,32px);line-height:1.2;margin:0 0 10px;letter-spacing:-.025em}
.page-head p{margin:0;max-width:760px}
.page-head nav{display:flex;gap:12px;flex-shrink:0;padding-top:5px}
.page-head a{color:#0f766e;font-weight:600;text-decoration:none}
.page-head a:hover{text-decoration:underline}
.grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}
#summary{grid-template-columns:repeat(4,minmax(0,1fr))}
#summary .card{padding:16px 18px}#summary h2{margin:6px 0 0;font-size:27px}
.card{padding:20px;border-radius:14px;border-color:#e1e7ef;box-shadow:0 2px 8px #16203305}
h3{margin:0 0 14px;font-size:18px}h4{margin:0 0 12px}
.row{gap:12px;align-items:start}.row>*{flex:1 1 160px}.row>button{flex:0 0 auto;align-self:end}
label{display:grid;gap:6px;margin-bottom:14px;font-size:13px;font-weight:600;color:#334155}
input,select,textarea{box-sizing:border-box;min-width:0;max-width:100%;min-height:44px;font:inherit;font-size:14px;color:#162033;margin:0}
textarea{min-height:84px;resize:vertical}
button{min-height:44px;font:inherit;font-size:14px;font-weight:600}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #0f766e66;outline-offset:2px}
.table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:8px}
.table-wrap table{table-layout:auto;min-width:100%}#transferList table,#reconciliationList table{min-width:900px}
table{font-size:13px}th{background:#f1f5f9;color:#475569;font-size:12px;white-space:nowrap}td,th{padding:12px}
.pill,.num,td button{white-space:nowrap}
td{overflow-wrap:anywhere}td.actions{display:table-cell}.actions button{margin:3px}
#lines .row{margin:12px 0;padding:14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px}
#lines label{margin:0}.section-head{justify-content:space-between}.section-head>div{flex:1 1 220px}.section-head h3{margin-bottom:4px}
.modal{box-sizing:border-box}.modal-card{max-width:1080px}.modal-head{margin-bottom:16px}.modal-head h2{margin:0}.modal-head .close{flex-shrink:0}
.notice{overflow-wrap:anywhere}.sticky-actions{padding:12px 0 2px}
@media(max-width:700px){.wrap{padding:16px}.page-head{display:block}.page-head nav{margin-top:14px}#summary{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:16px}.modal{padding:10px}.modal-card{margin:0 auto;padding:16px}.row>*{flex-basis:100%}.row>button{flex:1 1 100%}#lines .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#lines label:first-child,#lines label:last-child{grid-column:1/-1}#transferList table,#reconciliationList table{min-width:700px}.modal .table-wrap table{min-width:620px}}
