/* ==========================================================================
   OPS HUB — Design system
   Concept: ένας ψηφιακός πάγκος συνεργείου. Το σκοτεινό background θυμίζει
   blueprint/σχέδιο τεχνικού· οι κάρτες επισκευών μοιάζουν με φυσικές
   ετικέτες παραλαβής (workshop tags) με διάτρητη τρύπα και δοντωτό άκρο.
   Οι συσκευές/AnyDesk λίστα μοιάζει με patch-panel με labeled ports.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    /* Χρώματα */
    --graphite:      #10151C;
    --graphite-2:     #1A222C;
    --graphite-3:     #232C38;
    --line:           #2E3846;
    --paper:          #EDE8DA;
    --paper-2:        #E3DDCB;
    --ink:            #1C1E1A;
    --text:           #DCD9CE;
    --text-dim:       #8B96A3;
    --amber:          #F2A93B;
    --teal:           #3FB8AF;
    --flag:           #E1543E;
    --info:           #5B8DEF;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius: 3px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--graphite);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

a { color: inherit; }

/* Blueprint grid texture on dark surfaces */
.blueprint-bg {
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: -1px -1px;
    background-color: var(--graphite);
    opacity: 1;
}

/* ---------- Layout shell ---------- */
.shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--graphite-2);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 22px 0;
}

.sidebar__brand {
    position: relative;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.03em;
    color: var(--amber-text);
    padding: 0 22px 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 10px;
}

.sidebar__brand small {
    display: block;
    font-family: var(--font-mono);
    font-weight: 400;
    color: var(--text-dim);
    font-size: 11px;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-item .tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    opacity: 0.7;
}

.nav-item:hover {
    background: var(--graphite-3);
    color: var(--text);
}

.nav-item.active {
    background: var(--graphite-3);
    color: var(--amber-text);
    border-left-color: var(--amber);
}

.sidebar__foot {
    margin-top: auto;
    padding: 16px 22px 0;
    border-top: 1px solid var(--line);
}
.sidebar__foot--mobile { display: none; }

/* Ο wrapper των nav items δεν επηρεάζει το desktop flex layout του .sidebar */
#nav-list { display: contents; }

.mobile-topbar { display: none; }

.sidebar__user {
    font-size: 12.5px;
    color: var(--text-dim);
}

.sidebar__user strong { color: var(--text); font-weight: 600; }

.sidebar__logout {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--flag);
    text-decoration: none;
}

.main {
    flex: 1;
    min-width: 0;
    padding: 32px 40px 60px;
}

.page-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.page-head h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.page-head .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--amber-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--graphite-3);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { background: #2B3644; border-color: #3A4758; }

.btn--primary {
    background: var(--amber);
    border-color: var(--amber);
    color: #1B1300;
}
.btn--primary:hover { background: #FFC066; border-color: #FFC066; }

.btn--teal {
    background: var(--teal);
    border-color: var(--teal);
    color: #012623;
}
.btn--teal:hover { background: #56D2C8; }

.btn--danger {
    background: transparent;
    border-color: var(--flag);
    color: var(--flag);
}
.btn--danger:hover { background: rgba(225,84,62,0.12); }

.btn--sm { padding: 6px 11px; font-size: 12px; }

/* ---------- Cards / panels ---------- */
.panel {
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.dash-card {
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.dash-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--dash-accent, var(--amber));
}
.dash-card:hover { border-color: var(--dash-accent, var(--amber)); transform: translateY(-2px); }

.dash-card .tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.dash-card h3 {
    font-family: var(--font-display);
    font-size: 17px;
    margin: 8px 0 6px;
}
.dash-card p {
    font-size: 12.5px;
    color: var(--text-dim);
    margin: 0;
}
.dash-card .count {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--dash-accent, var(--amber));
    margin-top: 10px;
    display: block;
}

/* ---------- Search / filter bar ---------- */
.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    align-items: center;
}
.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    background: var(--graphite-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13.5px;
}
.search-input:focus {
    outline: none;
    border-color: var(--amber);
}
.search-input::placeholder { color: var(--text-dim); }

/* ---------- Patch-panel device list ---------- */
.port-group {
    margin-bottom: 22px;
}
.port-group__label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--amber-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--line);
}

.port-row {
    display: grid;
    grid-template-columns: 28px 1fr 1fr 150px;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius);
    margin-bottom: 8px;
}
.port-row__jack {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(63,184,175,0.15);
    justify-self: center;
}
.port-row__name {
    font-weight: 600;
    font-size: 14px;
}
.port-row__meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
}
.port-row__id {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text);
}

/* ---------- Repair tags (perforated ticket look) ---------- */
.tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.repair-tag {
    background: color-mix(in srgb, var(--tag-accent, var(--text-dim)) 10%, var(--paper));
    color: var(--ink);
    border-radius: 2px;
    position: relative;
    padding: 22px 18px 16px 30px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    text-decoration: none;
    display: block;
    border-top: 5px solid var(--tag-accent, var(--text-dim));
    min-width: 0;
}
/* punched hole */
.repair-tag::before {
    content: '';
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--graphite);
    box-shadow: inset 0 0 0 2px var(--paper-2);
}
/* perforated left edge */
.repair-tag::after {
    content: '';
    position: absolute;
    left: 22px; top: 0; bottom: 0;
    width: 0;
    border-left: 2px dashed rgba(28,30,26,0.25);
}

.repair-tag__code {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
}
.repair-tag__name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin: 6px 0 2px;
}
.repair-tag__device {
    font-size: 12.5px;
    color: #4A4A42;
    margin-bottom: 8px;
}
.repair-tag__problem {
    font-size: 12.5px;
    color: var(--ink);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.repair-tag__foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    color: #6B6B5F;
    font-family: var(--font-mono);
    min-width: 0;
}
.repair-tag__dates {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.repair-tag__dates span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.repair-tag__foot .status-pill {
    align-self: flex-start;
    white-space: nowrap;
}

/* Status-colored top bar on each card, matching the status-pill palette */
.tag-status-pending     { --tag-accent: var(--flag); }
.tag-status-in_progress { --tag-accent: var(--amber); }
.tag-status-ready       { --tag-accent: var(--teal); }
.tag-status-delivered   { --tag-accent: var(--text-dim); }

/* Discreet legend explaining the status colors */
.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: -8px 0 18px;
    font-size: 12px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}
.status-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.status-legend__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-legend__dot--pending     { background: var(--flag); }
.status-legend__dot--in_progress { background: var(--amber); }
.status-legend__dot--ready       { background: var(--teal); }
.status-legend__dot--delivered   { background: var(--text-dim); }

.status-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 20px;
}
.status-pending     { background: rgba(225,84,62,0.18); color: #B23A26; }
.status-in_progress  { background: rgba(242,169,59,0.22); color: #8A5C0C; }
.status-ready        { background: rgba(63,184,175,0.2); color: #1E6E67; }
.status-delivered    { background: rgba(139,150,163,0.25); color: #4A5561; }
.status-open         { background: rgba(91,141,239,0.2); color: #2E5DBF; }
.status-waiting      { background: rgba(225,84,62,0.16); color: #B23A26; }
.status-resolved     { background: rgba(63,184,175,0.2); color: #1E6E67; }
.status-closed       { background: rgba(139,150,163,0.25); color: #4A5561; }

/* dark-mode variant of status pill (used outside paper tag) */
.status-pill--dark.status-pending     { background: rgba(225,84,62,0.16); color: #FF8A75; }
.status-pill--dark.status-in_progress { background: rgba(242,169,59,0.16); color: var(--amber-text); }
.status-pill--dark.status-ready       { background: rgba(63,184,175,0.16); color: var(--teal); }
.status-pill--dark.status-delivered   { background: rgba(139,150,163,0.16); color: var(--text-dim); }
.status-pill--dark.status-open        { background: rgba(91,141,239,0.16); color: var(--info); }
.status-pill--dark.status-waiting     { background: rgba(225,84,62,0.16); color: #FF8A75; }
.status-pill--dark.status-resolved    { background: rgba(63,184,175,0.16); color: var(--teal); }
.status-pill--dark.status-closed      { background: rgba(139,150,163,0.16); color: var(--text-dim); }

/* ---------- Forms ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }

label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 6px;
}

input[type=text], input[type=password], input[type=tel], input[type=search], input[type=number], input[type=date], input[type=time], input[type=email], textarea, select {
    width: 100%;
    padding: 10px 12px;
    background: var(--graphite-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--amber);
}

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    vertical-align: middle;
}
tr:last-child td { border-bottom: none; }

/* ---------- Tabs (admin) ---------- */
/* ---------- Kanban board (tickets) ---------- */
.kanban-board {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
}
.kanban-col {
    flex: 0 0 260px;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    max-height: calc(100vh - 260px);
    display: flex;
    flex-direction: column;
}
.kanban-col__head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    border-top: 3px solid var(--kanban-accent, var(--text-dim));
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    flex-shrink: 0;
}
.kanban-col__count {
    background: var(--graphite-3);
    color: var(--text-dim);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 11px;
}
.kanban-col__body {
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kanban-card {
    display: block;
    background: var(--graphite-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text);
}
.kanban-card:hover { border-color: var(--kanban-accent, var(--amber)); }
.kanban-card__code {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-dim);
}
.kanban-card__subject {
    font-size: 13px;
    font-weight: 600;
    margin: 4px 0 6px;
    line-height: 1.3;
}
.kanban-card__meta {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    gap: 6px;
}
.kanban-col__empty {
    padding: 20px 12px;
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
}

/* ---------- Responsive 2-column layouts (replace inline grid-template-columns) ---------- */
.split-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    gap: 28px;
    align-items: start;
}
.split-panel--wide {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.tab.active { color: var(--amber-text); border-bottom-color: var(--amber); }

/* ---------- Field tabs (JS-driven, ticket/repair detail — Βασικά/Πελάτης/Ιστορικό) ---------- */
.field-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}
.field-tab {
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 6px;
}
.field-tab:hover { color: var(--text); }
.field-tab.active { color: var(--amber-text); border-bottom-color: var(--amber); }
.field-tab-panel { display: none; }
.field-tab-panel.active { display: block; }


/* ---------- Login page ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    width: 360px;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
}
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--amber);
}
.login-brand {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    text-align: center;
}
.login-brand span { color: var(--amber-text); }
.login-sub {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-dim);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    text-align: center;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
    border-left: 3px solid;
}
.alert--error { background: rgba(225,84,62,0.1); border-color: var(--flag); color: #FF9284; }
.alert--ok { background: rgba(63,184,175,0.1); border-color: var(--teal); color: var(--teal); }

/* ---------- Address autocomplete dropdown ---------- */
/* ---------- Chat-style ticket comments ---------- */
.chat-thread {
    max-height: 340px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 2px 12px;
    margin-bottom: 10px;
}
.chat-msg {
    background: var(--graphite-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 11px;
}
.chat-msg--legacy {
    border-left: 3px solid var(--text-dim);
    opacity: 0.85;
}
.chat-msg__head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}
.chat-msg__author {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--amber-text);
}
.chat-msg__time {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-dim);
}
.chat-msg__body {
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
}
.chat-empty {
    text-align: center;
    color: var(--text-dim);
    font-size: 12.5px;
    padding: 16px 0;
}

/* ---------- Icon field rows (compact info display) ---------- */
.icon-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.icon-row:last-child { border-bottom: none; }
.icon-row__icon {
    color: var(--amber-text);
    flex-shrink: 0;
    margin-top: 9px;
}
.icon-row__field {
    flex: 1;
    min-width: 0;
}
.icon-row__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.icon-row input, .icon-row select, .icon-row textarea {
    padding: 6px 10px;
    font-size: 13.5px;
}
.icon-row__static {
    font-size: 13.5px;
    padding: 6px 0;
}

/* ---------- Right-side column (status + history + guides) — δικό του flex flow, ανεξάρτητο ύψος από το αριστερό panel ---------- */
/* ---------- Calendar ---------- */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.cal-nav h2 {
    font-family: var(--font-display);
    font-size: 17px;
    margin: 0;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}
.cal-grid__label {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    padding-bottom: 4px;
    text-transform: uppercase;
}
.cal-cell {
    position: relative;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 90px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cal-cell--empty { background: none; border: none; }
.cal-cell--today { border-color: var(--amber); }
.cal-cell__head { display: flex; align-items: baseline; gap: 5px; }
.cal-cell__num { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.cal-cell--today .cal-cell__num { color: var(--amber-text); font-weight: 700; }
.cal-cell__weekday { display: none; } /* στο desktop το δείχνει ήδη η επικεφαλίδα στήλης */
.cal-cell__body { display: flex; flex-direction: column; gap: 3px; }
.cal-appt {
    display: block;
    background: var(--graphite-3);
    border-left: 2px solid var(--amber);
    border-radius: 3px;
    padding: 3px 5px;
    font-size: 10.5px;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cal-appt:hover { background: var(--graphite-3); border-left-color: var(--teal); }
.cal-appt--ticket { border-left-color: var(--info); }
.cal-appt--ticket:hover { border-left-color: var(--info); }
.cal-appt--extra { display: none; }
.cal-appt--more { text-align: center; }
.cal-appt--more { color: var(--text-dim); border-left-color: var(--text-dim); background: none; }
.cal-appt__tech { display: block; color: var(--text-dim); font-size: 9.5px; }
.cal-cell__add {
    position: absolute;
    top: 4px; right: 4px;
    width: 16px; height: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--amber);
    color: #1B1300;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
}
.cal-cell:hover .cal-cell__add { display: flex; }

@media (max-width: 720px) {
    .cal-grid__label { display: none; } /* αχρείαστο σε λίστα — δείχνουμε το όνομα ημέρας ανά γραμμή */
    .cal-grid { grid-template-columns: 1fr; gap: 8px; }
    .cal-cell--empty { display: none; }

    .cal-cell {
        flex-direction: row;
        align-items: flex-start;
        min-height: auto;
        padding: 12px 14px;
        gap: 12px;
    }
    .cal-cell__head {
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
        width: 38px;
        gap: 0;
    }
    .cal-cell__num { font-size: 17px; font-weight: 700; color: var(--text); }
    .cal-cell__weekday {
        display: block;
        font-size: 10px;
        color: var(--text-dim);
        text-transform: uppercase;
    }
    .cal-cell__body { flex: 1; min-width: 0; gap: 6px; }
    .cal-appt {
        font-size: 13px;
        padding: 8px 10px;
        white-space: normal;
        line-height: 1.4;
    }
    .cal-appt__tech { display: block; font-size: 11px; }
    .cal-appt--extra { display: block; }
    .cal-appt--more { display: none; }

    .cal-cell__add {
        position: static;
        display: flex;
        width: 28px; height: 28px;
        font-size: 16px;
        flex-shrink: 0;
        align-self: center;
    }
}

/* ---------- Quick Actions (+ Νέο) — native <details>, καμία JS ---------- */
.quick-actions { position: relative; margin-bottom: 6px; }
.quick-actions__btn {
    display: flex !important;
    background: var(--amber) !important;
    color: #1B1300 !important;
    font-weight: 700;
    justify-content: center;
    cursor: pointer;
    list-style: none;
    border-left: none !important;
}
.quick-actions__btn::-webkit-details-marker { display: none; }
.quick-actions__btn:hover { background: var(--amber); opacity: 0.9; }
.quick-actions[open] .quick-actions__btn { border-radius: var(--radius) var(--radius) 0 0; }
.quick-actions__menu {
    display: flex;
    flex-direction: column;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}
.quick-actions__menu a {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    border-top: 1px solid var(--line);
}
.quick-actions__menu a:hover { background: var(--graphite-3); color: var(--amber-text); }

/* Συμπαγής εκδοχή στο mobile topbar, δίπλα στο hamburger — πάντα ορατή */
.quick-actions--compact { position: relative; margin-bottom: 0; }
.quick-actions__btn--compact {
    background: var(--amber) !important;
    color: #1B1300 !important;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    list-style: none;
}
.quick-actions__btn--compact::-webkit-details-marker { display: none; }
.quick-actions--compact .quick-actions__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 200px;
    z-index: 60;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.quick-actions--compact .quick-actions__menu a { border-top: 1px solid var(--line); }
.quick-actions--compact .quick-actions__menu a:first-child { border-top: none; }

.ticket-side-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---------- Photo attachments ---------- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.photo-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-thumb__delete {
    position: absolute;
    top: 4px; right: 4px;
    width: 22px; height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16,21,28,0.75);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
.photo-thumb__delete:hover { background: var(--flag); }

/* ---------- "Όμορφες κάρτες" για τα επιπλέον στοιχεία (Στοιχεία ticket) ---------- */
.detail-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}
.detail-field-card {
    background: var(--graphite-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
}
.detail-field-card .icon-row__label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}
.detail-field-card input, .detail-field-card select {
    width: 100%;
}

/* ---------- Details toggle (ένα κουμπί με ΚΕΙΜΕΝΟ, ανοίγει όλα τα extra στοιχεία μαζί) ---------- */
.details-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--graphite-3);
    border: 1px solid var(--line);
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
}
.details-toggle:hover { border-color: var(--amber); color: var(--amber-text); }
.details-toggle.is-open { border-color: var(--amber); color: var(--amber-text); background: rgba(242,169,59,0.1); }
.details-toggle__chevron { transition: transform 0.15s ease; font-size: 10px; }
.details-toggle.is-open .details-toggle__chevron { transform: rotate(180deg); }

/* ---------- Client cards ---------- */
/* ---------- Status "traffic light" ---------- */
.status-light {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--graphite-3);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.03em;
    color: var(--text);
    white-space: nowrap;
}
.status-light__dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--light-color, var(--text-dim));
    box-shadow: 0 0 8px var(--light-color, transparent);
}
.status-light--open        { --light-color: var(--info); }
.status-light--in_progress { --light-color: var(--amber); }
.status-light--waiting     { --light-color: var(--flag); }
.status-light--resolved    { --light-color: var(--teal); }
.status-light--closed      { --light-color: var(--text-dim); }

/* ---------- Avatar (αρχικά ονόματος, χρησιμοποιείται αντί για πλήρες όνομα) ---------- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-family: var(--font-display);
    flex-shrink: 0;
    line-height: 1;
}
.avatar--empty {
    background: var(--graphite-3) !important;
    color: var(--text-dim);
    border: 1px dashed var(--line);
}

/* ---------- Priority dot ---------- */
.priority-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- Kanban card meta row (icons instead of words) ---------- */
.kanban-card__iconrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}
.kanban-card__iconrow-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
}
.kanban-card__iconrow-left span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.kanban-card[draggable="true"] { cursor: grab; }
.kanban-card.is-dragging { opacity: 0.4; }
.kanban-col__body.is-drop-target {
    background: rgba(242,169,59,0.08);
    outline: 2px dashed var(--amber);
    outline-offset: -4px;
    border-radius: var(--radius);
}

/* ---------- Toggleable icon toolbar (ticket detail) ---------- */
.icon-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.icon-toolbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--graphite-3);
    color: var(--text-dim);
    cursor: pointer;
    transition: border-color 0.12s ease, color 0.12s ease;
}
.icon-toolbar__btn:hover { border-color: var(--amber); color: var(--amber-text); }
.icon-toolbar__btn.is-active { border-color: var(--amber); color: var(--amber-text); background: rgba(242,169,59,0.1); }

.icon-row[hidden] { display: none !important; }

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.client-card {
    display: block;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--amber);
    border-radius: var(--radius);
    padding: 16px 18px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.client-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.client-card__name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.client-card__row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.client-card__row svg { color: var(--text-dim); }
.client-card__badges {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.addr-suggest {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    margin-top: 2px;
    background: var(--graphite-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    max-height: 220px;
    overflow-y: auto;
    z-index: 20;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.addr-suggest__item {
    padding: 9px 12px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
}
.addr-suggest__item:last-child { border-bottom: none; }
.addr-suggest__item:hover { background: var(--graphite-2); color: var(--amber-text); }

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-dim);
    font-size: 13.5px;
}
.empty-state strong { display:block; color: var(--text); font-family: var(--font-display); font-size: 16px; margin-bottom: 6px;}

html, body { overflow-x: hidden; max-width: 100%; }

@media (max-width: 720px) {
    .shell { flex-direction: column; }
    .sidebar {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        overflow-x: visible;
        padding: 10px 14px;
        gap: 0;
    }
    .sidebar__brand { display: none; }
    .sidebar__foot { display: none; }
    .sidebar__foot--mobile {
        display: block;
        margin-top: 10px;
        padding: 12px 4px 4px;
        border-top: 1px solid var(--line);
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .mobile-topbar__brand {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 15px;
        color: var(--text);
    }

    #nav-list {
        display: none;
        flex-direction: column;
        gap: 4px;
        margin-top: 12px;
    }
    #nav-list.is-open { display: flex; }

    .nav-item {
        border-left: none;
        border-radius: 8px;
        background: var(--graphite-3);
        white-space: normal;
        padding: 11px 14px;
    }
    .nav-item.active { background: var(--amber); color: #1B1300; }
    .nav-item.active .tag { color: #1B1300; opacity: 0.7; }

    .main { padding: 20px 16px 40px; max-width: 100%; overflow-x: hidden; }
    .port-row { grid-template-columns: 20px 1fr; }
    .port-row__meta, .port-row__id { grid-column: 2; }
    .form-grid { grid-template-columns: 1fr; }

    .split-panel, .split-panel--wide, .two-col { grid-template-columns: 1fr; }
    .detail-fields-grid { grid-template-columns: 1fr; }

    .kanban-board { flex-direction: column; overflow-x: visible; }
    .kanban-col { flex: 1 1 auto; max-width: none; max-height: none; }
    .kanban-col__body { max-height: 320px; }

    .dash-grid, .tag-grid, .client-grid { grid-template-columns: 1fr; }

    table { font-size: 12.5px; }
    th, td { padding: 8px 6px; }

    .icon-toolbar { gap: 6px; }
    .icon-toolbar__btn { width: 32px; height: 32px; }

    .page-head { flex-direction: column; align-items: stretch; gap: 12px; }
    .page-head .btn, .page-head a.btn { width: 100%; justify-content: center; }

    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar select, .toolbar .btn { width: 100%; }
}


/* ---------- Ημερήσια προβολή ημερολογίου ---------- */
.day-list { display: flex; flex-direction: column; gap: 10px; }
.day-item {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--graphite-2); border: 1px solid var(--line); border-left: 3px solid var(--amber);
    border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text);
}
.day-item:hover { border-color: var(--amber); }
.day-item--ticket { border-left-color: var(--info); }
.day-item__time { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); min-width: 52px; padding-top: 1px; }
.day-item__title { font-weight: 600; font-size: 14.5px; }
.day-item__meta { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }


