/* Universal Auto Works — Workshop App */
:root {
  --navy: #0c2d63; --navy-2: #1a4a96; --orange: #f26b1d;
  --bg: #f3f5f9; --card: #ffffff; --line: #dfe4ec; --text: #16202e; --muted: #667085;
  --good: #16a34a; --good-bg: #e8f7ee; --warn: #d97706; --warn-bg: #fff4e0; --bad: #dc2626; --bad-bg: #fdecec;
  --info: #2563eb; --info-bg: #e9f0ff;
  --mech: #2563eb; --ac: #0891b2; --dent: #7c3aed; --paint: #db2777;
  --r: 14px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif; background: var(--bg); color: var(--text); }
body.noscroll { overflow: hidden; }
a { color: var(--navy-2); }
img { max-width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%; padding: 12px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; min-height: 48px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(26, 74, 150, .15); }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--navy); }
input[type=range] { padding: 0; border: 0; min-height: 32px; accent-color: var(--orange); }
.ic { flex: none; vertical-align: middle; }
.muted { color: var(--muted); } .sm { font-size: 14px; } .bad { color: var(--bad); } .good { color: var(--good); }
.grow { flex: 1; min-width: 0; } .mt { margin-top: 14px; } .gap { gap: 8px; } .wrap { flex-wrap: wrap; }
.row { display: flex; align-items: center; gap: 8px; } .row.sm { margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } }

