/* Urdhër Porosi – styles. Colors: deep blue, light blue, red. */

@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --navy: #0B1C8C;
  --navy-2: #1A3BC4;
  --navy-dark: #08126A;
  --sky: #4BA8E6;
  --sky-pale: #E6F2FC;
  --red: #DC2F34;
  --green: #12A150;
  --wa: #1DAA61;
  --orange: #D97706;
  --bg: #F2F5FB;
  --card: #FFFFFF;
  --text: #141A33;
  --muted: #66708A;
  --line: #E2E7F1;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 28, 140, .06), 0 6px 20px rgba(11, 28, 140, .07);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  overscroll-behavior-y: contain;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; }
.grow { flex: 1; }
.hidden { display: none !important; }

#app { max-width: 560px; margin: 0 auto; min-height: 100%; position: relative; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 14px;
  font-weight: 700; font-size: 16px; letter-spacing: .2px;
  transition: transform .08s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(11, 28, 140, .28); }
.btn.red { background: var(--red); color: #fff; }
.btn.wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(29, 170, 97, .3); }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn.light { background: rgba(255, 255, 255, .16); color: #fff; }
.btn.danger { background: var(--red); color: #fff; }
.btn.block { width: 100%; }
.btn svg { width: 22px; height: 22px; flex: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: inherit;
}
.icon-btn:active { background: rgba(0, 0, 0, .08); }
.icon-btn svg { width: 24px; height: 24px; }
.link { color: var(--navy-2); font-weight: 600; font-size: 14px; }

/* ---------- top bars ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 6px;
  padding: calc(12px + var(--safe-t)) 8px 10px;
  background: var(--navy); color: #fff;
}
.topbar .title { flex: 1; min-width: 0; }
.topbar .title h1 { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .title p { font-size: 12.5px; opacity: .75; }
.home-top { padding: calc(18px + var(--safe-t)) 16px 0; background: transparent; position: relative; z-index: 2; color: #fff; }
.home-head {
  background: linear-gradient(150deg, var(--navy-2) 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: #fff; padding-bottom: 64px; border-radius: 0 0 28px 28px; position: relative; overflow: hidden;
}
.home-head::before, .home-head::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.home-head::before { width: 340px; height: 170px; right: -120px; top: -40px; background: var(--sky); opacity: .18; transform: rotate(-18deg); }
.home-head::after { width: 300px; height: 140px; right: -110px; top: 10px; background: var(--red); opacity: .18; transform: rotate(14deg); }
.home-top .row { justify-content: space-between; }
.brand-logo {
  height: 58px; max-width: calc(100% - 64px); object-fit: contain; background: #fff;
  border-radius: 16px; padding: 7px 14px; box-shadow: 0 6px 18px rgba(4, 10, 60, .25);
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.hello { padding: 22px 20px 0; position: relative; z-index: 1; }
.hello p { opacity: .8; font-size: 14px; }
.hello h2 { font-size: 25px; font-weight: 700; margin-top: 2px; }
.offline-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  background: rgba(255, 255, 255, .15); padding: 4px 10px; border-radius: 99px; font-size: 12.5px;
}
.offline-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #FFB020; }

/* ---------- pages ---------- */
.page { padding: 16px 16px calc(120px + var(--safe-b)); }
.home-body { margin-top: -46px; position: relative; z-index: 2; padding-top: 0; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 4px 10px; }
.section-title h3 { font-size: 16px; font-weight: 700; }
.section-title span { font-size: 13px; color: var(--muted); }

.new-order {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); text-align: left;
  transition: transform .08s;
}
.new-order:active { transform: scale(.98); }
.new-order .plus {
  width: 54px; height: 54px; border-radius: 16px; flex: none; display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: 0 6px 14px rgba(220, 47, 52, .35);
}
.new-order .plus svg { width: 28px; height: 28px; }
.new-order b { display: block; font-size: 18px; color: var(--navy); }
.new-order small { color: var(--muted); font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stats.two { grid-template-columns: 1fr 1fr; }
.stat { background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 21px; color: var(--navy); line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); }

.order-card {
  width: 100%; display: block; text-align: left; background: #fff; border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 10px; border-left: 5px solid var(--sky);
  transition: transform .08s;
}
.order-card:active { transform: scale(.985); }
.order-card.done { border-left-color: var(--green); }
.order-card.changed { border-left-color: var(--orange); }
.order-card.draft, .order-card.empty { border-left-color: #B8C2D8; }
.oc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.oc-num { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .3px; }
.oc-title { font-weight: 700; font-size: 16px; margin-top: 4px; }
.oc-sub { color: var(--muted); font-size: 13.5px; }
.oc-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--navy); font-weight: 600; }
.oc-foot .t { color: var(--muted); font-weight: 500; }

