/* admintools · αισθητική ype-dev.aegean.gr (Manrope, navy #091F51, κουμπιά-χάπια) */
:root {
  --navy: #091F51;
  --navy-soft: rgba(9, 31, 81, .25);
  --blue: #2F6AA8;
  --teal: #1E7F8F;
  --ink: #2B3944;
  --muted: #6B7A88;
  --line: rgba(9, 31, 81, .10);
  --bg: #F7F9FC;
  --ok: #1F7A4D;   --ok-bg: #E6F4EC;
  --warn: #9A6200; --warn-bg: #FFF4DE;
  --bad: #B42318;  --bad-bg: #FDECEA;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-text { display: none; font-weight: 800; font-size: 15px; line-height: 1.2; }
.brand.no-logo img { display: none; }
.brand.no-logo .brand-text { display: block; }
.brand img { height: 54px; width: auto; display: block; }
@media (max-width: 640px) { .top-inner { height: 76px; } .brand img { height: 40px; } }
.app-badge { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); background: rgba(47, 106, 168, .08); border: 1px solid rgba(47, 106, 168, .18); padding: 6px 14px; border-radius: 999px; }

/* Hero */
.hero { min-height: calc(100vh - 77px); padding: 56px 0 80px; background:
    radial-gradient(800px 420px at 85% 10%, rgba(47, 106, 168, .10), transparent 70%),
    radial-gradient(600px 360px at 0% 100%, rgba(30, 127, 143, .07), transparent 70%),
    var(--bg); }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .02em; }
h1 { margin: 0; font-size: 40px; line-height: 1.15; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.lead { margin: 12px 0 28px; max-width: 620px; color: var(--muted); font-size: 15px; }

/* Search row */
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search { display: flex; gap: 12px; align-items: center; flex: 1 1 520px; max-width: 680px; }
.search-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--navy-soft); border-radius: 999px; padding: 0 20px; height: 52px; transition: border-color .15s, box-shadow .15s; }
.search-field svg { color: var(--muted); }
.search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 106, 168, .14); }
.search-field input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--navy); height: 100%; }
.search-field input::placeholder { color: #9AA6B2; }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-primary:hover { background: #12306F; }
.btn-primary svg { transition: transform .15s; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--navy-soft); }
.btn-outline:hover { border-color: var(--navy); }
.btn:disabled { background: #EEF1F5; color: #9AA6B2; border-color: transparent; cursor: not-allowed; transform: none; }
.btn.is-loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:focus-visible { outline: 3px solid rgba(47, 106, 168, .35); outline-offset: 2px; }

.hint { display: flex; align-items: center; gap: 8px; margin: 14px 0 0 20px; font-size: 12.5px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-ok { background: #2BB673; box-shadow: 0 0 0 3px rgba(43, 182, 115, .18); }
.dot-warn { background: #E5A100; box-shadow: 0 0 0 3px rgba(229, 161, 0, .18); }

/* Messages */
.alert { margin: 24px 0 0; max-width: 820px; padding: 14px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.alert-ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); font-weight: 600; }
.alert-err { background: var(--bad-bg); border-color: transparent; color: var(--bad); font-weight: 600; }

/* Result card */
.card { margin: 28px 0 0; max-width: 820px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.card h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--navy); }
.card .sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
dl > div { min-width: 0; }
dt { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; font-weight: 500; background: #F0F3F7; color: var(--navy); padding: 3px 8px; border-radius: 6px; }

.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-muted { background: #EEF1F5; color: var(--muted); }
.chip-bad { background: var(--bad-bg); color: var(--bad); }

/* Σχέσεις */
.card { max-width: 1000px; }
.rel { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.rel h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--navy); }
.rel .alert { margin: 12px 0 16px; }
.alert-warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); font-weight: 600; }
.alert code { background: rgba(255,255,255,.7); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); background: #F7F9FC; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tr.is-self td { background: rgba(47, 106, 168, .05); }
.self { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--blue); }
.chip-db { background: rgba(9, 31, 81, .07); color: var(--navy); }

