:root{--green:#0f7a4b;--dark:#103e2b;--mint:#e9f7ef;--ink:#17231d;--muted:#718078;--line:#e4ebe6;--bg:#f5f8f6;--red:#b83d3d;--orange:#a46600}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.admin-shell{max-width:1400px;margin:auto}.admin-top{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:20}.admin-top a{font-size:12px;font-weight:800;color:var(--green);text-decoration:none}.brand{display:flex;gap:10px;align-items:center}.brand-mark{width:42px;height:42px;border-radius:13px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:900}.brand strong,.brand small{display:block}.brand small{font-size:10px;color:var(--muted);margin-top:2px}.admin-shell main{padding:30px}.welcome{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px}.welcome h1{margin:4px 0;font-size:28px}.welcome p{margin:0;color:var(--muted);font-size:12px}.eyebrow{display:block;color:var(--muted);font-size:9px;letter-spacing:.12em;font-weight:900}.refresh,.primary{border:0;background:var(--green);color:#fff;border-radius:10px;padding:10px 13px;font-weight:800;font-size:11px}.auth-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:13px 15px;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:14px}.auth-card strong,.auth-card small{display:block}.auth-card strong{font-size:12px;margin-top:3px}.auth-card small{font-size:9px;color:var(--muted);margin-top:3px}.auth-row{display:flex;align-items:center;gap:7px;min-width:min(560px,55%)}.auth-row input{flex:1;border:1px solid var(--line);border-radius:10px;padding:10px;font-size:11px;outline:0}.auth-state{font-size:9px;font-weight:900;color:var(--muted);white-space:nowrap}.auth-state.connected{color:var(--green)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.metric{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;box-shadow:0 8px 25px rgba(20,70,45,.04)}.metric span,.metric small{display:block;color:var(--muted);font-size:10px}.metric strong{display:block;font-size:28px;margin:7px 0 3px}.metric.cash strong{color:var(--green)}.toolbar,.delivery-planner{background:#fff;border:1px solid var(--line);border-radius:15px;padding:10px;margin-bottom:22px}.toolbar{display:flex;justify-content:space-between;gap:10px}.tabs,.planner-tabs{display:flex;gap:5px;flex-wrap:wrap}.tab{border:0;background:#f3f6f4;color:#65726b;border-radius:9px;padding:8px 11px;font-size:10px;font-weight:800}.tab.active{background:var(--green);color:#fff}.cash-filter{display:flex;gap:5px}.delivery-planner{padding:14px 15px}.delivery-planner .section-title{margin-bottom:10px}.planner-note{font-size:9px;color:var(--muted);margin:9px 2px 2px;line-height:1.5}.orders-section,.products-section,.notify-section,.history-section{margin-bottom:35px}.section-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}.section-title h2{margin:3px 0;font-size:20px}.count-pill{font-size:10px;background:var(--mint);color:var(--green);padding:7px 10px;border-radius:20px;font-weight:900}.orders-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.order-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:16px;box-shadow:0 8px 25px rgba(20,70,45,.04)}.order-top,.row,.customer{display:flex;justify-content:space-between;gap:10px;align-items:center}.order-top strong{font-size:13px}.date{font-size:9px;color:var(--muted);margin-top:4px}.status{font-size:9px;font-weight:900;border-radius:20px;padding:6px 8px}.ordered{background:#fff5dc;color:var(--orange)}.processing{background:#eaf2ff;color:#3565a9}.delivered{background:var(--mint);color:var(--green)}.cancelled{background:#fdeeee;color:var(--red)}.customer{padding:12px 0;border-top:1px solid var(--line);margin-top:12px}.customer strong,.customer small{display:block}.customer strong{font-size:12px}.customer small{font-size:10px;color:var(--muted);margin-top:3px}.items{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:9px 0}.item{display:flex;justify-content:space-between;font-size:10px;padding:3px 0}.address{font-size:10px;line-height:1.5;background:#f7faf8;padding:10px;border-radius:10px;margin:10px 0;color:#59675f}.cash{display:flex;justify-content:space-between;align-items:center;font-size:10px;margin:8px 0}.cash span{font-weight:800}.cash.pending{color:var(--orange)}.cash.collected{color:var(--green)}.actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.action{border:1px solid var(--line);background:#fff;color:var(--green);border-radius:9px;padding:9px 6px;font-size:9px;font-weight:900}.action.primary-action{background:var(--green);color:#fff;border-color:var(--green)}.danger-action{color:var(--red)}.product-admin-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.product-admin{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px}.product-admin .emoji{font-size:28px}.product-admin strong{display:block;font-size:11px;margin:6px 0 3px}.product-admin small{font-size:9px;color:var(--muted)}.product-admin .price{font-weight:900;font-size:12px;color:var(--green)}.product-admin-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:9px}.notify-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:17px}.channel-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:13px}.channel-option{display:flex!important;align-items:center;gap:9px;border:1px solid var(--line);border-radius:12px;padding:11px;margin:0!important}.channel-option input{width:auto!important;margin:0!important}.channel-option>span{font-size:22px}.channel-option strong,.channel-option small{display:block}.channel-option strong{font-size:11px}.channel-option small{font-size:9px;color:var(--muted);margin-top:2px}.notify-card label{display:block;font-size:10px;font-weight:800;margin-bottom:11px}.notify-card input,.notify-card textarea{width:100%;margin-top:5px;border:1px solid var(--line);border-radius:10px;padding:11px;outline:0;font:inherit;font-size:11px}.notify-card textarea{resize:vertical}.hint{font-weight:500;color:var(--muted)}.notify-note{font-size:9px;color:var(--muted);line-height:1.5;margin:10px 0 0}.history-list{display:grid;gap:9px}.history-item{background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px 14px;display:grid;grid-template-columns:110px 1fr auto;gap:12px;align-items:center}.history-channel{font-size:9px;font-weight:900;text-transform:uppercase;color:var(--green)}.history-item strong,.history-item small{display:block}.history-item strong{font-size:11px}.history-item small{font-size:9px;color:var(--muted);margin-top:3px;line-height:1.45}.history-result{font-size:9px;font-weight:900;white-space:nowrap}.history-result.good{color:var(--green)}.history-result.partial{color:var(--orange)}.modal{position:fixed;inset:0;background:rgba(10,28,20,.45);display:grid;place-items:center;z-index:50}.modal-card{background:#fff;width:min(430px,calc(100% - 30px));border-radius:20px;padding:20px}.modal-head{display:flex;justify-content:space-between}.modal-head h2{margin:3px 0 15px}.close{border:0;background:#f1f5f2;width:34px;height:34px;border-radius:10px;font-size:20px}.modal-card label{display:block;font-size:10px;font-weight:800;margin-bottom:12px}.modal-card input{width:100%;margin-top:5px;border:1px solid var(--line);border-radius:10px;padding:11px;outline:0}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.full{width:100%;margin-top:4px}.hidden{display:none}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--dark);color:#fff;padding:11px 15px;border-radius:10px;font-size:10px;font-weight:800;opacity:0;pointer-events:none;transition:.2s;z-index:80}.toast.show{opacity:1}@media(max-width:1000px){.orders-grid{grid-template-columns:repeat(2,1fr)}.product-admin-grid{grid-template-columns:repeat(4,1fr)}.history-item{grid-template-columns:90px 1fr auto}}@media(max-width:700px){.admin-top{padding:0 16px}.admin-shell main{padding:18px 14px}.welcome{align-items:start;gap:12px}.welcome h1{font-size:23px}.auth-card{display:block}.auth-row{min-width:0;margin-top:10px}.metrics{grid-template-columns:1fr 1fr}.toolbar{display:block}.cash-filter{margin-top:8px}.orders-grid{grid-template-columns:1fr}.product-admin-grid{grid-template-columns:repeat(2,1fr)}.channel-grid{grid-template-columns:1fr}.history-item{grid-template-columns:1fr;gap:5px}.history-result{white-space:normal}}
