/* ==========================================================
   LILU CRM — styles.css (παλέτα: μαύρο + κοραλί)
   Dark theme · χωρίς dependencies
   ========================================================== */

:root {
  --bg: #0A0A0A;       /* ink-900 */
  --bg2: #0F0F0F;
  --card: #141414;     /* ink-800 */
  --card2: #1A1A1A;
  --line: #1F1F1F;
  --line2: #262626;    /* ink-700 */
  --text: #F5F5F4;     /* ink-50 */
  --muted: #A8A29E;    /* ink-400 */
  --faint: #78716C;
  --white: #FAFAF9;

  --coral: #FF7A59;    /* κοραλί — το χρώμα της LILU */
  --coral-light: #FFB39E;
  --coral-dark: #E85A3A;
  --accent: #b69cff;   /* μωβ — προσφορά */
  --accent2: #FF7A59;  /* κοραλί — νέο lead, focus, ενεργά */
  --ok: #34d399;
  --bad: #f87171;
  --warn: #fbbf24;     /* κεχριμπαρένιο — προειδοποιήσεις (όχι πορτοκαλί: θα μπερδευόταν με το κοραλί) */
  --orange: #fbbf24;   /* κεχριμπαρένιο — κλήση αργότερα */
  --info: #60a5fa;
  --oncoral: #0A0A0A;  /* κείμενο πάνω σε κοραλί */

  --grad: linear-gradient(135deg, #F49A5C 0%, #FF7A59 50%, #E8473D 100%);
  --neon: 0 0 0 1px rgba(255, 122, 89, .25), 0 8px 30px -10px rgba(255, 122, 89, .30);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .6);
  --hotdelay: 0s;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}
body.modal-open { overflow: hidden; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
b { font-weight: 650; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 18px; padding-bottom: 60px; }

/* ---------- Utilities ---------- */
.grad { background: var(--grad); }
.glow { box-shadow: 0 0 22px rgba(255, 122, 89, .45); }
.glow-soft { box-shadow: 0 4px 18px rgba(255, 122, 89, .30); }
.muted { color: var(--muted); font-size: 13px; }
.faint { color: var(--faint); }
.late { color: var(--bad); font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line2); background: var(--card2); color: var(--text);
  font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, transform .08s, filter .15s;
}
.btn:hover { background: #222222; border-color: #6b3426; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 6px 10px; font-size: 12.5px; border-radius: 9px; }
.btn.pri { border-color: transparent; color: var(--oncoral); }
.btn.grad { background: var(--grad); }
.btn.pri:hover { filter: brightness(1.12); background: var(--grad); }
.btn.block { display: flex; width: 100%; margin-top: 12px; }
.grow { margin-right: auto; }
.btn.coral { border-color: var(--coral); color: var(--coral); background: rgba(255, 122, 89, .08); }
.btn.coral:hover { background: rgba(255, 122, 89, .18); border-color: var(--coral); }
.starbox {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; vertical-align: -4px;
  border: 1px solid var(--line2); border-radius: 6px; background: transparent;
  color: var(--faint); font-size: 13px; line-height: 1; padding: 0; flex: none;
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.starbox:hover { color: var(--coral); border-color: var(--coral); }
.starbox.on { background: var(--grad); border-color: transparent; color: var(--oncoral); box-shadow: var(--neon); }
.btn.on { border-color: var(--accent2); color: var(--accent2); background: rgba(255, 122, 89, .10); }
.btn.due { border-color: var(--warn); color: var(--white); background: var(--card2); animation: pulse 1.6s ease-in-out infinite; }
.btn.badb { color: var(--bad); }
.btn.badb:hover { border-color: var(--bad); background: rgba(248, 113, 113, .12); }
.lnk { background: none; border: 0; padding: 0; color: var(--accent2); font-size: 12.5px; display: block; }
.lnk:hover { text-decoration: underline; }
.x {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2);
  background: var(--card2); color: var(--muted); flex: none; font-size: 13px;
}
.x:hover { color: var(--text); border-color: #6b3426; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 10, 10, .9);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid #262626;
}
header .bar { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.tabs { display: flex; gap: 4px; background: var(--bg2); border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--card2); color: var(--white); box-shadow: inset 0 0 0 1px var(--line2); }
.hactions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hsearch {
  width: 260px; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: inherit; outline: none;
  transition: border-color .15s, width .2s;
}
.hsearch:focus { border-color: var(--accent2); width: 300px; }
.hsearch::placeholder { color: var(--faint); }

/* ---------- Μπάρα μήνα ---------- */
.mbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.mnavs { display: flex; align-items: center; gap: 8px; }
.mbtn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line2);
  background: var(--card2); font-size: 18px; line-height: 1;
}
.mbtn:hover { border-color: #6b3426; }
.mlabel { font-size: 17px; font-weight: 700; min-width: 160px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mlabel .now { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(52, 211, 153, .14); color: var(--ok); text-transform: uppercase; letter-spacing: .04em; }
.mright { display: flex; gap: 6px; }
.mnote { color: var(--muted); }

/* ---------- Εκκρεμεί έκβαση ---------- */
.duebar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 14px; border-radius: var(--radius);
  background: rgba(251, 191, 36, .07); border: 1px solid rgba(251, 191, 36, .35);
}
.duebar .dl { color: var(--warn); font-weight: 700; margin-right: 4px; }
.duechip {
  border: 1.5px solid var(--warn); background: transparent;
  color: var(--white); border-radius: 99px; padding: 5px 11px; font-weight: 600; font-size: 13px;
}
.duechip span { color: var(--warn); font-weight: 500; margin-left: 4px; }
.duechip:hover { background: var(--card2); }

/* ---------- KPI ---------- */
.kgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 1100px) and (min-width: 721px) { .kgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi {
  display: flex; flex-direction: column; justify-content: flex-start;
  text-align: left; padding: 14px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .15s, transform .15s, background .15s;
}
.kpi:hover { border-color: var(--line2); background: var(--card2); transform: translateY(-1px); }
.kpi .lbl { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi .val { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; color: var(--white); }
.kpi .sub { color: var(--faint); font-size: 12px; }
.kpi .money { color: var(--ok); font-weight: 700; font-size: 14px; margin: 2px 0 4px; }
.kpi .mrow { white-space: nowrap; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 2px 0; }
.kpi .mrow + .mrow { border-top: 1px solid var(--line); }
.kpi .mrow span { color: var(--muted); font-weight: 600; font-size: 12px; }
.kpi.neo { background: linear-gradient(160deg, rgba(255, 122, 89, .10), var(--card) 60%); }

/* ---------- Layout / Cards ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.empty { text-align: center; color: var(--muted); padding: 22px 12px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.card.empty { padding: 36px 16px; }

/* ---------- Tasks (Smart Secretary) ---------- */
.task {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 16px; border-radius: var(--radius-sm);
  background: var(--bg2); border: 1px solid var(--line); overflow: hidden;
}
.task + .task { margin-top: 8px; }
.bar4 { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--line2)); }
.task .tm { flex: none; min-width: 46px; font-weight: 800; font-size: 15px; color: var(--c); font-variant-numeric: tabular-nums; }
.tx { flex: 1; min-width: 0; }
.task .tx { cursor: pointer; }
.tt { font-weight: 650; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.tacts { display: flex; gap: 6px; flex: none; }
.task.wait { opacity: .85; }
.task.hot, .row.hot { animation: hotglow 2.8s ease-in-out infinite; animation-delay: var(--hotdelay); }
@keyframes hotglow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 122, 89, .25); }
  50% { box-shadow: 0 0 0 1px rgba(255, 122, 89, .55), 0 0 18px rgba(255, 122, 89, .18); }
}
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(251, 191, 36, .15); } }

