/* ==========================================================================
   EDOEAP shared theming (Edoeap.Web.Theming)
   - Size-mode scaling: DevExpress component density is driven by the
     "ParentSizeMode" cascade; these rules scale the surrounding application
     text/titles so the whole UI grows and shrinks together.
   - Fallback navigation icons: the few metaphors with no DevExpress Icon
     Library match are rendered as CSS masks tinted with currentColor, so they
     recolor automatically for light and dark themes.
   - Two colour sources, deliberately: DevExpress component internals flow from
     the Fluent design-system tokens (--dxds-*), while the application shell
     (header, sidebar, content surface, panels, watermark) is skinned with the
     EDOEAP brand tokens (--edoeap-*) declared in the :root block below. Those
     are the only literal hex values in the repo — everything else references
     them, so a brand change is edited in exactly one place.
   ========================================================================== */

/* --- Brand accent aliases -------------------------------------------------
   Page/scoped CSS still references --kind-accent / --kind-accent-dark (previously
   set to a static per-app hex on the old shell). Alias them to the Fluent accent
   tokens so every accent usage becomes theme-aware and picks up each app's brand
   accent automatically (light and dark). */
:root {
    --kind-accent: var(--dxds-color-surface-primary-default-rest);
    --kind-accent-dark: var(--dxds-color-content-primary-default-rest);

    /* --- EDOEAP design-system tokens (from the shared Figma "Design System EDOE")
       Primitives → Semantics. These drive the app *shell* (header, sidebar,
       content surface, brand watermark). DevExpress component internals still
       flow from the Fluent --dxds-* tokens; these only skin the shared chrome. */
    /* Contrast, measured against white (WCAG 2.2: 4.5:1 for text, 3:1 for a UI component):
       #3080ea = 3.89:1 — fills, borders and focus rings, never a letterform.
       #186edf = 4.84:1 — the same accent when it is the colour of *text*.
       The two are one decision, not two shades to pick between by eye, which is why the
       ratio is written here rather than in whichever screen next needs a blue label. */
    --edoeap-color-primary: #3080ea;      /* brand/primary — active nav, borders (the Fluent accent is primary-dark) */
    --edoeap-color-primary-dark: #186edf; /* primary pressed/hover, and primary as text */
    --edoeap-color-primary-2: #cde2ff;    /* primary light */
    --edoeap-color-primary-3: #e1edff;    /* primary light 2 — hovered/expanded nav */
    --edoeap-color-primary-4: #eef5ff;    /* primary lightest */
    --edoeap-color-secondary: #003274;    /* brand secondary navy — header background */
    --edoeap-color-neutral: #00204a;      /* darkest navy — primary text */
    --edoeap-color-neutral-2: #5f6e82;    /* muted text */
    --edoeap-color-tertiary: #eec319;     /* gold accent (logo "my") */
    --edoeap-color-success: #48ce88;
    --edoeap-color-error: #de5151;
    --edoeap-color-warning: #ffbd2d;
    --edoeap-color-system-5: #f5f5f5;
    --edoeap-color-system-10: #f2f2f2;
    --edoeap-color-system-20: #dbdbdb;
    --edoeap-color-system-30: #c5c5c5;
    --edoeap-color-system-50: #8f8f8f;
    --edoeap-color-white: #ffffff;
    --edoeap-color-white-grey: #f4f4f4;   /* page/content background */

    /* Focus. The yellow is the gov.gr focus colour (--color-focus), and the guide is explicit
       that it may not be used for anything else — a colour that means «you are here» stops
       meaning it the moment it also decorates something. The dark keyline is not decoration
       either: #ffdd00 on white is about 1.4:1, so the yellow alone would fail WCAG 1.4.11,
       which wants 3:1 against what surrounds it. The keyline is what the eye actually catches
       on a pale page. */
    --edoeap-color-focus: #ffdd00;
    --edoeap-color-focus-keyline: #212121;

    /* Type scale.
       There was none: sizes were written inline as 0.75, 0.8125, 0.85, 0.875, 1.05rem — five
       arbitrary values doing the work of four steps, so every new screen invented another one.
       Body text is 1rem and not smaller: these portals are used by people who are, by the
       customer's own directive, often elderly. Anything below this belongs to captions and
       helper text, never to something a member has to read. */
    --edoeap-text-xs: 0.75rem;   /* captions, table meta */
    --edoeap-text-sm: 0.875rem;  /* secondary / dense grids */
    --edoeap-text-md: 1rem;      /* body — the default for anything a member reads */
    --edoeap-text-lg: 1.25rem;   /* section headings, subtitles */
    --edoeap-text-xl: 1.75rem;   /* page title */

    /* Reading size — the member's own choice, from the Μικρό/Μεσαίο/Μεγάλο control in the
       header. A separate scale from the one above on purpose: that one says what a piece of
       text *is* (caption, body, heading), this one says how large this member wants to read.
       Reusing the role scale for both is what made «Μεγάλο» mean «normal».

       The ladder is the one published by the Greek government design guide
       (guide.services.gov.gr/docs/styles/typography), which these members already meet on every
       other gov.gr service: 19px body on large screens, 16px on small. 19px is the default here
       because that is what the guide calls the standard paragraph size — not an enlargement a
       member has to go and find. «Μικρό» is the guide's small-screen size rather than anything
       smaller, so the control trades density for comfort without ever going below what the guide
       considers readable. */
    --edoeap-body-sm: 1rem;       /* 16px — gov.gr small-screen body; the densest we offer */
    --edoeap-body-md: 1.1875rem;  /* 19px — gov.gr standard paragraph size; the default */
    --edoeap-body-lg: 1.375rem;   /* 22px — above the scale, for members who need it larger */

    /* Spacing scale.
       Also absent: margins and padding were a mix of rem and px (0.9rem, 1rem, 2.25rem, 12px,
       15px) with no common rhythm, which is what makes a layout feel unsettled without anyone
       being able to say why. Four steps on a 4px base cover nearly everything. */
    --edoeap-space-1: 0.25rem;   /*  4px — inside a control */
    --edoeap-space-2: 0.5rem;    /*  8px — between related items */
    --edoeap-space-3: 1rem;      /* 16px — between fields */
    --edoeap-space-4: 1.5rem;    /* 24px — between groups */
    --edoeap-space-5: 2.5rem;    /* 40px — between page sections */

    /* Touch targets — WCAG 2.5.5, and the customer directive that these screens are used by
       members who are often elderly. A target is the *hit area*, not the glyph: a 16px icon in a
       44px box passes, a 40px button with a 16px icon does not. Declared as tokens so the number
       is argued once here rather than re-typed as a padding pair on every control. */
    --edoeap-target-min: 2.75rem;      /* 44px — every interactive element, no exceptions */
    --edoeap-target-primary: 3.5rem;   /* 56px — the one action the screen exists for */

    /* Shell roles */
    --edoeap-header-bg: var(--edoeap-color-secondary);
    --edoeap-header-fg: var(--edoeap-color-white);
    /* 64px (ήταν 76): το λογότυπο είναι 44px και οι στόχοι αφής 44px — τα 12px που έμεναν ήταν
       κενός χώρος σε κάθε σελίδα, μαζί με τη λωρίδα των τηλεφώνων και το κολλημένο υποσέλιδο. */
    --edoeap-header-height: 64px;
    --edoeap-sidebar-bg: var(--edoeap-color-white);
    --edoeap-page-bg: var(--edoeap-color-white-grey);

    /* Form panels styled like the AFM/AMKA login card: white surface, subtle
       border, primary top accent, rounded corners, soft shadow. */
    --edoeap-form-bg: var(--edoeap-color-white);
    --edoeap-form-border: var(--edoeap-color-system-20);
    --edoeap-form-radius: 10px;

    /* --- Expense status colours ------------------------------------------
       ΕΔΟΕΑΠ's scheme: Καταχωρήθηκε και Εκκαθαρίστηκε κίτρινο, Προς πληρωμή μπλε,
       Πληρώθηκε ΠΡΑΣΙΝΟ, Απορρίφθηκε κόκκινο. The written remarks (2026-10) had
       Πληρώθηκε blue; at the meeting of 8/10 ΕΔΟΕΑΠ asked for the old site's three
       colours, «because members know that green means closed» — the legacy
       .status.completed.payd, #2c9f6f (dapanes-style.css, commit 0472589). Each stage
       keeps its own variable, so two stages that share a colour today can be told
       apart again with a one-line edit. The badge derives background, border and
       text from the base colour. The stage a badge gets is decided in
       ExpenseStatusResolver.StatusColors.

       «Απαιτούνται επιπλέον δικαιολογητικά» is not in ΕΔΟΕΑΠ's list: it is the
       one stage that waits on the member, so it stays orange rather than blend
       into the yellow of the stages that only wait on ΕΔΟΕΑΠ. */
    --edoeap-status-registered: var(--edoeap-color-warning);   /* καταχωρήθηκε — κίτρινο */
    --edoeap-status-settled: var(--edoeap-color-warning);      /* εκκαθαρίστηκε — κίτρινο */
    --edoeap-status-payment: var(--edoeap-color-primary);      /* προς πληρωμή — μπλε */
    --edoeap-status-paid: #2c9f6f;                             /* πληρώθηκε — πράσινο (όπως το παλιό site) */
    --edoeap-status-rejected: var(--edoeap-color-error);       /* απορρίφθηκε — κόκκινο */
    --edoeap-status-action: #e8590c;                           /* θέλει ενέργεια — πορτοκαλί */
    --edoeap-status-unknown: var(--edoeap-color-system-50);    /* άγνωστη — γκρι */

    /* --- Gender colours (πλαίσια εμμέσων μελών) ---------------------------
       Ο πελάτης ζήτησε χρωματικό διαχωρισμό ανά φύλο και έδωσε ο ίδιος τα δύο
       χρώματα. Σκόπιμα ΟΧΙ γαλάζιο/ροζ — το δίπολο είναι στερεότυπο και δεν
       προσθέτει τίποτα στην αναγνωσιμότητα. Το φύλο παράγεται από τον
       MemberGenderResolver και ΔΕΝ είναι πάντα γνωστό — γι' αυτό υπάρχει και η
       ουδέτερη τρίτη τιμή. Το χρώμα δεν είναι ποτέ ο μόνος φορέας της
       πληροφορίας: η ετικέτα σχέσης μένει πάντα ορατή δίπλα του.
       Τα δύο χρώματα τα δίνει ο πελάτης· ήταν τιρκουάζ/μωβ (γράφημα «Women Mean
       Business» των Telegraph/Datawrapper) και έγιναν το navy και το χρυσό του
       ΕΔΟΕΑΠ — ουσιαστικά το ζεύγος --edoeap-color-secondary / -tertiary, οπότε
       οι καρτέλες πλέον ανήκουν οπτικά στην ταυτότητα του οργανισμού. Οι -soft
       είναι η ίδια απόχρωση ~12% πάνω σε λευκό: τα πλαίσια πρέπει να
       διαβάζονται με navy κείμενο, όχι να φωνάζουν. */
    --edoeap-gender-male: #1c3470;                             /* navy — αναφορά πελάτη */
    --edoeap-gender-male-soft: #e4e7ee;
    --edoeap-gender-female: #e2c347;                           /* χρυσό — αναφορά πελάτη */
    --edoeap-gender-female-soft: #fcf8e9;
    --edoeap-gender-unknown: var(--edoeap-color-neutral-2);    /* αδιευκρίνιστο — γκρι */
    --edoeap-gender-unknown-soft: var(--edoeap-color-system-5);
}

