:root{--bg: #f6f3ef;--panel: #ffffff;--panel-2: #fbfaf8;--ink: #1d1715;--muted: #756c68;--line: #e8ded7;--red: #d71920;--red-soft: #fff0ee;--green: #1f9d61;--green-soft: #eaf8f0;--blue: #2563eb;--blue-soft: #edf4ff;--amber: #c98212;--amber-soft: #fff6df;--gray-soft: #f1f1f1;--shadow: 0 12px 28px rgba(42, 25, 18, .08)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:var(--bg);color:var(--ink);font-family:Inter,Manrope,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased}button{font:inherit}.shell{min-height:100vh;padding:18px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 auto 14px;max-width:1680px}.app-kicker{display:block;margin-bottom:2px;color:var(--red);font-size:12px;font-weight:700;letter-spacing:.08em}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1;font-weight:700}.topbar__actions{display:flex;align-items:center;gap:10px}.toggle,.refresh{display:inline-flex;align-items:center;gap:9px;min-height:40px;border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:0 12px;color:var(--ink);font-size:14px;font-weight:600;box-shadow:0 2px 8px #2a19120a}.toggle input{width:17px;height:17px;accent-color:var(--red)}.refresh{cursor:pointer}.refresh:disabled{opacity:.55;cursor:wait}.is-spinning{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.stats{max-width:1680px;margin:0 auto 12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.stat{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;min-height:62px;padding:12px;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 14px #2a19120a}.stat svg{color:var(--muted)}.stat span{color:var(--muted);font-size:13px;font-weight:500}.stat b{font-size:20px;font-weight:700;white-space:nowrap}.stat--new svg,.stat--new b{color:var(--red)}.stat--ship svg,.stat--ship b{color:var(--blue)}.stat--sum svg,.stat--sum b{color:var(--green)}.meta-row{display:flex;justify-content:space-between;gap:12px;max-width:1680px;margin:0 auto 12px;min-height:22px;color:var(--muted);font-size:13px}.meta-row strong{color:var(--red);font-weight:600}.loading-state{display:grid;place-items:center;min-height:420px;color:var(--muted);font-weight:600}.board{max-width:1680px;margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(260px,1fr));gap:12px;align-items:start}.column{min-height:calc(100vh - 184px);background:#ffffff8f;border:1px solid var(--line);border-radius:8px;overflow:hidden;transition:border-color .16s,background .16s,box-shadow .16s}.column.is-over{background:#fff;border-color:#d719206b;box-shadow:0 0 0 3px #d7192014}.column__head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:68px;padding:12px;border-bottom:1px solid var(--line);background:var(--panel)}.column__head h2{font-size:18px;line-height:1.15;font-weight:700}.column__head span{display:block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:500}.column__head b{display:grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border-radius:8px;background:var(--gray-soft);color:var(--muted);font-size:14px}.column--new .column__head b{background:var(--red-soft);color:var(--red)}.column--accepted .column__head b{background:var(--green-soft);color:var(--green)}.column--delivering .column__head b{background:var(--blue-soft);color:var(--blue)}.column--cancelled .column__head b{background:var(--gray-soft);color:#6b6360}.column__body{display:flex;flex-direction:column;gap:10px;padding:10px}.column__empty{display:grid;place-items:center;min-height:120px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:13px;font-weight:600}.order-card{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:10px;box-shadow:0 6px 16px #2a19120f;cursor:pointer;touch-action:manipulation}.order-card:hover{border-color:#d7192047;box-shadow:var(--shadow)}.order-card--overlay{width:320px;box-shadow:0 18px 40px #2a19122e}.order-card__top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;margin-bottom:10px}.drag-handle,.icon-button{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);color:var(--muted);cursor:grab}.drag-handle:active{cursor:grabbing}.icon-button{cursor:pointer}.order-card__number{min-width:0;display:flex;flex-direction:column;gap:2px}.order-card__number span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700}.order-card__number time{color:var(--muted);font-size:12px;font-weight:500}.order-card__customer{display:flex;flex-direction:column;gap:5px;margin-bottom:9px}.order-card__customer b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.order-card__customer span,.order-card__line,.order-card__items{display:flex;align-items:center;gap:6px;min-width:0;color:var(--muted);font-size:12.5px;font-weight:500}.order-card__line,.order-card__items{margin-bottom:7px}.order-card__line span,.order-card__items span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-card__foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:9px;border-top:1px dashed var(--line)}.order-card__foot span{color:var(--muted);font-size:12px;font-weight:600}.order-card__foot strong{font-size:17px;font-weight:700}.status-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;max-width:132px;min-height:30px;border:1px solid transparent;border-radius:8px;padding:0 8px;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}.status-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis}.status-trigger--new{background:var(--red-soft);color:var(--red)}.status-trigger--accepted{background:var(--green-soft);color:var(--green)}.status-trigger--delivering{background:var(--blue-soft);color:var(--blue)}.status-trigger--cancelled{background:var(--gray-soft);color:#6b6360}.status-menu{z-index:1000;width:210px;border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:6px;box-shadow:0 18px 36px #2a191229}.status-menu__item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;min-height:38px;border-radius:6px;padding:0 9px;color:var(--ink);font-size:14px;font-weight:600;cursor:pointer;outline:none}.status-menu__item[data-highlighted]{background:var(--red-soft)}.status-menu__check{color:var(--red)}.status-dot{width:9px;height:9px;border-radius:50%}.status-dot--new{background:var(--red)}.status-dot--accepted{background:var(--green)}.status-dot--delivering{background:var(--blue)}.status-dot--cancelled{background:#6b6360}.details{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900}.details__scrim{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:#19120f75}.details__panel{position:absolute;top:0;right:0;bottom:0;width:min(460px,100%);display:flex;flex-direction:column;gap:14px;overflow-y:auto;background:var(--panel);padding:18px;box-shadow:-20px 0 48px #19120f2e}.details__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line)}.details__eyebrow{color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.details__head h2{margin-top:4px;font-size:26px;font-weight:700}.details__status{display:flex;align-items:center;justify-content:space-between;gap:12px}.details__status>span{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:13px;font-weight:600}.details__section{border:1px solid var(--line);border-radius:8px;padding:14px;background:var(--panel-2)}.details__section h3{margin-bottom:12px;font-size:15px;font-weight:700}.info-line{display:flex;align-items:flex-start;gap:8px;margin-bottom:9px;color:var(--ink);font-size:14px;font-weight:500}.info-line svg{flex:0 0 auto;margin-top:1px;color:var(--muted)}.details__map-address{margin:-1px 0 8px 25px;color:var(--muted);font-size:13px;line-height:1.4;font-weight:500}.details__map-link{display:inline-flex;align-items:center;gap:7px;min-height:36px;margin:0 0 8px 25px;border-radius:8px;background:var(--red-soft);color:var(--red);padding:0 11px;font-size:13px;font-weight:700}.details__comment{margin-top:10px;border-left:3px solid var(--red);padding:8px 10px;background:#fff;color:var(--muted);font-size:14px;line-height:1.45;font-weight:500}.details__items{display:flex;flex-direction:column;gap:8px}.details-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding-bottom:8px}.details-item:last-child{border-bottom:0;padding-bottom:0}.details-item b,.details-item span{display:block}.details-item b{font-size:14px}.details-item span{margin-top:3px;color:var(--muted);font-size:12px;font-weight:500}.details-item strong{display:inline-flex;align-items:center;justify-content:center;min-width:46px;min-height:30px;border-radius:8px;background:var(--gray-soft);color:var(--muted);font-size:13px;font-weight:700;white-space:nowrap}.totals{display:flex;flex-direction:column;gap:8px}.totals div{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:14px}.totals b{color:var(--ink);white-space:nowrap}.totals__total{margin-top:4px;border-top:1px dashed var(--line);padding-top:10px;font-size:17px!important;font-weight:700}.payment-line{margin-top:12px;border-radius:8px;background:#fff;padding:10px;color:var(--muted);font-size:13px;font-weight:600}@media(max-width:1180px){.board{grid-template-columns:repeat(2,minmax(260px,1fr))}.column{min-height:420px}}@media(max-width:760px){.shell{padding:12px}.topbar{align-items:flex-start;flex-direction:column}.topbar__actions{width:100%;justify-content:space-between}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.board{grid-template-columns:minmax(260px,1fr)}.details__panel{width:100%}}@media(max-width:460px){h1{font-size:28px}.topbar__actions,.meta-row{flex-direction:column;align-items:stretch}.toggle,.refresh{width:100%;justify-content:center}.stats{grid-template-columns:1fr}.order-card__top{grid-template-columns:auto minmax(0,1fr)}.order-card__top .status-trigger{grid-column:1 / -1;width:100%;max-width:none}}