/* ---------- Ημερολόγιο ---------- */
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head span { text-align: center; color: var(--faint); font-size: 11.5px; font-weight: 700; text-transform: uppercase; padding-bottom: 4px; }
.cal-cell {
  min-height: 62px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg2); padding: 6px; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cal-cell.out { background: transparent; border-color: transparent; }
button.cal-cell:hover { border-color: var(--line2); background: var(--card2); }
.cal-cell.past { opacity: .5; }
.cal-cell.today { border-color: var(--accent2); box-shadow: inset 0 0 0 1px var(--accent2); }
.cal-cell.today .dn { color: var(--accent2); }
.cal-cell.has { background: var(--card2); }
.dn { font-weight: 700; font-size: 13px; }
.cdots { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.cdots em { font-style: normal; font-size: 10px; color: var(--muted); }
.cd { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 12px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Μεγάλο ημερολόγιο (κουμπί ⤢ στο κουτί του ημερολογίου) ---------- */
.cal-big-btn { width: 36px; min-width: 36px; padding: 0; display: inline-grid; place-items: center; flex: none; }
.sheet.cal-big { max-width: 1200px; width: 96vw; }
.cbg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cbg-nav { display: flex; align-items: center; gap: 10px; }
.cbg-nav b { font-size: 16px; min-width: 9em; text-align: center; }
.cbg-sum { margin-top: 0; font-size: 13px; }
.cbg-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cbg-cell {
  min-height: 112px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 6px; text-align: left;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); font: inherit; cursor: pointer; min-width: 0;
}
.cbg-cell.out { background: transparent; border-color: transparent; cursor: default; }
.cbg-cell.has { background: var(--card2); }
.cbg-cell.past { opacity: .55; }
button.cbg-cell:hover { border-color: rgba(255, 122, 89, .45); }
.cbg-cell.today { border-color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral); }
.cbg-cell .dn { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.cbg-cell.today .dn { color: var(--coral); }
.cbg-ev {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-width: 0; overflow: hidden; overflow-wrap: anywhere; font-size: 12px; line-height: 1.35;
  padding: 2px 5px; border-left: 3px solid var(--c); border-radius: 3px; background: rgba(255, 255, 255, .04); color: var(--text);
}
.cbg-ev b { color: var(--muted); font-weight: 700; }
.cbg-more { font-style: normal; font-size: 11.5px; color: var(--muted); padding-left: 5px; }
.cbg-agenda { display: none; }
.cbg-day h4 { margin: 18px 0 8px; font-size: 14px; color: var(--muted); }
.cbg-day:first-child h4 { margin-top: 4px; }
.cbg-day.today h4 { color: var(--coral); }
.cbg-day .evl + .evl { margin-top: 8px; }
/* Κινητό: λίστα μέρα-μέρα αντί για πλέγμα */
@media (max-width: 760px) {
  .cbg-wrap { display: none; }
  .cbg-agenda { display: block; }
}

/* ---------- Λίστα πελατών ---------- */
.list-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px;
}
.row:hover { border-color: var(--line2); }
.row .info { flex: 1; min-width: 0; }
.r1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nm { font-weight: 700; font-size: 15.5px; color: var(--white); }
.kind { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line2); border-radius: 99px; padding: 1px 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1.5px solid var(--c);
  background: transparent;
  color: var(--white); border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700;
}
.badge .pen { font-size: 10px; opacity: 0; transition: opacity .15s; }
.badge:hover .pen { opacity: 1; }
.cc { font-size: 12px; color: var(--muted); }
.cc b { color: var(--text); font-weight: 600; }
.cc.never { color: var(--faint); font-style: italic; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 7px; font-size: 13px; color: var(--muted); }
.meta a { color: var(--muted); }
.meta a:hover { color: var(--accent2); }
.nx { color: var(--info); font-weight: 600; }
.nx.late { color: var(--bad); }
.row .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 330px; }

