/* Micronest Balances — UI */
:root {
    --sidebar-bg: #101826;
    --sidebar-bg2: #0b1220;
    --sidebar-text: #9fb0c7;
    --sidebar-active: #14b8a6;
    --bg: #f3f5f8;
    --card: #ffffff;
    --border: #e3e8ef;
    --text: #1c2634;
    --muted: #64748b;
    --primary: #0d9488;
    --primary-h: #0f766e;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --success: #059669;
    --success-bg: #ecfdf5;
    --warn-bg: #fffbeb;
    --warn: #b45309;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 38, .05), 0 1px 3px rgba(16, 24, 38, .06);
    --side-w: 240px;
    --side-w-collapsed: 66px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.sidebar {
    width: var(--side-w);
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg2) 100%);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: width .22s ease;
    z-index: 40;
}

/* Κεφαλή: όνομα εφαρμογής + έκδοση + κουμπί σύμπτυξης */
.side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 14px 14px 18px;
}

.brand-wrap { min-width: 0; }

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
}

.brand .dot {
    width: 11px; height: 11px;
    border-radius: 4px;
    background: var(--sidebar-active);
    box-shadow: 0 0 12px rgba(20, 184, 166, .8);
    flex-shrink: 0;
}

.brand-name { overflow: hidden; text-overflow: ellipsis; }
.brand-ver { font-size: 11px; color: var(--sidebar-text); margin-top: 2px; padding-left: 20px; }

.side-collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    flex-shrink: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--sidebar-text);
    cursor: pointer;
}
.side-collapse:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.side-collapse .ico { transition: transform .22s ease; }

.ico { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Μενού ---------- */
.side-nav { flex: 1; padding: 4px 10px; overflow-y: auto; }

.side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 2px;
    border-radius: 8px;
    color: var(--sidebar-text);
    font-weight: 500;
    white-space: nowrap;
}
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.side-link.on { background: rgba(20, 184, 166, .15); color: #5eead4; }
.side-link .label { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Κάτω τμήμα: γλώσσα / προφίλ / έξοδος ---------- */
.side-foot {
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.lang-switch { display: flex; gap: 5px; flex-wrap: wrap; padding: 2px 2px 8px; }
.lang-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border-radius: 6px;
    color: var(--sidebar-text);
    line-height: 0;
}
.lang-opt:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.lang-opt.on { background: rgba(255, 255, 255, .14); }
.lang-opt .flag { border-radius: 2px; display: block; }

.who {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--sidebar-text);
    min-width: 0;
}
.who:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.who:hover .who-name { color: #fff; }
.who-text { min-width: 0; display: flex; flex-direction: column; }
.who-name {
    color: #e6ecf5;
    font-size: 13.5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.who-sub { font-size: 11.5px; color: var(--sidebar-text); }

.side-link.logout { margin-top: 2px; }
.side-link.logout:hover { background: rgba(220, 38, 38, .18); color: #fca5a5; }

/* ---------- Σύμπτυξη (html.nav-collapsed) ---------- */
.nav-collapsed .sidebar { width: var(--side-w-collapsed); }
.nav-collapsed .brand-wrap,
.nav-collapsed .side-link .label,
.nav-collapsed .who-text { display: none; }
.nav-collapsed .side-head { justify-content: center; padding: 14px 0 10px; }
.nav-collapsed .side-link { justify-content: center; gap: 0; padding: 10px 0; }
.nav-collapsed .who { justify-content: center; padding: 8px 0; }
.nav-collapsed .side-collapse .ico { transform: rotate(180deg); }
.nav-collapsed .lang-switch { flex-direction: column; align-items: center; gap: 4px; }

/* ---------- Κύριο περιεχόμενο (boxed) ---------- */
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 28px 40px;
}

.page-title { font-size: 20px; font-weight: 700; margin: 0 0 18px; }

/* ---------- Mobile topbar / drawer ---------- */
.topbar-mobile {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--sidebar-bg);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
}
.topbar-mobile .brand-name { font-weight: 700; }
.side-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
}

.side-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, .55);
    z-index: 35;
}