/* --- Message surfaces: Fluent's light «subdued» tints are too strong for text ---------------
   The Fluent light mode pairs #c50f1f (danger text) with #febab3 (danger «subdued» surface): 3.7:1,
   and #107c10 with #b0dcac on success: 3.5:1 — below WCAG 1.4.3's 4.5:1 on every .alert-error,
   .alert-success, status badge and back-office message box (axe/Lighthouse, 2026-10). Some 25
   places read these two tokens, so the token is corrected rather than each place.

   Light mode only. Fluent declares the tokens on :root from modes/light.min.css, and switching to
   dark swaps that stylesheet for another — so «the light stylesheet is linked» is exactly «the light
   theme is on», and the dark palette of Edoeap.Auth / Edoeap.Services is left alone. :root:has()
   also outranks Fluent's :root whatever the load order. A browser without :has() keeps Fluent's
   values: worse contrast, nothing broken. */
:root:has(link[href*="/modes/light"]) {
    --dxds-color-surface-danger-subdued-rest: #fde7e9;   /* #c50f1f on it: 5.1:1 */
    --dxds-color-surface-success-subdued-rest: #dff6dd;  /* #107c10 on it: 4.7:1 */
}

/* --- Application-wide size mode -------------------------------------------
   The three steps used to be 12 / 14 / 16px. The default, 14px, is small for a
   service whose users are — by the customer's own directive — often elderly, and
   16px was only reachable by finding a dropdown in the header, which is exactly
   the thing that audience does not do. GOV.UK sets body text at 19px.

   The scale is now 14 / 16 / 19. The default is 16px; nobody loses the old
   density, it moved to «Μικρό»; and «Μεγάλο» finally means something.

   Each step moves the DevExpress component density with it (SizeMode cascades as
   "ParentSizeMode"), so the controls grow with the text rather than cramping it.
   Note that only text which inherits its size follows this — anything written in
   rem is measured from the root, not from the body, and does not move. That is
   most of the page furniture and none of the data. */
body.small-size { font-size: var(--edoeap-body-sm); }
body.medium-size { font-size: var(--edoeap-body-md); }
body.large-size { font-size: var(--edoeap-body-lg); }

/* One step down on small screens, as the gov.gr scale specifies: 19px is sized for a
   desktop reading distance and costs too much line-wrapping on a phone, where the device
   is held closer. A member who has chosen «Μεγάλο» keeps the enlargement — the step down
   applies to the default only, because overriding a deliberate choice is the one thing
   this must not do. */
@media (max-width: 47.9375em) {
    body.medium-size { font-size: var(--edoeap-body-sm); }
}


body.small-size .app-title { font-size: var(--dxds-font-size-base-lg); }
body.medium-size .app-title { font-size: var(--dxds-font-size-title-md); }
body.large-size .app-title { font-size: var(--dxds-font-size-title-lg); }

/* --- Heading size, separated from heading level ---------------------------
   There were more <h3> in this repo than <h2>, across thirty-odd pages, which is
   what happens when the level is chosen for how big it looks. The cost is not
   cosmetic: ten back-office pages had no <h1> at all and began their outline at
   h3, so a screen reader's heading list — the usual way of skimming a page
   without sight — opened three levels down from nowhere.

   The level now says where a heading sits in the document. These two classes say
   how large it is. Anything that wants a particular size asks for it by name. */
.edoeap-page-title {
    margin: 0 0 var(--edoeap-space-4);
    font-size: var(--edoeap-text-xl);
    font-weight: 700;
    line-height: 1.25;
    color: var(--edoeap-color-neutral);
}

.edoeap-section-title {
    margin: var(--edoeap-space-5) 0 var(--edoeap-space-3);
    font-size: var(--edoeap-text-lg);
    font-weight: 600;
    line-height: 1.3;
    color: var(--edoeap-color-neutral);
}

/* First thing in its container has nothing to be pushed away from. */
.edoeap-section-title:first-child {
    margin-top: 0;
}

/* --- Shared DevExpress shell (DxDrawer + DxTreeView + DxToolbar) ---------- */
.dx-app-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Mobile browsers count the collapsing address bar inside 100vh, so the last
       rows of a page sit under it until the user scrolls. 100dvh follows the
       visible viewport instead; the 100vh above stays as the fallback. */
    height: 100dvh;
}

.dx-app-header {
    flex: 0 0 auto;
    border-bottom: 1px solid var(--dxds-color-border-neutral-default-rest);
    background-color: var(--dxds-color-surface-neutral-default-rest);
}

.dx-app-body {
    flex: 1 1 auto;
    min-height: 0;
}

.dx-app-title {
    font-family: var(--dxds-font-family-sans-serif);
    font-weight: var(--dxds-font-weight-base-strong, 600);
    color: var(--dxds-color-content-neutral-default-rest);
    white-space: nowrap;
}

.dx-app-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.dx-app-brand img {
    height: 2rem;
    width: auto;
}

.dx-app-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.dx-app-brand-org {
    font-weight: var(--dxds-font-weight-base-strong, 600);
    color: var(--dxds-color-content-neutral-default-rest);
}

.dx-app-brand-sub {
    font-size: var(--dxds-font-size-base-sm, 0.75rem);
    color: var(--dxds-color-content-neutral-subtle-rest, var(--dxds-color-content-neutral-subdued-rest));
}

.dx-app-drawer-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dx-app-nav {
    flex: 1 1 auto;
    overflow-y: auto;
}

.dx-app-drawer-footer {
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--dxds-color-border-neutral-default-rest);
}

/* Sign-out lives in the sidebar for every app: full width, left aligned, so it reads as the
   last item of the navigation list rather than a floating button. */
.dx-app-drawer-footer .dx-app-logout {
    width: 100%;
    justify-content: flex-start;
}

.dx-app-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: auto;
    padding: 1rem;
}

/* Λίγος αέρας κάτω από το τελευταίο στοιχείο κάθε σελίδας: η σελίδα δεν πρέπει να
   κόβεται ακριβώς εκεί που τελειώνει το περιεχόμενό της.

   Γιατί ψευδοστοιχείο και όχι `padding-bottom` εδώ: το περιεχόμενο ξεχειλίζει από
   τον scroller, και το κάτω padding ενός στοιχείου με `overflow: auto` δεν
   ακολουθεί αξιόπιστα σε όλους τους browsers ό,τι ξεχειλίζει. Ένα πραγματικό flex
   item το ακολουθεί πάντα — και δεν κοστίζει scrollbar σε κοντές σελίδες, γιατί
   εκεί απλώς κάθεται μέσα στον ελεύθερο χώρο που ήδη υπάρχει. */
.dx-app-content::after {
    content: "";
    flex: 0 0 1.75rem;
}