/* Σχόλια carousel */
.cmtbox {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px;
}
.cmt-nav { width: 26px; height: 26px; border-radius: 7px; border: 0; background: var(--card2); flex: none; font-size: 16px; line-height: 1; }
.cmt-nav:hover:not(:disabled) { background: #222222; }
.cmt-body { flex: 1; min-width: 0; padding: 0 4px; }
.cmt-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.cmt-d { color: var(--faint); font-size: 11px; }
.cmtbox.none .cmt-t { color: var(--faint); font-style: italic; }
.cmt-add {
  flex: none; border: 1px dashed var(--line2); background: none; color: var(--muted);
  border-radius: 7px; padding: 4px 9px; font-size: 12px;
}
.cmt-add:hover { color: var(--accent2); border-color: var(--accent2); }

/* ---------- Modals ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.overlay.anim { animation: fadein .18s ease-out; }
.sheet {
  width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--shadow);
}
.sheet.wide { max-width: 760px; }
.sheet.anim { animation: sheetin .22s cubic-bezier(.2, .8, .2, 1); }
.sheet-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 18px 12px; background: var(--card); border-bottom: 1px solid var(--line);
}
.sheet-head h2 { font-size: 18px; }
.sheet-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.sheet-body { padding: 16px 18px 18px; }
@keyframes fadein { from { opacity: 0; } }
@keyframes sheetin { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12px; font-weight: 650; color: var(--muted); margin-bottom: 5px; }
.inp {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: inherit; outline: none;
  transition: border-color .15s;
}
.inp:focus { border-color: var(--accent2); }
.inp::placeholder { color: var(--faint); }
textarea.inp { min-height: 80px; resize: vertical; }
input[type="datetime-local"].inp { color-scheme: dark; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.toggle2 { display: flex; gap: 10px; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius-sm); padding: 3px; }
.toggle2 button { flex: 1; border: 0; background: none; padding: 7px 8px; border-radius: 7px; color: var(--muted); font-weight: 600; transition: background .15s, color .15s; }
.toggle2 button.on { background: var(--grad); color: var(--oncoral); }
.toggle2 button + button { position: relative; }
.toggle2 button + button::before {
  content: ''; position: absolute; left: -6px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
  background: var(--coral); opacity: .55;
}
.mact { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.q { font-size: 20px; font-weight: 750; text-align: center; margin: 4px 0 14px; color: var(--white); }
.hint { color: var(--faint); font-size: 12.5px; text-align: center; margin-top: 12px; }
.warnbox {
  background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .4); color: var(--warn);
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px;
}
.warnbox b { color: var(--white); }

.bigchoice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bigchoice button {
  padding: 22px 10px; border-radius: 14px; font-size: 24px; font-weight: 800; letter-spacing: .04em;
  border: 1px solid; transition: transform .08s, filter .15s;
}
.bigchoice button:hover { background: var(--card2); }
.bigchoice button:active { transform: scale(.98); }
.bigchoice small { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; opacity: .8; margin-top: 2px; }
/* Ναι / Όχι: χρώμα μόνο στο περίγραμμα */
.bigchoice .no, .bigchoice .yes { color: var(--white); background: var(--card); border-width: 1.5px; }
.bigchoice .no { border-color: var(--bad); }
.bigchoice .yes { border-color: var(--ok); }
.bigchoice small { color: var(--muted); opacity: 1; }

.pick { display: grid; gap: 8px; }
.pick.two { grid-template-columns: 1fr 1fr; }
.pick button {
  text-align: left; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--c, var(--line2)); background: var(--bg2); transition: border-color .15s, background .15s;
}
.pick button:hover { border-color: var(--c, var(--accent2)); background: var(--card2); }
.pick button b { display: block; font-size: 14.5px; color: var(--white); }
.pick button small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pick + .lnk { margin-top: 12px; }


.stgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stgrid button {
  display: flex; align-items: center; gap: 9px; text-align: left;
  padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--bg2); font-weight: 600;
}
.stgrid button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.stgrid button:hover { border-color: var(--c); }
.stgrid button.on { border: 1.5px solid var(--c); color: var(--white); }

.evl {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 9px 10px 9px 14px; margin-bottom: 6px; border-radius: var(--radius-sm);
  background: var(--bg2); border: 1px solid var(--line); overflow: hidden;
}
.evl .tx .tg { margin: 0 0 2px; }
.clist { max-height: 280px; overflow-y: auto; padding-right: 2px; }
.sheet-body > .r1 { margin-bottom: 14px; }