@media (max-width: 860px) {
    .sidebar {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        height: 100%;
        width: var(--side-w) !important;
        transform: translateX(-102%);
        transition: transform .22s ease;
    }
    body.side-visible .sidebar { transform: translateX(0); }
    body.side-visible .side-backdrop { display: block; }
    .topbar-mobile { display: flex; }
    .side-collapse { display: none; }
    /* Στο κινητό το μενού είναι πάντα πλήρες */
    .nav-collapsed .brand-wrap,
    .nav-collapsed .side-link .label,
    .nav-collapsed .who-text { display: block; }
    .nav-collapsed .side-head { justify-content: space-between; padding: 16px 14px 14px 18px; }
    .nav-collapsed .side-link { justify-content: flex-start; gap: 10px; padding: 10px 12px; }
    .wrap { padding: 18px 14px 32px; }
}

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    margin-bottom: 18px;
}

.card h2 { margin: 0 0 14px; font-size: 15px; font-weight: 650; }
.card h2 .sub { font-weight: 400; color: var(--muted); font-size: 13px; }

.stat { padding: 16px 18px; margin-bottom: 0; }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 4px; }
.stat .value.pos { color: var(--danger); }   /* οφειλόμενα προς εμάς */
.stat .value.neg { color: var(--success); }
.stat .hint { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table.data th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--muted);
    font-weight: 600;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

table.data td {
    padding: 9px 10px;
    border-bottom: 1px solid #eef1f5;
    vertical-align: middle;
}

