/* ==========================================================
   Bioclean CRM — theme on top of Bootstrap 5.3
   ========================================================== */
:root {
  --brand: #00c1d7;          /* βασικό χρώμα (fills, indicators) */
  --brand-strong: #00a3b6;   /* εικονίδια σε λευκό */
  --brand-text: #00798a;     /* κείμενο/links (AA σε λευκό) */
  --brand-ink: #04262b;      /* κείμενο πάνω σε --brand */
  --brand-tint: #e5f8fb;
  --brand-tint-ink: #00505b;

  --ink: #0f2328;
  --ink-2: #33464b;
  --muted: #5a6b70;
  --line: #e4ecee;
  --line-2: #eef3f4;
  --line-strong: #d6e0e3;
  --soft: #f7fafb;

  --bs-body-font-family: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-font-size: .875rem;
  --bs-body-color: var(--ink);
  --bs-body-bg: #ffffff;
  --bs-border-color: var(--line);
  --bs-link-color: var(--brand-text);
  --bs-link-color-rgb: 0, 121, 138;
  --bs-link-hover-color: #005966;
  --bs-link-hover-color-rgb: 0, 89, 102;
  --bs-secondary-color: var(--muted);
  --bs-border-radius: .625rem;
  --bs-border-radius-lg: .875rem;
  --bs-focus-ring-color: rgba(0, 193, 215, .35);
}