/* ---------- Σημειώσεις ---------- */
.nbm {
  position: fixed; left: 0; top: 50%; z-index: 40; transform: translateY(-50%);
  width: 38px; height: 56px; border: 1px solid var(--line2); border-left: 0;
  border-radius: 0 12px 12px 0; background: var(--card2); box-shadow: var(--shadow);
  display: grid; place-items: center; font-size: 18px; transition: width .15s;
}
.nbm:hover { width: 46px; }
.nbm i {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--grad); color: var(--oncoral); font-style: normal; font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center;
}
.ndim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); }
.ndim.anim { animation: fadein .2s ease-out; }
.ndrawer {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 61; width: min(400px, 92vw);
  background: var(--card); border-right: 1px solid var(--line2); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.ndrawer.in { animation: drawerin .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes drawerin { from { transform: translateX(-100%); } }
.nhead { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); }
.nhead h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.nhead h3 span { font-size: 12px; color: var(--muted); background: var(--bg2); border-radius: 99px; padding: 1px 8px; }
.nhead > div { display: flex; gap: 8px; align-items: center; }
.nhead .btn.sm { width: 32px; height: 32px; padding: 0; font-size: 18px; }
.nlist { flex: 1; overflow-y: auto; padding: 12px; }
.note {
  position: relative; display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 10px 10px 12px; margin-bottom: 8px; border-radius: var(--radius-sm);
  background: var(--bg2); border: 1px solid var(--line);
}
.note .nn { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); color: var(--muted); font-size: 11px; font-weight: 800; }
.note .nb { flex: 1; min-width: 0; }
.note .nt { white-space: pre-wrap; word-break: break-word; }
.note .nd { color: var(--faint); font-size: 11px; margin-top: 3px; }
.ntick { flex: none; border: 0; background: none; padding: 0 2px; font-size: 15px; filter: grayscale(1) opacity(.35); transition: filter .15s; }
.ntick:hover { filter: grayscale(.3) opacity(.8); }
.note.done .ntick { filter: none; }
.note.done .nt { text-decoration: line-through; color: var(--faint); }
.note.done { opacity: .7; }
.nx-acts { display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity .15s; }
.note:hover .nx-acts, .note.del .nx-acts { opacity: 1; }
.nx-acts button { border: 0; background: none; padding: 2px 4px; border-radius: 6px; font-size: 13px; }
.nx-acts button:hover { background: var(--card2); }
.nx-acts button.conf { background: rgba(248, 113, 113, .15); color: var(--bad); font-size: 11px; font-weight: 700; white-space: nowrap; }
.note.del { border-color: rgba(248, 113, 113, .5); }
.note.editing, .note.new { border-color: var(--accent2); }
.nacts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }

/* ---------- Footer (Backup / Επαναφορά) ---------- */
.foot { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; color: var(--faint); font-size: 12px; opacity: .55; transition: opacity .2s; }
.foot:hover { opacity: 1; }
.foot .lnk { color: var(--faint); font-size: 12px; display: inline; }
.foot .lnk:hover { color: var(--coral); text-decoration: none; }