table.data tr:hover td { background: #f8fafc; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tfoot td { font-weight: 700; border-top: 2px solid var(--border); }

.amount-debt { color: var(--danger); font-weight: 600; }
.amount-payment { color: var(--success); font-weight: 600; }

.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge.debt { background: var(--danger-bg); color: var(--danger); }
.badge.payment { background: var(--success-bg); color: var(--success); }
.badge.gray { background: #f1f5f9; color: var(--muted); }
.badge.green { background: var(--success-bg); color: var(--success); }
.badge.red { background: var(--danger-bg); color: var(--danger); }
.badge.amber { background: var(--warn-bg); color: var(--warn); }

/* ---------- Forms ---------- */
label.fl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #334155; }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], select, textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--text);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, .15);
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: 0; }
.help { font-size: 12px; color: var(--muted); margin-top: 3px; }

.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none !important;
}
.btn:hover { background: var(--primary-h); }
.btn.secondary { background: #fff; border-color: #cbd5e1; color: #334155; }
.btn.secondary:hover { background: #f8fafc; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b91c1c; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.ghost-danger { background: transparent; color: var(--danger); border-color: transparent; padding: 5px 8px; }
.btn.ghost-danger:hover { background: var(--danger-bg); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Alerts ---------- */
.alert {
    padding: 11px 15px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: #065f46; border-color: #a7f3d0; }
.alert-danger { background: var(--danger-bg); color: #991b1b; border-color: #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }

/* ---------- Auth pages ---------- */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0b1220 0%, #101826 55%, #123 100%);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 14px;
    padding: 30px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.auth-card .brand { color: var(--text); padding: 0 0 8px; }
.auth-card h1 { font-size: 19px; margin: 0 0 18px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .btn { width: 100%; justify-content: center; }
.auth-foot { margin-top: 14px; font-size: 13px; text-align: center; color: var(--muted); }

/* ---------- Misc ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 17px; }

.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filters input[type=text], .filters select { width: auto; min-width: 170px; }

.balance-hero { display: flex; align-items: baseline; gap: 10px; }
.balance-hero .big { font-size: 30px; font-weight: 800; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }

details.audit summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
details.audit { margin-top: 10px; }

.chart-box { position: relative; height: 280px; }

/* ---------- Print (καρτέλα πελάτη) ---------- */
@media print {
    body { background: #fff; }
    .no-print { display: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .grid.cols-4, .grid.cols-3, .grid.cols-2, .form-grid { grid-template-columns: 1fr; }
}

/* Σημαίες στη σελίδα σύνδεσης (ανοιχτό φόντο) */
.lang-switch--login { justify-content: center; padding: 12px 0 0; }
.lang-switch--login .lang-opt { color: var(--muted); }
.lang-switch--login .lang-opt:hover { background: var(--bg); }
.lang-switch--login .lang-opt.on { background: var(--border); }

/* Ανενεργά κανάλια αποστολής */
.check.is-disabled { opacity: .5; cursor: not-allowed; }
.check.is-disabled input { cursor: not-allowed; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 16px 0 12px; }

/* v1.3.0 — τίτλοι ενοτήτων στον ενιαίο πίνακα (admin) */
.section-title { font-size: 16px; font-weight: 700; color: var(--text); }

/* =========================================================================
   v1.4.0 — Νέο layout (Claude Design: 1b hero + 1c worklist + 2b καρτέλα)
   Μόνο δομή/διάταξη — παλέτα & τυπογραφία παραμένουν οι υπάρχουσες.
   ========================================================================= */

/* ---------- Hero grid (πίνακας ελέγχου) ---------- */
.hero-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 16px;
    margin-bottom: 18px;
    align-items: stretch;
}

.hero-panel {
    background: linear-gradient(160deg, var(--sidebar-bg) 0%, var(--sidebar-bg2) 100%);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hero-panel .kicker {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sidebar-active);
    font-weight: 600;
}
.hero-panel .big {
    font-size: clamp(36px, 4.2vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}
.hero-panel .sub { font-size: 13px; color: var(--sidebar-text); }
.hero-panel .hero-actions {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn.inverse { background: #fff; color: var(--sidebar-bg); }
.btn.inverse:hover { background: #e6ecf5; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.outline-light:hover { background: rgba(255, 255, 255, .08); }

.hero-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero-side .stat { display: flex; flex-direction: column; justify-content: center; }
.stat .value.xl { font-size: 32px; }

/* Οριζόντια κάρτα κατάστασης (μηνιαία ειδοποίηση) */
.notice-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
    padding: 14px 18px;
}
.notice-row .ico { width: 20px; height: 20px; color: var(--primary); }
.notice-row .nr-title { font-size: 14px; font-weight: 600; }
.notice-row .nr-sub { font-size: 12.5px; color: var(--muted); }
.notice-row .nr-action { margin-left: auto; flex-shrink: 0; }

/* ---------- Worklist (πελάτες με ανοιχτό υπόλοιπο) ---------- */
.worklist-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.worklist-head h2 { margin: 0; font-size: 15px; }
.worklist-head .search { max-width: 300px; margin-left: auto; }
.worklist-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}
.worklist-foot .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
table.data td.chk, table.data th.chk { width: 34px; }
table.data input[type=checkbox] { width: auto; }

/* ---------- Καρτέλα πελάτη (2b) ---------- */
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

.customer-head {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 16px;
    margin-bottom: 18px;
    align-items: stretch;
}
.customer-card { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 0; }
.avatar {
    width: 56px; height: 56px;
    flex: none;
    border-radius: 12px;
    background: rgba(13, 148, 136, .12);
    color: var(--primary-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 21px;
}
.customer-card h2 { margin: 0 0 2px; font-size: 17px; }
.customer-card .company { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 22px;
    font-size: 13.5px;
}
.info-grid .k { color: var(--muted); }
.customer-card .head-action { margin-left: auto; flex-shrink: 0; }

/* ---------- Tabs ---------- */
.tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 6px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    /* χωρίς overflow: το flex-wrap αποτρέπει την οριζόντια/κάθετη μπάρα κύλισης */
}
.tab {
    padding: 11px 16px;
    line-height: 1.2;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.tabs .spacer { flex: 1 1 auto; }
.tabs .btn { align-self: center; margin: 4px 0 4px 12px; flex-shrink: 0; }
.tab-panel { display: none; }
.tab-panel.on { display: block; }

/* ---------- Segmented φίλτρο (Όλες / Οφειλές / Πληρωμές) ---------- */
.seg {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.seg button {
    border: 0;
    background: transparent;
    padding: 6px 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--primary); color: #fff; }

/* Κρυφό πάνελ νέας κίνησης */
.collapse-panel { display: none; }
.collapse-panel.on { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero-grid, .customer-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .hero-side { grid-template-columns: 1fr; }
    .worklist-head .search { max-width: none; margin-left: 0; width: 100%; }
    .customer-card { flex-wrap: wrap; }
    .customer-card .head-action { margin-left: 0; }
    .tabs .btn { margin-left: auto; }
}

/* =========================================================================
   v1.4.3 — Ταξινόμηση στηλών & αναδιοργάνωση σελίδας ρυθμίσεων
   ========================================================================= */

/* ---------- Ταξινομήσιμες κεφαλίδες πινάκων ---------- */
table.data th.sortable { padding: 0; }

table.data th.sortable .th-sort {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    color: inherit;
    font: inherit;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
}
table.data th.sortable.num .th-sort { justify-content: flex-end; }
table.data th.sortable .th-sort:hover { color: var(--text); background: #f1f5f9; text-decoration: none; }
table.data th.sortable .th-sort.on { color: var(--primary); }

table.data th.sortable .caret {
    font-size: 9px;
    line-height: 1;
    opacity: .35;
    transform: translateY(-1px);
}
table.data th.sortable .th-sort.on .caret { opacity: 1; }
table.data th.sortable .th-sort:hover .caret { opacity: .7; }

/* ---------- Ρυθμίσεις: κεφαλίδα κάρτας ---------- */
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.card-head h2 { margin: 0; }

/* Υπότιτλος ενότητας μέσα σε κάρτα */
.sub-head {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    margin: 20px 0 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Γραμμή κουμπιών φόρμας */
.form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* Πλέγμα checkbox επιλογών */
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.opt-row { margin-bottom: 4px; }
.w-lg { max-width: 520px; }

/* Σειρές δοκιμών (δοκιμαστικό SMS / email) */
.test-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 0;
}
.test-row + .test-row { border-top: 1px solid var(--border); }
.test-row:first-of-type { padding-top: 0; }
.test-row:last-of-type { padding-bottom: 0; }
.test-info { min-width: 0; }
.test-title { font-size: 14px; font-weight: 600; }
.test-desc { font-size: 12.5px; color: var(--muted); }
.test-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.test-form input { width: auto; min-width: 190px; }

/* Κάρτες επιλογών (εισαγωγές CSV) */
.opt-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
.opt-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fbfcfe;
}
.opt-item .opt-title { font-size: 14px; font-weight: 650; }
.opt-item .opt-desc { font-size: 12.5px; color: var(--muted); flex: 1; }

/* Μπλοκ κώδικα (cron) */
.code-block {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    overflow-x: auto;
    margin: 0 0 12px;
}

@media (max-width: 760px) {
    .check-grid { grid-template-columns: 1fr; }
    .test-row { align-items: flex-start; }
    .test-form { width: 100%; }
    .test-form input { flex: 1; min-width: 0; }
}

/* Tabs σε επίπεδο σελίδας (ρυθμίσεις) — pill style πάνω σε λευκή λωρίδα */
.tabs.tabs-page {
    background: var(--card);
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 6px;
    gap: 4px;
    margin-bottom: 18px;
}
.tabs.tabs-page .tab {
    padding: 8px 14px;
    border-radius: 8px;
    border-bottom: 0;
    margin-bottom: 0;
}
.tabs.tabs-page .tab:hover { background: #f1f5f9; }
.tabs.tabs-page .tab.on { background: var(--primary); color: #fff; }
