/* SE ELEC APP – look & feel (same style as the old Van Stock app, sized for phones) */

@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url('fonts/oswald-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url('fonts/oswald-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700 900; font-display: swap; src: url('fonts/oswald-latin-700-normal.woff2') format('woff2'); }

:root {
  --accent1: #ff9500;
  --accent2: #8a3b00;
  --bg: #1c1f21;
  --panel: #202325;
  --field: #26292b;
  --line: #333;
  --text: #e8e8e8;
  --muted: #9a9a9a;
  --orange: #ff9500;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

button { font-family: inherit; cursor: pointer; touch-action: manipulation; }
button, .tile, .name-btn { -webkit-user-select: none; user-select: none; }

.app {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(16px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
}

.screen { display: none; animation: fadeIn .18s ease; }
.screen.active { display: block; }
.hidden { display: none !important; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- metal buttons ---------- */
.metal-btn {
  width: 100%;
  border: 2px solid rgba(0,0,0,0.5);
  border-radius: 14px;
  padding: 18px 16px;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-text, #111);
  background: var(--accent-bg, linear-gradient(145deg, var(--accent1), var(--accent2)));
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(0,0,0,0.4), 0 6px 14px rgba(0,0,0,0.55), 0 0 22px -6px var(--accent1);
  margin-bottom: 16px;
  transition: transform .08s ease, filter .08s ease;
}
.metal-btn:active, .tile:active, .name-btn:active, .qty-btn:active, .category-button:active { transform: scale(0.97); filter: brightness(0.92); }
.metal-btn.secondary { box-shadow: inset 0 2px 2px rgba(255,255,255,0.4), inset 0 -3px 5px rgba(0,0,0,0.45), 0 6px 14px rgba(0,0,0,0.55); --accent-bg: linear-gradient(145deg, #6b6b6b, #2a2a2a); color: #eee; animation: none !important; }
.metal-btn.submit { box-shadow: inset 0 2px 3px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(0,0,0,0.4), 0 6px 14px rgba(0,0,0,0.55), 0 0 22px -6px #6fe36f; --accent-bg: linear-gradient(145deg, #6fe36f, #1f6b1f); color: #111; animation: none !important; }

/* ---------- start screen ---------- */
.start-screen {
  position: fixed;
  inset: 0;
  overflow: hidden;
  text-align: center;
  background-color: #000;
  background-image: linear-gradient(rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.55) 100%), var(--van-photo, none);
  background-size: cover;
  background-position: center top;
  z-index: 5;
}
.start-logo {
  position: absolute;
  left: 50%;
  top: 70.9%;
  transform: translate(-50%, -50%);
  width: 74.5%;
  max-width: 480px;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.75)) drop-shadow(0 0 18px rgba(255,255,255,0.35)) drop-shadow(0 8px 20px rgba(0,0,0,0.9));
  transition: transform .15s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.start-logo:active { transform: translate(-50%, -50%) scale(0.96); }
.start-logo.holding { animation: holdPulse 1.4s linear forwards; }
@keyframes holdPulse { to { transform: translate(-50%, -50%) scale(0.9); filter: drop-shadow(0 0 18px var(--orange)); } }
.tap-text {
  position: absolute; left: 0; right: 0; top: 82%;
  font-size: 30px; font-weight: 600; letter-spacing: 3px; color: #fff;
  text-shadow: 0 3px 10px rgba(0,0,0,0.95);
}
.tap-text span { color: #ff5a1f; }
.version { position: absolute; left: 12px; right: 12px; bottom: calc(26px + var(--safe-bottom)); font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.45); letter-spacing: 1.5px; text-transform: uppercase; }

/* ---------- titles ---------- */
.screen-title { text-align: center; font-size: 34px; font-weight: 700; text-transform: uppercase; margin: 8px 0 24px; color: #f0f0f0; letter-spacing: 1px; }
.progress { text-align: center; font-size: 15px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #8a8a8a; margin-top: 4px; }
.sub-title { text-align: center; color: var(--muted); font-size: 17px; margin: -14px 0 22px; letter-spacing: .5px; }

/* ---------- name grid ---------- */
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.name-btn {
  border: 2px solid rgba(0,0,0,0.5);
  border-radius: 14px;
  padding: 26px 8px;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.55), inset 0 -3px 5px rgba(0,0,0,0.45), 0 6px 14px rgba(0,0,0,0.5);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- menu ---------- */
.menu-head { text-align: center; margin: 4px 0 22px; }
.menu-logo { width: 62%; max-width: 260px; filter: drop-shadow(0 0 8px rgba(255,255,255,0.35)); -webkit-touch-callout: none; user-select: none; -webkit-user-drag: none; }
.hello { font-size: 32px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px; line-height: 1.1; }
.rego-chip { box-shadow: 0 0 14px -4px var(--accent1); display: inline-block; margin-top: 8px; padding: 4px 14px; border-radius: 999px; border: 2px solid var(--accent1); color: var(--accent1); font-size: 16px; font-weight: 600; letter-spacing: 2px; }

.tile {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  width: 100%;
  min-height: 92px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 2px solid rgba(0,0,0,0.5);
  border-radius: 16px;
  text-align: left;
  color: var(--accent-text, #111);
  background: var(--accent-bg, linear-gradient(145deg, var(--accent1), var(--accent2)));
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(0,0,0,0.4), 0 6px 14px rgba(0,0,0,0.55), 0 0 22px -6px var(--accent1);
  transition: transform .08s ease, filter .08s ease;
}
.tile svg { width: 40px; height: 40px; flex: none; }
.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile-label { font-size: 25px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; line-height: 1.1; }
.tile-sub { font-size: 15px; font-weight: 500; opacity: .75; letter-spacing: .5px; margin-top: 2px; }
.tile.soon { filter: grayscale(.85) brightness(.75); }
.badge {
  position: absolute; top: -8px; right: -6px;
  min-width: 30px; height: 30px; padding: 0 8px;
  border-radius: 15px; border: 2px solid var(--bg);
  background: #ff3b30; color: #fff;
  font-size: 17px; font-weight: 700; line-height: 26px; text-align: center;
}

.info-card {
  border: 2px dashed #ff8a3d; border-radius: 14px; padding: 14px 16px; margin: 6px 0 16px;
  color: #ffc79a; font-size: 18px; line-height: 1.35; background: #2a2420;
}
.info-card b { color: #fff; }
.info-card button {
  margin-top: 10px; width: 100%; border: none; border-radius: 10px; padding: 14px;
  font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: #111; background: linear-gradient(145deg, #ffb35c, #c25e00);
}
.outbox-line { text-align: center; color: #ffb37a; font-size: 16px; letter-spacing: .5px; margin: 6px 0 12px; }

/* ---------- forms ---------- */
label { display: block; font-size: 20px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; color: #ccc; letter-spacing: .5px; }
input, select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 24px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #555;
  background: var(--field);
  color: #f0f0f0;
  margin-bottom: 20px;
  -webkit-appearance: none;
  appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 15px) 52%; background-size: 7px 7px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent1); }
input[readonly] { color: #999; background: #1e2021; }

/* ---------- accordion ---------- */
.category-block { margin-bottom: 14px; border-radius: 14px; overflow: hidden; border: 2px solid rgba(0,0,0,0.5); }
.category-button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  text-align: left; border: none; padding: 18px 18px;
  font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-text, #111);
  background: var(--accent-bg, linear-gradient(145deg, var(--accent1), var(--accent2)));
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.55), inset 0 -3px 5px rgba(0,0,0,0.45);
}
.category-button .count { font-size: 15px; background: rgba(0,0,0,0.75); color: #fff; border-radius: 999px; padding: 2px 10px; letter-spacing: .5px; }
.category-button .chev { width: 12px; height: 12px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); margin-left: 10px; transition: transform .15s; }
.category-block.open .chev { transform: rotate(-135deg); }
.cat-right { display: flex; align-items: center; }
.category-items { padding: 20px 16px 4px; background: var(--panel); }

.item-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.item-row:last-child { border-bottom: none; }
.item-name { font-size: 22px; font-weight: 600; line-height: 1.15; }
.qty-control { display: grid; grid-template-columns: 64px 1fr 64px; gap: 8px; align-items: center; }
.qty-btn {
  height: 58px; font-size: 30px; font-weight: 700; border-radius: 12px; border: none; color: var(--accent-text, #111);
  background: var(--accent-bg, linear-gradient(145deg, var(--accent1), var(--accent2)));
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.5), inset 0 -2px 4px rgba(0,0,0,0.4);
}
.qty-control input { height: 58px; margin-bottom: 0; text-align: center; font-size: 26px; font-weight: 700; }
.item-row.has-qty .qty-control input { border-color: var(--accent1); }
.cable-control select { font-size: 20px; margin-bottom: 10px; }
.cable-control input { margin-bottom: 0; }
.misc-notes { min-height: 130px; resize: none; font-size: 20px; }

.limit-info { font-size: 15px; font-weight: 500; letter-spacing: .5px; color: var(--muted); margin-top: -4px; }
.limit-info b { color: var(--accent1); font-weight: 700; }
.limit-hit { font-size: 17px; font-weight: 700; color: #ffb37a; text-align: center; }
.request-btn {
  width: 100%; border: 2px dashed #ff8a3d; border-radius: 12px; padding: 12px; background: transparent;
  color: #ff8a3d; font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.request-box { background: #2a2420; border: 2px solid #ff8a3d; border-radius: 12px; padding: 14px; }
.request-box .req-label { font-size: 16px; font-weight: 700; text-transform: uppercase; color: #ffb37a; margin-bottom: 8px; }
.request-box .qty-control { margin-bottom: 12px; }
.request-box textarea { min-height: 100px; resize: none; font-size: 19px; margin-bottom: 0; }

.button-row { display: flex; gap: 12px; margin-top: 22px; }
.button-row .metal-btn { flex: 1; margin-bottom: 0; }

.review-box {
  background: var(--field); border: 1px solid #444; border-radius: 12px; padding: 18px;
  white-space: pre-wrap; font-size: 19px; line-height: 1.5; font-weight: 500; color: #eee;
}

/* ---------- banner + overlays ---------- */
.status-banner {
  position: fixed; left: 14px; right: 14px; top: calc(12px + var(--safe-top)); z-index: 999;
  padding: 16px 18px; border-radius: 14px;
  font-size: 20px; font-weight: 700; text-align: center; color: #111;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transform: translateY(-160%); transition: transform .25s ease;
  max-width: 540px; margin: 0 auto;
}
.status-banner.show { transform: translateY(0); }
.status-banner.success { background: linear-gradient(145deg, #6fe36f, #1f6b1f); color: #0c2b0c; }
.status-banner.error { background: linear-gradient(145deg, #ff6f6f, #7a1f1f); color: #fff; }
.status-banner.info { background: linear-gradient(145deg, #ffb35c, #c25e00); color: #1a0d00; }

.busy-overlay {
  position: fixed; inset: 0; z-index: 998; background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  font-size: 24px; font-weight: 700; color: #fff; text-align: center; letter-spacing: 1px;
}
.busy-overlay.show { display: flex; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 6px solid rgba(255,255,255,0.15); border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice-overlay {
  position: fixed; inset: 0; z-index: 997; background: rgba(0,0,0,0.88);
  display: none; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(16px + var(--safe-top)) 16px calc(20px + var(--safe-bottom));
}
.notice-overlay.show { display: block; }
.notice-inner { max-width: 560px; margin: 0 auto; }
.notice-card { background: var(--panel); border: 2px solid rgba(0,0,0,0.5); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.7); margin: 8px 0 20px; }
.notice-head { padding: 18px; background: var(--accent-bg, linear-gradient(145deg, var(--accent1), var(--accent2))); color: var(--accent-text, #111); box-shadow: inset 0 2px 2px rgba(255,255,255,0.55), inset 0 -3px 5px rgba(0,0,0,0.45); }
.notice-kicker { font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .75; }
.notice-job { font-size: 32px; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.notice-summary { font-size: 20px; font-weight: 700; margin-top: 4px; }
.notice-body { padding: 16px 18px; }
.notice-item { font-size: 19px; font-weight: 500; line-height: 1.35; padding: 12px 0; border-bottom: 1px solid var(--line); white-space: pre-wrap; color: #eee; }
.notice-item:last-child { border-bottom: none; }
.notice-item textarea { margin-top: 10px; margin-bottom: 0; min-height: 100px; font-size: 19px; resize: none; border-color: #ff6f6f; }
.notice-time { font-size: 14px; color: #888; letter-spacing: 1px; margin-top: 6px; }
.notice-count { text-align: center; font-size: 15px; color: #aaa; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- PIN pad ---------- */
.pin-overlay { position: fixed; inset: 0; z-index: 996; background: rgba(10,11,12,0.97); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.pin-overlay.show { display: flex; }
.pin-title { font-size: 26px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.pin-sub { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.pin-dots { display: flex; gap: 18px; margin-bottom: 28px; }
.pin-dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--orange); }
.pin-dots span.on { background: var(--orange); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 20%,60% { transform: translateX(-10px); } 40%,80% { transform: translateX(10px); } }
.pin-pad { display: grid; grid-template-columns: repeat(3, 78px); gap: 16px; }
.pin-pad button { height: 78px; border-radius: 50%; border: 2px solid #3a3d40; background: #26292b; color: #fff; font-size: 30px; font-weight: 600; }
.pin-pad button:active { background: #3a3d40; }
.pin-pad button.ghost { border: none; background: transparent; font-size: 17px; letter-spacing: 1px; color: #aaa; }

/* ---------- personal background (Van Stock screens) ---------- */
.tech-bg {
  position: fixed; inset: 0; z-index: 0; display: none;
  background-color: #000;
  background-image: var(--tech-bg, none);
  background-size: cover; background-position: center;
}
.tech-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tech-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,var(--tech-dim, 0.3)); }
body.with-bg .tech-bg { display: block; }
.app { position: relative; z-index: 1; }
body.with-bg .category-items { background: rgba(24,26,28,0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.with-bg input, body.with-bg select, body.with-bg textarea { background-color: rgba(30,33,35,0.9); }
body.with-bg input[readonly] { background-color: rgba(20,22,23,0.85); }
body.with-bg .review-box { background: rgba(30,33,35,0.88); }
body.with-bg .screen-title, body.with-bg .progress, body.with-bg label { text-shadow: 0 2px 8px rgba(0,0,0,0.9); }

/* ---------- special finishes (config.js > LOOKS > finish) ---------- */
@keyframes glint { from { background-position: 0 0, -240px 0, 0 0; } to { background-position: 160px 160px, 480px 0, 0 0; } }
body.finish-glitter .metal-btn, body.finish-glitter .tile, body.finish-glitter .category-button,
body.finish-glitter .qty-btn, body.finish-glitter .notice-head, .name-btn.finish-glitter { animation: glint 7s linear infinite; }
@media (prefers-reduced-motion: reduce) { body.finish-glitter .metal-btn, body.finish-glitter .tile, body.finish-glitter .category-button, body.finish-glitter .qty-btn, body.finish-glitter .notice-head, .name-btn.finish-glitter { animation: none; } }

/* background stays on from the menu onwards: let it show through the menu too */
body.with-bg .info-card { background: rgba(42,36,32,0.88); }
body.with-bg .hello, body.with-bg .outbox-line { text-shadow: 0 2px 10px rgba(0,0,0,0.95); }
body.with-bg .rego-chip { background: rgba(0,0,0,0.7); color: #fff; }

/* =====================================================================
 * PENDING FORM (inside the app – same look as Van Stock, smartened up)
 * ===================================================================== */
.pd-date { min-height: 58px; }
.pd-big { min-height: 45vh; resize: none; font-size: 22px; line-height: 1.35; }
.pd-req-notes { min-height: 140px; resize: none; font-size: 21px; line-height: 1.35; }

/* Step 3 – stacked Yes / No rows with bigger buttons */
.req-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 16px; margin-bottom: 12px;
  background: var(--panel);
  border: 2px solid rgba(0,0,0,0.5); border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.45);
}
.req-row.answered { border-color: var(--accent1); box-shadow: 0 6px 14px rgba(0,0,0,0.45), 0 0 16px -6px var(--accent1); }
.req-label { flex: 1; min-width: 0; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; line-height: 1.12; }
.req-btns { display: flex; gap: 8px; flex: none; }
.req-btn {
  width: 84px; height: 66px;
  border-radius: 12px; border: 2px solid #4a4d50;
  background: #2b2e30; color: #9a9a9a;
  font-size: 23px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.08), inset 0 -2px 4px rgba(0,0,0,0.4);
  transition: transform .08s ease, filter .08s ease;
}
.req-btn:active { transform: scale(0.96); }
.req-btn.on[data-val="Yes"] {
  border-color: rgba(0,0,0,0.5); color: var(--accent-text, #111);
  background: var(--accent-bg, linear-gradient(145deg, var(--accent1), var(--accent2)));
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(0,0,0,0.4), 0 0 16px -4px var(--accent1);
}
.req-btn.on[data-val="No"] {
  border-color: rgba(0,0,0,0.5); color: #fff;
  background: linear-gradient(145deg, #7a7a7a, #2e2e2e);
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.4), inset 0 -3px 5px rgba(0,0,0,0.45);
}
.req-hours {
  margin: -4px 0 14px; padding: 14px 14px 6px;
  background: var(--panel); border: 2px dashed var(--accent1); border-radius: 16px;
}
.req-hours-title { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent1); margin-bottom: 10px; }
.hours-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.hour-chip {
  height: 54px; border-radius: 12px; border: 2px solid #4a4d50; background: #2b2e30; color: #ccc;
  font-size: 22px; font-weight: 700;
}
.hour-chip.on {
  border-color: rgba(0,0,0,0.5); color: var(--accent-text, #111);
  background: var(--accent-bg, linear-gradient(145deg, var(--accent1), var(--accent2)));
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.7), inset 0 -3px 6px rgba(0,0,0,0.4);
}
body.with-bg .req-row, body.with-bg .req-hours { background: rgba(24,26,28,0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Done screen */
.done-tick {
  width: 104px; height: 104px; margin: 36px auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 58px; font-weight: 700; color: #0c2b0c;
  background: linear-gradient(145deg, #6fe36f, #1f6b1f);
  box-shadow: inset 0 3px 4px rgba(255,255,255,0.6), inset 0 -4px 8px rgba(0,0,0,0.4), 0 0 30px -6px #6fe36f;
}
.done-sub { margin: -8px 0 28px; line-height: 1.45; color: #cfcfcf; }
body.with-bg .done-sub { text-shadow: 0 2px 8px rgba(0,0,0,0.9); }

/* =====================================================================
 * END OF JOB CARD – copied from the old app so it looks exactly the same.
 * Everything starts with #eojc so it can't change the rest of the app.
 * ===================================================================== */
#eojc {
  position: fixed; inset: 0; z-index: 6;
  background: #1c1c1c;
  font-family: 'Georgia', serif;
  color: #f2f2f2;
  overflow: hidden;
  animation: none;
}
#eojc input, #eojc select, #eojc textarea, #eojc label, #eojc button {
  all: revert;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
#eojc .ej-screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: calc(28px + var(--safe-top)) 22px calc(28px + var(--safe-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 560px;
  margin: 0 auto;
}
#eojc .ej-screen.active { display: flex; }

#eojc h2 {
  color: #ff6600;
  font-size: 18px;
  letter-spacing: 1px;
  margin: 4px 0 22px 0;
  text-transform: uppercase;
}
#eojc .field { margin-bottom: 20px; }
#eojc .field label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 8px;
}
#eojc input[type="text"], #eojc input[type="date"], #eojc select, #eojc textarea {
  width: 100%;
  background: #262626;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  color: #fff;
  font-family: inherit;
}
#eojc input[type="date"] { min-height: 50px; }
#eojc textarea { min-height: 90px; resize: vertical; }
#eojc .ej-greeting-block { margin-bottom: 18px; }
#eojc .greeting {
  font-size: 20px;
  color: #fff;
  margin-bottom: 6px;
}
#eojc .greeting .name { color: #ff6600; }
#eojc .btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #ff6600;
  color: #1c1c1c;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 15px;
  padding: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: auto;
}
#eojc .btn:disabled { background: #555; color: #999; }
#eojc .btn-secondary {
  background: transparent;
  border: 1px solid #ff6600;
  color: #ff6600;
  margin-top: 12px;
}
#eojc .nav-row { display: flex; gap: 10px; margin-top: auto; }
#eojc .nav-row .btn { margin-top: 0; }
#eojc .btn-back {
  background: transparent;
  color: #999;
  border: 1px solid #444;
  flex: 0 0 90px;
}

/* clock picker */
#eojc .time-block { margin-bottom: 24px; }
#eojc .time-block > label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 10px;
}
#eojc .picker {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #151515;
  border-radius: 14px;
  padding: 10px 0;
  position: relative;
  height: 150px;
}
#eojc .picker::before, #eojc .picker::after {
  content: '';
  position: absolute;
  left: 8%; right: 8%;
  height: 44px;
  pointer-events: none;
}
#eojc .picker::before {
  top: 53px;
  border-top: 1px solid rgba(255,102,0,0.35);
  border-bottom: 1px solid rgba(255,102,0,0.35);
}
#eojc .wheel {
  height: 150px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 53px 0;
}
#eojc .wheel::-webkit-scrollbar { display: none; }
#eojc .wheel-item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #555;
  font-family: 'Georgia', serif;
  transition: color 0.15s, opacity 0.15s;
}
#eojc .wheel-item.selected {
  background: linear-gradient(180deg, #ffcf94, #ff6600 45%, #a34500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
  font-size: 26px;
}
#eojc .wheel-hours, #eojc .wheel-minutes, #eojc .wheel-ampm { width: 60px; }
#eojc .picker-colon {
  color: #ff6600;
  font-size: 22px;
  font-weight: bold;
  margin: 0 2px;
}
#eojc .hours-readout {
  text-align: center;
  color: #fff;
  font-size: 14px;
  margin-top: 12px;
  margin-bottom: 24px;
}
#eojc .hours-readout span { color: #ff6600; font-weight: bold; }

/* other techs list */
#eojc .materials-list {
  max-height: 320px;
  overflow-y: auto;
  background: #262626;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 6px 4px;
}
#eojc .material-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 8px;
  border-bottom: 1px solid #333;
  font-size: 14px;
  gap: 10px;
}
#eojc .material-row:last-child { border-bottom: none; }
#eojc .material-row input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
#eojc .material-row .tech-name { flex: 1; min-width: 80px; }
#eojc .material-row .hours-input {
  width: 90px;
  display: none;
  background: #1c1c1c;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 8px;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
}
#eojc .material-row.checked .hours-input { display: block; }
#eojc .ej-empty { color: #888; font-size: 14px; padding: 10px 8px; }

/* job status */
#eojc .status-sub { color: #aaa; font-size: 14px; margin: -12px 0 18px 0; }
#eojc .status-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: #262626;
  border: 1.5px solid #3a3a3a;
  border-radius: 10px;
  padding: 15px 14px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #f2f2f2;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
#eojc .status-opt .tick-box {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border: 2px solid #777;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #1c1c1c;
  font-weight: bold;
  font-size: 16px;
}
#eojc .status-opt.selected { border-color: #ff6600; background: #2e221a; }
#eojc .status-opt.selected .tick-box { background: #ff6600; border-color: #ff6600; }
#eojc .status-error { color: #ff8a80; font-size: 13px; min-height: 18px; margin: 4px 0 10px 0; }

/* confirmation */
#eojc #ej-confirm {
  justify-content: center;
  align-items: center;
  text-align: center;
}
#eojc .confirm-tick { font-size: 46px; color: #ff6600; margin-bottom: 10px; }
#eojc .confirm-msg { font-size: 18px; margin-bottom: 30px; }