/* ---------- Κάτω μπάρα (κινητό) ---------- */
.mnav { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px);
  background: #141414; color: var(--white); border: 1px solid var(--line2); box-shadow: var(--shadow);
  padding: 10px 16px; border-radius: 12px; font-weight: 600; width: max-content; max-width: calc(100vw - 32px); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .row { flex-direction: column; align-items: stretch; } /* η κάρτα πιάνει όλο το πλάτος — τα μεγάλα σχόλια κόβονται με «…» */
  .row .acts { max-width: none; justify-content: flex-start; }
}
/* Τάμπλετ (π.χ. iPad όρθιο): πιο στενή κεφαλίδα ώστε να χωράνε όλα */
@media (max-width: 1080px) and (min-width: 761px) {
  header .bar { gap: 12px; }
  .logo-name { display: none; }
  .hactions .hide-m { display: none; }
  .hsearch { width: 170px; }
  .hsearch:focus { width: 210px; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 12px; }
  header .bar { gap: 10px; height: 56px; }
  .tabs { display: none; }
  .logo-name { display: none; }
  .hsearch, .hsearch:focus { flex: 1; width: auto; min-width: 0; }
  .hactions { flex: 1; min-width: 0; gap: 6px; }
  .hactions .btn { flex: none; padding: 9px 11px; }
  .task { flex-wrap: wrap; }
  .task .tacts { width: 100%; justify-content: flex-end; }
  .hide-m { display: none; }
  main.wrap { padding-bottom: 96px; }

  .kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kgrid .kpi:last-child { grid-column: 1 / -1; }
  .kpi { padding: 12px; }
  .kpi .val { font-size: 24px; }
  .kpi .sub { font-size: 11px; }

  .cal-cell { min-height: 44px; padding: 4px; }
  .cal-head, .cal-grid { gap: 4px; }
  .cd { width: 5px; height: 5px; }

  .task .tt { white-space: normal; }

  .mnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(0, 0, 0, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .mnav button {
    flex: 1; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600;
    display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px;
  }
  .mnav button span { font-size: 19px; line-height: 1.2; }
  .mnav button.on { color: var(--accent2); }
  .mnav .plus span {
    width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: var(--oncoral);
    display: grid; place-items: center; font-size: 22px; box-shadow: 0 4px 14px rgba(255, 122, 89, .4);
  }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .nbm { top: auto; bottom: calc(90px + env(safe-area-inset-bottom)); transform: none; }

  /* Κάθε παράθυρο (κλήση, νέος πελάτης, ραντεβού…) σε ΟΛΗ την οθόνη, όπως οι εφαρμογές κινητού */
  .overlay { align-items: stretch; padding: 0; background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sheet, .sheet.wide {
    max-width: none; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none;
    display: flex; flex-direction: column; overflow: hidden;
  }
  .sheet.anim { animation: sheetup .25s cubic-bezier(.2, .8, .2, 1); }
  @keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }
  .sheet-head { flex: none; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
  .sheet-head h2 { font-size: 19px; }
  .sheet-head .x { width: 42px; height: 42px; font-size: 17px; }
  .sheet-body {
    flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  }
  /* Τα κουμπιά Αποθήκευση / Άκυρο μένουν πάντα ορατά στο κάτω μέρος */
  .sheet-body > .mact {
    position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); z-index: 2;
    margin: 18px -16px calc(-20px - env(safe-area-inset-bottom)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--card); border-top: 1px solid var(--line); flex-wrap: nowrap;
  }
  .sheet-body > .mact .btn { flex: 1 1 0; min-height: 50px; font-size: 16px; }
  /* Τα κουμπιά «καρφώνονται» στο κάτω μέρος της οθόνης, όσο μικρή κι αν είναι η φόρμα */
  .sheet-body { display: flex; flex-direction: column; }
  .sheet-body > * { flex: none; }
  .sheet-body > .mact { margin-top: auto; }
  .sheet-body > .mact::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; pointer-events: none; }
  .sheet-body > .mact .grow { display: none; }
  .bigchoice button, .pick button { min-height: 64px; }

  /* Πεδία με γράμματα 16px: αλλιώς το iPhone κάνει αυτόματα zoom όταν τα πατάς */
  .inp, .hsearch, select, textarea { font-size: 16px; }
  .btn.sm { min-height: 40px; padding: 8px 12px; }
  .ndrawer { width: 100vw; border-right: 0; padding-top: env(safe-area-inset-top); }
  .grid2, .pick.two, .stgrid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Κοραλί glow (όπως στο site της LILU)
   ========================================================== */
.btn.pri, .btn.grad { box-shadow: var(--neon); }
.btn.pri:hover { box-shadow: 0 0 0 1px rgba(255, 122, 89, .45), 0 24px 70px -24px rgba(255, 122, 89, .35); }
.btn.coral { box-shadow: 0 0 0 1px rgba(255, 122, 89, .15); }
.btn.coral:hover { box-shadow: 0 0 0 1px rgba(255, 122, 89, .35), 0 8px 30px -10px rgba(255, 122, 89, .30); }
.card, .kpi, .row, .task, .cal-cell:not(.out) { border-color: #262626; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.kpi:hover, .row:hover, button.cal-cell:hover { border-color: rgba(255, 122, 89, .45); box-shadow: 0 0 0 1px rgba(255, 122, 89, .15), 0 8px 30px -12px rgba(255, 122, 89, .25); }
.tabs { border-color: #262626; }
.tabs button.on { color: var(--coral); box-shadow: inset 0 0 0 1px rgba(255, 122, 89, .45); background: rgba(255, 122, 89, .08); }
.cal-cell.today { border-color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral), 0 8px 30px -10px rgba(255, 122, 89, .35); }
.cal-cell.today .dn { color: var(--coral); }
.inp:focus, .hsearch:focus { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral), 0 0 0 4px rgba(255, 122, 89, .12); }
.sheet { border-color: #262626; box-shadow: 0 0 0 1px rgba(255, 122, 89, .12), var(--shadow); }
.ndrawer { border-right-color: #262626; box-shadow: 0 24px 70px -24px rgba(255, 122, 89, .25); }
.toggle2 button.on { box-shadow: var(--neon); }
.nbm { border-color: rgba(255, 122, 89, .45); box-shadow: var(--neon); }
.nbm i, .mnav .plus span { box-shadow: var(--neon); }
.mnav { border-top-color: #262626 !important; }
.mnav button.on { color: var(--coral); }
.kpi.neo .val { color: var(--coral); }

/* ---------- Brand (LILU CRM) ---------- */
h2, .sheet-head h2 { font-family: "Noto Serif Display", Georgia, serif; font-weight: 600; letter-spacing: 0; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 36px; flex: none; }
.logo-mark svg { width: 30px; height: 36px; display: block; }
.logo-name { font-size: 15px; font-weight: 800; letter-spacing: .04em; color: var(--text); white-space: nowrap; }
.logo-name span { color: var(--coral); }

/* ---------- Ημερολόγιο επιλογής ημ/νίας & ώρας ---------- */
.sheet.dp-sheet { max-width: 580px; }
.dp-row { display: flex; gap: 8px; }
.dp-row .dp-inp { flex: 1; min-width: 0; }
.dp-inp::-webkit-calendar-picker-indicator { display: none; }
.dp-open { flex: none; }
.dp-open.on { border-color: var(--coral); color: var(--coral); background: rgba(255, 122, 89, .10); }
.dp-row + .dp-box { margin-top: 10px; }
.dp-day { position: relative; }
.dp-day.busy::after {
  content: ''; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--info);
}
.dp-day.on.busy::after { background: var(--oncoral); }
.dp-pill { position: relative; }
.dp-pill.busy::after {
  content: ''; position: absolute; top: 3px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn);
}
.dp-agenda { margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); }
.dp-ah { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.dp-ev {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; align-items: baseline;
  padding: 5px 0 5px 10px; border-left: 3px solid var(--c); margin: 4px 0; font-size: 13px;
}
.dp-ev b { color: var(--c); font-variant-numeric: tabular-nums; }
.dp-ev span { color: var(--white); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-ev em { font-style: normal; color: var(--muted); font-size: 12px; white-space: nowrap; }
.dp-free { color: var(--ok); font-size: 13px; font-weight: 600; }
.dp-box { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); padding: 14px; }
.dp-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-nav b { font-size: 16px; color: var(--text); }
.dp-arrow {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card2);
  color: var(--text); font-size: 20px; line-height: 1; transition: border-color .15s, color .15s;
}
.dp-arrow:hover:not(:disabled) { border-color: var(--coral); color: var(--coral); }
.dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dp-head { margin-bottom: 6px; }
.dp-head span { text-align: center; color: var(--faint); font-size: 11.5px; font-weight: 700; text-transform: uppercase; }
.dp-day {
  height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card);
  color: var(--text); font-size: 15px; font-weight: 650; transition: border-color .15s, background .15s, color .15s;
}
.dp-day:hover:not(:disabled) { border-color: var(--coral); color: var(--coral); }
.dp-day.today { border-color: rgba(255, 122, 89, .6); color: var(--coral); }
.dp-day.on { background: var(--grad); border-color: transparent; color: var(--oncoral); font-weight: 800; box-shadow: var(--neon); }
.dp-day:disabled { opacity: .25; }
.dp-time { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.dp-hours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dp-pill {
  padding: 8px 0; border-radius: 999px; border: 1px solid transparent;
  background: rgba(255, 255, 255, .04); color: var(--text); font-size: 13.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; transition: background .15s, color .15s, border-color .15s, transform .08s;
}
.dp-pill:hover { background: rgba(255, 122, 89, .10); border-color: rgba(255, 122, 89, .35); color: var(--coral); }
.dp-pill:active { transform: scale(.96); }
.dp-pill.on { background: var(--grad); color: var(--oncoral); font-weight: 800; box-shadow: var(--neon); }
.dp-seg { display: flex; background: rgba(255, 255, 255, .04); border-radius: 999px; padding: 3px; gap: 2px; }
.dp-segb {
  flex: 1; padding: 7px 0; border: 0; border-radius: 999px; background: none; color: var(--muted);
  font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; transition: background .15s, color .15s;
}
.dp-segb:hover { color: var(--coral); }
.dp-segb.on { background: var(--grad); color: var(--oncoral); font-weight: 800; box-shadow: var(--neon); }
@media (max-width: 560px) {
  .dp-day { height: 40px; font-size: 14px; }
  .dp-hours { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Κουμπιά Email / Google Meet μέσα στη φόρμα ραντεβού */
.frow { display: grid; gap: 8px; margin-top: 12px; }
.frow.two { grid-template-columns: 1fr 1fr; }
.btn.meet { border: 1.5px solid var(--info); background: var(--card2); color: var(--white); }
.btn.meet:hover { background: var(--card); border-color: var(--info); }
.frow .btn.coral { border-width: 1.5px; background: var(--card2); color: var(--white); box-shadow: none; }
.frow .btn.coral:hover { background: var(--card); }

/* Export: επιλογή στηλών */
.xhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: 12.5px; font-weight: 650; }
.xhead .lnk { display: inline; }
.xcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.xchk {
  display: flex; align-items: center; gap: 9px; text-align: left; padding: 9px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line2); background: var(--bg2); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600;
}
.xchk:hover { border-color: #6b3426; }
.xchk i { flex: none; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--faint); display: grid; place-items: center; font-style: normal; }
.xchk.on { color: var(--white); border-color: rgba(255, 122, 89, .45); background: rgba(255, 122, 89, .07); }
.xchk.on i { background: var(--coral); border-color: var(--coral); }
.xchk.on i::after { content: '✓'; color: var(--oncoral); font-size: 11px; font-weight: 900; }

/* Import: σύνοψη + αντιστοίχιση στηλών */
.imp-sum { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.imp-sum > div { flex: 1 1 120px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.imp-sum b { display: block; font-size: 22px; color: var(--white); }
.imp-sum span { color: var(--muted); font-size: 12px; }
.imp-sum > div:first-child b { color: var(--ok); }
.imp-map { display: grid; gap: 6px; }
.imp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 220px); align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg2); opacity: .6; }
.imp-row.on { opacity: 1; border-color: var(--line2); }
.imp-h { min-width: 0; }
.imp-h b { display: block; color: var(--white); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-h small { display: block; color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-arrow { color: var(--faint); }
.imp-sel { padding: 7px 10px; font-size: 13px; }
.imp-row.on .imp-sel { border-color: rgba(255, 122, 89, .45); }
@media (max-width: 560px) {
  .imp-row { grid-template-columns: 1fr; gap: 6px; }
  .imp-arrow { display: none; }
}

.imp-pick { min-width: 0; }
.imp-pick small { display: block; margin-top: 3px; font-size: 11px; color: var(--faint); }
.imp-vals { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 12px; padding-top: 4px; }
.imp-val { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); }
.imp-val > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-val em { font-style: normal; color: var(--faint); margin-left: 4px; }
.imp-val.unk > span { color: var(--warn); }
.imp-val.unk .imp-vsel { border-color: rgba(251, 191, 36, .5); }
.imp-vsel { padding: 5px 8px; font-size: 12px; }
.imp-vals-note { grid-column: 1 / -1; color: var(--faint); font-size: 12px; }

/* Μπάρες εφαρμογής (εγκατάσταση / backup) */
.appbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 122, 89, .35); background: rgba(255, 122, 89, .06); font-size: 13px; color: var(--muted);
}
.appbar b { color: var(--white); }
.appbar.warn { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .06); }
.appbar-act { display: flex; align-items: center; gap: 12px; flex: none; }
.appbar-act .lnk { display: inline; color: var(--faint); }
.howto ol { margin: 0 0 12px 18px; padding: 0; display: grid; gap: 6px; }
.howto p { margin: 0 0 10px; }
.howto .faint { color: var(--faint); font-size: 12.5px; }
.howto .warnbox { margin-top: 10px; }

