/* NOTOSWEB CRM theme · ΣΥΣΤΗΜΑ ΣΧΕΔΙΟΥ 2026-10-31 (ένα κοινό σχέδιο για όλες τις σελίδες)
   Βάση: Adminator 4 (tokens, πλαϊνό, κάρτες) + Tabler (πίνακες, ετικέτες, κεφαλίδες) + Cleopatra (λιτό, αριθμοί).
   Brand NotosWeb: χρυσό #FFD237 / #FCA311 + μαύρο. Ολα πατάνε στα tokens: φωτεινό και σκούρο από τον ίδιο κώδικα.
   Παλιό (premium 16/10, 5 στρώσεις): _history/theme.css.2026-10-31 */
:root {
    /* Brand */
    --gold: #FFD237; --gold-2: #FCA311; --ink: #1a1300;
    --gold-hover: #f0960a; --gold-soft: rgba(252,163,17,.12); --gold-ring: rgba(252,163,17,.22); --gold-txt: #9a5b00;
    /* Επιφάνειες */
    --page: #f5f5f2; --card: #ffffff; --field: #ffffff; --hover: #f7f6f2; --muted-bg: #f1f0eb;
    /* Κείμενο */
    --txt: #17160f; --muted: #6b6860; --light: #9c988d;
    /* Γραμμές */
    --line: #e8e6df; --line-soft: #f0eee8; --line-strong: #d9d6cc; --line-gold: rgba(200,140,10,.45);
    /* Πλαϊνό */
    --sb-bg: #ffffff; --sb-txt: #5f5c54; --sb-ico: #a19d92; --sb-hover: #f5f4ef; --sb-active: rgba(252,163,17,.12); --sb-active-txt: #8a5200;
    /* Καταστάσεις */
    --ok: #16a34a; --ok-soft: #ecfdf3; --warn: #d97706; --warn-soft: #fff8eb; --bad: #dc2626; --bad-soft: #fef2f2; --info: #0284c7; --info-soft: #f0f9ff; --purple: #7c3aed; --purple-soft: #f5f3ff;
    /* Σκιές, γωνίες, κίνηση */
    --sh-sm: 0 1px 2px rgba(23,22,15,.04);
    --sh-card: 0 1px 3px rgba(23,22,15,.05), 0 1px 2px -1px rgba(23,22,15,.04);
    --sh-lg: 0 12px 28px -8px rgba(23,22,15,.14), 0 4px 8px -4px rgba(23,22,15,.06);
    --r-sm: 8px; --r: 12px; --r-lg: 16px;
    --nw-select-accent: #FCA311;   /* dropdowns (assets/js/nw-select.js) */
    --ease: cubic-bezier(.2,.8,.2,1);

    /* Tailwind gray/indigo → tokens (theme.js) */
    --g50: 247 246 242; --g100: 239 237 231; --g200: 228 225 217; --g300: 211 207 197; --g400: 168 164 152;
    --g500: 109 106 97; --g600: 87 84 76; --g700: 63 61 55; --g800: 38 36 31; --g900: 22 21 15; --g950: 12 11 8;
    --p50: 255 248 225; --p100: 255 239 194; --p200: 255 224 138; --p300: 245 197 66; --p400: 240 180 41;
    --p500: 252 163 17; --p600: 176 104 0; --p700: 150 88 0; --p800: 122 72 0; --p900: 90 53 0; --p950: 60 35 0;
    color-scheme: light;
}
html.dark {
    --gold-hover: #ffb43a; --gold-soft: rgba(255,210,55,.10); --gold-ring: rgba(255,210,55,.22); --gold-txt: #FFD237;
    --page: #0b0b0d; --card: #141417; --field: #18181c; --hover: #1b1b1f; --muted-bg: #19191d;
    --txt: #f4f2ec; --muted: #9b988f; --light: #6f6c65;
    --line: #26262b; --line-soft: #1e1e22; --line-strong: #34343a; --line-gold: rgba(255,210,55,.30);
    --sb-bg: #111114; --sb-txt: #a19e95; --sb-ico: #6f6c65; --sb-hover: #1b1b1f; --sb-active: rgba(255,210,55,.10); --sb-active-txt: #FFD237;
    --ok: #4ade80; --ok-soft: rgba(34,197,94,.12); --warn: #fbbf24; --warn-soft: rgba(245,158,11,.12); --bad: #f87171; --bad-soft: rgba(239,68,68,.12); --info: #38bdf8; --info-soft: rgba(14,165,233,.12); --purple: #a78bfa; --purple-soft: rgba(139,92,246,.14);
    --sh-sm: 0 1px 2px rgba(0,0,0,.4);
    --sh-card: 0 1px 2px rgba(0,0,0,.35);
    --sh-lg: 0 16px 36px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);

    --g50: 24 24 28; --g100: 32 32 37; --g200: 42 42 48; --g300: 58 58 64; --g400: 111 108 101;
    --g500: 155 152 143; --g600: 179 176 167; --g700: 207 204 195; --g800: 232 229 221; --g900: 245 243 238; --g950: 250 249 246;
    --p50: 42 34 8; --p100: 58 46 10; --p200: 77 61 16; --p300: 255 224 138; --p400: 255 217 92;
    --p500: 252 163 17; --p600: 255 210 55; --p700: 255 217 92; --p800: 255 224 138; --p900: 255 240 192; --p950: 255 248 225;
    color-scheme: dark;
}

html, body { background: var(--page); }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--txt); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01", "calt"; }
.nw-page { background: var(--page) !important; }
.nw-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
::selection { background: rgba(255,210,55,.35); color: inherit; }
html { scrollbar-color: rgba(127,127,127,.35) transparent; }

/* Κάρτες (όλες ίδιες: Tailwind bg-white + οι δικές κάθε σελίδας) */
html.dark .bg-white, html.dark .hover\:bg-white:hover { background-color: var(--card); }

/* Κύριο κουμπί = χρυσό του brand, επίπεδο */
html .bg-indigo-600 { background-color: var(--gold-2); color: var(--ink); }
html .bg-indigo-600.text-white, html .bg-indigo-600 .text-white { color: var(--ink); }
html .hover\:bg-indigo-700:hover, html .hover\:bg-indigo-600:hover { background-color: var(--gold-hover); color: var(--ink); }