body { line-height: 1.45; }
.text-muted, .text-body-secondary { color: var(--muted) !important; }
.tabular { font-variant-numeric: tabular-nums; }
.fw-semibold { font-weight: 600 !important; }
.small-xs { font-size: .75rem; }
.eyebrow { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-y: .55rem; --bs-btn-padding-x: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; }
.btn-sm { min-height: 36px; --bs-btn-padding-y: .35rem; }
.btn-brand {
  --bs-btn-color: var(--brand-ink); --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: var(--brand-ink); --bs-btn-hover-bg: #1ccbe0; --bs-btn-hover-border-color: #1ccbe0;
  --bs-btn-active-color: var(--brand-ink); --bs-btn-active-bg: #00adc1; --bs-btn-active-border-color: #00adc1;
  --bs-btn-focus-shadow-rgb: 0, 193, 215;
}
.btn-outline-soft {
  --bs-btn-color: var(--ink); --bs-btn-bg: #fff; --bs-btn-border-color: var(--line-strong);
  --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--soft); --bs-btn-hover-border-color: #c4d1d4;
  --bs-btn-active-bg: #eef3f4; --bs-btn-active-border-color: #c4d1d4; --bs-btn-active-color: var(--ink);
}
.btn-outline-brand {
  --bs-btn-color: #006a78; --bs-btn-bg: #fff; --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: var(--brand-tint-ink); --bs-btn-hover-bg: var(--brand-tint); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: var(--brand-tint-ink); --bs-btn-active-bg: var(--brand-tint); --bs-btn-active-border-color: var(--brand);
}
.btn-icon { width: 44px; padding: 0; }
.btn-mic { width: 44px; padding: 0; color: var(--brand-tint-ink); background: var(--brand-tint); border: 1px solid var(--brand); }
.btn-mic:hover { background: #d2f3f7; color: var(--brand-tint-ink); }

/* ---------- Layout ---------- */
.app { min-height: 100vh; }
.app-sidebar { width: 264px; flex: 0 0 264px; border-right: 1px solid var(--line); background: #fff; }
@media (min-width: 992px) {
  .app-sidebar.offcanvas-lg { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
}
.app-sidebar .offcanvas-body { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem 1rem; }
.app-main { min-width: 0; }
.app-topbar { border-bottom: 1px solid var(--line); padding: 1rem 2rem; background: #fff; }
.app-content { padding: 2rem; } /* πλήρες πλάτος οθόνης - χωρίς max-width (το design είχε 1320px και άφηνε κενό δεξιά) */
@media (max-width: 575.98px) { .app-topbar { padding: .875rem 1rem; } .app-content { padding: 1.25rem 1rem; } }

.brand-logo { height: 34px; width: auto; }
.badge-crm { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; color: var(--brand-text); background: var(--brand-tint); padding: .2rem .5rem; border-radius: 999px; }

/* Sidebar nav */
.side-nav .nav-link { display: flex; align-items: center; gap: .75rem; min-height: 40px; padding: 0 .75rem; border-radius: .5rem; color: var(--ink-2); }
.side-nav .nav-link i { font-size: 1.05rem; }
.side-nav .nav-link:hover { background: var(--soft); color: var(--ink); }
.side-nav .nav-link.active { background: var(--brand-tint); color: var(--ink); font-weight: 600; }
.side-nav .nav-link.active i { color: var(--brand-strong); }
.side-nav .count { margin-left: auto; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: .05rem .5rem; }
.count-brand { color: #006a78; background: var(--brand-tint); }
.nav-link.active .count-brand { background: #fff; }
.count-warn { color: #8a5300; background: #fff3df; }
.user-card { border: 1px solid var(--line); border-radius: .75rem; padding: .75rem; }

.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8125rem; background: #f0f4f5; color: var(--ink-2); flex: none; }
.avatar-sm { width: 30px; height: 30px; font-size: .6875rem; }
.avatar-xs { width: 24px; height: 24px; font-size: .625rem; }
.avatar-brand { background: var(--brand-tint); color: #006a78; }

/* Search */
.search-box { display: flex; align-items: center; gap: .625rem; height: 44px; padding: 0 .875rem; border: 1px solid var(--line); border-radius: .625rem; background: var(--soft); color: var(--muted); }
.search-box input { flex: 1; border: 0; background: transparent; outline: none; min-width: 0; color: var(--ink); }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.kbd { font-size: .75rem; border: 1px solid var(--line-strong); border-radius: .375rem; padding: .05rem .375rem; color: var(--muted); }

/* ---------- Surfaces ---------- */
.card-x { border: 1px solid var(--line); border-radius: .875rem; background: #fff; padding: 1.25rem; }
.card-x h2, .card-title-x { font-size: 1rem; font-weight: 700; margin: 0; }
.tile { background: var(--soft); border-radius: .625rem; padding: .875rem; }
.tile .num { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.divider-top { border-top: 1px solid var(--line-2); }

.kpi .value { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.kpi .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.progress { --bs-progress-height: 6px; --bs-progress-bg: #edf3f4; --bs-progress-bar-bg: var(--brand); --bs-progress-border-radius: 999px; }

/* Pills / status */
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15rem .625rem; border-radius: 999px; white-space: nowrap; }
.pill-new    { background: #e5f8fb; color: #006a78; }
.pill-survey { background: #fff3df; color: #8a5300; }
.pill-quote  { background: #eeeafd; color: #4b3aa6; }
.pill-won    { background: #e8f5e0; color: #2f6a12; }
.pill-muted  { background: #f0f2f3; color: #56656a; }
.pill-outline { border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.status-sync { display: inline-flex; align-items: center; gap: .375rem; font-size: .75rem; font-weight: 500; color: #2f6a12; background: #e8f5e0; padding: .25rem .625rem; border-radius: 999px; }
.status-sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4c9a1f; }

/* Tables */
.table-x { --bs-table-border-color: var(--line-2); margin: 0; font-size: .8125rem; }
.table-x thead th { font-size: .75rem; font-weight: 500; color: var(--muted); border-bottom-width: 0; padding-top: .5rem; padding-bottom: .5rem; white-space: nowrap; }
.table-x tbody td { padding-top: .75rem; padding-bottom: .75rem; vertical-align: middle; }
.table-x > :not(caption) > * > *:first-child { padding-left: 0; }
.table-x > :not(caption) > * > *:last-child { padding-right: 0; }

/* Segmented control */
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: .625rem; padding: 3px; gap: 2px; }
.segmented .btn { min-height: 36px; border: 0; --bs-btn-padding-x: .875rem; --bs-btn-font-weight: 500; color: var(--ink-2); }
.segmented .btn.active { background: var(--brand-tint); color: var(--brand-tint-ink); font-weight: 600; }
/* Συμπαγής εκδοχή: ίδιο ύψος με το διπλανό input (τα κουμπιά γεμίζουν το ύψος της γραμμής) */
.segmented-fit { padding: 2px; align-self: stretch; }
.segmented-fit .btn { min-height: 0; --bs-btn-padding-y: 0; }

/* Tabs */
.nav-tabs-x { border: 0; gap: .25rem; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
.nav-tabs-x .nav-link { border: 0; border-radius: 0; min-height: 44px; color: var(--ink-2); font-weight: 500; white-space: nowrap; margin-bottom: -1px; }
.nav-tabs-x .nav-link.active { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2.5px 0 var(--brand); background: transparent; }
.nav-tabs-x .nav-link .c { font-size: .75rem; color: var(--muted); font-weight: 500; margin-left: .375rem; }

/* Chips (tech tabs etc.) */
.chip { min-height: 36px; padding: 0 .75rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 500; font-size: .8125rem; }
.chip.active { border-color: var(--brand); background: var(--brand-tint); color: #00434c; font-weight: 700; }

/* ---------- Dashboard: technician timeline ---------- */
.tl { min-width: 640px; }
.tl-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; }
.tl-hours { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); font-size: .6875rem; color: var(--muted); }
.tl-track { position: relative; height: 44px; border-radius: .5rem; background: var(--soft); background-image: linear-gradient(to right, #e9eff1 1px, transparent 1px); background-size: calc(100% / 9) 100%; }
.tl-visit { position: absolute; top: 5px; bottom: 5px; border-radius: .375rem; padding: 0 .5rem; display: flex; align-items: center; font-size: .75rem; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tl-visit span { overflow: hidden; text-overflow: ellipsis; }
.v-done { background: var(--brand); color: var(--brand-ink); }
.v-now  { background: var(--brand-tint); color: var(--brand-tint-ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
.v-next { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px #c9d6d9; }
.legend-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.date-badge { width: 44px; flex: none; text-align: center; border: 1px solid var(--line); border-radius: .5rem; padding: .25rem 0; }
.date-badge .d { font-size: 1rem; font-weight: 700; line-height: 1.1; }
.date-badge .m { font-size: .625rem; color: var(--muted); text-transform: uppercase; }

/* ---------- Requests: kanban ---------- */
.board-wrap { background: #fbfdfd; overflow-x: auto; }
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 1rem; min-width: 1000px; }
.col-dot { width: 10px; height: 10px; border-radius: 50%; }
.req-card { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; flex-direction: column; gap: .5rem; padding: .875rem; border-radius: .75rem; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s; }
.req-card:hover { box-shadow: 0 0 0 1px #c9d6d9, 0 4px 12px rgba(0, 80, 90, .06); }
.req-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.req-card.selected { box-shadow: 0 0 0 2px var(--brand), 0 6px 16px rgba(0, 80, 90, .10); }
.next-action { display: flex; align-items: center; gap: .375rem; font-size: .75rem; font-weight: 600; color: var(--brand-tint-ink); background: var(--brand-tint); border-radius: .375rem; padding: .3rem .5rem; }
.detail-panel { border-left: 1px solid var(--line); }
@media (max-width: 1199.98px) { .detail-panel { border-left: 0; border-top: 1px solid var(--line); } }

.timeline-item { display: flex; gap: .75rem; }
.timeline-item .rail { display: flex; flex-direction: column; align-items: center; }
.timeline-item .rail .node { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--brand); margin-top: 4px; flex: none; }
.timeline-item .rail .line { width: 2px; flex: 1; background: var(--line); }
.timeline-item .body { padding-bottom: .875rem; }

/* ---------- Calendar: dispatch board ---------- */
.dispatch { min-width: 640px; }
.dispatch-head, .dispatch-body { display: grid; grid-template-columns: 64px repeat(4, minmax(0, 1fr)); }
.dispatch-head { border-bottom: 1px solid var(--line); }
.dispatch-head > div + div { border-left: 1px solid var(--line-2); padding: .75rem; }
.hour { height: 64px; font-size: .6875rem; color: var(--muted); text-align: right; padding: 4px 10px 0 0; box-sizing: border-box; }
.lane { position: relative; height: 576px; border-left: 1px solid var(--line-2); background-image: linear-gradient(to bottom, var(--line-2) 1px, transparent 1px); background-size: 100% 64px; }
.ev { position: absolute; left: 6px; right: 6px; border-radius: .5rem; padding: .375rem .5rem; display: flex; flex-direction: column; gap: 1px; overflow: hidden; font-size: .6875rem; }
.ev .t { font-weight: 700; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .s { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .n { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: .625rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ev-fixed  { background: var(--brand-tint); box-shadow: inset 0 0 0 1.5px var(--brand); color: #00434c; }
.ev-window { background: #fff; border: 1.5px dashed var(--brand-strong); color: #00434c; }
.ev-survey { background: #fff3df; box-shadow: inset 0 0 0 1.5px #f0a43a; color: #5e3900; }
.ev-pkg    { background: #eeeafd; box-shadow: inset 0 0 0 1.5px #8b7be6; color: #382a86; }
.route-panel { border-left: 1px solid var(--line); }
@media (max-width: 1199.98px) { .route-panel { border-left: 0; border-top: 1px solid var(--line); } }
.map { position: relative; height: 230px; border-radius: .75rem; overflow: hidden; background: #f3f8f9; border: 1px solid var(--line); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .stop { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: #fff; border: 2.5px solid var(--brand); font-size: .6875rem; font-weight: 700; color: #00434c; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 60, 70, .18); }
.map .map-label { position: absolute; left: 10px; top: 10px; font-size: .6875rem; font-weight: 600; background: #fff; border-radius: .375rem; padding: .2rem .5rem; color: var(--ink-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.stop-num { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--brand-tint); color: var(--brand-tint-ink); font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.notice-warn { background: #fff8ec; border: 1px solid #f6dfb4; border-radius: .75rem; padding: .75rem .875rem; color: #6b4100; }

/* ---------- Customer ---------- */
.cust-avatar { width: 56px; height: 56px; border-radius: .875rem; background: var(--brand-tint); color: var(--brand-tint-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.125rem; flex: none; }
.pkg-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .5rem; }
.pkg-step { height: 36px; border-radius: .5rem; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8125rem; }
.pkg-done { background: var(--brand); color: var(--brand-ink); }
.pkg-sched { background: var(--brand-tint); color: var(--brand-tint-ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
.pkg-open { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (max-width: 575.98px) { .pkg-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Quote ---------- */
.stepper { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .375rem; font-size: .8125rem; }
.stepper .s { display: flex; align-items: center; gap: .375rem; color: var(--muted); }
.stepper .s .b { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c9d6d9; display: inline-flex; align-items: center; justify-content: center; font-size: .6875rem; }
.stepper .s.current { color: #00434c; font-weight: 700; }
.stepper .s.current .b { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.stepper .sep { width: 24px; height: 1.5px; background: var(--line-strong); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: .5rem; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: var(--soft); color: var(--ink-2); font-size: 1rem; }
.qty button:hover { background: #edf3f4; }
.qty output { min-width: 40px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.form-switch-brand .form-check-input { width: 3em; height: 1.6em; cursor: pointer; }
.form-switch-brand .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-switch-brand .form-check-input:focus { box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); border-color: var(--brand); }
.date-chip { font-size: .75rem; font-weight: 600; color: var(--brand-tint-ink); background: var(--brand-tint); border-radius: .375rem; padding: .25rem .5rem; font-variant-numeric: tabular-nums; }
.textarea-mic { position: relative; }
.textarea-mic textarea { padding-right: 3.5rem; }
.textarea-mic .btn-mic { position: absolute; right: 10px; top: 10px; width: 36px; min-height: 36px; height: 36px; }
.form-control { border-color: var(--line-strong); }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.min-w-0 { min-width: 0; }
@media (min-width: 1200px) {
  .detail-panel { flex: 0 0 400px; width: 400px; }
  .route-panel { flex: 0 0 400px; width: 400px; }
}
.btn { --bs-btn-font-size: .875rem; }
.form-control, .form-select { font-size: .875rem; }

/* ---------- Calendar chips (week / month) ---------- */
.legend-sw.ev-fixed, .legend-sw.ev-window, .legend-sw.ev-survey, .legend-sw.ev-pkg { width: 14px; height: 14px; border-radius: 4px; box-sizing: border-box; }
.cal-chip { display: block; font-size: .6875rem; font-weight: 600; line-height: 1.3; padding: .3rem .45rem; border-radius: .375rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip .tabular { font-weight: 700; margin-right: .15rem; }
.cal-chip:hover { filter: brightness(.97); }
.cal-chip.ev-window { border-width: 1.5px; }

/* Week: technicians × days */
.wk-grid { min-width: 1040px; }
.wk-row { display: grid; grid-template-columns: 170px repeat(6, minmax(0, 1fr)); }
.wk-row + .wk-row { border-top: 1px solid var(--line); }
.wk-cell { padding: .5rem; display: flex; flex-direction: column; gap: .3rem; min-height: 120px; min-width: 0; }
.wk-cell + .wk-cell { border-left: 1px solid var(--line-2); }
.wk-head .wk-cell { min-height: 0; padding: .625rem .75rem; gap: 0; background: #fff; }
.wk-day.is-today { box-shadow: inset 0 -2.5px 0 var(--brand); }
.wk-day.is-today .fw-bold { color: #00434c; }
.wk-tech { flex-direction: row; align-items: center; gap: .5rem; background: var(--soft); }
.wk-unassigned { background: #fffbf3; }
.wk-row.is-hidden { display: none; }

/* Month */
.mo-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 980px; }
.mo-head { padding: .625rem .75rem; font-size: .75rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); background: #fff; }
.mo-cell { min-height: 138px; padding: .5rem; display: flex; flex-direction: column; gap: .3rem; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); min-width: 0; }
.mo-cell:nth-child(7n+7) { border-right: 0; }
.mo-cell.is-other { background: #fbfcfc; }
.mo-cell.is-other .mo-date, .mo-cell.is-other .cal-chip { opacity: .55; }
.mo-cell.is-sunday { background: #fbfcfc; }
.mo-date { font-weight: 700; font-size: .8125rem; color: var(--ink); text-decoration: none; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 .35rem; }
.mo-cell.is-today .mo-date { background: var(--brand); color: var(--brand-ink); }
.mo-load { flex: 1; height: 4px; border-radius: 999px; background: #edf3f4; overflow: hidden; display: inline-block; }
.mo-load > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.mo-more { font-size: .6875rem; font-weight: 600; color: var(--brand-text); text-decoration: none; padding-left: .25rem; }

/* ---------- Settings ---------- */
.settings-nav { flex-wrap: nowrap; overflow-x: auto; }
.settings-nav .nav-link { display: flex; align-items: center; gap: .625rem; min-height: 40px; padding: 0 .75rem; border-radius: .5rem; color: var(--ink-2); border: 0; background: transparent; text-align: left; white-space: nowrap; }
.settings-nav .nav-link:hover { background: var(--soft); color: var(--ink); }
.settings-nav .nav-link.active { background: var(--brand-tint); color: var(--ink); font-weight: 600; }
.settings-nav .nav-link.active i { color: var(--brand-strong); }
.perm-table td, .perm-table th { vertical-align: middle; }
.perm-table .perm-group td { background: var(--soft); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .5rem; padding-bottom: .5rem; }
.perm-table .perm-group td:first-child { padding-left: .75rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); border-color: var(--brand); }
.pagination { --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-active-color: var(--brand-ink); --bs-pagination-color: var(--ink-2); --bs-pagination-border-color: var(--line); --bs-pagination-focus-box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }

/* ---------- Προσφορές: γραμμές & πίνακας μηνών ---------- */
.line-card { border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; background: #fff; }
.line-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1rem; align-items: end; }
.line-fields .line-total-box { text-align: right; }
@media (max-width: 575.98px) {
  .line-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line-fields .line-total-box { grid-column: 1 / -1; text-align: left; }
}
.qty input { width: 64px; height: 32px; border: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; background: #fff; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: 2px solid var(--brand); outline-offset: -2px; }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.month-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 767.98px) { .month-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.month-cell { border: 1px solid var(--line-strong); border-radius: .625rem; background: #fff; padding: .35rem; display: flex; flex-direction: column; align-items: stretch; gap: .25rem; }
.month-cell.is-on { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.month-label { border: 0; background: transparent; font-weight: 600; font-size: .8125rem; padding: .2rem 0; min-height: 32px; border-radius: .375rem; color: var(--ink-2); }
.month-cell.is-on .month-label { color: var(--brand-tint-ink); }
.month-label:hover { background: rgba(0, 0, 0, .04); }
.month-ctrl { display: flex; align-items: center; justify-content: space-between; gap: .25rem; }
.month-ctrl button { width: 28px; height: 28px; border: 1px solid var(--line-strong); background: #fff; border-radius: .375rem; line-height: 1; font-weight: 700; color: var(--ink-2); }
.month-ctrl button:disabled { opacity: .35; cursor: not-allowed; }
.month-ctrl .mq { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 1.25rem; text-align: center; }

/* ---------- Έγγραφο προσφοράς ---------- */
.rich-text { font-size: .875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4, .rich-text h5, .rich-text h6 { font-size: .9375rem; font-weight: 700; color: var(--ink); margin: 1rem 0 .375rem; }
.rich-text > :first-child { margin-top: 0; }
.rich-text table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.rich-text td, .rich-text th { border: 1px solid var(--line-strong); padding: .4rem .6rem; }
.rich-text blockquote { border-left: 3px solid var(--brand); padding-left: .75rem; color: var(--muted); }
@media print {
  .app-sidebar, .app-topbar, .no-print, .toast { display: none !important; }
  .app-content { padding: 0; max-width: none; }
  .card-x { border: 0; padding: 0; }
  body { background: #fff; }
}

/* ---------- Ιστορικό προσφοράς (γεγονότα + σχόλια) ---------- */
.hist-event { display: flex; gap: .625rem; align-items: flex-start; font-size: .8125rem; color: var(--ink-2); }
.hist-event .hist-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; flex: none; font-size: .9rem; }
.hist-event.hist-ok .hist-icon { background: #e8f5e0; border-color: #cfe8bf; color: #2f6a12; }
.hist-event.hist-no .hist-icon { background: #fff3df; border-color: #f6dfb4; color: #8a5300; }

/* ---------- Σχόλια καρτέλας ---------- */
.comments-list { max-height: 480px; overflow-y: auto; padding-right: .25rem; }

/* ---------- Address picker (Google Places + χάρτης) ---------- */
.addr-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 1060; max-height: 240px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0, 60, 70, .12); border-radius: .5rem; margin-top: 2px; }
.addr-suggest .list-group-item { font-size: .8125rem; padding: .55rem .75rem; }
.addr-suggest .list-group-item.active { background: var(--brand-tint); color: var(--brand-tint-ink); border-color: var(--line); }
.addr-map { height: 280px; border-radius: .75rem; overflow: hidden; border: 1px solid var(--line); background: #f3f8f9; }

/* ==========================================================
   Technician app (mobile-first)
   ========================================================== */
body.tech { background: #f4f8f9; }
.tech-app { max-width: 640px; margin: 0 auto; min-height: 100vh; background: #f4f8f9; padding-bottom: 88px; }
.tech-top { position: sticky; top: 0; z-index: 1020; background: #fff; border-bottom: 1px solid var(--line); padding: .75rem 1rem; display: flex; align-items: center; gap: .75rem; }
.tech-top .brand-logo { height: 28px; }
.tech-body { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.t-card { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; }
.t-card h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.t-hero { border: 0; box-shadow: 0 0 0 2px var(--brand), 0 8px 24px rgba(0, 90, 100, .10); }
.t-label { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.t-btn { min-height: 52px; font-size: 1rem; border-radius: .875rem; }
.t-action { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 64px; border-radius: .875rem; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .75rem; font-weight: 600; }
.t-action i { font-size: 1.25rem; color: var(--brand-strong); }
.t-action:hover { background: var(--soft); color: var(--ink); }

.t-stop { display: flex; gap: .875rem; text-decoration: none; color: var(--ink); }
.t-stop .rail { display: flex; flex-direction: column; align-items: center; width: 28px; flex: none; }
.t-stop .num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; background: #fff; border: 2px solid #c9d6d9; color: var(--ink-2); flex: none; }
.t-stop .line { flex: 1; width: 2px; background: var(--line-strong); margin: 2px 0; }
.t-stop:last-child .line { display: none; }
.t-stop .content { flex: 1; min-width: 0; padding-bottom: 1rem; }
.t-stop .box { background: #fff; border: 1px solid var(--line); border-radius: .875rem; padding: .75rem .875rem; display: flex; align-items: center; gap: .75rem; }
.t-stop.done .num { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.t-stop.done .box { opacity: .7; }
.t-stop.current .num { border-color: var(--brand); color: #00434c; background: var(--brand-tint); }
.t-stop.current .box { box-shadow: 0 0 0 2px var(--brand); border-color: transparent; }

.tech-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tech-nav .inner { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tech-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .625rem; font-size: .6875rem; font-weight: 600; color: var(--muted); text-decoration: none; position: relative; min-height: 56px; justify-content: center; }
.tech-nav a i { font-size: 1.25rem; }
.tech-nav a.active { color: #00434c; }
.tech-nav a.active i { color: var(--brand-strong); }
.tech-nav a.active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tech-nav .badge-dot { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 16px; height: 16px; border-radius: 999px; background: #f0a43a; color: #fff; font-size: .625rem; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* Visit wizard */
.v-steps { display: flex; gap: .25rem; padding: .625rem 1rem; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; position: sticky; top: 61px; z-index: 1010; }
.v-step { flex: 1; min-width: 68px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: .6875rem; font-weight: 600; color: var(--muted); padding: 0; }
.v-step .bar { height: 4px; width: 100%; border-radius: 999px; background: #e3eaec; }
.v-step.done .bar, .v-step.active .bar { background: var(--brand); }
.v-step.active { color: #00434c; }
.v-pane[hidden] { display: none !important; }
.v-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--line); padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); }
.v-footer .inner { max-width: 608px; margin: 0 auto; display: flex; gap: .5rem; }
.choice-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-group input { position: absolute; opacity: 0; pointer-events: none; }
.choice-group label { min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 500; cursor: pointer; }
.choice-group input:checked + label { border-color: var(--brand); background: var(--brand-tint); color: #00434c; font-weight: 700; }
.choice-group input:focus-visible + label { box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.task-check { display: flex; align-items: center; gap: .75rem; min-height: 52px; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; cursor: pointer; }
.task-check .form-check-input { width: 1.4em; height: 1.4em; margin: 0; flex: none; }
.task-check:has(input:checked) { border-color: var(--brand); background: #f3fcfd; }
.material { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; }
.material + .material { border-top: 1px solid var(--line-2); }
.qty-lg button { width: 44px; height: 44px; font-size: 1.25rem; }
.qty-lg output { min-width: 48px; font-size: 1rem; }
.photo-slot { width: 76px; height: 76px; border-radius: .75rem; border: 1.5px dashed var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--muted); background: #fff; flex: none; }
.photo-thumb { width: 76px; height: 76px; border-radius: .75rem; background: linear-gradient(135deg, #dff3f6, #cfe7ea); display: flex; align-items: center; justify-content: center; color: #4e7c84; flex: none; }
.doc-preview { border: 1px solid var(--line); border-radius: .875rem; overflow: hidden; background: #fff; }
.doc-preview .doc-head { background: var(--soft); padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.doc-preview table { font-size: .8125rem; }
.sig-pad { width: 100%; height: 180px; border: 1.5px dashed var(--line-strong); border-radius: .875rem; background: #fff; touch-action: none; display: block; cursor: crosshair; }
.timer-pill { display: inline-flex; align-items: center; gap: .375rem; font-size: .75rem; font-weight: 700; color: #00434c; background: var(--brand-tint); border-radius: 999px; padding: .25rem .625rem; font-variant-numeric: tabular-nums; }
.timer-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .timer-pill::before { animation: none; } }
.success-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; font-size: 2.25rem; margin: 0 auto; }
.segmented { max-width: 100%; overflow-x: auto; }
.segmented .btn { white-space: nowrap; flex: none; }
.v-step { white-space: nowrap; min-width: 0; }

/* ---------- Αιτήματα: πίνακας 5 σταδίων + πάνελ λεπτομερειών ---------- */
.board.board-5 { grid-template-columns: repeat(5, minmax(200px, 1fr)); min-width: 1050px; }
#boardView.board-wrap { padding: 1rem; border: 1px solid var(--line); }
.req-card .text-truncate { min-width: 0; }
.req-row.selected { background: var(--brand-tint); }
.req-offcanvas { --bs-offcanvas-width: min(440px, 100vw); }

/* ---------- Διαθεσιμότητα πελάτη (προσφορά) ---------- */
.avail-day { border: 1px solid var(--line); border-radius: .625rem; padding: .625rem .875rem; background: #fff; }
.avail-day.on { background: #fbfdfd; border-color: var(--line-strong); }
.avail-chip { display: inline-flex; gap: .375rem; align-items: baseline; font-size: .75rem; padding: .2rem .55rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand-tint-ink); white-space: nowrap; }
.avail-chip b { font-weight: 700; }