.foot .lnk.lnk-bad:hover { color: var(--bad); }

/* --- Ασφάλεια δεδομένων / ενημερώσεις / «Δείξε περισσότερους» --- */
.appbar.bad { border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .08); }
.appbar.ok { border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .06); }
.more { display: flex; justify-content: center; padding: 14px 0 4px; }
/* Κάτω σύνδεσμοι: αναδιπλώνονται σε στενές οθόνες — τίποτα δεν βγαίνει εκτός οθόνης */
.foot { flex-wrap: wrap; row-gap: 4px; padding: 0 12px; }
.foot .ver { opacity: .7; white-space: nowrap; }
@media (max-width: 760px) { .foot .ver { flex-basis: 100%; text-align: center; } }

/* Κινητό: κανένα zoom στα γρήγορα διπλά πατήματα κουμπιών */
button, a, .btn, [data-act], input, select, textarea, label { touch-action: manipulation; }
/* iPhone ως εφαρμογή: η πάνω μπάρα δεν κρύβεται κάτω από την ώρα / μπαταρία */
header { padding-top: env(safe-area-inset-top); }
/* Ως εφαρμογή (αρχική οθόνη): χωρίς «λάστιχο» και κατά λάθος ανανέωση με τράβηγμα προς τα κάτω */
@media (display-mode: standalone) { html, body { overscroll-behavior-y: none; } }