/* Πεδία */
html.dark input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]):not([type=file]),
html.dark select, html.dark textarea { background-color: var(--field); color: var(--txt); border-color: var(--line-strong); }
html.dark input::placeholder, html.dark textarea::placeholder { color: var(--light); }
input[type=checkbox], input[type=radio] { accent-color: var(--gold-2); }

/* Πλαϊνό μενού (Adminator) */
.nw-side { background: var(--sb-bg); border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .22s ease; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.nw-side:hover { scrollbar-color: rgba(127,127,127,.3) transparent; }
.nw-side.open { transform: none; }
@media (min-width: 1024px) { .nw-side { transform: none; } }
.nw-backdrop { background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.nw-backdrop.open { opacity: 1; pointer-events: auto; }
.nw-brand { border-bottom: 1px solid var(--line-soft); }
.nw-word { letter-spacing: .08em; color: var(--txt); }
.nw-tag { color: var(--gold-txt); letter-spacing: .16em; }
.nw-link { color: var(--sb-txt); font-size: 13.5px; transition: background-color .15s, color .15s, box-shadow .15s; }
.nw-link svg { color: var(--sb-ico); transition: color .15s; }
.nw-link:hover { background: var(--sb-hover); color: var(--txt); }
.nw-link:hover svg { color: var(--txt); }
.nw-link.active { background: var(--sb-active); color: var(--sb-active-txt); box-shadow: inset 3px 0 0 var(--gold-2); font-weight: 600; }
.nw-link.active svg { color: var(--gold-2); }
/* Τίτλοι ενοτήτων μενού (Adminator): μικρά κεφαλαία mono· η τελευταία ενότητα (Ρυθμίσεις) μόνο με γραμμή */
.nw-sec { font: 600 10px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--light); padding: 18px 12px 8px; }
.nw-sec:first-child { padding-top: 4px; }
.nw-sec-line { padding: 0; height: 1px; background: var(--line-soft); margin: 14px 12px 10px; }
.nw-user { border-top: 1px solid var(--line-soft); }
.nw-avatar { background: var(--gold-2); color: var(--ink); }

/* Πάνω μπάρα: συμπαγής, λεπτή γραμμή */
.nw-top { background: var(--card); border-bottom: 1px solid var(--line); }
.nw-top h2 { font-weight: 600; letter-spacing: -.01em; }
.nw-icon-btn { color: var(--muted); border: 1px solid var(--line); background: var(--field); transition: color .15s, border-color .15s, background-color .15s; }
.nw-icon-btn:hover { color: var(--txt); border-color: var(--line-strong); background: var(--hover); }
.nw-theme .i-sun { display: none; }
html.dark .nw-theme .i-sun { display: block; }
html.dark .nw-theme .i-moon { display: none; }
.nw-top a[href^="/notifications/"] { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--field); color: var(--muted); }
.nw-top a[href^="/notifications/"]:hover { color: var(--txt); border-color: var(--line-strong); background: var(--hover); }
.nw-top a[href^="/notifications/"] > svg { width: 19px; height: 19px; }
.nw-side .bg-red-500, .nw-top .bg-red-500 { background: var(--bad); font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--card); }

