﻿/* ══════════════════════════════════════════════════════════════
   CRM — θέμα navy & χρυσό (αυτόνομο, δεν χρειάζεται άλλο css)
   ══════════════════════════════════════════════════════════════ */
:root {
    --navy-900: #0b1424;
    --navy-800: #101c31;
    --navy-700: #16253f;
    --navy-600: #1e3050;
    --gold: #c9a646;
    --gold-hi: #d9b95b;
    --gold-ink: #1b1505;          /* κείμενο πάνω σε χρυσό */
    --gold-text: #9a7a22;         /* χρυσό για κείμενο σε λευκό φόντο */
    --text: #1c2433;
    --muted: #6b7385;
    --accent: var(--gold);
    --bg: #f3f4f7;
    --card: #ffffff;
    --line: rgba(16,28,49,0.09);
    --side-text: #a9b4c7;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(16,28,49,0.04), 0 4px 14px rgba(16,28,49,0.05);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-text); }
::selection { background: rgba(201,166,70,0.3); }

/* ── Λογότυπο (wordmark) ── */
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-decoration: none; }
.brand-row { display: flex; align-items: center; gap: 0.75rem; }
.brand-row::before, .brand-row::after { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.8; }
.brand-name { white-space: nowrap; font-family: 'Playfair Display', Georgia, serif; font-weight: 800; color: var(--gold); letter-spacing: 0.02em; }
.brand-tag { white-space: nowrap; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.3rem; }
.brand--lg .brand-name { font-size: 2.9rem; }
.brand--lg .brand-tag { font-size: 0.78rem; }
.brand--sm .brand-row::before, .brand--sm .brand-row::after { width: 12px; }
.brand--sm .brand-name { font-size: 1.4rem; }
.brand--sm .brand-tag { font-size: 0.5rem; letter-spacing: 0.1em; }
.brand-logo { max-width: 100%; max-height: 80px; }

