/* Garage Go panel — the unified design (owner approved the 56-board canvas 21/10/2026, «موافق على باقى كل حاجة — نفذ»).
   Loaded after gg-theme.css. Tokens --u-*, components .u-*; the old --gg-* tokens are mapped onto the same palette so pages
   that are not redrawn yet already take the new colours. Light on :root, dark on body.dark-mode (the user's panel theme). */

:root {
  --u-canvas: #F2F5FA; --u-surface: #FFFFFF; --u-surface2: #F6F8FC; --u-line: #DCE4EF; --u-line2: #E8EEF6;
  --u-ink: #0B2447; --u-ink2: #2F4568; --u-muted: #5A6B87;
  --u-brand: #0E7BE0; --u-brandBtn: #0B6CCB; --u-brandInk: #0A5FB4; --u-brandTint: #E7F1FD; --u-brandSoft: #BFDBFB;
  --u-gold: #F5A524; --u-goldInk: #7A4A00; --u-goldTint: #FFF5DE; --u-goldLine: #F4D287;
  --u-red: #D93025; --u-redInk: #A3150E; --u-redTint: #FDEDEB; --u-redLine: #F3B8B2;
  --u-green: #11935B; --u-greenBtn: #0E7F4E; --u-greenInk: #0A6640; --u-greenTint: #E3F5EC;
  --u-side: #0B2447; --u-side2: #16335E; --u-sideInk: #D3DEEF; --u-sideMuted: #8EA2C3;
  --u-road: #C9D6E8; --u-map: #E4ECF5; --u-mapRoad: #FFFFFF; --u-mapBlock: #D5E0EE; --u-mapSea: #CFE3F7;
  --u-shadow: 0 1px 2px rgba(11, 36, 71, .06);
  --u-font: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  /* the old tokens → the same palette */
  --gg-brand: #0E7BE0; --gg-brand-dark: #0A5FB4; --gg-brand-soft: #E7F1FD; --gg-gold: #F5A524; --gg-navy: #0B2447; --gg-navy-2: #16335E;
  --gg-ink: #0B2447; --gg-muted: #5A6B87; --gg-line: #DCE4EF; --gg-bg: #F2F5FA; --gg-surface: #FFFFFF; --gg-surface-2: #F6F8FC;
  --gg-success: #11935B; --gg-warning: #7A4A00; --gg-danger: #D93025; --gg-radius: 14px; --gg-radius-sm: 10px;
  --gg-font: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif; --gg-display: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
body.dark-mode {
  --u-canvas: #07111F; --u-surface: #0D1A2E; --u-surface2: #122139; --u-line: #1E3150; --u-line2: #172842;
  --u-ink: #E8EFFA; --u-ink2: #C3D0E5; --u-muted: #93A5C2;
  --u-brand: #3C9CFF; --u-brandBtn: #1D6FC6; --u-brandInk: #8CC4FF; --u-brandTint: #112A4B; --u-brandSoft: #1D4475;
  --u-gold: #FFB93E; --u-goldInk: #FFD68E; --u-goldTint: #2C220F; --u-goldLine: #5A4517;
  --u-red: #FF6B5D; --u-redInk: #FFA095; --u-redTint: #331719; --u-redLine: #6A2A29;
  --u-green: #3DCB87; --u-greenBtn: #138055; --u-greenInk: #86E2B6; --u-greenTint: #0E2D22;
  --u-side: #050C18; --u-side2: #122139; --u-sideInk: #D3DEEF; --u-sideMuted: #7C90B2;
  --u-road: #24395C; --u-map: #0F1C30; --u-mapRoad: #1C2E4A; --u-mapBlock: #14243C; --u-mapSea: #0A1A2E;
  --u-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --gg-brand: #3C9CFF; --gg-brand-dark: #1D6FC6; --gg-brand-soft: #112A4B; --gg-navy: #050C18; --gg-navy-2: #122139;
  --gg-ink: #E8EFFA; --gg-muted: #93A5C2; --gg-line: #1E3150; --gg-bg: #07111F; --gg-surface: #0D1A2E; --gg-surface-2: #122139;
  --gg-success: #3DCB87; --gg-warning: #FFD68E; --gg-danger: #FF6B5D;
}

/* ── the shell ──────────────────────────────────────────── */
body.u-shell { font-family: var(--u-font); color: var(--u-ink); background: var(--u-canvas) !important; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
body.u-shell .main-wrapper { display: block; }
body.u-shell .main-wrapper .page-wrapper { margin: 0 !important; margin-inline-start: 276px !important; width: auto !important; min-height: 100vh; background: var(--u-canvas) !important; display: flex; flex-direction: column; }
body.u-shell .main-wrapper .page-wrapper .page-content { margin-top: 64px !important; height: calc(100vh - 64px) !important; overflow-y: auto !important; padding: 28px 32px 48px !important; background: var(--u-canvas) !important; }
body.u-shell .btn-primary { background: var(--u-brandBtn) !important; border-color: var(--u-brandBtn) !important; }
body.u-shell .btn-primary:hover, body.u-shell .btn-primary:focus { background: var(--u-brandInk) !important; border-color: var(--u-brandInk) !important; color: #FFFFFF !important; }
body.u-shell.dark-mode .btn-primary:hover, body.u-shell.dark-mode .btn-primary:focus { background: #2A80DA !important; border-color: #2A80DA !important; }
body.u-shell .btn-success { background: var(--u-greenBtn) !important; border-color: var(--u-greenBtn) !important; color: #FFFFFF !important; }
body.u-shell .btn-danger { background: #C5281D !important; border-color: #C5281D !important; color: #FFFFFF !important; }

.u-side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: 276px; z-index: 1031; background: var(--u-side); color: var(--u-sideInk);
  display: flex; flex-direction: column; gap: 2px; padding: 18px 14px 14px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2B4A78 transparent; }
.u-brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 16px; text-decoration: none !important; }
/* fixes191: the real logo (white SVG) instead of the truck mark */
.u-brand { justify-content: center; padding-inline: 0; }   /* fixes193 (owner: «خليه فى النص») */
.u-brand .u-logo { display: block; width: 164px; max-width: 100%; height: auto; }   /* fixes192 (owner: «صغر اللوجو شوية») — was 208 */
.u-brand .mk { width: 40px; height: 40px; border-radius: 11px; background: #0E7BE0; display: flex; align-items: center; justify-content: center; color: #FFFFFF; flex: none; }
.u-brand .mk svg { width: 24px; height: 24px; }
.u-brand b { display: block; font-size: 18px; font-weight: 800; color: #FFFFFF; line-height: 1.3; }
.u-brand span { display: block; font-size: 12.5px; font-weight: 600; color: var(--u-sideMuted); line-height: 1.3; }
.u-goto { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--u-side2); color: var(--u-sideMuted); margin: 0 0 8px; cursor: text; }
.u-goto svg { width: 17px; height: 17px; flex: none; }
.u-goto input { flex: 1; min-width: 0; border: 0; background: transparent; color: #FFFFFF; font: 600 13.5px var(--u-font); outline: none; }
.u-goto input::placeholder { color: var(--u-sideMuted); opacity: 1; }
.u-goto kbd { font: 700 11.5px var(--u-font); color: var(--u-sideMuted); background: transparent; border: 1px solid #2B4A78; border-radius: 6px; padding: 0 6px; direction: ltr; box-shadow: none; }
.u-g { display: flex; flex-direction: column; gap: 2px; }
.u-gh, .u-i { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent;
  font: 600 14.5px var(--u-font); color: var(--u-sideInk) !important; text-decoration: none !important; text-align: start; cursor: pointer; }
.u-gh:hover, .u-i:hover { background: var(--u-side2); color: #FFFFFF !important; }
.u-gh:focus-visible, .u-i:focus-visible { outline: 2px solid #8CC4FF; outline-offset: -2px; }
.u-gh svg, .u-i svg { width: 19px; height: 19px; flex: none; stroke-width: 1.8; }
.u-gh .chev { width: 16px; height: 16px; margin-inline-start: auto; opacity: .7; transition: transform .15s ease; }
.u-gh[aria-expanded="true"] .chev { transform: rotate(180deg); }
.u-gh .bd + .chev { margin-inline-start: 0; }
.u-gh[aria-expanded="true"] { color: var(--u-sideMuted) !important; font-size: 12.5px; font-weight: 700; min-height: 34px; margin-top: 8px; }
.u-gh[aria-expanded="true"] > svg:first-child { display: none; }
.u-gh[aria-expanded="true"] .bd { display: none; }
.u-gb { display: flex; flex-direction: column; gap: 2px; }
.u-gb[hidden] { display: none; }
.u-i.on { background: var(--u-brand); color: #FFFFFF !important; }
body.dark-mode .u-i.on { background: #1D6FC6; }
.u-i .bd, .u-gh .bd { margin-inline-start: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; background: var(--u-side2); color: var(--u-sideInk); }
.u-i.on .bd { background: rgba(255, 255, 255, .22); color: #FFFFFF; }
.u-i .bd.red, .u-gh .bd.red { background: #D93025; color: #FFFFFF; }
.u-i .bd.gold, .u-gh .bd.gold { background: #F5A524; color: #2B1A00; }
.u-side .u-miss { display: none; padding: 8px 12px; font-size: 13px; color: var(--u-sideMuted); }
.u-me { margin-top: auto; padding-top: 18px; }
.u-me > div { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--u-side2); }
.u-me .av { width: 36px; height: 36px; border-radius: 50%; background: #F5A524; color: #2B1A00; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.u-me b { display: block; font-size: 14px; font-weight: 800; color: #FFFFFF; line-height: 1.35; }
.u-me span { display: block; font-size: 12px; font-weight: 600; color: var(--u-sideMuted); line-height: 1.35; }
.u-me .st { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #86E2B6; white-space: nowrap; }
.u-me .st i { width: 8px; height: 8px; border-radius: 50%; background: #3DCB87; }
.u-me .st.break { color: #FFD68E; } .u-me .st.break i { background: #FFB93E; }
.u-me .st.off { color: var(--u-sideMuted); } .u-me .st.off i { background: #7C90B2; }

.u-top { position: fixed; top: 0; inset-inline-end: 0; inset-inline-start: 276px; height: 64px; z-index: 1030; background: var(--u-surface); border-bottom: 1px solid var(--u-line);
  display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.u-menu { display: none !important; }
.u-search { flex: 1 1 auto; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--u-line);
  background: var(--u-surface2); color: var(--u-muted); margin: 0; }
.u-search svg { width: 18px; height: 18px; flex: none; }
.u-search input, .u-find input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--u-ink) !important; font: 600 14px var(--u-font); outline: none; height: 38px; padding: 0 !important; -webkit-appearance: none; appearance: none; border-radius: 0 !important; }
.u-search:focus-within { border-color: var(--u-brand); box-shadow: 0 0 0 3px var(--u-brandTint); }
.u-top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.u-plain { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.u-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 10px;
  border: 1px solid var(--u-line); background: var(--u-surface); color: var(--u-ink) !important; font: 700 13px var(--u-font); text-decoration: none !important; cursor: pointer; flex: none; }
.u-iconbtn:hover { background: var(--u-surface2); }
.u-iconbtn:focus-visible { outline: 2px solid var(--u-brand); outline-offset: 2px; }
.u-iconbtn svg { width: 19px; height: 19px; }
.u-dd { position: relative; }
.u-dd > .dropdown-menu { top: calc(100% + 8px) !important; margin: 0; transform: none !important;
  border-radius: 14px; border: 1px solid var(--u-line); background: var(--u-surface); box-shadow: 0 12px 32px rgba(11, 36, 71, .16); }
html[dir="rtl"] .u-dd > .dropdown-menu { left: 0 !important; right: auto !important; }
html[dir="ltr"] .u-dd > .dropdown-menu { right: 0 !important; left: auto !important; }
.u-dd > .dropdown-menu::before, .u-dd > .dropdown-menu::after { display: none !important; }
.gg-bell-badge { top: -6px !important; inset-inline-end: -6px !important; min-width: 20px !important; height: 20px !important; line-height: 16px !important;
  background: var(--u-red) !important; color: #FFFFFF !important; border: 2px solid var(--u-surface); }
.u-prof { min-width: 240px; padding: 8px; }
.u-prof .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--u-line2); margin-bottom: 6px; }
.u-prof .who b { display: block; font-size: 15px; font-weight: 800; color: var(--u-ink); }
.u-prof .who span { display: block; font-size: 12.5px; font-weight: 600; color: var(--u-muted); direction: ltr; text-align: start; }
.u-prof a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--u-ink) !important; text-decoration: none !important; }
.u-prof a:hover { background: var(--u-surface2); }
.u-prof a svg { width: 17px; height: 17px; }
.gg-duty-seg { background: var(--u-surface2) !important; border-color: var(--u-line) !important; border-radius: 11px !important; }
.gg-duty-seg button { border-radius: 8px !important; min-height: 32px; }
.gg-duty-seg button[aria-pressed="true"].on { background: var(--u-greenBtn) !important; color: #FFFFFF !important; }
.gg-duty-seg button[aria-pressed="true"].break { background: var(--u-gold) !important; color: #2B1A00 !important; }

@media (max-width: 991.98px) {
  body.u-shell .main-wrapper .page-wrapper { margin-inline-start: 0 !important; }
  body.u-shell .main-wrapper .page-wrapper .page-content { margin-top: 60px !important; height: calc(100vh - 60px) !important; padding: 16px 14px 96px !important; }
  .u-top { inset-inline-start: 0; height: 60px; padding: 0 12px; gap: 8px; }
  .u-menu { display: inline-flex !important; }
  .u-search { display: none; }
  .u-side { transition: transform .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  html[dir="rtl"] .u-side { transform: translateX(105%); }
  html[dir="ltr"] .u-side { transform: translateX(-105%); }
  body.u-side-open .u-side { transform: none; }
  body.u-side-open::after { content: ""; position: fixed; inset: 0; background: rgba(5, 12, 24, .5); z-index: 1030; }
  body.u-side-open .gg-mobile-nav { display: none !important; }
}
@media (max-width: 575.98px) { .u-top-end { gap: 6px; } .u-lang { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .u-side, .u-gh .chev { transition: none; } }

/* ── the phone bottom bar ───────────────────────────────── */
.gg-mobile-nav { background: var(--u-surface) !important; border-top: 1px solid var(--u-line) !important; }
.gg-mobile-nav a { color: var(--u-muted) !important; border-radius: 12px; font-weight: 700; }
.gg-mobile-nav a.active { color: var(--u-brandInk) !important; background: var(--u-brandTint) !important; }

/* ── page structure ─────────────────────────────────────── */
/* fixes190 (owner 21/10): the page fills the screen — a 1240px cap left a wide empty band on big desktops */
.u-page { display: flex; flex-direction: column; gap: 24px; max-width: none; width: 100%; color: var(--u-ink); }
.u-page.wide { max-width: none; }
.u-page h1, .u-page h2, .u-page h3, .u-page p, .u-page dl, .u-page dd { margin: 0; }
.u-ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.u-ph h1 { font: 800 32px/1.3 var(--u-font); color: var(--u-ink); }
.u-ph .sub { font-size: 14.5px; font-weight: 600; color: var(--u-muted); }
.u-ph .act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.u-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--u-muted); }
.u-crumb a { text-decoration: none; color: var(--u-brandInk); }
.u-ttl { font: 800 18px/1.4 var(--u-font); color: var(--u-ink); margin: 0; }
.u-lbl { font-size: 13px; font-weight: 600; color: var(--u-muted); }
.u-mut { color: var(--u-muted); }
.u-hint { font-size: 12.5px; font-weight: 600; color: var(--u-muted); line-height: 1.6; }
.u-big { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.5px; }
.u-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.u-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.u-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.u-page a { color: var(--u-brandInk); }
.u-page a:hover { color: var(--u-ink); }

/* ── components ─────────────────────────────────────────── */
.u-card { background: var(--u-surface); border: 1px solid var(--u-line); border-radius: 14px; color: var(--u-ink); min-width: 0; }
.u-sec { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; }
.u-sec-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.u-sec-h .end { margin-inline-start: auto; }
.u-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--u-line);
  background: var(--u-surface); color: var(--u-ink) !important; font: 700 14px var(--u-font); cursor: pointer; white-space: nowrap; text-decoration: none !important; line-height: 1; }
.u-btn:hover { background: var(--u-surface2); }
.u-btn:focus-visible { outline: 2px solid var(--u-brand); outline-offset: 2px; }
.u-btn:disabled, .u-btn.is-off { opacity: .55; cursor: not-allowed; }
.u-btn svg { width: 17px; height: 17px; flex: none; }
.u-btn.primary { background: var(--u-brandBtn); border-color: var(--u-brandBtn); color: #FFFFFF !important; }
.u-btn.primary:hover { background: var(--u-brandInk); border-color: var(--u-brandInk); }
body.dark-mode .u-btn.primary:hover { background: #2A80DA; border-color: #2A80DA; }
.u-btn.good { background: var(--u-greenBtn); border-color: var(--u-greenBtn); color: #FFFFFF !important; }
.u-btn.gold { background: var(--u-gold); border-color: var(--u-gold); color: #2B1A00 !important; }
.u-btn.danger { color: var(--u-redInk) !important; border-color: var(--u-redLine); }
.u-btn.danger:hover { background: var(--u-redTint); }
.u-btn.solid-danger { background: #C5281D; border-color: #C5281D; color: #FFFFFF !important; }
.u-btn.quiet { background: transparent; border-color: transparent; color: var(--u-brandInk) !important; padding: 0 8px; }
.u-btn.quiet:hover { background: var(--u-brandTint); }
.u-btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.u-btn.sq { width: 40px; padding: 0; }
.u-btn.sm.sq { width: 34px; }
.u-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; line-height: 1;
  background: var(--u-surface2); color: var(--u-ink2); border: 1px solid var(--u-line2); white-space: nowrap; }
.u-chip.blue { background: var(--u-brandTint); color: var(--u-brandInk); border-color: transparent; }
.u-chip.gold { background: var(--u-goldTint); color: var(--u-goldInk); border-color: transparent; }
.u-chip.red { background: var(--u-redTint); color: var(--u-redInk); border-color: transparent; }
.u-chip.green { background: var(--u-greenTint); color: var(--u-greenInk); border-color: transparent; }
.u-chip.ink { background: var(--u-ink); color: var(--u-canvas); border-color: transparent; }
.u-chip svg { width: 14px; height: 14px; }
.u-seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--u-surface2); border: 1px solid var(--u-line); gap: 2px; flex-wrap: wrap; }
.u-seg > a, .u-seg > button, .u-seg > span, .u-seg > label { height: 32px; padding: 0 14px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; margin: 0;
  font: 700 13.5px var(--u-font); color: var(--u-ink2) !important; border: 0; background: transparent; text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.u-seg > .on, .u-seg > [aria-pressed="true"], .u-seg > [aria-selected="true"] { background: var(--u-surface); color: var(--u-ink) !important; box-shadow: 0 1px 2px rgba(11, 36, 71, .14); }
.u-seg b { font-size: 12px; color: var(--u-muted); }
.u-pill { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; display: inline-flex; align-items: center; gap: 6px; font: 700 13.5px var(--u-font);
  border: 1px solid var(--u-line); background: var(--u-surface); color: var(--u-ink2) !important; text-decoration: none !important; white-space: nowrap; cursor: pointer; }
.u-pill.on { background: var(--u-ink); border-color: var(--u-ink); color: var(--u-canvas) !important; }
.u-pill b { font-weight: 800; opacity: .75; }
.u-tabbar { display: flex; gap: 26px; border-bottom: 1px solid var(--u-line); overflow-x: auto; scrollbar-width: thin; }
.u-tab { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 2px; font: 700 14.5px var(--u-font); color: var(--u-muted) !important;
  border: 0; border-bottom: 3px solid transparent; background: none; white-space: nowrap; text-decoration: none !important; cursor: pointer; }
.u-tab.on, .u-tab[aria-selected="true"] { color: var(--u-ink) !important; border-bottom-color: var(--u-brand); }
.u-tab b { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 7px; background: var(--u-surface2); color: var(--u-ink2); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.u-tab b.red { background: var(--u-red); color: #FFFFFF; }
.u-tab b.gold { background: var(--u-gold); color: #2B1A00; }
.u-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); overflow: hidden; }
.u-band > div, .u-band > a { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; text-decoration: none !important; color: var(--u-ink) !important; }
/* fixes186: the dividers are drawn on each cell's start and top edge, so a cell that wraps to a new row never shows a stray line at the card's edge (overflow:hidden clips it) */
.u-band > * { box-shadow: 1px 0 0 var(--u-line2), 0 -1px 0 var(--u-line2); }
html[dir="ltr"] .u-band > * { box-shadow: -1px 0 0 var(--u-line2), 0 -1px 0 var(--u-line2); }
.u-band > a:hover { background: var(--u-surface2); }
.u-band > .on { background: var(--u-brandTint); }
.u-band .v { font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -.5px; }
.u-band .v small { font-size: 14px; font-weight: 700; color: var(--u-muted); letter-spacing: 0; margin-inline-start: 4px; }
.u-band .d { font-size: 12.5px; font-weight: 700; color: var(--u-muted); }
.u-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.u-find { flex: 1 1 260px; max-width: 420px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--u-line); background: var(--u-surface); color: var(--u-muted); margin: 0; }
.u-find svg { width: 18px; height: 18px; flex: none; }
.u-find input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--u-ink); font: 600 14px var(--u-font); outline: none; height: 38px; }
.u-find:focus-within { border-color: var(--u-brand); }
.u-tbl-wrap { overflow-x: auto; }
.u-tbl { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--u-ink); margin: 0; }
.u-tbl th { font-size: 12.5px; font-weight: 700; color: var(--u-muted); text-align: start; padding: 11px 16px; background: var(--u-surface2); border-bottom: 1px solid var(--u-line); white-space: nowrap; }
.u-tbl td { padding: 12px 16px; border-bottom: 1px solid var(--u-line2); vertical-align: middle; font-weight: 600; }
.u-tbl tr:last-child td { border-bottom: 0; }
.u-tbl tbody tr:hover { background: var(--u-surface2); }
.u-tbl .end { text-align: end; }
.u-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.u-who b { display: block; font-size: 14.5px; font-weight: 800; }
.u-who span { display: block; font-size: 12.5px; font-weight: 600; color: var(--u-muted); }
/* fixes186: an avatar, chip, dot or number inside a name cell keeps its own shape */
.u-who .u-ava { display: inline-flex; } .u-who .u-chip { display: inline-flex; } .u-who .u-dot { display: inline-block; } .u-who .u-ltr { display: inline-block; }
.u-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--u-line2); font-size: 13px; font-weight: 700; color: var(--u-muted); }
.u-pager .pagination { margin: 0; }
.u-ava { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: var(--u-brandTint); color: var(--u-brandInk); overflow: hidden; }
.u-ava img { width: 100%; height: 100%; object-fit: cover; }
.u-ava.lg { width: 64px; height: 64px; font-size: 24px; }
.u-ava.gold { background: var(--u-goldTint); color: var(--u-goldInk); }
.u-ava.green { background: var(--u-greenTint); color: var(--u-greenInk); }
.u-ava.ink { background: var(--u-ink); color: var(--u-canvas); }
.u-ibox { flex: none; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--u-surface2); color: var(--u-ink2); }
.u-ibox svg { width: 20px; height: 20px; }
.u-ibox.blue { background: var(--u-brandTint); color: var(--u-brandInk); }
.u-ibox.gold { background: var(--u-goldTint); color: var(--u-goldInk); }
.u-ibox.red { background: var(--u-redTint); color: var(--u-redInk); }
.u-ibox.green { background: var(--u-greenTint); color: var(--u-greenInk); }
.u-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--u-muted); }
.u-dot.green { background: var(--u-green); } .u-dot.gold { background: var(--u-gold); } .u-dot.red { background: var(--u-red); } .u-dot.blue { background: var(--u-brand); }
.u-note { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.7; background: var(--u-surface2); border: 1px solid var(--u-line2); color: var(--u-ink2); }
.u-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.u-note.gold { background: var(--u-goldTint); border-color: var(--u-goldLine); }
.u-note.gold > svg { color: var(--u-goldInk); }
.u-note.red { background: var(--u-redTint); border-color: var(--u-redLine); }
.u-note.red > svg { color: var(--u-redInk); }
.u-note.blue { background: var(--u-brandTint); border-color: var(--u-brandSoft); }
.u-note.green { background: var(--u-greenTint); border-color: transparent; }
.u-bar { height: 8px; border-radius: 6px; background: var(--u-surface2); overflow: hidden; display: flex; }
.u-bar > span { background: var(--u-brand); border-radius: 6px; }
.u-kv { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 10px 18px; font-size: 14px; margin: 0; }
.u-kv dt { color: var(--u-muted); font-weight: 600; }
.u-kv dd { font-weight: 700; min-width: 0; margin: 0; }
.u-fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.u-fld > label, .u-fld > .fl { font-size: 13px !important; font-weight: 700 !important; color: var(--u-ink2) !important; margin: 0; }
.u-inp, .u-page .form-control { height: 40px; padding: 0 12px; border-radius: 10px !important; border: 1px solid var(--u-line) !important; background: var(--u-surface) !important; color: var(--u-ink) !important;
  font: 600 14px var(--u-font) !important; width: 100%; min-width: 0; box-shadow: none !important; }
textarea.u-inp, .u-page textarea.form-control { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.7; }
.u-inp:focus, .u-page .form-control:focus { border-color: var(--u-brand) !important; box-shadow: 0 0 0 3px var(--u-brandTint) !important; outline: none; }
.u-tog { flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--u-line); position: relative; display: inline-block; border: 0; padding: 0; cursor: pointer; }
.u-tog::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: inset-inline-start .15s ease; }
.u-tog.on, .u-tog[aria-pressed="true"] { background: var(--u-brand); }
.u-tog.on::after, .u-tog[aria-pressed="true"]::after { inset-inline-start: 21px; }
.u-msgs { display: flex; flex-direction: column; gap: 10px; }
.u-msg { max-width: 80%; padding: 9px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; line-height: 1.75; display: flex; flex-direction: column; gap: 2px; white-space: pre-line; word-break: break-word; }
.u-msg.in { align-self: flex-start; background: var(--u-surface2); border: 1px solid var(--u-line2); border-start-start-radius: 4px; }
.u-msg.out { align-self: flex-end; background: var(--u-brandTint); color: var(--u-ink); border-start-end-radius: 4px; }
.u-msg.sys { align-self: center; max-width: 90%; background: transparent; color: var(--u-muted); font-size: 12.5px; text-align: center; padding: 2px 8px; }
.u-msg .meta { font-size: 11.5px; font-weight: 700; color: var(--u-muted); }
.u-tl { display: flex; flex-direction: column; }
.u-tl-i { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; position: relative; padding-bottom: 16px; }
.u-tl-i::before { content: ""; position: absolute; inset-inline-start: 10px; top: 20px; bottom: 0; width: 2px; background: var(--u-line2); }
.u-tl-i:last-child::before { display: none; }
.u-tl-i .d { width: 22px; height: 22px; border-radius: 50%; background: var(--u-surface); border: 3px solid var(--u-road); margin-top: 2px; }
.u-tl-i .d.blue { border-color: var(--u-brand); } .u-tl-i .d.gold { border-color: var(--u-gold); } .u-tl-i .d.red { border-color: var(--u-red); } .u-tl-i .d.green { border-color: var(--u-green); }
.u-tl-i b { font-size: 14px; font-weight: 800; display: block; }
.u-tl-i span { font-size: 13px; font-weight: 600; color: var(--u-muted); }
.u-tl-i time { font-size: 12.5px; font-weight: 700; color: var(--u-muted); white-space: nowrap; }
.u-empty { padding: 28px 20px; text-align: center; color: var(--u-muted); font-size: 14px; font-weight: 600; }

/* the route rail: طلب ← عروض ← اختار ← بالطريق ← وصل ← خلص */
.u-rail { position: relative; height: 42px; margin-inline: 9px; }
.u-rail .tr { position: absolute; inset-inline: 0; top: 5px; height: 8px; border-radius: 8px; background: var(--u-road); }
.u-rail .dn { position: absolute; inset-inline-start: 0; top: 5px; height: 8px; border-radius: 8px; background: var(--u-brand); }
.u-rail .mk { position: absolute; inset-inline-start: 4px; top: 8px; height: 2px; background: repeating-linear-gradient(to left, rgba(255, 255, 255, .8) 0 8px, transparent 8px 16px); }
.u-rail .st { position: absolute; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--u-surface); border: 3px solid var(--u-road); }
.u-rail .st.done { background: var(--u-brand); border-color: var(--u-surface); }
.u-rail .st.now { border-color: var(--u-brand); box-shadow: 0 0 0 4px var(--u-brandTint); }
.u-rail .st.warn { border-color: var(--u-gold); box-shadow: 0 0 0 4px var(--u-goldTint); }
.u-rail .st.stop { border-color: var(--u-red); box-shadow: 0 0 0 4px var(--u-redTint); }
.u-rail .nm { position: absolute; top: 24px; width: 72px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--u-muted); white-space: nowrap; }
.u-rail .nm.now { color: var(--u-ink); font-weight: 800; }
.u-rail .nm.first { text-align: start; }
.u-rail .nm.last { text-align: end; }
.u-rail.lg { height: 58px; margin-inline: 14px; }
.u-rail.lg .tr, .u-rail.lg .dn { top: 8px; height: 12px; border-radius: 12px; }
.u-rail.lg .mk { top: 13px; }
.u-rail.lg .st { width: 28px; height: 28px; border-width: 5px; }
.u-rail.lg .nm { top: 36px; width: 96px; font-size: 13px; }

/* a drawn map (no tiles) */
.u-map { position: relative; overflow: hidden; border-radius: 12px; background-color: var(--u-map);
  background-image: linear-gradient(var(--u-mapRoad) 0 0), linear-gradient(var(--u-mapRoad) 0 0), linear-gradient(var(--u-mapRoad) 0 0), linear-gradient(var(--u-mapRoad) 0 0);
  background-size: 100% 6px, 6px 100%, 100% 4px, 4px 100%; background-position: 0 38%, 62% 0, 0 74%, 24% 0; background-repeat: no-repeat; }

/* the panel's confirm window and floating messages in the new look */
.ggcf-box { border-radius: 20px !important; border: 1px solid var(--u-line) !important; background: var(--u-surface) !important; color: var(--u-ink) !important; }

@media (max-width: 767.98px) {
  .u-page { gap: 16px; }
  .u-ph h1 { font-size: 24px; }
  .u-sec { padding: 16px; }
  .u-band > div, .u-band > a { padding: 12px 14px; }
  .u-band .v { font-size: 22px; }
  .u-btn { height: 44px; }
  .u-btn.sm { height: 38px; }
  .u-btn.sq { width: 44px; }
  .u-inp, .u-page .form-control, .u-find input, .u-search input { font-size: 16px !important; }
  .u-tabbar { gap: 20px; }
  .u-rail .nm { font-size: 11px; width: 56px; }
}

/* ── fixes177: shared pieces for the page redraws ───────── */
.u-rail .nm small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 600; color: var(--u-muted); }
.u-rail.lg .nm small { font-size: 12px; }
.u-rail.has-times { height: 58px; }
.u-rail.lg.has-times { height: 78px; }
.u-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 20px; align-items: start; }
.u-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.u-stack.tight { gap: 12px; }
.u-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.u-split { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.u-grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.u-grid3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.u-grid4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.u-fgrid { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); align-items: end; }
.u-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--u-ink2); margin: 0; cursor: pointer; }
.u-check input { width: 18px; height: 18px; accent-color: var(--u-brand); margin: 0; }
.u-save { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--u-line); background: var(--u-surface); border-radius: 0 0 14px 14px; }
.u-num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.u-money { font-weight: 800; white-space: nowrap; }
.u-money small { font-size: .78em; font-weight: 700; color: var(--u-muted); margin-inline-start: 3px; }
.u-sep { height: 1px; background: var(--u-line2); border: 0; margin: 0; }
.u-cardlink { text-decoration: none !important; color: inherit !important; }
.u-cardlink:hover { border-color: var(--u-brandSoft); }
.u-pop { min-width: 220px; padding: 6px; border-radius: 12px; border: 1px solid var(--u-line); background: var(--u-surface); box-shadow: 0 12px 32px rgba(11, 36, 71, .16); }
.u-pop .dropdown-item, .u-pop > a, .u-pop > button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent;
  font: 700 13.5px var(--u-font); color: var(--u-ink) !important; text-decoration: none !important; text-align: start; cursor: pointer; white-space: nowrap; }