/* Fixed-dark surfaces (log consoles, dark buttons) that must not flip with the theme */
.nw-console { background: #0e0e10; }
.nw-btn-dark { background: #16150f; color: #fff; }
.nw-btn-dark:hover { background: #26241f; }
html.dark .nw-btn-dark { background: #2a2a30; }
html.dark .nw-btn-dark:hover { background: #34343a; }

/* FullCalendar */
.fc { --fc-border-color: var(--line); --fc-page-bg-color: var(--card); --fc-neutral-bg-color: rgb(var(--g50));
      --fc-list-event-hover-bg-color: rgb(var(--g50)); --fc-today-bg-color: rgba(252,163,17,.10);
      --fc-button-bg-color: rgb(var(--g100)); --fc-button-border-color: rgb(var(--g200)); --fc-button-text-color: rgb(var(--g800));
      --fc-button-hover-bg-color: rgb(var(--g200)); --fc-button-hover-border-color: rgb(var(--g300));
      --fc-button-active-bg-color: var(--gold-2); --fc-button-active-border-color: var(--gold-2); }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active { color: var(--ink); }
.fc .fc-button { font-size: .85rem; font-weight: 500; text-transform: capitalize; box-shadow: none !important; }
.fc .fc-button-primary:disabled { opacity: .45; }
.fc .fc-toolbar-title { font-size: 1.1rem; font-weight: 600; }
.fc .fc-col-header-cell-cushion, .fc .fc-daygrid-day-number { color: var(--muted); text-decoration: none; }
.fc .fc-list-day-cushion { background: rgb(var(--g50)); }
.fc a { color: inherit; }

/* Colored tints in dark mode (badges, alerts) */
html.dark .bg-red-50, html.dark .hover\:bg-red-50:hover { background-color: rgb(239 68 68 / .10); }
html.dark .bg-red-100, html.dark .hover\:bg-red-100:hover { background-color: rgb(239 68 68 / .16); }
html.dark .bg-red-200, html.dark .hover\:bg-red-200:hover { background-color: rgb(239 68 68 / .24); }
html.dark .text-red-600, html.dark .hover\:text-red-600:hover, html.dark .text-red-700, html.dark .hover\:text-red-700:hover, html.dark .text-red-800, html.dark .hover\:text-red-800:hover, html.dark .text-red-900, html.dark .hover\:text-red-900:hover { color: #fca5a5; }
html.dark .border-red-100, html.dark .border-red-200, html.dark .border-red-300 { border-color: rgb(239 68 68 / .35); }
html.dark .bg-green-50, html.dark .hover\:bg-green-50:hover { background-color: rgb(34 197 94 / .10); }
html.dark .bg-green-100, html.dark .hover\:bg-green-100:hover { background-color: rgb(34 197 94 / .16); }
html.dark .bg-green-200, html.dark .hover\:bg-green-200:hover { background-color: rgb(34 197 94 / .24); }
html.dark .text-green-600, html.dark .hover\:text-green-600:hover, html.dark .text-green-700, html.dark .hover\:text-green-700:hover, html.dark .text-green-800, html.dark .hover\:text-green-800:hover, html.dark .text-green-900, html.dark .hover\:text-green-900:hover { color: #86efac; }
html.dark .border-green-100, html.dark .border-green-200, html.dark .border-green-300 { border-color: rgb(34 197 94 / .35); }
html.dark .bg-blue-50, html.dark .hover\:bg-blue-50:hover { background-color: rgb(59 130 246 / .10); }
html.dark .bg-blue-100, html.dark .hover\:bg-blue-100:hover { background-color: rgb(59 130 246 / .16); }
html.dark .bg-blue-200, html.dark .hover\:bg-blue-200:hover { background-color: rgb(59 130 246 / .24); }
html.dark .text-blue-600, html.dark .hover\:text-blue-600:hover, html.dark .text-blue-700, html.dark .hover\:text-blue-700:hover, html.dark .text-blue-800, html.dark .hover\:text-blue-800:hover, html.dark .text-blue-900, html.dark .hover\:text-blue-900:hover { color: #93c5fd; }
html.dark .border-blue-100, html.dark .border-blue-200, html.dark .border-blue-300 { border-color: rgb(59 130 246 / .35); }
html.dark .bg-yellow-50, html.dark .hover\:bg-yellow-50:hover { background-color: rgb(234 179 8 / .10); }
html.dark .bg-yellow-100, html.dark .hover\:bg-yellow-100:hover { background-color: rgb(234 179 8 / .16); }
html.dark .bg-yellow-200, html.dark .hover\:bg-yellow-200:hover { background-color: rgb(234 179 8 / .24); }
html.dark .text-yellow-600, html.dark .hover\:text-yellow-600:hover, html.dark .text-yellow-700, html.dark .hover\:text-yellow-700:hover, html.dark .text-yellow-800, html.dark .hover\:text-yellow-800:hover, html.dark .text-yellow-900, html.dark .hover\:text-yellow-900:hover { color: #fde047; }
html.dark .border-yellow-100, html.dark .border-yellow-200, html.dark .border-yellow-300 { border-color: rgb(234 179 8 / .35); }
html.dark .bg-orange-50, html.dark .hover\:bg-orange-50:hover { background-color: rgb(249 115 22 / .10); }
html.dark .bg-orange-100, html.dark .hover\:bg-orange-100:hover { background-color: rgb(249 115 22 / .16); }
html.dark .bg-orange-200, html.dark .hover\:bg-orange-200:hover { background-color: rgb(249 115 22 / .24); }
html.dark .text-orange-600, html.dark .hover\:text-orange-600:hover, html.dark .text-orange-700, html.dark .hover\:text-orange-700:hover, html.dark .text-orange-800, html.dark .hover\:text-orange-800:hover, html.dark .text-orange-900, html.dark .hover\:text-orange-900:hover { color: #fdba74; }
html.dark .border-orange-100, html.dark .border-orange-200, html.dark .border-orange-300 { border-color: rgb(249 115 22 / .35); }
html.dark .bg-purple-50, html.dark .hover\:bg-purple-50:hover { background-color: rgb(168 85 247 / .10); }
html.dark .bg-purple-100, html.dark .hover\:bg-purple-100:hover { background-color: rgb(168 85 247 / .16); }
html.dark .bg-purple-200, html.dark .hover\:bg-purple-200:hover { background-color: rgb(168 85 247 / .24); }
html.dark .text-purple-600, html.dark .hover\:text-purple-600:hover, html.dark .text-purple-700, html.dark .hover\:text-purple-700:hover, html.dark .text-purple-800, html.dark .hover\:text-purple-800:hover, html.dark .text-purple-900, html.dark .hover\:text-purple-900:hover { color: #d8b4fe; }
html.dark .border-purple-100, html.dark .border-purple-200, html.dark .border-purple-300 { border-color: rgb(168 85 247 / .35); }
html.dark .bg-violet-50, html.dark .hover\:bg-violet-50:hover { background-color: rgb(139 92 246 / .10); }
html.dark .bg-violet-100, html.dark .hover\:bg-violet-100:hover { background-color: rgb(139 92 246 / .16); }
html.dark .bg-violet-200, html.dark .hover\:bg-violet-200:hover { background-color: rgb(139 92 246 / .24); }
html.dark .text-violet-600, html.dark .hover\:text-violet-600:hover, html.dark .text-violet-700, html.dark .hover\:text-violet-700:hover, html.dark .text-violet-800, html.dark .hover\:text-violet-800:hover, html.dark .text-violet-900, html.dark .hover\:text-violet-900:hover { color: #c4b5fd; }
html.dark .border-violet-100, html.dark .border-violet-200, html.dark .border-violet-300 { border-color: rgb(139 92 246 / .35); }
html.dark .bg-amber-50, html.dark .hover\:bg-amber-50:hover { background-color: rgb(245 158 11 / .10); }
html.dark .bg-amber-100, html.dark .hover\:bg-amber-100:hover { background-color: rgb(245 158 11 / .16); }
html.dark .bg-amber-200, html.dark .hover\:bg-amber-200:hover { background-color: rgb(245 158 11 / .24); }
html.dark .text-amber-600, html.dark .hover\:text-amber-600:hover, html.dark .text-amber-700, html.dark .hover\:text-amber-700:hover, html.dark .text-amber-800, html.dark .hover\:text-amber-800:hover, html.dark .text-amber-900, html.dark .hover\:text-amber-900:hover { color: #fcd34d; }
html.dark .border-amber-100, html.dark .border-amber-200, html.dark .border-amber-300 { border-color: rgb(245 158 11 / .35); }
html.dark .bg-emerald-50, html.dark .hover\:bg-emerald-50:hover { background-color: rgb(16 185 129 / .10); }
html.dark .bg-emerald-100, html.dark .hover\:bg-emerald-100:hover { background-color: rgb(16 185 129 / .16); }
html.dark .bg-emerald-200, html.dark .hover\:bg-emerald-200:hover { background-color: rgb(16 185 129 / .24); }
html.dark .text-emerald-600, html.dark .hover\:text-emerald-600:hover, html.dark .text-emerald-700, html.dark .hover\:text-emerald-700:hover, html.dark .text-emerald-800, html.dark .hover\:text-emerald-800:hover, html.dark .text-emerald-900, html.dark .hover\:text-emerald-900:hover { color: #6ee7b7; }
html.dark .border-emerald-100, html.dark .border-emerald-200, html.dark .border-emerald-300 { border-color: rgb(16 185 129 / .35); }
html.dark .bg-teal-50, html.dark .hover\:bg-teal-50:hover { background-color: rgb(20 184 166 / .10); }
html.dark .bg-teal-100, html.dark .hover\:bg-teal-100:hover { background-color: rgb(20 184 166 / .16); }
html.dark .bg-teal-200, html.dark .hover\:bg-teal-200:hover { background-color: rgb(20 184 166 / .24); }
html.dark .text-teal-600, html.dark .hover\:text-teal-600:hover, html.dark .text-teal-700, html.dark .hover\:text-teal-700:hover, html.dark .text-teal-800, html.dark .hover\:text-teal-800:hover, html.dark .text-teal-900, html.dark .hover\:text-teal-900:hover { color: #5eead4; }
html.dark .border-teal-100, html.dark .border-teal-200, html.dark .border-teal-300 { border-color: rgb(20 184 166 / .35); }
html.dark .bg-pink-50, html.dark .hover\:bg-pink-50:hover { background-color: rgb(236 72 153 / .10); }
html.dark .bg-pink-100, html.dark .hover\:bg-pink-100:hover { background-color: rgb(236 72 153 / .16); }
html.dark .bg-pink-200, html.dark .hover\:bg-pink-200:hover { background-color: rgb(236 72 153 / .24); }
html.dark .text-pink-600, html.dark .hover\:text-pink-600:hover, html.dark .text-pink-700, html.dark .hover\:text-pink-700:hover, html.dark .text-pink-800, html.dark .hover\:text-pink-800:hover, html.dark .text-pink-900, html.dark .hover\:text-pink-900:hover { color: #f9a8d4; }
html.dark .border-pink-100, html.dark .border-pink-200, html.dark .border-pink-300 { border-color: rgb(236 72 153 / .35); }
html.dark .bg-sky-50, html.dark .hover\:bg-sky-50:hover { background-color: rgb(14 165 233 / .10); }
html.dark .bg-sky-100, html.dark .hover\:bg-sky-100:hover { background-color: rgb(14 165 233 / .16); }
html.dark .bg-sky-200, html.dark .hover\:bg-sky-200:hover { background-color: rgb(14 165 233 / .24); }
html.dark .text-sky-600, html.dark .hover\:text-sky-600:hover, html.dark .text-sky-700, html.dark .hover\:text-sky-700:hover, html.dark .text-sky-800, html.dark .hover\:text-sky-800:hover, html.dark .text-sky-900, html.dark .hover\:text-sky-900:hover { color: #7dd3fc; }
html.dark .border-sky-100, html.dark .border-sky-200, html.dark .border-sky-300 { border-color: rgb(14 165 233 / .35); }

/* Αναζήτηση Ctrl+K (includes/layout/header.php + assets/js/nw-cmdk.js) */
.nw-search-btn { color: var(--muted); border: 1px solid var(--line); background: var(--field); }
.nw-search-btn:hover { border-color: var(--line-gold); color: var(--txt); }
.nw-kbd { font: 600 10px/1 'JetBrains Mono', ui-monospace, monospace; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); background: var(--page); }
.nw-cmdk-back { background: rgba(10,10,11,.45); backdrop-filter: blur(2px); }
.nw-cmdk-box { background: var(--card); color: var(--txt); border: 1px solid var(--line); box-shadow: 0 24px 60px -12px rgba(0,0,0,.35); }
.nw-cmdk-line { border-bottom: 1px solid var(--line); }
.nw-cmdk-line-t { border-top: 1px solid var(--line); }
.nw-cmdk-muted { color: var(--muted); }
.nw-cmdk input { color: var(--txt); }
.nw-cmdk input:focus { box-shadow: none; }
.nw-cmdk-item { color: var(--txt); }
.nw-cmdk-item[aria-selected="true"] { background: var(--sb-active); color: var(--sb-active-txt); }
.nw-cmdk-item[aria-selected="true"] .nw-cmdk-muted { color: inherit; }

/* 12/10/2026 UX: κοινά για όλες τις σελίδες */
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
main table { font-variant-numeric: tabular-nums; }
main table thead th { white-space: nowrap; }
@media (max-width: 640px) {
    /* iPhone: 16px στα πεδία για να μη κάνει zoom, πιο στενά κελιά πινάκων */
    input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; }
    main td.px-6, main th.px-6, main td.px-5, main th.px-5 { padding-left: 12px; padding-right: 12px; }
    main td.py-4 { padding-top: 10px; padding-bottom: 10px; }
}
/* Πίνακες που κυλάνε οριζόντια: σκιά στην άκρη για να φαίνεται ότι υπάρχει κι άλλο */
main .overflow-x-auto {
    background-image: linear-gradient(90deg, var(--card) 30%, transparent), linear-gradient(270deg, var(--card) 30%, transparent),
        radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.18), transparent), radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.18), transparent);
    background-position: left, right, left, right; background-size: 24px 100%, 24px 100%, 10px 100%, 10px 100%;
    background-repeat: no-repeat; background-attachment: local, local, scroll, scroll; }


/* ==========================================================================
   ΣΥΣΤΗΜΑ ΣΧΕΔΙΟΥ 2026-10-31 · components (μία φορά, για όλες τις σελίδες)
   ========================================================================== */

/* Τυπογραφία (Cleopatra: σφιχτοί τίτλοι, ήρεμο κείμενο) */
main h1 { font-weight: 700; letter-spacing: -.025em; }
main h2, main h3 { letter-spacing: -.012em; }
main .text-2xl, main .text-3xl { font-variant-numeric: tabular-nums; }

/* Κάρτες (Adminator): λευκό, λεπτή γραμμή, ελάχιστη σκιά. Ιδιο για Tailwind και για τις κάρτες κάθε σελίδας */
main :is(.bg-white.rounded-lg, .bg-white.rounded-xl, .bg-white.rounded-2xl, .rp-card, .rp-panel,
         .cr-kpi, .cs-card, .ex-qc, .fn-kpi, .md-kpi, .py-kpi, .si-card, .sp-card, .sp-panel, .st-card, .sv-box, .fx-card, .hp-box, .hp-card) {
    background-color: var(--card); border: 1px solid var(--line) !important; box-shadow: var(--sh-card);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
main :is(.rounded-xl, .rounded-2xl):is(.bg-white, .rp-card, .rp-panel) { border-radius: var(--r-lg); }
main :is(a.bg-white.rounded-xl, a.bg-white.rounded-2xl, .rp-card, a.sp-card, a.st-card, a.fn-kpi, a.md-kpi, a.py-kpi, a.cs-card, a.cr-kpi, a.fx-card, .sp-card, .st-card, .hp-card):hover {
    border-color: var(--line-strong) !important; box-shadow: var(--sh-lg); transform: translateY(-1px);
}
main .border-gray-100, main .border-gray-200 { border-color: var(--line); }
main .divide-gray-50 > :not([hidden]) ~ :not([hidden]), main .divide-gray-100 > :not([hidden]) ~ :not([hidden]),
main .divide-gray-200 > :not([hidden]) ~ :not([hidden]) { border-color: var(--line-soft); }
html:not(.dark) main .bg-gray-50 { background-color: var(--muted-bg); }

/* Επιλεγμένες / επείγουσες κάρτες: μόνο το περίγραμμα αλλάζει χρώμα */
html main :is(.ex-qc.on, .si-card.on) { border: 1px solid var(--gold-2) !important; box-shadow: 0 0 0 3px var(--gold-ring) !important; }
main .sp-card[data-l=late] { border-color: color-mix(in srgb, var(--bad) 55%, transparent) !important; box-shadow: inset 3px 0 0 var(--bad), var(--sh-card); }
main .sp-card[data-l=urgent] { border-color: color-mix(in srgb, var(--warn) 55%, transparent) !important; box-shadow: inset 3px 0 0 var(--warn), var(--sh-card); }

/* Μεγάλοι αριθμοί (KPI) */
main :is(.rp-card, .fn-kpi, .md-kpi, .py-kpi, .cr-kpi, .st-card) :is(.text-2xl, .text-3xl), main .hp-card .n,
main .bg-white.rounded-2xl :is(.text-2xl, .text-3xl).font-semibold { font-weight: 650; letter-spacing: -.025em; }

/* Εικονίδια/emoji καρτών: ουδέτερο πλακίδιο */
main .rp-card > div:first-child > span:first-child {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; font-size: 15px; flex: none;
    background: var(--muted-bg); box-shadow: inset 0 0 0 1px var(--line);
}
main .st-card > span.text-2xl:first-child {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; font-size: 21px;
    background: var(--muted-bg); box-shadow: inset 0 0 0 1px var(--line);
}
main .si-ico { background-color: var(--muted-bg); box-shadow: inset 0 0 0 1px var(--line); }

/* Κουμπιά */
main .hp-btn { background: var(--gold-2); }
main .hp-btn:hover { background: var(--gold-hover); }
html .bg-indigo-600, main .rp-btn, main .hp-btn { box-shadow: var(--sh-sm); transition: background-color .15s, transform .1s, box-shadow .15s; }
html .bg-indigo-600:active, main .rp-btn:active, main .hp-btn:active { transform: translateY(1px); }
main :is(a, button).border:is(.rounded-lg, .rounded-xl) { transition: border-color .15s, background-color .15s, color .15s; }
main :is(a, button).border:is(.rounded-lg, .rounded-xl):hover { border-color: var(--line-strong); background-color: var(--hover); }

/* Πεδία: γραμμή + χρυσό δαχτυλίδι εστίασης */
main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=submit]):not([type=button]):not([type=file]),
main select, main textarea { border-color: var(--line-strong); transition: border-color .15s, box-shadow .15s; }
main input:not([type=checkbox]):not([type=radio]):not([type=range]):focus, main select:focus, main textarea:focus {
    border-color: var(--gold-2) !important; outline: none; box-shadow: 0 0 0 3px var(--gold-ring) !important;
}

/* Πίνακες (Tabler): γκρι κεφαλίδα με μικρά κεφαλαία, απαλό hover */
main table thead, main table thead.bg-gray-50, main table thead tr.bg-gray-50 { background: var(--muted-bg) !important; }
main table thead th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
main table tbody tr { transition: background-color .12s; }
main table tbody tr:hover { background-color: var(--hover); }

/* Λίστες (Αιτήματα, Πελάτες κ.λπ.) */
main :is(.ld-row, .cl-row, .si-row, .cr-row, .mo-row, .pf-row) { transition: background-color .12s; }
main :is(.ld-row, .cl-row, .si-row, .cr-row, .mo-row, .pf-row):hover { background-color: var(--hover) !important; }
main .ld-row.is-waiting, main .ld-row.is-waiting:hover { box-shadow: inset 3px 0 0 var(--gold-2); }
main .ld-row.is-sel { background-color: var(--gold-soft) !important; }
main :is(.ld-av, .cl-av) { box-shadow: inset 0 0 0 1px var(--line); }
main :is(.ld-act, .cl-act) { transition: border-color .15s, color .15s, background-color .15s; }
main :is(.ld-act, .cl-act):hover { border-color: var(--line-strong); background-color: var(--hover); }

/* Καρτέλες, φίλτρα, segmented (Tabler) */
main :is(.ld-tab, .cl-tab, .cr-tab, .fn-tab, .of-tab, .sp-tab, .ht-tab, .bk-tab) { transition: color .15s, border-color .15s; }
main :is(.ld-tab, .cl-tab).on .n { background: var(--gold-2); color: var(--ink); }
main .ld-seg { background: var(--muted-bg); box-shadow: inset 0 0 0 1px var(--line); }
main .ld-seg a.on { background: var(--card); box-shadow: var(--sh-card), 0 0 0 1px var(--line); }
main .cl-seg a.on { border-color: var(--gold-2); }
main .cl-svc { box-shadow: inset 0 0 0 1px var(--line); transition: border-color .15s, background-color .15s; }
main .cl-svc:hover { background-color: var(--hover); }
main .cl-sugbar { background: var(--gold-soft); }

/* Ετικέτες κατάστασης (Tabler soft badges) */
main .rp-pill { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent); font-weight: 600; letter-spacing: .01em; }
main .rp-dot.rp-ok { box-shadow: 0 0 0 3px var(--ok-soft); }
main .rp-dot.rp-warn { box-shadow: 0 0 0 3px var(--warn-soft); }
main .rp-dot.rp-bad { box-shadow: 0 0 0 3px var(--bad-soft); }

/* «Κάνε τώρα»: αριθμημένοι κύκλοι */
main .rp-do > span.rounded-full:first-child { background: var(--gold-soft); color: var(--gold-txt); box-shadow: inset 0 0 0 1px var(--gold-ring); }
main .rp-do { transition: background-color .12s; }
main .rp-do:hover, main a.hp-li:hover { background-color: var(--hover); }
main .hp-head h2 { letter-spacing: -.01em; }
/* Κάρτα με κεφαλίδα (Tabler card-header): γραμμή κάτω από τον τίτλο */
main .hp-box > .hp-head { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
/* Ενέργειες μέσα σε λίστα: δευτερεύον κουμπί με περίγραμμα, ένα μόνο χρυσό κουμπί ανά οθόνη (Adminator) */
main .hp-row .hp-btn { background: var(--card); color: var(--txt); border: 1px solid var(--line-strong); box-shadow: var(--sh-sm); min-height: 36px; border-radius: var(--r-sm); font-size: 13px; }
main .hp-row .hp-btn:hover { background: var(--hover); border-color: var(--gold-2); color: var(--gold-txt); }
/* Κεφαλίδα σελίδας (Adminator): η ημερομηνία ως μικρή ετικέτα πάνω από τον τίτλο */
main .hp-top > div { display: flex; flex-direction: column-reverse; }
main .hp-top > div > p { margin: 0 0 6px; font: 600 11px/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--light); }
/* KPI (Cleopatra): μικρή ετικέτα με κεφαλαία, μεγάλος αριθμός */
main .hp-card { padding: 16px 18px; }
main .hp-card .t { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
main .hp-card .n { font-size: 28px; line-height: 1.15; margin-top: 8px; }
main .hp-card .s { margin-top: 2px; }
main .hp-more { color: var(--gold-txt); }

/* Μπάρες και στήλες: συμπαγές χρυσό σε ουδέτερη πίστα */
main :is(.rp-bar, .fn-bar, .sp-bar, .sv-bar, .hp-bar) { background-color: var(--muted-bg) !important; box-shadow: inset 0 0 0 1px var(--line-soft); }
main :is(.rp-bar, .fn-bar, .sp-bar, .sv-bar, .hp-bar) > i { background: var(--gold-2); transform-origin: left; }
main :is(.sp-bar, .sv-bar) > i.full { background: var(--ok); }
main .rp-col > i { max-width: 28px; border-radius: 6px 6px 3px 3px; background: var(--gold-2) !important; transform-origin: bottom; opacity: .55; transition: opacity .15s; }
main .rp-col:hover > i, main .rp-col:last-child > i { opacity: 1; }
main .rp-col:last-child > span:first-child { color: var(--gold-txt); font-weight: 700; }
main .rp-col > span:first-child { font-variant-numeric: tabular-nums; }

/* Αναδυόμενα, μαζικές αλλαγές, toast */
main :is(.td-menu, .si-new-pop), #clPick { border: 1px solid var(--line); box-shadow: var(--sh-lg) !important; }
main .ld-bulk { background: var(--card) !important; border: 1px solid var(--line); box-shadow: var(--sh-lg) !important; animation: none !important; }
main .ld-toast { box-shadow: var(--sh-lg); animation: none !important; }
.nw-cmdk-back { background: rgba(8,8,10,.45); }
.nw-cmdk-box { box-shadow: var(--sh-lg), 0 0 0 1px var(--line); }

/* Κίνηση: μόνο απαλό σβήσιμο της σελίδας και ανάπτυξη στις μπάρες (χωρίς λάμψεις) */
@media (prefers-reduced-motion: no-preference) {
    main.nw-page { animation: nwFade .35s var(--ease) backwards; }
    main :is(.rp-bar, .fn-bar, .sp-bar, .sv-bar, .hp-bar) > i { animation: nwGrowX .8s var(--ease) .1s both; }
    main .rp-col > i { animation: nwGrowY .7s var(--ease) both; }
    @keyframes nwFade { from { opacity: 0; } }
    @keyframes nwGrowX { from { transform: scaleX(0); } }
    @keyframes nwGrowY { from { transform: scaleY(0); } }
}

/* Πίνακας kanban (Tabler/AdminLTE): κοινό για Αιτήματα και ό,τι άλλο γίνει πίνακας (Samples κ.λπ.) */
.kb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(212px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.kb-col { --c: var(--light); display: flex; flex-direction: column; min-width: 0; min-height: 220px; max-height: calc(100vh - 250px);
    background: var(--muted-bg); border: 1px solid var(--line); border-radius: var(--r-lg); scroll-snap-align: start; }
.kb-blue { --c: #3b82f6; } .kb-yellow { --c: #eab308; } .kb-purple { --c: #a855f7; } .kb-green { --c: #22c55e; } .kb-red { --c: #ef4444; }
.kb-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; font-size: 13px; font-weight: 600; color: var(--txt); }
.kb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); flex: none; }
.kb-n { margin-left: auto; font: 600 11px/1 'JetBrains Mono', ui-monospace, monospace; padding: 4px 7px; border-radius: 999px; background: var(--card); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.kb-list { flex: 1; overflow-y: auto; padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 80px; scrollbar-width: thin; }
.kb-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; box-shadow: var(--sh-card); cursor: grab; transition: border-color .15s, box-shadow .15s; }
.kb-card:hover { border-color: var(--line-strong); }
.kb-card.is-waiting { box-shadow: inset 3px 0 0 var(--gold-2), var(--sh-card); }
.kb-name b { display: block; font-size: 14px; font-weight: 600; color: var(--txt); overflow-wrap: anywhere; }
.kb-name span { display: block; font-size: 12px; color: var(--muted); }
.kb-chip { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--muted-bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.kb-msg { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-meta { display: flex; flex-wrap: wrap; gap: 3px 6px; font-size: 11.5px; color: var(--light); margin-top: 8px; }
.kb-wait { color: var(--gold-txt); font-weight: 600; } .kb-wait.late { color: var(--bad); }
.kb-flag { color: #9333ea; } html.dark .kb-flag { color: #c084fc; } .kb-flag.ok { color: var(--ok); }
.kb-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.kb-acts .ld-act { height: 30px; min-width: 30px; padding: 0 8px; }
.kb-go { flex: 1 1 100%; color: var(--gold-txt) !important; border-color: var(--gold-ring) !important; }
.kb-open:hover b { text-decoration: underline; text-underline-offset: 3px; }
.kb-more { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; } .kb-more:hover { color: var(--txt); }
.kb-st { display: block; width: 100%; max-width: none !important; margin-top: 8px; }
@media (hover: hover) and (pointer: fine) { .kb-st { display: none; } }   /* στον υπολογιστή αρκεί το σύρσιμο */
.kb-all { display: block; text-align: center; font-size: 12px; font-weight: 600; color: var(--gold-txt); padding: 8px 10px 12px; }
.kb-ghost { opacity: .35; }
.kb-drag { box-shadow: var(--sh-lg) !important; transform: rotate(1.5deg); }
.kb-view a { display: inline-flex; align-items: center; gap: 6px; }
.kb-view svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 640px) { .kb { grid-auto-columns: 86%; scroll-snap-type: x mandatory; } .kb-col { max-height: none; } }

/* ==========================================================================
   Κοινά δομικά κομμάτια (31/10/2026). Κάθε σελίδα τα χρησιμοποιεί αντί για δικά της:
   .nw-pg κεφαλίδα σελίδας · .nw-tabs καρτέλες · .nw-card κάρτα με κεφαλίδα · .nw-kpis/.nw-kpi νούμερα
   .nw-btn / .nw-btn-pri κουμπιά · .nw-pill ετικέτες · .nw-empty άδειο · .nw-split δύο στήλες · .kb πίνακας
   ========================================================================== */
.nw-pg { display: flex; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.nw-pg-t { flex: 1; min-width: 220px; }
.nw-pg-pre { font: 600 11px/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--light); margin-bottom: 6px; }
.nw-pg h1 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: var(--txt); }
.nw-pg-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.nw-pg-act { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .nw-pg h1 { font-size: 22px; } .nw-pg-act { width: 100%; } }

.nw-btn, .nw-btn-pri { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-sm);
    font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.nw-btn { background: var(--card); color: var(--txt); border: 1px solid var(--line-strong); box-shadow: var(--sh-sm); }
.nw-btn:hover { background: var(--hover); border-color: var(--gold-2); }
.nw-btn-pri { background: var(--gold-2); color: var(--ink); border: 1px solid transparent; box-shadow: var(--sh-sm); }
.nw-btn-pri:hover { background: var(--gold-hover); }
.nw-btn-sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.nw-btn svg, .nw-btn-pri svg { width: 16px; height: 16px; flex: none; }

.nw-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; scrollbar-width: none; }
.nw-tabs a, .nw-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; background: none; }
.nw-tabs a:hover, .nw-tabs button:hover { color: var(--txt); }
.nw-tabs .on { color: var(--txt); font-weight: 600; border-bottom-color: var(--gold-2); }
.nw-tabs .n { font: 600 11px/1 'JetBrains Mono', ui-monospace, monospace; padding: 3px 6px; border-radius: 999px; background: var(--muted-bg); color: var(--muted); }
.nw-tabs .on .n { background: var(--gold-2); color: var(--ink); }

.nw-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-card); min-width: 0; }
.nw-card-h { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.nw-card-h h2, .nw-card-h h3 { flex: 1; font-size: 15px; font-weight: 600; color: var(--txt); letter-spacing: -.01em; }
.nw-card-h a.more { font-size: 12px; font-weight: 600; color: var(--gold-txt); white-space: nowrap; }
.nw-card-b { padding: 16px 18px; }
.nw-rows > * { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line-soft); }
.nw-rows > :first-child { border-top: 0; }
.nw-rows > a:hover { background: var(--hover); }

.nw-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (min-width: 768px) { .nw-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nw-kpi { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--sh-card); min-width: 0; }
a.nw-kpi:hover { border-color: var(--line-strong); box-shadow: var(--sh-lg); }
.nw-kpi .t { display: block; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.nw-kpi .n { display: block; font-size: 26px; line-height: 1.15; font-weight: 650; letter-spacing: -.025em; color: var(--txt); margin-top: 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.nw-kpi .s { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.nw-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
    background: var(--muted-bg); color: var(--muted); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 20%, transparent); }
.nw-pill.ok { background: var(--ok-soft); color: var(--ok); } .nw-pill.warn { background: var(--warn-soft); color: var(--warn); }
.nw-pill.bad { background: var(--bad-soft); color: var(--bad); } .nw-pill.info { background: var(--info-soft); color: var(--info); }
.nw-pill.gold { background: var(--gold-soft); color: var(--gold-txt); }
.nw-empty { padding: 28px 18px; text-align: center; font-size: 14px; color: var(--muted); }

.nw-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1024px) { .nw-split { grid-template-columns: 320px minmax(0, 1fr); } .nw-split > .nw-aside.sticky { position: sticky; top: 84px; } }

.nw-btn.wa:hover { border-color: #16a34a; color: #16a34a; }
html.dark .nw-btn.wa:hover { border-color: #4ade80; color: #4ade80; }
/* Πίνακας μέσα σε κάρτα */
.nw-tbl { width: 100%; font-size: 14px; border-collapse: collapse; }
.nw-tbl th { text-align: left; padding: 10px 18px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--muted-bg); border-bottom: 1px solid var(--line); white-space: nowrap; }
.nw-tbl td { padding: 11px 18px; border-top: 1px solid var(--line-soft); color: var(--txt); }
.nw-tbl tr:hover td { background: var(--hover); }
/* Φίλτρα σε σχήμα χαπιού */
.nw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nw-chips > a, .nw-chips > button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
    color: var(--muted); background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.nw-chips > a:hover, .nw-chips > button:hover { color: var(--txt); border-color: var(--line-strong); }
.nw-chips > .on { color: var(--ink); background: var(--gold-2); border-color: transparent; font-weight: 600; }
.kb-teal { --c: #14b8a6; } .kb-orange { --c: #f97316; }
.kb-static .kb-card, .kb-card.kb-static { cursor: default; }
/* Διακόπτης τμημάτων (π.χ. Πίνακας | Λίστα) */
.nw-seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--muted-bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.nw-seg > a, .nw-seg > button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.nw-seg > .on { background: var(--card); color: var(--txt); font-weight: 600; box-shadow: var(--sh-card), 0 0 0 1px var(--line); }
.nw-seg svg { width: 16px; height: 16px; flex: none; }
.nw-btn-danger { color: var(--bad) !important; }
.nw-btn-danger:hover { border-color: var(--bad) !important; background: var(--bad-soft) !important; }
.nw-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: var(--r);
    background: #16150f; color: #fff; font-size: 14px; box-shadow: var(--sh-lg); }
.nw-desk { display: none !important; }
@media (min-width: 1024px) { .nw-desk { display: inline-flex !important; } .nw-mob { display: none !important; } }
/* Η πάνω μπάρα δείχνει τον τίτλο σαν διαδρομή όταν η σελίδα έχει δική της κεφαλίδα (.nw-pg), για να μη φαίνεται ο τίτλος δύο φορές */
body:has(main .nw-pg) .nw-top h2 { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.nw-pg-pre a { color: inherit; } .nw-pg-pre a:hover { color: var(--gold-txt); }
@media (min-width: 768px) { .nw-kpis.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* «Επόμενη κίνηση» (κουμπί σε αίτημα/πελάτη + παράθυρο, assets/js/nw-next.js) */
.nw-next { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; padding: 4px 10px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600;
    background: var(--gold-soft); color: var(--gold-txt); border: 1px solid var(--gold-ring); cursor: pointer; text-align: left; }
.nw-next:hover { border-color: var(--gold-2); }
.nw-next.add { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); font-weight: 500; }
.nw-next.add:hover { color: var(--txt); border-color: var(--gold-2); }
.nw-next.today { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.nw-next.late { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.nw-next-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-next-d { flex: none; font-weight: 500; opacity: .85; }
.nw-next-d::before { content: "· "; }
.nw-next-dlg { width: min(460px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--card); color: var(--txt); box-shadow: var(--sh-lg); }
.nw-next-dlg::backdrop { background: rgba(8,8,10,.45); }
.nw-next-dlg h3 { font-size: 17px; font-weight: 700; }
.nw-next-for { font-size: 13px; color: var(--muted); margin-top: 2px; }
.nw-next-dlg input[name=text], .nw-next-dlg input[name=due] { width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--field); color: var(--txt); font-size: 15px; }
.nw-next-dlg .nw-chips { margin-top: 10px; }
.nw-next-lbl { margin-top: 16px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.nw-next-err { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 8px; }
.nw-next-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (max-width: 640px) { .nw-next-dlg input { font-size: 16px !important; } }

/* Γρήγορη προσθήκη «+» στην πάνω μπάρα */
.nw-quick { position: relative; }
.nw-quick > summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm);
    background: var(--gold-2); color: var(--ink); box-shadow: var(--sh-sm); }
.nw-quick > summary::-webkit-details-marker { display: none; }
.nw-quick > summary:hover { background: var(--gold-hover); }
.nw-quick > summary svg { width: 18px; height: 18px; transition: transform .15s; }
.nw-quick[open] > summary svg { transform: rotate(45deg); }
.nw-quick-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 45; width: 240px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); }
.nw-quick-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--txt); }
.nw-quick-menu a:hover { background: var(--hover); }
.nw-quick-menu a span { width: 22px; text-align: center; }
/* 02/11/2026: στο κινητό το μενού «+» άνοιγε κατά το μισό έξω από την οθόνη αριστερά· τώρα πιάνει όλο το πλάτος κάτω από τη μπάρα */
@media (max-width: 639px) { .nw-quick-menu { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; } }
.nw-quick-menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 4px 6px; }

.kb-next { margin-top: 8px; }
.kb-next .nw-next { width: 100%; }

/* 01/11/2026: το [hidden] νικάει πάντα (το app.css το έχει με μηδενική ισχύ, οι κλάσεις με display το παρέκαμπταν) */
[hidden] { display: none !important; }
.nw-btn:disabled, .nw-btn-pri:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 639px) { .nw-btn-sm { min-height: 40px; } }
/* 01/11/2026: κουμπί με μεγάλο κείμενο (π.χ. επιλογές στα Εισερχόμενα) σπάει γραμμή αντί να βγαίνει έξω από την οθόνη */
.nw-btn, .nw-btn-pri { max-width: 100%; }
@media (max-width: 639px) { .nw-btn, .nw-btn-pri { white-space: normal; text-align: left; padding-top: 6px; padding-bottom: 6px; } }
/* 12/11/2026: σκούρα κουμπιά (γκρι 800/900 με άσπρα γράμματα) στο σκούρο θέμα γίνονταν ανοιχτό γκρι με άσπρα γράμματα: κρατάμε σκούρο φόντο */
html.dark .bg-gray-800.text-white, html.dark .bg-gray-900.text-white { background-color: #374151 !important; color: #fff !important; }
html.dark .bg-gray-800.text-white:hover, html.dark .bg-gray-900.text-white:hover { background-color: #4b5563 !important; }
