/* Mobile Geeks App: one small stylesheet, no build step. Colours follow the shop logo: navy, orange, white. */
:root {
  --navy: #1b2540;
  --navy-2: #26325a;
  --orange: #e85d1f;
  --orange-d: #c94e17;
  --orange-t: #fdeee6;
  --ground: #f5f6f8;
  --card: #ffffff;
  --line: #e3e6eb;
  --line-2: #c9cfd8;
  --ink: #141a2b;
  --ink-2: #3a4256;
  --muted: #5b6474;
  --good: #1b7f4c;
  --good-t: #e6f4ec;
  --warn: #b7791f;
  --warn-t: #fff4e0;
  --bad: #b42318;
  --bad-t: #fdeee6;
  --radius: 12px;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--ground); color: var(--ink); font-size: 14px; line-height: 1.45; }
a { color: var(--orange-d); }
a:hover { color: #9e3d11; }
h1, h2, h3 { margin: 0; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; left: -9999px; }

/* app shell */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 0 0 232px; background: var(--navy); color: #fff; padding: 20px 16px; display: flex; flex-direction: column; gap: 6px; }
.side .brand { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.side .brand img { width: 150px; height: auto; display: block; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #d7ddea; text-decoration: none; font-size: 14px; min-height: 40px; }
.side a.nav:hover { background: var(--navy-2); color: #fff; }
.side a.nav.on { background: var(--orange); color: #fff; font-weight: 600; }
.side .who { margin-top: auto; font-size: 12px; color: #8c96ad; padding: 12px; }
.side .who strong { color: #e6eaf2; display: block; font-size: 13px; }
.side form button { background: none; border: 0; color: #c9d0df; text-decoration: underline; padding: 0; font: inherit; cursor: pointer; min-height: 32px; }
.main { flex: 999 1 560px; min-width: 0; padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.head .grow { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.head .sub { font-size: 13px; color: var(--muted); }

/* cards, grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 24px; font-weight: 700; }
.stat .n { font-size: 12px; color: var(--muted); }
.stat .v.bad { color: var(--bad); }
.stat .v.good { color: var(--good); }

/* tables */
.tablebox { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #eef0f3; font-size: 13px; vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: #fafbfc; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.right, th.right { text-align: right; }

/* forms */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
label.f .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=search], select, textarea {
  height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; width: 100%;
}
textarea { height: auto; padding: 10px 12px; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row > .grow { flex: 1 1 220px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; color: var(--ink-2); }
.check input { width: 18px; height: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn.pri { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.pri:hover { background: var(--orange-d); border-color: var(--orange-d); color: #fff; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.big { min-height: 52px; font-size: 16px; }
.err { color: var(--bad); font-size: 13px; font-weight: 500; }

/* notices and badges */
.note { border-radius: 10px; padding: 12px 14px; font-size: 13px; border: 1px solid var(--line); background: #fff; }
.note.ok { background: var(--good-t); border-color: #bfe3cf; color: #145c37; }
.note.warn { background: var(--warn-t); border-color: #f0d9a8; color: #7a5212; }
.note.bad { background: var(--bad-t); border-color: #f5c9b3; color: #7a2e0e; }
.note code, .linkbox { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.linkbox { background: #fff; border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px; display: block; margin-top: 8px; color: var(--ink); }
.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.good { background: var(--good-t); color: var(--good); }
.badge.warn { background: var(--warn-t); color: var(--warn); }
.badge.bad { background: var(--bad-t); color: var(--bad); }
.badge.gray { background: #eef0f3; color: var(--muted); }

/* sign-in */
.auth { display: flex; flex-wrap: wrap; min-height: 100vh; }
.auth .pitch { flex: 1 1 520px; background: var(--navy); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth .pitch .logo { background: #fff; border-radius: 12px; padding: 14px 18px; width: 200px; }
.auth .pitch .logo img { width: 164px; display: block; height: auto; }
.auth .pitch h1 { font-size: 38px; line-height: 46px; letter-spacing: -.5px; margin-top: 28px; }
.auth .pitch p { font-size: 17px; line-height: 27px; color: #c9d0df; max-width: 460px; margin: 16px 0 0; }
.auth .pitch ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; color: #e6eaf2; font-size: 15px; }
.auth .pitch li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f0864f; margin-right: 12px; }
.auth .pitch .foot { font-size: 13px; color: #8c96ad; }
.auth .panel { flex: 1 1 520px; display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth form { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.auth form p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .side { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; }
  .side .brand { margin: 0 8px 0 0; padding: 6px 10px; }
  .side .brand img { width: 110px; }
  .side .who { margin: 0 0 0 auto; padding: 4px 8px; }
  .main { padding: 16px; }
  .g4, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: 1fr; }
  .auth .pitch { padding: 32px 24px; }
  .auth .pitch h1 { font-size: 28px; line-height: 34px; }
}
@media (max-width: 560px) {
  .g2 { grid-template-columns: 1fr; }
  .auth form { padding: 24px; }
}
@media print { .side, .no-print { display: none !important; } .main { padding: 0; } body { background: #fff; } }

/* small helpers */
.stat .v.warn, td.warn { color: var(--warn); font-weight: 600; }
.bad-text { color: var(--bad); }
.card h2 + .tablebox { margin-top: 4px; }

/* counter sale */
.pos { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.pos-left { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pos-right { flex: 1 1 340px; max-width: 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.results { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; margin-top: 4px; max-height: 340px; overflow: auto; box-shadow: 0 8px 24px rgba(20,26,43,.12); }
.res { display: block; width: 100%; text-align: left; padding: 10px 14px; background: #fff; border: 0; border-bottom: 1px solid #eef0f3; font: inherit; cursor: pointer; min-height: 44px; }
.res:hover, .res:focus { background: var(--orange-t); outline: none; }
[hidden] { display: none !important; }

/* dashboard bars */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.bars .b { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; font-size: 11px; color: var(--muted); }
.bars .b i { display: block; width: 100%; background: var(--orange); border-radius: 4px 4px 0 0; min-height: 2px; }
