/* ENERGYS – εσωτερικά περιβάλλοντα. Κανόνες: docs/DESIGN.md */

:root {
    --navy: #183961;
    --navy-hover: #102947;
    --green: #67B63B;
    --green-text: #3D7A22;
    --turquoise: #02A598;
    --light-blue: #0B8ACE;
    --blue: #1254A6;
    --bg: #F7F8FA;
    --surface: #FFFFFF;
    --border: #E6E9EF;
    --text: #183961;
    --text-muted: #5B6576;
    --warning: #E0782B;
    --error: #B42318;
    --radius: 12px;
    --radius-lg: 16px;
    --control-height: 44px;
    --content-max: 1600px;
    --reading-max: 720px;
    /* From the approved designs (docs/mockups): ink, lines, fields, the states of the pills. */
    --ink: #0F1B2D;
    --ink-2: #3D4757;
    --line-soft: #EEF0F4;
    --field: #F2F4F7;
    --segment: #ECEFF3;
    --active: #EFF7EA;
    --ok: #2E7D3A;
    --ok-bg: #EBF5EC;
    --ok-fg: #25663A;
    --info-bg: #EAF1FB;
    --info-fg: #1F4D8F;
    --info-dot: #3B78D0;
    --info-av: #DFE9F8;
    --warn-bg: #FBF0E6;
    --warn-fg: #8A4A12;
    --warn-av: #F8E6D6;
    --violet-bg: #F1EDFA;
    --violet-fg: #4F3A8F;
    --violet-dot: #7A62C9;
    --violet-av: #E7E0F7;
    --late: #B4510B;
    --member-bg: #E8F5F8;
    --member-fg: #155B6B;
    --member-dot: #2AA3BD;
    --member-av: #D8EFF4;
    --appt-bg: #FFF3E6;
    --appt-fg: #8A4B0D;
    --appt-dot: #E0782B;
    --appt-av: #FDE7D2;
    --yde-av: #DCEFDD;
    --sidebar-width: 256px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
}

h1, h2 { margin: 0 0 8px; line-height: 1.25; font-weight: 600; }
h1 { font-size: 24px; }
p { margin: 0 0 16px; }
a { color: var(--navy); }

.tabular, input, table { font-variant-numeric: tabular-nums; }

.muted { color: var(--text-muted); }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Logo */

.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { display: block; width: auto; height: 48px; }

/* Cards, forms, buttons */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; }
.field input {
    width: 100%;
    min-height: var(--control-height);
    padding: 10px 12px;
    font: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.field input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(24, 57, 97, 0.15); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field .hint { margin-top: 6px; font-size: 14px; color: var(--text-muted); }
.field .error { margin-top: 6px; font-size: 14px; color: var(--error); }

.code-input { font-size: 24px; letter-spacing: 0.3em; text-align: center; }

.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    font: inherit; font-size: 15px; font-weight: 600;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}
.button-primary { color: #fff; background: var(--navy); }
.button-primary:hover { background: var(--navy-hover); }
.button-secondary { color: var(--ink); background: var(--surface); border-color: var(--border); }
.button-link { color: var(--navy); background: none; border: 0; padding-inline: 0; text-decoration: underline; }
.button-block { width: 100%; }

.alert {
    padding: 12px 16px; margin-bottom: 16px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface);
}
.alert-success { border-color: var(--green); color: var(--green-text); }
.alert-error { border-color: var(--error); color: var(--error); }

/* Sign-in screens */

.auth {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 16px;
}
.auth .logo { margin-bottom: 24px; }
.auth .logo img { height: 56px; }
.auth .card { width: 100%; max-width: 420px; }
/* Link πελάτη: φαρδύτερη κάρτα στον υπολογιστή, τα έγγραφα σε 2 στήλες. */
.auth .card--wide { max-width: 760px; }
.auth-footer { margin-top: 16px; text-align: center; font-size: 14px; }
/* Όροι χρήσης (auth/terms): το κείμενο σε λίστα, πριν από το τσεκ και τον κωδικό SMS. */
.terms { font-size: 15px; line-height: 1.55; color: var(--text); }
.terms-version { margin: -6px 0 10px; font-size: 13px; }
.terms-points { margin: 12px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.field .terms-check { display: flex; align-items: flex-start; padding: 12px 14px; line-height: 1.45; }
.field .terms-check input { flex: none; margin-top: 2px; }

/* App shell */

.sidebar {
    display: none;
    position: fixed; inset: 0 auto 0 0;
    width: var(--sidebar-width);
    flex-direction: column; gap: 26px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 22px 14px;
}
.sidebar-logo { padding: 4px 10px; }
.sidebar-logo .logo img { height: 40px; }

.nav-groups { display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-heading {
    margin: 0; padding: 0 12px 8px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted);
}
.icon { flex: none; }
.nav a {
    display: flex; align-items: center; gap: 12px;
    min-height: var(--control-height);
    padding: 0 12px;
    border-radius: 10px;
    color: var(--ink-2);
    font-size: 14px; font-weight: 500;
    text-decoration: none;
}
.nav a .icon { stroke-width: 1.8; }
.nav a:hover { background: var(--bg); }
.nav-label { flex: 1; }
.nav-count { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }
.nav a[aria-current="page"] { background: var(--active); color: var(--navy); font-weight: 600; }
.nav a[aria-current="page"] .icon { color: var(--ok); stroke-width: 2; }
.nav a[aria-current="page"] .nav-count { font-weight: 700; color: var(--ok); }

.avatar {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px;
    font-size: 13px; font-weight: 700; color: var(--navy); background: #EEF2F8;
}
.avatar-round { width: 34px; height: 34px; border-radius: 50%; font-weight: 600; color: #fff; background: var(--navy); }

.user-card { margin-top: auto; position: relative; }
.user-card > summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    padding: 10px; border-radius: 12px; border: 1px solid var(--border);
}
.user-card > summary::-webkit-details-marker { display: none; }
.user-card__who { display: flex; flex-direction: column; min-width: 0; }
.user-card__name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card__role { font-size: 12px; color: var(--text-muted); }
.account-name { font-weight: 600; padding: 0 12px; }
.account-role { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; padding: 0 12px; }

.main-col { min-width: 0; }
.topbar {
    display: none; align-items: center; gap: 12px;
    padding: 16px clamp(16px, 2.6vw, 36px);
    background: var(--surface); border-bottom: 1px solid var(--border);
}
.topbar-search {
    flex: 1 1 280px; max-width: 520px;
    display: flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--field); color: var(--text-muted);
}
.topbar-search input { flex: 1; min-width: 0; min-height: 42px; border: 0; outline: none; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.topbar-search kbd { font: inherit; font-size: 12px; font-weight: 600; color: var(--text-muted); border: 1px solid #D7DCE4; border-radius: 6px; padding: 1px 6px; }
/* A phone held sideways shows the top bar: 16px, or the iPhone zooms in on a tap (docs/DESIGN.md, section 5). */
@media (max-width: 932px) and (max-height: 500px) { .topbar-search input { font-size: 16px; } }
.icon-button {
    position: relative; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface); color: var(--navy);
}
.topbar-bell { margin-left: auto; }
.bell-dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }

.mobile-header {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft);
}
.mobile-header .logo img { height: 30px; }
.mobile-header .avatar-round { width: 40px; height: 40px; }

.menu { position: relative; }
.menu > summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    min-width: var(--control-height); height: var(--control-height);
    border-radius: 10px; color: var(--navy);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
    position: absolute; right: 0; top: calc(100% + 4px); z-index: 20;
    min-width: 220px; padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.menu-panel a, .menu-panel button {
    display: flex; align-items: center; gap: 12px; width: 100%;
    min-height: var(--control-height); padding: 0 12px;
    font: inherit; color: var(--ink); text-decoration: none;
    background: none; border: 0; border-radius: 8px; cursor: pointer; text-align: left;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--bg); }
.menu-panel form { margin: 0; }
.menu-panel .nav-heading { margin-top: 8px; padding-bottom: 4px; }
/* The account menu at the foot of the sidebar opens upwards, always whole on the screen (after .menu-panel, so it wins). */
.menu-panel--up { top: auto; right: 0; bottom: calc(100% + 6px); left: 0; min-width: 0; max-height: calc(100vh - 120px); overflow-y: auto; }

.content { padding: 16px 20px 112px; }
.content-inner { max-width: var(--content-max); margin: 0 auto; }
/* Forms and running text stay narrow enough to read comfortably, however wide the screen (docs/DESIGN.md, section 5). */
.content form, .content p { max-width: var(--reading-max); }
.page-header { margin-bottom: 16px; }
.page-header h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.page-date { display: block; margin-bottom: 4px; font-size: 13px; color: var(--text-muted); }