/* --- Συγχρονισμός --- */
.btn.sync { position: relative; padding-left: 11px; padding-right: 11px; color: var(--muted); }
.btn.sync::after { content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 2px var(--card2); }
.btn.sync.st-ok::after { background: var(--ok); }
.btn.sync.st-busy::after { background: var(--coral); animation: syncpulse 1s ease-in-out infinite; }
.btn.sync.st-error::after, .btn.sync.st-revoked::after, .btn.sync.st-badlink::after { background: var(--bad); }
.btn.sync.st-needlink::after, .btn.sync.st-update::after { background: var(--warn); }
@keyframes syncpulse { 50% { opacity: .3; } }
.sync-line { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg2); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.sync-line b { color: var(--white); }
.sync-line.st-ok { border-color: rgba(74, 222, 128, .35); }
.sync-line.st-error, .sync-line.st-revoked, .sync-line.st-badlink { border-color: rgba(248, 113, 113, .45); }
.sub-h { margin: 18px 0 8px; font-size: 13px; color: var(--muted); font-weight: 650; }
.sync-share { display: flex; gap: 14px; align-items: center; }
.sync-share .qr { flex: none; width: 168px; height: 168px; background: #fff; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.sync-share .qr svg { width: 100%; height: 100%; display: block; }
.sync-acts { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.tip { background: rgba(255, 122, 89, .07); border: 1px solid rgba(255, 122, 89, .35); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .sync-share { flex-direction: column; align-items: stretch; } .sync-share .qr { width: 200px; height: 200px; margin: 0 auto; } }

/* --- Οθόνη σύνδεσης / αγοράς (χωρίς λογαριασμό το CRM δεν ανοίγει) --- */
.gate { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.gate-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line2); border-radius: 18px; padding: 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.gate-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gate h1 { font-family: "Noto Serif Display", Georgia, serif; font-weight: 600; font-size: 26px; margin: 4px 0 0; color: var(--white); }
.gate-p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.gate-p b { color: var(--text); }
.gate-inp { font-size: 17px; padding: 13px 14px; }
.gate-inp.code { font-size: 26px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.btn.block { width: 100%; min-height: 48px; font-size: 16px; }
.gate-links { display: flex; justify-content: space-between; gap: 12px; }
.gate-links .lnk { display: inline; font-size: 13.5px; }
.gate-err { background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .45); color: #fecaca; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; }
.gate-note { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; color: var(--muted); }
.gate-dev { background: rgba(255, 122, 89, .08); border: 1px dashed rgba(255, 122, 89, .6); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; color: var(--muted); }
.gate-dev b { color: var(--coral); font-size: 16px; letter-spacing: .1em; }
.gate-test { margin-top: 10px; border-top: 1px dashed var(--line2); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.gate-test small { color: var(--faint); }
.gate-foot { margin-top: 14px; font-size: 12px; color: var(--faint); }
.gate-foot a { color: var(--faint); }
.gate-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--coral); animation: gspin .8s linear infinite; margin: 6px auto; }
@keyframes gspin { to { transform: rotate(360deg); } }
.dev-list { display: flex; flex-direction: column; gap: 6px; }
.dev { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.dev small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.dev-me { font-size: 11px; color: var(--ok); border: 1px solid rgba(74, 222, 128, .4); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.acct-email { font-weight: 650; color: var(--white); }
.gate-logo .logo-name { display: inline !important; }

/* Import: σε ποια φάση μπαίνει ο καθένας */
.imp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.imp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 1.5px solid var(--c); font-size: 12.5px; font-weight: 650; color: var(--white); }
.imp-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.imp-chip b { color: var(--muted); font-weight: 700; }

/* Σχόλια: γραμμές η μία κάτω από την άλλη, «Στήλη: τιμή» στοιχισμένα */
.cmtbox { display: block; padding: 8px 10px; }
.cmtbox.none { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cmt-empty { color: var(--faint); font-style: italic; font-size: 13px; }
.cmt-item + .cmt-item { border-top: 1px dashed var(--line2); margin-top: 8px; padding-top: 8px; }
.cmt-item .cmt-d { margin-bottom: 3px; }
.cmt-lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl { font-size: 13px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.cl.kv { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr); gap: 12px; }
.cl .ck { color: var(--muted); }
.cl .cv { color: var(--text); }
.cl.more-lines { color: var(--faint); font-style: italic; }
.cmt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cmt-foot .lnk { display: inline; font-size: 12.5px; }
@media (max-width: 560px) { .cl.kv { grid-template-columns: minmax(80px, 110px) minmax(0, 1fr); gap: 8px; } }

/* Import: προεπισκόπηση πελατών */
.imp-preview { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.imp-pv { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius-sm); padding: 10px 12px; }
.imp-pv-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 6px; }
.imp-pv-main b { color: var(--white); font-size: 14.5px; }
.imp-pv-main span { color: var(--muted); font-size: 13px; }

/* Λίστα πελατών: πάτημα στον πελάτη → καρτέλα με τα σχόλια */
.row .info[data-act="info"] { cursor: pointer; }
.row:hover .nm { color: var(--coral); }
.meta .cm-count { color: var(--muted); }

/* Import: μόνο επιβεβαίωση */
.imp-ok { padding: 6px 0 2px; }
.imp-count { font-size: 17px; color: var(--text); line-height: 1.45; }
.imp-count b { font-size: 26px; color: var(--ok); margin-right: 4px; }
.imp-dup { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* ---------- Analytics (3η καρτέλα) ---------- */
.an-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 6px 0 10px; }
.an .kpi.st, .an .kpi.st:hover { cursor: default; transform: none; border-color: #262626; background: var(--card); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
/* Σύνολα: χρυσό περίγραμμα, για να ξεχωρίζουν από τα νούμερα του μήνα */
.an .an-tot .kpi.st, .an .an-tot .kpi.st:hover { border-color: var(--coral); }
.an .kpi.neo, .an .kpi.neo:hover { background: linear-gradient(160deg, rgba(255, 122, 89, .10), var(--card) 60%); }
.an .kpi.mon .val, .an .kpi .val.sm { font-size: 24px; margin: 8px 0 4px; }
.kgrid.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.an-d { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.an-d.up { color: var(--ok); }
.an-d.down { color: var(--bad); }
.an-d.same { color: var(--muted); }
.an-chart { margin-bottom: 18px; }
.an-chart .card-h { flex-wrap: wrap; }
.an-seg { flex: 0 1 auto; }
.an-seg .dp-segb { flex: none; padding: 6px 12px; font-size: 12.5px; }

/* Γράφημα ανά μήνα: μία σειρά, ο τρέχων μήνας χρυσός, οι υπόλοιποι πιο σβηστοί */
.anc { display: flex; gap: 8px; margin-top: 22px; }
.anc-y { position: relative; flex: none; width: 46px; height: 200px; }
.anc-y span { position: absolute; right: 0; transform: translateY(50%); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.anc-plot { position: relative; flex: 1; min-width: 0; }
.anc-gl { position: absolute; left: 0; right: 0; top: 0; height: 200px; pointer-events: none; }
.anc-g { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.anc-g.base { background: var(--line2); }
.anc-cols { position: relative; display: flex; align-items: stretch; }
.anc-col {
  position: relative; flex: 1 1 0; min-width: 0; border: 0; background: none; padding: 0;
  display: flex; flex-direction: column; align-items: stretch; border-radius: 6px;
}
.anc-area { position: relative; height: 200px; display: flex; align-items: flex-end; justify-content: center; }
.anc-bar { display: block; width: min(24px, 70%); background: #A0503C; border-radius: 4px 4px 0 0; transition: background .15s; }
.anc-col.cur .anc-bar { background: var(--coral); }
.anc-col:hover .anc-bar, .anc-col:focus-visible .anc-bar { background: var(--coral-light); }
.anc-col:hover, .anc-col:focus-visible { background: rgba(255, 255, 255, .03); outline: none; }
.anc-val { position: absolute; left: 0; right: 0; text-align: center; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.anc-lbl { display: flex; flex-direction: column; align-items: center; padding: 6px 0 2px; font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.anc-lbl small { font-size: 10px; color: var(--faint); }
.anc-col.cur .anc-lbl { color: var(--coral); font-weight: 700; }
.anc-tip {
  position: absolute; bottom: calc(100% - 30px); left: 50%; transform: translateX(-50%); z-index: 3;
  display: none; flex-direction: column; align-items: center; gap: 1px; white-space: nowrap; pointer-events: none;
  background: #1F1F1F; border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px;
  font-size: 12px; color: var(--muted); box-shadow: var(--shadow);
}
.anc-tip b { color: var(--white); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.anc-col:hover .anc-tip, .anc-col:focus-visible .anc-tip { display: flex; }
.anc-col:first-child .anc-tip { left: 0; transform: none; }
.anc-col:last-child .anc-tip { left: auto; right: 0; transform: none; }
.an-note { margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.an-note b { color: var(--text); }

/* Πίνακας μήνας με μήνα */
.an-t .show-m { display: none; }
.an-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.an-t { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.an-t th, .an-t td { padding: 9px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.an-t thead th { color: var(--muted); font-size: 12px; font-weight: 600; }
.an-t th:first-child { text-align: left; }
.an-t tbody tr:last-child th, .an-t tbody tr:last-child td { border-bottom: 0; }
.an-t tbody th .lnk { display: inline; font-weight: 600; color: var(--text); padding: 0; }
.an-t tbody th .lnk:hover { color: var(--coral); }
.an-t tr.cur th .lnk, .an-t tr.cur td { color: var(--coral); font-weight: 700; }
@media (max-width: 760px) {
  .kgrid.k4 .kpi:last-child { grid-column: auto; }
  .kgrid.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an .kpi.mon .val, .an .kpi .val.sm { font-size: 20px; }
  .an-seg { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .an-seg .dp-segb { padding: 7px 0; font-size: 12px; }
  .an-t .show-m { display: inline; }
  .anc-y { width: 38px; }
  .anc-lbl { font-size: 10.5px; }
  .an-t { font-size: 12.5px; }
  .an-t th, .an-t td { padding: 8px 5px; }
  .an-t th:first-child { padding-left: 0; }
  .an-t th:last-child, .an-t td:last-child { padding-right: 0; }
}