/* ── Shell: sidebar + περιεχόμενο ── */
.app { display: flex; min-height: 100vh; }
.side {
    flex: 0 0 248px;
    background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
    color: var(--side-text);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 20;
    border-right: 1px solid rgba(201,166,70,0.08);
}
.side-brand { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; padding: 1.5rem 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.side-logo { max-height: 40px; max-width: 160px; }
.side-name { color: #e8ecf3; font-weight: 600; font-size: 0.82rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.85; }
.side-nav { flex: 1 1 auto; padding: 1rem 0.75rem; overflow-y: auto; }
.side-label { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #5f6c84; font-weight: 700; padding: 0 0.8rem; margin: 0.4rem 0 0.5rem; }
.side-nav a {
    position: relative;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 0.8rem; border-radius: 9px;
    color: var(--side-text); text-decoration: none; font-size: 0.9rem; font-weight: 600;
    margin-bottom: 3px;
    transition: background 0.15s, color 0.15s;
}
.side-nav a svg { opacity: 0.8; flex: 0 0 auto; }
.side-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.side-nav a.active { background: rgba(201,166,70,0.12); color: var(--gold-hi); }
.side-nav a.active svg { opacity: 1; }
.side-nav a.active::before { content: ""; position: absolute; left: -0.75rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.side-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 0.9rem 0.4rem; }
.side-user { display: flex; align-items: center; gap: 0.7rem; padding: 1rem; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.78rem; }
.side-avatar { flex: 0 0 36px; height: 36px; border-radius: 50%; background: rgba(201,166,70,0.15); color: var(--gold-hi); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.side-user-info { min-width: 0; }
.side-user-name { color: #fff; font-weight: 700; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user a { color: var(--side-text); text-decoration: none; }
.side-user a:hover { color: var(--gold-hi); }

.main { flex: 1 1 auto; min-width: 0; padding: 1.75rem 2rem 3rem; }
.topbar { display: none; }
.side-backdrop { display: none; }

@media (max-width: 860px) {
    .side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform 0.22s ease; box-shadow: 0 0 40px rgba(0,0,0,0.35); }
    .side.open { transform: translateX(0); }
    .side.open + .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(11,20,36,0.45); z-index: 15; }
    .main { padding: 0 16px 2rem; }
    .topbar { display: flex; align-items: center; gap: 0.75rem; height: 58px; margin: 0 -16px 1rem; padding: 0 12px; background: var(--navy-800); position: sticky; top: 0; z-index: 10; }
    .menu-btn { background: none; border: 0; padding: 6px; color: #e8ecf3; cursor: pointer; }
}

/* ── Τίτλοι ── */
.title-style1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; margin: 0.2rem 0 0.3rem; color: var(--navy-800); }
.title-block { display: none; }
hr.space1 { border: 0; height: 2px; width: 42px; background: var(--gold); margin: 0 0 1.4rem; border-radius: 2px; }
.res-section-title {
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--gold-text); margin: 1.4rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line);
}
.res-section-title:first-child { margin-top: 0; }

/* ── Φόρμες ── */
.form-grid-2col, .form-grid-4col { display: grid; gap: 0.9rem 1.1rem; }
.form-grid-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-4col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-row { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.25rem; min-width: 0; }
.field-row--full { grid-column: 1 / -1; }
.field-row > label { font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.field-row > label span { color: #d14b4b; }
.text_input {
    width: 100%;
    padding: 0.62rem 0.8rem;
    font: inherit;
    font-size: 0.9rem;
    color: var(--text);
    background: #fff;
    border: 1px solid rgba(16,28,49,0.16);
    border-radius: 9px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.text_input:hover { border-color: rgba(16,28,49,0.28); }
.text_input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,166,70,0.2); }
.text_input[readonly] { background: #f6f7f9; color: var(--muted); }
textarea.text_input { resize: vertical; min-height: 76px; }
.checkbox-wrap { display: flex; align-items: center; gap: 0.55rem; min-height: 40px; }
.checkbox-wrap input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }
.checkbox-label { font-size: 0.88rem; }
.field-row-buttons { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.3rem; }

.button3, .button4 {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.65rem 1.25rem; border-radius: 9px; font: inherit; font-size: 0.88rem; font-weight: 700;
    cursor: pointer; border: 1px solid transparent; white-space: nowrap;
    transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
}
.button3 { background: var(--gold); color: var(--gold-ink); box-shadow: 0 2px 8px rgba(201,166,70,0.25); }
.button3:hover { background: var(--gold-hi); }
.button3:active, .button4:active { transform: translateY(1px); }
.button4 { background: #fff; color: var(--text); border-color: rgba(16,28,49,0.16); }
.button4:hover { background: #f6f7f9; border-color: rgba(16,28,49,0.28); }

@media (max-width: 640px) {
    .form-grid-2col, .form-grid-4col { grid-template-columns: minmax(0, 1fr); }
    .field-row-buttons > * { flex: 1 1 auto; }
}
@media (min-width: 641px) and (max-width: 1000px) {
    .form-grid-4col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ══════════════════════════════════════════════════════════════
   LOGIN / SETUP
   ══════════════════════════════════════════════════════════════ */
.auth-body {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
    color: #e8ecf3;
    background-color: var(--navy-900);
    background-image:
        radial-gradient(ellipse at 15% 10%, rgba(30,48,80,0.85) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 90%, rgba(22,37,63,0.9) 0%, transparent 55%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 90px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 90px);
}
.auth-body form { width: 100%; max-width: 550px; }
.auth-card {
    background: rgba(16,28,49,0.92);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 3.2rem 3.1rem 2.2rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 2.4rem; }
.auth-logo .brand { padding: 0.9rem 1.2rem; background: rgba(30,48,80,0.55); }
.auth-title { text-align: center; font-size: 1.65rem; font-weight: 800; color: #fff; }
.auth-sub { text-align: center; color: #9aa5b8; font-size: 0.95rem; margin: 0.45rem 0 1.8rem; }
.auth-hr { border: 0; height: 1px; background: rgba(255,255,255,0.08); margin: 0 0 2rem; }
.auth-field { margin-bottom: 1.4rem; }
.auth-field > label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #a9b4c7; margin-bottom: 0.6rem; }
.auth-input { position: relative; }
.auth-input .text_input {
    height: 56px; padding: 0 3rem 0 1.2rem; font-size: 1rem;
    background: rgba(30,48,80,0.45); color: #fff;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 11px;
}
.auth-input .text_input::placeholder { color: #66728a; }
.auth-input .text_input:hover { border-color: rgba(255,255,255,0.22); }
.auth-input .text_input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,166,70,0.18); background: rgba(30,48,80,0.6); }
.auth-input .text_input:-webkit-autofill { -webkit-text-fill-color: #1b1505; caret-color: #1b1505; }
.auth-ico { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: #7d889c; display: flex; pointer-events: none; }
.auth-eye { pointer-events: auto; background: none; border: 0; padding: 4px; cursor: pointer; color: #7d889c; }
.auth-eye:hover { color: var(--gold-hi); }
.auth-check { display: flex; align-items: center; gap: 0.7rem; margin: 0.2rem 0 1.8rem; color: #b6c0d1; font-size: 0.95rem; cursor: pointer; }
.auth-check input { width: 20px; height: 20px; accent-color: var(--gold); cursor: pointer; }
.auth-btn {
    width: 100%; height: 58px; font-size: 1.05rem; font-weight: 800; border-radius: 11px;
    background: var(--gold); color: var(--gold-ink); box-shadow: 0 8px 24px rgba(201,166,70,0.22);
}
.auth-btn:hover { background: var(--gold-hi); }
.auth-foot { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2.2rem; padding-top: 1.5rem; text-align: center; color: #7d889c; font-size: 0.88rem; }
.auth-foot a { color: var(--gold); text-decoration: none; }
.auth-foot a:hover { color: var(--gold-hi); text-decoration: underline; }
.auth-err { display: flex; gap: 0.6rem; align-items: flex-start; background: rgba(209,75,75,0.12); border: 1px solid rgba(209,75,75,0.35); color: #f3b4b4; border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1.4rem; font-size: 0.9rem; }
.auth-help {
    position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%;
    background: var(--gold); color: var(--gold-ink); display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.3rem; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.auth-help:hover { background: var(--gold-hi); }
.auth-copy { text-align: center; color: #56627a; font-size: 0.75rem; margin-top: 1.2rem; }
@media (max-width: 560px) {
    .auth-card { padding: 2.2rem 1.4rem 1.6rem; border-radius: 16px; }
    .auth-logo { margin-bottom: 1.8rem; }
    .brand--lg .brand-name { font-size: 2.3rem; }
    .auth-title { font-size: 1.4rem; }
}

/* ══ CRM components ══ */
.crm {
    --crm-text: var(--text, #1f2937);
    --crm-muted: var(--muted, #6b7280);
    --crm-accent: var(--accent, #4A90D9);
    --crm-line: var(--line);
    --crm-card: var(--card);
    --crm-soft: rgba(16,28,49,0.03);
    --crm-ok: #10b981;
    --crm-warn: #f59e0b;
    --crm-bad: #ef4444;
    font-family: inherit;
    color: var(--crm-text);
}

/* ── Γραμμή εργαλείων λίστας ── */
.crm-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1rem;
}
.crm-toolbar .text_input,
.crm-toolbar select { width: auto; min-width: 160px; flex: 0 1 auto; }
.crm-toolbar .crm-search { flex: 1 1 220px; min-width: 180px; }
.crm-toolbar .crm-spacer { flex: 1 1 auto; }
.crm-count { font-size: 0.82rem; color: var(--crm-muted); }

/* ── Κουμπί-link ── */
.crm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 7px;
    border: 1px solid transparent;
    background: var(--crm-accent);
    color: var(--gold-ink) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
}
.crm-btn:hover { filter: brightness(0.95); }
.crm-btn--ghost {
    background: #fff;
    color: var(--crm-text) !important;
    border-color: rgba(0,0,0,0.14);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.crm-btn--ok { background: var(--crm-ok); color:#fff !important; }
.crm-btn--bad { background: var(--crm-bad); color:#fff !important; }
.crm-btn--sm { padding: 0.3rem 0.6rem; font-size: 0.78rem; }

/* ── KPIs ── */
.crm-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}
.crm-kpi {
    background: var(--crm-card);
    border: 1px solid var(--crm-line);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow);
}
.crm-kpi-label { font-size: 0.75rem; color: var(--crm-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.crm-kpi-value { font-size: 1.6rem; font-weight: 800; color: var(--navy-800); margin-top: 0.25rem; font-variant-numeric: tabular-nums; }
.crm-kpi-sub { font-size: 0.78rem; color: var(--crm-muted); margin-top: 0.15rem; }
.crm-kpi--bad .crm-kpi-value { color: var(--crm-bad); }
.crm-kpi--ok .crm-kpi-value { color: var(--crm-ok); }

/* ── Κάρτες / ενότητες ── */
.crm-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.crm-grid-side { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.crm-card {
    background: var(--crm-card);
    border: 1px solid var(--crm-line);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.1rem;
    box-shadow: var(--shadow);
}
.crm-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.8rem 0;
}
.crm-card-title small { font-weight: 500; color: var(--crm-muted); font-size: 0.78rem; }
.crm-empty { color: var(--crm-muted); font-size: 0.85rem; padding: 0.6rem 0; }

/* ── Πίνακες ── */
.crm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.crm-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.crm-table th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--crm-muted);
    font-weight: 600;
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--crm-line);
    white-space: nowrap;
}
.crm-table td { padding: 0.6rem; border-bottom: 1px solid var(--crm-line); vertical-align: middle; }
.crm-table tr:hover td { background: var(--crm-soft); }
.crm-table a { color: var(--crm-text); font-weight: 600; text-decoration: none; }
.crm-table a:hover { color: var(--gold-text); }
.crm-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.crm-table .muted { color: var(--crm-muted); font-size: 0.8rem; }
.crm-table input.text_input { padding: 0.35rem 0.45rem; font-size: 0.84rem; }

/* ── Badges ── */
.crm-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(0,0,0,0.06);
    color: var(--crm-muted);
    white-space: nowrap;
}
.crm-badge--lead { background: rgba(96,165,250,0.15); color: #2563eb; }
.crm-badge--prospect { background: rgba(167,139,250,0.18); color: #7c3aed; }
.crm-badge--customer { background: rgba(16,185,129,0.15); color: #047857; }
.crm-badge--inactive { background: rgba(0,0,0,0.06); color: #6b7280; }
.crm-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.35rem; vertical-align: middle; }

.crm-due { font-size: 0.8rem; color: var(--crm-muted); white-space: nowrap; }
.crm-due--late { color: var(--crm-bad); font-weight: 600; }
.crm-due--today { color: var(--crm-warn); font-weight: 600; }
.crm-due--done { text-decoration: line-through; }

/* ── Pipeline (kanban) ── */
.crm-board {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    align-items: flex-start;
    -webkit-overflow-scrolling: touch;
}
.crm-col {
    flex: 0 0 260px;
    background: var(--crm-soft);
    border: 1px solid var(--crm-line);
    border-radius: 10px;
    padding: 0.7rem;
}
.crm-col-head { border-top: 3px solid #94a3b8; margin: -0.7rem -0.7rem 0.6rem; padding: 0.6rem 0.7rem 0; border-radius: 10px 10px 0 0; }
.crm-col-name { font-weight: 700; font-size: 0.88rem; }
.crm-col-meta { font-size: 0.75rem; color: var(--crm-muted); margin-top: 0.15rem; }
.crm-deal {
    background: var(--crm-card);
    border: 1px solid var(--crm-line);
    border-radius: 8px;
    padding: 0.65rem 0.7rem;
    margin-bottom: 0.55rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.crm-deal-title { font-weight: 600; font-size: 0.86rem; color: var(--crm-text); text-decoration: none; display: block; }
.crm-deal-title:hover { color: var(--gold-text); }
.crm-deal-co { font-size: 0.78rem; color: var(--crm-muted); margin-top: 0.15rem; }
.crm-deal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; gap: 0.4rem; }
.crm-deal-amt { font-weight: 700; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.crm-move { display: inline-flex; gap: 0.2rem; }
.crm-move a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.12); background: #fff; color: var(--crm-muted);
    text-decoration: none;
}
.crm-move a:hover { color: var(--crm-accent); border-color: var(--crm-accent); }

/* ── Μπάρες pipeline στο dashboard ── */
.crm-bar-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 110px; gap: 0.6rem; align-items: center; margin-bottom: 0.55rem; font-size: 0.84rem; }
.crm-bar { height: 10px; background: rgba(0,0,0,0.05); border-radius: 999px; overflow: hidden; }
.crm-bar > span { display: block; height: 100%; border-radius: 999px; }
.crm-bar-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--crm-muted); }

/* ── Timeline ενεργειών ── */
.crm-tl { list-style: none; margin: 0; padding: 0; }
.crm-tl li { display: flex; gap: 0.7rem; padding: 0.65rem 0; border-bottom: 1px solid var(--crm-line); }
.crm-tl li:last-child { border-bottom: none; }
.crm-tl-ico {
    flex: 0 0 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201,166,70,0.14); color: var(--gold-text);
}
.crm-tl-ico.done { background: rgba(16,185,129,0.12); color: var(--crm-ok); }
.crm-tl-body { flex: 1 1 auto; min-width: 0; }
.crm-tl-subj { font-weight: 600; font-size: 0.86rem; }
.crm-tl-subj a { color: inherit; text-decoration: none; }
.crm-tl-text { font-size: 0.82rem; color: var(--crm-muted); margin-top: 0.15rem; white-space: pre-line; word-wrap: break-word; }
.crm-tl-meta { font-size: 0.75rem; color: var(--crm-muted); margin-top: 0.2rem; }
.crm-tl-act { flex: 0 0 auto; }

/* ── Μηνύματα ── */
.crm-msg { padding: 0.7rem 0.9rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.86rem; }
.crm-msg--ok { background: rgba(16,185,129,0.1); color: #047857; }
.crm-msg--bad { background: rgba(239,68,68,0.1); color: #b91c1c; }

/* ── Σύνολα προσφοράς ── */
.crm-totals { margin-left: auto; max-width: 320px; font-size: 0.88rem; }
.crm-totals div { display: flex; justify-content: space-between; padding: 0.3rem 0; }
.crm-totals .grand { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--crm-line); margin-top: 0.3rem; padding-top: 0.5rem; }

/* ── Quick add ενέργειας ── */
.crm-quick { display: grid; grid-template-columns: 140px minmax(0, 1fr) 130px 90px auto; gap: 0.5rem; align-items: center; }
.crm-quick textarea { grid-column: 1 / -1; }

/* ── Responsive ── */
@media (max-width: 1000px) {
    .crm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crm-grid-2, .crm-grid-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .crm-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.6rem; }
    .crm-kpi-value { font-size: 1.25rem; }
    .crm-toolbar .text_input, .crm-toolbar select { min-width: 0; flex: 1 1 100%; }
    .crm-quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .crm-quick .crm-quick-subj { grid-column: 1 / -1; }
    .crm-bar-row { grid-template-columns: 100px minmax(0, 1fr) 90px; }
    .crm-col { flex-basis: 240px; }
    .crm-table .hide-sm { display: none; }
}

/* ── λεπτομέρειες θέματος ── */
.crm-kpi { position: relative; overflow: hidden; }
.crm-kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); opacity: 0.85; }
.crm-kpi--bad::after { background: var(--crm-bad); }
.crm-kpi--ok::after { background: var(--crm-ok); }
.crm-card-title { color: var(--navy-800); }
.crm-col { background: #eceef3; }
.crm-move a:hover { color: var(--gold-text); border-color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   ΣΥΜΠΤΥΞΗ ΜΕΝΟΥ (μόνο υπολογιστής / tablet)
   ══════════════════════════════════════════════════════════════ */
.side { transition: flex-basis 0.2s ease, width 0.2s ease; }
.side-collapse {
    display: flex; align-items: center; gap: 0.75rem;
    margin: 0 0.75rem 0.6rem; padding: 0.55rem 0.8rem;
    background: none; border: 1px solid rgba(255,255,255,0.08); border-radius: 9px;
    color: #7f8aa0; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.side-collapse:hover { color: var(--gold-hi); border-color: rgba(201,166,70,0.35); background: rgba(255,255,255,0.03); }
.side-collapse svg { flex: 0 0 auto; transition: transform 0.2s; }
a.side-avatar { text-decoration: none; }

@media (min-width: 861px) {
    .side-mini .side { flex-basis: 76px; width: 76px; }
    .side-mini .nav-txt,
    .side-mini .side-label,
    .side-mini .side-name,
    .side-mini .side-logo,
    .side-mini .side-user-info,
    .side-mini .side-brand .brand-tag,
    .side-mini .side-brand .brand-row::before,
    .side-mini .side-brand .brand-row::after { display: none; }
    .side-mini .side-brand { padding: 1.3rem 0.4rem 1rem; }
    .side-mini .side-brand .brand-name { font-size: 0; }
    .side-mini .side-brand .brand-name::first-letter { font-size: 1.7rem; }
    .side-mini .side-brand .brand-logo { max-width: 44px; }
    .side-mini .side-nav { padding: 1rem 0.6rem; }
    .side-mini .side-nav a { justify-content: center; padding: 0.7rem 0; }
    .side-mini .side-nav a.active::before { left: -0.6rem; }
    .side-mini .side-sep { margin: 0.7rem 0.3rem; }
    .side-mini .side-collapse { justify-content: center; margin: 0 0.6rem 0.6rem; padding: 0.55rem 0; }
    .side-mini .side-collapse svg { transform: rotate(180deg); }
    .side-mini .side-user { justify-content: center; padding: 1rem 0; }
}
@media (max-width: 860px) {
    .side-collapse { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   ΒΟΗΘΕΙΑ ΟΘΟΝΗΣ «?»
   ══════════════════════════════════════════════════════════════ */
.help-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 40;
    width: 52px; height: 52px; border-radius: 50%; border: 0;
    background: var(--gold); color: var(--gold-ink);
    font: inherit; font-size: 1.35rem; font-weight: 900; cursor: pointer;
    box-shadow: 0 8px 24px rgba(16,28,49,0.28);
    transition: background 0.15s, transform 0.15s;
}
.help-fab:hover { background: var(--gold-hi); transform: translateY(-2px); }
.help-backdrop { position: fixed; inset: 0; background: rgba(11,20,36,0.45); z-index: 45; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.help-backdrop.open { opacity: 1; pointer-events: auto; }
.help-panel {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
    width: 420px; max-width: 100%;
    background: #fff; box-shadow: -20px 0 60px rgba(11,20,36,0.25);
    display: flex; flex-direction: column;
    transform: translateX(105%); transition: transform 0.25s ease;
}
.help-panel.open { transform: translateX(0); }
.help-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.4rem 1.5rem 1.2rem; background: var(--navy-800); color: #fff; }
.help-kicker { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.help-title { font-size: 1.25rem; font-weight: 800; margin-top: 0.2rem; }
.help-close { background: rgba(255,255,255,0.08); border: 0; color: #cfd6e2; width: 36px; height: 36px; border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.help-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.help-body { flex: 1 1 auto; overflow-y: auto; padding: 1.3rem 1.5rem 1.5rem; font-size: 0.9rem; line-height: 1.55; -webkit-overflow-scrolling: touch; }
.help-intro { font-size: 0.95rem; color: var(--text); margin: 0 0 1.1rem; }
.help-body h4 { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); font-weight: 800; margin: 1.2rem 0 0.5rem; }
.help-body ul { margin: 0; padding: 0; list-style: none; }
.help-body li { position: relative; padding-left: 1.1rem; margin-bottom: 0.5rem; color: #3d4659; }
.help-body li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.help-tip { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1.3rem; padding: 0.85rem 1rem; border-radius: 10px; background: rgba(201,166,70,0.1); color: #5c4813; font-size: 0.86rem; }
.help-tip svg { flex: 0 0 auto; margin-top: 2px; color: var(--gold-text); }
.help-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.help-foot a { color: var(--gold-text); font-weight: 700; text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — βελτιώσεις για κινητό / tablet
   ══════════════════════════════════════════════════════════════ */
.main { padding-bottom: 96px; }                 /* να μην κρύβει το «?» περιεχόμενο */
.crm-board { scroll-snap-type: x proximity; }
.crm-col { scroll-snap-align: start; }
.crm-table-wrap { margin: 0 -2px; }
img, svg { max-width: 100%; }

@media (max-width: 860px) {
    .help-fab { right: 16px; bottom: 16px; width: 48px; height: 48px; }
    .title-style1 { font-size: 1.3rem; }
    .crm-card { padding: 1rem; }
}
@media (max-width: 640px) {
    /* 16px στα πεδία: το iPhone δεν κάνει zoom όταν πατάς σε πεδίο */
    .text_input, select.text_input, textarea.text_input { font-size: 16px; }
    .crm-move a { width: 36px; height: 36px; }
    .crm-btn--sm { padding: 0.45rem 0.7rem; }
    .crm-col { flex-basis: 82vw; }
    .crm-table td, .crm-table th { padding: 0.55rem 0.45rem; }
    .crm-totals { max-width: none; }
    .help-panel { width: 100%; }
    .crm-tl-act .crm-btn { min-width: 38px; min-height: 38px; justify-content: center; }
}