/* Έλεγχοι */
.rel h3 { display: flex; align-items: center; gap: 10px; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 13.5px; }
.checks .ico { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; color: #fff; }
.check-ok { background: var(--ok-bg); color: var(--ok); }
.check-ok .ico { background: var(--ok); }
.check-warn { background: var(--warn-bg); color: var(--warn); }
.check-warn .ico { background: #E5A100; }
.check-bad { background: var(--bad-bg); color: var(--bad); }
.check-bad .ico { background: var(--bad); }

/* ΗΔΙΚΑ */
.hdika-bar { display: flex; align-items: center; gap: 16px; margin: 16px 0 0; flex-wrap: wrap; }
.btn-sm { height: 42px; padding: 0 20px; font-size: 13.5px; }
.link { color: var(--blue); font-weight: 600; text-decoration: none; font-size: 13.5px; }
.link:hover { text-decoration: underline; }
table.cmp td:first-child { color: var(--muted); font-weight: 600; white-space: nowrap; }
tr.is-diff td { background: #FFF6F5; }
tr.is-diff td b { color: var(--bad); }
.small-note { margin: 8px 0 0; font-size: 12px; }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  h1 { font-size: 30px; }
  .search { flex-basis: 100%; flex-wrap: wrap; }
  .search .btn { width: 100%; justify-content: center; }
  .refresh, .refresh .btn { width: 100%; justify-content: center; }
  dl { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}

.dot-warn { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Πίνακας ιδιοτήτων νέου λογαριασμού */
table.kv th { width: 34%; text-align: left; font-weight: 600; color: var(--navy); white-space: nowrap; }
table.kv td code { word-break: break-all; }
table.kv td .chip { margin: 2px 4px 2px 0; }
@media (max-width: 640px) { table.kv th { white-space: normal; width: 40%; } }

/* Δοκιμαστική λειτουργία */
.test-banner { background: repeating-linear-gradient(135deg, #B45309 0 14px, #C2610C 14px 28px); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .02em; text-align: center; padding: 9px 16px; }
body.is-test .app-badge { background: #B45309; color: #fff; }
body.is-test .app-badge::after { content: " · test"; }

/* Διαφορά μόνο στα λατινικά: κίτρινο «έλεγχος» */
.chip-warn { background: var(--warn-bg); color: var(--warn); }
tr.is-soft td { background: #FFFAEE; }
tr.is-soft td b { color: var(--warn); }

/* Αιτήματα δημιουργίας */
.request-box { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.request-pending, .request-processing { border-color: #F2D9A6; background: #FFFCF4; }
.request-done { border-color: #BFE3CC; background: #F5FBF7; }
.request-failed { border-color: #F3C2BD; background: #FFF6F5; }
.request-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.request-msg { margin: 10px 0 0; font-size: 14px; }
.inline-form { margin-top: 10px; }
.create-form { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.confirm { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--navy); cursor: pointer; }
.confirm input { width: 18px; height: 18px; accent-color: var(--navy); }
@media (max-width: 640px) { .create-form { flex-direction: column; align-items: stretch; } }

/* Μενού πάνω δεξιά */
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
.top-nav a:hover { border-bottom-color: rgba(9, 31, 81, .25); }
.top-nav a.is-active { border-bottom-color: var(--navy); }
@media (max-width: 640px) { .top-nav { gap: 12px; } .top-nav a { font-size: 13px; } .top-nav .app-badge { display: none; } }

/* Ιστορικό αιτημάτων */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 18px; }
.chip-filter { text-decoration: none; background: #fff; border: 1px solid var(--line); color: var(--navy); padding: 7px 14px; font-size: 13px; }
.chip-filter.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-search { margin-left: auto; }
.filter-search input { font: inherit; font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; min-width: 200px; }
.card-wide { max-width: none; }
table.history td { vertical-align: top; }
table.history td.msg { max-width: 320px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .filter-search { margin-left: 0; width: 100%; } .filter-search input { width: 100%; } }

/* Έλεγχος τμημάτων */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat b { display: block; font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.stat-ok b { color: var(--ok); }
.stat-warn b { color: var(--warn); }
.stat-bad b { color: var(--bad); }
table.deps .grp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 3px 0; }
table.deps .grp .small-note { margin: 0; }

/* Ενημέρωση υπάρχοντος λογαριασμού */
.update-form { margin-top: 18px; }
.update-form h4 { margin: 22px 0 10px; font-size: 15px; color: var(--navy); }
.group-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.group-picks li label { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; font-size: 14px; }
.group-picks li input { width: 18px; height: 18px; accent-color: var(--navy); }
.group-picks li.is-member label { background: #F7F9FC; color: var(--muted); cursor: default; }
.extra-groups { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.extra-groups label { width: 100%; font-size: 13px; color: var(--muted); }
.extra-groups input { font: inherit; font-size: 14px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; min-width: 260px; }
.choice { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; font-weight: 500; }
.old { text-decoration: line-through; color: var(--muted); }

/* Μαζική δημιουργία */
.bulk-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-top: 26px; }
.bulk-filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.bulk-filters label.confirm { flex-direction: row; align-items: center; padding-bottom: 10px; }
.bulk-filters select, .bulk-filters input[name=year] { font: inherit; font-size: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.bulk-filters select { max-width: 520px; }
.bulk-filters input[name=year] { width: 110px; }
table.bulk td:first-child, table.bulk th:first-child { width: 36px; }
table.bulk input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--navy); }
.bulk-form .create-form { margin-top: 18px; }
@media (max-width: 640px) { .top-nav a:not(.is-active) { display: none; } }
table.bulk td.grps { min-width: 220px; }
table.bulk td.grps .chip { margin: 2px 4px 2px 0; font-size: 11.5px; padding: 3px 9px; }
.dep-box { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 13.5px; color: var(--muted); }
.dep-box b { width: 100%; color: var(--navy); font-size: 15px; }
.dep-groups .chip { margin: 2px 4px 2px 0; }

/* Μαζική: καθαρότερος πίνακας */
table.bulk { font-size: 13.5px; }
table.bulk td { vertical-align: middle; padding-top: 12px; padding-bottom: 12px; }
table.bulk td.st { white-space: nowrap; width: 1%; }
.status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12.5px; font-weight: 700; padding: 5px 11px 5px 9px; border-radius: 999px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status-ok { color: var(--ok); background: var(--ok-bg); }
.status-bad { color: var(--bad); background: var(--bad-bg); }
.status-exists { color: var(--navy); background: rgba(9, 31, 81, .07); }
.status-req { color: var(--warn); background: var(--warn-bg); }
.status-plain { background: transparent; padding: 0; font-weight: 600; }
.chip-filter.is-on .status-plain { color: #fff; }
table.bulk tr.row-bad td { background: #FFFBFA; }
table.bulk tr.row-bad td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
table.bulk tr.row-ok td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
table.bulk td.grps { min-width: 0; max-width: 300px; }
table.bulk td.grps .chip { font-size: 11px; padding: 2px 8px; margin: 2px 3px 2px 0; font-weight: 600; }
table.bulk td.msg { max-width: 340px; line-height: 1.45; }
table.bulk td:nth-child(2) a { white-space: nowrap; }
table.bulk td.grps { min-width: 320px; max-width: 380px; }
table.bulk td.grps .chip { display: inline-block; }
table.bulk td:nth-child(3) { min-width: 170px; }
table.bulk td:nth-child(3) .sub { font-size: 12px; }
table.bulk td.st { white-space: normal; width: auto; min-width: 240px; max-width: 360px; }
table.bulk .reasons { margin: 8px 0 0; padding: 0 0 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
table.bulk .reasons li + li { margin-top: 3px; }
table.bulk tr.row-bad .reasons { color: #8A2A22; }
table.bulk td.grps { min-width: 280px; }
table.bulk .reasons.warns, table.bulk tr.row-bad .reasons.warns { color: var(--warn); }
.status-skip { color: var(--muted); background: #EEF1F5; }
table.bulk tr.row-skip td { color: var(--muted); }
/* φίλτρα: η κατάσταση μέσα στο κουμπί χωρίς δικό της φόντο */
.chip-filter .status.status-plain { background: transparent !important; padding: 0; }
.chip-filter.is-on .status.status-plain { color: #fff !important; }
.chip-filter { gap: 4px; }
.alert-info { background: #EEF4FB; color: var(--navy); border-color: transparent; margin-bottom: 14px; }
/* φίλτρα: απλή τελεία + κείμενο (χωρίς .status) */
.chip-filter .fdot { width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; flex: none; display: inline-block; }
.fdot-ok { background: var(--ok); } .fdot-exists { background: var(--navy); } .fdot-req { background: var(--warn); }
.fdot-bad { background: var(--bad); } .fdot-skip { background: #8A94A6; }
.chip-filter.is-on .fdot { background: #fff; }
table.bulk .row-cancel { margin-top: 8px; display: block; }
/* φωτεινές τελείες στα φίλτρα */
.fdot-ok { box-shadow: 0 0 0 3px rgba(31,138,77,.18), 0 0 8px rgba(31,138,77,.7); }
.fdot-exists { box-shadow: 0 0 0 3px rgba(9,31,81,.15), 0 0 8px rgba(9,31,81,.55); }
.fdot-req { box-shadow: 0 0 0 3px rgba(176,110,0,.18), 0 0 8px rgba(176,110,0,.7); }
.fdot-bad { box-shadow: 0 0 0 3px rgba(200,40,40,.18), 0 0 8px rgba(200,40,40,.7); }
.fdot-skip { box-shadow: 0 0 0 3px rgba(138,148,166,.2), 0 0 6px rgba(138,148,166,.6); }
.chip-filter.is-on .fdot { box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 0 8px rgba(255,255,255,.9); }
.chip-filter .fdot { animation: fdot-glow 2.4s ease-in-out infinite; }
@keyframes fdot-glow { 50% { filter: brightness(1.25); transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .chip-filter .fdot { animation: none; } }
/* Διόρθωση στοιχείων */
.fix-box { background: #F7F9FC; border-radius: 14px; padding: 18px 20px; }
.fix-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0; }
.fix-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fix-form input { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; color: var(--navy); background: #fff; width: 150px; }
.fix-form input[name=fix_ssnc], .fix-form input[name=fix_nat] { width: 80px; text-transform: uppercase; }
.fix-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 12px; }
.fix-actions button[disabled] { opacity: .45; cursor: not-allowed; }
table.bulk .st-pair { display: inline-block; margin-top: 4px; font-size: 11.5px; color: var(--navy); }
table.bulk .st-pair b { font-weight: 700; }
/* φωτεινές τελείες και στις καταστάσεις του πίνακα */
.status::before { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent), 0 0 8px currentColor; animation: fdot-glow 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .status::before { animation: none; } }
/* πράσινο τικ στα checkbox της μαζικής */
table.bulk input[type=checkbox] { accent-color: var(--ok); }
/* Ιστορικό: η κατάσταση σε μία γραμμή */
table.history td.st-cell { white-space: nowrap; width: 1%; }
.chip.chip-auto { background: rgba(31,138,77,.10); color: var(--ok); }
table.history .row-reset { margin-top: 8px; }
/* Δημιουργήθηκε: πράσινο, πιο «ήσυχο» από το «Δημιουργία» */
.status-done { color: var(--ok); background: var(--ok-bg); opacity: .9; }
.fdot-done { background: var(--ok); box-shadow: 0 0 0 3px rgba(31,138,77,.18), 0 0 8px rgba(31,138,77,.7); }
table.bulk tr.row-done td { color: var(--muted); }

/* ===== Αρχική: καλωσόρισμα + κατηγορίες (μόνο navy, όπως το ype-dev) ===== */
.home h1 { font-size: 44px; }
.home-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 28px; }
.home-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: 13px; }
.home-pill b { font-weight: 800; }
.home-pill .fdot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--navy) !important; box-shadow: none !important; animation: none; }
.home-pill:hover { border-color: var(--navy); }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1000px; }
@media (max-width: 760px) { .cat-grid { grid-template-columns: 1fr; } .home h1 { font-size: 32px; } }
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px 26px; transition: border-color .2s, box-shadow .2s; }
.cat-card.is-ready:hover { border-color: var(--navy-soft); box-shadow: 0 12px 32px -22px rgba(9, 31, 81, .45); }
.cat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cat-icon { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; color: var(--navy); background: rgba(9, 31, 81, .06); }
.cat-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }
.cat-status { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.is-ready .cat-status { color: var(--navy); border-color: var(--navy-soft); }
.cat-card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--navy); }
.cat-text { margin: 0 0 10px; color: var(--ink); font-size: 14px; }
.cat-meta { margin: 0 0 22px; color: var(--muted); font-size: 12.5px; }
.cat-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cat-actions .btn { text-decoration: none; }
.cat-soon { font-size: 13px; color: var(--muted); font-weight: 600; }
.is-soon h2, .is-soon .cat-icon { opacity: .75; }
.eyebrow .crumb { color: inherit; text-decoration: none; }
.eyebrow .crumb:hover { text-decoration: underline; }
/* Ανάλυση groups διοικητικών */
.learn h2 { font-size: 18px; margin: 0 0 14px; }
.learn h2 .sub { font-weight: 500; font-size: 13px; }
.learn-groups .chip, .learn-table .chip { margin: 2px 4px 2px 0; font-size: 11.5px; }
.learn-table td:first-child { max-width: 340px; }
.learn-table td:nth-child(2) { white-space: nowrap; text-align: center; }
.learn-table tr.learn-few td { opacity: .6; }
.card-wide.learn { max-width: 1100px; }
/* Κανόνες groups διοικητικών */
.rules-list { display: grid; gap: 14px; max-width: 1000px; }
.rule-card { margin: 0; padding: 20px 24px; }
.rule-card.has-rule { border-color: var(--navy-soft); }
.rule-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.rule-head h2 { font-size: 16px; margin: 0; }
.rule-row { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0; }
.rule-label { flex: none; width: 90px; font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 4px; }
.rule-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rule-chip { display: inline; margin: 0; }
.rule-chip .chip button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; margin-left: 6px; padding: 0; }
.rule-chip .chip button:hover { color: var(--bad); }
.chip-suggest { border: 1px dashed var(--navy-soft); background: #fff; color: var(--navy); cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.chip-suggest:hover { border-style: solid; border-color: var(--navy); }
.chip-suggest b { color: var(--muted); font-weight: 700; margin-left: 4px; }
.rule-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rule-add input { flex: 1 1 280px; height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; font: inherit; color: var(--navy); }
.rule-add select { height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; font: inherit; color: var(--navy); background: #fff; }
/* Προσωπικό: επιλογή username */
.username-pick { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 14px; }
.username-cands { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cand { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 12.5px; }
.cand input { accent-color: var(--navy); margin: 0; }
.cand.is-free span { color: var(--ok); }
.cand.is-taken { opacity: .55; cursor: not-allowed; }
.cand.is-taken span { color: var(--bad); }
.cand.is-on { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(9, 31, 81, .08); }
.cand-own { display: inline-flex; gap: 6px; align-items: center; }
.cand-own input { height: 36px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; font: inherit; font-size: 13px; color: var(--navy); width: 210px; }
.request-form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 14px; }
.hdika-cmp tr.diff td { background: var(--bad-bg); }
/* Αρχική: όλα στο κέντρο, χωρίς τίτλο */
.home .wrap { text-align: center; }
.home .lead { margin-left: auto; margin-right: auto; }
.home .home-strip { justify-content: center; margin-top: 0; }
.home .cat-grid { margin: 0 auto; text-align: left; }
.actions a.btn { text-decoration: none; }
.check-muted { background: #F3F5F8; color: var(--muted); }
.check-muted .ico { background: #B7BFCC; }

/* username: πεδίο πάνω, προτάσεις κάτω */
.username-box { margin: 10px 0 16px; display: grid; gap: 10px; }
.username-input { display: flex; gap: 8px; max-width: 560px; }
.username-input input { flex: 1; height: 46px; border: 1px solid var(--line); border-radius: 999px; padding: 0 20px; font: 600 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy); background: #fff; }
.username-input input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(9, 31, 81, .08); }
.username-input .btn { height: 46px; padding: 0 22px; }
.username-status { font-size: 13px; font-weight: 600; }
.username-status.is-ok { color: var(--ok); }
.username-status.is-bad { color: var(--bad); }
.username-sugg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sugg { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--navy); text-decoration: none; }
a.sugg:hover, .sugg.is-on { border-color: var(--navy); background: #F3F5F8; }
.sugg.is-taken { opacity: .5; color: var(--bad); cursor: not-allowed; }

/* groups με τσεκ */
.grp-list { display: grid; gap: 6px; margin: 8px 0 12px; }
.grp { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; background: #F3F5F8; font-size: 13px; color: var(--navy); cursor: pointer; }
.grp input { accent-color: var(--navy); width: 16px; height: 16px; margin: 0; }
.grp:has(input:not(:checked)) { opacity: .5; }
.grp:has(input:not(:checked)) code { text-decoration: line-through; }
.grp-lvl { min-width: 120px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.grp.is-missing { color: var(--muted); cursor: default; padding-left: 40px; }
.grp.is-lock, .grp.is-have { cursor: default; }

/* μενού: κατηγορίες + δευτερεύοντα */
.nav-soon { color: var(--muted); font-weight: 600; font-size: 14px; cursor: default; opacity: .6; }
.nav-sep { width: 1px; height: 18px; background: var(--line); }
.top-nav a.nav-minor { font-weight: 500; color: var(--muted); }
.top-nav a.nav-minor.is-active { color: var(--navy); }
/* καρτέλες μέσα στους Φοιτητές */
.subtabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #F3F5F8; margin-bottom: 22px; }
.subtab { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none; }
.subtab:hover { background: rgba(9, 31, 81, .06); }
.subtab.is-on { background: var(--navy); color: #fff; }
@media (max-width: 640px) { .nav-soon, .nav-sep { display: none; } }
.grp-note { font-size: 12.5px; color: var(--muted); padding: 2px 14px; }
.grp-note b { color: var(--navy); }

/* groups που δεν μπήκαν */
.group-fail { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--bad-bg, #FDECEC); color: var(--bad); font-size: 13px; }
.group-fail ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.group-fail li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
td.msg .request-msg { margin: 0; }
td.msg .group-fail { margin-top: 6px; }
.group-fail .chip-bad { background: #fff; }
.request-partial { border-color: #F5D9A6; background: #FFFBF3; }

/* Λοιποί: κάρτες είδους, τμήμα, φόρμα */
.type-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 14px; }
.type-card { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; row-gap: 4px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; color: var(--navy); transition: border-color .15s, box-shadow .15s; }
.type-card:hover { border-color: var(--navy-soft); }
.type-card b { font-size: 14.5px; }
.type-card .sub { grid-column: 2; font-size: 12.5px; }
.type-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--navy-soft); margin-top: 2px; }
.type-card.is-on { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(9, 31, 81, .08); }
.type-card.is-on .type-dot { border-color: var(--navy); background: radial-gradient(var(--navy) 45%, transparent 50%); }
.dept-pick { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.dept-pick select { height: 44px; border: 1px solid var(--navy-soft); border-radius: 999px; padding: 0 18px; font: inherit; font-size: 14px; color: var(--navy); background: #fff; min-width: 360px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 6px 0 14px; }
.form-grid label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.form-grid input { height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 14px; color: var(--navy); background: #fff; }
.form-grid input:disabled { background: #F3F5F8; color: var(--muted); }
.form-grid .span2 { grid-column: 1 / -1; }
.local-form .kv { margin-bottom: 12px; }
@media (max-width: 760px) { .type-cards, .form-grid { grid-template-columns: 1fr; } .dept-pick select { min-width: 0; width: 100%; } }
.local-form .form-grid, .local-form .kv { align-self: stretch; }
.local-form .form-grid { width: 100%; max-width: 780px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; }
.form-grid .lbl .sub { font-weight: 500; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.err-list { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }
.btn-row { display: flex; gap: 10px; align-items: center; }
a.btn { text-decoration: none; }
.hdika-fill { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; align-self: stretch; padding: 14px 16px; border-radius: 14px; background: #F3F5F8; }
.hdika-fill label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.hdika-fill input { height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--navy); background: #fff; width: 200px; }
.hdika-fill .btn { height: 42px; }
.hdika-fill .sub { flex-basis: 100%; }
.st-note { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #2F6AA8; white-space: nowrap; }
.request-head .st-note { display: inline; margin: 0 4px 0 0; }

/* Επαναφορά κωδικού (δημόσια σελίδα) */
.reset-wrap { max-width: 760px; }
.reset-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 18px 0 18px; flex-wrap: wrap; }
.reset-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #F3F5F8; color: var(--muted); font-size: 13px; font-weight: 600; }
.reset-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 12px; }
.reset-steps li.is-on { background: var(--navy); color: #fff; }
.reset-steps li.is-on span { color: var(--navy); border-color: #fff; }
.reset-steps li.is-done span { background: var(--ok); color: #fff; border-color: var(--ok); }
.reset-mask { font: 700 20px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy); margin: 6px 0 18px; letter-spacing: .02em; }
.pw-rules { margin: 0 0 14px; padding-left: 18px; font-size: 12.5px; }
.form-grid select { height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--navy); background: #fff; }
.form-grid > label { min-width: 0; }
.form-grid select, .form-grid input { width: 100%; min-width: 0; box-sizing: border-box; }
.reset-page .card .form-grid { max-width: none; }

/* Σελίδες κωδικού (reset / change): πιο άνετα κενά */
.reset-page .card { padding: 34px 38px; margin-top: 22px; }
.reset-page .card > :first-child { margin-top: 0; }
.reset-page .card > :last-child { margin-bottom: 0; }
.reset-page .card .alert { margin: 0 0 22px; max-width: none; padding: 16px 20px; line-height: 1.55; }
.reset-page .card .lead { margin: 0 0 18px; line-height: 1.6; }
.reset-page .card .form-grid { gap: 18px 20px; margin-bottom: 18px; }
.reset-page .card .pw-rules { margin: 4px 0 22px; line-height: 1.7; }
.reset-page .card .btn-row,
.reset-page .card form:not(.request-form) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.reset-page .card .request-form { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 0; }
.reset-page .card .request-form > :not(.btn):not(.link):not(input) { flex: 0 0 100%; }
.reset-page .card .request-form > .link { margin-left: 6px; }
.reset-page .card .small-note { margin-top: 18px; }
.reset-page .hero > .reset-wrap > .alert { margin: 18px 0 0; }
.reset-page h1 + .sub { margin: 6px 0 0; }
@media (max-width: 640px) {
  .reset-page .card { padding: 24px 20px; }
}

/* Επιλογή γλώσσας (σελίδες κωδικού) */
.reset-page .top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: #F3F5F8; border: 1px solid var(--line); flex-shrink: 0; }
.lang-switch a, .lang-switch .lang-on { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 38px; box-sizing: border-box; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .04em; color: var(--muted); text-decoration: none; white-space: nowrap; }
.lang-switch a:hover, .lang-switch a:focus-visible { color: var(--navy); background: #fff; outline: none; }
.lang-switch .lang-on { background: var(--navy); color: #fff; }
.brand-en { gap: 14px; }
.brand-en img { height: 52px; padding-right: 14px; border-right: 1px solid #c9d3e3; }
.brand-en-text { display: flex; flex-direction: column; gap: 3px; color: var(--navy); }
.brand-en-text b { font-size: 15px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; line-height: 1.15; max-width: 150px; }
.brand-en-text small { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; color: #2a5aa8; }
@media (max-width: 640px) { .brand-en img { height: 40px; } .brand-en-text b { font-size: 13px; } }
/* Πιο μεγάλο κουτί στις σελίδες κωδικού */
.reset-page .reset-wrap { max-width: 880px; }
.reset-page .card { max-width: none; padding: 44px 48px; border-radius: 24px; box-shadow: 0 10px 30px rgba(11, 31, 75, .06); }
.reset-page .card .form-grid { gap: 22px 24px; margin-bottom: 24px; }
.reset-page .card .form-grid input, .reset-page .card .form-grid select { height: 50px; font-size: 15px; }
.reset-page .card .lbl { font-size: 14px; margin-bottom: 8px; }
@media (max-width: 640px) { .reset-page .card { padding: 26px 20px; border-radius: 18px; } }

/* Έλεγχος λογαριασμού: πότε λήγουν κωδικός/λογαριασμός */
.reset-page .acct-dates { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.reset-page .acct-dates th { background: none; text-transform: none; letter-spacing: 0; font-size: 15px; text-align: left; font-weight: 600; color: var(--muted); padding: 12px 16px 12px 0; width: 42%; border-bottom: 1px solid var(--line); }
.reset-page .acct-dates td { padding: 12px 0; color: var(--navy); border-bottom: 1px solid var(--line); }
.reset-page .acct-dates td .sub { margin-left: 6px; font-size: 14px; }
.reset-page .acct-dates .warn { color: #b45309; }

/* mypassword: αρχική «Τι είστε;» */
.who-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0 18px; }
.who-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; text-decoration: none; color: var(--navy); transition: border-color .15s, box-shadow .15s, transform .15s; }
.who-card:hover { border-color: var(--navy); box-shadow: 0 8px 24px rgba(11, 31, 75, .08); transform: translateY(-1px); }
.who-card b { font-size: 16px; }
.who-card .sub { font-size: 13.5px; line-height: 1.5; }
.who-card.is-on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #f6f8fc; }
.who-actions { display: grid; gap: 12px; padding: 28px 30px; }
.who-actions .act { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--navy); background: #fff; }
.who-actions a.act:hover { border-color: var(--navy); }
.who-actions a.act b::after { content: ' →'; }
.who-actions .act.is-info { background: #f8fafc; border-style: dashed; }
.who-actions .act b { font-size: 15.5px; }
.who-actions .act .sub { font-size: 14px; line-height: 1.55; }
@media (max-width: 760px) { .who-cards { grid-template-columns: 1fr; } }