/* --- Data grids: vertical scrolling instead of a pager --------------------
   Data grids scroll their rows internally (with sticky header/footer) rather
   than paging. The DevExpress grid root caps its height with the
   --dxbl-grid-max-height variable (10000px by default, i.e. unbounded); we lower
   it so a grid never runs past the bottom of the screen. Short grids still
   collapse to their content (the root is a flex column). The `.dxbl-grid`
   qualifier raises specificity so our value wins regardless of stylesheet load
   order. Pages with tall content above a grid can shrink the cap locally by
   setting --edoeap-grid-max-height. Printing restores the unbounded height so
   every row appears on paper. */
.dxbl-grid.edoeap-grid,
.dxbl-grid.admin-grid,
.dxbl-grid.benefit-grid {
    --dxbl-grid-max-height: var(--edoeap-grid-max-height, calc(100vh - 15rem));
    /* Fill the available width of the page/container. DxGrid uses a fixed table
       layout, so columns are sized via each column's Width/MinWidth; when their
       combined width exceeds this box the grid shows its own horizontal scrollbar
       (columns keep their MinWidth instead of collapsing). */
    width: 100%;
}

/* Keep filter-row combo boxes compact and full-width within their cell. */
.edoeap-grid-filter-combo {
    width: 100%;
}

/* ---------------------------------------------------------------------------
   Print.

   These members print. They print the insurance certificate to hand in somewhere,
   the expense record to staple to a receipt, the benefit statement for their file.
   For a good number of them the paper is the real artefact and the screen is only
   how they got it — so the printed page is a deliverable, not a fallback.

   What comes off the printer should be the document and nothing else: no navigation
   to a page that does not exist on paper, no buttons that cannot be pressed, no
   header bar spending the toner. Backgrounds go, because a navy header prints as a
   wet black block and the ink is the member's.
   --------------------------------------------------------------------------- */
/* Πολιτική Απορρήτου / Όροι Χρήσης (Components/Legal). Μήκος γραμμής ~70 χαρακτήρες και άνετο
   διάστιχο: είναι κείμενο που διαβάζεται, όχι φόρμα. */
.legal-doc {
    max-width: 46rem;
    margin: 0 auto 2rem;
    font-size: 1.0625rem;
    line-height: 1.65;
}

.legal-doc h2 {
    margin: 2rem 0 0.6rem;
    font-size: 1.3rem;
    color: var(--edoeap-color-secondary, #1f3a68);
}

.legal-doc h3 {
    margin: 1.25rem 0 0.4rem;
    font-size: 1.1rem;
}

.legal-doc ul {
    padding-left: 1.4rem;
}

.legal-doc li {
    margin-bottom: 0.35rem;
}

.legal-meta {
    color: var(--edoeap-color-neutral-2);
    font-size: 0.95rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0 1rem;
    font-size: 0.98rem;
}

.legal-table th,
.legal-table td {
    border: 1px solid var(--edoeap-color-system-20, #d8dde6);
    padding: 0.5rem 0.65rem;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background-color: var(--edoeap-color-white-grey, #f4f6fa);
}

/* Σημεία που συμπληρώνει ο ΕΔΟΕΑΠ / η νομική ομάδα. Σκόπιμα κραυγαλέα: δεν πρέπει να ξεφύγει
   κανένα στη δημοσίευση. Όταν συμπληρωθούν όλα, ο κανόνας μένει χωρίς χρήση. */
.legal-todo {
    background-color: #fff3bf;
    color: #7a4b00;
    padding: 0 0.2rem;
    border-radius: 0.2rem;
    font-weight: 600;
}

@media (max-width: 35.9375em) {
    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table td {
        display: block;
        width: 100%;
    }

    .legal-table thead {
        display: none;
    }

    .legal-table td {
        border-top: none;
    }

    .legal-table tr {
        border-top: 1px solid var(--edoeap-color-system-20, #d8dde6);
        margin-bottom: 0.5rem;
    }
}

/* EdoeapPrintBar: the print button, centred above what it prints, on every screen. */
.edoeap-print-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 0 0 var(--edoeap-space-3, 1rem);
}

/* Η ένδειξη αναμονής / ολοκλήρωσης κάτω από το κουμπί εκτύπωσης. */
.edoeap-print-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: -0.35rem 0 var(--edoeap-space-3, 1rem);
    font-size: 1rem;
    color: var(--edoeap-color-neutral-2);
}

.edoeap-print-done {
    color: var(--dxds-color-content-success-default-rest, #0a5c34);
    font-weight: 600;
}

.edoeap-print-spinner {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--edoeap-color-primary) 25%, transparent);
    border-top-color: var(--edoeap-color-primary);
    animation: edoeap-print-spin 0.8s linear infinite;
}

@keyframes edoeap-print-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .edoeap-print-spinner {
        animation-duration: 2.4s;
    }
}

@media print {
    .edoeap-print-bar,
    .edoeap-print-status {
        display: none !important;
    }

    /* Grids print in full: the viewport cap exists to keep a long table scrollable on
       screen, and on paper it would silently cut the table off at the fold. */
    .dxbl-grid.edoeap-grid,
    .dxbl-grid.admin-grid,
    .dxbl-grid.benefit-grid {
        --dxbl-grid-max-height: 10000px;
    }

    /* The shell is navigation. None of it survives onto paper. */
    .dx-app-header,
    .dx-app-drawer-body,
    .dx-app-drawer-footer,
    .dx-app-drawer-user,
    .dx-app-nav,
    .dx-app-user,
    .skip-link,
    .dxbl-drawer-panel,
    .dxbl-toolbar {
        display: none !important;
    }

    /* Anything whose only purpose is to be clicked. Marked explicitly with
       .print-hidden where a screen needs to make its own call. */
    .print-hidden,
    .dxbl-btn:not(.print-keep) {
        display: none !important;
    }

    /* The content area carries the page margins on screen; on paper the printer's
       own margin does that, so the content starts at the edge of the text block. */
    .dx-app-page,
    .dx-app-body,
    .dx-app-content,
    .main-content,
    .main-content-narrow {
        display: block !important;
        max-width: none !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* The drawer is a screen-height box with overflow:hidden, and position:relative — so the
       .edoeap-print region, absolutely positioned at top:0, was placed inside it and cut at one
       screen's height: the member card printed its first panel and nothing below (no dependants),
       and the debt identity printed blank (ΕΔΟΕΑΠ remarks, 10/2026). On paper it is an ordinary
       block of whatever height its content needs. */
    html,
    body,
    .dxbl-drawer,
    .dxbl-drawer-content {
        position: static !important;
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    /* Black on white. Printing a light-grey caption on a domestic inkjet is how a
       field arrives illegible. */
    body,
    .dx-app-portal {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
    }

    /* A panel or a table row broken across two sheets is the commonest way a printed
       form becomes unreadable — the caption on one page, its value on the next. */
    .edoeap-panel,
    .benefit-table,
    tr,
    img {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    /* A heading stranded at the foot of a sheet. */
    h1, h2, h3, h4 {
        break-after: avoid;
        page-break-after: avoid;
        color: #000 !important;
    }

    /* Underlines survive; the href does not get appended. These are links into the
       member's own authenticated session — printing the URL would put a long useless
       string on the page and, on a shared printer, say more than it should. */
    a {
        color: #000 !important;
        text-decoration: underline;
    }
}

/* Sidebar user card */
.dx-app-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.25rem;
    min-width: 0;
}

.dx-app-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: var(--dxds-color-surface-primary-default-rest);
    color: var(--dxds-color-content-primary-on-primary-rest, #fff);
    font-weight: var(--dxds-font-weight-base-strong, 600);
    font-size: 0.85rem;
}

.dx-app-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.dx-app-user-name {
    font-weight: var(--dxds-font-weight-base-strong, 600);
    color: var(--dxds-color-content-neutral-default-rest);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dx-app-user-badge {
    font-size: var(--dxds-font-size-base-sm, 0.75rem);
    color: var(--dxds-color-content-neutral-subtle-rest, var(--dxds-color-content-neutral-subdued-rest));
}

/* For a member the avatar opens their details, so it is a <button>. Everything a button brings
   with it — border, background, inherited-but-not-quite font — is undone here, so it looks exactly
   like the static block it replaces; only the pointer and the focus ring say it does something. */
.dx-app-user-button {
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.dx-app-user-button:focus-visible {
    outline: 2px solid var(--dxds-color-border-primary-default-rest, currentColor);
    outline-offset: 2px;
    border-radius: 4px;
}

/* The same card at the top of the drawer, for the phones where the header avatar does not fit.
   Hidden by default; the media query below — the one that hides the avatar — turns it on. */
.dx-app-drawer-user {
    display: none;
}

/* --- Fallback navigation icons (no DevExpress Icon Library match) --------- */
.edoeap-nav-icon {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.edoeap-nav-health {
    -webkit-mask-image: url("../icons/health.svg");
    mask-image: url("../icons/health.svg");
}

/* «Αιτήσεις δαπανών υγείας που απαιτούν έλεγχο»: ο σταυρός των δαπανών υγείας μέσα σε στηθοσκόπιο, ώστε να
   ξεχωρίζει από τις «Αιτήσεις Δαπανών Υγείας» (ΕΔΟΕΑΠ, 16/11/2026). */
.edoeap-nav-health-review {
    -webkit-mask-image: url("../icons/health-review.svg");
    mask-image: url("../icons/health-review.svg");
}

.edoeap-nav-idcard {
    -webkit-mask-image: url("../icons/idcard.svg");
    mask-image: url("../icons/idcard.svg");
}

.edoeap-nav-stethoscope {
    -webkit-mask-image: url("../icons/stethoscope.svg");
    mask-image: url("../icons/stethoscope.svg");
}

.edoeap-nav-vote {
    -webkit-mask-image: url("../icons/vote.svg");
    mask-image: url("../icons/vote.svg");
}

/* ==========================================================================
   EDOEAP member portals — Figma "Design System EDOE" skin.
   Every rule below is scoped to `.dx-app-portal`, a marker class carried only
   by the shared MainLayout (Edoeap.Web.Shared) that the three member portals
   use: Edoeap, Edoeap.Doctor and Edoeap.Pensioner. The Edoeap.Services and
   Edoeap.Auth apps reuse the same .dx-app-* chrome classes but have their own
   layouts (no .dx-app-portal), so they keep the original look untouched.
   ========================================================================== */

/* Top bar: navy background, white foreground, fixed height.

   Three zones in normal flow — identity | search | tools. The platform title used to be
   position:absolute at left:50%, which centred it beautifully for as long as the middle of the bar
   was empty. The moment anything went there (the search box) the two sat on top of each other, and
   an absolutely positioned element cannot be pushed aside because it is not in the row at all.
   The title is now part of the left group and the middle is a real flex zone. */
.dx-app-portal .dx-app-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: var(--edoeap-header-height);
    padding: 0 1rem;
    border-bottom: none;
    background-color: var(--edoeap-header-bg);
    color: var(--edoeap-header-fg);
}

/* Left zone: menu toggle, logo, platform title. Never shrinks below its content. */
.dx-app-portal .dx-app-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 0 0 auto;
    min-width: 0;
}

/* The sidebar toggle. Its own button rather than a DxToolbarItem, so it can sit beside the logo
   instead of among the account controls — and so it can carry aria-expanded/aria-controls. */
.dx-app-portal .dx-app-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--edoeap-target-min);
    height: var(--edoeap-target-min);
    flex: 0 0 auto;
    padding: 0;
    border: none;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--edoeap-header-fg);
    cursor: pointer;
}

