/* ---------------------------------------------------------------------------
   Control — სახელოსნოს დისპეტჩერი.
   დიზაინი აღებულია Vattler Group-ის (barada) სისტემიდან:
   ღრმა ლურჯი #081D2B + ფირმული ყვითელი #FFD400 → #FFAA06.
   --------------------------------------------------------------------------- */

:root {
  --bg: #081d2b;
  --bg-sunken: #050f18;
  --surface: #0d2739;
  --surface-2: #123247;

  --text: #ffffff;
  --muted: #b6c3cc;
  --faint: #9aabb7;
  --border: #1c4257;
  --border-strong: #2a5a74;

  --accent: #ffd400;
  --accent-strong: #ffd400;
  --accent-soft: #33290a;
  --accent-ink: #081d2b;
  --ring: rgba(255, 212, 0, 0.35);

  --oil: #ffaa06;
  --oil-soft: #33270f;

  --good: #48fc5a;
  --good-soft: #0c2f1e;
  --bad: #ff6b6b;
  --bad-soft: #3a1f24;

  --chrome: #0a2233;
  --chrome-2: #061622;
  --chrome-text: #ffffff;
  --chrome-muted: #9aabb7;
  --chrome-hover: rgba(255, 255, 255, 0.07);
  --chrome-border: rgba(255, 255, 255, 0.11);

  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -18px rgba(0, 0, 0, .85);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 44px -22px rgba(0, 0, 0, .95);

  --sans: 'Noto Sans Georgian', 'Segoe UI', Sylfaen, system-ui, -apple-system, sans-serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.012em; }
a { color: var(--accent-strong); text-decoration: none; }

/* --- ველები ---------------------------------------------------------------- */

input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

select {
  cursor: pointer;
  appearance: none;
  padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea { min-height: 88px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover { border-color: var(--accent-strong); }

input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px var(--ring);
}

/* --- ღილაკები -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.btn--primary {
  background: linear-gradient(45deg, #ffd400, #ffaa06);
  color: var(--accent-ink);
  font-weight: 600;
  box-shadow: 0 4px 12px -2px rgba(255, 212, 0, .38);
}
.btn--primary:hover:not(:disabled) {
  background: linear-gradient(45deg, #ffde3d, #ffbb33);
  box-shadow: 0 6px 16px -2px rgba(255, 212, 0, .5);
}
.btn--primary:active:not(:disabled) { background: linear-gradient(45deg, #f0c700, #f0a005); }

.btn--ghost { border-color: var(--border-strong); color: var(--muted); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }

.btn--good { background: var(--good-soft); border-color: var(--good); color: var(--good); font-weight: 600; }
.btn--good:hover { background: var(--good); color: #06210f; }

.btn--warn { background: var(--oil-soft); border-color: var(--oil); color: var(--oil); font-weight: 600; }
.btn--warn:hover { background: var(--oil); color: var(--accent-ink); }

.btn--danger { border-color: var(--bad); color: var(--bad); }
.btn--danger:hover { background: var(--bad-soft); }

.btn--sm { min-height: 38px; padding: 0 0.9rem; font-size: 0.875rem; }
.btn--lg { min-height: 56px; padding: 0 1.4rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* --- shell ----------------------------------------------------------------- */

.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100svh; }

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem 1rem;
  background: var(--chrome);
  color: var(--chrome-text);
  border-right: 1px solid var(--chrome-border);
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
}

.sidebar__brand { display: flex; align-items: center; gap: 0.7rem; padding: 0 0.35rem; }
.sidebar__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  background: linear-gradient(45deg, #ffd400, #ffaa06);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 1.1rem;
}
.sidebar__brand strong { display: block; font-size: 1.05rem; }
.sidebar__brand small { display: block; color: var(--chrome-muted); font-size: 0.78rem; }

/* მენიუ გრძელია — ფუძე და ქვედა ზოლი ადგილზე რჩება, შუა ნაწილი ისქროლება */
.nav {
  display: flex; flex-direction: column; gap: 0.2rem;
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 999px; }
.nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .35); }
.nav__item { flex: none; }
.nav__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--chrome-muted);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.nav__item:hover { background: var(--chrome-hover); color: var(--chrome-text); }
.nav__item.is-active { background: linear-gradient(45deg, #ffd400, #ffaa06); color: #081d2b; font-weight: 600; }

.sidebar__foot {
  display: flex; align-items: center; gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--chrome-border);
  font-size: 0.875rem;
  color: var(--chrome-muted);
}

.shell__main {
  max-width: 1400px;
  width: 100%;
  padding: 1.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--chrome-border); }
  .nav { flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .nav__item { flex: 1 1 auto; justify-content: center; }
  .shell__main { padding: 1.25rem 1.1rem 3rem; }
}

/* --- ბლოკები --------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.card__head h2 { font-size: 1.05rem; }
.card__body { padding: 1.25rem; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid--2 > * { min-width: 0; }

.row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.row--end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }

.form__row { display: grid; gap: 0.9rem; grid-template-columns: 1fr 1fr; }
.form__row--3 { grid-template-columns: repeat(3, 1fr); }
.form__row--1 { grid-template-columns: 1fr; }
.form__row > * { min-width: 0; }
@media (max-width: 640px) { .form__row, .form__row--3 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.field label { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.field__hint { color: var(--faint); font-size: 0.8rem; min-height: 1.2em; }
.field__hint.is-ok { color: var(--good); }

/* --- სეგმენტები (პრიორიტეტი, ფილტრები) ------------------------------------- */

