/* New Mind Tech Καλημέρα — v28.0 */
:root {
  --bg: #F6F7F4; --card: #FFFFFF; --ink: #0F172A; --muted: #475569; --faint: #64748B; --line: #E3E7E1; --line2: #EEF0EB;
  --teal: #0F766E; --teal2: #115E59; --tealbg: #E8F5F2; --tealink: #0F3D39; --dark: #0F2E2C; --dark2: #1B4D49; --dark3: #163F3C; --mint: #CFE7E3; --mint2: #9CC9C2;
  --amber: #F5B83D; --amberbg: #FFFBF0; --amberline: #F1DFAE; --amberink: #5B4300;
  --red: #B91C1C; --redbg: #FEE2E2; --redink: #991B1B;
  --blue: #1D4ED8; --bluebg: #DBEAFE; --blueink: #1E3A8A; --violetbg: #EDE9FE; --violetink: #4C1D95;
  --src-direct: #0F766E; --src-booking: #1D4ED8; --src-airbnb: #BE123C; --src-expedia: #A16207; --src-agency: #7C3AED; --src-ooo: #64748B;
  --r: 14px; --sh: 0 8px 24px rgba(15, 23, 42, .12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 17px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 800; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(1200px 500px at 50% -10%, #1B4D49 0%, #0F2E2C 60%); }
.login form { width: 100%; max-width: 380px; background: var(--card); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; display: block; line-height: 1.1; }
.brand small { font-size: 11px; color: var(--mint2); letter-spacing: .06em; display: block; }
.login .brand small { color: var(--faint); }
.f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.f input, .f select, .f textarea, .inp { height: 44px; border: 1px solid #CBD2C9; border-radius: 10px; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--ink); background: #fff; width: 100%; min-width: 0; }
.f textarea, textarea.inp { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; font-weight: 500; }
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.msg { min-height: 18px; color: var(--redink); font-size: 13px; }

/* ---------- buttons ---------- */
.btn { height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid #D5DAD3; background: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: #AAB4A8; }
.btn.pri { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 800; }
.btn.pri:hover { background: var(--teal2); }
.btn.amb { background: var(--amber); border-color: var(--amber); color: #2B1D00; font-weight: 800; }
.btn.out { border-color: var(--teal); color: var(--teal); font-weight: 800; }
.btn.danger { border-color: #FCA5A5; color: var(--red); }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.lg { height: 52px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid #D5DAD3; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 42px; padding: 0 13px; border-radius: 10px; border: 1.5px solid #D5DAD3; background: #fff; font-size: 13.5px; font-weight: 600; }
.seg button[aria-pressed="true"] { border: 2.5px solid var(--teal); background: var(--tealbg); color: var(--tealink); font-weight: 800; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; background: #E9ECE6; padding: 4px; border-radius: 12px; }
.tabs button { height: 38px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-weight: 800; font-size: 13.5px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.toggle { width: 52px; height: 30px; border-radius: 999px; border: 0; background: #CBD2C9; position: relative; flex: none; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff; transition: left .15s; }
.toggle[aria-pressed="true"] { background: var(--teal); }
.toggle[aria-pressed="true"]::after { left: 25px; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #EEF1EC; color: #334155; white-space: nowrap; }
.pill.dark { background: var(--ink); color: #fff; } .pill.teal { background: #D9F0EB; color: var(--tealink); } .pill.amb { background: #FDE9B8; color: var(--amberink); }
.pill.red { background: var(--redbg); color: var(--redink); } .pill.blue { background: var(--bluebg); color: var(--blueink); } .pill.violet { background: var(--violetbg); color: var(--violetink); }
.pill.req { background: var(--redbg); color: #7F1D1D; }
.dot { flex: none; width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .35); color: #fff; }
.dot svg { width: 14px; height: 14px; display: block; }
.dot.paid { background: #15803D; } .dot.partial { background: #F5B83D; color: #2B1D00; } .dot.unpaid { background: #DC2626; }
.dot.invoiced { background: #1D4ED8; } .dot.credit { background: #7C3AED; }
.pill.grn { background: #DCFCE7; color: #14532D; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 232px; flex: none; background: var(--dark); color: #E6F4F1; padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 0 8px; }
.side nav { display: flex; flex-direction: column; gap: 3px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--mint); text-decoration: none; font-weight: 600; font-size: 14px; }
.side nav a:hover { background: var(--dark3); }
.side nav a[aria-current="page"] { background: var(--dark2); color: #fff; font-weight: 700; }
.side nav svg { flex: none; }
.side .prop { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--dark3); font-size: 12px; line-height: 1.5; color: var(--mint); }
.side .prop b { color: #fff; display: block; }
.side .prop .plan { margin-top: 6px; color: var(--amber); font-weight: 700; }
.main { flex: 1; min-width: 0; padding: 22px 26px 40px; display: flex; flex-direction: column; gap: 18px; }
.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.top .sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 18px 20px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.kpi .l { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.kpi .v { font-size: 26px; font-weight: 800; }
.kpi .s { font-size: 12.5px; color: var(--muted); }
.kpi.warn { background: #FEF2F2; border-color: #FECACA; } .kpi.warn .l { color: var(--redink); }
.lang { display: flex; border: 1px solid #D5DAD3; border-radius: 10px; overflow: hidden; background: #fff; }
.lang button { border: 0; background: transparent; height: 36px; padding: 0 10px; font-weight: 800; font-size: 12.5px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.note { font-size: 12.5px; color: var(--muted); }
.warnbox { background: var(--amberbg); border: 1px solid var(--amberline); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--amberink); }
.okbox { background: var(--tealbg); border: 1px solid #A7D8CF; border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 700; color: var(--tealink); }
.errbox { background: #FEF2F2; border: 1px solid #FECACA; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--redink); }
.demo-band { background: var(--amber); color: #2B1D00; font-size: 12.5px; font-weight: 700; padding: 6px 16px; text-align: center; }

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .04em; padding: 10px 14px; background: #FAFBF8; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-top: 1px solid var(--line2); vertical-align: middle; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: #FAFBF8; }
.num { font-variant-numeric: tabular-nums; }
b.num, .bold { font-weight: 800; }

/* ---------- today strip ---------- */
.today-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid #D5DAD3; background: #fff; font-weight: 700; font-size: 13px; }
.qchip .pill { font-size: 11px; padding: 3px 8px; }

/* ---------- calendar ---------- */
.cal-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cal { flex: 999 1 640px; min-width: 0; overflow: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #E9ECE6; font-size: 12px; font-weight: 700; color: #334155; align-items: center; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.grid-scroll { overflow-x: auto; }
.grid { --rowh: 50px; display: grid; position: relative; user-select: none; }
.g-head { display: contents; }
.g-room { position: sticky; left: 0; z-index: 3; background: #fff; padding: 6px 12px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); height: var(--rowh); }
.g-room b { font-size: 14px; } .g-room span { font-size: 11px; color: var(--faint); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-room .hk { width: 8px; height: 8px; border-radius: 99px; display: inline-block; margin-left: 6px; vertical-align: 1px; }
.hk.dirty { background: #DC2626; } .hk.progress { background: var(--amber); } .hk.clean { background: #22C55E; } .hk.inspect { background: var(--blue); }
.g-dh { position: sticky; top: 0; z-index: 2; background: #FAFBF8; padding: 7px 0; display: flex; flex-direction: column; align-items: center; border-left: 1px solid var(--line2); border-bottom: 1px solid var(--line); }
.g-dh span { font-size: 10.5px; font-weight: 700; color: var(--faint); } .g-dh b { font-size: 15px; font-weight: 800; }
.g-dh.today { background: #FEF3D7; box-shadow: inset 0 -3px 0 #E8A317; } .g-dh.we { background: #F4F5F1; }
.g-corner { position: sticky; left: 0; top: 0; z-index: 4; background: #FAFBF8; padding: 10px 12px; font-size: 12px; font-weight: 800; color: #334155; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line); }
.g-cell { border-left: 1px solid var(--line2); border-bottom: 1px solid var(--line2); height: var(--rowh); }
.g-cell.today { background: #FFFAEB; } .g-cell.we { background: #FAFBF8; }
.g-cell:hover { background: #EEF7F5; cursor: copy; }
.g-cell.drop { background: #D9F0EB; outline: 2px dashed var(--teal); outline-offset: -2px; }
.bar { z-index: 1; margin: 7px 2px; border: 0; border-radius: 8px; padding: 0 8px; display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 12.5px; text-align: left; min-width: 0; height: calc(var(--rowh) - 14px); align-self: start; touch-action: none; }
.bar > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar.sel { box-shadow: 0 0 0 3px var(--amber), 0 4px 10px rgba(15, 23, 42, .18); }
.bar.out { opacity: .5; } .bar.tent { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 6px, transparent 6px 12px); }
.bar.ooo { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px); }
.bar.inh { box-shadow: inset 4px 0 0 rgba(255,255,255,.75); }
.bar.drag { opacity: .7; outline: 2px dashed #fff; }
.bar .dot { width: 22px; height: 22px; margin-left: -3px; }

/* ---------- side panel / sheet ---------- */
.panel { flex: 1 1 300px; max-width: 360px; padding: 18px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mini > div { background: #F3F6F2; border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.mini .l { font-size: 10.5px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.mini .v { font-size: 14px; font-weight: 800; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; } .kv > span:first-child { color: var(--muted); }
.kv.tot { font-size: 17px; font-weight: 800; } .kv.tot > span:first-child { color: var(--ink); }
.deal { display: flex; flex-direction: column; gap: 2px; background: var(--amberbg); border: 1px solid var(--amberline); border-radius: 10px; padding: 9px 11px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; }
.deal .l { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; color: #6B4E00; }
.acts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

/* ---------- overlay / modal ---------- */
.ov { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .4); display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow-y: auto; }
.modal { width: 100%; max-width: 640px; background: #fff; border-radius: 18px; box-shadow: var(--sh); display: flex; flex-direction: column; }
.modal.wide { max-width: 920px; } .modal.narrow { max-width: 440px; }
.modal > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line2); }
.modal > .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal > footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line2); }
.fg { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.fg .full { grid-column: 1 / -1; }
.ac { position: relative; }
.ac-list { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh); max-height: 260px; overflow-y: auto; margin-top: 4px; }
.ac-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; border: 0; background: #fff; padding: 9px 12px; border-bottom: 1px solid var(--line2); }
.ac-list button:hover { background: var(--tealbg); }
.ac-list small { color: var(--muted); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; background: var(--tealbg); color: var(--tealink); padding: 5px 6px 5px 12px; border-radius: 999px; }
.chip button { width: 24px; height: 24px; border-radius: 999px; border: 0; background: rgba(15, 61, 57, .12); color: var(--tealink); font-weight: 800; line-height: 1; }
.doc { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.doc.done { background: #F7FBF9; border-color: #A7D8CF; } .doc.draft { background: var(--amberbg); border-color: var(--amberline); }
.doc .lines { display: flex; flex-direction: column; font-size: 13px; }
.doc .lines > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line2); }
.doc-view { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14mm 12mm; max-width: 210mm; margin: 0 auto; overflow-x: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; z-index: 80; box-shadow: var(--sh); max-width: calc(100vw - 32px); }
.toast.err { background: var(--redink); }
.spin { width: 22px; height: 22px; border-radius: 99px; border: 3px solid #D9F0EB; border-top-color: var(--teal); animation: sp 0.8s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- housekeeping ---------- */
.hk-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.hk-card.prog { border: 2px solid var(--amber); } .hk-card.done { border-color: #A7D8CF; background: #F7FBF9; }
.hk-card .no { font-size: 22px; font-weight: 800; }
.hk-items { display: flex; flex-direction: column; }
.hk-items label { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.hk-items input { width: 22px; height: 22px; accent-color: var(--teal); flex: none; }
.bar-prog { height: 8px; border-radius: 999px; background: #EEF1EC; overflow: hidden; } .bar-prog > i { display: block; height: 100%; background: var(--teal); }
.hk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.k-checkout { background: var(--dark); color: #fff; } .k-arrival { background: var(--amber); color: #2B1D00; } .k-sheets { background: var(--violetbg); color: var(--violetink); }
.k-towels { background: var(--bluebg); color: var(--blueink); } .k-tidy { background: #EEF1EC; color: #334155; } .k-deep { background: #FDE9B8; color: var(--amberink); }
.preview { background: var(--dark); color: #E6F4F1; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.preview .d { display: flex; align-items: center; gap: 10px; min-height: 28px; } .preview .d > b { width: 74px; flex: none; font-size: 12.5px; color: var(--mint2); }

/* ---------- agreements flow ---------- */
.flow { background: var(--dark); color: #E6F4F1; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.flow .st { display: flex; gap: 12px; align-items: flex-start; } .flow .n { flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--amber); color: #2B1D00; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.flow b { color: #fff; display: block; font-size: 14px; } .flow span { font-size: 13px; color: var(--mint); }

/* ---------- mobile ---------- */
.bnav { display: none; }
.fab { display: none; }
@media (max-width: 820px) {
  .side { display: none; }
  .main { padding: 14px 16px 96px; gap: 14px; }
  h1 { font-size: 22px; }
  .bnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .bnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; text-decoration: none; font-size: 11px; font-weight: 800; color: var(--faint); }
  .bnav a[aria-current="page"] { color: var(--teal); }
  .fab { display: flex; position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 41; width: 60px; height: 60px; border-radius: 999px; border: 0; background: var(--amber); align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(15, 23, 42, .25); }
  .panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-width: none; max-height: 82vh; border-radius: 22px 22px 0 0; z-index: 45; box-shadow: 0 -10px 30px rgba(15, 23, 42, .25); padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .panel::before { content: ''; align-self: center; width: 44px; height: 5px; border-radius: 99px; background: #D5DAD3; flex: none; }
  .sheet-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 44; }
  .grid { --rowh: 46px; }
  .ov { padding: 0; align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; max-height: 94vh; overflow-y: auto; }
  .kpi .v { font-size: 22px; }
  .hide-m { display: none !important; }
  .tbl th, .tbl td { padding: 9px 10px; }
}
@media (min-width: 821px) { .hide-d { display: none !important; } .sheet-bg { display: none; } }


/* ---------- v28.2 πλοήγηση ημερολογίου ---------- */
.cal-nav { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cal-date { position: relative; gap: 8px; min-width: 150px; justify-content: center; font-variant-numeric: tabular-nums; }
.cal-date input { position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 100%; height: 100%; border: 0; }
.grid.panning { cursor: grabbing; transition: none; user-select: none; }
.grid [data-drag] { cursor: grab; }
.grid.month .bar { font-size: 11px; padding: 0 4px; gap: 3px; }
.grid.month .bar .dot { width: 18px; height: 18px; border-width: 1.5px; } .grid.month .bar .dot svg { width: 11px; height: 11px; }
.grid.month .g-dh b { font-size: 13px; } .grid.month .g-dh span { font-size: 9.5px; }
.tl { border-top: 1px solid var(--line2); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.tl-scroll { display: flex; gap: 4px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 4px; scrollbar-width: thin; touch-action: pan-x; user-select: none; }
.tl-m { position: relative; flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 0 4px; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; font: inherit; color: var(--ink); }
.tl-m:hover { background: #F4F5F1; }
.tl-m.on { background: #E3F2EE; border-color: var(--teal); }
.tl-m.now .tl-n { color: var(--amberink); }
.tl-y { position: absolute; top: 1px; left: 4px; font-size: 10px; font-weight: 800; color: var(--faint); }
.tl-n { font-size: 12px; font-weight: 800; }
.tl-b { width: 18px; height: 30px; border-radius: 4px; background: #EEF0EC; display: flex; align-items: flex-end; overflow: hidden; }
.tl-b i { display: block; width: 100%; background: var(--teal); border-radius: 3px 3px 0 0; }
.tl-p { font-size: 10.5px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.tl-h { font-size: 11.5px; }
@media (max-width: 820px) {
  .cal-nav { justify-content: stretch; width: 100%; }
  .cal-nav .seg { width: 100%; } .cal-nav .seg button { flex: 1; }
  .cal-nav > .row { width: 100%; justify-content: space-between; }
  .cal-date { flex: 1; min-width: 0; }
  .grid-scroll { touch-action: pan-y pan-x; }
  .tl-m { width: 46px; }
}

/* ---------- print (παραστατικό) ---------- */
@media print {
  body * { visibility: hidden !important; }
  .print-area, .print-area * { visibility: visible !important; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; border: 0; padding: 0; }
}
.preview .k-checkout { background: #fff; color: var(--dark); }
.cal-date svg { flex: none; }

/* ---------- v28.3 NEW MIND TECH ROBOT ---------- */
.robot-btn { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 11px 12px; border-radius: 10px; border: 1px solid #5B4B9A; background: #2E2560; color: #EDE9FE; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .02em; cursor: pointer; text-align: left; }
.robot-btn:hover { background: #3B2F7A; }
.ai-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; min-height: 180px; overflow-y: auto; padding: 4px 2px; }
.ai-m { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ai-m.me { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.ai-m.bot { align-self: flex-start; background: #F1EEFB; color: #1E1B4B; border-bottom-left-radius: 4px; }
.ai-m.err { background: var(--redbg); color: var(--redink); }
.ai-m.wait { display: inline-flex; align-items: center; gap: 8px; color: #5B21B6; }

@media (max-width: 820px) { .bar .dot { width: 20px; height: 20px; } .bar .dot svg { width: 12px; height: 12px; } }
/* v28.3: επιλογή ημερών με σύρσιμο για νέα κράτηση */
.g-cell.pick { background: rgba(13, 148, 136, .22) !important; box-shadow: inset 0 0 0 2px var(--teal); }
.g-cell.pick.first { border-top-left-radius: 8px; border-bottom-left-radius: 8px; } .g-cell.pick.last { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.pick-tip { position: fixed; z-index: 70; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; padding: 6px 10px; border-radius: 8px; box-shadow: 0 6px 16px rgba(15, 23, 42, .25); transform: translate(-50%, -130%); white-space: nowrap; }
.grid.picking { user-select: none; -webkit-user-select: none; cursor: col-resize; }
.g-cell { -webkit-touch-callout: none; }
.src-row { gap: 10px; flex-wrap: nowrap; } .src-row input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1.5px solid #D5DAD3; border-radius: 10px; background: #fff; flex: none; }
@media (max-width: 820px) { .src-row { flex-wrap: wrap; } }

/* v28.3: μενού που κρύβεται (στενή στήλη με εικονίδια) */
.side .brand { display: flex; align-items: center; gap: 10px; }
.side-tg { flex: none; width: 32px; height: 32px; border-radius: 9px; border: 1px solid #2C5A56; background: transparent; color: #CFE7E3; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.side-tg:hover { background: var(--dark3); color: #fff; }
.side { transition: width .18s ease; }
.shell.side-min .side { width: 72px; padding: 18px 10px; }
.shell.side-min .side .brand { flex-direction: column; padding: 0; gap: 10px; }
.shell.side-min .side .brand > div, .shell.side-min .side nav a .grow, .shell.side-min .robot-btn .grow, .shell.side-min .side .prop { display: none; }
.shell.side-min .side nav a { justify-content: center; padding: 11px 0; position: relative; }
.shell.side-min .side nav a svg:not(:first-child) { position: absolute; right: 4px; top: 4px; width: 10px; height: 10px; }
.shell.side-min .robot-btn { justify-content: center; padding: 11px 0; }
