:root{color:#2d241d;font-synthesis:none;--orange:#ee7026;--ink:#2d241d;--muted:#896a51;--line:#f1dfd1;--soft:#fff0df;background:#fff9f2;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.table-scroll{overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:10px;width:100%;max-height:70vh;margin-top:12px;overflow:auto}.table-scroll table{border-collapse:collapse;min-width:100%;font-size:14px}.table-scroll th,.table-scroll td{border-bottom:1px solid var(--line);text-align:left;vertical-align:top;padding:10px}.table-scroll th{z-index:1;background:#fff0df;position:sticky;top:0}.orders-grid{table-layout:fixed;width:max-content}.orders-grid td{overflow-wrap:anywhere}.orders-grid input,.orders-grid select{min-width:0;max-width:100%}.orders-grid th{position:relative}.orders-grid th input{width:100%;font-size:12px}.column-title{text-align:left;background:0 0;border:0;padding:0;font-size:12px;font-weight:700}.col-resize{cursor:col-resize;touch-action:none;border-right:2px solid #e1c4ac;width:9px;height:100%;position:absolute;top:0;right:0}.grid-panel{min-width:0}a.button{border:1px solid var(--line);color:var(--ink);background:#fff;border-radius:9px;justify-content:center;align-items:center;min-height:42px;padding:9px 12px;text-decoration:none;display:inline-flex}.notice{background:var(--soft);border:1px solid var(--line);border-radius:10px;margin:12px 0;padding:14px}*{box-sizing:border-box}body{margin:0;font-size:16px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:#fff;border-radius:10px;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:9px 14px;font-size:14px;font-weight:650;display:inline-flex}button:hover{background:#fff1e5}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline-offset:2px;outline:3px solid #f69850}button.primary{background:var(--orange);color:#fff;border-color:var(--orange)}button.primary:hover{background:#d85f1a}.danger{color:#a62020!important}.small-btn{min-height:38px;padding:6px 10px}.icon-btn{min-width:44px;padding:8px}.app-header{border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);z-index:20;background:#fff9f2ed;justify-content:space-between;align-items:center;gap:12px;height:72px;padding:12px 28px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:12px;display:flex}.brand-mark{background:var(--orange);color:#fff;border-radius:12px;place-items:center;width:40px;height:40px;font-size:23px;font-weight:900;display:grid}.brand b{font-size:17px;display:block}.brand small{color:var(--muted);font-size:12px}.staging{color:#9c4d10;letter-spacing:.06em;border:1px solid #ecb06d;border-radius:6px;padding:3px 7px;font-size:11px;font-weight:800}.app-layout{max-width:1760px;margin:auto;display:flex}.sidebar{flex-shrink:0;width:225px;height:calc(100dvh - 72px);padding:24px 16px;position:sticky;top:72px;overflow:auto}.nav-group{letter-spacing:.08em;color:#a58a73;text-transform:uppercase;margin:22px 14px 8px;font-size:11px;font-weight:800}.nav-link{color:#725a47;background:0 0;border:0;border-radius:12px;justify-content:flex-start;align-items:center;gap:12px;width:100%;min-height:46px;margin-bottom:3px;text-decoration:none;display:flex}.nav-link.active{color:#fff;background:var(--orange);box-shadow:0 5px 12px #ee702622}.sidebar-footer{color:#fff;background:#3a2920;border-radius:16px;margin-top:25px;padding:18px;font-size:14px}.sidebar-footer small{color:#ffbc88;margin-bottom:8px;font-weight:800;display:block}.workspace{flex:1;min-width:0;padding:28px 30px 100px}.page-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px;display:flex}h1{letter-spacing:-.04em;margin:0;font-size:28px;font-weight:800}h2{letter-spacing:-.02em;margin:0 0 16px;font-size:21px}h3{margin:0 0 12px;font-size:17px}p{line-height:1.5}.muted,.page-heading p{color:var(--muted);font-size:14px}.page-heading p{margin:5px 0 0}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.between{justify-content:space-between}.grid{gap:16px;display:grid}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.stats{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-bottom:22px;display:grid}.stat{border:1px solid var(--line);background:#fff;border-radius:16px;flex-direction:column;gap:9px;min-width:0;padding:19px;display:flex}.stat>span{color:var(--muted);font-size:13px;font-weight:600}.stat strong{letter-spacing:-.04em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:25px}.stat small{color:var(--muted);font-size:12px}.panel{border:1px solid var(--line);background:#fff;border-radius:18px;min-width:0;margin-bottom:20px;padding:22px}.card{border:1px solid var(--line);background:#fff;border-radius:16px;min-width:0;padding:18px}.order-card{cursor:pointer;transition:border-color .15s;position:relative}.order-card:hover{border-color:#ed9d65}.order-card .card-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.order-card h3{margin:0;font-size:18px}.order-card p{margin:8px 0;font-size:14px}.card-id{color:var(--muted);font-size:12px;font-weight:700}.card-actions{border-top:1px solid var(--line);flex-wrap:wrap;gap:6px;margin:13px -2px -4px;padding-top:12px;display:flex}.card-actions button{min-height:38px;padding:6px 10px;font-size:12px}.badge{color:#685b50;white-space:nowrap;background:#f3f0ed;border-radius:7px;align-items:center;padding:5px 9px;font-size:12px;font-weight:750;line-height:1.2;display:inline-flex}.badge.completed,.badge.paid,.badge.accepted{color:#227040;background:#e7f5ea}.badge.cancelled,.badge.declined,.badge.needs_reassignment{color:#a33f32;background:#fce9e6}.badge.in_progress,.badge.partially_paid{color:#946600;background:#fff0cc}.badge.confirmed,.badge.scheduled{color:#365c9b;background:#e8f0ff}.pill{color:#95501f;background:#fff0e2;border-radius:7px;padding:5px 9px;font-size:12px;font-weight:650;display:inline-flex}.urgency{border-left:4px solid #e9d6c6}.urgency.today{border-left-color:#ee7026}.urgency.tomorrow{border-left-color:#e6b447}.urgency.late{border-left-color:#c94d38}.urgency.future{border-left-color:#87a5b1}.date-label{color:var(--muted);font-size:13px;font-weight:600}.warning{color:#87531b;background:#fff8e9;border:1px solid #f0cd8a;border-radius:10px;padding:12px 15px;font-size:14px}.error{color:#a42f23;background:#fff1ef;border:1px solid #f2b1a8;border-radius:10px;padding:12px 15px;font-size:14px}.success{color:#24613a;background:#effaf1;border:1px solid #b8dec1;border-radius:10px;padding:12px 15px;font-size:14px}.toast{z-index:100;max-width:min(460px,100vw - 30px);position:fixed;bottom:25px;right:25px;box-shadow:0 12px 45px #30201030}.toolbar{flex-wrap:wrap;align-items:center;gap:9px;margin-bottom:18px;display:flex}.toolbar input{flex:1;min-width:170px}.toolbar select{width:auto;max-width:200px}.field{flex-direction:column;gap:7px;min-width:0;margin-bottom:15px;font-size:14px;font-weight:600;display:flex}.field>span{color:#725a47}.field input,.field select,.field textarea{width:100%}input,select,textarea{color:var(--ink);background:#fff;border:1px solid #e4d5c7;border-radius:10px;width:100%;min-width:0;min-height:44px;padding:10px 12px;font-size:15px}textarea{resize:vertical;min-height:90px}input[type=checkbox]{width:19px;height:19px;min-height:19px;accent-color:var(--orange);flex-shrink:0}.check{align-items:center;gap:10px;margin:10px 0;font-size:14px;display:flex}.modal-backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:50;background:#2d1c1363;position:fixed;inset:0}.modal{z-index:51;background:#fff;border-radius:20px;flex-direction:column;width:min(620px,100vw - 28px);max-height:90dvh;display:flex;position:fixed;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%);box-shadow:0 25px 90px #1d100f40}.modal.wide{width:min(1040px,100vw - 28px)}.modal-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;padding:16px 20px;display:flex}.modal-header h2{margin:0;font-size:19px}.modal-body{overscroll-behavior:contain;padding:20px;overflow-y:auto}.form-actions{border-top:1px solid var(--line);justify-content:flex-end;gap:10px;margin-top:18px;padding-top:16px;display:flex}.tabs{border-bottom:1px solid var(--line);gap:6px;max-width:100%;margin-bottom:20px;padding-bottom:8px;display:flex;overflow-x:auto}.tabs button{white-space:nowrap;color:var(--muted);background:0 0;border:0}.tabs button.selected{background:var(--soft);color:#b2541b}.empty{text-align:center;color:var(--muted);border:1px dashed var(--line);background:#fffcf8;border-radius:12px;padding:35px 20px;font-size:14px}.money{white-space:nowrap;font-variant-numeric:tabular-nums}.data-table-wrap{border:1px solid var(--line);border-radius:12px;max-width:100%;overflow:auto}.data-table{border-collapse:collapse;background:#fff;width:100%;font-size:13px}.data-table th{text-align:left;white-space:nowrap;background:#fff3e8;padding:12px 10px;font-size:12px;position:sticky;top:0}.data-table td{white-space:nowrap;text-overflow:ellipsis;border-top:1px solid #f1e6dc;max-width:300px;padding:12px 10px;overflow:hidden}.data-table tbody tr:hover{background:#fffaf5}.data-table th button{background:0 0;border:0;min-height:24px;padding:0;font-size:12px}.detail-list{gap:12px;display:grid}.detail-line{border:1px solid var(--line);border-radius:12px;padding:14px}.detail-line p{margin:5px 0;font-size:14px}.detail-line h3{margin:0}.detail-label{color:var(--muted);font-size:12px}.mobile-nav,.menu-button{display:none}.login-screen{place-items:center;min-height:100dvh;padding:25px;display:grid}.login-panel{border:1px solid var(--line);background:#fff;border-radius:24px;width:min(430px,100%);padding:32px;box-shadow:0 20px 70px #b2581012}.login-panel .brand{margin-bottom:28px}.login-panel h1{margin-bottom:6px;font-size:25px}.login-panel p{color:var(--muted);margin-bottom:25px;font-size:14px}.login-panel button{width:100%}.attention-item{text-align:left;justify-content:space-between;align-items:center;gap:12px;width:100%;margin-bottom:8px;padding:13px;display:flex}.attention-item .count{color:#c26324;font-size:20px;font-weight:800}.mini-chart{border-bottom:1px solid var(--line);align-items:flex-end;gap:4px;height:160px;margin-top:20px;display:flex}.mini-chart>div{background:#f7bc8d;border-radius:4px 4px 0 0;flex:1;min-width:2px;position:relative}.mini-chart>div:hover{background:var(--orange)}.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;display:grid}.calendar-day{border:1px solid var(--line);background:#fffcf9;border-radius:12px;min-width:0;min-height:300px;padding:10px}.calendar-day h3{font-size:13px}.visit-block{text-align:left;background:#fff0df;border:1px solid #edcaad;border-radius:9px;width:100%;min-height:65px;margin-bottom:8px;padding:9px;font-size:12px;display:block}.visit-block span{text-overflow:ellipsis;margin:3px 0;display:block;overflow:hidden}.calendar-day.today{border-color:var(--orange)}.inline-link{color:#b45318;background:0 0;border:0;min-height:24px;padding:0;font-weight:700}.hidden{display:none!important}a{color:#b45318}.modal .panel{padding:16px}.login-key{overflow-wrap:anywhere;font-family:monospace}.busy-cover{opacity:.5;pointer-events:none}@media (width<=1100px){.workspace{padding:24px 18px 100px}.sidebar{width:200px}.calendar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.three{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){.app-header{gap:6px;height:66px;padding:8px 10px}.app-header>.row{flex-wrap:nowrap;gap:6px;min-width:0}.app-header>.row:first-child{flex:1}.app-header .brand{min-width:0;display:block}.app-header .brand-mark,.app-header .brand small{display:none}.app-header .brand b{white-space:nowrap;font-size:14px}.app-header .staging{padding:1px 5px;font-size:9px;display:inline-block}.brand{gap:9px}.brand b{font-size:15px}.brand-mark{width:35px;height:35px}.header-user{display:none}.menu-button{display:inline-flex}.sidebar{z-index:25;border:1px solid var(--line);background:#fff;border-radius:16px;width:auto;height:auto;max-height:calc(100dvh - 160px);display:none;position:fixed;top:76px;left:10px;right:10px;box-shadow:0 20px 60px #3b231333}.sidebar.open{display:block}.sidebar-footer{display:none}.nav-group{margin-top:12px}.workspace{width:100%;padding:20px 14px 100px}h1{font-size:25px}.page-heading{gap:12px;margin-bottom:19px}.page-heading>button,.page-heading p{font-size:13px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat{border-radius:13px;padding:14px}.stat strong{font-size:23px}.stat>span{font-size:12px}.two,.three{grid-template-columns:1fr}.panel{border-radius:15px;padding:16px}.mobile-nav{z-index:30;border-top:1px solid var(--line);padding:6px 3px calc(7px + env(safe-area-inset-bottom));background:#fff;justify-content:space-around;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -4px 25px #734e1610}.mobile-nav button{color:#947860;border:0;flex-direction:column;flex:1;gap:4px;min-width:0;padding:6px 3px;font-size:10px;display:flex}.mobile-nav button.active{color:#d86420}.toast{font-size:14px;bottom:90px;left:15px;right:15px}.modal{border-radius:16px;width:calc(100vw - 16px);max-height:94dvh}.modal.wide{width:calc(100vw - 16px)}.modal-header{padding:12px 14px}.modal-body{padding:15px}.modal-header h2{font-size:17px}.modal .two{grid-template-columns:repeat(2,minmax(0,1fr))}.modal .three{grid-template-columns:1fr}.form-actions .primary{width:100%}.calendar-grid{grid-template-columns:1fr}.calendar-day{min-height:0}.toolbar select{flex:1;min-width:130px;max-width:none}.toolbar input{min-width:100%}.tabs{gap:0}.tabs button{padding:8px 10px;font-size:13px}.staging{font-size:10px}.card-actions button{min-height:44px}.data-table-wrap{width:100%}}@media (width<=380px){.modal .two{grid-template-columns:1fr}.brand b{font-size:14px}.staging{padding:2px 4px}.stat strong{font-size:20px}}.table-scroll .dispatch-table{table-layout:fixed;width:100%;min-width:1300px}.dispatch-table td{vertical-align:top}.dispatch-table th:first-child{width:150px}.orders-grid .col-resize{background:0 0;border:0;border-radius:0;min-height:0;padding:0}