.u-pop .dropdown-item:hover, .u-pop > a:hover, .u-pop > button:hover { background: var(--u-surface2); }
.u-pop .danger { color: var(--u-redInk) !important; }
.u-pop hr, .u-pop .dropdown-divider { margin: 6px 4px; border-color: var(--u-line2); }
body.u-shell .modal-content { border-radius: 20px; border: 1px solid var(--u-line); background: var(--u-surface); color: var(--u-ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
body.u-shell .modal-header { border-bottom-color: var(--u-line2) !important; padding: 18px 22px; }
body.u-shell .modal-header .modal-title { font: 800 18px/1.4 var(--u-font); }
body.u-shell .modal-body { padding: 18px 22px; }
body.u-shell .modal-footer { border-top-color: var(--u-line2) !important; padding: 14px 22px; gap: 8px; }
body.u-shell .modal-backdrop.show { opacity: .55; background: #050C18; }
body.u-shell .dropdown-menu { border-radius: 12px; border-color: var(--u-line); background: var(--u-surface); }
body.u-shell .dropdown-item { color: var(--u-ink); font-weight: 600; }
body.u-shell .dropdown-item:hover, body.u-shell .dropdown-item:focus { background: var(--u-surface2); color: var(--u-ink); }
body.u-shell .page-item .page-link { border-radius: 9px; margin: 0 2px; border-color: var(--u-line); background: var(--u-surface); color: var(--u-ink2); font-weight: 700; }
body.u-shell .page-item.active .page-link { background: var(--u-ink); border-color: var(--u-ink); color: var(--u-canvas); }
@media (max-width: 1099.98px) { .u-cols { grid-template-columns: minmax(0, 1fr); } }

/* fixes187: details the page groups hit */
.u-fld .file-upload-default, .u-page .file-upload-default, .modal .file-upload-default { visibility: hidden; position: absolute; width: 1px; height: 1px; overflow: hidden; }
.input-group > .form-control.u-inp, .input-group > .u-inp { width: 1%; flex: 1 1 auto; }
.u-pop .dropdown-item svg, .u-pop > a svg, .u-pop > button svg { width: 16px; height: 16px; flex: none; }