h2 { font-size: 18px; }

.breadcrumb { margin: 0 0 4px; font-size: 14px; color: var(--text-muted); }

/* Back office: list on the left, details/form on the right */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}
.rows > .row:first-child { border-top: 0; }
.card.rows { padding-block: 8px; }
.row-main { min-width: 0; }
.row-title { font-weight: 600; }
a.row-title { display: inline-flex; align-items: center; min-height: var(--control-height); }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; }

.badge {
    display: inline-flex; align-items: center;
    padding: 2px 10px; border-radius: 999px;
    font-size: 13px; font-weight: 500;
    color: var(--text-muted); background: var(--bg);
    border: 1px solid var(--border);
}
.badge-success { color: var(--green-text); border-color: var(--green); }
.badge-warning { color: var(--text); border-color: var(--warning); }
.badge-danger { color: var(--error); border-color: var(--error); }

.confirm > summary { list-style: none; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm-panel { margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); max-width: 320px; }
.confirm-panel p { font-size: 14px; }

.empty { text-align: center; padding: 48px 24px; color: var(--text-muted); }

.bottom-nav {
    position: fixed; inset: auto 0 0 0; z-index: 10;
    display: flex; align-items: flex-end; justify-content: space-between;
    padding: 8px 12px calc(18px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.bottom-nav > a, .bottom-nav > .menu { flex: 1; min-width: 0; }
.bottom-nav > a, .bottom-nav > .menu > summary {
    position: relative;
    display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; text-align: center;
    width: 100%; min-height: 52px; padding: 0 2px;
    font-size: 11px; font-weight: 600; line-height: 1.2;
    color: var(--text-muted); text-decoration: none;
}
/* A label never pushes the bar past the screen: at the narrowest it ends in «…». */
.bottom-nav > a > span, .bottom-nav > .menu > summary > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav > a[aria-current="page"] { color: var(--navy); }
.bottom-nav > a[aria-current="page"] .icon { color: var(--ok); stroke-width: 2; }
.bottom-nav > .bottom-nav__fab {
    flex: none; width: 56px; height: 56px; min-height: 0; margin: 0 6px 6px; border-radius: 18px;
    color: #fff; background: var(--navy); box-shadow: 0 8px 20px rgba(24, 57, 97, 0.28);
}
.bottom-nav > .bottom-nav__fab .icon { stroke-width: 2.4; }
.bottom-nav .menu-panel { top: auto; bottom: calc(100% + 4px); }
.bottom-nav > a > .nav-dot--bottom {
    position: absolute; top: 2px; left: calc(50% + 6px);
    width: auto; height: auto; min-width: 18px; max-width: none; padding: 0 5px;
    border-radius: 999px; background: var(--warning);
    font-size: 11px; font-weight: 700; line-height: 16px; color: #fff;
}

/* Prices */

.section-gap { margin-top: 16px; }
.alert-warning { border-color: var(--warning); }
h3 { margin: 16px 0 8px; font-size: 16px; font-weight: 600; }

.tabs {
    display: flex; gap: 4px; overflow-x: auto;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.tabs a {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    min-height: var(--control-height); padding: 0 14px;
    color: var(--text-muted); font-weight: 500; text-decoration: none;
}
.tabs a[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -3px 0 var(--green); }

.filters { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills a {
    display: inline-flex; align-items: center;
    min-height: var(--control-height); padding: 0 14px;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface); color: var(--text); text-decoration: none; font-weight: 500;
}
.pills .count { margin-left: 6px; color: var(--text-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.pills a[aria-current="true"] { border-color: var(--navy); color: var(--navy); font-weight: 600; box-shadow: inset 0 0 0 1px var(--navy); }

.provider + .provider { margin-top: 16px; }
.provider h2 .count { font-size: 14px; font-weight: 500; }
.price-box { text-align: right; }
.price-main { font-size: 20px; font-weight: 700; color: var(--navy); margin: 0; }
.price-main .unit { font-size: 14px; font-weight: 500; color: var(--text-muted); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 10px 8px; text-align: left; border-top: 1px solid var(--border); vertical-align: top; }
.table thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.table .num { text-align: right; white-space: nowrap; }
.table tfoot th, .table tfoot td { font-weight: 600; }

.details { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 16px; margin: 0 0 8px; }
.details dt { color: var(--text-muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details a { display: inline-flex; align-items: center; gap: 4px; }
.bullets { margin: 0 0 8px; padding-left: 20px; }
.bullets li + li { margin-top: 4px; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
/* Πεδία που η Προϊσταμένη back office βλέπει μόνο για ανάγνωση, χωρίς να αλλάζει η διάταξη της φόρμας. */
.fieldset-contents { display: contents; }
fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea { background: var(--bg); color: var(--ink); opacity: 1; cursor: default; -webkit-text-fill-color: var(--ink); }
legend { padding: 0; margin-bottom: 6px; font-weight: 500; }
.inline-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.checks, .choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.check, .choice {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: var(--control-height); padding: 0 14px;
    border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.field .check, .field .choice { display: inline-flex; margin-bottom: 0; font-weight: 400; }
.check input, .choice input, .field .check input, .field .choice input {
    flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--navy);
}

.chart { margin: 0 0 8px; overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 520px; height: auto; overflow: visible; }
.chart figcaption { margin-top: 4px; font-size: 14px; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-axis { fill: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-line { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.chart-dot { fill: var(--navy); stroke: var(--surface); stroke-width: 2; }
.chart-hit { fill: transparent; }
.chart-point:hover .chart-dot, .chart-point:focus .chart-dot { fill: var(--green); }
.chart-point:focus { outline: none; }
.chart-tip { position: fixed; z-index: 1000; display: grid; gap: 2px; width: max-content; max-width: 220px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 24px rgba(15, 27, 45, .16); color: var(--text); font-size: 13px; line-height: 1.35; pointer-events: none; }
.chart-tip strong { text-transform: capitalize; }
.chart-hint--touch { display: none; }
@media (hover: none) { .chart-hint--pointer { display: none; } .chart-hint--touch { display: inline; } }

.disclosure > summary { cursor: pointer; min-height: var(--control-height); display: list-item; line-height: var(--control-height); font-weight: 500; }

.ai-note { padding: 12px; border-radius: var(--radius); background: var(--bg); }
.field select {
    min-height: var(--control-height); padding: 10px 12px;
    max-width: 100%; text-overflow: ellipsis;
    font: inherit; color: var(--text);
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
/* WebKit (every browser on iPhone) lets the text of a long option widen the page; the select keeps it in its box. */
select { contain: paint; }

.results { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: result; }
.result { padding: 12px 0; border-top: 1px solid var(--border); font-size: 14px; }
.result:first-child { border-top: 0; }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; }
.result-head .price-main { font-size: 18px; }

.tier-note { margin-top: 4px; font-size: 14px; color: var(--text-muted); }
.period { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.field .period input#period { width: 120px; }
.period .choices { margin-bottom: 0; }

.rule + .rule { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.rule-range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }

/* Tasks (Εργασίες): list on the left, details on the right */

.badge-info { color: var(--blue); border-color: var(--light-blue); }
.badge-muted { color: var(--text-muted); }
.button-success { color: #fff; background: var(--green-text); }
.button-success:hover { background: #2F6119; }
.button-warning { color: var(--navy); background: var(--surface); border-color: var(--warning); }
.button-danger { color: #fff; background: var(--error); }
.button .icon { margin-right: 6px; }
.back-link { display: none; align-items: center; gap: 6px; min-height: 36px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: none; }

.button-block { width: 100%; }
.button-quiet { color: var(--ink-2); background: transparent; border-color: transparent; font-weight: 600; }
.button-quiet:hover { background: var(--field); }

/* Εργασίες, Πελάτες, Tickets: docs/mockups/Main.html */
.tasks-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.tasks-head .page-header { margin: 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--segment); }
.segmented a {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px; padding: 0 14px; border-radius: 9px;
    font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none;
}
.segmented a span { font-size: 12px; color: var(--text-muted); }
.segmented a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 27, 45, 0.12); }
.segmented a[aria-current="true"] span { color: var(--ok); }

.tasks { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.tasks-list { flex: 999 1 420px; min-width: 0; }
.tasks-detail { flex: 1 1 340px; min-width: 0; max-width: 420px; }
.card-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.task-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
    color: var(--ink); text-decoration: none; background: var(--surface);
}
.card-list > .task-row:last-child { border-bottom: 0; }
.task-row:hover, .task-row[aria-current="page"] { background: #F3F6FA; }
.task-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.task-row__name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.task-row__detail { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-row__age { flex: none; width: 42px; text-align: right; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.task-row__age.is-late { color: var(--late); }
.avatar--app { color: var(--info-fg); background: var(--info-av); }
.avatar--ticket { color: var(--violet-fg); background: var(--violet-av); }
.avatar--member { color: var(--member-fg); background: var(--member-av); }
.avatar--yde { color: var(--ok-fg); background: var(--yde-av); }
.avatar--appointment { color: var(--appt-fg); background: var(--appt-av); }

.pill, .stage {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; }
.pill--app { color: var(--info-fg); background: var(--info-bg); }
.pill--app .pill__dot { background: var(--info-dot); }
.pill--ticket { color: var(--violet-fg); background: var(--violet-bg); }
.pill--ticket .pill__dot { background: var(--violet-dot); }
.pill--member { color: var(--member-fg); background: var(--member-bg); }
.pill--member .pill__dot { background: var(--member-dot); }
.pill--yde { color: var(--ok-fg); background: var(--ok-bg); }
.pill--yde .pill__dot { background: var(--green); }
.pill--appointment { color: var(--appt-fg); background: var(--appt-bg); }
.pill--appointment .pill__dot { background: var(--appt-dot); }
.pill--ok { color: var(--ok-fg); background: var(--ok-bg); }
.pill--ok .pill__dot { background: var(--green); }
.stage--info { color: var(--info-fg); background: var(--info-bg); }
.stage--warn { color: var(--warn-fg); background: var(--warn-bg); }
.stage--ok { color: var(--ok-fg); background: var(--ok-bg); }
.stage--muted { color: var(--text-muted); background: var(--field); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.task-panel { display: flex; flex-direction: column; gap: 20px; }
.task-panel__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.task-panel__head h2 { margin: 0; font-size: 21px; font-weight: 700; }
.task-panel__head h2 a { color: var(--ink); text-decoration: none; }
.task-panel__head .muted { font-size: 14px; }
.task-panel .note { margin: 0; }
.task-panel__actions { display: flex; flex-direction: column; gap: 8px; }
.task-panel__actions form { margin: 0; max-width: none; }
.task-panel__actions .button { min-height: 46px; font-size: 15px; }
.task-panel__actions .stage-action > summary { display: flex; }
.facts {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0;
    padding: 16px; border-radius: 12px; background: var(--bg);
}
.facts > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
/* Σημαίες της αίτησης (ARCHITECTURE.md ενότητα 20): ασυμφωνίες και ό,τι συμπληρώνει το back office, διόρθωση επιτόπου. */
.flags { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid #F0C999; border-radius: var(--radius); background: var(--warn-bg); }
.flags h3 { margin: 0; font-size: 15px; color: #9A4A10; white-space: nowrap; }
.flags .doc-list__head { align-items: flex-start; gap: 10px; }
.flags .doc-list__head .muted { font-size: 12.5px; }
.flag { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.flag__text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.flag__text b { font-size: 14px; }
.flag__form { flex: 1 1 240px; display: flex; gap: 6px; align-items: center; }
.flag__form input, .flag__form select { flex: 1; min-width: 0; min-height: 40px; }
.flag__form .button { flex: none; }
@media (max-width: 479px) { .flag__form { flex-wrap: wrap; } .flag__form .button { width: 100%; } }
.facts dt { font-size: 12px; color: var(--text-muted); }
.facts dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-list__head { display: flex; justify-content: space-between; align-items: center; }
.doc-list__head h3 { margin: 0; font-size: 13px; font-weight: 600; }
.doc-list__head a { font-size: 13px; font-weight: 600; }
.doc-line { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.doc-line__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doc-line__name a { color: var(--ink); }
.doc-line__state { font-size: 12px; color: var(--text-muted); }
.doc-mark { flex: none; width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; border: 1.5px dashed #C3CAD5; }
.doc-mark.is-done { border: 0; background: var(--ok); color: #fff; }
.doc-mark .icon { stroke-width: 3.4; }

.application-header h2 { margin: 8px 0 4px; font-size: 20px; }
.application-header p { overflow-wrap: anywhere; }
.application-grid { display: grid; gap: 0 24px; }
.application .details { grid-template-columns: 1fr; gap: 0; }
.application .details dt { font-size: 14px; }
.application .details dd { margin-bottom: 10px; }
.application-section { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.section-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.note { padding: 12px 16px; border-radius: var(--radius); background: var(--bg); border-left: 3px solid var(--border); }
.note-warning { border-left-color: var(--warning); }
.contact-text { white-space: pre-line; overflow-wrap: anywhere; margin: 16px 0 0; }

.documents { list-style: none; margin: 0 0 8px; padding: 0; }
.document { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border); }
.document:first-child { border-top: 0; }
.document-main { display: grid; min-width: 0; }
.document-slot { font-weight: 600; }
.document-name { font-size: 14px; overflow-wrap: anywhere; }
.document-actions { display: flex; gap: 8px; }

.stage-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.stage-actions form { margin: 0; }
.stage-action > summary { list-style: none; }
.stage-action > summary::-webkit-details-marker { display: none; }
.stage-action[open] { flex-basis: 100%; }
/* One column as wide as the form: WebKit sizes a select by its longest option, which must never push past the screen. */
.stage-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: var(--reading-max); margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.stage-form label { font-weight: 500; }
.stage-form input, .stage-form select {
    width: 100%; min-width: 0; max-width: 100%; min-height: var(--control-height); padding: 10px 12px;
    font: inherit; color: var(--text);
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.correct { margin-top: 8px; }
.stage-form textarea {
    width: 100%; padding: 10px 12px;
    font: inherit; color: var(--text);
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface); resize: vertical;
}
.stage-form .button { justify-self: start; }
.hint { font-size: 14px; color: var(--text-muted); }
.error { color: var(--error); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-entry { display: flex; gap: 14px; }
.timeline-rail { display: flex; flex-direction: column; align-items: center; }
.timeline-dot { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: #B8C1CE; }
.timeline-dot--info { background: var(--info-dot); }
.timeline-dot--ok { background: var(--green); }
.timeline-dot--warn { background: var(--warning); }
.timeline-line { flex: 1; width: 2px; min-height: 26px; background: var(--line-soft); }
.timeline-entry:last-child .timeline-line { visibility: hidden; }
.timeline-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-bottom: 16px; }
.timeline-what { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.timeline-what strong { font-weight: 700; }
.timeline-meta { font-size: 13px; color: var(--text-muted); }

/* The course of an application (the partner's customer card) */

/* On a phone the list and the details take turns: the details open on their own screen. */
@media (max-width: 1099px) {
    .tasks.has-selection .tasks-list { display: none; }
    .tasks.has-selection .back-link { display: inline-flex; }
}

@media (min-width: 700px) {
    .application-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
    .sidebar { display: flex; }
    .topbar { display: flex; }
    .mobile-header, .bottom-nav { display: none; }
    .main-col { margin-left: var(--sidebar-width); }
    .content { padding: 28px clamp(16px, 2.6vw, 36px) 40px; }
    .page-header h1 { font-size: 28px; }
}

@media (min-width: 1100px) {
    .split { grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); }
}

.price-info { margin: 8px 0 0; padding-left: 20px; overflow-wrap: anywhere; }

/* Customers, tickets: search, list, card */
.page-header--actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 12px; max-width: var(--reading-max); }
.search input {
    width: 100%; min-width: 0; min-height: var(--control-height); padding: 10px 12px;
    font: inherit; color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: 10px;
}
.back-link--always { display: inline-flex; }
.customer-title { margin: 8px 0 4px; font-size: 20px; }
.application-section > h2 { margin: 8px 0; font-size: 18px; }
.supply-block { padding: 8px 0; border-top: 1px solid var(--border); }
.supply-block:first-of-type { border-top: 0; }
.supply-block p { margin-bottom: 4px; overflow-wrap: anywhere; }
.doc-checks { list-style: none; margin: 0 0 12px; padding: 0; }
.doc-checks li { display: flex; gap: 8px; padding: 4px 0; overflow-wrap: anywhere; }
.doc-checks .is-done > span:first-child { color: var(--green-text); font-weight: 700; }
.doc-checks .is-missing > span:first-child { color: var(--warning); font-weight: 700; }
.new-ticket { margin-bottom: 12px; padding: 12px; }
.new-ticket > summary { list-style: none; }
.new-ticket > summary::-webkit-details-marker { display: none; }
.messages { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; }
.message { padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); max-width: 90%; }
.message-mine { justify-self: end; background: var(--bg); }
.message-meta { margin-bottom: 4px; font-size: 14px; }
.message-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: grid; gap: 4px; padding: 16px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--navy); }
.choice-list { display: grid; gap: 8px; margin-bottom: 16px; }
.choice-list .check { justify-content: flex-start; }

/* The partner's «Νέα αίτηση»: the plans of step 2 */
.field select { width: 100%; }
.kwh-form { display: grid; grid-template-columns: auto minmax(0, 120px) auto; align-items: center; gap: 8px; margin-bottom: 8px; }
.kwh-form input {
    width: 100%; min-width: 0; min-height: var(--control-height); padding: 10px 12px;
    font: inherit; color: var(--ink); border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.plan-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-choice {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start;
    padding: 14px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer;
}
.plan-choice:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.plan-choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.plan-choice__main { display: grid; min-width: 0; overflow-wrap: anywhere; }
.plan-choice__name { font-weight: 600; }
.plan-choice__price { grid-column: 2; display: grid; font-size: 14px; }
.plan-choice__price strong { font-size: 16px; color: var(--navy); }
.done-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; margin: 8px auto 16px; border-radius: 50%;
    font-size: 40px; font-weight: 700; color: #fff; background: var(--green);
}
.auth .done-check { display: flex; }

@media (min-width: 700px) {
    .plan-choice { grid-template-columns: auto minmax(0, 1fr) auto; }
    .plan-choice__price { grid-column: auto; text-align: right; }
}

/* Καρτέλα πελάτη: docs/mockups/Customer-Card.html */
.crumb { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-bottom: 20px; font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.customer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 20px; }
.avatar--lg { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.customer-head__main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.customer-head__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.customer-head__title h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.customer-head__contact { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.customer-head__contact > span { display: inline-flex; align-items: center; gap: 5px; overflow-wrap: anywhere; min-width: 0; }
.customer-head__contact a { color: var(--ink-2); text-decoration: none; }
.customer-head__contact .icon { color: var(--ok); stroke-width: 3; }
.customer-head__meta { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; font-size: 13px; }
.customer-head__meta > div { display: flex; flex-direction: column; gap: 3px; }
.customer-head__meta dt { color: var(--text-muted); }
.customer-head__meta dd { margin: 0; font-weight: 600; }
.customer-body { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.customer-main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.customer-aside { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.aside-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; max-width: none; }
.aside-card h2 { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.aside-card form { margin: 0; max-width: none; }
.aside-card textarea { width: 100%; min-height: 90px; resize: vertical; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); border: 1px solid var(--border); border-radius: 10px; }
.aside-card .stage-form { padding: 0; border: 0; }
.underline-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.underline-tabs a {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 14px; margin-bottom: -1px;
    font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.underline-tabs a span { font-size: 12px; color: var(--text-muted); }
.underline-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--navy); }
.underline-tabs a[aria-current="page"] span { color: var(--ok); }
.supply-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.supply-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.supply-card__head { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.supply-card__head .muted { font-size: 13px; }
.supply-card__address { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.facts--small { padding: 14px; gap: 10px 14px; }
.facts--small dt { font-size: 13px; }
.facts--small dd { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.application-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; color: var(--ink); text-decoration: none; }
.application-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.application-card__title { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 15px; font-weight: 600; }
.application-card__title .muted { font-size: 13px; font-weight: 400; }
.steps { display: flex; gap: 8px; }
.steps__step { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.steps__bar { height: 6px; border-radius: 999px; background: #E9EDF2; }
.steps__step.is-done { color: var(--ok-fg); }
.steps__step.is-done .steps__bar { background: var(--green); }
.file-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #F1F3F6; font-size: 14px; }
.file-row:last-child { border-bottom: 0; }
.file-row__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--field); display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.file-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.file-row__main > a, .file-row__main > span:first-child { font-weight: 600; color: var(--ink); }
.file-row__main .muted { font-size: 12px; }
.button-small { min-height: 40px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
/* Καρτέλα πελάτη → Έγγραφα: «Λήψη για τον πάροχο» ανά παροχή και ανέβασμα εγγράφου από το back office. */
.provider-packs, .upload-document { display: flex; flex-direction: column; gap: 10px; padding: 18px; max-width: none; }
/* «Για τον πάροχο» (ARCHITECTURE.md ενότητα 20): πρώτα ο υπολογιστής, δύο στήλες, αντιγραφή ανά πεδίο. */
.provider-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; align-items: flex-start; }
.provider-head h1 { margin: 0 0 4px; font-size: 22px; }
.provider-head .muted { margin: 2px 0; font-size: 13.5px; }
.provider-packs--head { padding: 0; flex: 0 1 420px; }
.provider-packs__row { display: flex; flex-wrap: wrap; gap: 8px; }
.provider-packs .is-disabled { opacity: .5; pointer-events: none; }
.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
@media (max-width: 899px) { .provider-grid { grid-template-columns: minmax(0, 1fr); } }
.provider-section h2 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--navy); }
.provider-rows { margin: 0; display: flex; flex-direction: column; }
.provider-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2px 12px; padding: 7px 0; border-bottom: 1px solid #F1F3F6; align-items: center; }
.provider-row:last-child { border-bottom: 0; }
.provider-row dt { font-size: 12.5px; color: var(--text-muted); }
.provider-row dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
.provider-row__value { overflow-wrap: anywhere; }
.provider-row.is-empty dd { color: var(--text-muted); font-weight: 400; }
.provider-row.is-over dd .provider-row__value { color: #9A4A10; }
.provider-row__limit { margin-left: 6px; font-size: 11.5px; }
.provider-row.is-over .provider-row__limit { color: #9A4A10; font-weight: 600; }
.provider-row__note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: #9A4A10; }
.copy { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--navy); cursor: pointer; }
.copy.is-copied { background: var(--ok-bg); border-color: #CFE6D1; color: var(--ok); }
.task-panel__links { display: flex; flex-wrap: wrap; gap: 8px; }
.provider-packs h2, .upload-document h2 { margin: 0; font-size: 15px; font-weight: 600; }
.provider-packs p { margin: 0; font-size: 13px; }
.provider-packs .file-row { flex-wrap: wrap; padding: 12px 0; }
.upload-document .field { margin: 0; }
.upload-document select, .upload-document input[type=file] { width: 100%; min-width: 0; }
.upload-document .button { align-self: flex-start; }
.page-search {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px; max-width: var(--reading-max);
    min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--field); color: var(--text-muted);
}
.page-search input { flex: 1; min-width: 0; min-height: 42px; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
@media (min-width: 900px) {
    .page-search { display: none; }
}

/* Οι πελάτες μου (συνεργάτης): docs/mockups/Partner-Clients.html */
.page-band .page-header { margin-bottom: 14px; }
@media (max-width: 899px) {
    /* On the phone the title and the search sit in the white band under the header. */
    .page-band { margin: -16px -20px 16px; padding: 2px 20px 14px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
    .page-band .page-search { margin-bottom: 0; }
}
.summary-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: var(--reading-max); margin-bottom: 14px; }
.summary-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.summary-card strong { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.summary-card--dark { background: var(--navy); border-color: var(--navy); color: #C9D3E3; }
.summary-card--dark strong { color: #fff; }
.summary-card__money { color: var(--ok) !important; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 14px; }
.chips a {
    flex: none; display: inline-flex; align-items: center;
    min-height: 40px; padding: 0 14px; border-radius: 999px;
    font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none;
    color: var(--ink-2); background: var(--surface); border: 1px solid var(--border);
}
.chips a[aria-current="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.client-cards { display: flex; flex-direction: column; gap: 10px; max-width: var(--reading-max); }
.client-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); text-decoration: none; }
.client-card__top { display: flex; align-items: center; gap: 12px; }
.client-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.client-card__name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.client-card__program { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-card .stage { padding: 4px 9px; font-size: 11px; }
.client-card__note { padding: 8px 10px; border-radius: 10px; font-size: 13px; overflow-wrap: anywhere; }
/* A small heading of a group of choices inside a form (e.g. «Κανόνες καταλληλότητας» of a plan). */
.field-label { margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.client-card__note--warn { font-weight: 500; color: var(--warn-fg); background: #FFF7EF; }
/* Applications «Σε εξέλιξη» (ARCHITECTURE.md, section 20): above the customers, «Συνέχεια» or «Διαγραφή». */
.client-cards--drafts { margin-bottom: 16px; }
.client-card--draft .client-card__top { color: inherit; text-decoration: none; }
.client-card__actions { display: flex; gap: 8px; }
.client-card__actions > * { flex: 1; min-width: 0; }

/* Νέα αίτηση συνεργάτη: docs/mockups/Partner-Step5.html */
@media (max-width: 899px) {
    /* The steps take the whole phone screen: their own header, no app menu. */
    .is-focus .mobile-header, .is-focus .bottom-nav { display: none; }
    .is-focus .content { padding: 0 0 0; }
}
.wizard-head {
    display: flex; flex-direction: column; gap: 18px;
    max-width: 560px; margin: 0 auto;
    padding: 18px 20px 16px; background: var(--surface); border-bottom: 1px solid var(--line-soft);
}
.wizard-head__bar { display: flex; align-items: center; justify-content: space-between; }
.wizard-head__bar .logo img { height: 30px; }
.icon-button--soft { border: 0; background: var(--field); color: var(--navy); }
.wizard-progress { display: flex; flex-direction: column; gap: 10px; }
.wizard-segments { display: flex; gap: 6px; }
.wizard-segment { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.wizard-segment.is-current { color: var(--ink); }
.wizard-segment.is-done { color: var(--ok); }
.wizard-segment__bar { display: block; width: 100%; height: 6px; border-radius: 999px; background: #E9EDF2; overflow: hidden; }
.wizard-segment__bar > span { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--green); transition: width 0.4s ease; }
.wizard-segment__bar > .is-full { width: 100%; }
.wizard-segment__bar > .is-part-40 { width: 40%; }
.wizard-segment__bar > .is-part-85 { width: 85%; }
.wizard-segment__bar > .is-part-90 { width: 90%; }
.wizard-progress__labels { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.wizard-progress__percent { color: var(--ok); }
.wizard { display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--surface); }
.content .wizard { max-width: 560px; }
.wizard-body { display: flex; flex-direction: column; gap: 18px; padding: 22px 20px; }
.wizard-title { display: flex; flex-direction: column; gap: 6px; }
.wizard-title h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.wizard-title p { margin: 0; font-size: 14px; color: var(--text-muted); }
/* Βήμα 1 (docs/mockups/Partner-Application.html, docs/DESIGN.md ενότητα 8): τίτλος με μικρά δευτερεύοντα κουμπιά,
   επιλογές με κλικ («pick»), πράσινο ό,τι ήρθε από τον λογαριασμό, ένα μεγάλο κουμπί κάτω. */
.wizard-title--row { flex-direction: row; align-items: center; gap: 8px; }
.wizard-title--row h1 { flex: 1; min-width: 0; font-size: 22px; }
.wizard-title--row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wizard--lead { padding: 18px 20px 0; gap: 8px; }
.wizard--lead .pick-row { margin-bottom: 4px; }
.wizard-title--row .pick-file, .wizard-title--row .help-dot { flex: none; }
/* Στενό κινητό (έως 360px): ο τίτλος παίρνει δική του γραμμή, τα μικρά κουμπιά από κάτω δεξιά. */
@media (max-width: 360px) {
    .wizard-title--row { flex-wrap: wrap; justify-content: flex-end; }
    .wizard-title--row h1 { flex-basis: 100%; }
}
.pick-file { gap: 6px; }
.pick-file.is-ok { color: var(--ok); border-color: #CFE6D1; background: #F6FBF6; }
.help-dot { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--field); color: var(--navy); font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.pick-row { margin: 0; padding: 0; border: 0; min-width: 0; }
.pick-row legend { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 11px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--navy); cursor: pointer; }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.pick--ai { border-color: #CFE6D1; background: #F6FBF6; color: var(--ok); }
.pick--ai:has(input:checked) { background: var(--ok); border-color: var(--ok); color: #fff; }
.pick small { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: #EAF0F8; color: var(--navy); }
.pick:has(input:checked) small { background: rgba(255, 255, 255, 0.18); color: #fff; }
.pick--small { min-height: 26px; padding: 3px 8px; font-size: 12px; list-style: none; }
.pick--small::-webkit-details-marker { display: none; }
.pick:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
.note-ok { border-left-color: var(--ok); background: #F6FBF6; color: #235E2C; font-size: 13px; }
.note-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.note-row span { flex: 1; }
.note-row .icon { color: var(--navy); }
.wizard-body .pick-row .note { margin-top: 8px; padding: 8px 11px; font-size: 12.5px; }
.kwh-edit { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.kwh-edit .kwh-form { margin: 0; }
.wizard-body legend .now { color: #9A4A10; }
.plan-choice__save { color: var(--ok); font-weight: 700; }
.wizard-foot__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wizard-foot__row .wizard-foot__hint { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wizard-foot__row .button { gap: 6px; white-space: nowrap; }
.bill-form { max-width: 560px; margin: 0 auto; padding: 0 20px 20px; }
.bill-form input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sheet { width: min(100%, 560px); max-width: 100%; margin: auto 0 0; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: 0 -8px 30px rgba(15, 27, 45, 0.25); }
.sheet::backdrop { background: rgba(15, 27, 45, 0.35); }
.sheet__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 24px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
.sheet__body p { margin: 0; font-size: 13px; }
.sheet__body .field { margin: 0; }
.sheet__row { display: flex; gap: 8px; }
.sheet__row .button { flex: 1; }
@media (min-width: 600px) { .sheet { margin: auto; border-radius: 22px; } }
.wizard-body .field { margin: 0; }
.wizard-body legend, .wizard-body .field > label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.wizard-foot {
    position: sticky; bottom: 0;
    display: flex; flex-direction: column; gap: 8px;
    padding: 14px 20px 26px; background: var(--surface); border-top: 1px solid var(--line-soft);
}
.wizard-foot__hint { text-align: center; font-size: 12px; color: var(--text-muted); }
.wizard-foot__hint:empty { display: none; }
.button-large { min-height: 54px; border-radius: 14px; font-size: 16px; }
.button-soft { color: var(--navy); background: var(--field); border-color: var(--field); }
.button.is-waiting { color: var(--text-muted); background: #E9EDF2; }
.option-list { display: flex; flex-direction: column; gap: 8px; }
.option-row { display: flex; flex-wrap: wrap; gap: 8px; }
.option-row .option { flex: 1 1 120px; }
.option {
    display: flex; align-items: center; gap: 12px;
    min-height: 52px; padding: 12px 14px; border-radius: 14px;
    border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 15px; font-weight: 500;
}
.option:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.option input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.supply-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.supply-chip__main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; overflow-wrap: anywhere; }
.supply-chip__main .muted { font-size: 13px; }
.upload-cards { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) {
    .upload-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .upload-cards .scan-button { justify-self: start; }
}
/* ΥΔΕ: the instruction under each document and the example sketch of a floor plan. */
.upload-hint { margin: -4px 4px 0; }
.upload-example { margin: 0 4px; display: flex; flex-direction: column; gap: 4px; }
.upload-example img { width: 100%; max-width: 320px; height: auto; border: 1px solid var(--border); border-radius: 12px; }
.upload-example figcaption { font-size: 13px; }
.yde-steps-list { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.upload-card {
    position: relative; display: flex; align-items: center; gap: 14px;
    padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
}
.upload-card:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
.upload-card__mark { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--field); color: var(--navy); }
.upload-card__done { display: none; }
.upload-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.upload-card__title { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.upload-card__tag { font-size: 13px; color: var(--text-muted); }
.upload-card__hint { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
/* «Βρέθηκαν μέχρι τώρα» και προτάσεις διόρθωσης του Βήματος «Χαρτιά» (docs/mockups/Partner-Application.html). */
.findings { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; }
.findings h3 { margin: 0 0 2px; font-size: 13px; color: var(--ink-2); }
.findings__row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.findings__row span { color: var(--text-muted); }
.findings__row b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.findings__ok { color: var(--ok); }
.findings__warn { color: #9A4A10; }
.findings__pending { margin: 2px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #CFD6E0; border-top-color: var(--navy); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.suggestion p { margin: 0 0 8px; font-size: 13px; }
.suggestion__row { display: flex; gap: 8px; }
.suggestion__row .button { flex: 1; min-height: 44px; }
.upload-card[data-required] .upload-card__tag { color: #9A4A10; }
.upload-card__action { flex: none; font-size: 13px; font-weight: 600; color: var(--navy); }
.upload-card .error { font-size: 13px; }
.upload-card input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-card.is-done { background: #F6FBF6; border-color: #CFE6D1; }
/* Ένδειξη, όχι μπλοκάρισμα: π.χ. ταυτότητα με μία όψη. */
.upload-card.is-warn { background: var(--warn-bg); border-color: #F0C999; }
.upload-card.is-warn .upload-card__tag, .upload-card.is-warn .upload-card__mark { color: #9A4A10; }
.upload-card.is-done .upload-card__mark { background: var(--ok); color: #fff; }
.upload-card.is-done .upload-card__todo, .upload-card.is-done .upload-card__action { display: none; }
.upload-card.is-done .upload-card__done { display: flex; }
.upload-card.is-done .upload-card__done .icon { stroke-width: 3.2; }
.upload-card.is-done .upload-card__tag { color: var(--ok); }
.info-box { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 12px; background: var(--bg); font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.info-box .icon { margin-top: 1px; color: var(--text-muted); }
.info-box span { flex: 1; }
.info-box input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.wizard-done { min-height: calc(100vh - 0px); padding: 28px 24px 30px; gap: 16px; }
.wizard-done__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.wizard-done__body h1 { margin: 4px 0 0; font-size: 25px; font-weight: 700; letter-spacing: -0.01em; }
.wizard-done__body p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.wizard-done__actions { display: flex; flex-direction: column; gap: 10px; }
.done-badge { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--ok-bg); }
.done-badge > span { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; }
.done-badge .icon { stroke-width: 2.8; }
@media (min-width: 900px) {
    .wizard-head { border: 1px solid var(--border); border-bottom-color: var(--line-soft); border-radius: 16px 16px 0 0; }
    .wizard { border: 1px solid var(--border); border-top: 0; border-radius: 0 0 16px 16px; overflow: hidden; }
    .wizard-done { border-top: 1px solid var(--border); border-radius: 16px; min-height: 0; }
}
.tickets-filter { align-self: flex-start; margin-bottom: 12px; }
.tasks-list > .card-list + .card-list, .new-ticket { margin-bottom: 12px; }

/* Λογαριασμός πελάτη: docs/mockups/Customer-Account.html */
.account-header { display: flex; flex-direction: column; gap: 4px; }
.page-band .account-header { margin-bottom: 0; }
@media (max-width: 899px) {
    /* As the designs: the header and the title band are one white block. */
    .mobile-header:has(~ .content .page-band) { border-bottom-color: transparent; }
    .page-band:has(.account-header) { padding-bottom: 18px; }
}
.account-header h1 { margin: 0; }
.account-header__hello { font-size: 14px; color: var(--text-muted); }
.account { display: flex; flex-direction: column; gap: 14px; max-width: var(--reading-max); }
.account-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.account-card--warn { border-color: #F3D9BF; }
.account-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.account-card__head .stage { align-self: flex-start; }
.account-card__names { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.account-card__title { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.account-card__sub { font-size: 13px; color: var(--text-muted); overflow-wrap: anywhere; }
.account-card form { margin: 0; max-width: none; }
.steps--small .steps__step { font-size: 11px; }
.steps__step.is-attention { color: var(--warn-fg); }
.steps__step.is-attention .steps__bar { background: var(--warning); }
.account-info { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: #F3F7FC; font-size: 13px; line-height: 1.45; color: #1F3556; }
.account-info .icon { margin-top: 1px; color: var(--info-fg); stroke-width: 2; }
.account-info--warn { background: #FFF7EF; color: var(--warn-fg); }
.account-info--warn .icon { color: var(--warn-fg); }
.account-info a { color: inherit; font-weight: 600; }
.account-label { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.account-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; font-size: 13px; }
.account-facts > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.account-facts dt { color: var(--text-muted); }
.account-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.account-facts .is-soon { background: #FFF7EF; }
.account-facts .is-soon dt, .account-facts .is-soon dd { color: var(--warn-fg); }
.account-button { min-height: 48px; }
.account-done { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 500; color: var(--ok-fg); background: var(--ok-bg); }
.account-done .icon { flex: none; margin-top: 2px; stroke-width: 2.6; }
.account-add {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px;
    border: 1.5px dashed #C3CAD5; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 14px;
}
.account-add .icon { stroke-width: 2.2; }
.account-section { display: flex; flex-direction: column; gap: 12px; }
.account-section h2 { margin: 0; font-size: 15px; font-weight: 600; }
.account-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.account-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; overflow-wrap: anywhere; }
.account-list li > span { flex: 1; min-width: 0; }
.switch-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.switch-row:first-of-type { border-top: 0; padding-top: 0; }
.switch-row input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }
.switch-row span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 500; }
.switch-row small { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.icon-button--bell { position: relative; border: 0; background: var(--field); }
.icon-button--bell .bell-dot { top: 10px; right: 11px; }
.account-facts__wide { grid-column: 1 / -1; }
.account form { margin: 0; max-width: none; }
.account .hint { margin: 0; }
.field input, .field select { font-size: 16px; }
.supply-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.supply-card__top .stage { align-self: flex-start; }
.facts .is-soon dt, .facts .is-soon dd { color: var(--warn-fg); }
.mobile-header__bell { margin-left: auto; margin-right: 8px; }

/* «Καμπάνιες» του διαχειριστή και το link του συνεργάτη: δύο πεδία δίπλα-δίπλα όπου χωράνε, τα αποτελέσματα σε μία
   γραμμή που αναδιπλώνεται, το QR σε λευκό κουτί. */
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 12px; }
.campaign-results { gap: 4px 14px; font-size: 14px; color: var(--text-muted); }
.campaign-link { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start; }
.campaign-link__qr { flex: none; width: 168px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.campaign-link__qr svg { display: block; width: 100%; height: auto; }
.campaign-link__main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.campaign-link__url { font-size: 14px; overflow-wrap: anywhere; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.campaign-link__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.competitor-box { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--bg); color: var(--text-muted); }
.competitor-box h2 { margin: 0 0 8px; font-size: 15px; color: var(--text-muted); }
.competitor-box__list { margin: 0; padding: 0; list-style: none; }
.competitor-box__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.competitor-box__list li:first-child { border-top: 0; }
.competitor-box__name { min-width: 0; overflow-wrap: anywhere; }
.competitor-box .hint { margin: 8px 0 0; font-size: 13px; }
.steps--five { gap: 6px; }
.steps--five .steps__step { min-width: 0; font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }

/* Ρυθμίσεις → «Αριθμοί της αρχικής»: six small groups side by side, one under the other on a phone. */
.home-counters-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px 16px; }

/* Ρυθμίσεις → «Ραντεβού»: κάθε μέρα σε μία γραμμή, από–έως. */
.availability-days { display: grid; gap: 8px; margin-bottom: 12px; }
.availability-day { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; max-width: 420px; }
.availability-day input { min-width: 0; font-size: 16px; }
.availability-closed { width: 100%; min-width: 0; resize: vertical; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }

/* ENERGYS Partner: the notifications on the phone in «Προφίλ» (ARCHITECTURE.md, section 19). */
.push-state { margin: 0 0 12px; font-weight: 600; color: var(--text, #0F1B2D); }
.push-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.push-actions [hidden] { display: none; }
.push-actions:not(:has(button:not([hidden]))) { margin-bottom: 8px; }

/* ENERGYS Partner: «Σάρωση με κάμερα» under the ID card and the bill, and the camera over the whole screen
   (ARCHITECTURE.md, section 19; public/js/partner-scan.js). */
.scan-button {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-end; min-height: 44px; margin-top: -4px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: 12px; background: #FFFFFF; color: var(--navy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.scan-button[hidden] { display: none; }
.scan-button:focus-visible { outline: 3px solid #0B8ACE; outline-offset: 2px; }
.is-scanning, .is-scanning body { overflow: hidden; }
.scan { position: fixed; inset: 0; z-index: 900; background: #0F1B2D; color: #FFFFFF; }
.scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan__frame { position: absolute; border: 3px solid #FFFFFF; border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(15, 27, 45, .55); }
.scan__hint, .scan__error {
    position: absolute; left: 16px; right: 16px; top: calc(12px + env(safe-area-inset-top)); margin: 0; padding: 10px 14px;
    border-radius: 12px; background: rgba(15, 27, 45, .8); font-size: 15px; line-height: 1.4; text-align: center;
}
.scan__error { top: auto; bottom: calc(108px + env(safe-area-inset-bottom)); background: #FFFFFF; color: #8A2A12; font-weight: 600; }
.scan__error[hidden], .scan__review[hidden] { display: none; }
.scan__bar {
    position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.scan__text { justify-self: start; min-height: 44px; padding: 0 12px; border: 0; background: none; color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.scan__shoot { width: 72px; height: 72px; border: 5px solid #FFFFFF; border-radius: 50%; background: rgba(255, 255, 255, .25); cursor: pointer; }
.scan__shoot:focus-visible, .scan__text:focus-visible { outline: 3px solid #0B8ACE; outline-offset: 3px; }
.scan__review {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); background: #0F1B2D;
}
.scan__preview { display: flex; align-items: center; justify-content: center; min-height: 0; flex: 1; width: 100%; }
.scan__preview canvas { display: block; max-width: 100%; max-height: 100%; border-radius: 12px; background: #FFFFFF; }
.scan__actions { display: flex; gap: 12px; width: min(100%, 420px); }
.scan__actions .button { flex: 1; }
@media (orientation: landscape) and (max-height: 500px) {
    .scan__bar { top: 0; left: auto; width: 120px; grid-template-columns: 1fr; grid-template-rows: 1fr auto 1fr; justify-items: center; padding: 16px calc(16px + env(safe-area-inset-right)) 16px 16px; }
    .scan__text { justify-self: center; align-self: start; }
    .scan__hint { right: 136px; }
    .scan__error { right: 136px; bottom: 16px; }
    .scan__review { flex-direction: row; }
    .scan__preview { height: 100%; }
    .scan__actions { flex-direction: column; width: 160px; }
}

/* ENERGYS Partner: «Θα σταλεί μόλις βρεθεί σήμα» above the bottom menu (ARCHITECTURE.md, section 19). */
.outbox {
    position: fixed; z-index: 500; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px;
    max-width: 560px; margin: 0 auto; padding: 10px 12px 10px 14px; border: 1px solid #F3D3B5; border-radius: 12px; background: #FFF7EF; color: #0F1B2D;
    font-size: 15px; line-height: 1.4; box-shadow: 0 8px 24px rgba(15, 27, 45, .10);
}
.outbox[hidden] { display: none; }
.outbox .icon { flex: none; color: #B4561A; }
.outbox span { flex: 1; min-width: 0; }
.outbox[data-tone="sent"] { border-color: #CFE6D1; background: #F6FBF6; }
.outbox[data-tone="sent"] .icon { color: var(--ok); }
.outbox[data-tone="error"] { border-color: #F1C7C0; background: #FDF3F1; }
.outbox__delete { flex: none; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: #FFFFFF; color: var(--navy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.outbox:not([data-tone="error"]) .outbox__delete { display: none; }
@media (min-width: 1024px) { .outbox { bottom: 24px; } }

/* ENERGYS Partner: «Είσοδος με Face ID / δαχτυλικό» in «Προφίλ» and at the sign-in (ARCHITECTURE.md, section 19). */
.passkey-list { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.passkey-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.passkey-list li > span { display: flex; flex-direction: column; min-width: 0; }
.passkey-list form { margin: 0; }
.passkey-login { margin: 4px 0 20px; }
.passkey-login[hidden], .passkey-add[hidden] { display: none; }

/* Βήμα «Παροχή» προσυμπληρωμένο (docs/mockups/Partner-Application.html): η πηγή κάθε πεδίου, ✓ όταν τα χαρτιά συμφωνούν,
   ⚠ «Ασυμφωνία: έλεγξε» όταν όχι, έντονο πλαίσιο σε ό,τι πρέπει να γραφτεί. */
.wizard-body .field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.wizard-body .field__label { white-space: nowrap; }
.field__src { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.field__src.is-ok { color: var(--ok-fg); }
.field__src.is-warn { color: var(--warn-fg); }
.field__src.is-need { color: var(--navy); }
.wizard-body .field input.is-ok, .wizard-body .field select.is-ok { border-color: #CFE6D1; background: var(--ok-bg); }
.wizard-body .field input.is-warn, .wizard-body .field select.is-warn { border-color: #F0C999; background: var(--warn-bg); }
.wizard-body .field input.is-need, .wizard-body .field select.is-need { border: 2px solid var(--navy); }
.wizard-body .field .field__warn { margin-top: 6px; padding: 8px 11px; font-size: 12.5px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* Όνομα και επώνυμο ολόκληρα: στο κινητό το ένα κάτω από το άλλο. */
@media (max-width: 479px) { .field-grid--stack { grid-template-columns: minmax(0, 1fr); } }
.field__fact { display: flex; align-items: center; min-height: var(--control-height); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); font-weight: 600; overflow-wrap: anywhere; }
.field__fact.is-ok { border-color: #CFE6D1; background: var(--ok-bg); color: var(--ok-fg); }
.field__fact.is-need { color: var(--text-muted); font-weight: 500; }
.field--details summary { display: inline-flex; cursor: pointer; }
.field--details summary::-webkit-details-marker { display: none; }
.field--details[open] summary { margin-bottom: 8px; }

/* Βήμα «Αποστολή» (docs/mockups/Partner-Application.html): μία γραμμή ανά κομμάτι, ✓ πράσινο, «Αλλαγή» με ένα πάτημα. */
.send-rows { display: flex; flex-direction: column; gap: 10px; }
.send-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); color: inherit; text-decoration: none; }
.send-row.is-ok { border-color: #CFE6D1; background: var(--ok-bg); }
.send-row.is-warn { border-color: #F0C999; background: var(--warn-bg); }
.send-row__mark { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; }
.send-row.is-warn .send-row__mark { background: var(--warning); }
.send-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.send-row__text b { font-size: 14.5px; }
.send-row__text span { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.send-row__edit { flex: none; font-size: 12.5px; font-weight: 600; color: var(--navy); }

/* Η ταυτότητα ως ένα έγγραφο με δύο όψεις (docs/mockups/Partner-Application.html): η κάρτα, και μέσα της οι δύο όψεις. */
.upload-card--sides { cursor: default; align-items: flex-start; }
.upload-card--sides .upload-card__action { display: none; }
.upload-sides { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.upload-side { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--border); background: var(--surface); cursor: pointer; }
.upload-side:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
.upload-side__mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--field); color: var(--navy); }
.upload-side__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.upload-side__text b { font-size: 13px; font-weight: 600; }
.upload-side__text span { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.upload-side__action { flex: none; font-size: 12.5px; font-weight: 600; color: var(--navy); }
.upload-side input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-side.is-done { border-style: solid; border-color: #CFE6D1; background: #F6FBF6; }
.upload-side.is-done .upload-side__mark { background: var(--ok); color: #fff; }
.upload-side.is-done .upload-side__text span { color: var(--ok); }
.upload-card--sides .scan-button { align-self: flex-start; }

/* «Link πελάτη» (ARCHITECTURE.md ενότητα 20): τα 3 βήματα του πελάτη μέσα στην κάρτα. */
.link-step__title { margin: 16px 0 8px; font-size: 15px; }
.auth .upload-cards, .auth .send-rows, .auth .findings { margin-bottom: 14px; }
.auth .field__label { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.auth .field input.is-ok, .auth .field select.is-ok { border-color: #CFE6D1; background: var(--ok-bg); }
.auth .field input.is-warn { border-color: #F0C999; background: var(--warn-bg); }
.auth .field input.is-need { border: 2px solid var(--navy); }
.auth .picks { margin-bottom: 12px; }

/* The back office team (ARCHITECTURE.md, section 3): who has each task, and taking one. */
.task-row__owner { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--bg); color: var(--text-muted); }
.task-row__owner.is-free { background: transparent; border: 1px dashed var(--line); }
.task-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.inline-form { display: inline; }
@media (max-width: 480px) { .task-row__owner { width: 22px; height: 22px; font-size: 10px; } }
.transfer-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; margin-top: 8px; }
.transfer-form select { flex: 1 1 160px; min-width: 0; max-width: 100%; padding: 6px 8px; }
.filters select { font: inherit; font-size: 16px; min-height: 40px; padding: 6px 10px; }
.transfer-form select { font: inherit; font-size: 16px; min-height: 40px; }
.team-active { flex-basis: 100%; margin: 0; font-size: 13px; }
.confirm-panel select { font: inherit; font-size: 16px; min-height: 40px; max-width: 100%; }

/* «Το ENERGYS Partner στο tablet» (app/partner/tablet.blade.php): the pictures of the steps and the shots of the app. */
.guide ol { margin: 12px 0 0; padding-left: 20px; }
.guide li + li { margin-top: 6px; }
.guide__picture { display: block; width: 100%; max-width: 420px; height: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.guide__shot { margin: 0 0 20px; }
.guide__shot:last-child { margin-bottom: 0; }
.guide__shot img { display: block; width: 100%; max-width: 640px; height: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.guide__shot figcaption { margin-top: 8px; max-width: 640px; color: var(--text-muted); font-size: 14px; }
.guide-link { margin-top: 12px; }

/* A list of plans without a choice (the partner's «Τιμοκατάλογος», the demo): name and facts on the left, the cost on the right. */
.plan-list .plan-choice { grid-template-columns: minmax(0, 1fr) auto; color: inherit; text-decoration: none; cursor: default; }
.plan-list .plan-choice__price { grid-column: 2; grid-row: 1; text-align: right; }
.price-list { max-width: var(--reading-max); margin-top: 16px; }
.price-list__title { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--text-muted); }
.price-list .hint { margin-top: 10px; }
/* «Νέα αίτηση» next to the title «Οι πελάτες μου», only on a computer: on a phone the «+» of the bottom menu does it. */
.page-header--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.new-application { display: none; gap: 6px; white-space: nowrap; }
@media (min-width: 900px) { .new-application { display: inline-flex; } }

/* The demo of ENERGYS Partner (resources/views/partner-demo/): the green «DEMO» under the logo of the sign-in, the
   discreet «Θέλω να γίνω συνεργάτης» inside the app, and the «i» popup that says what the tapped thing does. */
.demo-badge { display: inline-block; margin: -12px 0 20px; padding: 3px 10px; border-radius: 999px; background: var(--green); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.demo a.summary-card { text-decoration: none; }
/* The sign-in of the demo on a phone: centred, but never cut off at the top on a small screen or with large text. */
.demo .auth { min-height: 100vh; min-height: 100dvh; justify-content: flex-start; }
.demo .auth > :first-child { margin-top: auto; }
.demo .auth > :last-child { margin-bottom: auto; }
.demo .auth .muted { font-size: 14px; }
.demo-prices { margin-top: 20px; max-width: var(--reading-max); }
.demo-prices h2 { margin: 0 0 4px; font-size: 17px; }
.demo-prices > .muted { margin: 0 0 12px; font-size: 13px; }
.demo-prices__more { margin: 12px 0 0; font-size: 14px; }
.demo-join { margin: 24px 0 8px; text-align: center; font-size: 14px; color: var(--text-muted); }
.demo-pop {
  position: fixed; z-index: 600; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px 11px;
  border: 1px solid var(--border); border-radius: 4px 14px 14px 14px; background: var(--surface); color: var(--ink);
  font-size: 14px; line-height: 1.45; box-shadow: 0 10px 30px rgba(15, 27, 45, .18); animation: demo-pop-in .14s ease-out;
}
.demo-pop[hidden] { display: none; }
.demo-pop p { margin: 0; }
.demo-pop img { flex: none; margin-top: 1px; }
.demo-pop::after { content: ""; position: absolute; left: var(--arrow, 24px); width: 12px; height: 12px; margin-left: -6px; background: var(--surface); border: 1px solid var(--border); transform: rotate(45deg); }
.demo-pop--below::after { top: -7px; border-right: 0; border-bottom: 0; }
.demo-pop--above::after { bottom: -7px; border-left: 0; border-top: 0; }
@keyframes demo-pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .demo-pop { animation: none; } }
.demo-wizard { position: fixed; inset: 0; z-index: 500; overflow-y: auto; background: var(--bg); }
.demo-wizard[hidden] { display: none; }
.demo-wizard .wizard { min-height: 100%; }
.demo-wizard .wizard-head { width: 100%; } /* inside the column of .wizard, the auto margins would shrink it to its content */
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.demo-step {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 14px;
  font: inherit; text-align: left; color: var(--ink); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer;
}
.demo-step[aria-current="step"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.demo-step__number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.demo-step__main { display: grid; gap: 2px; min-width: 0; }
.demo-step__name { font-weight: 600; }
.demo-step__line { font-size: 13px; color: var(--text-muted); }
.demo-step .icon { color: var(--text-muted); }

/* The popup of a plan in the partner's «Τιμοκατάλογος» (public/js/partner-price-list.js): the content of the site's popup
   (site.programs.details) in a sheet of the app, from the bottom on a phone, centred on a computer. */
.plan-choice--open { width: 100%; font: inherit; text-align: left; background: var(--surface); cursor: pointer; }
.plan-choice--open:hover { border-color: var(--navy); }
.plan-sheet { position: fixed; inset: 0; z-index: 600; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 27, 45, .45); }
.plan-sheet[hidden] { display: none; }
.plan-sheet__card { display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; background: var(--surface); box-shadow: 0 -12px 40px rgba(15, 27, 45, .25); }
@media (min-width: 900px) { .plan-sheet { align-items: center; padding: 24px; } .plan-sheet__card { border-radius: 20px; max-height: 88vh; } }
.plan-sheet__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.plan-sheet__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.plan-sheet__body { overflow-y: auto; padding: 16px 18px 24px; overscroll-behavior: contain; }
.plan-sheet__name { margin: 0; font-size: 20px; font-weight: 700; }
.plan-sheet__provider { margin: 2px 0 14px; }
body.has-sheet { overflow: hidden; }
.plan-sheet .plan-info-points { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plan-sheet .plan-info-points li { position: relative; padding: 10px 12px 10px 34px; border-radius: 11px; background: #F7F9FC; color: #40556D; line-height: 1.45; overflow-wrap: anywhere; }
.plan-sheet .plan-info-points li::before { content: "✓"; position: absolute; left: 12px; top: 10px; color: #17803D; font-weight: 800; }
.plan-sheet .plan-info-points li.is-consistency { background: #EEFBF3; color: #17663A; font-weight: 700; }
.plan-details__title { margin: 22px 0 10px; color: var(--navy); font-size: 16px; }
.plan-details__note { margin: 10px 0 0; color: var(--text-muted); font-size: 13px; }
.plan-details__source { margin: 14px 0 0; color: var(--text-muted); font-size: 13px; font-weight: 700; }
/* «Προσοχή: οι τιμές είναι τελικές…» with the orange bulb, as on the site (site.partials.final-prices). */
.final-prices { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0; color: var(--navy); font-size: 14px; line-height: 1.45; }
.final-prices strong { font-weight: 700; }
.final-prices .badge-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #F28C28; }

/* Τιμοκατάλογοι: «Χρειάζεται επιλογή» με «Στο PDF» | «Υπάρχει σήμερα» (ό,τι διαφέρει, πορτοκαλί). */
.price-choice { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; margin-top: 8px; }
.price-compare { border-collapse: collapse; font-size: 0.875rem; }
.price-compare th, .price-compare td { padding: 4px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.price-compare thead th { font-weight: 700; }
.price-compare tbody th { font-weight: 400; color: var(--text-muted); }
.price-compare .is-different { color: var(--warning); font-weight: 700; }
.price-choice-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.price-choice-other summary { cursor: pointer; color: var(--text-muted); }
.price-choice-other .price-choice-form { margin-top: 6px; }

/* Τιμές → πρόγραμμα, με το χέρι. */
.hand-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; }
.hand-ends { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hand-ends input { min-width: 0; font: inherit; font-size: 16px; }
.hand-price { margin-top: 20px; }
.hand-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 8px; }

/* A phone held sideways (viewport-fit=cover): the backgrounds and the bars reach the edges of the screen, the content keeps
   clear of the notch or the camera hole. The safe areas are 0 everywhere else, so nothing else moves. */
.mobile-header { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.content { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.bottom-nav { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
@media (min-width: 900px) {
    .sidebar { width: calc(var(--sidebar-width) + env(safe-area-inset-left)); padding-left: max(14px, env(safe-area-inset-left)); }
    .main-col { margin-left: calc(var(--sidebar-width) + env(safe-area-inset-left)); }
    .topbar { padding-right: max(clamp(16px, 2.6vw, 36px), env(safe-area-inset-right)); }
    .content { padding-left: clamp(16px, 2.6vw, 36px); padding-right: max(clamp(16px, 2.6vw, 36px), env(safe-area-inset-right)); }
}

/* Τιμοκατάλογοι: 🟢 ανά πάροχο, κλειστά· «Αντιστοιχίσεις». */
.price-green { border-top: 1px solid var(--border); padding: 10px 0; }
.price-green > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.price-green > summary .count { font-weight: 400; }
.price-yellow > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.price-yellow ul { margin: 8px 0 0; padding-left: 20px; }
.match-delete { flex-shrink: 0; }
.page-header h1, .row-title { overflow-wrap: anywhere; }