.dx-app-portal .dx-app-menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.dx-app-portal .dx-app-menu-toggle:hover {
    background-color: color-mix(in srgb, var(--edoeap-color-white) 14%, transparent);
}

.dx-app-portal .dx-app-header .dx-app-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.05rem;
}

/* Middle zone. Holds the search when there is one, and otherwise just pushes the tools right. */
.dx-app-portal .dx-app-header-spacer {
    flex: 1 1 auto;
}

.dx-app-portal .dx-app-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.dx-app-portal .dx-app-logo img {
    height: 2.75rem;
    width: auto;
    display: block;
}

/* Right zone. Sized by its content now that the middle zone takes the slack — as flex:1 it split
   the free space with the search and neither ended up where it belonged. */
.dx-app-portal .dx-app-header .dx-app-toolbar {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Force toolbar content (title, buttons, DevExpress currentColor icons) white. */
.dx-app-portal .dx-app-header,
.dx-app-portal .dx-app-header .dx-app-title,
.dx-app-portal .dx-app-header .dxbl-toolbar,
.dx-app-portal .dx-app-header .dxbl-toolbar-item,
.dx-app-portal .dx-app-header .dxbl-toolbar .dxbl-btn,
.dx-app-portal .dx-app-header .dxbl-toolbar .dxbl-text {
    color: var(--edoeap-header-fg);
    --dxbl-btn-color: var(--edoeap-header-fg);
}

/* Toolbar icons may be currentColor <svg> or plain <img> SVGs; the filter
   forces either form to render white against the navy bar (logo is excluded —
   it lives in .dx-app-logo, outside the toolbar). */
.dx-app-portal .dx-app-header .dxbl-toolbar .dxbl-image,
.dx-app-portal .dx-app-header .dxbl-toolbar img,
.dx-app-portal .dx-app-header .dxbl-toolbar svg {
    color: var(--edoeap-header-fg);
    fill: currentColor;
    filter: brightness(0) invert(1);
}

/* Toolbar controls (hamburger, font-size dropdown, theme, logout) sit on the
   navy bar: transparent by default, subtle translucent-white on hover/focus/
   active so text + icon stay readable. Fixes the white-box rest state and the
   invisible/washed-out hover reported on the size dropdown, burger and logout. */
.dx-app-portal .dx-app-header .dxbl-toolbar .dxbl-btn {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--edoeap-header-fg);
}

.dx-app-portal .dx-app-header .dxbl-toolbar .dxbl-btn:hover,
.dx-app-portal .dx-app-header .dxbl-toolbar .dxbl-btn:focus,
.dx-app-portal .dx-app-header .dxbl-toolbar .dxbl-btn:focus-visible,
.dx-app-portal .dx-app-header .dxbl-toolbar .dxbl-btn:active,
.dx-app-portal .dx-app-header .dxbl-toolbar .dxbl-btn.dxbl-active {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: transparent;
    color: var(--edoeap-header-fg);
}

/* Keep the dropdown popup (size menu) readable: it renders on a white surface
   outside the navy bar, so its items use the normal dark-on-light treatment. */
.dxbl-dropdown .dxbl-btn .dxbl-image,
.dxbl-dropdown .dxbl-btn img,
.dxbl-dropdown .dxbl-btn svg {
    filter: none;
}

/* Sidebar / drawer: white surface. */
.dx-app-portal .dx-app-drawer .dxbl-drawer-panel,
.dx-app-portal .dx-app-drawer-body {
    background-color: var(--edoeap-sidebar-bg);
}

.dx-app-portal .dx-app-nav {
    padding: 0.75rem 0.5rem 0;
}

.dx-app-portal .dx-app-drawer-footer {
    border-top: 1px solid var(--edoeap-color-system-30);
}

/* Brand watermark pinned to the sidebar bottom (Figma: 98x50, #c5c5c5, centered,
   above a 1px top border). Rendered as a CSS mask tinted with the neutral grey. */
.dx-app-portal .dx-app-watermark {
    width: 98px;
    height: 50px;
    margin: 0.5rem auto 0.25rem;
    background-color: var(--edoeap-color-system-30);
    -webkit-mask: url("../icons/edoeap-oval.svg") center / contain no-repeat;
    mask: url("../icons/edoeap-oval.svg") center / contain no-repeat;
}

/* Content surface: light grey page background. */
.dx-app-portal .dx-app-content {
    background-color: var(--edoeap-page-bg);
}

/* Header user block (Figma avatar): white name, light-blue role, avatar circle
   in light-blue with navy initials, sitting on the navy bar. */
.dx-app-portal .dx-app-header .dx-app-user {
    gap: 0.6rem;
    padding: 0 0.25rem;
}

.dx-app-portal .dx-app-header .dx-app-user-avatar {
    background-color: var(--edoeap-color-primary-2);
    color: var(--edoeap-color-secondary);
}

.dx-app-portal .dx-app-header .dx-app-user-name {
    color: var(--edoeap-header-fg);
}

.dx-app-portal .dx-app-header .dx-app-user-badge {
    color: var(--edoeap-color-primary-2);
}

/* A <button> does not inherit the text colour (it uses the system ButtonText, black), so the
   screen-reader-only «, τα στοιχεία μου» inside it was black on the navy bar. It is clipped and
   never seen, but WAVE measures it as «very low contrast» — and it is the button's own colour
   that any future text would get. The header's foreground colour, like the visible name. */
.dx-app-portal .dx-app-header .dx-app-user-button {
    color: var(--edoeap-header-fg);
}

/* --- Portal header on small screens ---------------------------------------
   The bar is one non-wrapping flex row — logo | toolbar — with the platform
   title absolutely centred on top of both. On a phone the three fight over the
   same ~340px, which produced exactly the two reported symptoms:

   * things overlap — the title is `position: absolute`, so it reserves no space
     in the row at all and is simply painted over the logo and the buttons;
   * things are missing — the toolbar is `flex: 1 1 auto`, but a flex item's
     default `min-width: auto` equals its content width, so it could never
     actually shrink. Its right-hand items (μέγεθος, αποσύνδεση, avatar) were
     pushed past the edge of the bar instead of collapsing into the DevExpress
     adaptive menu.

   Below, the second is fixed at every width and the first by dropping the least
   useful content as the bar gets narrower. Desktop widths are unaffected. */

/* Not a mobile fix: without it the toolbar can never give ground and DevExpress
   adaptivity never gets a chance to trigger, at any screen size. */
.dx-app-portal .dx-app-header .dx-app-toolbar {
    min-width: 0;
}

/* ≤1199px — the platform title is the first thing to go. It is the least useful text in the bar
   (the drawer and the page heading both name the application) and the search needs the room.
   Dropped early and deliberately: this is the width the title and the search used to collide at. */
@media (max-width: 74.9375em) {
    .dx-app-portal .dx-app-header .dx-app-title {
        display: none;
    }
}

/* ≤991px — the name and the role are the first things the bar can do without;
   the avatar alone still says whose session this is. */
@media (max-width: 61.9375em) {
    .dx-app-portal .dx-app-header .dx-app-user-info {
        display: none;
    }
}

/* ≤767px — the DxLayoutBreakpoint threshold, where the drawer has already
   become an overlay and the header is the only navigation left on screen. */