.segmented { display: flex; gap: 0.25rem; padding: 0.25rem; background: var(--bg-sunken); border-radius: 12px; }
.segmented button {
  flex: 1;
  min-height: 36px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.segmented button:hover { color: var(--text); }
.segmented button.is-active { background: linear-gradient(45deg, #ffd400, #ffaa06); color: var(--accent-ink); font-weight: 600; }
.segmented button.is-active.is-danger { background: linear-gradient(45deg, #ff6b6b, #e04b4b); color: #fff; }

/* --- სტატისტიკა ------------------------------------------------------------ */

.stats { display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* მჭიდრო ბარათები — როცა ბევრი მაჩვენებელია ერთ გვერდზე (vault.php) */
.stats--tight { gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); }
.stats--tight .stat { padding: .7rem .85rem; gap: .25rem; }
.stats--tight .stat__value { font-size: 1.25rem; }
.stats--tight .stat__label { font-size: .8rem; }
.stats--tight .stat__sub { font-size: .72rem; }
.stat__label { color: var(--muted); font-size: 0.85rem; }
.stat__value { font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* --- ცხრილი ---------------------------------------------------------------- */

.table-scroll { position: relative; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th {
  padding: 0.7rem 0.9rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.table td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:nth-child(even) { background: var(--surface-2); }
.table tbody tr:hover { background: var(--bg-sunken); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; }

/* --- ტეგები / სტატუსები ---------------------------------------------------- */

.tag {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag--new { background: var(--bad-soft); color: var(--bad); }
.tag--seen { background: #10305c; color: #a7cbff; }
.tag--eta { background: var(--oil-soft); color: var(--oil); }
.tag--ready { background: var(--good-soft); color: var(--good); }
.tag--done { background: var(--bg-sunken); color: var(--muted); }
.tag--cancelled { background: var(--bg-sunken); color: var(--faint); text-decoration: line-through; }
.tag--urgent { background: var(--bad); color: #fff; }

.orderpick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem 0.9rem;
  margin-top: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.orderpick__cell span { display: block; color: var(--faint); font-size: 0.7rem; letter-spacing: .04em; }
.orderpick__cell div { font-size: 0.9rem; }

/* --- მიღებული ნივთის ბარათი ------------------------------------------------ */

.order {
  padding: 1rem 1.15rem;
  margin-bottom: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--oil);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.order--closed { border-left-color: var(--border-strong); opacity: .75; }
.order--late { border-left-color: var(--bad); }

.order__head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.order__no { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.order__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem 1rem; }
.order__cell span { display: block; color: var(--faint); font-size: 0.72rem; letter-spacing: .04em; }
.order__cell div { font-size: 0.95rem; }

.order__work {
  margin-top: 0.75rem; padding: 0.6rem 0.8rem;
  background: var(--bg-sunken); border-radius: var(--radius-sm);
  color: var(--muted); font-size: 0.9rem;
}
.order__acts { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; }

/* --- შემკვეთის ავტომატური ამოგდება --------------------------------------- */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  max-height: 260px; overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
}
.suggest__item {
  display: block; width: 100%; padding: 0.6rem 0.85rem;
  border: 0; border-bottom: 1px solid var(--border);
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.suggest__item:last-child { border-bottom: 0; }
.suggest__item:hover { background: var(--accent-soft); color: var(--accent-strong); }
.suggest__item b { display: block; font-weight: 600; }
.suggest__item span { color: var(--faint); font-size: 0.8rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-sunken);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.chip--on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
/* ჭრილი თანხა — პროცენტის ნაცვლად (services.php) */
.chip--pay { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.chip--on small { opacity: .7; margin-left: .2rem; }
.suggest__item--other { background: var(--bg-sunken); border-top: 1px solid var(--border-strong); }
.suggest__item--other b { color: var(--accent-strong); }
.chip small { color: var(--faint); }

.empty { padding: 3rem 1.5rem; text-align: center; color: var(--faint); }
.empty__title { margin: 0 0 0.35rem; font-weight: 600; color: var(--muted); }

.muted { color: var(--muted); }
.faint { color: var(--faint); }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); display: inline-block; }
.dot.is-on { background: var(--good); box-shadow: 0 0 8px var(--good); }

/* --- მოთხოვნების სია (მენეჯერი) -------------------------------------------- */

.rqlist { display: flex; flex-direction: column; gap: 0.6rem; }
.rqrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.rqrow--new { border-left-color: var(--bad); }
.rqrow--eta { border-left-color: var(--oil); }
.rqrow--ready { border-left-color: var(--good); }
.rqrow__code { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.rqrow__meta { color: var(--faint); font-size: 0.82rem; }

/* --- ტაბლო (აეროპორტის სტილი) --------------------------------------- */

body.fids {
  background: #03080d;
  overflow: hidden;
}

.fids {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  height: 100svh;
  font-variant-numeric: tabular-nums;
}

/* ზედა ზოლი */
.fids__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(180deg, #0a2233, #061622);
  border-bottom: 2px solid var(--accent);
}
.fids__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(45deg, #ffd400, #ffaa06);
  color: #081d2b;
  font-weight: 800;
}
.fids__bar h1 {
  font-size: clamp(1.1rem, 1.6vw, 1.7rem);
  letter-spacing: .06em;
}
.fids__voice { color: var(--faint); font-size: .72rem; letter-spacing: .04em; }
.fids__counts { display: flex; gap: 0.5rem; }
.fids__count {
  min-width: 88px;
  padding: 0.25rem 0.85rem;
  text-align: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--chrome-border);
}
.fids__count b { display: block; font-size: clamp(1.1rem, 1.7vw, 1.7rem); line-height: 1.15; }
.fids__count span { font-size: .7rem; color: var(--faint); letter-spacing: .08em; }
.fids__count.is-new b { color: var(--bad); }
.fids__count.is-work b { color: var(--oil); }
.fids__count.is-ready b { color: var(--good); }

.fids__clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  font-family: ui-monospace, 'Roboto Mono', 'Courier New', monospace;
}
.fids__clock span { font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 700; color: var(--accent); }
.fids__clock small { color: var(--faint); font-size: .8rem; letter-spacing: .12em; }

/* სვეტების სათაურები და სტრიქონები — ერთი და იგივე ბადე */
.fids__head,
.fids__row {
  display: grid;
  grid-template-columns:
    minmax(80px, 110px)                /* დრო */
    minmax(180px, 1.5fr)               /* ნაწილი */
    minmax(170px, 260px)               /* დოკუმენტი */
    minmax(110px, .9fr)                /* ხელოსანი */
    minmax(150px, 1.3fr)               /* შეკვეთა */
    minmax(190px, 1.5fr)               /* სტატუსი */
    minmax(84px, 110px);               /* ტაიმერი */
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
}

.fids__head {
  padding-top: .45rem;
  padding-bottom: .45rem;
  background: #071219;
  border-bottom: 1px solid #16303f;
  color: var(--faint);
  font-size: clamp(.62rem, .8vw, .78rem);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.fids__head .fids__t { text-align: right; }

.fids__board { overflow-y: auto; }

.fids__row {
  min-height: clamp(58px, 8.5vh, 92px);
  border-bottom: 1px solid #101f29;
  font-size: clamp(.95rem, 1.5vw, 1.55rem);
  animation: fids-in .35s ease;
}
.fids__row:nth-child(even) { background: rgba(255, 255, 255, .022); }

@keyframes fids-in { from { opacity: 0; transform: translateY(-6px); } }

.fids__time,
.fids__timer {
  font-family: ui-monospace, 'Roboto Mono', 'Courier New', monospace;
  color: var(--muted);
}
.fids__timer { text-align: right; font-weight: 700; color: var(--text); }

/* კოდი — split-flap ფირფიტები */
.fids__code { display: flex; gap: 2px; font-size: .82em; }
.fids__code i.is-empty { color: var(--faint); background: none; box-shadow: none; animation: none; }
.fids__code i {
  position: relative;
  display: grid;
  place-items: center;
  min-width: .82em;
  padding: .1em .18em;
  border-radius: 5px;
  background: linear-gradient(180deg, #1a222a 0 49%, #060a0e 49% 52%, #141b22 52% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  color: var(--accent);
  font-family: ui-monospace, 'Roboto Mono', 'Courier New', monospace;
  font-style: normal;
  font-weight: 800;
  font-size: 1.15em;
  letter-spacing: 0;
  animation: flap .45s cubic-bezier(.2, .8, .3, 1);
}
@keyframes flap {
  from { transform: rotateX(-88deg); transform-origin: 50% 0; opacity: .2; }
}

.fids__part {
  color: var(--text);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fids__part em { color: var(--muted); font-style: normal; }
.fids__part small { color: var(--faint); font-size: .68em; }
.fids__who { font-weight: 600; }
.fids__job { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; min-width: 0; font-size: .72em; }
.fids__job b { font-size: 1.15em; letter-spacing: .03em; }
.fids__job small { color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fids__job small.is-late { color: var(--bad); }
.fids__job-no { color: var(--accent); font-size: .85em; }
.fids__job-free { color: var(--muted); }
.fids__prog { display: block; height: 4px; margin-top: 3px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.fids__prog i { display: block; height: 100%; background: linear-gradient(90deg, #ffd400, #ffaa06); }

.fids__status {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.fids__status b { font-weight: 700; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fids__status small { color: var(--faint); font-size: .62em; letter-spacing: .04em; }

/* სტატუსების ფერები — ტაბლოსავით */
.fids__row.is-new .fids__status b { color: var(--bad); animation: fids-blink 1s steps(1, end) infinite; }
.fids__row.is-new .fids__code i { color: #ff8f8f; }
.fids__row.is-seen .fids__status b { color: #a7cbff; }
.fids__row.is-eta .fids__status b { color: var(--oil); }
.fids__row.is-eta .fids__timer { color: var(--oil); }
.fids__row.is-ready { background: rgba(72, 252, 90, .07); }
.fids__row.is-ready .fids__status b { color: var(--good); }
.fids__row.is-ready .fids__code i { color: var(--good); }
.fids__row.is-done { opacity: .45; }
.fids__row.is-done .fids__status b { color: var(--faint); }

.fids__row.is-urgent { box-shadow: inset 4px 0 0 var(--bad); }
.fids__row.is-new.is-urgent { background: rgba(255, 107, 107, .09); }
.fids__row.is-late .fids__timer { color: var(--bad); animation: fids-blink .8s steps(1, end) infinite; }

@keyframes fids-blink { 50% { opacity: .25; } }

.fids__empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--faint);
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  letter-spacing: .1em;
}

/* ქვედა მოძრავი ხაზი */
.fids__ticker {
  overflow: hidden;
  padding: .5rem 0;
  background: #071219;
  border-top: 2px solid var(--accent);
  color: var(--accent);
  font-size: clamp(.8rem, 1.1vw, 1.05rem);
  letter-spacing: .06em;
  white-space: nowrap;
}
.fids__ticker-in { padding-left: 1.5rem; }
.fids__ticker-in.is-moving {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 26s linear infinite;
}
@keyframes ticker { to { transform: translateX(-100%); } }

/* --- პლანშეტი -------------------------------------------------------------- */

.tabletbar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome-border);
}
.tabletbar select { max-width: 260px; }
.session { display: flex; align-items: center; gap: 0.5rem; color: var(--good); font-size: 0.9rem; }

.jobs { display: flex; flex-direction: column; gap: 0.9rem; padding: 1rem; }
.job {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
}
.job--new { border-color: var(--bad); background: #241019; }
.job--eta { border-color: var(--oil); }
.job--ready { border-color: var(--good); }
.job__head { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.job__code { font-size: 1.8rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.job__name { font-size: 1.15rem; margin: 0.2rem 0; }
.job__qty { font-size: 1.4rem; font-weight: 700; color: var(--muted); }
.job__meta { color: var(--faint); font-size: 0.9rem; margin-bottom: 0.8rem; }
.job__acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.5rem; }
.job__acts .btn { min-height: 56px; }

/* --- PIN კლავიატურა / დიალოგი ---------------------------------------------- */

.modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;                 /* გრძელი ფანჯარა — მთლიანად ისქროლება */
  overscroll-behavior: contain;
}
.modal[hidden] { display: none; }
.modal__backdrop { position: fixed; inset: 0; background: rgba(3, 10, 16, .72); backdrop-filter: blur(2px); }
.modal__panel {
  position: relative;
  width: min(400px, 100%);
  max-height: calc(100vh - 2.5rem);  /* ეკრანზე მეტი არ იზრდება */
  overflow-y: auto;
  margin: auto;                      /* პატარა ფანჯარა შუაში რჩება */
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  animation: modal-in .2s ease;
  -webkit-overflow-scrolling: touch;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.pin__dots { display: flex; justify-content: center; gap: 0.85rem; height: 26px; margin: 0.75rem 0 0.5rem; }
.pin__dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--bg-sunken); }
.pin__dots i.is-on { background: var(--accent); border-color: var(--accent); }
.pin__err { min-height: 1.5rem; text-align: center; color: var(--bad); font-size: 0.9rem; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.keys .btn { min-height: 62px; font-size: 1.5rem; font-weight: 700; }

/* --- შემკვეთის გვერდი (track.php) ------------------------------------------ */

body.track-body { background: var(--chrome-2); }
.track { max-width: 720px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.track__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.track__head strong { display: block; font-size: 1.1rem; }
.track__head small { color: var(--faint); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.track__card { margin-top: 1rem; }
.track__bar { position: relative; height: 26px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; }
.track__bar-fill { height: 100%; border-radius: 999px; transition: width .4s ease;
  background: linear-gradient(90deg, #ffd400, #ffaa06); }
.track__bar-fill--ready { background: linear-gradient(90deg, #2ea043, #48fc5a); }
.track__bar-fill--late { background: linear-gradient(90deg, #e5484d, #ff8f8f); }
.track__bar-num { position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; color: var(--text); text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.track__works { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: 1rem; }
.track__note { margin-top: 1.5rem; text-align: center; color: var(--faint); font-size: .82rem; }

/* --- toast ----------------------------------------------------------------- */

#toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  max-width: 340px;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  animation: toast-in .18s ease;
}
.toast--ok { border-left-color: var(--good); }
.toast--err { border-left-color: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateX(14px); } }

/* --- ავტორიზაცია / install ------------------------------------------------- */

.auth { min-height: 100svh; display: grid; place-items: center; padding: 1.5rem; background: var(--chrome-2); }
.auth__panel {
  width: min(420px, 100%);
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.auth__brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.auth__note { margin-top: 1rem; color: var(--faint); font-size: 0.85rem; }
.notice {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-strong);
}
.notice--bad { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.notice--good { background: var(--good-soft); border-color: var(--good); color: var(--good); }

.gate {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  padding: 1.5rem; text-align: center;
  background: rgba(5, 15, 24, .97);
}
.gate h2 { font-size: 1.8rem; }
.gate p { max-width: 520px; color: var(--muted); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ------------------------------------------------- სერვისების ხაზები ფასებით */

/* overflow: visible — თორემ ხელოსნის ჩამონათვალი იჭრება */
.lines { margin: 0 0 1rem; border: 1px solid var(--border); border-radius: 12px; }
.line:first-child { border-top-left-radius: 11px; border-top-right-radius: 11px; }
.line:last-child { border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; }

.lines__empty { padding: 0.9rem 1rem; font-size: 0.9rem; }

.line {
  display: grid;
  grid-template-columns: 1.3fr 1fr 62px 96px 90px 40px 36px;
  gap: 0.4rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-top: 1px solid var(--border);
}
.line:first-child { border-top: 0; }

.line--head {
  background: var(--bg-sunken);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0.5rem;
}
.line--head span:nth-child(n+2) { text-align: right; }

.line__name { min-width: 0; font-size: 0.92rem; line-height: 1.3; }

.line__qty, .line__price {
  min-height: 36px;
  padding: 0.3rem 0.5rem;
  text-align: right;
  font-size: 0.92rem;
}

.line__sum { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.line__del {
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.35rem;
  border-radius: 8px;
}
.line__del:hover { background: rgba(255, 107, 107, 0.15); color: #ff8b8b; }

@media (max-width: 560px) {
  .line { grid-template-columns: 1fr 50px 76px 70px 34px 30px; }
  .line .line__name { grid-column: 1 / -1; }
  .line .pickwrap { grid-column: 1 / -1; }
  .line--head { display: none; }
  .line__name { font-size: 0.85rem; }
}

.notice--warn { background: var(--oil-soft); border-color: var(--oil); color: var(--oil); }

.rqlist__head {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.5rem 0 -0.1rem;
}
.rqlist__head:first-child { margin-top: 0; }

.order__items {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.order__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.45rem 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.order__item:first-child { border-top: 0; }
.order__item b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* დოკუმენტის ნომერში წერტილი/ტირე — ფირფიტა არ სჭირდება */
.fids__code i.is-sep {
  min-width: 0;
  padding: 0 1px;
  background: none;
  box-shadow: none;
  color: var(--faint);
  font-weight: 600;
}

/* ------------------------------------------------------- ხელფასები */

.stat__sub { color: var(--faint); font-size: 0.78rem; }

.table tr.is-click { cursor: pointer; }
.table tr.is-click:hover td { background: rgba(255, 255, 255, 0.03); }
.table tr.is-dim td { opacity: 0.55; }
.table tr.total td { border-top: 2px solid var(--border-strong); background: var(--bg-sunken); }
.table tr.detail td { padding: 0; background: var(--bg-sunken); }

.detail__box { padding: 0.5rem 0.9rem 0.7rem; }
.detail__row {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 0.45rem 0;
  border-top: 1px dashed var(--border);
  font-size: 0.88rem;
}
.detail__row:first-child { border-top: 0; }
.detail__row .num { min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; }
.detail__row a { color: var(--accent); text-decoration: none; }

/* ------------------------------------------------------ ლიდერბორდი */

.lb__winner .card__body {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(255, 212, 0, 0.12), rgba(255, 170, 6, 0.04) 60%, transparent);
}
.lb__crown { font-size: 3rem; line-height: 1; filter: drop-shadow(0 6px 18px rgba(255, 212, 0, 0.35)); }
.lb__winner-text { flex: 1; min-width: 220px; }
.lb__winner-text h2 { margin: 0.15rem 0; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--accent); }
.lb__winner-text p { margin: 0; }
.lb__winner-seg { align-self: center; }

.lb__bar { height: 10px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; }
.lb__bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd400, #ffaa06); border-radius: 999px; }
.table tr.is-top td { background: rgba(255, 212, 0, 0.04); }

.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  align-items: end;
  margin: 0.25rem 0 1.5rem;
}
.podium__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
}
.podium__slot--empty { min-height: 40px; }
.podium__medal { font-size: 2rem; line-height: 1; }
.podium__name { font-weight: 700; margin-top: 0.3rem; }
.podium__count { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.podium__sub { color: var(--faint); font-size: 0.8rem; }
.podium__bar {
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-bottom: 0;
}
.podium__slot--1 .podium__bar { background: linear-gradient(180deg, rgba(255, 212, 0, 0.35), var(--surface)); border-color: rgba(255, 212, 0, 0.5); }

@media (max-width: 560px) {
  .podium__count { font-size: 1.4rem; }
  .podium__name { font-size: 0.85rem; }
}

/* ------------------------------------------------ აკეცვადი სექციები */

.fold { overflow: hidden; }

.fold__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem 0.9rem 1.15rem;
  text-align: left;
  background: linear-gradient(90deg, rgba(255, 212, 0, 0.06), transparent 45%);
  border: 0;
  border-left: 4px solid transparent;
  border-bottom: 1px solid transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.fold__head:hover { background: linear-gradient(90deg, rgba(255, 212, 0, 0.12), rgba(255, 255, 255, 0.03) 60%); }
.fold__head:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.fold__head h2 { margin: 0; font-size: 1.05rem; }

/* ღია მდგომარეობა — ყვითელი ზოლი მარცხნივ და გამყოფი ხაზი */
.fold.is-open .fold__head {
  border-left-color: var(--accent);
  border-bottom-color: var(--border);
  background: linear-gradient(90deg, rgba(255, 212, 0, 0.1), transparent 55%);
}

/* რაოდენობის აბრა */
.fold__head .faint {
  margin-left: auto;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ჩამოშლის ღილაკი — მრგვალი, ფირმული ყვითელი ღიად */
.fold__chev {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  flex: none;
  transition: transform 0.22s ease, background 0.18s ease, color 0.18s ease;
}
.fold__head:hover .fold__chev { color: var(--text); border-color: var(--accent); }
.fold.is-open .fold__chev {
  transform: rotate(180deg);
  background: linear-gradient(45deg, #ffd400, #ffaa06);
  color: var(--accent-ink);
  border-color: transparent;
}

@media (max-width: 560px) {
  .fold__head { gap: 0.5rem; padding-left: 0.85rem; }
  .fold__head h2 { font-size: 0.95rem; }
}

/* ------------------------------------------- ტაბლო: დღეს დასასრულებელი */

.due {
  background: #071219;
  border-top: 2px solid #16303f;
  padding: .45rem .9rem .55rem;
  max-height: 34vh;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.due__head {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--faint);
  font-size: clamp(.68rem, .9vw, .9rem);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.due__title { color: var(--accent); font-weight: 700; }
.due__count { padding: .1rem .55rem; border-radius: 999px; background: var(--bg-sunken); border: 1px solid var(--border); letter-spacing: 0; }
.due__legend { margin-left: auto; display: flex; align-items: center; gap: .4rem; letter-spacing: 0; text-transform: none; }
.due__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.due__dot--ask { background: var(--bad); box-shadow: 0 0 10px var(--bad); animation: due-blink 1s steps(1, end) infinite; }

.due__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: .5rem;
  overflow-y: auto;
}

.due__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "plate no" "car car" "who when" "prog prog";
  gap: .1rem .6rem;
  align-items: baseline;
  padding: .5rem .7rem .55rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: clamp(.78rem, 1vw, 1rem);
}
.due__plate { grid-area: plate; font-size: 1.25em; font-weight: 800; letter-spacing: .04em; }
.due__no    { grid-area: no; color: var(--accent); font-weight: 700; font-family: ui-monospace, 'Roboto Mono', monospace; }
.due__car   { grid-area: car; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.due__who   { grid-area: who; font-weight: 600; }
.due__when  { grid-area: when; text-align: right; color: var(--faint); font-size: .9em; }
.due__when.is-late { color: var(--bad); font-weight: 700; }
.due__prog  { grid-area: prog; height: 4px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; margin-top: .25rem; }
.due__prog i { display: block; height: 100%; background: linear-gradient(90deg, #ffd400, #ffaa06); }
.due__item.is-overdue { border-color: rgba(255, 107, 107, .45); }

/* რასაც ითხოვენ — წითლად, ციმციმით, ბეჯით */
.due__item.is-asked {
  background: rgba(255, 107, 107, .12);
  border: 2px solid var(--bad);
  box-shadow: 0 0 0 0 rgba(255, 107, 107, .6);
  animation: due-ask 1.1s ease-in-out infinite;
  padding-top: 1.55rem;
}
.due__item.is-asked .due__plate { color: #ff8b8b; }
.due__item.is-asked .due__prog i { background: var(--bad); }
.due__badge {
  position: absolute;
  top: .3rem; left: .5rem;
  padding: .12rem .5rem;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  font-size: .7em;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: due-blink 1s steps(1, end) infinite;
}
.due__item.is-urgent { animation-duration: .6s; }

@keyframes due-ask {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, .65); }
  50%      { box-shadow: 0 0 22px 4px rgba(255, 107, 107, .35); }
}
@keyframes due-blink { 50% { opacity: .25; } }

/* ------------------------------------------- ტაბლო: წითელი ციმციმი */

/* მთელი ეკრანის ციმციმი ახალი მოთხოვნისას — რამდენიმე წამი */
.flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
}
.flash.is-on {
  background: radial-gradient(ellipse at center, transparent 45%, rgba(255, 40, 40, .55) 100%);
  animation: flash-red .55s ease-in-out infinite;
}
.flash.is-on.is-urgent {
  background: rgba(255, 30, 30, .35);
  animation: flash-red .3s steps(1, end) infinite;
}
@keyframes flash-red { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* სანამ უპასუხო მოთხოვნაა — წითელი პულსი ეკრანის კიდეზე */
body.is-alert .fids::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  box-shadow: inset 0 0 0 6px rgba(255, 60, 60, .85);
  animation: edge-pulse 1.4s ease-in-out infinite;
}
body.is-alert-urgent .fids::after { animation-duration: .7s; box-shadow: inset 0 0 0 10px rgba(255, 40, 40, .95); }
@keyframes edge-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ------------------------------------------- ტაბლო: სასწრაფო vs ჩვეულებრივი */

/* სასწრაფო — წითელი ფონი, მარცხენა ზოლი, პულსი და ბეჯი; ჩვეულებრივი უცვლელია */
.fids__row.is-urgent {
  box-shadow: inset 6px 0 0 var(--bad);
  background: linear-gradient(90deg, rgba(255, 60, 60, .22), rgba(255, 60, 60, .06) 55%, transparent);
}
.fids__row.is-new.is-urgent {
  animation: fids-urgent 1s ease-in-out infinite;
}
.fids__row.is-urgent .fids__part { color: #ffb3b3; }
.fids__row.is-urgent .fids__code i { color: #ff8f8f; border-color: rgba(255, 107, 107, .5); }
.fids__row.is-urgent .fids__timer { color: var(--bad); }
.fids__urgent {
  display: inline-block;
  margin-left: .5em;
  padding: .05em .55em;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  font-style: normal;
  font-weight: 800;
  font-size: .62em;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: middle;
  animation: due-blink 1s steps(1, end) infinite;
}
@keyframes fids-urgent {
  0%, 100% { background: linear-gradient(90deg, rgba(255, 60, 60, .22), rgba(255, 60, 60, .06) 55%, transparent); }
  50%      { background: linear-gradient(90deg, rgba(255, 60, 60, .42), rgba(255, 60, 60, .14) 55%, transparent); }
}

/* გამოძახება — ლურჯი, ნაწილისგან განსხვავებული */
.fids__row.is-call {
  background: linear-gradient(90deg, rgba(90, 160, 255, .18), rgba(90, 160, 255, .04) 55%, transparent);
  box-shadow: inset 6px 0 0 #5aa0ff;
}
.fids__row.is-call .fids__part { color: #bfd8ff; }
.fids__row.is-call .fids__code i.is-empty { color: #5aa0ff; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .6em; }
.fids__row.is-call.is-new { animation: fids-call 1.2s ease-in-out infinite; }
.fids__row.is-call.is-urgent { box-shadow: inset 6px 0 0 var(--bad); }
@keyframes fids-call {
  0%, 100% { background: linear-gradient(90deg, rgba(90, 160, 255, .18), rgba(90, 160, 255, .04) 55%, transparent); }
  50%      { background: linear-gradient(90deg, rgba(90, 160, 255, .36), rgba(90, 160, 255, .1) 55%, transparent); }
}

/* პლანშეტი — გამოძახების ბარათი */
.job--call { border-left: 5px solid #5aa0ff; }
.job--call.job--new { background: rgba(90, 160, 255, .08); }
.job--call.job--urgent { border-left-color: var(--bad); }

/* მენეჯერი — გამოძახების ბარათი */
.card.call { border-color: rgba(90, 160, 255, .45); }
.btn--danger { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); font-weight: 600; }
.btn--danger:hover { background: var(--bad); color: #fff; }

/* ------------------------------------------------ სერვისების კატეგორიები */

.groups { display: grid; gap: .75rem; margin-bottom: 1rem; }
.group { border: 1px solid var(--border); border-radius: 12px; padding: .75rem .9rem; background: var(--bg-sunken); }
.group__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.group__head b { font-size: 1rem; }
.group__head .faint { margin-right: auto; }
.group__items { display: flex; flex-wrap: wrap; gap: .4rem; }
.group__items .chip small { color: var(--faint); margin-left: .25rem; }

.picklist { max-height: 46vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: .35rem; display: grid; gap: .2rem; }
.pick { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: 8px; cursor: pointer; }
.pick:hover { background: rgba(255, 255, 255, .04); }
.pick.is-on { background: var(--accent-soft); }
.pick input { width: auto; min-height: auto; margin: 0; }
.pick small { margin-left: auto; }
.suggest__item--group { background: rgba(255, 212, 0, 0.06); border-left: 3px solid var(--accent); }
.table td.roles label { display: flex; align-items: center; gap: .35rem; white-space: nowrap; font-size: .85rem; cursor: pointer; }
.table td.roles input { width: auto; min-height: auto; margin: 0; }

/* ჩამრთველი ველი */
.check { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 500; padding: .5rem .75rem; border: 1px dashed var(--border-strong); border-radius: 10px; }
.check input { width: auto; min-height: auto; margin: 0; }
.check:hover { border-color: var(--accent); }
.check--bare { padding: .35rem .45rem; border-style: solid; }
.check--bare input { width: 20px; height: 20px; accent-color: var(--accent); }

.line__emp { min-height: 36px; padding: 0.3rem 0.5rem; font-size: 0.88rem; }
/* მიბმული ხელოსნები — ჭრილ თანხიან სამუშაოზე სიიდან ირჩევა */
.line__empsel { width: 100%; min-width: 0; min-height: 36px; padding: 0.3rem 0.4rem; font-size: 0.82rem; }
.line__empsel.is-ok { border-color: var(--good); }
.line__emp.is-ok { border-color: var(--good); }
.line__emp.is-bad { border-color: var(--bad); }

/* ------------------------------------------------------------- ბირკები */

.tagno { display: inline-block; padding: .1rem .55rem; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.tagno--big { font-size: 1.05rem; padding: .15rem .7rem; }

.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .45rem; }
.tagcell {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .5rem .35rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-sunken); color: var(--text);
  font: inherit; cursor: pointer; text-align: center;
}
.tagcell b { font-size: 1.35rem; font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; }
.tagcell span { font-size: .72rem; font-family: ui-monospace, 'Roboto Mono', monospace; }
.tagcell small { font-size: .7rem; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tagcell:hover { border-color: var(--accent); }
.tagcell.is-taken { background: var(--accent-soft); border-color: rgba(255, 212, 0, .45); }
.tagcell.is-taken b { color: var(--accent); }
.tagcell.is-late { border-color: var(--bad); }
.tagcell.is-late b { color: var(--bad); }

/* ტაბლო — ბირკა დიდი ციფრით, ნაწილი ქვეშ */
.fids__part { display: flex; align-items: center; gap: .55em; min-width: 0; }
.fids__tag {
  flex: none;
  min-width: 2.1em;
  padding: .05em .3em;
  border-radius: 8px;
  background: linear-gradient(45deg, #ffd400, #ffaa06);
  color: var(--accent-ink);
  font-size: 1.35em;
  font-weight: 900;
  text-align: center;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 18px rgba(255, 212, 0, .35);
}
.fids__part-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fids__row.is-urgent .fids__tag { background: var(--bad); color: #fff; box-shadow: 0 0 18px rgba(255, 60, 60, .5); }
.due__tag { display: inline-block; font-style: normal; padding: 0 .4em; margin-right: .4em; border-radius: 6px; background: linear-gradient(45deg, #ffd400, #ffaa06); color: var(--accent-ink); font-weight: 900; }
.due__item.is-asked .due__tag { background: var(--bad); color: #fff; }

/* --- ეკონომიკა (vault.php) ------------------------------------------------- */

.segmented a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 0.9rem; border-radius: 9px;
  color: var(--muted); font-size: 0.9rem; text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.segmented a:hover { color: var(--text); }
.segmented a.is-active { background: linear-gradient(45deg, #ffd400, #ffaa06); color: var(--accent-ink); font-weight: 600; }
.segmented a.is-active.is-danger { background: linear-gradient(45deg, #ff6b6b, #e04b4b); color: #fff; }
.segmented--wrap { flex-wrap: wrap; }
.segmented--wrap a { flex: 0 0 auto; }
/* სავალდებულო არჩევანი — სანამ არ აირჩევს, ნათლად ჩანს (intake.php) */
.segmented.is-bad { border-color: var(--bad); box-shadow: 0 0 0 2px rgba(255, 107, 107, .25); }

/* საიდუმლო გვერდის ჩანართები — წებოვანი ზოლი, რომ გვერდი არ გაიწელოს */
.vtabs { display: flex; flex-wrap: wrap; gap: .4rem; position: sticky; top: 0; z-index: 6;
  margin: 0 0 1.25rem; padding: .5rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); }
.vtabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem;
  border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; font-size: .95rem; }
.vtabs a b { color: var(--text); font-variant-numeric: tabular-nums; }
.vtabs a:hover { background: var(--chrome-hover); color: var(--text); }
.vtabs a.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.vtabs a.is-active b { color: var(--accent-ink); }
@media (max-width: 700px) { .vtabs { overflow-x: auto; flex-wrap: nowrap; } }
.econ__grid[hidden] { display: none; }

.econ__filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.vfilters__toggle { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.vfilters__toggle h2 { margin: 0; }
.vfilters__toggle .fold__chev { transition: transform .15s ease; }
.vfilters.is-open .fold__chev { transform: rotate(180deg); }
.econ__range { flex-wrap: wrap; margin-left: auto; }
.econ__range input[type="date"] { width: auto; min-width: 150px; }
.econ__grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 1100px) { .econ__grid { grid-template-columns: 1fr; } .econ__range { margin-left: 0; } }

.stat--good { border-color: var(--good); }
.stat--good .stat__value { color: var(--good); }
.stat--warn { border-color: var(--oil); }
.stat--warn .stat__value { color: var(--oil); }

.bar { height: 10px; border-radius: 6px; background: var(--bg-sunken); overflow: hidden; min-width: 80px; }
.bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ffd400, #ffaa06); }
.table tr.is-total td { border-top: 2px solid var(--border); font-weight: 600; }

/* ხელფასის ორი ჭრილი ერთ ცხრილში — თვალით გასარჩევი (vault.php) */
.sal-real { background: rgba(72, 252, 90, .08); }
.sal-real b, th.sal-real { color: var(--good); }
.sal-hidden { background: var(--bg-sunken); }
.sal-hidden b, th.sal-hidden { color: var(--oil); }
.table th.sal-real, .table th.sal-hidden { font-weight: 700; }
.sal-real + .sal-hidden { border-left: 2px solid var(--border-strong); }
.table tr.is-total .sal-real, .table tr.is-total .sal-hidden { border-top-color: var(--border-strong); }
.sal-key { display: inline-flex; align-items: center; gap: .35rem; }
.sal-key i { width: .8rem; height: .8rem; border-radius: 3px; display: inline-block; }
.sal-key--real i { background: rgba(72, 252, 90, .35); border: 1px solid var(--good); }
.sal-key--hidden i { background: var(--bg-sunken); border: 1px solid var(--oil); }

/* --- ხელოსნის ტელეფონი (my.php) ------------------------------------------ */

body.phone { background: var(--bg); }
.phone__bar strong { font-size: 1.05rem; }
.segmented .cnt { display: inline-block; min-width: 1.4em; margin-left: .3em; padding: 0 .4em; border-radius: 999px; background: var(--bad); color: #fff; font-size: .8em; font-weight: 700; }
.segmented .cnt:empty { display: none; }
@media (max-width: 480px) {
  .jobs { padding: .75rem; }
  .job__code { font-size: 1.4rem; }
  .job__acts { grid-template-columns: 1fr 1fr; }
  .job__acts .btn { min-height: 52px; }
}

/* მოლოდინის რეჟიმი — მთელი ეკრანი, ეკრანი არ ქრება */
.standby {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column;
  background: #050f18; color: var(--text);
  overflow: auto;
}
.standby[hidden] { display: none; }
.standby__idle {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.5rem; text-align: center;
}
.standby__idle[hidden] { display: none; }
.standby__idle h2 { margin: .5rem 0 0; font-size: 1.3rem; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.standby__idle p { margin: 0; color: var(--muted); }
.standby__idle .btn { margin-top: 2rem; }
.standby__clock { font-size: 22vw; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
@media (min-width: 600px) { .standby__clock { font-size: 8rem; } }
.standby__date { color: var(--muted); font-size: 1.1rem; }
.standby__pulse {
  width: 18px; height: 18px; border-radius: 50%; margin-bottom: 1rem;
  background: var(--good); box-shadow: 0 0 0 0 rgba(60, 200, 120, .6);
  animation: standby-pulse 2.4s ease-out infinite;
}
@keyframes standby-pulse {
  0% { box-shadow: 0 0 0 0 rgba(60, 200, 120, .6); }
  70% { box-shadow: 0 0 0 26px rgba(60, 200, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(60, 200, 120, 0); }
}
.standby__alert { flex: 1; display: flex; flex-direction: column; background: #1a0b10; }
.standby__alert[hidden] { display: none; }
.standby__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1rem; background: var(--bad); color: #fff; font-size: 1.15rem;
  animation: standby-head 1s steps(1, end) infinite;
}
@keyframes standby-head { 50% { background: #7a1020; } }
.standby__alert .job { border-width: 3px; }

/* ხელოსნის ტელეფონი — გეგმები და ჩანართები */
.segmented--tabs { flex-wrap: wrap; }
.segmented--tabs button { flex: 1 1 40%; padding: 0 .5rem; font-size: .88rem; }
.segmented .cnt--soft { background: var(--oil); color: var(--accent-ink); }
.jobs__h { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; font-weight: 600; letter-spacing: .04em; }
.plan { border-color: var(--border); }
.plan--late { border-color: var(--bad); }
.plan--closed { opacity: .7; }
.plan__lines { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .6rem; }
.plan__line { color: var(--muted); font-size: .95rem; }
.plan__line.is-mine { color: var(--text); font-weight: 600; }
.progress { height: 6px; border-radius: 4px; background: var(--bg-sunken); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #ffd400, #ffaa06); }
.standby__mini { display: flex; flex-direction: column; gap: .35rem; margin-top: 1rem; width: min(100%, 420px); }
.standby__mini .mini { padding: .45rem .7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); text-align: left; font-size: .95rem; }
.standby__mini .mini--eta { border-color: var(--oil); }
.standby__mini .mini--ready { border-color: var(--good); }

/* მოლარე: ქეშის მიღება */
.paysum { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.paysum > div { display: flex; flex-direction: column; gap: .2rem; padding: .6rem .7rem; background: var(--bg-sunken); border-radius: 10px; text-align: center; }
.paysum b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
#payQuick { flex-wrap: wrap; }

/* მენიუში მოთხოვნების ციფრი */
.nav__badge { margin-left: auto; min-width: 22px; padding: 0 .4rem; border-radius: 999px; font-size: .78rem; font-weight: 700; text-align: center; line-height: 20px; }
.nav__badge:empty { display: none; }
.nav__badge.is-wait { background: var(--oil); color: var(--accent-ink); }
.nav__badge.is-ready { background: var(--good); color: #04120a; animation: badge-pulse 1.6s ease-in-out infinite; }
@keyframes badge-pulse { 50% { opacity: .45; } }

/* შეკვეთის ბარათზე — ხელოსნის პასუხები */
.order__reqs { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 .75rem; }
.order__reqs:empty { display: none; }
.reqchip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; font-size: .85rem; background: var(--bg-sunken); border: 1px solid var(--border); }
.reqchip--new { border-color: var(--bad); color: var(--bad); }
.reqchip--seen { border-color: var(--border-strong); }
.reqchip--eta { border-color: var(--oil); color: var(--oil); }
.reqchip--ready { border-color: var(--good); color: var(--good); font-weight: 600; }

/* ტაბლო: ხმამაღალი გამოცხადება */
.pa { position: fixed; inset: auto 0 0 0; z-index: 60; padding: 1rem 1.5rem 1.4rem; background: linear-gradient(0deg, rgba(5,15,24,.98) 70%, rgba(5,15,24,0)); }
.pa[hidden] { display: none; }
.pa__box { border: 3px solid var(--accent); border-radius: 18px; background: #0d2231; padding: 1rem 1.6rem; box-shadow: 0 0 40px rgba(255, 212, 0, .25); }
.pa__head { display: flex; align-items: center; gap: .6rem; color: var(--accent); font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pa__head small { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.pa__text { margin-top: .4rem; font-size: clamp(1.8rem, 4.2vw, 3.6rem); font-weight: 800; line-height: 1.15; }
.pa.is-urgent .pa__box { border-color: var(--bad); background: #2a0d14; box-shadow: 0 0 50px rgba(255, 60, 60, .35); animation: pa-blink 1s steps(1, end) infinite; }
.pa.is-urgent .pa__head { color: var(--bad); }
@keyframes pa-blink { 50% { border-color: #7a1020; box-shadow: none; } }

/* გამოცხადების გვერდი */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }

/* გამოცხადება: ხმის ჩაწერა */
.rec { margin: 1rem 0; padding: .9rem 1rem; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--bg-sunken); }
.rec__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin-bottom: .6rem; }
.rec__time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--bad); }

/* ქართული კლავიატურის ჩამრთველი */
.kabtn { margin-top: .5rem; }
.kabtn.is-on { border-color: var(--accent); color: var(--accent-strong); }

/* თანამშრომლის სურათი */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); display: block; }
.avatar--none { display: grid; place-items: center; background: var(--bg-sunken); color: var(--muted); font-weight: 700; }

/* ტაბლო: გამოძახება ეკრანის შუაში */
.callbox { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; pointer-events: none; background: rgba(5, 15, 24, .82); }
.callbox[hidden] { display: none; }
.callbox__in { text-align: center; padding: 2rem 2.5rem; border: 4px solid #5aa0ff; border-radius: 26px; background: #0d2231; box-shadow: 0 0 70px rgba(90, 160, 255, .35); animation: call-in .35s ease; }
.callbox__photo { width: min(38vh, 340px); height: min(38vh, 340px); object-fit: cover; border-radius: 50%; border: 6px solid #5aa0ff; margin-bottom: 1rem; }
.callbox__who { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; }
.callbox__why { margin-top: .4rem; font-size: clamp(1.2rem, 2.6vw, 2.2rem); color: #9fd0ff; }
.callbox__by { margin-top: .6rem; color: var(--muted); font-size: 1.1rem; }
.callbox.is-urgent .callbox__in { border-color: var(--bad); box-shadow: 0 0 70px rgba(255, 60, 60, .45); animation: call-in .35s ease, pa-blink 1s steps(1, end) infinite; }
.callbox.is-urgent .callbox__photo { border-color: var(--bad); }
.callbox.is-urgent .callbox__why { color: #ffb4b4; }
@keyframes call-in { from { opacity: 0; transform: scale(.9); } }

/* ხაზის ფოტოები */
.line__cam { min-height: 34px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-sunken); color: var(--text); cursor: pointer; position: relative; }
.line__cam:hover { border-color: var(--accent); }
.line__cam i { position: absolute; top: -6px; right: -6px; min-width: 16px; padding: 0 3px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-style: normal; font-weight: 700; }
.line__thumbs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; padding: .35rem 0 .1rem; }
.thumb { position: relative; display: inline-block; }
.thumb img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-strong); cursor: zoom-in; display: block; }
.thumb__x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: .7rem; line-height: 20px; cursor: pointer; padding: 0; }
.itemphotos { display: inline-flex; gap: .3rem; margin-left: .5rem; vertical-align: middle; }
.itemphotos img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-strong); cursor: zoom-in; }

/* ფოტოს დიდი ხედი */
.photoview { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(3, 10, 16, .93); padding: 2rem; }
.photoview[hidden] { display: none; }
.photoview img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.photoview__x { position: absolute; top: 1rem; right: 1.2rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.photoview__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.photoview__nav--prev { left: 1rem; }
.photoview__nav--next { right: 1rem; }
.photoview__n { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: var(--muted); font-variant-numeric: tabular-nums; }

/* გადახდის განაწილება სერვისებზე */
.alloc { margin-bottom: 1rem; padding: .75rem .85rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-sunken); }
.alloc__head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.alloc__head b { margin-right: auto; }
.alloc__row { display: grid; grid-template-columns: 1fr auto 110px; gap: .5rem; align-items: center; padding: .35rem 0; border-top: 1px solid var(--border); }
.alloc__row:first-child { border-top: 0; }
.alloc__row.is-done { opacity: .65; }
.alloc__name { font-weight: 500; }
.alloc__nums { font-size: .85rem; font-variant-numeric: tabular-nums; text-align: right; }
.alloc__left { color: var(--oil); }
.alloc__in { min-height: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.alloc__in.is-bad { border-color: var(--bad); }
.alloc__sum { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.alloc__sum.is-bad { color: var(--bad); font-weight: 600; }
@media (max-width: 560px) { .alloc__row { grid-template-columns: 1fr 100px; } .alloc__nums { grid-column: 1 / -1; text-align: left; } }

/* მოდალში ცხრილები მთლიანად ჩანს — სქროლი თავად ფანჯარას აქვს */
.modal__panel .table-scroll { max-height: none; }

/* ხელმოწერის ველი */
.signpad { margin-bottom: 1rem; }
.signpad__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.signpad__head .faint { margin-right: auto; font-size: .85rem; }
.signpad canvas {
  display: block; width: 100%; height: 180px;
  background: #fff; border: 2px dashed var(--border-strong); border-radius: 12px;
  touch-action: none; cursor: crosshair;
}
.signpad canvas:hover { border-color: var(--accent); }

/* ბირკა გამოძახების ოვერლეიზე */
.callbox__tag { margin-top: .8rem; font-size: clamp(1.4rem, 3.4vw, 2.6rem); color: var(--accent); font-weight: 700; }
.callbox__tag b { font-size: 1.6em; font-weight: 800; }
.callbox__tag small { color: var(--muted); font-size: .5em; font-weight: 400; }
.callbox__tag[hidden] { display: none; }

/* ხელოსნის ჩამონათვალი — ფოკუსზევე იხსნება */
.pickwrap { position: relative; display: block; min-width: 0; }
.pickwrap > input { width: 100%; }
/* სახელები უნდა ეტეოდეს — ვიწრო უჯრაშიც გაიშლება */
.suggest--emp { max-height: 300px; right: auto; min-width: min(280px, 72vw); width: max(100%, 280px); }
.suggest--emp .suggest__item { padding: 0.5rem 0.75rem; }
.suggest--emp .suggest__item b { font-size: 0.95rem; }
@media (max-width: 760px) { .suggest--emp { min-width: 0; width: 100%; } }
.suggest__item.is-cur { background: var(--accent-soft); color: var(--accent-strong); }

/* ხაზები საშუალო ეკრანზე: ხელოსანი ცალკე რიგში, რომ სახელები ეტეოდეს */
@media (max-width: 1180px) and (min-width: 721px) {
  .line { grid-template-columns: 1fr 62px 96px 90px 40px 36px; }
  .line .pickwrap { grid-column: 1 / -1; }
  .line--head span:nth-child(2) { display: none; }
  .line--head { grid-template-columns: 1fr 62px 96px 90px 40px 36px; }
}

/* ბირკები მიღებაში — თითო დეტალს ცალკე ნომერი (ბლოკი, კალენვალი…) */
.tagrows { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.tagrow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 34px; gap: 0.4rem; align-items: center; }
.tagrow__no { text-align: center; font-weight: 800; font-size: 1.1rem; }
.tagrow__hint { grid-column: 1 / -1; font-size: 0.8rem; color: var(--faint); margin: -0.2rem 0 0; }
.tagrow__hint.is-ok { color: var(--good); }
.tagrow__hint.is-bad { color: var(--bad); }

/* ხაზი → რომელ დეტალზეა */
.line__tag {
  display: block; font-size: 0.78rem; padding: 0.1rem 0.25rem; margin: 0.2rem 0 0;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface-2); color: var(--muted);
  min-width: 96px; max-width: 100%;
}
.line__tag:focus { outline: 2px solid var(--ring); }

/* ველი, რომელსაც მთელი რიგი სჭირდება (ბირკები დეტალების სახელებით) */
.form__row .field--wide { grid-column: 1 / -1; }
.field--wide .row { flex-wrap: wrap; }
.field--wide .row > input { flex: 1 1 160px; }

/* ბირკა ხაზზე და შესრულებული სამუშაო */
.tagno--sm { font-size: 0.78rem; padding: 0.05rem 0.35rem; vertical-align: middle; }
.tagno--big small { font-weight: 600; font-size: 0.72em; opacity: 0.85; margin-left: 0.2rem; }
.order__item--done { background: var(--good-soft); border-radius: 8px; }
.order__item--done > span:first-child { opacity: 0.92; }

/* ხელოსნის გეგმები — თითო სამუშაოს თავისი „მოვრჩი“ */
.plan__line { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.plan__line.is-done { color: var(--faint); }
.plan__line.is-done .tag--done { font-weight: 700; }
.plan__btn { margin-left: auto; }

/* შემკვეთის ნომერი ბარათზე — ერთი დაჭერით სწორდება */
.phonebtn { margin-top: 0.3rem; font-weight: 600; letter-spacing: .02em; }

/* ხაზის ჯამი — ქვეშ დღგ-ით მრგვალი თანხა */
.line__sum small {
  display: block; font-size: 0.72rem; font-weight: 600;
  color: var(--accent); opacity: .85; letter-spacing: .01em;
}

/* შემკვეთის გვერდი — გატანილი ნივთი */
.track__bar-fill--done { background: linear-gradient(90deg, #1b6b32, #2ea043); }

/* უსახელო ჩამრთველი ბარათზე — „ფინანსურად არ აისახოს“ */
.obx { padding: .15rem .3rem; vertical-align: middle; border-color: var(--border); }
.obx input { width: 16px; height: 16px; }
.order--off { border-left: 3px solid var(--oil); }

/* ახალი შემოსული მიღება — ყვითელი ციმციმი, რომ თვალში მოხვდეს */
@keyframes orderFresh {
  0%   { box-shadow: 0 0 0 0 var(--ring); border-color: var(--accent); }
  50%  { box-shadow: 0 0 0 10px rgba(255, 212, 0, 0); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 0 rgba(255, 212, 0, 0); border-color: var(--accent); }
}
.order--fresh {
  border-color: var(--accent);
  animation: orderFresh 1.4s ease-out 3;
}
.order--fresh::before {
  content: 'ახალი';
  position: absolute; top: -9px; left: 14px;
  padding: 1px 8px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .68rem; font-weight: 800; letter-spacing: .06em;
}
.order { position: relative; }

/* მოლარის ჩანართები — მრიცხველი ღილაკში */
#payFilters .cnt { margin-left: .35rem; }

/* გამოძახება — ორი ან სამი ადამიანი ერთდროულად, გვერდიგვერდ */
.callbox__row { display: flex; gap: clamp(.8rem, 2vw, 2rem); align-items: stretch; justify-content: center; flex-wrap: wrap; max-width: 96vw; }
.callbox__in { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.callbox.is-multi .callbox__in { padding: 1.4rem 1.6rem; }
.callbox.is-multi .callbox__photo { width: min(26vh, 230px); height: min(26vh, 230px); margin-bottom: .7rem; }
.callbox.is-multi .callbox__who { font-size: clamp(1.5rem, 3.2vw, 2.6rem); }
.callbox.is-multi .callbox__why { font-size: clamp(1rem, 1.8vw, 1.5rem); }
.callbox.is-multi .callbox__tag { font-size: clamp(1.1rem, 2.2vw, 1.8rem); }
.callbox.is-multi .callbox__by { font-size: .95rem; }
/* სასწრაფო — მხოლოდ ის ბარათი ანთია წითლად */
.callbox__in.is-urgent { border-color: var(--bad); box-shadow: 0 0 70px rgba(255, 60, 60, .45); }
.callbox__in.is-urgent .callbox__photo { border-color: var(--bad); }
.callbox__in.is-urgent .callbox__why { color: #ffb4b4; }

/* სახარჯი მასალა ნუსხაში — სხვა ფერი, რომ სერვისს არ აგერიოს */
.suggest__item--mat b { color: var(--oil); }

/* სახარჯი მასალის კოდი — შემსრულებლის ველის ადგილას */
.line__code { min-height: 36px; padding: 0.3rem 0.5rem; font-size: 0.88rem; letter-spacing: .02em; }
.line__code:focus { outline: 2px solid var(--ring); }