/* ---------- Ειδοποιήσεις & @αναφορές ---------- */
.bell { position: absolute; top: 2px; right: 18px; color: var(--text-dim); display: inline-flex; padding: 6px; border-radius: var(--radius); }
.bell:hover { color: var(--amber-text); background: var(--graphite-3); }
.bell--inline { position: relative; top: auto; right: auto; }
.bell-badge {
    position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--flag); color: #fff; border-radius: 8px; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-family: var(--font-mono);
}
.bell-badge[hidden] { display: none !important; }
.mention { color: var(--amber-text); font-weight: 600; background: rgba(242,169,59,0.12); border-radius: 3px; padding: 0 2px; }
.mention-box {
    position: absolute; bottom: calc(100% - 4px); left: 0; z-index: 20; min-width: 200px; max-width: 100%;
    background: var(--graphite-3); border: 1px solid var(--amber); border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45); overflow: hidden; margin-bottom: 0;
}
.mention-box[hidden] { display: none !important; }
.mention-box__item {
    display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text);
    padding: 10px 14px; font: inherit; font-size: 13.5px; cursor: pointer;
}
.mention-box__item:hover, .mention-box__item.is-active { background: var(--amber); color: #1B1300; }
.notif-item { align-items: center; }
.notif-item.is-read { opacity: 0.6; border-left-color: var(--line); }
.notif-item__icon { color: var(--amber-text); display: flex; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--line); color: var(--text-dim);
    border-radius: var(--radius); cursor: pointer; padding: 6px 9px; font: inherit;
}
.theme-toggle:hover { color: var(--amber-text); border-color: var(--amber); }
.theme-toggle--side { margin-top: 12px; width: 100%; padding: 7px; }
.theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__sun { display: inline-flex; }
[data-theme="light"] .theme-toggle__moon { display: none; }
.sidebar__foot--mobile .theme-toggle--side { display: none; }