@media (max-width: 47.9375em) {
    /* Set on the shell, not on the header, so anything that later sizes itself
       against the bar sees the same value. */
    .dx-app-portal {
        --edoeap-header-height: 3.5rem;
    }

    .dx-app-portal .dx-app-header {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .dx-app-portal .dx-app-logo img {
        height: 2rem;
    }

    /* The left group tightens so the search keeps a usable width next to it. */
    .dx-app-portal .dx-app-header-left {
        gap: 0.35rem;
    }
}

/* ≤575px — on the narrowest phones the avatar goes too, so that the three
   controls that actually do something (μενού, μέγεθος γραμμάτων, αποσύνδεση)
   always fit. The sign-out in the header is the only one reachable here: the
   drawer starts closed on a small screen. */
@media (max-width: 35.9375em) {
    .dx-app-portal .dx-app-header .dx-app-user {
        display: none;
    }

    /* …and with it goes the only way into the member's details, so the same card moves to the top
       of the drawer. Deliberately the same breakpoint: the two cannot drift apart. */
    .dx-app-portal .dx-app-drawer-user {
        display: block;
    }
}

/* Buttons: Figma corner radius (6px). Colours already flow from the Fluent
   accent (primary-dark #186edf, for contrast); this only aligns the geometry. */
.dx-app-portal .dxbl-btn {
    border-radius: 6px;
}

/* Button icons: DevExpress renders Icon-Library glyphs as fixed-colour images,
   so on the filled primary (blue) button they don't inherit the white text
   colour and look faint. Force them white to match the label. Scoped to the
   primary render style so secondary/outline buttons keep their dark glyphs. */
.dx-app-portal .dxbl-btn[class*="primary"] .dxbl-image,
.dx-app-portal .dxbl-btn[class*="primary"] img,
.dx-app-portal .dxbl-btn[class*="primary"] svg {
    filter: brightness(0) invert(1);
}

/* DxFormLayout groups → figma "login card" look. DevExpress paints the group's
   OWN frame through CSS variables (--dxbl-fl-group-* → --dxbl-group-*); a plain
   `border: none` can't beat that, so we zero the native frame via the variables.
   The edoeap-form-group class (added to every DxFormLayoutGroup root) then
   supplies the single card: white surface, subtle border, primary top accent,
   rounded corners and a soft shadow. The form-layout root (.dxbl-fl) stays
   transparent. DxForm fields themselves are untouched. */
.dx-app-portal {
    --dxbl-fl-group-bg: transparent;
    --dxbl-fl-group-border-width: 0;
    --dxbl-fl-group-border-color: transparent;
}

.dx-app-portal .dxbl-fl {
    background-color: transparent;
}

.dx-app-portal .edoeap-form-group {
    background-color: var(--edoeap-form-bg);
    border: 1px solid var(--edoeap-form-border);
    border-top: 5px solid var(--edoeap-color-primary);
    border-radius: var(--edoeap-form-radius);
    box-shadow: var(--dxds-box-shadow-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.dx-app-portal .edoeap-form-group .dxbl-group {
    --dxbl-group-border-color: transparent;
}

/* --- Expense status badge -------------------------------------------------
   Used by the "Προβολή καταχωρημένων δαπανών" grid. The colour is information,
   not decoration: the member reads the stage of a claim from it. Each variant
   supplies one base colour; the badge derives a tinted surface, a stronger
   border and a darkened, readable label from that single value, so all nine
   stages stay visually consistent and any one of them can be retuned by editing
   its --edoeap-status-* variable alone.
   Mixing against white is safe here: dark mode is off in the member portals
   (EnableDarkMode = false in Edoeap, Edoeap.Pensioner, Edoeap.Doctor).

   The label was mixed 72% of the base into black, which reads well for the dark
   stages and not at all for the light ones: «θέλει ενέργεια» came out at 2.97:1 on
   its own surface and «πληρώθηκε» at 3.42:1, against the 4.5:1 that text needs. The
   two least readable badges were the two that matter most — the one asking the member
   to do something, and the one telling them they have been paid.
   55% is the lightest mix at which all nine clear 4.5:1 (amber, still the worst case,
   lands at 4.75:1), so each stage keeps as much of its own hue as the standard allows. */
.expense-status {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border: 1px solid color-mix(in srgb, var(--expense-status-color) 40%, #fff);
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--expense-status-color) 14%, #fff);
    color: color-mix(in srgb, var(--expense-status-color) 55%, #000);
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.expense-status-registered { --expense-status-color: var(--edoeap-status-registered); }
.expense-status-action     { --expense-status-color: var(--edoeap-status-action); }
.expense-status-rejected   { --expense-status-color: var(--edoeap-status-rejected); }
.expense-status-settled    { --expense-status-color: var(--edoeap-status-settled); }
.expense-status-payment    { --expense-status-color: var(--edoeap-status-payment); }
.expense-status-paid       { --expense-status-color: var(--edoeap-status-paid); }
.expense-status-unknown    { --expense-status-color: var(--edoeap-status-unknown); }

/* --- Gender accent --------------------------------------------------------
   Same idea as the expense badge above: the modifier only names two colours and
   every rule that draws with them lives in the component's own scoped CSS. That
   keeps one drawing rule instead of three, and lets other screens adopt the
   accent later without copying any styling. Applied by IndirectMemberForm. */
.edoeap-gender-male {
    --edoeap-gender-accent: var(--edoeap-gender-male);
    --edoeap-gender-accent-soft: var(--edoeap-gender-male-soft);
}

.edoeap-gender-female {
    --edoeap-gender-accent: var(--edoeap-gender-female);
    --edoeap-gender-accent-soft: var(--edoeap-gender-female-soft);
}

.edoeap-gender-unknown {
    --edoeap-gender-accent: var(--edoeap-gender-unknown);
    --edoeap-gender-accent-soft: var(--edoeap-gender-unknown-soft);
}

/* ---------------------------------------------------------------------------
   Η καρτέλα ενός έμμεσου μέλους
   ---------------------------------------------------------------------------
   Δύο οθόνες δείχνουν τα ίδια μέλη με τις ίδιες καρτέλες: η «Έμμεσα Μέλη»
   (IndirectMemberForm, με πεδία) και η «Καρτέλα Ασφαλισμένου» (DependentCards,
   μόνο για ανάγνωση). Ήταν δύο αντίγραφα των ίδιων κανόνων σε δύο scoped
   stylesheets, με το σχόλιο «αν αλλάξει εκεί, να αλλάξει κι εδώ» — και φυσικά
   απέκλιναν· ο ΕΔΟΕΑΠ το είδε και ζήτησε «η μορφοποίηση των tabs για τα έμμεσα
   πρέπει να γίνει ίδια με της εφαρμογής Έμμεσα μέλη, σε μορφοποίηση και μέγεθος»
   (9/10/2026). Ένας ορισμός, εδώ, για να μην ξανασυμβεί.

   Το χρώμα του φύλου βάφει ΟΛΟΚΛΗΡΗ την καρτέλα, όχι μόνο μια λωρίδα (αίτημα
   πελάτη): απαλή απόχρωση για επιφάνεια, πλήρες χρώμα στο περίγραμμα. Τα πεδία
   της DevExpress κρατούν το δικό τους λευκό, οπότε η απόχρωση μένει φόντο και δεν
   αγγίζει την αναγνωσιμότητα όσων γράφει ο χρήστης.

   Ρητά breakpoints και όχι auto-fit: ο κανόνας του πελάτη είναι κυριολεκτικά
   «τρεις στήλες ανά σειρά», και σε container 105rem το auto-fit θα έβγαζε πέντε.
   --------------------------------------------------------------------------- */
.edoeap-member-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 42rem) {
    .edoeap-member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 62rem) {
    .edoeap-member-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.edoeap-member-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--edoeap-gender-accent, var(--edoeap-gender-unknown));
    border-radius: var(--edoeap-form-radius);
    background-color: var(--edoeap-gender-accent-soft, var(--edoeap-gender-unknown-soft));
    color: var(--edoeap-color-neutral);
    /* Ρητό μέγεθος, όχι κληρονομημένο. Στα «Έμμεσα Μέλη» η καρτέλα κάθεται μέσα σε DxFormLayout
       και κληρονομούσε τα 14px της DevExpress· στην Καρτέλα Ασφαλισμένου κάθεται σε απλό div και
       κληρονομούσε τα 19px του body — ~36% μεγαλύτερα γράμματα στις «ίδιες» καρτέλες (ΕΔΟΕΑΠ,
       21/10/2026). Το --dxbl-fl-font-size υπάρχει μόνο μέσα σε DxFormLayout, οπότε εκεί δεν αλλάζει
       τίποτα· έξω πέφτει στο ίδιο token της Fluent, για να ακολουθεί το SizeMode. */
    font-size: var(--dxbl-fl-font-size, var(--dxds-font-size-base-md, 0.875rem));
    overflow: hidden;
    /* Η Καρτέλα τυπώνεται· μια καρτέλα κομμένη στη μέση δύο σελίδων δεν διαβάζεται. */
    break-inside: avoid;
}

/* Στην επικεφαλίδα μένει μόνο το όνομα — ό,τι αναγνωρίζει το μέλος. Ο αριθμός μητρώου
   και η σχέση («ΣΥΖΥΓΟΣ», «ΚΟΡΗ») είναι στοιχεία της καρτέλας, όχι τίτλος. Η σχέση
   γραμμένη δίπλα στο χρώμα είναι και δικλείδα: το φύλο το παράγουμε εμείς (ΣΤ9), οπότε
   ένα λάθος χρώμα μένει αισθητικό μπροστά σε μια τιμή που ήρθε από το API. */
.edoeap-member-card-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--edoeap-gender-accent, var(--edoeap-gender-unknown));
}

/* Τα ονόματα είναι κεφαλαία και μπορεί να μη χωράνε σε στήλη ~20rem: σπάνε, δεν κόβονται. */
.edoeap-member-card-name {
    font-weight: 700;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.edoeap-member-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem 0.85rem;
}

/* ── Λίστα ετικέτα/τιμή ────────────────────────────────────────────────────────
   Η ετικέτα ΠΑΝΩ από την τιμή, όχι δίπλα της.

   Ήταν δύο στήλες (minmax(6.5rem, auto) 1fr), μοτίβο του .appointment-details. Δούλευε όσο η
   σελίδα ήταν 105rem και η κάρτα ~34rem. Στα 64rem η κάρτα είναι ~20rem: μια ετικέτα σαν
   «Ιατροφαρμακευτική από» παίρνει τα μισά, και η τιμή σπάει στη μέση — «ΣΥΖΥΓΟ Σ»,
   «19/05/1 977», «1202110 2269». Οι δύο οθόνες δεν έχουν το ίδιο πλήθος στοιχείων (η φόρμα
   τέσσερα σύντομα, η Καρτέλα οκτώ με μακριές ετικέτες), οπότε δύο στήλες δεν μπορούν να
   δουλέψουν και στις δύο.

   Στοιβαγμένα δουλεύουν σε κάθε πλάτος, δεν σπάει καμία τιμή, και είναι η ίδια διάταξη με τα
   πεδία ακριβώς από κάτω στη φόρμα (CaptionPosition.Vertical).

   Η φόρμα γράφει span/strong, η Καρτέλα dt/dd (είναι <dl>): και τα δύο ζεύγη εδώ. */
.edoeap-member-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin: 0 0 0.25rem;
}