.boot { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.boot img { border-radius: 18px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 8px; min-height: 58px; }
.top h1 { font-size: 18px; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .logo { width: 34px; height: 34px; border-radius: 9px; }
.top-right { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; border: 0; background: transparent;
  color: inherit; border-radius: 12px; cursor: pointer; text-decoration: none; position: relative; }
.icon-btn:active { background: rgba(0, 0, 0, .08); }
.icon-btn.round { border-radius: 50%; background: var(--info-bg); color: var(--navy-2); }
.icon-btn.round.wa { background: #e7f8ee; color: #128c4b; }
.top .icon-btn:active { background: rgba(255, 255, 255, .15); }
.avatar { background: var(--orange) !important; color: #fff; font-weight: 700; border-radius: 50% !important; width: 38px; min-width: 38px; height: 38px; }
.bell .dot { position: absolute; top: 3px; right: 2px; background: var(--orange); color: #fff; font-size: 11px; min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: rgba(255, 255, 255, .15); }
.timer.t-warn { background: var(--warn); } .timer.t-bad { background: var(--bad); }
.pill { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; padding: 3px 8px; border-radius: 20px; }
.pill-info { background: rgba(255, 255, 255, .18); } .pill-warn { background: var(--warn); }
.menu-backdrop { position: fixed; inset: 0; z-index: 50; }
.menu { position: absolute; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 60px); background: #fff; color: var(--text); border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2); padding: 14px; width: 270px; display: flex; flex-direction: column; gap: 10px; }
.menu-who b { display: block; } .menu-who span { color: var(--muted); font-size: 14px; }
.menu-link { display: flex; align-items: center; gap: 10px; padding: 8px 4px; text-decoration: none; color: var(--text); }
.seg { display: flex; background: #eef1f6; border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.seg.sm button { padding: 5px 10px; }

/* bottom nav */
.app.has-nav { padding-bottom: calc(68px + var(--safe-b)); }
nav.bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; background: #fff; border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b); }
nav.bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; text-decoration: none;
  color: var(--muted); font-size: 11.5px; font-weight: 600; }
nav.bottom a.on { color: var(--navy); } nav.bottom a.on .ic { color: var(--orange); }

.page { padding: 14px 14px 24px; max-width: 760px; margin: 0 auto; }
h2 { font-size: 18px; margin: 0; } h3.sub { font-size: 15px; margin: 18px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.live-h { color: var(--good) !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 16px; border-radius: 12px;
  border: 0; cursor: pointer; font-weight: 650; text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--navy); color: #fff; } .btn-primary:active { background: var(--navy-2); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-success { background: var(--good); color: #fff; } .btn-warn { background: var(--warn); color: #fff; } .btn-danger { background: var(--bad); color: #fff; }
.btn.block { display: flex; width: 100%; } .btn.lg { min-height: 56px; font-size: 18px; } .btn.sm, .btn-sm { min-height: 38px; padding: 0 12px; font-size: 14px; }
.btn.grow { flex: 1; }
.link { background: none; border: 0; color: var(--navy-2); cursor: pointer; padding: 6px 0; font-weight: 600; }
.link.danger, .danger { color: var(--bad); }

/* fields */
.field { display: block; margin-bottom: 12px; }
.field .lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.req { color: var(--bad); font-style: normal; margin-left: 2px; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 600; }
.reg-input { font-size: 26px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: center; font-family: ui-monospace, monospace;
  border: 2.5px solid var(--navy); background: #fffbea; }
.reg-input.sm { font-size: 20px; }
.searchbar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 12px; }
.searchbar input { border: 0; box-shadow: none !important; padding-left: 0; }

/* chips & tags */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 22px; padding: 8px 14px; cursor: pointer; font-weight: 600; min-height: 42px; }
.chip.sm { min-height: 34px; padding: 5px 11px; font-size: 14px; font-weight: 500; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.team-mechanical.on { background: var(--mech); border-color: var(--mech); } .chip.team-ac_electrical.on { background: var(--ac); border-color: var(--ac); }
.chip.team-denting.on { background: var(--dent); border-color: var(--dent); } .chip.team-painting.on { background: var(--paint); border-color: var(--paint); }
.chip.p-urgent.on { background: var(--bad); border-color: var(--bad); } .chip.p-today.on { background: var(--warn); border-color: var(--warn); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #eef1f6; color: var(--muted); white-space: nowrap; }
.tag.team-mechanical, .team-mechanical > .tag, .team-mechanical .work-h .tag { background: #e6efff; color: var(--mech); }
.tag.team-ac_electrical, .team-ac_electrical > .tag, .team-ac_electrical .work-h .tag { background: #e0f6fa; color: var(--ac); }
.tag.team-denting, .team-denting > .tag, .team-denting .work-h .tag { background: #f1eaff; color: var(--dent); }
.tag.team-painting, .team-painting > .tag, .team-painting .work-h .tag { background: #fde8f2; color: var(--paint); }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: #eef1f6; color: var(--muted); white-space: nowrap; }
.b-in_progress, .b-accepted, .b-ordered, .b-in_transit { background: var(--info-bg); color: var(--info); }
.b-work_done, .b-done, .b-received, .b-issued, .b-delivered { background: var(--good-bg); color: var(--good); }
.b-paused, .b-warn, .b-requested { background: var(--warn-bg); color: var(--warn); }
.b-cancelled { background: #eee; color: #888; } .b-extra, .b-repeat { background: var(--bad-bg); color: var(--bad); }
.p-urgent.badge { background: var(--bad); color: #fff; } .p-today.badge { background: var(--warn-bg); color: var(--warn); }

/* cards & lists */
.card { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; display: block; color: inherit; text-decoration: none; }
.card.tap:active { transform: scale(.995); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.loading { display: flex; justify-content: center; padding: 40px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.sec { margin: 18px 0; } .sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.list { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left;
  background: #fff; text-decoration: none; color: inherit; cursor: pointer; }
.li:last-child { border-bottom: 0; } .li.off { opacity: .5; }
.li.notif.unseen { background: #fff8f1; font-weight: 600; }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; } .kv span { color: var(--muted); } .kv b { text-align: right; }
.alert { border-radius: 12px; padding: 10px 12px; margin: 8px 0 12px; font-size: 15px; }
.alert.warn { background: var(--warn-bg); color: #8a4b00; } .alert.info { background: var(--info-bg); color: #1e3a8a; }
.alert.bad { background: var(--bad-bg); color: var(--bad); font-weight: 600; } .alert.sm { font-size: 14px; padding: 8px 10px; }
.alert a { font-weight: 700; margin-left: 6px; } .hist { font-size: 14px; margin-top: 4px; }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0; scrollbar-width: none; }
.tabs button { border: 0; background: #e6eaf1; padding: 9px 14px; border-radius: 22px; font-weight: 650; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--navy); color: #fff; }
.cnt { background: rgba(0, 0, 0, .12); border-radius: 10px; padding: 0 7px; font-size: 12px; }
.tabs button.on .cnt { background: var(--orange); }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 20, 40, .5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  padding-bottom: var(--safe-b); animation: up .18s ease-out; }
@media (min-width: 600px) { .modal-bg { align-items: center; } .modal { border-radius: 18px; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.modal-h { display: flex; align-items: center; padding: 12px 8px 4px 16px; } .modal-h h3 { flex: 1; margin: 0; font-size: 18px; }
.modal-b { padding: 8px 16px 12px; overflow-y: auto; }
.modal-f { display: flex; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid var(--line); align-items: center; justify-content: flex-end; }
.reason-list { display: flex; flex-direction: column; gap: 8px; }
.preview { width: 100%; border-radius: 12px; max-height: 40vh; object-fit: contain; background: #000; }

.toasts { position: fixed; left: 0; right: 0; bottom: calc(80px + var(--safe-b)); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; padding: 0 12px; }
.toast { background: #1f2937; color: #fff; padding: 11px 16px; border-radius: 12px; max-width: 520px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); font-size: 15px; animation: up .2s; }
.toast.t-err { background: var(--bad); } .toast.t-info { background: var(--navy); }

/* login */
.login { max-width: 520px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 20px) 16px 30px; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.login-brand img { width: 52px; height: 52px; border-radius: 14px; } .login-brand > div:nth-child(2) { flex: 1; }
.login-brand b { display: block; font-size: 18px; } .login-brand span { color: var(--muted); font-size: 14px; }
.login h2 { margin-bottom: 12px; } .login .search { margin-bottom: 12px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.person { background: #fff; border: 0; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 8px; display: flex; flex-direction: column;
  align-items: center; gap: 4px; cursor: pointer; text-align: center; }
.person .av { width: 48px; height: 48px; font-size: 20px; } .person small { color: var(--muted); font-size: 12px; }
.alt-login { margin-top: 20px; } .alt-login summary { color: var(--muted); cursor: pointer; padding: 8px 0; }
.alt-login input { margin: 8px 0; }
.pin-box { text-align: center; } .pin-box h2 { font-size: 24px; margin-top: 10px; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 18px 0; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--navy); }
.pin-dots i.on { background: var(--navy); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 0 auto 18px; }
.pinpad button { height: 64px; font-size: 26px; font-weight: 600; border: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow); cursor: pointer; }
.pinpad button:active { background: #e6eaf1; }

/* check-in */
.stepper { display: flex; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 10; }
.stepper button { flex: 1; border: 0; background: none; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 12px; cursor: pointer; }
.stepper b { width: 26px; height: 26px; border-radius: 50%; background: #e6eaf1; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.stepper .on { color: var(--navy); font-weight: 700; } .stepper .on b { background: var(--navy); color: #fff; }
.stepper .done b { background: var(--good); color: #fff; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shot { position: relative; aspect-ratio: 4 / 3; border: 2px dashed #b8c2d3; border-radius: 12px; background: #fff; display: flex; align-items: center;
  justify-content: center; color: var(--navy); cursor: pointer; overflow: hidden; padding: 0; }
.shot.opt { border-color: #dde2ea; color: #9aa4b2; }
.shot.has { border: 2px solid var(--good); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-l { position: absolute; left: 0; right: 0; bottom: 0; font-size: 12px; font-weight: 700; padding: 3px 4px; background: rgba(255, 255, 255, .9); color: var(--text); }
.shot.has .shot-l { background: var(--good); color: #fff; }
.shot-busy { position: absolute; inset: 0; background: rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: center; }
.fuel-q { display: flex; gap: 4px; margin-top: 4px; }
.fuel-q button { flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 0; font-weight: 700; cursor: pointer; }
.fuel-q button.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.extra-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.extra-row img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.items { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; }
.item { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 8px 10px; box-shadow: var(--shadow); border-left: 4px solid var(--line); }
.item.team-mechanical { border-left-color: var(--mech); } .item.team-ac_electrical { border-left-color: var(--ac); }
.item.team-denting { border-left-color: var(--dent); } .item.team-painting { border-left-color: var(--paint); }
.actionbar { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 10px 14px calc(10px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); z-index: 15; }
.app.has-nav .actionbar { bottom: calc(62px + var(--safe-b)); padding-bottom: 10px; }

/* jobs */
.reg { font-family: ui-monospace, monospace; font-weight: 800; letter-spacing: .04em; background: #fffbea; border: 1.5px solid #e8d77a; border-radius: 6px; padding: 1px 7px; }
.reg.lg { font-size: 22px; }
.jobcard .muted { font-size: 14px; margin-top: 3px; }
.progress { height: 5px; background: #eef1f6; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--good); }
.jobhead > div { margin-bottom: 4px; }
.contact { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact > div { flex: 1; }
.facts { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--muted); }
.facts b { color: var(--text); }
.remarks { background: #f7f8fb; border-left: 3px solid var(--orange); padding: 8px 10px; margin-top: 10px; font-style: italic; border-radius: 0 8px 8px 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 10px; padding: 9px 0 9px 14px; border-left: 2px solid var(--line); position: relative; font-size: 14.5px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--navy-2); }
.timeline time { color: var(--muted); min-width: 108px; font-size: 13px; }
.ackline { font-size: 12.5px; color: var(--good); margin: -4px 4px 12px; }

/* work items (technician) */
.work { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px; border-left: 5px solid var(--line); }
.work.team-mechanical { border-left-color: var(--mech); } .work.team-ac_electrical { border-left-color: var(--ac); }
.work.team-denting { border-left-color: var(--dent); } .work.team-painting { border-left-color: var(--paint); }
.work.running { box-shadow: 0 0 0 2px var(--good), var(--shadow); }
.work-car { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; margin-bottom: 6px; flex-wrap: wrap; }
.work-car b { font-family: ui-monospace, monospace; font-size: 17px; background: #fffbea; border: 1.5px solid #e8d77a; border-radius: 6px; padding: 0 6px; }
.work-car span { flex: 1; color: var(--muted); font-size: 14px; }
.work-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.work-desc { font-size: 17px; font-weight: 650; margin: 6px 0 2px; }
.work-meta { font-size: 13px; color: var(--muted); }
.work-who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.work-who span { font-size: 12.5px; background: #eef1f6; border-radius: 6px; padding: 2px 7px; }
.work-who span.live { background: var(--good-bg); color: var(--good); font-weight: 700; }
.dur { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; } .dur.live { color: var(--good); }
.ack { display: block; width: 100%; margin-top: 8px; background: var(--warn-bg); color: #8a4b00; border: 1.5px dashed var(--warn); border-radius: 10px; padding: 10px; font-weight: 700; cursor: pointer; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { background: #ffe7bd; } }
.work-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.work-actions .btn { flex: 1 1 auto; }
.today { background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); }

/* parts */
.part { background: #fff; border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.part.late { box-shadow: 0 0 0 2px var(--bad), var(--shadow); }
.late-msg { color: var(--bad); font-weight: 700; font-size: 14px; margin-top: 6px; }
.col-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.part-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; cursor: pointer; flex: none; }
.thumb-l { display: flex; flex-direction: column; align-items: center; font-size: 11px; }

/* stock */
.stock { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); margin-bottom: 8px; }
.stock.low { border-left: 5px solid var(--bad); }
.qty { text-align: right; } .qty b { font-size: 20px; display: block; } .qty small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.stock.low .qty b { color: var(--bad); }
.stock-actions { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.vendor { display: flex; align-items: center; gap: 8px; }

/* runners */
.task { background: #fff; border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 10px; border-left: 5px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.task.p-urgent { border-left-color: var(--bad); } .task.p-today { border-left-color: var(--warn); }
.task.late { box-shadow: 0 0 0 2px var(--bad), var(--shadow); }
.task-title { font-size: 17px; font-weight: 650; }
.task-block { background: #f7f8fb; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.task-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; } .task-actions .btn { flex: 1; }

/* accounts */
.tally.late { box-shadow: 0 0 0 2px var(--warn), var(--shadow); }
.copy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 10px 0; }
.copy { text-align: left; border: 1px solid var(--line); background: #fafbfd; border-radius: 8px; padding: 6px 8px; cursor: copy; }
.copy span { display: block; font-size: 11.5px; color: var(--muted); } .copy b { font-size: 14px; word-break: break-word; }
.work-list { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }

/* dashboard */
.hello { margin: 0 0 12px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.stat b { font-size: 26px; line-height: 1.1; } .stat span { font-size: 13px; color: var(--muted); }
.stat.good b { color: var(--good); } .stat.warn { background: var(--warn-bg); } .stat.warn b { color: var(--warn); }
.stat.bad { background: var(--bad-bg); } .stat.bad b { color: var(--bad); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.flag { border-left: 5px solid var(--bad); }
.flag p { margin: 6px 0; }

/* photos */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 560px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
.pthumb { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #dde2ea; cursor: pointer; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pthumb span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; background: rgba(0, 0, 0, .55); color: #fff; padding: 2px 4px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .92); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px; }
.lightbox img { max-height: 72vh; object-fit: contain; }
.lb-info { color: #fff; text-align: center; margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.lb-nav { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 8px; }
.lb-nav .btn { min-width: 60px; font-size: 22px; }
