:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#183044;background:#eef4f7;--blue:#0d67a8;--blue-dark:#084c7c;--green:#1d9b52;--red:#cf3f34;--border:#d8e2e8}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#e8f2f7 0,#f7fafb 45%,#edf3f6 100%)}header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:14px 22px;background:linear-gradient(135deg,var(--blue-dark),var(--blue));color:#fff;box-shadow:0 3px 16px #14354a40}header>div{display:flex;align-items:center;gap:12px}header .brand-icon{width:46px;height:46px}header strong,header small{display:block}header strong{font-size:1.25rem}header small{opacity:.85}button{border:0;border-radius:9px;padding:10px 14px;background:var(--green);color:#fff;font-weight:750;cursor:pointer;box-shadow:0 2px 5px #102c3c20}button:hover{filter:brightness(.96)}button.secondary{background:var(--blue)}button.danger{background:var(--red)}header button{background:#fff;color:var(--blue-dark)}.shell{max-width:1250px;margin:auto;padding:22px}.tabs{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}.tabs button{background:#dce9f0;color:#154966}.tabs button.active{background:var(--blue);color:#fff}.panel.hidden,.hidden{display:none!important}.card,.table-wrap,dialog{background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 7px 24px #24495d14}.card{padding:18px;margin-bottom:16px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.section-head h2{margin:0 0 4px}.section-head p{margin:0;color:#667b88}.filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.filters:has(#shopSearch){grid-template-columns:1fr}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #c8d5dc;border-radius:9px;background:#fff;color:inherit;font:inherit}input:focus,select:focus,textarea:focus{outline:3px solid #0d67a820;border-color:var(--blue)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:780px}th,td{text-align:left;padding:13px 14px;border-bottom:1px solid #e2e9ed;vertical-align:middle}th{background:#f4f8fa;color:#31566b;font-size:.86rem;text-transform:uppercase;letter-spacing:.03em}tbody tr:hover{background:#f8fbfc}tbody tr:last-child td{border-bottom:0}.actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.actions button{padding:8px 10px;font-size:.86rem}.entity{display:flex;align-items:center;gap:10px}.entity strong,.entity small{display:block}.entity small{color:#6a7c86;margin-top:3px;max-width:340px}.shop-logo,.product-thumb{width:36px;height:36px;object-fit:contain;border-radius:7px;background:#fff;border:1px solid #e0e7eb;padding:2px;vertical-align:middle;margin-right:6px}.shop-logo.large{width:54px;height:42px}.shop-placeholder{width:44px;height:40px;border-radius:8px;background:#dcebf3;color:var(--blue);display:grid;place-items:center;font-weight:800}.image-button{padding:0;background:none;box-shadow:none}.image-button img{width:45px;height:45px;border-radius:8px;object-fit:cover}.badge{display:inline-block;padding:5px 9px;border-radius:999px;font-size:.82rem;font-weight:750}.badge.open{background:#def3e6;color:#13753d}.badge.done{background:#e6edf1;color:#536b79}.muted{color:#788b96}.colour-dot{display:inline-block;width:14px;height:14px;border-radius:50%;vertical-align:-2px;margin-right:7px;border:1px solid #0002}.empty{text-align:center;color:#6c7f8a}.notice{position:fixed;right:18px;top:82px;z-index:20;padding:12px 16px;border-radius:10px;background:#dff4e7;color:#126c38;box-shadow:0 8px 30px #132f4040}.notice.error,.error{background:#ffe5e2;color:#9d251d;border:1px solid #f0b4ae}.error{padding:14px;border-radius:10px}dialog{width:min(680px,94vw);border:0;padding:0}dialog::backdrop{background:#09263c99}.dialog-form,#photoDialog>div,#photoDialog>img{margin:0}.dialog-form{padding:20px;display:grid;gap:14px}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-head h3{margin:0}.dialog-form label{font-weight:700;color:#315367}.dialog-form label input,.dialog-form label textarea{margin-top:6px;font-weight:400;color:#183044}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check{display:flex;align-items:center;gap:9px}.check input{width:auto;margin:0!important}.assignment-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid #e1e8ec}#photoDialog{padding:18px}#photoDialog img{display:block;max-width:100%;max-height:72vh;margin-top:12px;border-radius:10px}.brand-lockup{display:flex;align-items:center;gap:10px}.brand-lockup img{width:48px;height:48px}.image-preview:empty{display:none}.image-preview img{display:block;max-width:180px;max-height:120px;object-fit:contain;border:1px solid #d7e1ea;border-radius:12px;padding:8px;background:#fff}.dialog-form input[type=file]{padding:9px;background:#f7fafc}.dialog-form label small{display:block;color:#667785;font-weight:400;margin-top:5px}
button:disabled{opacity:.6;cursor:not-allowed;filter:none}.dialog-form>button[type=submit]{min-height:44px;margin-top:4px}.filters input,.filters select{min-height:44px}dialog::backdrop{backdrop-filter:blur(2px)}
.location-box{border:1px solid var(--border);border-radius:12px;padding:14px;display:grid;gap:12px;background:#f8fbfc}.location-box legend{padding:0 7px;font-weight:800;color:#315367}.location-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.location-actions small,.location-summary{display:block;color:#667b88;margin-top:4px}.location-actions button{white-space:nowrap}

.assignment-card{border:1px solid var(--border);border-radius:12px;padding:14px;margin-top:12px;background:#f9fbfc}.assignment-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.assignment-image{width:52px;height:52px}.assignment-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.assignment-meta span{background:#eaf2f6;border-radius:999px;padding:5px 9px;font-size:.82rem;color:#31566b}.assignment-card p{margin:10px 0 0;color:#607682}.badge.preferred{background:#fff1c7;color:#7b5a00;margin-left:6px}.location-section{border-top:1px solid #e2e9ed;padding-top:12px}
@media(max-width:760px){.shell{padding:14px}.filters,.two-col{grid-template-columns:1fr}.section-head{align-items:flex-start}.section-head button{white-space:nowrap}header{padding:11px 14px}header small{display:none}.actions{min-width:210px}}