.edoeap-member-facts > div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    /* Χωρίς αυτό ένα μακρύ email κρατά το flex item πλατύτερο από την κάρτα. */
    min-width: 0;
}

/* Navy, όχι το γκρι «muted»: η κάρτα έχει χρωματιστό φόντο και το #5f6e82 πάνω στο navy-soft
   (#e4e7ee) δίνει 4.2:1, κάτω από το 4.5 του WCAG 1.4.3 (axe). Η ιεραρχία ετικέτα/τιμή μένει
   στο βάρος και στο μέγεθος: η τιμή είναι έντονη, η ετικέτα μικρότερη. */
.edoeap-member-facts :is(span, dt) {
    color: var(--edoeap-color-neutral);
    font-weight: 400;
    font-size: 0.85em;
    line-height: 1.3;
}

.edoeap-member-facts :is(strong, dd) {
    margin: 0;
    font-weight: 600;
    line-height: 1.35;
    /* Δίχτυ για ό,τι δεν σπάει μόνο του (μακρύ email): σπάει παρά ξεχειλίζει. */
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------------
   Skip link — WCAG 2.4.1. Off-screen until it takes focus, then anchored top-left
   above everything. It must be reachable by keyboard and invisible to the mouse,
   which is why it is moved rather than hidden: display:none would drop it out of
   the tab order entirely and defeat the purpose.
   --------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background: var(--edoeap-color-secondary, #003274);
    color: var(--edoeap-color-white, #fff);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 6px 0;
}

.skip-link:focus {
    left: 0;
    outline: 3px solid var(--edoeap-color-focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--edoeap-color-focus-keyline);
}

/* The content region receives focus from the skip link; it must never show a focus
   ring of its own, only accept the caret. */
#main-content:focus {
    outline: none;
}

/* ---------------------------------------------------------------------------
   Text for screen readers only.

   For the words a sighted reader gets from context and a screen-reader user does
   not — «(ανοίγει σε νέα καρτέλα)» after an external link being the first case.
   Not display:none and not visibility:hidden: both remove the text from the
   accessibility tree, which is the opposite of the intent. The 1px clip is the
   long-standing technique that keeps it announced.
   --------------------------------------------------------------------------- */
.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 ring — WCAG 2.4.7 and 1.4.11.

   There was no page-wide focus style: a handful of elements defined their own and
   everything else fell back to whatever the browser or DevExpress happened to draw,
   which on several controls is a faint one-pixel line that disappears against the
   grey page background. Someone navigating by keyboard could not tell where they
   were — and on these portals that is not an edge case, it is anyone who cannot use
   a mouse steadily.

   :focus-visible rather than :focus, so a mouse click does not leave a ring behind
   it; the browser decides, and it gets that decision right.
   --------------------------------------------------------------------------- */
:focus-visible {
    outline: 3px solid var(--edoeap-color-focus);
    outline-offset: 0;
    box-shadow: 0 0 0 5px var(--edoeap-color-focus-keyline);
}

/* The ring is drawn outside the element, so anything that clips its overflow would
   cut it in half. */
.dxbl-btn:focus-visible,
.dxbl-edit-btn:focus-visible {
    position: relative;
    z-index: 1;
}

/* ---- Αναζήτηση στην κεφαλίδα ------------------------------------------------------------------
   Η μεσαία ζώνη. Παίρνει τον χώρο που περισσεύει ανάμεσα στην αριστερή ομάδα και στα εργαλεία, και
   το πεδίο κεντράρεται μέσα της — όχι με absolute positioning, ώστε να μπορεί να στριμωχτεί αντί να
   πέσει πάνω σε άλλο στοιχείο. */
.dx-app-search {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
    padding: 0 1rem;
}

@media (max-width: 47.9375em) {
    .dx-app-search {
        padding: 0 0.25rem;
    }
}

/* ≤767px — the search gets its own row under the bar (Lighthouse target-size, mobile).
   In one row there is no room for it: menu, logo, telephone button, text size and sign-out already
   take ~370px of a 360–412px phone. The search zone shrank to 8–33px while the input, whose minimum
   width is its own, stayed 80px and slid under the telephone button — two touch targets on top of
   each other, and the toolbar pushed past the edge on a 360px phone. GlobalSearchBox.razor.css already
   assumed this row (max-width: none); the bar itself never made it. The bar wraps, the search goes
   last at full width, and the telephone button pushes the tools to the right of the first row. */
@media (max-width: 47.9375em) {
    .dx-app-portal .dx-app-header {
        flex-wrap: wrap;
        height: auto;
        row-gap: 0;
    }

    .dx-app-portal .dx-app-header-left {
        min-height: var(--edoeap-header-height);
    }

    .dx-app-portal .dx-app-header .dx-app-search {
        order: 10;
        flex: 1 0 100%;
        padding: 0 0 0.5rem;
    }

    .dx-app-portal .dx-app-header .dx-app-contact {
        margin-left: auto;
    }
}

/* ≤400px (360px phones) — the first row is ~380px wide: tighter gaps and a slightly smaller logo,
   so text size and sign-out stay on it instead of wrapping into a third row. */
@media (max-width: 25em) {
    .dx-app-portal .dx-app-header {
        column-gap: 0.25rem;
    }

    .dx-app-portal .dx-app-logo img {
        height: 1.75rem;
    }
}

/* ---- Χώρος για τη μπάρα του κινητού ------------------------------------------------------------ */
.dx-app-mobile-nav-spacer {
    display: none;
}

@media (max-width: 47.9375em) {
    .dx-app-mobile-nav-spacer {
        display: block;
        height: calc(4rem + env(safe-area-inset-bottom, 0px));
    }
}
/* ---------------------------------------------------------------------------
   Σελίδες σφάλματος και 404.

   Κοινά και για τα τρία apps — η ίδια αποτυχία δεν πρέπει να δείχνει διαφορετική
   ανάλογα με το ποια πύλη την εμφάνισε. Ο «κωδικός συμβάντος» είναι το μόνο
   τεχνικό στοιχείο που μένει, και μένει επειδή το μέλος μπορεί να το διαβάσει
   στο τηλέφωνο για να βρεθεί το συμβάν στα logs.
   --------------------------------------------------------------------------- */
.error-lead {
    margin: 0 0 var(--edoeap-space-3);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--edoeap-color-neutral);
}

.error-reference {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0 0 var(--edoeap-space-3);
    padding: 0.75rem 1rem;
    background-color: var(--edoeap-color-system-5);
    border: 1px solid var(--edoeap-color-system-20);
    border-radius: 0.5rem;
}

.error-reference-label {
    font-size: var(--edoeap-text-sm);
    color: var(--edoeap-color-neutral-2);
}

.error-reference-code {
    font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
    font-size: 0.9375rem;
    color: var(--edoeap-color-neutral);
    word-break: break-all;
}

.error-actions {
    display: flex;
    justify-content: center;
    margin-bottom: var(--edoeap-space-3);
}

.error-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--edoeap-target-primary);
    padding: 0 2rem;
    border-radius: 0.5rem;
    background-color: var(--edoeap-color-primary-dark);
    color: var(--dxds-color-content-primary-on-primary-rest, #fff);
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
}