.chip { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.chip.done { background: #E3F6EB; color: var(--green); }
.chip.changed { background: #FFF1DD; color: var(--orange); }
.chip.draft, .chip.empty { background: #EEF1F7; color: var(--muted); }

.empty-state { text-align: center; padding: 30px 20px; color: var(--muted); }
.empty-state svg { width: 64px; height: 64px; color: #C3CCE0; margin-bottom: 8px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  font-size: 14px; margin-top: 14px; background: #FFF6E6; color: #8A5300;
}
.notice.info { background: var(--sky-pale); color: var(--navy); }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* ---------- forms ---------- */
.card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.field { display: block; margin-bottom: 16px; position: relative; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; margin: 0 2px 6px; }
.field > span em { font-style: normal; color: var(--red); }
.field > span i { font-style: normal; font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #FAFBFE; font-size: 16px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--navy-2); background: #fff; box-shadow: 0 0 0 4px rgba(26, 59, 196, .12); }
.input.bad { border-color: var(--red); }
textarea.input { min-height: 90px; resize: vertical; }
.input.upper { text-transform: uppercase; letter-spacing: 1px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 2px 0; }
.hint.bad { color: var(--red); }
.suggest { margin-top: 6px; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); background: #fff; }
.suggest button { display: flex; width: 100%; justify-content: space-between; padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.suggest button:last-child { border-bottom: 0; }
.suggest button:active { background: var(--sky-pale); }
.suggest b { font-weight: 600; }
.suggest span { color: var(--muted); font-size: 13px; letter-spacing: .5px; }

/* ---------- bottom action bar ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + var(--safe-b)); background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  max-width: 560px; margin: 0 auto;
}
.bottom-bar .row { gap: 10px; }
.cart-bar { display: flex; align-items: center; gap: 12px; }
.cart-bar .sum { flex: 1; min-width: 0; }
.cart-bar .sum b { display: block; font-size: 16px; color: var(--navy); }
.cart-bar .sum span { font-size: 13px; color: var(--muted); }

/* ---------- product picker ---------- */
.picker-head { position: sticky; top: 0; z-index: 20; background: var(--navy); padding-bottom: 10px; }
.search { display: flex; gap: 8px; padding: 0 12px; }
.search-box { flex: 1; position: relative; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search-box input {
  width: 100%; height: 48px; border-radius: 14px; border: 0; padding: 0 42px 0 42px; font-size: 16px; outline: none; background: #fff;
}
.search-box .clear { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.fchip {
  flex: none; padding: 8px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 600;
  background: rgba(255, 255, 255, .14); color: #fff; white-space: nowrap;
}
.fchip.on { background: #fff; color: var(--navy); }
.fchip .n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: 12px; }

.plist { padding: 10px 12px calc(110px + var(--safe-b)); }
.prow {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px;
  padding: 10px 10px 10px 14px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(11, 28, 140, .05);
  border: 2px solid transparent; transition: border-color .15s;
}
.prow.on { border-color: var(--navy-2); background: #F7F9FF; }
.pinfo { flex: 1; min-width: 0; padding: 4px 0; text-align: left; }
.pname { font-weight: 600; font-size: 15px; line-height: 1.3; }
.pmeta { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); }
.code { font-size: 12px; color: var(--muted); letter-spacing: .4px; }
.add-btn { width: 46px; height: 46px; border-radius: 14px; background: var(--sky-pale); color: var(--navy); display: grid; place-items: center; flex: none; }
.add-btn svg { width: 24px; height: 24px; }
.stepper { display: flex; align-items: center; background: var(--navy); border-radius: 14px; color: #fff; flex: none; }
.stepper button { width: 40px; height: 46px; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 700; }
.stepper .q { min-width: 34px; text-align: center; font-weight: 700; font-size: 16px; }
.no-results { text-align: center; color: var(--muted); padding: 40px 20px; }

/* ---------- review ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.detail-grid .full { grid-column: 1 / -1; }
.dl { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.dv { font-weight: 600; font-size: 15px; word-break: break-word; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-head h3 { font-size: 15px; }
.group-title { display: flex; align-items: center; gap: 8px; margin: 18px 4px 8px; font-weight: 700; font-size: 14px; }
.group-title .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.group-title span { color: var(--muted); font-weight: 500; }
.irow { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 10px 8px 10px 14px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(11, 28, 140, .05); }
.irow .pinfo { padding: 0; }
.trash { width: 40px; height: 46px; display: grid; place-items: center; color: #A0A8BD; flex: none; }
.trash svg { width: 21px; height: 21px; }
.totals { display: flex; gap: 10px; margin-top: 16px; }
.totals div { flex: 1; background: var(--navy); color: #fff; border-radius: 16px; padding: 12px 14px; }
.totals b { display: block; font-size: 22px; line-height: 1.1; }
.totals span { font-size: 12px; opacity: .8; }
.add-more { width: 100%; margin-top: 6px; min-height: 52px; border-radius: 16px; border: 2px dashed #C3CCE0; color: var(--navy); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.add-more svg { width: 22px; height: 22px; }

/* ---------- sheet / dialogs ---------- */
#sheet { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
#sheet.open { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 50, .45); animation: fade .2s; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto;
  background: #fff; border-radius: 26px 26px 0 0; padding: 10px 18px calc(18px + var(--safe-b));
  animation: up .25s cubic-bezier(.2, .9, .3, 1); max-height: 92vh; overflow-y: auto;
}
.sheet-grip { width: 42px; height: 5px; border-radius: 9px; background: #D5DBE8; margin: 0 auto 14px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.dialog h3 { font-size: 19px; margin-bottom: 6px; }
.dialog p { margin-bottom: 18px; }

.qs-name { font-size: 19px; font-weight: 700; line-height: 1.3; }
.qs-meta { margin-top: 4px; }
.qs-row { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; }
.qs-row button { width: 62px; height: 62px; border-radius: 18px; background: var(--sky-pale); color: var(--navy); font-size: 30px; font-weight: 700; flex: none; }
.qs-row input { flex: 1; min-width: 0; height: 62px; border-radius: 18px; border: 2px solid var(--line); text-align: center; font-size: 30px; font-weight: 700; color: var(--navy); outline: none; }
.qs-row input:focus { border-color: var(--navy-2); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.quick button { height: 44px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; color: var(--navy); }
.quick button:active { background: var(--sky-pale); }

.menu-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 6px; border-bottom: 1px solid var(--line); font-weight: 600; text-align: left; }
.menu-list button:last-child { border-bottom: 0; }
.menu-list button svg { width: 22px; height: 22px; color: var(--navy); }
.menu-list button.red, .menu-list button.red svg { color: var(--red); }
.menu-who { display: flex; align-items: center; gap: 12px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }

.done-sheet { text-align: center; padding-top: 6px; }
.done-check { width: 72px; height: 72px; border-radius: 50%; background: #E3F6EB; color: var(--green); display: grid; place-items: center; margin: 0 auto 12px; }
.done-check svg { width: 40px; height: 40px; }
.done-sheet h3 { font-size: 20px; }
.done-sheet p { margin: 4px 0 20px; }
.done-sheet .btn { width: 100%; margin-bottom: 10px; }

/* ---------- login ---------- */
.login {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  padding: calc(40px + var(--safe-t)) 24px calc(24px + var(--safe-b));
  background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.login::before { content: ''; position: absolute; width: 520px; height: 240px; border-radius: 50%; background: var(--sky); opacity: .14; top: -90px; left: -160px; transform: rotate(-16deg); }
.login::after { content: ''; position: absolute; width: 480px; height: 220px; border-radius: 50%; background: var(--red); opacity: .14; bottom: -80px; right: -170px; transform: rotate(-12deg); }
.login > * { position: relative; z-index: 1; }
.login-icon { width: 84px; height: 84px; border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.login h1 { font-size: 26px; margin-top: 16px; }
.login .sub { opacity: .8; margin-top: 4px; text-align: center; }
.pin-dots { display: flex; gap: 14px; margin: 30px 0 10px; }
.pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); transition: all .15s; }
.pin-dots span.on { background: #fff; border-color: #fff; transform: scale(1.1); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.pin-msg { min-height: 44px; text-align: center; font-size: 14px; color: #FFD2D3; max-width: 300px; }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 22px; margin-top: 6px; }
.keypad button { width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; font-weight: 500; }
.keypad button:active { background: rgba(255, 255, 255, .3); }
.keypad button.fn { background: transparent; font-size: 15px; }
.keypad button.fn svg { width: 28px; height: 28px; }
.install-box { margin-top: auto; padding-top: 24px; text-align: center; width: 100%; max-width: 340px; }
.install-box .btn { width: 100%; background: #fff; color: var(--navy); }
.install-box p { font-size: 12.5px; opacity: .75; margin-top: 8px; }

/* ---------- loading / toast / banners ---------- */
.loading { position: fixed; inset: 0; z-index: 80; background: rgba(242, 245, 251, .92); display: grid; place-items: center; text-align: center; }
.loading p { margin-top: 14px; color: var(--navy); font-weight: 600; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #D5DEF5; border-top-color: var(--navy); animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translate(-50%, 20px);
  background: #141A33; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 90; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--red); }
.toast.good { background: var(--green); }

.update-banner {
  position: fixed; left: 12px; right: 12px; top: calc(10px + var(--safe-t)); z-index: 70; max-width: 536px; margin: 0 auto;
  background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(8, 14, 50, .25);
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; animation: down .3s;
}
.update-banner .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--sky-pale); color: var(--navy); display: grid; place-items: center; flex: none; }
.update-banner .ico svg { width: 22px; height: 22px; }
.update-banner p { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.3; }
.update-banner .btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
@keyframes down { from { transform: translateY(-120%); } }


/* ---------- bottom tab bar (managers) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + var(--safe-b));
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 14px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--navy); background: var(--sky-pale); }

/* ---------- period chips ---------- */
.period-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 6px; scrollbar-width: none; background: var(--bg); }
.period-chips::-webkit-scrollbar { display: none; }
.center { text-align: center; }
.vbars.dense { gap: 2px; }
.vbars.dense .vb-bar { width: 80%; border-radius: 4px 4px 2px 2px; }
.vbars.dense .vb-val { font-size: 10px; }

/* ---------- day chips ---------- */
.day-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 6px; scrollbar-width: none; position: sticky; top: calc(66px + var(--safe-t)); z-index: 15; background: var(--bg); }
.day-chips::-webkit-scrollbar { display: none; }
.dchip { flex: none; padding: 8px 14px; border-radius: 99px; background: #fff; font-weight: 600; font-size: 13.5px; color: var(--navy); box-shadow: 0 1px 2px rgba(11, 28, 140, .08); }
.dchip.on { background: var(--navy); color: #fff; }

/* ---------- stats ---------- */
.hero-stat {
  background: linear-gradient(150deg, var(--navy-2), var(--navy) 50%, var(--navy-dark)); color: #fff;
  border-radius: 22px; padding: 18px 20px; position: relative; overflow: hidden;
}
.hero-stat::before, .hero-stat::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero-stat::before { width: 240px; height: 110px; background: var(--sky); opacity: .22; right: -80px; top: -40px; transform: rotate(-18deg); }
.hero-stat::after { width: 220px; height: 100px; background: var(--red); opacity: .2; right: -90px; top: 0; transform: rotate(14deg); }
.hero-stat > * { position: relative; z-index: 1; }
.hero-stat span { font-size: 13px; opacity: .8; }
.hero-stat b { display: block; font-size: 44px; line-height: 1.1; margin: 2px 0; }
.hero-stat small { font-size: 13.5px; opacity: .85; }
.chart-card { margin-top: 14px; }
.chart-empty { color: var(--muted); text-align: center; padding: 30px 0; font-size: 14px; }

.vbars { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; align-items: end; height: 190px; }
.vb { display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.vb-val { font-size: 11px; font-weight: 700; color: var(--navy); height: 16px; }
.vb-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.vb-bar { width: 72%; max-width: 30px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--sky), var(--navy-2)); }
.vb.now .vb-bar { background: linear-gradient(180deg, #F0646A, var(--red)); }
.vb-lab { font-size: 10.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; }

.hbars { display: flex; flex-direction: column; gap: 12px; }
.hb-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.hb-name { font-weight: 600; }
.hb-top b { color: var(--navy); }
.hb-track { height: 12px; border-radius: 99px; background: #EEF2FA; overflow: hidden; }
.hb-bar { height: 100%; border-radius: 99px; background: var(--navy); }
.hb-bar.c1 { background: var(--red); } .hb-bar.c2 { background: var(--sky); } .hb-bar.c3 { background: #0E8A6A; } .hb-bar.c4 { background: #8A3FC0; } .hb-bar.c5 { background: #C0661A; }
.hb-sub { font-size: 12px; color: var(--muted); }

/* ---------- review: same order on phones (details, products, add, totals) ---------- */
.review-grid { display: flex; flex-direction: column; }
.review-side, .review-items { display: contents; }
.review-grid .r-card { order: 1; }
.review-grid #items { order: 2; }
.review-grid .add-more { order: 3; }
.review-grid .totals { order: 4; }

/* =====================================================================
   WEBSITE LAYOUT – managers' app opened in a browser on a computer.
   (Installed app and phones keep the app layout above.)
   ===================================================================== */
body.web { background: #E9EEF8; }
body.web #app { max-width: 1180px; padding: 0 24px; }
body.web .home-head { border-radius: 0 0 32px 32px; padding-bottom: 80px; }
body.web .home-top { padding: 22px 32px 0; }
body.web .hello { padding: 26px 32px 0; }
body.web .hello h2 { font-size: 32px; }
body.web .page { padding: 24px 8px calc(110px + var(--safe-b)); }
body.web .home-body { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; margin-top: -56px; padding-left: 24px; padding-right: 24px; }
body.web .home-left { position: sticky; top: 20px; }
body.web .home-right { background: transparent; padding-top: 50px; }
body.web .home-right .section-title:first-child { margin-top: 6px; }
body.web .home-right { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-content: start; }
body.web .home-right .section-title, body.web .home-right .empty-state { grid-column: 1 / -1; }
body.web .order-card { margin-bottom: 14px; }
body.web .topbar { border-radius: 0 0 22px 22px; padding: 14px 18px; }
body.web .topbar .title h1 { font-size: 20px; }

/* product picker: cards in columns */
body.web .picker-head { border-radius: 0 0 22px 22px; padding-bottom: 14px; }
body.web .search, body.web .chips { padding-left: 18px; padding-right: 18px; }
body.web .plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; padding: 18px 4px calc(110px + var(--safe-b)); align-content: start; }
body.web .plist .prow { margin: 0; }
body.web .plist .no-results { grid-column: 1 / -1; }

/* order details form centred */
body.web main.page > .card:only-child { max-width: 680px; margin: 0 auto; }

/* review: details left, products right */
body.web .review-grid { display: grid; grid-template-columns: 360px 1fr; gap: 26px; align-items: start; }
body.web .review-side, body.web .review-items { display: block; }
body.web .review-side { position: sticky; top: 90px; }
body.web .review-side .totals { margin-top: 14px; }
body.web .review-items .group-title:first-child { margin-top: 0; }

/* statistics */
body.web .period-chips { padding: 18px 8px 6px; }
body.web .hero-stat { padding: 26px 28px; }
body.web .hero-stat b { font-size: 56px; }
body.web .chart-card .vbars { height: 260px; }
body.web main.page > .order-card { display: inline-block; width: calc(50% - 8px); margin-right: 12px; vertical-align: top; }
body.web main.page > .order-card:nth-of-type(2n) { margin-right: 0; }

/* bars, sheets and login */
body.web .bottom-bar, body.web .tabbar { max-width: 1180px; border-radius: 22px 22px 0 0; }
body.web .tabbar { grid-template-columns: repeat(2, 220px); justify-content: center; }
body.web .sheet-panel { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 24px; max-width: 520px; animation: fade .2s; }
body.web .login { border-radius: 0; }
body.web .update-banner { max-width: 600px; }
body.web .login { position: fixed; inset: 0; overflow: auto; justify-content: center; }
.pname mark { background: #FFE7A3; color: inherit; border-radius: 4px; padding: 0 1px; }
/* hide the browser's own clear button in the search box (we have our own) */
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }

/* Phones: the 6 periods in two rows, all visible (no side scrolling) */
@media (max-width: 520px) {
  .period-chips { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .period-chips .dchip { width: 100%; text-align: center; justify-content: center; padding-left: 4px; padding-right: 4px; }
}

/* Phones with a camera notch / Dynamic Island: a blue strip always covers that area,
   so text never scrolls under the camera. Its height is 0 on computers and phones without it. */
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: var(--safe-t); background: var(--navy); z-index: 100; pointer-events: none; }