/* ---------- Δικαιώματα χρηστών ---------- */
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 6px; }
.perm-item { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.perm-item input { width: auto; margin: 0; }
@media (max-width: 480px) { .perm-grid { grid-template-columns: 1fr; } }

/* ---------- Light theme ---------- */
[data-theme="light"] {
    --graphite:   #F3F4F6;
    --graphite-2: #FFFFFF;
    --graphite-3: #EEF0F3;
    --line:       #DCE0E6;
    --paper:      #FFFFFF;
    --paper-2:    #F1EFE6;
    --text:       #1E2530;
    --text-dim:   #5A6572;
    --amber:      #D9890A;
    --teal:       #14948B;
    --flag:       #D1432C;
    --info:       #3567D3;
    color-scheme: light;
}
[data-theme="light"] .blueprint-bg {
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-color: var(--graphite-2);
}
[data-theme="light"] .btn:hover { background: #E4E8ED; border-color: #C5CBD3; }
[data-theme="light"] .btn--primary:hover { background: #E89B1F; border-color: #E89B1F; }
[data-theme="light"] .btn--primary,
[data-theme="light"] .mention-box__item:hover { color: var(--on-amber); }
[data-theme="light"] .nav-item.active { color: var(--amber-text); }
@media (max-width: 720px) {
    [data-theme="light"] .nav-item.active, [data-theme="light"] .nav-item.active .tag { color: var(--on-amber); }
}
[data-theme="light"] .btn--teal { color: #fff; background: #0E766F; border-color: #0E766F; }
[data-theme="light"] .status-pill--dark.status-pending,
[data-theme="light"] .status-pill--dark.status-waiting { color: #B23A26; }
[data-theme="light"] .status-pill--dark.status-in_progress { color: #8A5C0C; }
[data-theme="light"] .status-pill--dark.status-ready,
[data-theme="light"] .status-pill--dark.status-resolved { color: #1E6E67; }
[data-theme="light"] .status-pill--dark.status-open { color: #2E5DBF; }
[data-theme="light"] .alert--error { color: #B23A26; }
[data-theme="light"] .alert--ok { color: #1E6E67; }
[data-theme="light"] .quick-actions__menu,
[data-theme="light"] .mention-box { box-shadow: 0 8px 24px rgba(20,30,50,0.14); }
[data-theme="light"] .repair-tag, [data-theme="light"] .dash-card, [data-theme="light"] .panel { box-shadow: 0 1px 2px rgba(20,30,50,0.05); }
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea { color-scheme: light; }

/* ---------- Checklist & χρόνος ---------- */
.ck-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.ck-bar span { display: block; height: 100%; background: var(--teal); }
.ck-list { list-style: none; margin: 0 0 10px; padding: 0; }
.ck-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ck-list li:last-child { border-bottom: 0; }
.ck-row { margin: 0; flex: 1; min-width: 0; display: flex; }
.ck-row label { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13.5px; text-transform: none; letter-spacing: 0; cursor: pointer; font-weight: 400; color: var(--text); }
.ck-row input[type=checkbox] { width: auto; margin-top: 3px; }
.ck-list li.is-done .ck-row span { text-decoration: line-through; color: var(--text-dim); }
.ck-del { background: none; border: 0; color: var(--text-dim); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.ck-del:hover { color: var(--flag); }
.ck-add { display: flex; gap: 6px; margin: 0; }
.ck-add input, .ck-add select { flex: 1; min-width: 0; }
.time-add { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.time-add input[type=date] { flex: 1; min-width: 130px; }

@media print {
    .sidebar, .mobile-topbar, .no-print, .alert { display: none !important; }
    .shell { display: block; }
    .main { margin: 0; padding: 0; }
    html, body { background: #fff !important; color: #111 !important; }
    .panel { border: 1px solid #ccc !important; box-shadow: none !important; background: #fff !important; }
    table, th, td { color: #111 !important; }
}

/* ---------- Θησαυροφυλάκιο ---------- */
.vault-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; background: rgba(242,169,59,0.08); border: 1px solid var(--line); border-left: 3px solid var(--amber); color: var(--text-dim); }
.vault-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.vault-item__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.vault-item__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.vault-item__meta { font-size: 12px; color: var(--text-dim); }
.vault-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; min-width: 0; }
.vault-row > span:first-child { width: 64px; flex-shrink: 0; color: var(--text-dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.vault-row code { font-family: var(--font-mono); word-break: break-all; }
.vault-row a { word-break: break-all; }
.vault-lock { color: var(--text-dim); font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.vault-notes { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-dim); white-space: pre-line; }
@media (max-width: 480px) { .vault-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   Μενού v1.3 — ομαδοποιημένο sidebar, Ctrl K αναζήτηση, κάτω μπάρα κινητού
   ========================================================================== */
.sidebar { width: 252px; position: sticky; top: 0; height: 100vh; align-self: flex-start; overflow-y: auto; padding: 22px 0 0; }
.sidebar__foot { position: sticky; bottom: 0; background: var(--graphite-2); padding-bottom: 16px; }
.sidebar__brand { padding-bottom: 18px; margin-bottom: 14px; }

.nav-search {
    display: flex; align-items: center; gap: 9px;
    margin: 0 14px 10px; padding: 9px 11px; width: calc(100% - 28px);
    background: var(--graphite); border: 1px solid var(--line); border-radius: 8px;
    color: var(--text-dim); font: inherit; font-size: 13px; cursor: pointer; text-align: left;
}
.nav-search:hover { border-color: var(--text-dim); color: var(--text); }
.nav-search span { flex: 1; }
.nav-search kbd, .palette__input kbd {
    font-family: var(--font-mono); font-size: 10.5px; border: 1px solid var(--line);
    border-radius: 4px; padding: 1px 5px; color: var(--text-dim); background: none;
}
#nav-list .quick-actions { margin: 0 14px 12px; }
#nav-list .quick-actions__btn { border-radius: 8px; padding: 10px; }
#nav-list .quick-actions[open] .quick-actions__btn { border-radius: 8px 8px 0 0; }

.nav-group { margin-bottom: 4px; }
.nav-group__title {
    display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none;
    padding: 12px 22px 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .09em;
    text-transform: uppercase; color: var(--text-dim); user-select: none;
}
.nav-group__title::-webkit-details-marker { display: none; }
.nav-group__title:hover { color: var(--text); }
.nav-group__title svg { transition: transform .15s; }
.nav-group:not([open]) .nav-group__title svg { transform: rotate(-90deg); }
.nav-group .nav-item { padding: 9px 22px; gap: 11px; }
.nav-group .nav-item svg { opacity: .85; }
.nav-group .nav-item.active svg { opacity: 1; }

.tabbar, .sheet { display: none; }

/* Ctrl K παλέτα */
.palette[hidden], .sheet[hidden] { display: none !important; }
.palette { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 0; }
.palette__backdrop { position: absolute; inset: 0; background: rgba(5,8,12,.6); }
.palette__box {
    position: relative; width: 100%; max-width: 580px; background: var(--graphite-2);
    border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); overflow: hidden;
}
.palette__input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.palette__input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; padding: 16px 0; }
.palette__list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.palette__empty { padding: 22px 12px; text-align: center; color: var(--text-dim); font-size: 13px; }
.palette__item { display: grid; grid-template-columns: 78px 1fr; gap: 2px 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.palette__item.is-sel, .palette__item:hover { background: var(--graphite-3); }
.palette__type { grid-row: span 2; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-text); padding-top: 3px; }
.palette__title { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__sub { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.no-scroll { overflow: hidden; }

@media (max-width: 720px) {
    .sidebar { width: 100%; height: auto; position: sticky; top: 0; z-index: 40; overflow: visible; padding: 10px 14px; background: var(--graphite-2); }
    #nav-list, #nav-list.is-open { display: none !important; }
    .mobile-topbar__actions { display: flex; align-items: center; gap: 8px; }
    .main { padding: 20px 16px 96px; }

    .tabbar {
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 64px;
        background: var(--graphite-2); border-top: 1px solid var(--line);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .tabbar__item {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
        background: none; border: 0; color: var(--text-dim); font: inherit; font-size: 10.5px; text-decoration: none; cursor: pointer;
    }
    .tabbar__item svg { vertical-align: 0; }
    .tabbar__ico { position: relative; display: inline-flex; }
    .tabbar__badge { position: absolute; top: -6px; left: 12px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: #1a1205; font: 700 10.5px/17px var(--font-sans, inherit); text-align: center; box-sizing: border-box; }
    .tabbar__item.is-active { color: var(--amber-text); }

    .sheet { display: block; position: fixed; inset: 0; z-index: 60; }
    .sheet__backdrop { position: absolute; inset: 0; background: rgba(5,8,12,.6); }
    .sheet__panel {
        position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto;
        background: var(--graphite-2); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
        padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
    }
    .sheet__grip { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
    .sheet__group { margin-bottom: 14px; }
    .sheet__title { font-family: var(--font-mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
    .sheet__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .sheet__tile {
        display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 2px;
        background: var(--graphite-3); border-radius: 10px; color: var(--text-dim);
        font-size: 11px; text-align: center; text-decoration: none; line-height: 1.2; word-break: break-word;
    }
    .sheet__tile svg { vertical-align: 0; }
    .sheet__tile.is-active { color: var(--amber-text); }
    .sheet__foot { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12.5px; color: var(--text-dim); }
    .sheet__user { flex: 1; min-width: 0; }
    .sheet__user strong { color: var(--text); }
    .sheet__foot .sidebar__logout { margin: 0; }
    .palette { padding-top: 8vh; }
}
@media print { .tabbar, .sheet, .palette { display: none !important; } }
.sidebar__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sidebar__foot .theme-toggle--side { width: 34px; height: 34px; padding: 0; margin: 0; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.sidebar__foot { padding-top: 12px; padding-bottom: 12px; }
.sidebar__foot .sidebar__logout { margin-top: 6px; }

/* Tickets στο κινητό: chips ανά status, μία λίστα τη φορά */
.kanban-chips { display: none; }
@media (max-width: 720px) {
    .kanban-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; -webkit-overflow-scrolling: touch; }
    .kanban-chip {
        flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
        background: var(--graphite-2); border: 1px solid var(--line); border-left: 3px solid var(--kanban-accent, var(--line));
        border-radius: 999px; color: var(--text-dim); font: inherit; font-size: 12.5px; padding: 8px 14px; cursor: pointer;
    }
    .kanban-chip span { font-family: var(--font-mono); font-size: 11px; background: var(--graphite-3); border-radius: 10px; padding: 0 7px; color: var(--text-dim); }
    .kanban-chip.is-active { color: var(--text); border-color: var(--kanban-accent, var(--amber)); background: var(--graphite-3); }
    .kanban-board[data-active] .kanban-col { display: none; }
    .kanban-board[data-active="open"] .kanban-col[data-col="open"],
    .kanban-board[data-active="in_progress"] .kanban-col[data-col="in_progress"],
    .kanban-board[data-active="waiting"] .kanban-col[data-col="waiting"],
    .kanban-board[data-active="resolved"] .kanban-col[data-col="resolved"],
    .kanban-board[data-active="closed"] .kanban-col[data-col="closed"] { display: flex; }
    .kanban-board { align-items: stretch; }
    .kanban-col { width: 100%; max-width: none; }
    .kanban-col__body { max-height: none; }
    .kanban-board[data-active] .kanban-col__head { display: none; }
    .kanban-card.is-extra { display: none; }
    .kanban-more { align-self: center; margin-top: 4px; }
}

/* Αρχική: Σήμερα */
.today { margin-bottom: 22px; padding: 18px 20px 8px; }
.today__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.today__head h3 { margin: 0; font-family: var(--font-display); font-size: 15px; }
.today__head span { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }
.today__empty { color: var(--text-dim); font-size: 13px; margin: 6px 0 14px; }
.today__row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.today__row:hover .today__text { color: var(--amber-text); }
.today__time { flex: 0 0 82px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.today__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today__text em { font-style: normal; font-size: 11.5px; color: var(--text-dim); margin-left: 8px; }
.today__tag { flex: 0 0 auto; font-size: 11px; padding: 2px 9px; border-radius: 10px; background: var(--graphite-3); color: var(--text-dim); }
.today__tag--flag { color: var(--flag); } .today__tag--amber { color: var(--amber-text); } .today__tag--info { color: var(--info); } .today__tag--teal { color: var(--teal); }
@media (max-width: 720px) {
    .today { padding: 16px 14px 6px; }
    .today__row { flex-wrap: wrap; gap: 4px 10px; }
    .today__time { flex-basis: auto; }
    .today__text { flex-basis: 100%; order: 3; white-space: normal; }
    .today__tag { margin-left: auto; }
}

/* v1.4: footer sidebar (avatar · καμπανάκι · θέμα), toast, on-site, ομάδα */
.sidebar__row { gap: 10px; }
.sidebar__row .avatar { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #10151C; font-weight: 700; }
.sidebar__foot .bell--inline { width: 34px; height: 34px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); flex-shrink: 0; }
.sidebar__foot .bell--inline .bell-badge { top: -6px; right: -6px; }
.toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--graphite-2); color: var(--text); text-decoration: none; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 8px; box-shadow: 0 12px 34px rgba(0,0,0,.45); font-size: 13px; line-height: 1.4; animation: toast-in .25s ease-out; transition: opacity .3s, transform .3s; }
.toast.is-out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.onsite-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 10.5px; color: var(--teal); border: 1px solid var(--teal); border-radius: 10px; padding: 1px 8px; }
.kanban-card .onsite-badge { padding: 1px 5px; }
.today__team { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.today__chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; background: var(--graphite-3); border-radius: 14px; padding: 3px 10px 3px 4px; color: var(--text); }
.today__chip b { font-family: var(--font-mono); color: var(--amber-text); font-weight: 500; }
.today__chip .avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #10151C; font-weight: 700; }
@media (max-width: 720px) { .toast-stack { bottom: 80px; right: 12px; left: 12px; max-width: none; } .today__team .today__time { flex-basis: 100%; } }

/* v1.4.1: footer sidebar σε δύο γραμμές */
.sidebar__me { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 10px; }
.sidebar__me .avatar { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #10151C; font-weight: 700; }
.sidebar__me .sidebar__user { min-width: 0; line-height: 1.35; }
.sidebar__me .sidebar__user strong, .sidebar__me .sidebar__user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar__actions .sidebar__logout { margin: 0; }
.sidebar__icons { display: inline-flex; gap: 8px; }
.sidebar__foot .sidebar__row { display: none; }
.split-panel > * { min-width: 0; }
.split-panel .panel > table { display: table; width: 100%; }
@media (max-width: 960px) { .split-panel .panel > table { display: block; overflow-x: auto; } }
.split-panel td[style*="nowrap"] { white-space: normal !important; }
.split-panel td[style*="text-align:right"] form { margin: 2px 0; }

/* v1.5.1: συμπαγές sidebar — χωρίς scroll σε κανονικά ύψη οθόνης */
@media (min-width: 721px) {
    .sidebar { padding-top: 16px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
    .sidebar::-webkit-scrollbar { width: 6px; }
    .sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
    .sidebar__brand { padding-bottom: 12px; margin-bottom: 10px; }
    .nav-search { padding: 7px 11px; margin-bottom: 8px; }
    #nav-list .quick-actions { margin-bottom: 6px; }
    #nav-list .quick-actions__btn { padding: 8px; }
    .nav-group { margin-bottom: 0; }
    .nav-group__title { padding: 10px 22px 6px; }
    .nav-group .nav-item { padding: 7px 22px; }
    .sidebar__foot { padding-top: 10px; padding-bottom: 10px; }
    .sidebar__me { margin-bottom: 8px; }
}

/* ---- Αιτήματα: προβολή ανά τεχνικό (admin) ---- */
.viewtoggle { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 16px; background: var(--graphite-2); border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.viewtoggle a { padding: 6px 14px; border-radius: 7px; font-size: 13px; color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.viewtoggle a:hover { color: var(--text); }
.viewtoggle a.is-active { background: var(--graphite-3); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
.viewtoggle .viewtoggle__opt { margin-left: 8px; border-left: 1px solid var(--line); border-radius: 0 7px 7px 0; }

.tboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.tlane { background: var(--graphite-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.tlane--unassigned { border-style: dashed; }
.tlane__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tlane__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tlane__who strong { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlane__total { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); background: var(--graphite-3); border-radius: 10px; padding: 1px 9px; }
.tlane__group { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.tlane__group:first-of-type { margin-top: 0; }
.tlane__label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }
.tlane__label i { width: 8px; height: 8px; border-radius: 50%; background: var(--kanban-accent, var(--text-dim)); }
.tlane__label span { font-family: var(--font-mono); margin-left: auto; }
.tlane .kanban-card { cursor: pointer; }
@media (max-width: 720px) {
    .viewtoggle { display: flex; width: 100%; }
    .viewtoggle a { flex: 1 1 auto; text-align: center; }
    .tboard { display: block; }
    .tlane { display: none; padding: 12px; }
    .tlane.is-shown { display: block; }
    .tlane__head { display: none; }
}

/* ---- Αιτήματα v1.6: επιλογέας προβολής, chips φίλτρων, λίστα, inbox ---- */
.mono-dim { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }
.vbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin: 0 0 16px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--graphite-3); border: 1px solid var(--line); border-radius: 10px; max-width: 100%; }
.seg__item { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 7px; font-size: 13px; color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.seg__item:hover { color: var(--text); }
.seg__item.is-active { background: var(--graphite-2); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset, 0 1px 2px rgba(0,0,0,.12); }
.fchips { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip { display: inline-flex; gap: 7px; align-items: center; padding: 5px 13px; border-radius: 20px; border: 1px solid var(--line); background: var(--graphite-2); color: var(--text-dim); font-size: 13px; text-decoration: none; white-space: nowrap; }
.fchip b { font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; }
.fchip:hover { color: var(--text); }
.fchip.is-active { border-color: var(--amber); color: var(--amber-text); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.fchip--opt { border-style: dashed; }

.ttable { border: 1px solid var(--line); border-radius: 12px; background: var(--graphite-2); overflow: hidden; }
.trow { display: grid; grid-template-columns: 92px minmax(0, 2.6fr) minmax(0, 1.3fr) 168px 44px 44px 64px; gap: 14px; align-items: center; padding: 0 18px; min-height: 48px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13.5px; }
.trow:first-child { border-top: 0; }
a.trow:hover { background: var(--graphite-3); }
.trow--head { min-height: 38px; background: var(--graphite-3); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; }
.trow__h { color: var(--text-dim); text-decoration: none; }
.trow__h:hover { color: var(--text); }
.trow__code { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.trow__subject { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow__client { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow__age { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); text-align: right; }
.trow__pri, .trow__who { display: flex; justify-content: center; }
.trow__meta { display: none; }
.tfoot { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; color: var(--text-dim); font-size: 13px; gap: 10px; }
.tpager { display: inline-flex; align-items: center; gap: 10px; }
.btn.is-disabled { opacity: .4; pointer-events: none; }

.inbox { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--graphite-2); overflow: hidden; height: calc(100vh - 300px); min-height: 440px; }
.inbox__list { overflow-y: auto; border-right: 1px solid var(--line); }
.inbox__item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; align-items: start; }
.inbox__item .priority-dot { margin-top: 6px; }
.inbox__item:hover { background: var(--graphite-3); }
.inbox__item.is-active { background: color-mix(in srgb, var(--amber) 12%, transparent); box-shadow: 3px 0 0 var(--amber) inset; }
.inbox__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inbox__subject { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox__sub { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inbox__sub .status-light__dot { width: 8px; height: 8px; box-shadow: none; flex: none; }
.inbox__side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.inbox__panel { overflow-y: auto; padding: 24px 30px; min-width: 0; transition: opacity .15s; }
.inbox__panel.is-loading { opacity: .5; }
.inbox__empty { color: var(--text-dim); padding: 30px 0; text-align: center; }
.ipanel { display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.ipanel__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ipanel__pri { display: inline-flex; gap: 6px; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.ipanel__title { margin: 0; font-size: 21px; font-weight: 600; text-wrap: balance; }
.ipanel__who { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.ipanel__box { background: var(--graphite-3); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.ipanel__comments { display: flex; flex-direction: column; gap: 12px; }
.ipanel__comment { display: flex; gap: 10px; font-size: 13.5px; }
.ipanel__cbody { overflow-wrap: anywhere; }
.ipanel__actions { margin-top: auto; padding-top: 14px; display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); }
.ipanel__status { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--text-dim); }
.ipanel__status select { min-width: 190px; }

@media (max-width: 900px) {
    .inbox { grid-template-columns: 1fr; height: auto; min-height: 0; }
    .inbox__panel { display: none; }
    .inbox__list { border-right: 0; overflow: visible; }
}
@media (max-width: 720px) {
    .vbar { flex-direction: column; align-items: stretch; }
    .seg { display: flex; }
    .seg__item { flex: 1 1 0; justify-content: center; padding: 8px 6px; }
    .fchips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; -webkit-overflow-scrolling: touch; }
    .trow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "subj who" "meta stat"; gap: 6px 12px; padding: 12px 16px; }
    .trow--head, .trow__code, .trow__client, .trow__pri, .trow__age { display: none; }
    .trow__subject { grid-area: subj; white-space: normal; }
    .trow__who { grid-area: who; }
    .trow__meta { grid-area: meta; display: block; font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .trow__status { grid-area: stat; justify-self: end; }
    .trow .status-light { padding: 3px 9px; font-size: 10.5px; }
}

/* toolbar αναζήτησης αιτημάτων σε μία γραμμή */
.toolbar .search-input { flex: 1 1 260px; width: auto; }
.toolbar select { flex: 0 1 220px; width: auto; }
@media (max-width: 720px) {
    .toolbar .search-input, .toolbar select { flex: 0 0 auto; width: 100%; }
}

/* =========================================================
   v1.7.0 — πάνω μπάρα + καρτέλες πελατών
   ========================================================= */
:root { --amber-text: var(--amber); --on-amber: #1B1300; }
[data-theme="light"] { --amber-text: #6F4300; }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.topnav { display: none; }
@media (min-width: 721px) {
    .sidebar { display: none !important; }
    .topnav { display: block; position: sticky; top: 0; z-index: 60; background: var(--graphite-2); border-bottom: 1px solid var(--line); }
    .topnav__in { height: 62px; max-width: 1480px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 18px; }
    .topnav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 13.5px; letter-spacing: .03em; white-space: nowrap; flex-shrink: 0; }
    .topnav__mark { width: 26px; height: 26px; border-radius: 8px; background: var(--amber); color: var(--on-amber); display: grid; place-items: center; font-size: 13px; }
    .topnav__name { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
    .topnav__nav { display: flex; align-items: stretch; height: 100%; gap: 2px; }
    .topnav__sp { flex: 1; min-width: 8px; }
    .tn-g { position: relative; display: flex; align-items: stretch; }
    .tn-b {
        position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; height: 100%;
        background: none; border: 0; color: var(--text-dim); font: inherit; font-size: 14px; font-weight: 500;
        cursor: pointer; text-decoration: none; white-space: nowrap;
    }
    .tn-b:hover, .tn-b.is-active { color: var(--text); }
    .tn-b.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--amber); }
    .tn-b svg { transition: transform .2s; }
    .tn-g.is-open > .tn-b svg { transform: rotate(180deg); }
    .tn-b:focus-visible, .tn-search:focus-visible, .tn-me:focus-visible, .tn-i:focus-visible, .tn-q:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

    .tn-menu {
        position: absolute; top: calc(100% + 2px); left: -10px; width: 360px; padding: 10px;
        background: var(--graphite-2); border: 1px solid var(--line); border-radius: 18px;
        box-shadow: 0 28px 70px rgba(10,20,40,.28);
        opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.985); transform-origin: top left;
        transition: opacity .16s, transform .16s, visibility .16s;
    }
    [data-theme="light"] .tn-menu { box-shadow: 0 28px 70px rgba(20,35,60,.2), 0 2px 6px rgba(20,35,60,.06); }
    .tn-g.is-open > .tn-menu { opacity: 1; visibility: visible; transform: none; }
    .tn-g--r .tn-menu { left: auto; right: -6px; transform-origin: top right; }
    .tn-menu--sm { width: 230px; padding: 8px; border-radius: 14px; }
    .tn-i { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 13px; text-decoration: none; color: var(--text); }
    .tn-g.is-open .tn-i { animation: tnin .3s both; }
    .tn-g.is-open .tn-i:nth-child(2) { animation-delay: .04s; } .tn-g.is-open .tn-i:nth-child(3) { animation-delay: .08s; } .tn-g.is-open .tn-i:nth-child(4) { animation-delay: .12s; }
    @keyframes tnin { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
    .tn-i:hover, .tn-i.is-cur { background: var(--graphite-3); }
    .tn-i__t { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; color: var(--amber-text); background: var(--graphite-3); border: 1px solid var(--line); transition: .15s; }
    .tn-i:hover .tn-i__t { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
    .tn-i__x { min-width: 0; }
    .tn-i__x b { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
    .tn-i__x small { display: block; color: var(--text-dim); font-size: 12px; line-height: 1.35; margin-top: 1px; }
    .tn-n { font: 600 10.5px var(--font-mono); font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: var(--on-amber); display: inline-grid; place-items: center; }
    .tn-q { display: block; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 14px; }
    .tn-q:hover { background: var(--graphite-3); }
    .tn-who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
    .tn-who strong, .tn-who span { display: block; }
    .tn-who span { font-size: 12px; color: var(--text-dim); }
    .tn-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; font-size: 14px; color: var(--text); }

    .tn-search { display: flex; align-items: center; gap: 9px; height: 38px; width: 250px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--graphite-2); color: var(--text-dim); font: inherit; font-size: 13px; cursor: pointer; }
    .tn-search:hover { border-color: var(--text-dim); }
    .tn-search span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tn-search kbd { font: 500 10.5px var(--font-mono); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: var(--graphite-2); color: var(--text-dim); }
    .tn-new { height: 38px; padding: 0 16px; border-radius: 10px; font-weight: 600; }
    .tn-bell { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; }
    .tn-bell .bell-badge { top: -6px; right: -6px; }
    .tn-me { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; display: inline-flex; align-items: center; align-self: center; }

    body .main { max-width: 1480px; width: 100%; margin: 0 auto; padding: 30px 28px 70px; transition: opacity .25s, filter .25s; }
    body.mega-on .main { opacity: .4; filter: blur(2px); }
}
@media (min-width: 721px) and (max-width: 1480px) {
    .tn-search { width: 38px; padding: 0; justify-content: center; }
    .tn-search span, .tn-search kbd { display: none; }
    .topnav__in { gap: 10px; padding: 0 16px; }
    .tn-b { padding: 0 10px; font-size: 14.5px; }
}
@media (min-width: 721px) and (max-width: 1100px) { .topnav__name { display: none; } .tn-b { padding: 0 8px; font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .tn-menu, .tn-i { transition: none !important; animation: none !important; } }

/* ---- Πελάτες: λίστα ---- */
.client-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.client-card { border-left: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.client-card:hover { border-color: var(--amber); box-shadow: 0 8px 24px rgba(10,20,40,.12); }
.client-card__head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.client-card__logo, .client-head__logo { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font: 600 18px var(--font-display); color: var(--amber-text); background: var(--graphite-3); border: 1px solid var(--line); }
.client-card__who { min-width: 0; display: flex; flex-direction: column; }
.client-card__name { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-card__sub { font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-card__foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.client-card__foot small { display: block; font: 500 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }
.client-card__foot b { font-weight: 500; font-size: 13.5px; }
.client-card__foot b.is-hot { color: var(--info); }
@media (max-width: 380px) { .client-card__foot { grid-template-columns: 1fr 1fr; } }

/* ---- Πελάτες: καρτέλα ---- */
.client-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.client-head__logo { width: 60px; height: 60px; border-radius: 17px; font-size: 24px; }
.client-head__main { flex: 1; min-width: 200px; }
.client-head__main h1 { margin: 2px 0 4px; font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
.client-head__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text-dim); font-size: 13.5px; }
.chip-afm b { font-family: var(--font-mono); font-weight: 500; color: var(--amber-text); background: color-mix(in srgb, var(--amber) 16%, transparent); padding: 1px 8px; border-radius: 6px; margin-left: 2px; }
.client-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.client-edit { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.client-edit .panel { margin: 0; }
.client-edit__actions { display: flex; gap: 10px; }
.cform .panel__title { font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.cform label { display: block; font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.cform input.is-filled { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }
.afm-input { font-family: var(--font-mono); letter-spacing: .08em; }
[data-theme="light"] /* ---- Contrast (v1.7.0): κείμενο πάνω σε amber και amber ως χρώμα κειμένου ---- */
[data-theme="light"] .btn--primary, [data-theme="light"] .btn--primary:hover,
[data-theme="light"] .quick-actions__btn, [data-theme="light"] .mention-box__item:hover { color: var(--on-amber); }
.eyebrow, .page-head .eyebrow { color: var(--amber-text); }
.today__tag--amber { color: var(--amber-text); }
[data-theme="light"] .today__time, [data-theme="light"] .palette__type, [data-theme="light"] .today__chip b { color: var(--amber-text); }
.dash-card .count { color: var(--dash-text, var(--dash-accent, var(--amber))); }
[data-theme="light"] .dash-card .count { color: color-mix(in srgb, var(--dash-accent, var(--amber)) 62%, #000); }
@media (max-width: 720px) { [data-theme="light"] .tabbar__item.is-active, [data-theme="light"] .sheet__tile.is-active { color: var(--amber-text); } }
.status-pill--dark.status-open { color: #7FA6FF; }
[data-theme="light"] .status-pill--dark.status-open { color: #2E5DBF; }
[data-theme="light"] .fchip.is-active, [data-theme="light"] .tab.active { color: var(--amber-text); }

/* ---- v1.7.0 διορθώσεις: πλάτος, κεντραρισμένο μενού, σπασίματα ---- */
@media (min-width: 721px) {
    .topnav__in { max-width: 1840px; padding: 0 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; }
    .topnav__brand { justify-self: start; }
    .topnav__nav { justify-self: center; }
    .topnav__right { justify-self: end; display: flex; align-items: center; gap: 14px; min-width: 0; }
    body .main { max-width: 1840px; padding: 30px 36px 70px; }
    .tn-demo { font: 600 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 10px; background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber-text); white-space: nowrap; }
    .tn-row--demo { gap: 10px; }
    .tn-row--demo .btn { white-space: nowrap; }
}
@media (min-width: 721px) and (max-width: 1599px) {
    .topnav__in { display: flex; }
    .topnav__nav { margin-left: 8px; }
    .topnav__right { margin-left: auto; gap: 10px; }
}
.trow { grid-template-columns: 138px minmax(0, 2.6fr) minmax(0, 1.3fr) 168px 44px 44px 64px; }
.trow__code { white-space: nowrap; }
.dash-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.tn-new, .topnav .btn { white-space: nowrap; }
.dash-card h3, .dash-card strong, .dash-card .tag, .dash-card .title { overflow-wrap: normal; }
.panel h3, .page-head h1, .client-head__main h1 { text-wrap: balance; }

/* ---- Επαφές πελάτη ---- */
.contact-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-row:first-of-type { margin-top: 8px; }
.contact-row__who strong, .contact-row__who span { display: block; }
.contact-row__who span { font-size: 12.5px; color: var(--text-dim); }
.contact-row__links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.contact-row__links a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.contact-row__links a:hover { color: var(--amber-text); }
.contact-row__links svg { color: var(--text-dim); flex: none; }
.contact-edit { grid-row: 1; grid-column: 3; }
.contact-edit__btn { list-style: none; cursor: pointer; font-size: 12.5px; color: var(--text-dim); padding: 4px 8px; border-radius: 8px; }
.contact-edit__btn::-webkit-details-marker, .contact-add > summary::-webkit-details-marker { display: none; }
.contact-edit__btn:hover { color: var(--text); background: var(--graphite-3); }
.contact-edit[open], .contact-add[open] { grid-column: 1 / -1; }
.contact-row .contact-edit[open] { grid-row: 3; }
.contact-add > summary { list-style: none; cursor: pointer; }
.contact-form { display: grid; gap: 10px; padding: 14px; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--graphite-3); }
.contact-form label { display: block; font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.contact-form input { margin-top: 5px; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.contact-add { position: relative; }
.contact-add[open] .contact-form { position: absolute; right: 0; top: 36px; width: min(320px, 82vw); z-index: 5; box-shadow: 0 16px 40px rgba(10,20,40,.25); background: var(--graphite-2); }

/* ===== v1.8: Αιτήματα — Ομάδα / Δικά μου / Πρόγραμμα, swimlanes, γρήγορες αλλαγές ===== */
:root { --tv-red: var(--flag); --tv-blue: var(--info); --tv-green: var(--teal); }
[data-theme="light"] { --tv-red: #B23A26; --tv-blue: #2E5DBF; --tv-green: #1E6E67; }
.seg__sep { width: 1px; background: var(--line); margin: 5px 6px; flex: none; }
button.seg__item { border: 0; background: none; font: inherit; cursor: pointer; }
.tv [hidden], .tv-pop[hidden], .tv-toast[hidden], .tv-ov[hidden] { display: none !important; }
.tv-dim { color: var(--text-dim); }
.tv-mono { font-family: var(--font-mono); font-size: 12px; }
.tv-panel { background: var(--graphite-2); border: 1px solid var(--line); border-radius: 14px; }
.tv-link { color: var(--text); text-decoration: none; }
.tv-link:hover { color: var(--amber-text); text-decoration: underline; }
.tv-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--graphite-2); color: var(--text); font: 500 13px var(--font-body); cursor: pointer; white-space: nowrap; }
.tv-btn:hover { background: var(--graphite-3); }
.tv-btn:disabled { opacity: .5; cursor: default; }
.tv-warn { border-color: color-mix(in srgb, var(--tv-red) 45%, var(--line)); color: var(--tv-red); background: color-mix(in srgb, var(--tv-red) 8%, var(--graphite-2)); }
.tv-warn b { font: 500 12px var(--font-mono); background: var(--tv-red); color: #fff; border-radius: 10px; padding: 0 7px; }
.tv-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 16px; }
.tv-bar__l, .tv-bar__r, .tv-day { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tv-day b { min-width: 150px; text-align: center; font-weight: 600; }
.tv-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; border-radius: 20px; padding: 2px 10px; white-space: nowrap; }
.tv-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tv-s-open { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--tv-blue); }
.tv-s-in_progress { background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--amber-text); }
.tv-s-waiting { background: color-mix(in srgb, var(--flag) 14%, transparent); color: var(--tv-red); }
.tv-s-resolved, .tv-s-closed { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--tv-green); }
.tv-tag { font-size: 11.5px; border-radius: 6px; padding: 1px 8px; background: var(--graphite-3); color: var(--text-dim); white-space: nowrap; }
.tv-tag.tv-hot { background: color-mix(in srgb, var(--flag) 14%, transparent); color: var(--tv-red); }
.tv-tag.tv-ok { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber-text); }
.tv-pd { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.tv-sla { display: inline-flex; align-items: center; gap: 7px; font: 500 11.5px var(--font-mono); white-space: nowrap; }
.tv-sla i { width: 46px; height: 5px; border-radius: 3px; background: var(--graphite-3); overflow: hidden; display: block; }
.tv-sla u { display: block; height: 100%; border-radius: 3px; }
.tv-cap { height: 6px; background: var(--graphite-3); border-radius: 3px; overflow: hidden; }
.tv-cap u { display: block; height: 100%; border-radius: 3px; }
.tv-pbtn, .tv-abtn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 20px; display: inline-flex; }
.tv-abtn { border-radius: 50%; }
.tv-pbtn:hover, .tv-abtn:hover { outline: 2px solid var(--amber); outline-offset: 2px; }
.tv-pbtn .tv-pill::after { content: "▾"; font-size: 9px; opacity: .7; margin-left: 2px; }
.tv-empty { text-align: center; padding: 50px 20px; color: var(--text-dim); }
.tv-only-m { display: none; }
.tv-hint { font-size: 12.5px; color: var(--text-dim); margin: 12px 2px 0; }
.tv-eb { font: 500 10.5px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--amber-text); margin-bottom: 10px; }
.tv-why { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* Δικά μου */
.tv-rl { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.tv-rail { display: flex; flex-direction: column; gap: 2px; padding: 8px; position: sticky; top: 12px; }
.tv-rail button { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border: 0; background: none; border-radius: 10px; text-align: left; width: 100%; color: var(--text); font: inherit; cursor: pointer; }
.tv-rail button:hover { background: var(--graphite-3); }
.tv-rail button.on { background: color-mix(in srgb, var(--amber) 14%, transparent); }
.tv-rail button b { flex: 1; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-rail button em { font: normal 500 12px var(--font-mono); color: var(--text-dim); }
.tv-rail hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; width: calc(100% - 8px); }
.tv-rail .tv-alert em { color: var(--tv-red); }
.tv-who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tv-who b { font-size: 17px; font-weight: 600; display: block; }
.tv-grp { margin-bottom: 18px; }
.tv-grp > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.tv-grp > h3 em { font: normal 500 11.5px var(--font-mono); color: var(--text-dim); }
.tv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); }
.tv-row:first-child { border-top: 0; }
.tv-row:hover { background: var(--graphite-3); }
.tv-row:first-child:hover { border-radius: 14px 14px 0 0; }
.tv-row:last-child:hover { border-radius: 0 0 14px 14px; }
.tv-row__main { min-width: 0; }
.tv-row__main > b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-row__main .tv-why { margin-top: 4px; font-size: 12.5px; }
.tv-act { display: flex; gap: 10px; align-items: center; }
/* Ομάδα */
.tv-mx { overflow: hidden; }
.tv-mr { display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(90px, .7fr)) minmax(160px, 1fr) 110px; gap: 12px; align-items: center; padding: 0 18px; min-height: 58px; border: 0; border-top: 1px solid var(--line); width: 100%; background: none; text-align: left; color: var(--text); font: inherit; }
.tv-mr.h { min-height: 38px; background: var(--graphite-3); border-top: 0; font: 500 10.5px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); }
button.tv-mr { cursor: pointer; }
button.tv-mr:hover { background: var(--graphite-3); }
.tv-mr.open { background: color-mix(in srgb, var(--amber) 12%, transparent); }
.tv-unrow { background: color-mix(in srgb, var(--flag) 7%, var(--graphite-2)); }
.tv-who2 { display: flex; gap: 12px; align-items: center; min-width: 0; }
.tv-who2 b { font-weight: 600; display: block; }
.tv-who2 small { color: var(--text-dim); font-size: 12.5px; }
.tv-num { font: 500 20px var(--font-mono); letter-spacing: -.02em; }
.tv-num.z { color: var(--text-dim); opacity: .6; }
.tv-exp { background: var(--graphite-3); padding: 6px 18px 14px 64px; border-top: 1px solid var(--line); }
.tv-exp .ln { display: grid; grid-template-columns: 78px minmax(0, 1fr) 150px 150px 34px 90px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tv-exp .ln:last-child { border-bottom: 0; }
.tv-exp .ln > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-exp .ln > span:nth-child(4), .tv-exp .ln > span:nth-child(5) { overflow: visible; }
/* Swimlanes */
.tv-sw { overflow-x: auto; }
.tv-swi { min-width: 900px; }
.tv-sh, .tv-sl { display: grid; grid-template-columns: 190px repeat(4, minmax(0, 1fr)); }
.tv-sh { background: var(--graphite-3); border-bottom: 1px solid var(--line); }
.tv-sh > div { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.tv-lh { width: 100%; display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: var(--graphite-3); border: 0; border-top: 1px solid var(--line); text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.tv-lh b { flex: 1; font-weight: 600; }
.tv-ch { transition: transform .15s; flex: none; }
.tv-lh.f .tv-ch { transform: rotate(-90deg); }
.tv-sl > div { padding: 8px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); min-height: 50px; }
.tv-sl > div:first-child { border-left: 0; }
.tv-cc { background: var(--graphite-2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px 7px 12px; font-size: 12.5px; position: relative; display: flex; gap: 8px; align-items: center; cursor: grab; }
.tv-cc::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pc); }
.tv-cc a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; }
.tv-cc i { font-style: normal; font-size: 11px; }
.tv .drag { opacity: .4; }
.tv .tv-sl > div.over { background: color-mix(in srgb, var(--amber) 14%, transparent); outline: 2px dashed var(--amber); outline-offset: -4px; }
/* Πρόγραμμα */
.tv-dp { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.tv-tlw { overflow-x: auto; }
.tv-tl { min-width: 860px; }
.tv-th, .tv-tt { display: grid; grid-template-columns: 210px 1fr; }
.tv-th { border-bottom: 1px solid var(--line); background: var(--graphite-3); }
.tv-hrs { display: grid; }
.tv-hrs span { font: 500 11px var(--font-mono); color: var(--text-dim); padding: 10px 0 10px 6px; border-left: 1px solid var(--line); }
.tv-tt { border-bottom: 1px solid var(--line); min-height: 64px; }
.tv-tt:last-child { border-bottom: 0; }
.tv-tt .nm { padding: 10px 14px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.tv-tt .nm b { display: block; font-weight: 600; font-size: 13px; }
.tv-tt .nm small { color: var(--text-dim); font-size: 12px; white-space: nowrap; }
.tv-tt .tr2 { position: relative; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); }
.tv-blk { position: absolute; top: 10px; bottom: 10px; border-radius: 8px; padding: 4px 8px; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: color-mix(in srgb, var(--amber) 18%, var(--graphite-2)); color: var(--amber-text); border: 1px solid color-mix(in srgb, var(--amber) 55%, transparent); font-weight: 500; text-decoration: none; }
.tv-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--tv-red); z-index: 1; }
.tv-free { position: absolute; left: 14px; top: 20px; font-size: 12.5px; color: var(--text-dim); }
.tv-free--r { left: auto; right: 12px; }
.tv-queue .tv-qh { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.tv-queue .q { padding: 14px 16px; border-top: 1px solid var(--line); }
.tv-queue .q p { margin: 4px 0 10px; font-weight: 500; }
.tv-asg { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tv-asg small { color: var(--text-dim); margin-right: 4px; }
.tv-asg button { border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.tv-asg button:hover .avatar { outline: 2px solid var(--amber); outline-offset: 1px; }
/* Ανάθεση ουράς (παράθυρο) */
.tv-ov { position: fixed; inset: 0; background: rgba(5, 8, 12, .6); display: grid; place-items: center; padding: 16px; z-index: 50; }
.tv-md { width: min(820px, 100%); max-height: 92vh; overflow: auto; position: relative; }
.tv-x { position: absolute; right: 14px; top: 14px; border: 0; background: var(--graphite-3); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--text-dim); cursor: pointer; }
.tv-tgc { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.tv-tgc h2 { margin: 0; font: 600 23px var(--font-display); text-wrap: balance; }
.tv-prog { display: flex; gap: 6px; margin-right: 44px; }
.tv-prog u { flex: 1; height: 4px; border-radius: 2px; background: var(--graphite-3); }
.tv-prog u.d { background: var(--amber); }
.tv-sug { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tv-sug button { text-align: left; border: 1px solid var(--line); background: var(--graphite-2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; color: var(--text); font: inherit; cursor: pointer; }
.tv-sug button:hover { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, var(--graphite-2)); }
.tv-sug button.best { border-color: var(--amber); }
.tv-sug .top { display: flex; gap: 10px; align-items: center; }
.tv-sug small { color: var(--text-dim); font-size: 12px; }
/* Μενού και ειδοποίηση */
.tv-pop { position: fixed; z-index: 60; min-width: 220px; background: var(--graphite-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.35); padding: 6px; }
.tv-pop h5 { margin: 6px 10px 4px; font: 500 10.5px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); }
.tv-pop button { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 9px; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.tv-pop button:hover { background: var(--graphite-3); }
.tv-pop button.cur { background: color-mix(in srgb, var(--amber) 14%, transparent); }
.tv-pop button em { margin-left: auto; font: normal 500 11.5px var(--font-mono); color: var(--text-dim); }
.tv-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 70; background: var(--text); color: var(--graphite); border-radius: 12px; padding: 10px 12px 10px 16px; box-shadow: 0 14px 40px rgba(0,0,0,.35); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.tv-toast button { border: 0; background: none; color: inherit; font: 600 13px var(--font-body); text-decoration: underline; padding: 2px 6px; cursor: pointer; }
@media (max-width: 1100px) {
    .tv-dp, .tv-rl { grid-template-columns: 1fr; }
    .tv-rail { flex-direction: row; overflow-x: auto; position: static; }
    .tv-rail button { width: auto; white-space: nowrap; }
    .tv-rail hr { display: none; }
}
@media (max-width: 820px) {
    .tv-mr { grid-template-columns: 1fr auto auto auto; gap: 6px 12px; padding: 12px 14px; }
    .tv-mr.h, .tv-mr .x2 { display: none; }
    .tv-exp { padding: 6px 14px 12px; }
    .tv-exp .ln { grid-template-columns: auto minmax(0, 1fr) auto auto; }
    .tv-exp .ln .x2 { display: none; }
    .tv-row { grid-template-columns: 1fr; }
    .tv-only-m { display: block; margin: 0 2px 10px; }
    .tv-tgc { padding: 18px; }
    .tv-day b { min-width: 0; }
}

/* ===== v1.9.0: αριστερό μενού αιτημάτων, Inbox με συνομιλία, επίλυση ===== */
.page-head__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar--slim { margin: 0; padding: 0; background: none; border: 0; }
.toolbar--slim .search-input { width: 220px; }
.tk { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 24px; align-items: start; }
.tk__main { min-width: 0; }
.tk__note { font-size: 12px; color: var(--text-dim); margin: 0 0 14px; }
.trail { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 18px; }
.trail__grp { display: flex; flex-direction: column; gap: 2px; }
.trail__h { font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); padding: 0 10px 6px; }
.trail__it { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text-dim); text-decoration: none; font-size: 13.5px; min-width: 0; }
.trail__it > span:not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trail__it em { font: normal 11px var(--font-mono); opacity: .7; margin-left: 4px; }
.trail__it b { font: 500 11.5px var(--font-mono); color: var(--text-dim); }
.trail__it:hover { background: var(--graphite-3); color: var(--text); }
.trail__it.is-active { background: color-mix(in srgb, var(--amber) 13%, transparent); color: var(--text); box-shadow: inset 2px 0 0 var(--amber); }
.trail__it.is-active b { color: var(--amber-text); }
[data-theme="light"] .trail__it.is-active b { color: var(--amber-text); }

/* λίστα: σταθερά πλάτη στηλών */
.ttable .trow { grid-template-columns: 112px minmax(0, 1fr) 170px 160px 152px 118px 138px 64px; gap: 14px; }
.ttable .trow__pri { justify-content: flex-start; gap: 8px; align-items: center; font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.ttable .trow__who { justify-content: flex-start; gap: 8px; align-items: center; font-size: 13px; white-space: nowrap; overflow: hidden; }
.ttable .trow__who > span { overflow: hidden; text-overflow: ellipsis; }
.ttable--done .trow { grid-template-columns: 112px minmax(0, 1fr) 170px 130px 84px 104px; }
.trow__who2 { display: flex; gap: 8px; align-items: center; font-size: 13px; min-width: 0; }
.trow__time { font: 500 12.5px var(--font-mono); }
.ttable--done .trow__age { text-align: left; }
.dsum { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.dsum__it { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--graphite-2); }
.dsum__it b { display: block; font-size: 13px; font-weight: 600; }
.dsum__it span { font: 12px var(--font-mono); color: var(--text-dim); }

/* πάνελ Inbox */
.ipanel__open { margin-left: auto; font-size: 12.5px; color: var(--text-dim); }
.ipanel__assign { display: inline-flex; gap: 8px; align-items: center; border: 1px solid transparent; background: none; color: var(--text); font: inherit; padding: 2px 8px 2px 2px; border-radius: 999px; cursor: pointer; }
.ipanel__assign:hover { border-color: var(--line); background: var(--graphite-3); }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; padding-right: 2px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--graphite-3); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.msg__who { font-size: 11.5px; color: var(--text-dim); margin-bottom: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.msg__who small { font: 11px var(--font-mono); opacity: .8; }
.msg--staff { align-self: flex-end; background: color-mix(in srgb, var(--amber) 12%, var(--graphite-2)); border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); }
.msg--note { align-self: flex-end; background: transparent; border: 1px dashed var(--text-dim); }
.msg--solution { align-self: stretch; max-width: none; background: color-mix(in srgb, var(--teal) 10%, var(--graphite-2)); border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); }
.composer { border: 1px solid var(--line); border-radius: 14px; background: var(--graphite-2); overflow: hidden; }
.composer.is-note { border-style: dashed; }
.composer__tabs { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--line); }
.composer__tabs button { display: inline-flex; gap: 6px; align-items: center; border: 0; background: none; padding: 8px 12px; font: 500 13px var(--font-body); color: var(--text-dim); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.composer__tabs button.is-active { color: var(--text); border-bottom-color: var(--amber); }
.composer textarea { width: 100%; border: 0; background: transparent; padding: 12px 14px; resize: vertical; min-height: 76px; font: inherit; color: var(--text); box-shadow: none; outline: none; }
.composer__row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 12px 10px; }
.composer__auto { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; color: var(--text-dim); }
.composer__auto input { width: auto; }
.composer__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.resolve { border: 1px solid color-mix(in srgb, var(--teal) 45%, var(--line)); border-radius: 14px; padding: 14px 16px; background: color-mix(in srgb, var(--teal) 7%, var(--graphite-2)); display: flex; flex-direction: column; gap: 10px; }
.resolve[hidden] { display: none; }
.resolve__title { font-weight: 600; }
.resolve__lbl { font-size: 12px; color: var(--text-dim); }
.resolve__chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.resolve__chips button.fchip { cursor: pointer; font: inherit; font-size: 13px; }
.resolve__custom { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-dim); }
.resolve__custom input { width: 76px; }
.resolve__bill { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.resolve__bill input { width: auto; }
.resolve textarea { width: 100%; }
.resolve__row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.ipanel__ck { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.ipanel__cktitle { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.ipanel__cktitle select { margin-left: auto; font-size: 12.5px; padding: 4px 8px; max-width: 100%; }
.ck { display: flex; gap: 10px; align-items: center; padding: 5px 2px; font-size: 13.5px; cursor: pointer; }
.ck input { width: auto; }
.ck.is-done span { text-decoration: line-through; color: var(--text-dim); }
.ck span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ck__x { border: 0; background: none; color: var(--text-dim); font-size: 17px; line-height: 1; cursor: pointer; opacity: 0; }
.ck:hover .ck__x { opacity: 1; }
.ck-add input { width: 100%; font-size: 13px; }

@media (max-width: 1100px) {
    .tk { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .trail { position: static; flex-direction: row; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; -webkit-overflow-scrolling: touch; }
    .trail__grp { flex-direction: row; gap: 6px; flex: none; align-items: center; }
    .trail__grp + .trail__grp { border-left: 1px solid var(--line); padding-left: 6px; }
    .trail__h { display: none; }
    .trail__it { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; flex: none; }
    .trail__it > span:not(.avatar) { flex: none; overflow: visible; }
    .trail__it.is-active { box-shadow: none; border-color: var(--amber); }
}
@media (max-width: 1000px) and (min-width: 721px) {
    .ttable .trow { grid-template-columns: 100px minmax(0, 1fr) 140px 116px 120px; }
    .ttable .trow__client, .ttable .trow__age, .ttable .trow__sys { display: none; }
    .ttable--done .trow { grid-template-columns: 100px minmax(0, 1fr) 120px 76px 100px; }
    .ttable--done .trow__age { display: block; }
}
@media (max-width: 720px) {
    .ttable:not(.ttable--done) .trow { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 16px; }
    .ttable .trow__pri, .ttable .trow__client, .ttable .trow__sys { display: none; }
    .page-head__tools { width: 100%; }
    .toolbar--slim { flex: 1; }
    .toolbar--slim .search-input { width: 100%; }
    .ttable--done .trow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 16px; }
    .ttable--done .trow__code, .ttable--done .trow__client, .ttable--done .trow--head { display: none; }
    .ttable--done .trow__who2 { grid-column: 1; grid-row: 2; }
    .ttable--done .trow__time { grid-column: 2; grid-row: 1; }
    .ttable--done .trow__age { grid-column: 2; grid-row: 2; display: block; text-align: right; }
    .ttable .trow__who { grid-area: who; }
    .ttable .trow__who > span:not(.avatar) { display: none; }
    .ttable .trow__who { justify-self: end; align-self: start; padding: 4px; margin: -4px -4px 0 0; }
    .ttable .trow__who .avatar { width: 28px !important; height: 28px !important; font-size: 11px !important; }
    .msg { max-width: 96%; }
}
.trail__it .avatar, .trail__it > svg { flex: none; }
.ttable .trow--head .trow__pri, .ttable .trow--head .trow__who { font: inherit; color: var(--text-dim); display: block; }
.ttable .trow--head .trow__pri { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; }

/* ===== v1.9.0: πάνελ «Πρόσβαση πελάτη» ===== */
.pa-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pa-sec { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.pa-sec__h { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.pa-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; flex-wrap: wrap; }
.pa-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin: 10px 0 12px; }
.pa-add label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-dim); flex: 1 1 140px; min-width: 0; }
.pa-add input, .pa-add select { width: 100%; }
.pa-user { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--graphite-3); }
.pa-user.is-off { opacity: .65; }
.pa-user summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; flex-wrap: wrap; list-style: none; }
.pa-user summary::-webkit-details-marker { display: none; }
.pa-user__n { display: flex; flex-direction: column; min-width: 0; }
.pa-user__n small { color: var(--text-dim); overflow-wrap: anywhere; }
.pa-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 14px; padding: 4px 14px 10px; }
.pa-chk { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.pa-chk input { width: auto; }
.pa-btns { grid-column: 1 / -1; padding-top: 4px; }
.pa-btns--row { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 12px; }
.pa-secret { display: inline-block; margin-top: 6px; padding: 4px 8px; border-radius: 6px; background: var(--graphite); overflow-wrap: anywhere; user-select: all; }
.chat-tag { font-style: normal; font-size: 11px; color: var(--text-dim); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; margin-left: 6px; }

/* ===== v1.9.1: νέα διάταξη αιτημάτων (tabs πάνω, χωρίς αριστερό μενού) ===== */
.tk { display: block; }
.trail { display: none; }
.tk-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.tk-top h1 { margin: 0 auto 0 0; font-size: 24px; white-space: nowrap; }
.tk-search input { width: 220px; min-width: 0; }
.vsw { display: flex; background: var(--graphite-3); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.vsw a { width: 34px; height: 30px; border-radius: 7px; color: var(--text-dim); display: grid; place-items: center; text-decoration: none; }
.vsw a:hover { color: var(--text); }
.vsw a.on { background: var(--graphite-2); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.tk-bar { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.tk-tabs { display: flex; gap: 4px; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.tk-tab { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 9px; color: var(--text-dim); text-decoration: none; white-space: nowrap; font-size: 14px; }
.tk-tab em { font: normal 11px var(--font-mono); opacity: .7; }
.tk-tab b { font: 600 11.5px var(--font-mono); background: var(--graphite-3); border-radius: 99px; padding: 1px 8px; }
.tk-tab:hover { color: var(--text); }
.tk-tab.is-active { background: var(--graphite-2); color: var(--text); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.tk-tab.is-active b { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber-text); }
[data-theme="light"] .tk-tab.is-active b { color: var(--amber-text); }
.tk-team { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 12.5px; }
.tk-team a { position: relative; border-radius: 50%; display: inline-flex; }
.tk-team a .avatar { border: 2px solid transparent; }
.tk-team a.on .avatar { border-color: var(--amber); }
.tk-team a i { position: absolute; right: -6px; top: -6px; background: var(--graphite-2); border: 1px solid var(--line); color: var(--text); border-radius: 99px; font: 600 10px var(--font-mono); padding: 0 5px; font-style: normal; }

/* Inbox: λίστα + συνομιλία */
.inbox { height: calc(100vh - 190px); min-height: 560px; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
.inbox__grp { position: sticky; top: 0; z-index: 1; background: var(--graphite-2); padding: 10px 16px 6px; font: 600 11px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); display: flex; justify-content: space-between; }
.inbox__item { grid-template-columns: 4px minmax(0, 1fr) auto; padding: 12px 16px 12px 0; align-items: center; }
.inbox__pbar { align-self: stretch; border-radius: 0 4px 4px 0; }
.inbox__item.is-active { box-shadow: none; }
.inbox__item.is-new .inbox__subject { font-weight: 700; display: flex; gap: 7px; align-items: center; }
.inbox__item.is-new .inbox__subject::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.inbox__sub { font-size: 12.5px; }
.inbox__panel { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ipanel { position: relative; gap: 0; height: 100%; min-height: 0; flex: 1; }
.ipanel__head { padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.ipanel__title { font-size: 18px; margin: 0 0 8px; }
.ipanel__meta { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.ipanel__back { display: none; border: 0; background: none; color: var(--text-dim); padding: 0 0 8px; font: inherit; cursor: pointer; }
.ipill { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--line); background: var(--graphite-3); border-radius: 99px; padding: 3px 11px 3px 4px; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.ipill--plain { padding-left: 11px; }
.ipill:hover { border-color: var(--text-dim); }
.ipill__dot { width: 8px; height: 8px; border-radius: 50%; margin-left: -2px; }
.ipanel .thread { flex: 1; min-height: 0; max-height: none; overflow-y: auto; padding: 18px 20px; }
.ckpop { position: absolute; left: 20px; top: 108px; width: min(340px, calc(100% - 40px)); background: var(--graphite-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.28); padding: 14px; z-index: 6; display: flex; flex-direction: column; gap: 4px; }
.ckpop[hidden] { display: none; }
.ckpop .ipanel__cktitle select { margin-left: auto; }
.ipanel .resolve { position: absolute; right: 16px; bottom: 92px; width: min(380px, calc(100% - 32px)); z-index: 6; box-shadow: 0 18px 50px rgba(0,0,0,.28); background: var(--graphite-2); border-color: var(--line); }
.ipanel .composer { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 16px 14px; }
.ipanel .composer textarea { border: 1px solid var(--line); border-radius: 10px; min-height: 0; resize: none; }
.ipanel .composer.is-note textarea { border-style: dashed; }
.composer--done { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ipanel__actions { display: none; }

@media (max-width: 1000px) {
    .inbox { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
    .inbox__list { overflow: visible; }
    .inbox__panel { display: none; }
    .inbox.is-open .inbox__panel { display: flex; position: fixed; inset: 0; z-index: 70; background: var(--graphite-2); }
    .ipanel__back { display: block; }
    .ipanel .composer { padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
    .tk-team { margin-left: 0; }
    .tk-top h1 { width: 100%; }
    .tk-search { flex: 1 1 100%; } .tk-search input { width: 100%; }
}
.resolve__custom[hidden], .composer [hidden] { display: none !important; }
.ipanel .composer__row { padding: 10px 0 0; }
.ipanel .composer__tabs { padding: 0; border-bottom: 0; margin-bottom: 8px; }
.ipill--tag { padding-left: 11px; cursor: default; background: transparent; }

/* ===== v1.9.2: φόρμα νέου αιτήματος — οριζόντια, ευθυγραμμισμένη ===== */
.nt-panel { max-width: 1040px; }
.nt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 18px; align-items: end; }
.nt label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt input[type=text], .nt input[type=date], .nt input[type=time], .nt select { width: 100%; height: 42px; }
.nt textarea { width: 100%; min-height: 110px; resize: vertical; }
.nt__c3 { grid-column: span 3; } .nt__c4 { grid-column: span 4; } .nt__c5 { grid-column: span 5; } .nt__c6 { grid-column: span 6; } .nt__c12 { grid-column: 1 / -1; }
.nt__check { display: flex; align-items: center; height: 42px; }
.nt__toggle { display: inline-flex !important; align-items: center; gap: 9px; margin: 0 !important; height: 42px; cursor: pointer; }
.nt__toggle input { width: auto; height: auto; }
.nt__actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 900px) { .nt__c3, .nt__c4, .nt__c5 { grid-column: span 6; } .nt__c6 { grid-column: 1 / -1; } .nt__actions { grid-column: 1 / -1; } }
@media (max-width: 560px) { .nt__c3, .nt__c4, .nt__c5, .nt__c6 { grid-column: 1 / -1; } .nt__actions .btn { flex: 1; justify-content: center; } }

/* v1.9.3 — κουμπιά φορμών πρόσβασης στο ίδιο ύψος με τα πεδία */
.pa-add label { font-weight: 500; }
.pa-add input, .pa-add select { height: 42px; }
.pa-add .btn { height: 42px; padding: 0 16px; justify-content: center; white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 720px) { .pa-add .btn { width: 100%; } }

/* v1.9.3 — λήξεις υπηρεσιών: αναζήτηση, modal, φόρμα πεδίων */
.svbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.svbar__search { position: relative; flex: 1 1 320px; min-width: 0; }
.svbar__search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.svbar__search input { width: 100%; height: 42px; padding-left: 36px; }
.svbar select { height: 42px; width: auto; min-width: 170px; }
.svtable tr[hidden] { display: none; }
.svc-none { padding: 26px; text-align: center; color: var(--text-dim); font-size: 13.5px; }
.svf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 18px; align-items: end; }
.svf label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svf input[type=text], .svf input[type=date], .svf input[type=number], .svf select { width: 100%; height: 42px; }
.svf__c3 { grid-column: span 3; } .svf__c4 { grid-column: span 4; } .svf__c8 { grid-column: span 8; } .svf__c12 { grid-column: 1 / -1; }
@media (max-width: 720px) { .svf__c3 { grid-column: span 6; } .svf__c4, .svf__c8 { grid-column: 1 / -1; } }
@media (max-width: 420px) { .svf__c3 { grid-column: 1 / -1; } }
.mdl { border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--graphite-2); color: var(--text); width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.mdl::backdrop { background: rgba(8, 12, 18, .55); backdrop-filter: blur(2px); }
.mdl__box { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.mdl__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mdl__head h2 { margin: 0; font-family: var(--font-display); font-size: 20px; }
.mdl__x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--graphite-3); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.mdl__foot { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 720px) { .mdl__box { padding: 18px 16px; } .mdl__foot .btn { flex: 1; justify-content: center; } }
.pa-add label { margin: 0; }
.nt textarea { min-height: 84px; }
.nt__actions .btn { height: 42px; padding: 0 18px; justify-content: center; }
.svtable td { vertical-align: middle; }

/* v1.9.3 — λίστα πελατών (πίνακας) */
.chipf { height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--graphite-2); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chipf[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #1B1300; font-weight: 600; }
.ctbl { width: 100%; border-collapse: collapse; }
.ctbl th { text-align: left; padding: 11px 14px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; border-bottom: 1px solid var(--line); background: var(--graphite-3); white-space: nowrap; }
.ctbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.ctbl tbody tr { cursor: pointer; }
.ctbl tbody tr:last-child td { border-bottom: 0; }
@media (hover: hover) { .ctbl tbody tr:hover td { background: var(--graphite-3); } }
.ctbl .mono, .ctbl .mono-dim { font-size: 13px; }
.ctbl tr[hidden] { display: none; }
.ctbl__who { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
.ctbl__who b { display: block; }
.ctbl__who small { display: block; color: var(--text-dim); font-size: 12.5px; }
.ctbl__who .client-card__logo { width: 34px; height: 34px; font-size: 14px; flex: none; }
.ctbl__act { text-align: right; }
.ctbl__act .btn { height: 32px; padding: 0 14px; justify-content: center; white-space: nowrap; }
@media (max-width: 900px) {
  .ctbl thead { display: none; }
  .ctbl, .ctbl tbody, .ctbl tr, .ctbl td { display: block; }
  .ctbl tr { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
  .ctbl td { padding: 0; border: 0; white-space: normal; }
  .ctbl td:first-child { flex: 1 0 100%; }
  .ctbl td.hm { display: none; }
  .ctbl td:nth-child(6)::before { content: "Ώρες · "; color: var(--text-dim); font-size: 12px; }
  .ctbl__act { flex: 1 0 100%; text-align: left; }
  .ctbl__act .btn { width: 100%; justify-content: center; opacity: 1; }
}

/* v1.9.3 — παραγγελίες */
.svf__c6 { grid-column: span 6; }
@media (max-width: 720px) { .svf__c6 { grid-column: 1 / -1; } }
.otbl { width: 100%; border-collapse: collapse; }
.otbl th { text-align: left; padding: 11px 14px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; border-bottom: 1px solid var(--line); background: var(--graphite-3); white-space: nowrap; }
.otbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.otbl tbody tr:last-child td { border-bottom: 0; }
.otbl tr[hidden] { display: none; }
.otbl .n { text-align: right; }
.otbl__p { white-space: normal !important; min-width: 220px; }
.otbl__p b { display: block; }
.otbl__p small { display: block; color: var(--text-dim); font-size: 12.5px; }
.ost { width: auto; height: 32px; padding: 0 28px 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ost--ordered { color: var(--info); } .ost--delivered { color: var(--amber-text, var(--amber)); } .ost--invoiced { color: var(--text); }
.ost--paid { color: var(--teal); } .ost--cancelled { color: var(--text-dim); }
.o-profit { height: 42px; display: flex; align-items: center; padding: 0 12px; border: 1px dashed var(--line); border-radius: var(--radius); font-family: var(--font-mono); font-weight: 600; }
.svf .o-profit { width: 100%; }
@media (max-width: 720px) {
  .otbl thead { display: none; }
  .otbl, .otbl tbody, .otbl tr, .otbl td { display: block; }
  .otbl tr { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .otbl td { padding: 0; border: 0; white-space: normal; }
  .otbl td.otbl__p { order: -1; flex: 1 0 100%; min-width: 0; }
  .otbl td:nth-child(5), .otbl td:nth-child(6) { display: none; }
  .otbl td:last-child { margin-left: auto; }
}

/* ===== v1.9.4: πρόσβαση πύλης (στοιχεία), η μέρα μου ===== */
.pa-cred { margin: 10px 0 8px; padding: 10px 12px; border-radius: 6px; background: var(--graphite); font-family: var(--font-mono); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.pa-note { margin: 0; font-size: 12px; color: var(--text-dim); }
.pa-login { margin-top: 4px; }

/* Η μέρα μου */
.alert--lic { padding: 9px 14px; font-size: 13px; margin-bottom: 18px; border-radius: 8px; }
.hm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hm-head h1 { margin: 2px 0 6px; }
.hm-sub { margin: 0; color: var(--text-dim); font-size: 14px; }
.hm-cust { position: relative; }
.hm-cust .btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; }
.hm-cust__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 250px; background: var(--graphite-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hm-cust__panel p { margin: 4px 8px 6px; font-size: 12px; color: var(--text-dim); }
.hm-cust__panel label { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; font-size: 13.5px; cursor: pointer; margin: 0; color: var(--text); }
.hm-cust__panel label:hover { background: var(--graphite-3); }
.hm-cust__panel input { width: 15px; height: 15px; margin: 0; accent-color: var(--amber); }
.hm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.hm-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--graphite-2); text-decoration: none; color: var(--text); min-width: 0; }
.hm-kpi b { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.hm-kpi span { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-kpi.is-hot b { color: var(--flag); }
.hm-kpi:hover { border-color: var(--amber); }
.hm-grid { display: flex; gap: 20px; align-items: flex-start; }
.hm-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hm-col--main { flex: 1 1 0; }
.hm-col--side { flex: 0 0 340px; }
.hm-col:not(:has(> :not([hidden]))) { display: none; }
.hm-card { margin: 0; padding: 16px 18px 8px; }
.hm-card[hidden], .hm-kpis[hidden] { display: none; }
.hm-card__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.hm-card__h h3 { margin: 0; font-family: var(--font-display); font-size: 15px; }
.hm-card__h a, .hm-dim { font-size: 12.5px; color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.hm-card__h a:hover { color: var(--amber-text); }
.hm-empty { margin: 4px 0 12px; color: var(--text-dim); font-size: 13.5px; }
.hm-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: var(--text); text-decoration: none; }
.hm-card__h + .hm-row, .hm-row + .hm-row { border-top: 1px solid var(--line); }
.hm-card__h + .hm-row { border-top: 0; }
.hm-row:hover .hm-t { color: var(--amber-text); }
.hm-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--text-dim); }
.hm-dot--flag { background: var(--flag); } .hm-dot--amber { background: var(--amber); } .hm-dot--info { background: var(--info); } .hm-dot--teal { background: var(--teal); }
.hm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hm-t { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-m { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-tag { flex: 0 0 auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }
.hm-tag--flag { color: var(--flag); } .hm-tag--amber { color: var(--amber-text); }
.hm-team { display: grid; grid-template-columns: minmax(0, 1fr) 70px 24px; gap: 12px; align-items: center; padding: 8px 0; font-size: 13.5px; }
.hm-team__n { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-team b { text-align: right; font-family: var(--font-mono); font-weight: 500; }
.hm-bar { display: block; height: 6px; border-radius: 4px; background: var(--graphite-3); overflow: hidden; }
.hm-bar u { display: block; height: 100%; background: var(--amber); text-decoration: none; }
.hm-short { display: flex; flex-direction: column; padding-bottom: 6px; }
.hm-short a { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; min-width: 0; }
.hm-short a:first-child { border-top: 0; }
.hm-short a svg { color: var(--text-dim); flex: 0 0 auto; }
.hm-short a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-short a:hover { color: var(--amber-text); }
@media (max-width: 960px) {
    .hm-grid { flex-direction: column; align-items: stretch; }
    .hm-col--side { flex: 1 1 auto; }
    .hm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .hm-cust__panel { right: auto; left: 0; } }
@media (max-width: 480px) { .hm-head h1 { font-size: 24px; } }

/* v1.9.5: ώρες συμβολαίου και backup (εσωτερικά) */
.ct-fields { margin-top: 12px; }
.ct-note { margin: 12px 0 0; font-size: 12.5px; color: var(--text-dim); }
.ctr { display: grid; grid-template-columns: auto minmax(160px, 1fr); gap: 8px 22px; align-items: center; padding: 14px 18px; margin-bottom: 20px; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; background: var(--graphite-2); }
.ctr--low { border-left-color: var(--amber); }
.ctr--out { border-left-color: var(--flag); }
.ctr__n { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.ctr__n b { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.ctr__n span { font-size: 13px; color: var(--text-dim); }
.ctr__mid { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ctr__mid small { font-size: 12px; color: var(--text-dim); }
.ctr__bar { display: block; height: 7px; border-radius: 5px; background: var(--graphite-3); overflow: hidden; }
.ctr__bar u { display: block; height: 100%; background: var(--teal); text-decoration: none; }
.ctr--low .ctr__bar u { background: var(--amber); } .ctr--out .ctr__bar u { background: var(--flag); }
.ctr__msg { grid-column: 1 / -1; font-size: 13.5px; font-weight: 600; padding-top: 8px; border-top: 1px solid var(--line); }
.hrs--low { color: var(--amber-text); font-weight: 600; } .hrs--out { color: var(--flag); font-weight: 600; }
.resolve__warn { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; }
.resolve__warn--low { color: var(--amber-text); } .resolve__warn--out { color: var(--flag); }
.bk-strip { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; margin: 12px 0 8px; }
.bk-cell { display: block; height: 18px; border-radius: 4px; background: var(--graphite-3); }
.bk-cell--ok { background: #2E8B6A; } .bk-cell--warn { background: #C98A12; } .bk-cell--fail { background: #C23B2A; } .bk-cell--none { background: var(--graphite-3); }
.bk-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.bk-legend .bk-cell { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.bk-conn { margin-top: 6px; } .bk-conn summary { cursor: pointer; font-size: 13px; color: var(--text-dim); padding: 6px 0; }
.pa-bk { margin-top: 6px; }
@media (max-width: 720px) { .ctr { grid-template-columns: 1fr; } .bk-strip { grid-template-columns: repeat(15, minmax(0, 1fr)); } }
.cform .pa-chk { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 10px; margin: 0; }
.cform .pa-chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--amber); }

/* v1.9.6 — σελίδα σύνδεσης χωρίς τίτλο/κείμενο */
.login-brand + form, .login-brand + .alert, .login-card > div + form { margin-top: 20px; }
.login-sub + form, .login-sub + .alert { margin-top: 0; }
.hm-edit { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--text-dim); cursor: pointer; white-space: nowrap; }
.hm-edit:hover { color: var(--amber-text); }
.hm-pick { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.hm-pick p { margin: 0 0 10px; font-size: 12.5px; color: var(--text-dim); }
.hm-pick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 14px; }
.hm-pick label { font-weight: 400; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); text-transform: none; letter-spacing: 0; font-family: inherit; margin: 0; cursor: pointer; min-width: 0; }
.hm-pick input { width: auto; accent-color: var(--amber); flex: 0 0 auto; }
.hm-pick label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* v1.9.6: γραμμή μορφοποίησης και rich κείμενο */
.rtb { display: flex; gap: 4px; margin: 0 0 6px; }
.rtb button { width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: var(--graphite-2); color: var(--text-dim); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.rtb button:hover { color: var(--amber-text); border-color: var(--amber); }
.rich-ul { margin: 4px 0; padding-left: 20px; }
.rich-ul li { margin: 2px 0; }
.msg__body strong, .chat-msg__body strong, .pt-msg strong { font-weight: 700; }

/* ---- v1.9.6: μεγαλύτερα γράμματα στο μενού, ίδια πεδία φίλτρων, ευρύτερη διαχείριση ---- */
input[type=month], input[type=datetime-local], input[type=url] {
    width: 100%; padding: 10px 12px; background: var(--graphite-3); border: 1px solid var(--line);
    border-radius: var(--radius); color: var(--text); font-family: var(--font-body); font-size: 14px;
}
.rp-filter { display: grid; grid-template-columns: 200px minmax(240px, 380px) auto; gap: 14px; align-items: end; margin-bottom: 16px; }
.rp-filter label { margin-bottom: 6px; }
.rp-filter input, .rp-filter select, .rp-filter .btn { height: 42px; padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
.rp-filter .btn { padding-left: 22px; padding-right: 22px; }
@media (max-width: 720px) { .rp-filter { grid-template-columns: 1fr; } .rp-filter .btn { width: 100%; justify-content: center; } }

@media (min-width: 1101px) {
    .tn-b { font-size: 15.5px; padding: 0 15px; }
    .tn-i__x b { font-size: 15.5px; }
    .tn-i__x small { font-size: 13px; }
    .tn-i__t { width: 46px; height: 46px; }
    .tn-menu { width: 400px; }
    .tn-menu--sm { width: 250px; }
    .tn-q, .tn-row { font-size: 15px; }
    .tn-search { font-size: 14px; }
}
@media (min-width: 1100px) and (max-width: 1480px) { .tn-b { font-size: 14.5px; padding: 0 11px; } }
@media (max-width: 720px) { .nav-item { font-size: 15px; } }

/* Σελίδες διαχείρισης: πιο άνετοι πίνακες και φόρμες */
.split-panel .panel { padding: 26px 28px; }
.split-panel th { padding: 12px 16px; }
.split-panel td { padding: 15px 16px; font-size: 14px; }
.split-panel .panel input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), .split-panel .panel select { min-height: 42px; }
.split-panel .panel textarea { min-height: 96px; }
.split-panel .panel td .btn { white-space: nowrap; }

/* v1.9.6: εικονίδια στο μενού «Νέο» */
.tn-q { display: flex; align-items: center; gap: 11px; }
.tn-q svg { color: var(--text-dim); flex: 0 0 auto; }
.tn-q:hover svg { color: var(--amber-text); }
.quick-actions__menu a { display: flex; align-items: center; gap: 10px; }
.quick-actions__menu a svg { opacity: .8; flex: 0 0 auto; }

/* v1.9.6: διαδικασίες πελάτη */
.prc { border-top: 1px solid var(--line); padding: 12px 0; }
.prc:first-of-type { border-top: 0; }
.prc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prc__name { display: flex; flex-direction: column; min-width: 0; }
.prc__name small { color: var(--text-dim); font-size: 12.5px; }
.prc__run { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.prc__run input { width: auto; height: 34px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.prc__run .btn { height: 34px; }
.prc__edit, .prc__new { margin-top: 8px; }
.prc__edit > summary, .prc__new > summary { cursor: pointer; font-size: 13px; color: var(--text-dim); list-style: none; padding: 4px 0; }
.prc__edit > summary::-webkit-details-marker, .prc__new > summary::-webkit-details-marker { display: none; }
.prc__edit > summary:hover, .prc__new > summary:hover { color: var(--amber-text); }
.prc__new { border-top: 1px solid var(--line); padding-top: 10px; }
.prc__form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.prc__form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-dim); font-weight: 500; }
.prc__row { display: flex; gap: 8px; flex-wrap: wrap; }

/* v1.9.8: εισαγωγή/εξαγωγή πελατών */
.page-head__btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.imp { max-width: 980px; }
.imp h3 { margin: 0 0 12px; font-family: var(--font-display); }
.imp__note { font-size: 13.5px; color: var(--text-dim); margin: 0 0 14px; }
.imp__stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.imp__s { padding: 6px 12px; border-radius: 999px; font-size: 13px; border: 1px solid var(--line); background: var(--graphite-2); color: var(--text); }
.imp__s b { font-weight: 700; margin-right: 4px; }
.imp__s--ok { border-color: var(--teal); } .imp__s--bad { border-color: var(--flag); }
.imp__tbl { overflow-x: auto; margin-bottom: 14px; }
.imp__b { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--graphite-3); color: var(--text); white-space: nowrap; }
.imp__b--new { background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--text); }
.imp__b--bad { background: color-mix(in srgb, var(--flag) 18%, transparent); color: var(--text); }
.imp__why { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.imp__form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.imp__opt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); font-weight: 400; text-transform: none; letter-spacing: 0; font-family: inherit; margin: 0; }
.imp__opt input { width: auto; accent-color: var(--amber); }
.imp__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* v1.9.9: στήλη «Σύστημα» */
.trow__sys { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.trow__sys i { font-style: normal; opacity: .5; }
.kanban-card__meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.kanban-card__sys { font-size: 11px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-dim); }

/* v1.9.9: παραγγελίες — αίτημα, υπηρεσία, PDF */
.otbl__act { display: inline-flex; gap: 6px; }
.o-svc { border-top: 1px solid var(--line); padding-top: 12px; }
.o-chk { display: flex; gap: 8px; align-items: center; font-weight: 400; cursor: pointer; }
.o-chk input { width: auto; min-height: 0; }
.o-svc__f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
@media (max-width: 560px) { .o-svc__f { grid-template-columns: 1fr; } }

/* v1.9.9: Servers & AnyDesk */
.dv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.dv-card { background: var(--graphite-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.dv-card__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--graphite-3); }
.dv-card__h b { font-size: 14.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-card__h span { font: 500 11.5px var(--font-mono); color: var(--text-dim); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.dv-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.dv-card__h + .dv-row { border-top: 0; }
.dv-row__main { min-width: 0; }
.dv-row__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-row__meta { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.dv-row__ids { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dv-id { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px var(--font-mono); color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.dv-id i { font-style: normal; font-family: inherit; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.dv-id:hover { border-color: var(--text-dim); }
.dv-id.is-copied { border-color: var(--teal); color: var(--teal); }
.dv-row__act { display: flex; gap: 6px; flex: none; }
@media (max-width: 480px) { .dv-row { flex-direction: column; align-items: stretch; } .dv-row__act .btn { flex: 1; text-align: center; } }

[hidden] { display: none !important; }

.ttable .trow--head .trow__sys { font: inherit; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); display: block; }
@media (max-width: 1000px) { .ttable .trow--head .trow__sys { display: none; } }

/* v1.9.9: editor — πλήρης γραμμή εργαλείων και απόδοση */
.rtb { flex-wrap: wrap; align-items: center; }
.rtb__sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.rich-ul { margin: 6px 0; padding-left: 22px; }
ol.rich-ul { list-style: decimal; }
ul.rich-ul { list-style: disc; }
.rich-q { margin: 6px 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--line); color: var(--text-dim); }
.rich-code { font-family: var(--font-mono); font-size: .92em; padding: 1px 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--graphite-3); }
.rich a, .rich-text a { color: var(--amber-text); text-decoration: underline; }
del { opacity: .7; }

/* v1.9.10: σελίδα ticket — ίσα κουτιά στα στοιχεία και μεγαλύτερο πεδίο περιγραφής */
.detail-fields-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.detail-field-card { min-width: 0; box-sizing: border-box; display: flex; flex-direction: column; }
.detail-field-card input[type="date"], .detail-field-card input[type="time"] { min-width: 0; }
.detail-field-card input[type="time"] { max-width: 120px; flex: 0 0 120px; }
.detail-field-card input[type="date"] { flex: 1 1 0; }
#ticket-form .icon-row__field textarea[name="description"] { min-height: 260px; resize: vertical; }
@media (max-width: 960px) { #ticket-form .icon-row__field textarea[name="description"] { min-height: 180px; } .detail-fields-grid { grid-template-columns: minmax(0, 1fr); } }


/* ---- Popup ειδοποιήσεων (κουδούνι) ---- */
.np-back { position: fixed; inset: 0; z-index: 1190; background: transparent; }
.np {
    position: fixed; z-index: 1200; top: 64px; right: 16px; width: 400px; max-width: calc(100vw - 24px);
    display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 90px));
    background: var(--graphite-2); color: var(--text); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 28px 70px rgba(10,20,40,.34); outline: none;
    opacity: 0; transform: translateY(-8px) scale(.985); transform-origin: top right;
    transition: opacity .16s, transform .16s;
}
[data-theme="light"] .np { box-shadow: 0 28px 70px rgba(20,35,60,.2), 0 2px 6px rgba(20,35,60,.06); }
.np[hidden], .np-back[hidden] { display: none; }
.np.is-open { opacity: 1; transform: none; }
.np__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.np__h strong { font-family: var(--font-display); font-size: 15px; }
.np__mark { background: none; border: 0; padding: 4px 6px; margin: -4px -6px; border-radius: 8px; color: var(--text-dim); font: inherit; font-size: 12.5px; cursor: pointer; }
.np__mark:hover { color: var(--text); background: var(--graphite-3); }
.np__list { overflow-y: auto; padding: 6px; flex: 1; min-height: 0; overscroll-behavior: contain; }
.np__i { display: flex; align-items: flex-start; gap: 12px; padding: 10px 10px; border-radius: 12px; text-decoration: none; color: var(--text); }
.np__i:hover, .np__i:focus-visible { background: var(--graphite-3); outline: none; }
.np__ic { color: var(--amber-text); display: flex; padding-top: 2px; flex: none; }
.np__tx { flex: 1; min-width: 0; }
.np__m { display: block; font-size: 13.5px; line-height: 1.4; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.np__t { display: block; font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.np__i.is-read .np__m { font-weight: 400; color: var(--text-dim); }
.np__i.is-read .np__ic { color: var(--text-dim); }
.np__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; margin-top: 7px; }
.np__empty { padding: 26px 16px; text-align: center; color: var(--text-dim); font-size: 13.5px; }
.np__all { display: block; padding: 12px 16px; text-align: center; border-top: 1px solid var(--line); color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none; border-radius: 0 0 18px 18px; }
.np__all:hover { background: var(--graphite-3); }
@media (max-width: 720px) {
    .np-back { background: rgba(5,10,20,.5); opacity: 0; transition: opacity .18s; }
    .np-back.is-open { opacity: 1; }
    .np {
        top: auto !important; left: 0 !important; right: 0 !important; bottom: 0; width: 100%; max-width: none;
        max-height: 78vh; border-radius: 20px 20px 0 0; border-bottom: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        transform: translateY(24px); transform-origin: bottom center;
    }
    .np.is-open { transform: none; }
    .np__i { padding: 13px 10px; }
    .np__all { border-radius: 0; padding: 15px 16px; }
}
@media (prefers-reduced-motion: reduce) { .np, .np-back { transition: none !important; } }


/* ---- Μαζικές ενέργειες στη λίστα αιτημάτων ---- */
.bk-bar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.bk-toggle.is-on { background: color-mix(in srgb, var(--amber) 16%, transparent); border-color: var(--amber); color: var(--text); }
.ttable.is-select .trow { position: relative; padding-left: 54px; cursor: pointer; }
.ttable.is-select .trow.is-sel { background: color-mix(in srgb, var(--amber) 11%, transparent); }
.trow__sel { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--text-dim); background: var(--graphite-2); display: grid; place-items: center; cursor: pointer; }
.trow__sel:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.trow__sel[aria-checked="true"], .trow__sel[aria-checked="mixed"] { background: var(--amber); border-color: var(--amber); }
.trow__sel[aria-checked="true"]::after { content: ""; width: 5px; height: 10px; border: solid var(--on-amber); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.trow__sel[aria-checked="mixed"]::after { content: ""; width: 10px; height: 2px; background: var(--on-amber); }
.bk {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 65;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
    max-width: calc(100vw - 24px); padding: 10px 12px 10px 18px;
    background: var(--graphite-2); color: var(--text); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 18px 50px rgba(10,20,40,.38);
}
.bk[hidden] { display: none; }
.bk__n { font-weight: 600; font-size: 13.5px; margin-right: 4px; }
.bk select { height: 34px; min-width: 0; width: auto; padding: 0 28px 0 10px; font-size: 13px; border-radius: 9px; }
@media (max-width: 720px) {
    .bk { left: 12px; right: 12px; transform: none; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); justify-content: flex-start; padding: 12px; }
    .bk__n { flex: 1 1 100%; }
    .bk select { flex: 1 1 calc(50% - 5px); }
    .ttable.is-select .trow { padding-left: 52px; }
}


/* ---- Ticket: μόνιμη κάρτα πελάτη + βασικά πεδία πάνω από την περιγραφή ---- */
.tk-ctx { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--graphite-3); overflow: hidden; }
.tk-ctx--empty { padding: 12px 14px; color: var(--text-dim); font-size: 13px; }
.tk-ctx__who, .tk-ctx__cell { display: flex; flex-direction: column; gap: 3px; padding: 11px 16px; min-width: 0; border-left: 1px solid var(--line); }
.tk-ctx__who { flex: 1 1 220px; border-left: 0; }
.tk-ctx__cell { flex: 0 1 auto; }
.tk-ctx__lbl { font: 500 10.5px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); }
.tk-ctx__name { font-weight: 600; font-size: 15px; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-ctx__name:hover, .tk-ctx__go:hover, .tk-ctx__list a:hover { color: var(--amber-text); }
.tk-ctx__sub { font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-ctx__cell b { font-size: 15px; line-height: 1.2; }
.tk-ctx__zero { color: var(--text-dim); font-weight: 500; }
.tk-ctx__cell small { font-size: 12px; color: var(--text-dim); }
.tk-ctx__list { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; }
.tk-ctx__list a, .tk-ctx__go { color: var(--text-dim); text-decoration: none; font-size: 12.5px; }
.tk-ctx__hours--ok { color: var(--text); }
.tk-ctx__hours--low { color: var(--amber-text); }
.tk-ctx__hours--out { color: #e5484d; }
[data-theme="light"] .tk-ctx__hours--low { color: #8a5a00; }
[data-theme="light"] .tk-ctx__hours--out { color: #c4262b; }
.tk-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 18px; }
.tk-facts .tk-f--full { grid-column: 1 / -1; }
.tk-facts .tk-f--wide { grid-column: span 2; }
@media (max-width: 1280px) { .tk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tk-facts .tk-f--wide { grid-column: 1 / -1; } }
@media (max-width: 600px) { .tk-facts { grid-template-columns: minmax(0, 1fr); } .tk-facts .tk-f--wide { grid-column: auto; } .tk-ctx__who, .tk-ctx__cell { flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--line); } .tk-ctx__who { border-top: 0; } }

/* Ticket: συμπαγής πάνω μπάρα + γραμμή πελάτη */
.tk-top { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; }
.tk-top__sel { display:inline-flex; align-items:center; gap:6px; margin:0; padding:0 0 0 10px; height:34px; border:1px solid var(--line); border-radius:999px; background:var(--graphite-2); color:var(--text-dim); font-weight:500; }
.tk-top__sel select { width:auto; height:32px; min-height:0; margin:0; padding:0 26px 0 2px; border:0; background-color:transparent; box-shadow:none; font-size:13px; color:var(--text); max-width:170px; }
.tk-top__more { margin-left:auto; }
.tk-line { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; padding:10px 14px; margin:12px 0 16px; border:1px solid var(--line); border-radius:10px; background:var(--graphite-2); font-size:13px; }
.tk-line .tk-ctx__name { font-weight:600; color:var(--text); }
.tk-line__item { color:var(--text-dim); }
.tk-line__link { text-decoration:none; }
.tk-line__link:hover { color:var(--text); text-decoration:underline; }
.tk-line .tk-ctx__hours { font-weight:600; }
@media (max-width:600px){ .tk-top__more { margin-left:0; } .tk-top__sel { max-width:100%; } .tk-top__sel select { max-width:200px; } }

.tk-line__btn { display:inline-flex; align-items:center; gap:6px; margin-left:auto; padding:4px 10px; border:1px solid var(--line); border-radius:999px; color:var(--text); text-decoration:none; font-weight:500; }
.tk-line__btn:hover { border-color:var(--amber); }
@media (max-width:600px){ .tk-line__btn { margin-left:0; } }

/* Αρχική: μεγαλύτερα γράμματα (κλιμακώνονται με το πλάτος οθόνης) */
.hm-sub { font-size: clamp(14.5px, 0.9vw + 4px, 17px); }
.hm-kpi { padding: 16px 18px; }
.hm-kpi b { font-size: clamp(30px, 1.3vw + 14px, 38px); }
.hm-kpi span { font-size: clamp(13.5px, 0.5vw + 8px, 15.5px); }
.hm-card { padding: 18px 20px 10px; }
.hm-card__h h3 { font-size: clamp(16px, 0.5vw + 10px, 18.5px); }
.hm-card__h a, .hm-dim, .hm-edit { font-size: clamp(13.5px, 0.4vw + 8px, 15px); }
.hm-empty { font-size: clamp(14.5px, 0.4vw + 9px, 16px); }
.hm-row { padding: 13px 0; }
.hm-t { font-size: clamp(15px, 0.5vw + 9px, 17px); }
.hm-m { font-size: clamp(13px, 0.4vw + 8px, 14.5px); }
.hm-tag { font-size: clamp(12.5px, 0.3vw + 8px, 14px); }
.hm-team { font-size: clamp(14.5px, 0.4vw + 9px, 16px); }
.hm-short a { font-size: clamp(15px, 0.5vw + 9px, 17px); padding: 13px 0; }
.hm-col--side { flex-basis: clamp(340px, 28vw, 420px); }
@media (max-width: 900px) { .hm-col--side { flex-basis: auto; } }

/* Popup «Νέο» */
.qn { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; }
.qn__back { position: absolute; inset: 0; background: rgba(5, 8, 12, .62); backdrop-filter: blur(2px); }
.qn__dlg { position: relative; width: min(720px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: var(--graphite-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.45); overflow: hidden; }
.qn__grip { display: none; }
.qn__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.qn__head h2 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); }
.qn__tools { display: flex; align-items: center; gap: 12px; }
.qn__full { font-size: 12.5px; color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.qn__full:hover { color: var(--amber-text, var(--amber)); }
.qn__x { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.qn__x:hover { border-color: var(--amber); }
body.qn-open { overflow: hidden; }
@media (max-width: 720px) {
  .qn { padding: 0; align-items: flex-end; }
  .qn__dlg { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; border-bottom: 0; }
  .qn__grip { display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 8px auto 0; }
  .qn__full { display: none; }
}

/* Ρυθμίσεις: υπο-tabs και στήλες χωρίς κενά */
.set-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.set-tab { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); text-decoration: none; background: var(--graphite-2); }
.set-tab:hover { color: var(--text); border-color: var(--text-dim); }
.set-tab.is-on { color: var(--on-amber); background: var(--amber); border-color: var(--amber); }
.set-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.set-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.set-col > .panel { margin: 0; }
@media (max-width: 900px) { .set-cols { grid-template-columns: 1fr; } }

.qn__body { padding: 16px 20px 20px; overflow: auto; flex: 1 1 auto; min-height: 120px; }
.qn__body .panel { border: 0; background: transparent; box-shadow: none; padding: 0; margin: 0; max-width: none; }
.qn__body form { max-width: none; }
.qn__load { margin: 24px 0; color: var(--text-dim); text-align: center; }

/* Παραγγελία (popup) στο κινητό: μία στήλη, χωρίς υπερχείλιση πεδίων ημερομηνίας */
.mdl { max-height: calc(100dvh - 24px); overflow-y: auto; }
@media (max-width: 720px) {
  .mdl { width: calc(100vw - 20px); }
  .svf { align-items: start; gap: 14px 12px; }
  .svf__c3, .svf__c4, .svf__c6, .svf__c8 { grid-column: 1 / -1; }
  .svf__c3:has(#o-cost), .svf__c3:has(#o-price), .svf__c3:has(#o-profit), .svf__c3:has(#o-status) { grid-column: span 6; }
  .svf input[type=date] { display: block; min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; text-align: left; }
  .svf label { white-space: normal; }
}

/* Έλεγχος συστήματος */
.chk { max-width: 760px; }
.chk__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.chk__grp { margin: 22px 0 6px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.chk__row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.chk__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.chk__txt span { color: var(--text-dim); font-size: 12.5px; line-height: 1.45; }
.chk__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--text-dim); }
.chk__dot--ok { background: var(--teal); }
.chk__dot--warn { background: var(--amber); }
.chk__dot--bad { background: var(--flag); }
.setup-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--graphite-2); font-size: 13px; }
@media (max-width: 720px) { .chk__row { align-items: flex-start; } .chk__row .btn { align-self: center; } }

/* Ειδοποιήσεις push */
.push-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.push-box > div:first-child { flex: 1; min-width: 240px; }
.push-box p { margin: 4px 0 0; font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.push-box__msg:empty { display: none; }
.push-box__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Επιλογέας με αναζήτηση */
.ss { position: relative; width: 100%; }
.ss__native { display: block; opacity: 0; pointer-events: none; }
.ss__btn { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 100%; min-height: 0; padding: 10px 12px; background: var(--graphite-3); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font: 14px var(--font-body); text-align: left; cursor: pointer; }
.ss__btn::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim); transform: translateY(-2px) rotate(45deg); }
.ss__btn:focus-visible, .ss__btn[aria-expanded="true"] { outline: none; border-color: var(--amber); }
.ss__btn:disabled { opacity: .55; cursor: not-allowed; }
.ss__lab { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss__lab.is-empty { color: var(--text-dim); }
.ss__panel { position: fixed; z-index: 10000; width: max-content; max-width: min(560px, calc(100vw - 16px)); background: var(--graphite-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.35); padding: 6px; }
.ss__search { width: 100%; margin-bottom: 6px; padding: 9px 12px; font-size: 16px; }
.ss__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; }
.ss__list li { min-height: 36px; padding: 8px 10px; border-radius: 8px; font-size: 14px; line-height: 20px; color: var(--text); cursor: pointer; }
.ss__list li.is-empty { color: var(--text-dim); }
.ss__list li.is-active { background: var(--graphite-3); }
.ss__list li.is-selected { color: var(--amber-text); font-weight: 600; }
.ss__list li.is-disabled { opacity: .45; cursor: not-allowed; }
.ss__list li.ss__none { color: var(--text-dim); cursor: default; font-size: 13px; }
@media (max-width: 720px) { .ss__panel { width: calc(100vw - 16px); max-width: none; } }

/* Υπηρεσία / σύστημα μέσα στο πλαίσιο κατάστασης */
.stat-extra { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.stat-extra label { font-size: 12px; }
@media (max-width: 1100px) { .stat-extra { grid-template-columns: 1fr; } }

/* Ρύθμιση statuses */
.stc-row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.stc-row input[type=color] { width: 52px; height: 42px; padding: 3px; cursor: pointer; background: var(--graphite-3); border: 1px solid var(--line); border-radius: var(--radius); }

/* Ολοκληρωμένα: φίλτρα περιόδου και τεχνικού */
.done-bar { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 0 0 14px; }
.done-bar__g { display: flex; flex-wrap: wrap; gap: 8px; }

/* v1.9.34: διάταξη αρχικής ανά χρήστη */
.hm-cust__arr { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; padding: 9px 8px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; background: transparent; color: var(--amber-text); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.hm-cust__arr:hover { background: var(--graphite-3); }
.hm-arrange { position: sticky; top: 72px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 12px 10px 14px; border: 1px solid var(--amber); border-radius: 10px; background: var(--graphite-2); box-shadow: 0 8px 24px rgba(0,0,0,.08); font-size: 13.5px; color: var(--text); }
.hm-arrange[hidden] { display: none; }
.hm-arrange > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.hm-arrange > span:first-child svg { color: var(--amber-text); flex: none; }
.hm-arrange__btns { display: flex; gap: 8px; margin-left: auto; }
.hm-arranging .hm-col { min-height: 140px; padding: 6px; margin: -6px; border: 1.5px dashed var(--line); border-radius: 14px; }
.hm-arranging .hm-card { transition: box-shadow .15s ease, opacity .15s ease; }
.hm-arranging .hm-card a, .hm-arranging .hm-card input, .hm-arranging .hm-card form, .hm-arranging .hm-card .hm-short, .hm-arranging .hm-card .tsk-w { pointer-events: none; }
.hm-arranging .hm-card.is-drag { opacity: .45; }
.hm-arranging .hm-card.is-moved { box-shadow: 0 0 0 2px var(--amber); }
.hm-tools { display: flex; align-items: center; gap: 4px; margin: -6px -8px 10px; padding: 4px 4px 4px 8px; border-radius: 8px; background: var(--graphite-3); cursor: grab; user-select: none; }
.hm-tools:active { cursor: grabbing; }
.hm-tools__grip { display: inline-flex; color: var(--text-dim); }
.hm-tools__l { flex: 1; min-width: 0; font-size: 12px; font-weight: 500; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-tools button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--graphite-2); color: var(--text); cursor: pointer; padding: 0; }
.hm-tools button:hover { border-color: var(--amber); color: var(--amber-text); }
.hm-tools button:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
@media (max-width: 900px) {
  .hm-tools__swap { display: none !important; }
  .hm-tools button { width: 38px; height: 38px; }
  .hm-arranging .hm-col { min-height: 0; }
  .hm-arrange { top: 62px; }
}

/* v1.9.34: νέο αίτημα — γρήγορη επιλογή ημέρας/ώρας */
.nt__when-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; min-height: 20px; }
.nt .nt__when-h label { margin: 0; flex: 0 1 auto; min-width: 0; }
.nt__quick { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.nt__quick button { height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--graphite-2); color: var(--text); font: inherit; font-size: 12px; font-weight: 500; line-height: 1; cursor: pointer; white-space: nowrap; }
.nt__quick button:hover { border-color: var(--amber); color: var(--amber-text); }
.nt__quick button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.nt__quick button:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.nt__quick .nt__quick-x { width: 22px; padding: 0; color: var(--text-dim); font-size: 15px; }
.nt__quick .nt__quick-x[hidden] { display: none; }
.nt__when-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 900px) { .nt__when { grid-column: 1 / -1; } }
@media (max-width: 560px) { .nt__when-h { flex-wrap: wrap; } .nt__when-in { gap: 10px; } .nt__quick button { height: 30px; padding: 0 11px; font-size: 13px; } .nt__quick .nt__quick-x { width: 30px; } }

/* v1.9.36: μεγαλύτερα γράμματα στα μικρά μενού («+ Νέο», μενού χρήστη) */
@media (min-width: 1101px) {
    .tn-menu--sm { width: 272px; padding: 8px; }
    .tn-menu--sm .tn-q { font-size: 16.5px; padding: 11px 14px; gap: 13px; }
    .tn-menu--sm .tn-q svg { width: 18px; height: 18px; }
}

/* v1.9.37: λογότυπο ανά θέμα */
img.logo-d { display: none !important; }
:root:not([data-theme="light"]) img.logo-l { display: none !important; }
:root:not([data-theme="light"]) img.logo-d { display: revert !important; }

/* =========================================================
   v1.9.38 — κινητό: πεδία που δεν βγαίνουν έξω, πίνακες σε κάρτες, μεγαλύτερα κουμπιά
   ========================================================= */
/* Κανένα πεδίο δεν ξεπερνά το πλαίσιό του (το iOS δίνει δικό του πλάτος στα πεδία ημερομηνίας) */
input, select, textarea, .ss { max-width: 100%; box-sizing: border-box; }
input[type=date], input[type=time], input[type=datetime-local], input[type=month] { min-width: 0; }
@media (max-width: 720px) { input[type=date], input[type=time], input[type=datetime-local], input[type=month] { display: block; width: 100%; } }
@supports (-webkit-touch-callout: none) {
    input[type=date], input[type=time], input[type=datetime-local], input[type=month] {
        -webkit-appearance: none; appearance: none; min-height: 42px; line-height: 1.25;
    }
    input::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.25em; }
    input::-webkit-datetime-edit { padding: 0; }
}
form > *, .grid > *, [class*="__c"], [class*="-grid"] > * { min-width: 0; }
.status-pill { white-space: nowrap; }

@media (max-width: 720px) {
    /* Πάνω μπάρα: μεγαλύτερα κουμπιά */
    .mobile-topbar__actions { gap: 10px; }
    .mobile-topbar .icon-toolbar__btn { width: 44px; height: 44px; border-radius: 11px; color: var(--text); }
    .mobile-topbar .icon-toolbar__btn svg { width: 20px; height: 20px; }
    .mobile-topbar .bell-badge { top: -7px; right: -7px; min-width: 20px; height: 20px; font-size: 11.5px; line-height: 20px; }
    .quick-actions__btn--compact svg { width: 22px; height: 22px; stroke-width: 2.4; }
    .quick-actions--compact .quick-actions__menu { width: min(300px, calc(100vw - 24px)); }
    .quick-actions--compact .quick-actions__menu a { padding: 14px 16px; font-size: 16.5px; gap: 14px; }
    .quick-actions--compact .quick-actions__menu a svg { width: 20px; height: 20px; }

    /* Πίνακες καρτέλας πελάτη: γραμμές αντί για στήλες */
    .mtable, .mtable tbody { display: block; width: 100%; }
    .mtable tr:first-child:has(th) { display: none; }
    .mtable tr { display: grid; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
    .mtable tbody tr:nth-child(2) { border-top: 0; }
    .mtable td { display: block; padding: 0; border: 0; min-width: 0; }
    .mtable--tk tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "code stat" "main main"; align-items: center; }
    .mtable--tk .mt-code { grid-area: code; white-space: nowrap; }
    .mtable--tk .mt-stat { grid-area: stat; }
    .mtable--tk .mt-main { grid-area: main; font-size: 14.5px; color: var(--text); }
    .mtable--svc tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main amt" "stat act"; align-items: center; }
    .mtable--svc .mt-main { grid-area: main; }
    .mtable--svc .mt-amt { grid-area: amt; text-align: right; }
    .mtable--svc .mt-stat { grid-area: stat; }
    .mtable--svc .mt-act { grid-area: act; }

    /* Λήξεις: κάθε υπηρεσία μία κάρτα */
    .svtable, .svtable tbody { display: block; width: 100%; }
    .svtable .sv-head { display: none; }
    .svtable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cl am" "sv sv" "ex ac"; gap: 6px 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
    .svtable tr:nth-child(2) { border-top: 0; }
    .svtable td { display: block; padding: 0; border: 0; min-width: 0; }
    .svtable .sv-cl { grid-area: cl; font-weight: 600; font-size: 15px; }
    .svtable .sv-am { grid-area: am; text-align: right; font-size: 14px; }
    .svtable .sv-sv { grid-area: sv; font-size: 14px; overflow-wrap: anywhere; }
    .svtable .sv-st { display: none; }
    .svtable .sv-ex { grid-area: ex; }
    .svtable .sv-ac { grid-area: ac; }
    .svtable .sv-ac .btn { height: 34px; }
}
/* Ετικέτα λήξης: ημερομηνία και «σε Χ ημ.» χωρίς σπάσιμο */
.sv-exp { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 99px; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.sv-exp b { font-weight: 600; }
.sv-exp span { opacity: .85; font-size: 11.5px; }
.sv-exp span::before { content: "·"; margin-right: 8px; opacity: .6; }
.svtable .sv-type { color: var(--text-dim); }
.sv-exp { text-transform: none; letter-spacing: 0; font-weight: 500; }
.btn--sm { white-space: nowrap; }
.chk__dot--checking { background: var(--text-dim); opacity: .5; }

/* ---- v1.9.39/40: αρχική — φόρτος και επισκευές ---- */
/* Φόρτος ομάδας */
.hm-load { display: grid; grid-template-columns: minmax(0, 1fr) auto 90px; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; }
.hm-load__n { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hm-load__n > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-load__n .avatar { flex: none; }
.hm-load__c { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.hm-load__bar { height: 6px; border-radius: 3px; background: var(--graphite-3); overflow: hidden; display: block; }
.hm-load__bar u { display: block; height: 100%; border-radius: 3px; background: var(--teal); }
.hm-load__bar u.is-mid { background: var(--info); }
.hm-load__bar u.is-hi { background: var(--flag); }

/* Επισκευές σε εξέλιξη */
.hm-rep { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 8px; }
.hm-rep__c { display: flex; flex-direction: column; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--graphite-2); color: var(--text); text-decoration: none; min-width: 0; transition: border-color .15s; }
.hm-rep__c:hover { border-color: var(--amber); }
.hm-rep__top { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.hm-rep__ic { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--graphite-3); color: var(--text-dim); }
.hm-rep__x { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-rep__x b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-rep__x small { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-rep__top .status-pill { flex: none; white-space: nowrap; }
.hm-steps { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.hm-step { display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; min-width: 0; }
.hm-step + .hm-step::before { content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.hm-step.is-done::before, .hm-step.is-cur::before { background: var(--teal) !important; }
.hm-step i { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--line); background: var(--graphite-2); }
.hm-step.is-done i { background: var(--teal); border-color: var(--teal); }
.hm-step.is-done i::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hm-step.is-cur i { border-color: var(--amber); border-width: 5px; }
.hm-step small { font-size: 11.5px; color: var(--text-dim); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hm-step.is-cur small { color: var(--text); font-weight: 600; }

/* =========================================================
   v1.9.40 — αρχική: ήσυχη, τυπογραφική, σαν εργαλείο
   ========================================================= */
.hm-head { align-items: flex-end; margin: 4px 0 24px; gap: 14px 24px; }
.hm-hello h1 { margin: 0 0 6px; font-size: clamp(24px, 1.2vw + 12px, 30px); font-weight: 600; letter-spacing: -.015em; }
.hm-hello .hm-sub { margin: 0; font-size: 14.5px; color: var(--text-dim); max-width: 70ch; }
.hm-date { color: var(--text); font-weight: 500; }
.hm-date::after { content: "·"; margin: 0 8px; color: var(--text-dim); font-weight: 400; }
.hm-head__r { display: flex; align-items: center; gap: 18px; }
.hm-view { display: flex; gap: 18px; }
.hm-view a { position: relative; padding: 6px 0; font-size: 14px; font-weight: 500; color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.hm-view a:hover { color: var(--text); }
.hm-view a.is-on { color: var(--text); }
.hm-view a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--amber); }
.hm-cust__btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--text-dim); font: inherit; font-size: 13.5px; cursor: pointer; }
.hm-cust__btn:hover, .hm-cust__btn[aria-expanded="true"] { color: var(--text); border-color: var(--text-dim); }

/* Αριθμοί: μία λωρίδα, όχι τέσσερις κάρτες */
.hm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--graphite-2); overflow: hidden; }
.hm-kpi { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 15px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text); text-decoration: none; min-width: 0; }
.hm-kpi + .hm-kpi { border-left: 1px solid var(--line); }
.hm-kpi:hover { background: var(--graphite-3); }
.hm-kpi__l { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-kpi__v { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.hm-kpi__v b { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.hm-kpi__d { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-kpi__d--up { color: var(--amber-text); }
.hm-kpi__d--down { color: #0E7A70; }
:root:not([data-theme="light"]) .hm-kpi__d--down { color: var(--teal); }

/* Κάρτες: επικεφαλίδα με λεπτή γραμμή, χωρίς εικονίδια */
.hm-grid, .hm-col { gap: 18px; }
.hm-card { padding: 0 18px 8px; border-radius: 10px; box-shadow: none; }
.hm-card__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -18px 4px; padding: 13px 18px 12px; border-bottom: 1px solid var(--line); }
.hm-card__h h3 { display: flex; align-items: baseline; gap: 8px; margin: 0; min-width: 0; font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; }
.hm-card__h a, .hm-card__h .hm-edit { font-size: 13px; color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.hm-card__h a:hover { color: var(--amber-text); }
.hm-n { font-size: 13px; font-weight: 500; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.hm-empty { margin: 14px 0 12px; font-size: 14px; }

/* Προτεραιότητες: λίστα με την προθεσμία μπροστά */
.hm-pq { list-style: none; margin: 0 -18px; padding: 0; }
.hm-pq li + li { border-top: 1px solid var(--line); }
.hm-pq a { display: grid; grid-template-columns: 128px minmax(0, 1fr) minmax(0, 150px) 104px; align-items: center; gap: 18px; padding: 12px 18px; color: var(--text); text-decoration: none; }
.hm-pq--mine a { grid-template-columns: 128px minmax(0, 1fr) 104px; }
.hm-pq a:hover { background: var(--graphite-3); }
.hm-pq__due { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-due--flag { color: var(--flag); font-weight: 600; }
.hm-due--dim { color: var(--text-dim); }
.hm-pq__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hm-pq__s { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 14.5px; font-weight: 500; }
.hm-pq__s > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-pq a:hover .hm-pq__s > span { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.hm-pq__t small { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-pq__t small .mono { font-size: 12px; }
.hm-urg { flex: none; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--flag); }
.hm-pq__who { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-pq__who em { font-style: normal; color: var(--text-dim); }
.hm-pq__st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.hm-pq__st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); flex: none; }
.hm-st--open::before { background: var(--info); }
.hm-st--in_progress::before { background: var(--amber); }
.hm-st--waiting::before, .hm-st--waiting_client::before, .hm-st--pending::before { background: #8E7CC3; }
.hm-pq { container-type: inline-size; }
@container (max-width: 640px) {
    .hm-pq a, .hm-pq--mine a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t st" "due who"; row-gap: 4px; gap: 4px 14px; }
    .hm-pq--mine a { grid-template-areas: "t st" "due due"; }
    .hm-pq__t { grid-area: t; } .hm-pq__st { grid-area: st; } .hm-pq__due { grid-area: due; font-size: 12.5px; } .hm-pq__who { grid-area: who; justify-self: end; font-size: 12.5px; color: var(--text-dim); }
}

/* Σήμερα */
.hm-today { display: flex; flex-direction: column; margin: 0 -18px; }
.hm-today__r { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 11px 18px; margin: 0; border-radius: 0; color: var(--text); text-decoration: none; }
.hm-today__r + .hm-today__r { border-top: 1px solid var(--line); }
.hm-today__r:hover { background: var(--graphite-3); }
.hm-today__time { font-size: 13px; color: var(--text-dim); }
.hm-today .hm-t { font-weight: 500; }

/* Φόρτος & επισκευές μέσα στο νέο πλαίσιο */
.hm-load:first-of-type { padding-top: 12px; }
.hm-rep { margin: 14px 0 10px; }
.hm-rep__c { border-radius: 9px; }

@media (max-width: 900px) {
    .hm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-kpi:nth-child(3) { border-left: 0; }
    .hm-kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
    .hm-head { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
    .hm-head__r { width: 100%; justify-content: space-between; }
    .hm-cust__btn span { display: none; }
    .hm-cust__btn { width: 36px; justify-content: center; padding: 0; }
    .hm-kpi { padding: 13px 14px; }
    .hm-kpi__v { flex-direction: column; align-items: flex-start; gap: 4px; }
    .hm-kpi__v b { font-size: 26px; }
    .hm-card { padding: 0 16px 6px; }
    .hm-card__h { margin: 0 -16px 4px; padding: 12px 16px 11px; }
    .hm-pq, .hm-today { margin: 0 -16px; }
    .hm-pq a, .hm-today__r { padding-left: 16px; padding-right: 16px; }
}
.hm-hello .hm-sub { max-width: none; }
.hm-kpi__d { font-family: var(--font-body); letter-spacing: 0; }
.hm-pq a { grid-template-columns: 128px minmax(0, 1fr) minmax(0, 150px) 132px; }
.hm-pq--mine a { grid-template-columns: 128px minmax(0, 1fr) 132px; }
.hm-card .hm-row { padding: 11px 0; gap: 12px; }
.hm-card .hm-row + .hm-row { border-top: 1px solid var(--line); }
.hm-card .hm-t { font-size: 14.5px; font-weight: 500; }
.hm-card .hm-m { font-size: 12.5px; }
.hm-card .hm-tag { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; white-space: nowrap; }
.hm-card .hm-dot { width: 7px; height: 7px; flex-basis: 7px; }
.hm-load { font-size: 14px; }
.hm-rep .status-pill { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 7px; }
@container (max-width: 640px) {
    .hm-pq a, .hm-pq--mine a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t t" "due st"; gap: 6px 14px; }
    .hm-pq__who { display: none; }
    .hm-pq__st { justify-self: end; font-size: 12.5px; }
}

/* =========================================================
   v1.9.41 — πάνω μπάρα: άμεσα links με εικονίδια + Εργαλεία / Διαχείριση
   ========================================================= */
@media (min-width: 721px) {
    .topnav__nav--v2 { align-items: center; gap: 4px; }
    .topnav__nav--v2 .tn-g { align-items: center; height: 100%; }
    .topnav__nav--v2 .tn-b { height: 38px; padding: 0 12px; gap: 8px; border-radius: 9px; font-size: 14.5px; color: var(--text); }
    .topnav__nav--v2 .tn-b svg { color: var(--text-dim); flex: none; transition: color .15s, transform .2s; }
    .topnav__nav--v2 .tn-b:hover { background: var(--graphite-3); }
    .topnav__nav--v2 .tn-b.is-active { background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--text); font-weight: 600; }
    [data-theme="light"] .topnav__nav--v2 .tn-b.is-active { background: #FBE3B8; color: #3A2A0E; }
    .topnav__nav--v2 .tn-b.is-active svg { color: var(--amber-text); }
    [data-theme="light"] .topnav__nav--v2 .tn-b.is-active svg { color: #3A2A0E; }
    .topnav__nav--v2 .tn-b.is-active::after { display: none; }
    .tn-g.is-open > .tn-b { background: var(--graphite-3); }
    .tn-g.is-open > .tn-b svg, .topnav__nav--v2 .tn-b svg { transform: none; }
    .tn-g.is-open > .tn-b svg:last-child { transform: rotate(180deg); }
    .tn-sep { width: 1px; height: 24px; background: var(--line); margin: 0 8px; flex: none; }
    .tn-menu--sec { width: 380px; }
    .tn-sec { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
    .tn-sec:first-child { padding-top: 4px; }
}
@media (min-width: 721px) and (max-width: 1499px) {
    .topnav__in { gap: 12px; padding: 0 24px; }
    .tn-search { width: 40px !important; padding: 0 !important; justify-content: center; }
    .tn-search span, .tn-search kbd { display: none !important; }
}
@media (min-width: 721px) and (max-width: 1199px) {
    .topnav__nav--v2 .tn-b > svg:first-child { display: none; }
    .topnav__nav--v2 .tn-g .tn-b > svg:first-child { display: none; }
    .topnav__nav--v2 .tn-b { padding: 0 10px; }
    .tn-sep { margin: 0 4px; }
}
.tk-top__sel--who { gap: 8px; }
.tk-av { display: inline-flex; flex: none; }
.tk-av[hidden] { display: none; }
.tk-av > svg { color: var(--text-dim); }
.trow__pri[data-qa], [data-qa^="pr|"] { cursor: pointer; border-radius: 6px; }
.trow__pri[data-qa]:hover { background: var(--graphite-3); box-shadow: 0 0 0 4px var(--graphite-3); }
/* v1.9.41: λίστα αιτημάτων σε laptop (1001–1279px) — κρύβεται το «Σύστημα» για να χωράει το θέμα */
@media (min-width: 1001px) and (max-width: 1279px) {
    .ttable:not(.ttable--done) .trow { grid-template-columns: 112px minmax(0, 1fr) 150px 140px 112px 132px 52px; }
    .ttable:not(.ttable--done) .trow__sys { display: none; }
}
/* v1.9.41: η πάνω μπάρα πάντα σε σειρά (όχι κεντραρισμένο grid), για να μη πέφτει πάνω στην αναζήτηση */
@media (min-width: 721px) {
    .topnav__in { display: flex; }
    .topnav__nav--v2 { margin-left: 12px; }
    .topnav__right { margin-left: auto; }
}
@media (min-width: 721px) and (max-width: 1599px) {
    .tn-search { width: 40px !important; padding: 0 !important; justify-content: center; }
    .tn-search span, .tn-search kbd { display: none !important; }
}

/* =========================================================
   v1.9.42 — αρχική πιστή στο mockup + μενού με υπογράμμιση
   ========================================================= */
/* Μενού: η τρέχουσα σελίδα με πορτοκαλί κείμενο και γραμμή, όχι γεμάτο φόντο */
@media (min-width: 721px) {
    .topnav__nav--v2 { height: 100%; align-items: stretch; }
    .topnav__nav--v2 > .tn-b, .topnav__nav--v2 .tn-g > .tn-b { height: 100%; border-radius: 0; padding: 0 11px; background: none !important; font-weight: 500; }
    .topnav__nav--v2 .tn-g { height: 100%; }
    .topnav__nav--v2 .tn-b:hover { color: var(--text); }
    .topnav__nav--v2 .tn-b:hover svg { color: var(--text); }
    .topnav__nav--v2 .tn-b.is-active, [data-theme="light"] .topnav__nav--v2 .tn-b.is-active { background: none; color: #A35E00; font-weight: 600; }
    .topnav__nav--v2 .tn-b.is-active svg, [data-theme="light"] .topnav__nav--v2 .tn-b.is-active svg { color: #A35E00; }
    :root:not([data-theme="light"]) .topnav__nav--v2 .tn-b.is-active, :root:not([data-theme="light"]) .topnav__nav--v2 .tn-b.is-active svg { color: var(--amber); }
    .topnav__nav--v2 .tn-b.is-active::after { display: block; content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--amber); }
    .tn-g.is-open > .tn-b { background: none !important; color: var(--text); }
    .tn-sep { align-self: center; }
}

/* Κεφαλίδα */
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin: 2px 0 18px; }
.hm-hello h1 { margin: 0 0 6px; font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.hm-date { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; color: var(--text-dim); }
.hm-date svg { flex: none; }
.hm-head__r { display: flex; align-items: center; gap: 8px; }
.hm-seg2 { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--graphite-2); }
.hm-seg2 a { height: 30px; padding: 0 16px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; }
.hm-seg2 a.is-on { background: color-mix(in srgb, var(--amber) 18%, transparent); color: #8A5000; font-weight: 600; }
:root:not([data-theme="light"]) .hm-seg2 a.is-on { color: var(--amber); }
.hm-cust__btn { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 8px; background: var(--graphite-2); }
.hm-cust__btn span { display: none; }

/* Αριθμοί: αριθμός πάνω, ετικέτα κάτω */
.hm-kpis { border-radius: 8px; margin: 0 0 22px; }
.hm-kpi { position: relative; gap: 4px; padding: 14px 24px 15px; border-left: 0 !important; }
.hm-kpi + .hm-kpi::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.hm-kpi__n { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.hm-kpi .hm-kpi__l { font-size: 13px; color: var(--text-dim); }
.hm-kpi:hover { background: var(--graphite-3); }

/* Κάρτες */
.hm-grid, .hm-col { gap: 22px; }
.hm-card { border-radius: 8px; }
.hm-card__h { padding: 15px 18px 14px; }
.hm-card__h h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; align-items: baseline; gap: 10px; }
.hm-card__h .hm-n { font-family: var(--font-body); font-size: 12.5px; font-weight: 400; color: var(--text-dim); }
.hm-card__h a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.hm-card__h .hm-dim { font-size: 12.5px; color: var(--text-dim); }
.hm-ini { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--graphite-3); border: 1px solid var(--line); color: var(--text-dim); font: 600 10px/1 var(--font-body); font-style: normal; letter-spacing: .02em; box-sizing: border-box; }

/* Χωρίς πλαίσιο: ο τίτλος έξω, το περιεχόμενο σε δικά του κουτιά */
.hm-card--bare { padding: 0; background: none; border: 0; box-shadow: none; }
.hm-card--bare > .hm-card__h { margin: 0 0 10px; padding: 0; border: 0; }
.hm-box { background: var(--graphite-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 18px; }

/* Προτεραιότητες: πίνακας */
.hm-tb { margin: -4px -18px 0; container-type: inline-size; }
.hm-tb__r { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .95fr) minmax(0, 1.15fr); align-items: center; gap: 14px; padding: 9px 18px; color: var(--text); text-decoration: none; font-size: 13px; }
.hm-tb--mine .hm-tb__r { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, .95fr) minmax(0, 1.15fr); }
a.hm-tb__r + a.hm-tb__r { border-top: 1px solid var(--line); }
.hm-tb__r--h { padding-top: 10px; padding-bottom: 9px; font-size: 12px; color: var(--text-dim); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--graphite-3) 45%, transparent); }
a.hm-tb__r:hover { background: var(--graphite-3); }
.hm-tb__r > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-tb__t { display: flex; flex-direction: column; gap: 2px; }
.hm-tb__t small { font-size: 11px; color: var(--text-dim); letter-spacing: .01em; }
.hm-tb__t b { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.hm-tb__c { color: var(--text-dim); }
.hm-tb__who { display: flex; align-items: center; gap: 8px; }
.hm-tb__who > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.hm-tb__st { display: inline-flex !important; align-items: center; gap: 7px; font-size: 12.5px; }
.hm-tb__st i { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--text-dim); }
.hm-tone--info i { background: var(--info); } .hm-tone--amber i { background: var(--amber); } .hm-tone--dim i { background: #8A96A6; }
.hm-tb__pr { display: inline-flex !important; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-dim); }
.hm-tb__pr svg { flex: none; }
.hm-pr--urgent { color: var(--flag); font-weight: 600; }
.hm-pr--high { color: #B4650A; }
:root:not([data-theme="light"]) .hm-pr--high { color: var(--amber); }
.hm-tb__due { display: inline-flex !important; align-items: center; gap: 6px; font-size: 12.5px; }
.hm-tb__due.is-late { color: var(--flag); font-weight: 600; }
.hm-tb__due svg { flex: none; }
@container (max-width: 760px) {
    .hm-tb__r, .hm-tb--mine .hm-tb__r { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t t" "st due" "pr who"; gap: 6px 12px; padding: 12px 18px; }
    .hm-tb__r--h { display: none; }
    .hm-tb__t { grid-area: t; } .hm-tb__c { display: none; } .hm-tb__st { grid-area: st; } .hm-tb__due { grid-area: due; justify-self: end; } .hm-tb__pr { grid-area: pr; } .hm-tb__who { grid-area: who; justify-self: end; }
    .hm-tb--mine .hm-tb__r { grid-template-areas: "t t" "st due" "pr pr"; }
}

/* Σήμερα */
.hm-today__r { grid-template-columns: 52px 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 13px 18px; }
.hm-today__time { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; line-height: 1.35; }
.hm-today__ic { display: inline-flex; color: var(--text-dim); padding-top: 1px; }
.hm-today .hm-t { font-size: 13.5px; font-weight: 500; }
.hm-today .hm-m { font-size: 12px; }

/* Φόρτος ομάδας */
.hm-warn { display: flex; align-items: center; gap: 7px; margin: 12px 0 2px; font-size: 12.5px; color: #8A5000; }
:root:not([data-theme="light"]) .hm-warn { color: var(--amber); }
.hm-warn svg { flex: none; }
.hm-load2 { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; }
.hm-load2 + .hm-load2 { border-top: 1px solid var(--line); }
.hm-load2 .hm-ini { width: 30px; height: 30px; font-size: 10.5px; }
.hm-load2__x { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hm-load2__l { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hm-load2__l b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-load2__l span { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
.hm-load2__bar { display: block; height: 4px; border-radius: 2px; background: var(--graphite-3); overflow: hidden; }
.hm-load2__bar u { display: block; height: 100%; border-radius: 2px; background: #8A96A6; }
.hm-load2__bar u.is-top { background: var(--amber); }

/* Λήξεις */
.hm-only { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-dim); white-space: nowrap; }
.hm-ex { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; color: var(--text); text-decoration: none; }
.hm-ex + .hm-ex { border-top: 1px solid var(--line); }
.hm-ex__ic { display: inline-flex; color: var(--text-dim); }
.hm-ex .hm-t { font-size: 13.5px; font-weight: 500; }
.hm-ex .hm-m { font-size: 12px; }
.hm-ex__d { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
.hm-ex__d.is-soon { color: var(--flag); font-weight: 600; }
.hm-ex:hover .hm-t { color: var(--amber-text); }

/* Επισκευές */
.hm-rep { margin: 0; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.hm-rep__c { gap: 22px; padding: 16px 16px 14px; border-radius: 8px; background: var(--graphite-2); }
.hm-rep__top { align-items: flex-start; gap: 10px; }
.hm-rep__ic { width: auto; height: auto; background: none; padding-top: 1px; }
.hm-rep__x b { font-size: 14px; }
.hm-rep__x small { display: flex; gap: 6px; font-size: 12px; }
.hm-rep__x small i { font-style: normal; }
.hm-rep__x small .mono { font-size: 11.5px; }
.hm-step small { font-size: 11px; }

/* Tasks: δύο στήλες, χωρίς γρήγορη προσθήκη στην αρχική */
.hm-card--tasks .tsk-w__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.hm-card--tasks .tsk-w__row { border-top: 0 !important; border-bottom: 1px solid var(--line); padding: 12px 0; }
.hm-card--tasks .tsk-w__row:nth-last-child(-n+2):nth-child(odd), .hm-card--tasks .tsk-w__row:last-child { border-bottom: 0; }
.hm-card--tasks .tsk-w__t b { font-size: 13.5px; font-weight: 400; }
.hm-card--tasks .tsk-w__t small, .hm-card--tasks .tsk-w__add, .hm-card--tasks .tsk-w__note { display: none; }
.hm-card--tasks .tsk-due { font-size: 12px; }
.hm-card--tasks .tsk-w__empty { margin: 12px 0; }

@media (max-width: 900px) { .hm-card--tasks .tsk-w__list { grid-template-columns: minmax(0, 1fr); } .hm-card--tasks .tsk-w__row:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--line); } }
@media (max-width: 720px) {
    .hm-head { flex-direction: row; align-items: flex-end; }
    .hm-hello h1 { font-size: 23px; }
    .hm-head__r { width: 100%; justify-content: space-between; }
    .hm-kpi { padding: 13px 16px; }
    .hm-kpi + .hm-kpi::before { display: none; }
    .hm-kpi__n { font-size: 26px; }
    .hm-card__h h3 { font-size: 16px; }
    .hm-tb { margin: -4px -16px 0; }
    .hm-box { padding: 4px 16px; }
    /* στο κινητό τα γράμματα μένουν όπως ήταν (μεγαλύτερα) */
    .hm-tb__t b, .hm-today .hm-t, .hm-ex .hm-t, .hm-card--tasks .tsk-w__t b { font-size: 15px; }
    .hm-tb__r, .hm-tb__st, .hm-tb__pr, .hm-tb__due { font-size: 13.5px; }
}
@media (max-width: 900px) { .hm-kpi:nth-child(odd)::before { display: none; } .hm-kpi:nth-child(even)::before { display: block; } }
.hm-date::after { content: none !important; }
.hm-tb__r { grid-template-columns: minmax(0, 2.1fr) minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.35fr); }
.hm-tb--mine .hm-tb__r { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.35fr); }
.hm-tb__who .hm-dim { font-size: 12.5px; color: var(--text-dim); }
@container (max-width: 760px) {
    .hm-tb .hm-tb__r, .hm-tb.hm-tb--mine .hm-tb__r { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t t" "st due" "pr who"; gap: 8px 12px; padding: 13px 18px; }
    .hm-tb.hm-tb--mine .hm-tb__r { grid-template-areas: "t t" "st due" "pr pr"; }
}
/* v1.9.43: γρήγορες αλλαγές από τις Προτεραιότητες */
.hm-qa { cursor: pointer; border-radius: 6px; margin: -4px -6px; padding: 4px 6px; transition: background .12s; }
.hm-qa:hover { background: var(--graphite-2); box-shadow: inset 0 0 0 1px var(--line); }
a.hm-tb__r:hover .hm-qa:hover { background: var(--graphite-2); }
.tv-pop__q { display: flex; gap: 6px; padding: 4px 6px 8px; }
.tv-pop__q button { width: auto; flex: 1; justify-content: center; padding: 7px 8px; border: 1px solid var(--line) !important; border-radius: 8px; font-size: 12.5px; white-space: nowrap; }
.tv-pop__dt { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 6px; padding: 0 6px 8px; }
.tv-pop__dt input { height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--graphite); color: var(--text); font: inherit; font-size: 13px; min-width: 0; box-sizing: border-box; }
.tv-pop button.tv-pop__ok { justify-content: center; margin: 0 6px 4px; width: calc(100% - 12px); background: var(--amber); color: #1B1300; font-weight: 600; }
.tv-pop button.tv-pop__ok:hover { background: var(--amber); filter: brightness(1.05); }
.tv-pop:has(.tv-pop__dt) { width: 300px; }

/* =========================================================
   v1.9.43 — σελίδα επισκευής
   ========================================================= */
.rph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 20px; }
.rp-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; font-size: 13px; color: var(--text-dim); text-decoration: none; }
.rp-back:hover { color: var(--text); }
.rph h1 { margin: 0 0 6px; font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.rp-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; font-size: 13.5px; color: var(--text-dim); }
.rp-sub i { font-style: normal; opacity: .6; }
.rp-sub .mono { font-size: 12.5px; color: var(--text); }
.rph__r { display: flex; gap: 8px; }
.rph__r .btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; }
.rp { display: flex; flex-direction: column; gap: 20px; }
.rp-default { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; padding: 0; }
.rp-card { background: var(--graphite-2); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px 20px; min-width: 0; }
.rp-card h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.rp-dim { font-size: 13px; color: var(--text-dim); }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.rp-main, .rp-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Πρόοδος */
.rp-prog { padding-bottom: 14px; }
.rp-prog__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.rp-prog__h h2 { margin: 0; }
.rp-steps { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.rp-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px 6px; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; border-radius: 8px; min-width: 0; }
.rp-step:disabled { cursor: default; opacity: 1; }
.rp-step + .rp-step::before { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.rp-step.is-done::before, .rp-step.is-cur::before { background: var(--teal) !important; }
.rp-step i { position: relative; z-index: 1; width: 24px; height: 24px; margin-bottom: 6px; border-radius: 50%; border: 2px solid var(--line); background: var(--graphite-2); box-sizing: border-box; transition: border-color .15s; }
.rp-step.is-done i { background: var(--teal); border-color: var(--teal); }
.rp-step.is-done i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rp-step.is-cur i { border-color: var(--amber); border-width: 7px; }
.rp-step b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rp-step.is-cur b { font-weight: 700; }
.rp-step:not(.is-done):not(.is-cur) b { color: var(--text-dim); }
.rp-step small { font-size: 11.5px; color: var(--text-dim); min-height: 15px; white-space: nowrap; }
.rp-step:not(:disabled):hover i { border-color: var(--amber); }
.rp-step:not(:disabled):hover b { color: var(--text); }
.rp-step:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Πεδία */
.rp-problem { width: 100%; min-height: 96px; font-size: 15px; line-height: 1.5; box-sizing: border-box; }
.rp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.rp-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.rp-f > span { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 500; color: var(--text-dim); text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.rp-f > span a { color: var(--amber-text); text-decoration: none; font-weight: 500; }
.rp-f input, .rp-f select { width: 100%; height: 42px; box-sizing: border-box; margin: 0; }
.rp-f--wide { grid-column: 1 / -1; }
.rp-side textarea { width: 100%; min-height: 140px; box-sizing: border-box; }
.rp-save { width: 100%; justify-content: center; margin-top: 12px; height: 42px; }
.rp-dl { margin: 0; }
.rp-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.rp-dl > div:first-child { border-top: 0; padding-top: 0; }
.rp-dl dt { color: var(--text-dim); }
.rp-dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.rp-dl dd.mono { font-size: 12.5px; }
.rp-st { display: inline-flex; align-items: center; gap: 7px; }
.rp-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); }
.rp-st--in_progress i { background: var(--info); } .rp-st--ready i { background: var(--teal); } .rp-st--delivered i { background: #8A96A6; } .rp-st--pending i { background: var(--amber); }
.rp-guides { display: flex; flex-direction: column; }
.rp-guides a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; }
.rp-guides a:first-child { border-top: 0; padding-top: 0; }
.rp-guides a svg { color: var(--text-dim); flex: none; }
.rp-guides a span { flex: 1; min-width: 0; }
.rp-guides a:hover span { color: var(--amber-text); }

@media (max-width: 1100px) { .rp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
    .rph h1 { font-size: 23px; }
    .rph__r { width: 100%; }
    .rph__r .btn { flex: 1; justify-content: center; }
    .rp-card { padding: 16px; }
    .rp-fields { grid-template-columns: minmax(0, 1fr); }
    .rp-step b { font-size: 12px; white-space: normal; text-align: center; line-height: 1.25; }
    .rp-step small { display: none; }
}

/* =========================================================
   v1.9.44 — παραλαβή, κόστος, ενημερώσεις πελάτη
   ========================================================= */
.rn { display: flex; flex-direction: column; gap: 18px; max-width: 980px; }
.rn-actions { display: flex; gap: 10px; }
.ri { display: flex; flex-direction: column; gap: 16px; }
.ri-row { display: grid; gap: 14px 16px; align-items: start; }
.ri-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ri-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ri-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ri textarea, .rn textarea { width: 100%; box-sizing: border-box; margin: 0; }
.ri fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ri legend { padding: 0; margin: 0 0 6px; font-size: 12.5px; font-weight: 500; color: var(--text-dim); }
.ri-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--graphite); }
.ri-seg label { position: relative; margin: 0; cursor: pointer; }
.ri-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ri-seg span { display: flex; align-items: center; justify-content: center; height: 34px; padding: 0 8px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--text-dim); white-space: nowrap; text-transform: none; letter-spacing: 0; }
.ri-seg input:checked + span { background: var(--graphite-2); color: var(--text); box-shadow: 0 1px 2px rgba(16,24,40,.12), 0 0 0 1px var(--line); font-weight: 600; }
.ri-seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 1px; }
.ri-hint { margin: -6px 0 0; font-size: 12px; color: var(--text-dim); }
.ri-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ri-chip { position: relative; margin: 0; cursor: pointer; }
.ri-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ri-chip span { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--graphite-2); font-size: 13.5px; color: var(--text); text-transform: none; letter-spacing: 0; }
.ri-chip span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--text-dim); box-sizing: border-box; }
.ri-chip input:checked + span { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 10%, var(--graphite-2)); }
.ri-chip input:checked + span::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/10px no-repeat; border-color: var(--teal); }
.ri-chip input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 1px; }
.ri-other { flex: 1 1 160px; min-width: 140px; height: 36px !important; margin: 0 !important; }
.ri-eur { position: relative; display: block; }
.ri-eur input { width: 100%; padding-right: 30px !important; box-sizing: border-box; }
.ri-eur i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: var(--text-dim); pointer-events: none; }
.rp-f > span.ri-eur { display: block; font-size: inherit; color: inherit; }
.rp-card__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rp-card__h h2 { margin: 0; }
.rp-card__f { display: flex; justify-content: flex-end; margin-top: 16px; }
.rp-err { margin: 0 0 12px; font-size: 13px; color: var(--flag); }
.rp-warn { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--flag) 9%, transparent); color: var(--flag); font-size: 13.5px; font-weight: 500; }
.rp-warn svg { flex: none; }

/* Φωτογραφίες */
.rp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.rp-photos figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--graphite-3); }
.rp-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-photos figure form { position: absolute; top: 6px; right: 6px; margin: 0; }
.rp-photos figure button { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(16,21,28,.7); color: #fff; cursor: pointer; padding: 0; }
.rp-upload { margin: 0; aspect-ratio: 1; }
.rp-upload label { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed var(--line); border-radius: 8px; color: var(--text-dim); font-size: 13px; cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; }
.rp-upload label:hover { border-color: var(--amber); color: var(--text); }
.rp-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* Ανταλλακτικά */
.rp-parts { display: flex; flex-direction: column; }
.rp-part { display: grid; grid-template-columns: minmax(0, 1fr) auto 100px 32px; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); margin: 0; }
.rp-part:first-child { border-top: 0; padding-top: 0; }
.rp-part__d { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rp-part__d b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-ord { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 2px 8px; border-radius: 6px; background: var(--graphite-3); color: var(--text-dim); font-size: 11.5px; text-decoration: none; }
.rp-part__q { font-size: 13px; color: var(--text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-part__t { font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.rp-part form { margin: 0; }
.rp-x { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--text-dim); cursor: pointer; padding: 0; }
.rp-x:hover { background: var(--graphite-3); color: var(--flag); }
.rp-part--add { grid-template-columns: minmax(0, 1fr) 64px 120px auto; padding-top: 12px; }
.rp-part--add input { height: 40px; margin: 0 !important; box-sizing: border-box; width: 100%; }
.rp-part--add .btn { height: 40px; }
.rp-n { text-align: center; }
.rp-mko { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 13px; color: var(--text-dim); text-transform: none; letter-spacing: 0; font-weight: 400; cursor: pointer; }
.rp-mko input { width: auto; height: auto; margin: 0; }
.rp-tot { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.rp-tot__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; margin: 0; font-size: 14px; }
.rp-tot__row > span:first-child { color: var(--text-dim); }
.rp-tot__row .ri-eur { width: 130px; }
.rp-tot__row .ri-eur input { height: 38px; text-align: right; margin: 0; }
.rp-tot__row--sum { padding-top: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.rp-tot__row--sum > span:first-child { color: var(--text); }

/* Ενημέρωση πελάτη */
.rp-cform { display: flex; flex-direction: column; gap: 10px; margin: 0 0 6px; }
.ri-seg--wide { width: 100%; box-sizing: border-box; }
.rp-cform__r { display: flex; gap: 10px; }
.rp-cform__r input { flex: 1; height: 40px; margin: 0 !important; min-width: 0; box-sizing: border-box; }
.rp-cform__r .btn { height: 40px; }
.rp-log { list-style: none; margin: 10px 0 0; padding: 0; }
.rp-log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.rp-oc { font-size: 12px; font-weight: 600; white-space: nowrap; }
.rp-oc--approved { color: #0E7A70; } .rp-oc--declined { color: var(--flag); } .rp-oc--informed { color: var(--info); } .rp-oc--no_answer { color: var(--text-dim); }
:root:not([data-theme="light"]) .rp-oc--approved { color: var(--teal); }
.rp-log__t { min-width: 0; overflow-wrap: anywhere; }
.rp-log__m { font-size: 12px; color: var(--text-dim); white-space: nowrap; }

@media (max-width: 1100px) { .ri-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
    .ri-row--2, .ri-row--3, .ri-row--4 { grid-template-columns: minmax(0, 1fr); }
    .rp-part { grid-template-columns: minmax(0, 1fr) auto 32px; }
    .rp-part__q { grid-column: 1; grid-row: 2; }
    .rp-part__t { grid-column: 2; grid-row: 1 / 3; }
    .rp-part form { grid-column: 3; grid-row: 1 / 3; }
    .rp-part--add { grid-template-columns: minmax(0, 1fr) 70px; }
    .rp-part--add input[name=description] { grid-column: 1 / -1; }
    .rp-part--add .btn { grid-column: 1 / -1; }
    .ri-seg span { font-size: 12.5px; padding: 0 4px; }
    .ri-seg--wide { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
    .rp-log li { grid-template-columns: auto minmax(0, 1fr); }
    .rp-log__m { grid-column: 1 / -1; }
    .rn-actions .btn { flex: 1; justify-content: center; }
}
.ri-chip span, .ri-seg span, .rp-mko { font-weight: 500; }

/* v1.9.45: μετρητές στο μενού */
.tn-cnt { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 2px; border-radius: 10px; background: var(--graphite-3); color: var(--text); font: 600 11px/1 var(--font-body); font-variant-numeric: tabular-nums; box-sizing: border-box; }
.tn-cnt.is-hot { background: var(--flag); color: #fff; }
.tabbar__badge { background: #5A6572; color: #fff; }
.tabbar__badge.is-hot { background: var(--flag); }

/* v1.9.45: πεδία παραλαβής ευθυγραμμισμένα σε κάθε πλάτος (και στο γρήγορο popup) */
.ri { container-type: inline-size; }
.ri-row { align-items: end; }
.ri-row .rp-f > span:first-child, .ri legend { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 18px; line-height: 18px; }
.ri-row .rp-f { gap: 6px; }
.ri-row input, .ri-row select, .ri-seg { height: 42px; box-sizing: border-box; }
.ri-seg { padding: 3px; align-items: stretch; }
.ri-seg span { height: 100%; }
.ri-tri legend { margin-bottom: 6px; }
.ri-chip span::before { flex: none; }
.ri-other { height: 36px !important; }
.ri .ri-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ri .ri-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ri .ri-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container (max-width: 760px) {
    .ri .ri-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 520px) {
    .ri .ri-row--2, .ri .ri-row--3, .ri .ri-row--4 { grid-template-columns: minmax(0, 1fr); }
}
.ri-chip input, .ri-seg input { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; pointer-events: none; appearance: none; -webkit-appearance: none; }
.ri-hint { margin: 0; }
/* v1.9.46: φαρδύτερο popup γρήγορης δημιουργίας */
@media (min-width: 721px) { .qn__dlg { width: min(880px, 100%); } }
.nt__opt { font-weight: 400; color: var(--text-dim); font-size: 12px; margin-left: 4px; }
/* v1.9.46: λίστα αιτημάτων — το θέμα δεν τρώει όλο το πλάτος, οι στήλες έρχονται πιο κοντά */
@media (min-width: 1280px) {
    .ttable:not(.ttable--done) .trow { grid-template-columns: 112px minmax(240px, 2.2fr) minmax(130px, 1fr) minmax(130px, 1fr) 156px 124px minmax(140px, .9fr) 64px; }
    .ttable--done .trow { grid-template-columns: 112px minmax(240px, 2.4fr) minmax(130px, 1fr) minmax(130px, 1fr) 84px 104px; }
}
/* v1.9.48: προαιρετικός κρυπτογραφημένος κωδικός συσκευής */
.ri-pw { display: none; gap: 8px; }
.ri:has(input[name="has_password"][value="1"]:checked) .ri-pw { display: grid; }
.ri-opt { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--text-dim); margin-left: 6px; }
.ri-pw .rp-f > span:first-child { white-space: normal; }
.ri-pw input { height: 42px; box-sizing: border-box; }
.ri-pwdel { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 400; color: var(--text-dim); text-transform: none; letter-spacing: 0; cursor: pointer; }
.ri-pwdel input { width: auto; height: auto; margin: 0; }
.rp-pw { display: inline-flex; align-items: center; gap: 8px; }
.rp-pw__v { font-family: var(--font-mono); font-size: 13px; background: var(--graphite-3); padding: 2px 8px; border-radius: 6px; user-select: all; }
.rp-pw__b { border: 1px solid var(--line); background: var(--graphite-2); color: var(--text); border-radius: 6px; padding: 3px 9px; font: inherit; font-size: 12px; cursor: pointer; }
.rp-pw__b:hover { border-color: var(--amber); }