.error-home:hover {
    filter: brightness(1.08);
}

.error-help,
.not-found {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--edoeap-color-neutral-2);
    text-align: center;
}

.error-help a,
.not-found a {
    color: var(--edoeap-color-primary-dark);
    font-weight: 700;
}

.not-found {
    padding: var(--edoeap-space-5) 1.25rem;
}
/* ---------------------------------------------------------------------------
   Ταυτότητα οφειλής — ο κωδικός πληρωμής.

   Το DebtIdentityResult έβαζε CssClass="identity-code" στο πεδίο του κωδικού RF, αλλά η κλάση δεν
   οριζόταν σε κανένα stylesheet (όπως και οι debt-identity-layout / debt-type-selection /
   member-info). Δηλαδή το **μοναδικό πράγμα για το οποίο υπάρχει η σελίδα** —ο αριθμός που θα
   πληκτρολογηθεί στο e-banking— εμφανιζόταν στο ίδιο μέγεθος με κάθε άλλο πεδίο.

   Μονοδιάστημη γραφή και αραίωση: αντιγράφεται με το χέρι, και το 0 δεν πρέπει να μπερδεύεται
   με το O.
   --------------------------------------------------------------------------- */
.identity-code input,
.identity-code .dxbl-text-edit-input {
    font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    color: var(--edoeap-color-neutral) !important;
}
/* ---------------------------------------------------------------------------
   Προειδοποίηση αυτόματης αποσύνδεσης (wwwroot/js/edoeap-idle.js).

   Μετακόμισε εδώ από το site.css του Edoeap.Web.Shared: το back office και ο
   διακομιστής ταυτότητας δεν αναφέρουν αυτή τη βιβλιοθήκη, οπότε το παράθυρο
   θα εμφανιζόταν εκεί εντελώς άστυλο.
   --------------------------------------------------------------------------- */
/* Inactivity auto-logout warning (see wwwroot/js/edoeap-idle.js). */
.edoeap-idle-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 27, 43, 0.55);
    z-index: 13000;
}

.edoeap-idle-card {
    background: #fff;
    max-width: 420px;
    width: calc(100% - 2.5rem);
    padding: 1.75rem 2rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 24px 60px rgba(2, 12, 27, 0.45);
    border-top: 5px solid #1B5FA8;
}

.edoeap-idle-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: #1f2a37;
}

.edoeap-idle-card p {
    margin: 0 0 1.25rem;
    color: #51607a;
    line-height: 1.5;
}

/* Ό,τι δεν έχει υποβληθεί θα χαθεί — η αποσύνδεση είναι σκληρή πλοήγηση έξω από το κύκλωμα.
   Πιο έντονο από το υπόλοιπο κείμενο, γιατί είναι το μέρος που αλλάζει την απόφαση. */
.edoeap-idle-card .edoeap-idle-warn {
    margin: -0.75rem 0 1.25rem;
    color: #8a3d00;
    font-weight: 600;
}

.edoeap-idle-card .edoeap-idle-stay {
    /* 44px: το μοναδικό στοιχείο ελέγχου ενός παραθύρου με χρονόμετρο 60 δευτερολέπτων. */
    min-height: var(--edoeap-target-min, 2.75rem);
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 0.5rem;
    background: #1B5FA8;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.edoeap-idle-card .edoeap-idle-stay:hover {
    background: #134577;
}

/* Έλειπε εντελώς. Ο χρήστης πληκτρολογίου έπαιρνε μόνο το προεπιλεγμένο περίγραμμα του browser
   πάνω σε σκούρο μπλε — πρακτικά αόρατο, στο μόνο κουμπί που σταματά την αντίστροφη μέτρηση. */
.edoeap-idle-card .edoeap-idle-stay:focus-visible {
    outline: 3px solid var(--edoeap-color-focus, #ffdd00);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--edoeap-color-focus-keyline, #212121);
}

/* ---------------------------------------------------------------------------
   Υποσέλιδο κελύφους — το landmark που έλειπε και από τα τρία.

   Δεν είναι πια κολλημένο στο κάτω μέρος της οθόνης: κάθεται μέσα στην περιοχή κύλισης, στο τέλος
   της σελίδας. Κολλημένο κρατούσε μόνιμα μια λωρίδα από κάθε σελίδα για πληροφορία που χρειάζεται
   σπάνια. Σε κοντή σελίδα το margin-top:auto το κατεβάζει στο κάτω μέρος, οπότε δεν «αιωρείται».
   Τα αρνητικά περιθώρια το απλώνουν από άκρη σε άκρη, πάνω από το padding της περιοχής.
   --------------------------------------------------------------------------- */
.dx-app-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 1.25rem;
    flex-wrap: wrap;
    margin: auto -1rem -1rem;
    padding: 0.4rem 1rem;
    background-color: var(--edoeap-color-neutral);
    color: var(--edoeap-color-white);
    font-size: var(--edoeap-text-sm);
}

/* Το υποσέλιδο κλείνει τη σελίδα· ο αέρας του ::after μπαίνει πάνω από αυτό, όχι κάτω. */
.dx-app-content:has(> .dx-app-footer)::after {
    order: -1;
    flex: 0 0 0;
}

.dx-app-footer .contact-strip {
    color: var(--edoeap-color-white);
}

@media print {
    .dx-app-footer {
        display: none !important;
    }
}

/* ---------------------------------------------------------------------------
   Τηλέφωνα στην κεφαλίδα (HeaderContact) — αντί για τη δική τους λωρίδα.
   Φαρδιά οθόνη: οι δύο αριθμοί κατευθείαν. Στενότερη: κουμπί που τους ανοίγει.
   --------------------------------------------------------------------------- */
.dx-app-portal .dx-app-contact {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.dx-app-portal .dx-app-contact-inline {
    color: var(--edoeap-header-fg);
}

.dx-app-portal .dx-app-contact-inline .contact-strip-label {
    display: none;
}

.dx-app-portal .dx-app-contact-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: var(--edoeap-target-min);
    height: var(--edoeap-target-min);
    padding: 0;
    border: none;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--edoeap-header-fg);
    cursor: pointer;
}

.dx-app-portal .dx-app-contact-toggle svg {
    width: 1.3rem;
    height: 1.3rem;
}

.dx-app-portal .dx-app-contact-toggle:hover {
    background-color: color-mix(in srgb, var(--edoeap-color-white) 14%, transparent);
}

.dx-app-contact-popup {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
}

.dx-app-contact-popup-title {
    font-weight: 600;
}

.dx-app-contact-popup .contact-strip {
    flex-direction: column;
    align-items: flex-start;
}

.dx-app-contact-popup .contact-strip-label {
    display: none;
}

/* Κάτω από ~1400px οι δύο αριθμοί δεν χωρούν δίπλα στην αναζήτηση: γίνονται κουμπί. */
@media (max-width: 87.4375em) {
    .dx-app-portal .dx-app-contact-inline {
        display: none;
    }

    .dx-app-portal .dx-app-contact-toggle {
        display: inline-flex;
    }
}

.dx-app-footer-tel {
    display: inline-flex;
    align-items: center;
    min-height: var(--edoeap-target-min);
    color: var(--edoeap-color-white);
    font-weight: 700;
}


/* Δεύτερη γραμμή της κενής κατάστασης: τι κάνει ο χρήστης μετά. */
.edoeap-empty-text {
    margin: 0;
}

.edoeap-empty-hint {
    margin: 0.4rem 0 0;
    font-size: var(--edoeap-text-sm);
    color: var(--edoeap-color-neutral-2);
}
/* ---------------------------------------------------------------------------
   Μειωμένη κίνηση — WCAG 2.3.3.

   Ήταν σε δύο αρχεία (Index, PublicGateway) και πουθενά αλλού, οπότε κάλυπτε δύο οθόνες από τις
   ~60. Ο κανόνας ανήκει εδώ: ισχύει και για τα δικά μας στυλ και για της DevExpress, που κινεί
   drawer, popup, grid και accordion χωρίς να ρωτά.

   Δεν μηδενίζουμε τη διάρκεια — ένα transition που τελειώνει σε 0ms δεν πυροδοτεί πάντα
   transitionend, και κώδικας που το περιμένει κολλάει. 0.01ms τελειώνει αμέσως και εκπέμπει.
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ---------------------------------------------------------------------------
   Οδηγία και σφάλμα πεδίου — §2.3 / §2.4.

   Καθολικά και όχι scoped: το EdoeapFieldHelp περιέχει ChildContent από τη σελίδα, οπότε τα
   στοιχεία μέσα του δεν φέρουν το scope attribute του component.
   --------------------------------------------------------------------------- */
.field-help {
    display: block;
}

.field-help:focus,
.field-help:focus-visible {
    outline: 3px solid var(--edoeap-color-focus, #ffbd2d);
    outline-offset: 4px;
}

/* Η οδηγία πάνω από το πεδίο και όχι κάτω: διαβάζεται πριν τη συμπλήρωση, όχι αφού. */
.field-hint {
    margin: 0.3rem 0 0;
    font-size: var(--edoeap-text-sm);
    line-height: 1.4;
    color: var(--edoeap-color-neutral-2);
}

.field-error {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0.3rem 0 0;
    font-size: var(--edoeap-text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--dxds-color-content-danger-default-rest, #b3261e);
}

/* Κόκκινη μπάρα στα αριστερά όλου του πεδίου: το σφάλμα δεν δηλώνεται ΜΟΝΟ με χρώμα — υπάρχει και
   το κείμενο και το «Σφάλμα:» για τον screen reader — αλλά φαίνεται με μια ματιά σε μεγάλη φόρμα. */
.field-help-invalid {
    border-left: 4px solid var(--edoeap-color-error);
    padding-left: var(--edoeap-space-3);
}
/* Επικεφαλίδα ομάδας στο πλαϊνό μενού: ονομάζει, δεν οδηγεί — οπότε δεν πρέπει να μοιάζει με
   σύνδεσμο. Μικρότερη, πιο ήσυχη και σε κεφαλαία-διάστιχο, ώστε να διαβάζεται ως ταμπέλα. */
.dx-app-nav .dx-app-nav-group > .dxbl-treeview-item-container > .dxbl-treeview-item-text,
.dx-app-nav .dx-app-nav-group > .dxbl-treeview-item > .dxbl-treeview-item-text {
    font-size: var(--edoeap-text-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--edoeap-color-neutral-2);
    cursor: default;
}
/* ---------------------------------------------------------------------------
   Κεφαλίδα των δύο κελυφών προσωπικού (authorization server, back office).

   Τα portals των μελών έχουν σκούρα κεφαλίδα με το λευκό «my-edoeap». Αυτά τα δύο είχαν λευκή
   κεφαλίδα με τίτλο κειμένου και το έγχρωμο edoeap_logo.png χωμένο στο συρτάρι — οπότε η σελίδα
   σύνδεσης έδειχνε άλλο σήμα από την εφαρμογή στην οποία μόλις συνδεόσουν.

   Ο επιλογέας αποκλείει τα portals, που έχουν ήδη τους δικούς τους κανόνες.
   --------------------------------------------------------------------------- */
.dx-app-page:not(.dx-app-portal) > .dx-app-header {
    background-color: var(--edoeap-header-bg);
    color: var(--edoeap-header-fg);
    border-bottom: none;
}

.dx-app-page:not(.dx-app-portal) > .dx-app-header .dx-app-title {
    color: var(--edoeap-header-fg);
}

/* Η DevExpress toolbar χρωματίζει μόνη της επιφάνεια και εικονίδια· σε σκούρα κεφαλίδα και τα δύο
   πρέπει να υποχωρήσουν, αλλιώς το hamburger γίνεται σκούρο πάνω σε σκούρο. */
.dx-app-page:not(.dx-app-portal) > .dx-app-header .dx-app-toolbar {
    background-color: transparent;
    --dxbl-toolbar-bg: transparent;
    --dxbl-toolbar-color: var(--edoeap-header-fg);
    --dxbl-toolbar-item-color: var(--edoeap-header-fg);
    --dxbl-toolbar-item-hover-bg: rgb(255 255 255 / 0.12);
}

/* Το μέγεθος γραμμάτων (SizeChanger) είναι DxDropDownButton, όχι στοιχείο της toolbar: δεν
   διαβάζει τις --dxbl-toolbar-item-* παραπάνω και έμενε με το γκρι κείμενο της Fluent πάνω στο
   navy (1.2:1 — axe/Lighthouse, σελίδα σύνδεσης και back office). */
.dx-app-page:not(.dx-app-portal) > .dx-app-header .dxbl-toolbar .dxbl-btn {
    background-color: transparent;
    border-color: transparent;
    color: var(--edoeap-header-fg);
    --dxbl-btn-color: var(--edoeap-header-fg);
}

.dx-app-page:not(.dx-app-portal) > .dx-app-header .dxbl-toolbar .dxbl-btn:hover,
.dx-app-page:not(.dx-app-portal) > .dx-app-header .dxbl-toolbar .dxbl-btn:focus-visible {
    background-color: rgb(255 255 255 / 0.16);
    color: var(--edoeap-header-fg);
}

.dx-app-page:not(.dx-app-portal) > .dx-app-header .dx-app-logo img {
    height: 2.5rem;
    width: auto;
    display: block;
}

.dx-app-page:not(.dx-app-portal) > .dx-app-header .dx-app-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
/* Σύνδεσμοι υποσέλιδου: απορρήτου και όρων. Λευκοί πάνω στο σκούρο υποσέλιδο, με στόχο αφής. */
.dx-app-footer a {
    display: inline-flex;
    align-items: center;
    min-height: var(--edoeap-target-min);
    color: var(--edoeap-color-white);
    text-decoration: underline;
}

.dx-app-footer a:hover,
.dx-app-footer a:focus-visible {
    text-decoration-thickness: 3px;
}
/* ---------------------------------------------------------------------------
   Το περιεχόμενο πρέπει να ξεχειλίζει, όχι να μαζεύεται.

   Το .dx-app-content είναι flex column με overflow: auto. Σε τέτοιο δοχείο το προεπιλεγμένο
   flex-shrink: 1 σημαίνει ότι ένα ψηλό παιδί ΣΥΡΡΙΚΝΩΝΕΤΑΙ στο ύψος της οθόνης αντί να το
   ξεπεράσει — οπότε δεν υπάρχει τίποτα να κυλήσει και το κάτω μέρος της σελίδας απλώς κόβεται.

   Το .main-content το είχε λύσει για τον εαυτό του με flex: 1 0 auto, αλλά δεκάδες σελίδες δεν το
   χρησιμοποιούν: η αρχική των πυλών (.dashboard) και όλες οι σελίδες λογαριασμού του
   authorization server. Εκεί το σφάλμα ήταν ορατό ως «η σελίδα δεν κυλά».

   Ο κανόνας ανήκει στο δοχείο, όχι στην κάθε σελίδα: αλλιώς κάθε νέα σελίδα πρέπει να θυμηθεί
   κάτι που δεν έχει λόγο να γνωρίζει.
   --------------------------------------------------------------------------- */
.dx-app-content > * {
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   Cookie banner (CookieScript, staging only — CookieConsentScript).

   The vendor paints «Αποδοχή όλων» (and «Αποθήκευση & Κλείσιμο» once the details
   are open) white on #23a8e0: 2.71:1, under the 4.5:1 that WCAG 1.4.3 asks for
   bold 12px text (axe, WAVE). These rules are in our stylesheet because the colours
   are set in the vendor's account, not here; ids plus !important outrank the
   style block the script injects. #186edf is the portals' accent: 4.8:1 with white.
   --------------------------------------------------------------------------- */
#cookiescript_injected #cookiescript_accept,
#cookiescript_injected #cookiescript_save {
    background-color: #186edf !important;
    color: #fff !important;
}

#cookiescript_injected #cookiescript_accept:hover,
#cookiescript_injected #cookiescript_save:hover {
    background-color: #1259b8 !important;
}

/* The banner's text: the vendor sets 11–12px — the description, the buttons, the category
   checkboxes, the links — under half our 19px body text, for members who are often elderly.
   16px, the floor the gov.gr design guide sets for any text, everywhere in the banner; the
   heading a step above. Letter-spacing off: the vendor's 0.3–0.4px was there to make 12px legible. */
/* Every text element of the banner, the cookie table in «Εμφάνιση λεπτομερειών» included (11px);
   the close cross keeps its glyph size and the heading is set below. */
#cookiescript_injected,
#cookiescript_injected *:not(#cookiescript_close):not(#cookiescript_header) {
    font-size: 16px !important;
    letter-spacing: normal !important;
}

#cookiescript_injected #cookiescript_header {
    font-size: 20px !important;
}

/* The «Πολιτική Απορρήτου» link inside the description was told apart from the text by colour
   alone (axe link-in-text-block, WCAG 1.4.1) — underlined, like every link in our own pages. */
#cookiescript_injected #cookiescript_description a {
    text-decoration: underline !important;
}

/* At 16px the vendor's 300px desktop box grew to 813px tall: on a 1280×800 laptop «Απόρριψη όλων
   sat below the fold, inside a box that scrolls — easy to miss. Wider, so the same text needs
   fewer lines and both buttons are on screen. Phones keep the vendor's full-width bar. */
@media (min-width: 768px) {
    #cookiescript_injected {
        width: min(34rem, calc(100vw - 2.5rem)) !important;
    }
}

/* ---------------------------------------------------------------------------
   Phones: the menu must not appear and then vanish (Lighthouse CLS 0.69, mobile).

   The drawer starts open in Shrink mode — the server cannot know the screen size — and only once
   the page is interactive does DxLayoutBreakpoint switch a phone to Overlap and close it. The
   prerendered page therefore showed the 256px menu beside the content, and a few seconds later the
   content jumped across the whole screen: the largest layout shift a member saw on every page.

   Below 768px (the breakpoint's XSmall|Small) a Shrink drawer only exists in that interval, so its
   panel is simply not drawn: the content takes the full width from the first paint, and the menu
   opens as before, in Overlap mode, from the header button or the bottom bar. Member portals only:
   the auth server's /Account pages are static, never reach the breakpoint, and would lose the menu.
   --------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .dx-app-portal .dxbl-drawer.dxbl-drawer-shrink > .dxbl-drawer-panel {
        display: none !important;
    }
}
