/*
    app_eshop.css
    e.shop-spezifische Styles. Die uebergeordneten Medics-Styles stehen in
    app_medics.css und werden vorher geladen; hier steht nur, was e.shop
    zusaetzlich braucht oder bewusst anders macht.

    Diese Datei loest figma.css und css/site.css ab.

    Bewusst NICHT uebernommen:
    - Der :root-Block aus figma.css. app_medics.css definiert dieselben
      --medics-*-Variablen und darueber hinaus weitere.
    - Die @font-face-Definitionen der Hausschrift. Die liegen jetzt in
      app_medics.css, damit auch e.kurier und e.absenzen sie bekommen.
    - Die .modal-*-Regeln. e.shop verwendet keine Modals (kein
      data-bs-toggle="modal", keine modal-Klasse, keine Telerik-Dialoge).
    - Aus site.css die Blazor-Vorlagenregeln, die app_medics.css schon abdeckt:
      .content, .btn:focus, h1:focus, .invalid, .validation-message,
      .blazor-error-boundary und .btn-primary.
    - Der @import von open-iconic. Es kommt im Markup keine oi-*-Klasse vor.
    - html, body { font-family: Helvetica }. Das ueberschrieb die Hausschrift;
      e.shop laeuft nun wie die anderen beiden Anwendungen auf Circular.
*/

/* =========================================================
   Uebernommen aus figma.css
   ========================================================= */

html {
    height: 100%;
}
.checkmark {
    position: absolute;
    top: 0;
    left: 200px;
    height: 20px;
    width: 20px;
    border: 1px solid #0057B8;
    background-color: lightgreen;
}
.container input:checked ~ .checkmark {
    background-color: lightblue;
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    border-radius: 50%;
    background-color: #0057B8;
}
.container input:checked ~ .checkmark:after {
    display: block;
}
.container .checkmark:after {
    left: 3px;
    top: 3px;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    text-align: center;
    border: 1px solid #0057B8;
    border-radius: 50%;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.kip_Checkbox input[type="checkbox"] {
    margin-right: 4px; 
}
    .kip_Checkbox input[type="checkbox"]:before {
        content: url(../Images/01_Inactive.svg);
        display: block;
    }
    .kip_Checkbox input[type="checkbox"]:checked:before {
        content: url(../Images/01_Activ.svg);
    }
.cbx input[type="checkbox"] {
    margin-right: 4px; 
}
    .cbx input[type="checkbox"]:before {
        content: url(../Images/01_Inactive.svg);
        display: block;
    }
    .cbx input[type="checkbox"]:checked:before {
        content: url(../Images/01_Activ.svg);
    }
.listing-section, .cart-section {
    border: 0px solid red;
    width: 100%;
    float: left;
    padding: 1%;
    border-bottom: 0.01em solid #dddbdb;
}
/* ---------------------------------------------------------
   Produktkachel

   Die Kachel fuellt ihre Bootstrap-Spalte. Vorher stand hier
   width: 22%; float: left; min-width: 250px; height: 500px - damit gewann
   .product den Spezifitaetsgleichstand gegen .col-xl-2 usw. (beide 0,1,0,
   und diese Datei laedt nach Bootstrap), die Kachel war auf jeder Breite
   22% breit und die Breakpoints wirkungslos. Die Abstaende zwischen den
   Kacheln kommen jetzt aus dem g-3 der umgebenden .row, nicht mehr aus
   margin: 1%.

   Als Flex-Spalte mit height: 100% sind alle Kacheln einer Zeile gleich
   hoch (Flex-Zeilen strecken ihre Elemente per Default), ohne dass eine
   feste Pixelhoehe noetig ist.

   container-type: inline-size macht die Kachel zum Bezug fuer die
   cqi-Einheiten weiter unten, damit die Schrift an der Kachelbreite haengt
   und nicht am Viewport - eine Kachel ist auf dem Handy am breitesten und
   auf dem Grossbildschirm am schmalsten, vw-Einheiten wuerden also genau
   falsch skalieren.
   --------------------------------------------------------- */
.product {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 2%;
    border: 1px solid transparent;
    container-type: inline-size;
}
    .product:hover {
        border-color: var(--medics-blue);
    }
.image-box {
    border: 0px solid gray;
    background-color: var(--medics-lightblue);
    width: 100%;
    height: 50%;
    overflow: hidden;
    border-radius: 2% 2% 0 0;
    padding-top: 10px;
}
/* Innerhalb der Kachel richtet sich die Bildflaeche nach der Kachelbreite statt
   nach einer festen Hoehe. Bewusst auf .product beschraenkt - .image-box wird
   auch in ProductView und ShoppingCartItemView verwendet, dort mit eigenen
   Inline-Hoehen.

   Das 4:3 sitzt an .images und nicht an .image-box: die Bestellknopf-Zeile
   darunter ist immer etwa gleich hoch, sie haette sonst von einer schmalen
   Kachel fast die ganze Bildhoehe weggenommen (bei 133px Kachelbreite blieben
   dem Bild 48px). So skaliert die Bildflaeche sauber mit der Spaltenbreite und
   die Knopfzeile kommt darunter dazu. */
.product > .image-box {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    height: auto;
}
.images {
    border: 0px solid blue;
    height: 80%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 2% 2% 0 0;
}
    .images img {
        height: 100%;
        width: 100%;
        object-fit: contain;
        overflow: hidden;
        padding: 5px;
    }
    /* min-height: 0 ist noetig, damit das Flex-Element unter seine Inhaltshoehe
       schrumpfen darf - sonst setzt das Bild die Hoehe und das 4:3 wirkt nicht. */
    .product > .image-box > .images {
        flex: 0 0 auto;
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
/* The two icons of a cart line: bin and heart, side by side at the right end of their column.

   This used to be a float construction - the bar floated left, .fav-button floated right inside
   it - so the two icons were pushed to opposite ends of whatever width the column had. With the
   icon column down to one twelfth they belong together, and a right-aligned flex row says that
   directly. Gone with it: the float rules, the debug border (0px solid yellow), a height: 20%
   that referred to a parent without a height, a border-radius on a box with neither background
   nor border, and .button-bar-w100 - a block-level flex container fills its column anyway.

   Only the cart line uses this class. */
.button-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 3%;
}
.fav-bar {
    width: 100%;
    height: 50px;
    padding: 10px;
    float: left;
    background-color: var(--medics-lightblue);
}
    .fav-bar .fav-button {
        float: right;
    }
.text-box {
    border: 0px solid black;
    width: 100%;
    height: 50%;
    float: left;
    border-radius: 0 0 2% 2%;
    padding: 1em;
    overflow: hidden;
}
/* Der Text nimmt die restliche Kachelhoehe. min-height gibt ihm bewusst viel
   Platz - die Kachel wird dadurch deutlich hoeher als die Bildflaeche allein
   verlangt, damit von Artikelname und Beschreibung mehr zu sehen ist.
   max-height deckelt die Zeile, damit eine einzelne sehr lange Beschreibung
   nicht alle Kacheln der Zeile mitzieht; darueber greift das overflow-y: auto
   aus dem Markup. Beides in cqi, waechst also mit der Kachelbreite mit. */
.product > .text-box {
    flex: 1 1 auto;
    float: none;
    height: auto;
    min-height: 70cqi;
    max-height: 130cqi;
    padding: clamp(0.4rem, 4cqi, 1em) clamp(0.35rem, 3.5cqi, 0.75em);
}
.social-link-linkedin {
    content: "\f215";
}
.fav-button {
    vertical-align: middle;
    border: none;
    background-color: inherit;
}
.add-button {
    vertical-align: middle;
    border: none;
    background-color: inherit;
}
.bin-button {
    vertical-align: middle;
    border: none;
    background-color: inherit;
}
/* Basisregel fuer den Seitenrahmen, der auf praktisch jeder Seite den Inhalt
   umschliesst. Bisher war .filler-container ausschliesslich in den Media
   Queries ab 1200px definiert; darunter hatte sie gar keinen Innenabstand.
   Die enthaltenen .row bringen aber den negativen Bootstrap-Gutter von -12px
   mit, den normalerweise der Innenabstand des Containers auffaengt - ohne ihn
   ragten die Zeilen links und rechts aus dem Viewport, auf dem Handy also
   12px horizontales Scrollen auf jeder Seite mit einer .row. */
.filler-container {
    /* main ist in app_medics.css ein Flex-Container, ein Block-Kind darin ist
       also ein Flex-Element und richtet sich nach seinem Inhalt. In der Praxis
       enthaelt jede Seite eine .container-fluid mit width: 100%, wodurch der
       Rahmen die verfuegbare Breite trotzdem ausfuellt - nachgemessen auf allen
       Seiten. flex: 1 1 auto macht das unabhaengig vom Inhalt. */
    flex: 1 1 auto;
    min-width: 0;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

/* Seitlicher Einzug der Seiteninhalte, als Treppe wie bisher - nur jetzt als Variable,
   damit die Fusszeile denselben Wert benutzen kann. Sie stand vorher fest bei 1.5rem und
   begann damit deutlich weiter links als der Text darueber.

   Von der Aussenkante des Rahmens bis zum Text kommen 36px hinzu: je ein halber Gutter
   von .filler-container, von der .container-fluid darin und von der Bootstrap-Spalte.
   Deshalb rechnet die Fusszeile unten +2.25rem. */
:root {
    --eshop-page-inset: 0px;
}

@media screen and (min-width: 1200px) {
    :root {
        --eshop-page-inset: 100px;
    }
}

@media screen and (min-width: 1400px) {
    :root {
        --eshop-page-inset: 150px;
    }
}

@media screen and (min-width: 1600px) {
    :root {
        --eshop-page-inset: 200px;
    }
}

@media screen and (min-width: 1800px) {
    :root {
        --eshop-page-inset: 250px;
    }
}

@media screen and (min-width: 2000px) {
    :root {
        --eshop-page-inset: 300px;
    }
}

@media screen and (min-width: 2200px) {
    :root {
        --eshop-page-inset: 350px;
    }
}

@media screen and (min-width: 2400px) {
    :root {
        --eshop-page-inset: 400px;
    }
}

.filler-container {
    margin-inline: var(--eshop-page-inset);
}
/* ---------------------------------------------------------
   "Nach oben"-Knopf

   Fest unten rechts im Fenster, unabhaengig von der Scrollposition. Er ist immer
   im Markup und wird von scrollToTop.js ueber die Klasse is-visible eingeblendet,
   sobald weit genug gescrollt wurde - visibility statt display, damit das
   Ein- und Ausblenden weich laeuft und der Knopf im ausgeblendeten Zustand keine
   Klicks abfaengt.
   --------------------------------------------------------- */
.scroll-to-top {
    position: fixed;
    right: clamp(0.75rem, 2vw, 1.5rem);
    bottom: clamp(0.75rem, 2vw, 1.5rem);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--medics-blue);
    border-radius: 50%;
    padding: 0;
    color: #fff;
    background-color: var(--medics-blue);
    box-shadow: 0 0.2rem 0.6rem rgb(0 0 0 / 25%);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}

    .scroll-to-top.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .scroll-to-top:hover,
    .scroll-to-top:focus-visible {
        background-color: #004a9e;
    }

@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: none;
        transform: none;
    }
}

.medics-hr {
    color: var(--medics-blue);
    border: 1px solid var(--medics-blue);
    opacity: 1;
}
.medics-blue {
    color: var(--medics-blue) !important;
}
.medics-green {
    color: var(--medics-green) !important;
}
.medics-red {
    color: var(--medics-red) !important;
}
.medics-lightblue {
    color: var(--medics-lightblue) !important;
}
/* Body text uses the text colour, not the brand colour.

   The order number, the labels and the values were all blue and differed only in weight - the
   blue had stopped saying anything. It is now reserved for the elements that actually lead:
   page titles, breadcrumbs, buttons, borders, icons.

   var(--bs-body-color) rather than "black": the same colour as the rest of the application's
   body text (#212529 from app_medics.css).

   The signal colours stay where they are set: .medics-green on the status and .medics-red on the
   urgent notice carry !important and still win against these rules.

   The weight of the values and of the order number was 700. At 45px that made the number look
   like a heading; 400 is the normal text weight.

   The order number sits between the two: it used to have its own
   clamp(1.5rem, 3.2vw, 45px), which read as a heading, and plain --eshop-font-size then made it
   disappear into the values next to it. A factor on the shared variable keeps it one step above
   body text while still scaling with the window from the same single source - roughly 31px on a
   wide window and 26px below md, against 45px before and 24px in the step in between.

   line-height as a plain number rather than a fixed 44px (or the 26px of the labels): that way
   it follows the font size instead of having to be corrected alongside it. */
.medics-ordernumber {
    font-size: calc(var(--eshop-font-size) * 1.3);
    line-height: 1.2;
    font-family: Circular, var(--medics-backup-font);
    font-weight: 400;
    color: var(--bs-body-color);
}
/* The order number in the orders overview doubles as the link to the order detail page
   (replacing the former arrow button), so it needs link styling on top of .medics-ordernumber. */
.medics-ordernumber-link {
    border: none;
    background-color: transparent;
    padding: 0;
    color: var(--medics-blue);
    cursor: pointer;
}
    .medics-ordernumber-link:hover {
        text-decoration: underline;
    }
.medics-order-property-caption {
    font-size: var(--eshop-font-size);
    line-height: 26px;
    font-family: Circular, var(--medics-backup-font);
    font-weight: 300;
    color: var(--bs-body-color);
}
.medics-order-property-value {
    font-size: var(--eshop-font-size);
    line-height: 26px;
    font-family: "Circular", var(--medics-backup-font);
    font-weight: 400;
    color: var(--bs-body-color);
}
/* Seitentitel skalieren mit dem Fenster. Bei festen 60px passte ein langes
   einzelnes Wort auf dem Handy nicht mehr in die Zeile und schob die ganze Seite
   auf: "Ihre Bestellungen" war bei 375px Fenster 362px breit und erzeugte einen
   waagrechten Bildlauf. Die Obergrenzen sind die bisherigen Werte, es wird also
   nichts groesser als vorher. */
.medics-title {
    font-size: clamp(2rem, 4.5vw, 60px);
    line-height: clamp(2.25rem, 4.9vw, 65px);
    font-family: "Circular", var(--medics-backup-font);
    font-weight: 700;
    color: var(--medics-blue);
}
.medics-subtitle {
    font-size: clamp(1.5rem, 3vw, 40px);
    line-height: clamp(1.85rem, 3.75vw, 50px);
    font-family: "Circular", var(--medics-backup-font);
    font-weight: 300;
    color: var(--medics-blue);
}
/* ---------------------------------------------------------
   Filterliste

   Die Filterspalte ist ein col-lg-2, also nur etwa ein Sechstel der Zeile - in
   den festen 25px bzw. 19px unten war die Schrift dort viel zu gross fuer die
   Spaltenbreite. Wie in der Produktkachel haengt die Groesse deshalb an der
   Breite des eigenen Containers (cqi), nicht am Viewport.

   Die Obergrenzen wurden ein zweites Mal angehoben, von 25px/19px auf 28px/22px:
   seit --eshop-font-size auf 24px steht, waren die Kategorien mit 19px das
   kleinste Element der Seite. Die Kategorien bleiben bewusst unter dem
   Fliesstext daneben - bei 1280px ist die Spalte nur 193px breit, und laengere
   Namen wuerden sonst am text-overflow: ellipsis abgeschnitten.

   Die cqi-Faktoren sind mit angehoben, damit die neuen Obergrenzen bei
   derselben Spaltenbreite erreicht werden wie vorher. Die Zeilenhoehen behalten
   ihr Verhaeltnis zur Schriftgroesse.

   Nachtrag (siehe .items-filter-column weiter unten): die Spalte ist ab md jetzt
   so breit, dass der laengste Kategoriename einzeilig hineinpasst. Die beiden
   clamp() stehen damit in der Praxis an ihrer Obergrenze; sie bleiben, weil sie
   unter md und bei einer schmaleren Spalte weiterhin greifen.
   --------------------------------------------------------- */
.filterList {
    container-type: inline-size;
}

    .filterList .medics-filter-group {
        font-size: clamp(1.0625rem, 14.6cqi, 1.75rem);
        line-height: clamp(1.175rem, 16.3cqi, 1.96rem);
    }

    .filterList .medics-filter-option {
        font-size: clamp(1rem, 12.15cqi, 1.375rem);
        line-height: clamp(1.15rem, 14.6cqi, 1.65rem);
    }

.medics-filter-group {
    font-size: 25px;
    font-family: "Circular", var(--medics-backup-font);
    font-weight: 700;
    color: var(--medics-blue);
}
.medics-filter-option {
    font-size: 19px;
    font-family: "Circular", var(--medics-backup-font);
    font-weight: 300;
    color: var(--medics-blue);
    /* These three have no effect and are only kept so nobody re-adds them expecting a shortened
       name: the element is a <label>, i.e. an inline box, and width, overflow and text-overflow do
       not apply to those. A long category name therefore never got an ellipsis, it wrapped onto a
       second line. What now guarantees the full name is the width of the column, see
       .items-filter-column below. */
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------------------------------------------------
   Breite der Filterspalte auf der Artikelseite

   Ab md ist die Spalte so breit, dass der laengste Kategoriename einzeilig
   hineinpasst. Gemessen mit CircularXXWeb-Light: "Blutentnahme Monovette"
   braucht 248px bei 22px Schrift, was die Obergrenze der Kategorien ist. Die
   Beschriftung sitzt im col-10 der Spalte (also 83.3%) und bringt 24px
   Bootstrap-Innenabstand mit: (248 + 24) / 0.8333 = 326px, aufgerundet 20.5rem.

   Achtung beim Aendern: die Schriftgroesse der Kategorien haengt an der Breite
   dieser Spalte (cqi, siehe oben). Eine breitere Spalte macht also auch den Text
   groesser - die Spalte "holt" einen zu langen Namen nicht ein, solange beides
   zusammen skaliert. Wer die Breite senkt, muss die Obergrenze der
   Kategorienschrift mit senken, sonst bricht der Name wieder um.

   min() statt eines festen Werts wie beim .btn weiter unten: reine Vorsicht fuer
   den Fall, dass die Zeile einmal in einem engeren Container landet.

   Die Artikelspalte nimmt den Rest. Ohne das flex: 1 1 0 kaeme sie mit ihren
   83.3% aus col-lg-10 auf mehr als die verbleibende Breite und wuerde in die
   naechste Zeile rutschen. min-width: 0 laesst die Kacheln darin weiter
   schrumpfen, statt am Inhalt haengenzubleiben.

   Unter md gilt nichts davon: dort stapeln beide Spalten als col-12.
   --------------------------------------------------------- */
@media (min-width: 768px) {
    .items-filter-column {
        flex: 0 0 auto;
        width: min(20.5rem, 100%);
    }

    .items-products-column {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }
}
/* Die Kontrollkaestchen werden vollstaendig durch die beiden SVG ersetzt. Ohne
   appearance: none zeichnet der Browser zusaetzlich sein eigenes Kaestchen, und
   weil das ::before-SVG nur darueber liegt, schaute davon oben links eine graue
   Ecke hervor. Die Masse entsprechen den SVG, die 21x21 gross sind. */
.medics-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 21px;
    height: 21px;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    line-height: 0;
    cursor: pointer;
}
    .medics-checkbox:before {
        content: url(../Images/01_Inactive.svg);
        display: block;
    }
    .medics-checkbox:checked:before {
        content: url(../Images/01_Activ.svg);
    }
.medics-footer-title {
    font-size: clamp(1.0625rem, 1.8vw, 25px);
    font-family: "Circular", var(--medics-backup-font);
    color: white;
    font-weight: 700;
    text-decoration: none !important;
}
    .medics-footer-title a:hover {
        color: white;
    }
.medics-footer-text {
    font-size: clamp(0.9375rem, 1.3vw, 18px);
    font-family: "Circular", var(--medics-backup-font);
    color: white;
    font-weight: 300;
    text-decoration: none !important;
}
    .medics-footer-text a:hover {
        color: white;
    }
.medics-product-detail-caption {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 300;
}
.medics-product-detail-text {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 300;
}
.medics-header-text {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue) !important;
    font-weight: 500;
}
.medics-products-code {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 300;
}
.medics-products-name {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 700;
}
.medics-products-remarks {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 300;
}
.medics-no-image {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 300;
}

/* ---------------------------------------------------------
   Schriftgroessen in der Produktkachel

   In der Kachel haengt die Schrift an der Kachelbreite (cqi bezieht sich auf
   den container-type: inline-size von .product), sonst bleiben es die festen
   Groessen von oben - dieselben Klassen stehen auch in der Produktdetailseite
   und im Warenkorb, wo es keine Kachel gibt.

   Die clamp-Obergrenzen sind genau die bisherigen Werte, 18px bzw. 22px, es
   wird also nichts groesser als vorher, nur auf schmalen Kacheln kleiner. Die
   Vorzugswerte treffen die Obergrenze bei etwa 300px Kachelbreite.

   Die Zeilenhoehen schrumpfen weiterhin etwas schneller als die Schrift, aber
   nicht mehr so hart wie zuvor: bei schmalen Kacheln lagen sie bei rund 1.05 und
   der Text wirkte gedraengt, jetzt sind es etwa 1.15 bis 1.2.
   --------------------------------------------------------- */
.product .medics-products-code,
.product .medics-products-remarks {
    font-size: clamp(0.8rem, 6cqi, 1.125rem);
    line-height: clamp(0.95rem, 7.8cqi, 1.5rem);
}

.product .medics-products-name {
    font-size: clamp(0.95rem, 7.3cqi, 1.375rem);
    line-height: clamp(1.15rem, 9.5cqi, 1.75rem);
}
.medics-order-caption {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 700;
}
.medics-order-text {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 300;
}
/* Remark fields: the cart line remark, the order remark in the cart and on the order detail page, and the remark on the article detail page.

   Placeholder and typed text were both --medics-blue, which made the entered content look like one of the leading elements. They now use the body text colour, so the blue stays reserved for what
   actually leads (titles, breadcrumbs, buttons, borders, icons) - the same reasoning as for the order properties further up.

   var(--bs-body-color) rather than "black": #212529 from app_medics.css, the colour the rest of the body text already uses. */
.medics-textarea {
    border: 1px solid var(--medics-border-blue);
    font-size: var(--eshop-font-size-small);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--bs-body-color);
    font-weight: 300;
    resize: none;
}
    .medics-textarea::placeholder {
        color: var(--bs-body-color);
    }
    .medics-textarea:read-only {
        background-color: white !important;
    }
    .medics-textarea:focus {
        color: var(--bs-body-color);
    }
/* The number between minus and plus. The weight used to be 700 and the size a step above the
   rest of the row: the number stood out from everything else in the cart line, although it is an
   input value and not a heading. It is now the same size as the unit dropdown next to it, which
   takes --eshop-font-size through the shared rule for .btn / .form-select / .form-control further
   down. Applies to both places the quantity pill appears - the cart and the article detail page -
   so that the same component looks the same everywhere. */
.medics-amount-input {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 400;
    text-align: center;
    border: 1px solid var(--medics-border-blue);
}
    .medics-amount-input:disabled {
        background-color: white;
    }
.medics-amount-warning {
    border: 3px solid var(--medics-red) !important;
    color: var(--medics-red);
}
.medics-units-ordered {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 700;
    text-align: center;
    border: none;
}
.medics-unit {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 700;
    border: none;
}
.medics-unit-select {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 400;
    border: 1px solid var(--medics-border-blue);
    /* Same height as the buttons and the quantity pill next to it - see --eshop-control-height.
       Bootstrap's .form-select brings padding and a line height that add up to about 50px, so the
       dropdown used to sit noticeably lower than the buttons in the same row. A select centres its
       selected text vertically in the box, so there is nothing else to adjust. */
    min-height: var(--eshop-control-height);
}
    .medics-unit-select:disabled {
        background-color: white !important;
    }
/* Unit selection as radio buttons (UnitRadioChoice), in the cart and on the article page. Always
   below each other. The text is blue like the former unit text, but not bold - weight 400 like the
   former dropdown. The min-height keeps the group at least as high as the quantity pill and the
   button next to it, see --eshop-control-height; justify-content centres a short group in it. */
.unit-radio-choice {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.35rem;
    min-height: var(--eshop-control-height);
}

.unit-radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    /* A single unit shows no radio button, only its name - in the same text as the options. */
    .unit-radio-option label,
    .unit-radio-single {
        margin: 0;
        font-size: var(--eshop-font-size);
        font-family: "Circular", var(--medics-backup-font);
        color: var(--medics-blue);
        font-weight: 400;
    }

    .unit-radio-option label {
        cursor: pointer;
    }

    .unit-radio-option input[type="radio"] {
        flex: 0 0 auto;
        margin: 0;
        cursor: pointer;
        accent-color: var(--medics-blue);
    }

    .unit-radio-option input[type="radio"]:disabled,
    .unit-radio-option input[type="radio"]:disabled + label {
        cursor: default;
    }
.medics-header-client {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 300;
}
.medics-accordion-header {
    font-size: clamp(1.375rem, 2.9vw, 40px);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    font-weight: 300;
}
.order-button {
    background-color: var(--medics-blue);
    width: 100%;
    border: none;
    height: 36px;
}
    .order-button:disabled {
        opacity: 50%;
    }
.medics-button-solid {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: white;
    background-color: var(--medics-blue) !important;
    border: none;
    font-weight: 700;
    text-decoration: none !important;
    padding: 20px 0px 20px 0px;
}
    .medics-button-solid:disabled {
        opacity: 50%;
    }
.medics-button-outline {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue) !important;
    background-color: white;
    border: 1px solid var(--medics-border-blue);
    font-weight: 700;
    text-decoration: none !important;
    padding: 20px 40px 20px 40px;
}
    .medics-button-outline:disabled span {
        opacity: 50%;
    }
/* The two date fields of the orders overview. The date is a value and therefore uses the normal
   text colour like the other values; what is blue now is the calendar icon. */
.medics-datetime {
    border: 1px solid var(--medics-border-blue);
    text-align: center;
    border-radius: 15px;
    color: var(--bs-body-color);
    font-family: "Circular", var(--medics-backup-font);
    width: 120px;
    /* The blue icon from Images/calendar.svg is a background image; the transparent button
       .date-field__button from DateField.razor lies on top of it and makes it clickable. The
       path is relative to this file in wwwroot/css, hence the "..".

       The drawing is the one Medics supplies; e.absenzen carries the same file under the same
       name, so both applications show one and the same calendar. It replaced 02_Calendar.svg,
       which still lies next to it. A <symbol> of the header sprite cannot be referenced from a
       CSS background, hence a copy per application - a new drawing has to be put into every one
       of them by hand. The colour is baked into the file (#0057b8) because currentColor does not
       reach a background image. */
    background-image: url("../Images/calendar.svg");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.1rem auto;
}
    .medics-datetime:focus {
        outline: 2px solid var(--medics-blue);
    }
/* Die Tooltip-Farben standen hier: .tooltip-inner blau und dieselbe Farbe noch
   einmal einzeln fuer alle vier Pfeilrichtungen. Beides ist entfallen.

   Zum einen wohnt die Regel jetzt in itok-header.css und gilt damit auch fuer
   e.kurier und e.absenzen - eine Farbe, ein Ort. Zum anderen genuegt seit
   Bootstrap 5.3 ein einziges --bs-tooltip-bg fuer Kasten UND alle vier Pfeile;
   die vier .bs-tooltip-*-Regeln waren ein Rest aus Bootstrap-4-Zeiten. */
textarea:-moz-placeholder, 
textarea::-moz-placeholder, 
textarea:-ms-input-placeholder, 
textarea::-webkit-input-placeholder, 
textarea::placeholder { 
    color: var(--medics-light-blue) !important;
    opacity: 1 !important; 
}
.nav-link a:hover {
    color: white !important; 
}
/* Messages and labels without a class of their own: "no orders found", "the cart is empty", the
   labels on the customer, user and start pages. Body text as well, and therefore in the text
   colour rather than blue - see the block at .medics-ordernumber.

   The !important was already here and stays: the class appears in several places together with
   Bootstrap classes that bring a colour of their own. */
.medics-default-text {
    font-size: var(--eshop-font-size);
    font-family: "Circular", var(--medics-backup-font);
    color: var(--bs-body-color) !important;
    font-weight: 500;
}
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important
}
/* The urgent switch.

   Two rebuilds so far. It used to be a slider: a round ball travelling from one end to the other
   while the switch stayed faded at 50% in both positions. The ball is gone - the switch states its
   condition through the fill. Off keeps the old look minus the ball, on swaps the colours and
   drops the fade.

   It is red, not blue: --medics-red is the house colour for urgency and is already what marks an
   urgent order on the overview and the detail page (.medics-red there). That also settles what a
   tick used to settle here - filled blue, the switch was indistinguishable from the Send button
   beside it; filled red it is not, so the tick is gone again. */
.toggleCheckbox {
    /* Not display: none. That took the checkbox out of the tab order, and since the label is the
       only thing on screen the switch was operable by mouse only. Moved off the page instead:
       invisible, but still focusable and still announced by a screen reader. */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.toggleContainer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Was 1.9rem, which was the room the ball needed at both ends. */
    padding: 0 1rem;
    /* This used to be a fixed 11rem. The width now comes from the Bootstrap column in Cart.razor -
       the switch sits in the same column width as the buttons next to it and is therefore exactly
       as wide as they are.

       min-content stays as a lower bound: the label plus the padding. It only kicks in once the
       column gets narrower than the content - the switch would then be a touch wider than the
       button next to it, but the label would not be squeezed. */
    min-width: min-content;
    border: 1px solid var(--medics-red);
    border-radius: 50rem;
    background: white;
    opacity: 50%;
    font-weight: bold;
    cursor: pointer;
    /* Same height as the buttons in the columns next to it - see --eshop-control-height, which
       carries the value and the reasoning. */
    min-height: var(--eshop-control-height);
    width: 100%;
    /* The ball used to carry the change (transition: left 0.3s). Without it the switch would jump
       between the two colour schemes, so the fill and the fade take a short moment instead. This
       is a colour change and not movement, hence no prefers-reduced-motion exception - but see the
       rule below, which switches it off along with the rest for anyone who asked for that. */
    transition: background-color 0.15s ease-out, opacity 0.15s ease-out;
}

    /* The label sits in a div inside the switch. The font size has to be stated on this selector
       and not only on the switch itself, because this one is the more specific of the two -
       otherwise the former 25px stood and "Dringend" was bigger than the Send button next to it. */
    .toggleContainer div {
        /* No padding of its own: the height of the switch comes from min-height above, and
           align-items: center takes care of centring the label vertically. */
        padding: 0;
        text-align: center;
        white-space: nowrap;
        color: var(--medics-red);
        font-size: var(--eshop-font-size);
        font-family: var(--eshop-font-family);
        transition: color 0.15s ease-out;
    }

/* On: colours the other way round - red fill, white label. Not at full strength but at 80%: a fifth of the red is taken out so the switch sits back a little when it is on. Still clearly stronger
   than the 50% of the off state below, so the two states stay easy to tell apart. The opacity covers the whole element, so the white label fades with the fill - that is what keeps the switch
   looking like one piece instead of white text on a washed-out ground. */
.toggleCheckbox:checked + .toggleContainer {
    background: var(--medics-red);
    opacity: 80%;
}

    .toggleCheckbox:checked + .toggleContainer div {
        color: #fff;
    }

/* Keyboard focus. The checkbox itself is invisible, so the ring goes on the label. focus-visible
   and not focus: a mouse click should not leave a ring behind. */
.toggleCheckbox:focus-visible + .toggleContainer {
    outline: 2px solid var(--medics-red);
    outline-offset: 2px;
}

/* Without edit rights the switch is disabled. Fainter than the off state, so the two cannot be
   confused, and the cursor says that clicking will not do anything. */
.toggleCheckbox:disabled + .toggleContainer {
    opacity: 35%;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .toggleContainer,
    .toggleContainer div {
        transition: none;
    }
}

.copy-button {
    vertical-align: middle;
    border: none;
    background-color: inherit;
    float: right;
}
.medics-textbox {
    border: 1px solid var(--medics-border-blue);
}
.form-label {
    color: var(--medics-blue);
    font-family: "Circular", var(--medics-backup-font);
}
.medics-font-blue {
    color: var(--medics-blue) !important;
    font-family: "Circular", var(--medics-backup-font) !important;
}
.medics-search-input,
.medics-search-input:active,
.medics-search-input:focus {
    color: var(--medics-blue);
    font-family: "Circular", var(--medics-backup-font);
}
.medics-footer {
    background-color: var(--medics-blue);
    padding-top: 20px;
    padding-bottom: 5px;
}
.no-padding {
    padding-left: 0px;
    padding-right: 0px;
}
.itok-toast {
    display: none;
    padding: 1.5rem;
    color: #fff;
    z-index: 1500;
    position: fixed;
    width: 25rem;
    top: 100px;
    border-radius: 1rem;
    right: 2rem;
    color: white;
    background-color: var(--medics-blue);
    font-family: "Circular", var(--medics-backup-font);
    font-size: 15px;
    font-family: "Circular", var(--medics-backup-font);
    font-weight: 500;
}
    .itok-toast .itok-toast-title {
        display: flex;
        flex-direction: column;
        flex: 1;
        padding-left: 1rem;
        font-size: 18px;
        font-weight: 700;
    }
    .itok-toast .itok-toast-message {
        display: flex;
        flex-direction: column;
        flex: 1;
        padding-left: 1rem;
    }
.itok-toast-visible {
    display: flex;
    position: fixed;
    flex-direction: row;
    animation: itok-toast-in 0.35s ease-out;
}
/* Der Auftritt einer Meldung.

   Kurz und mit einer kleinen Bewegung, damit auch die zweite Meldung in schneller Folge
   als neue Meldung erkennbar ist - das vorherige reine Aufblenden ueber 0.8s war beim
   schnellen Klicken kaum zu sehen. Dass die Animation ueberhaupt erneut anlaeuft,
   besorgt das @key in Toast.razor: es laesst Blazor den Knoten ersetzen, und ein neuer
   Knoten spielt seine Animation von null an.

   Loest "fadein" ab, das nur an dieser einen Stelle verwendet wurde. */
@keyframes itok-toast-in {
    from {
        opacity: 0;
        transform: translateY(-0.5rem) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
/* Wer Bewegung im Betriebssystem abgeschaltet hat, bekommt keine. Das Aufblenden bleibt
   aber, sonst waere nicht mehr zu erkennen, dass eine neue Meldung aufgegangen ist. */
@media (prefers-reduced-motion: reduce) {
    .itok-toast-visible {
        animation: itok-toast-fade 0.2s ease-out;
    }
}
@keyframes itok-toast-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.download-button {
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
}
.pre-wrap {
    white-space: pre-wrap;
}
ul.breadcrumb {
    list-style: none;
}
    ul.breadcrumb li {
        display: inline;
        font-size: var(--eshop-font-size);
        font-weight: 300;
        font-family: "Circular", var(--medics-backup-font);
        color: var(--medics-blue);
    }
        ul.breadcrumb li + li:before {
            padding: 8px;
            color: var(--medics-blue);
            content: ">";
        }
        ul.breadcrumb li a {
            text-decoration: none;
        }
/* Add a color on mouse-over */
ul.breadcrumb li a:hover {
    text-decoration: none;
}
.selected-customer-text {
    font-size: var(--eshop-font-size);
    font-weight: 700;
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
    background-color: var(--medics-lightblue);
    padding: 5px 25px 5px 25px;
}
    .selected-customer-text a {
        text-decoration: none;
    }
/* Kundenangaben auf /details: Spalte 1 Beschriftung, Spalte 2 Wert, ohne Rahmenlinien.
   Dieselbe Form wie im Benutzer-Popup des Headers, damit beide dasselbe zeigen. Die
   Beschriftungsspalte nimmt nur ihre eigene Breite, damit die Werte links aneinander
   stehen; ab 768px steht ein fester Abstand dazwischen, darunter genuegt weniger. */
.customer-details-table {
    border-collapse: collapse;
    margin-bottom: 1rem;
    text-align: left;
}

    .customer-details-table th,
    .customer-details-table td {
        border: 0;
        padding: 0.35rem 0;
        vertical-align: top;
        font-weight: 300;
    }

    .customer-details-table th {
        width: 1%;
        white-space: nowrap;
        padding-right: 1.5rem;
    }

@media (min-width: 768px) {
    .customer-details-table th {
        padding-right: 3rem;
    }
}


/* Die drei technischen Kennungen stehen in derselben Tabelle, aber auf weissem Grund, damit
   sie als eigener Block erkennbar bleiben. Nur die Farbe unterscheidet sich, die Masse nicht. */
.customer-details-table--plain {
    background: #ffffff;
}

.customer-details-caption {
    font-size: var(--eshop-font-size);
    font-weight: 300;
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
}
.customer-details-text {
    font-size: var(--eshop-font-size);
    font-weight: 300;
    font-family: "Circular", var(--medics-backup-font);
    color: var(--medics-blue);
}
.accordion-button::after {
    background-image: url(../Images/accordion-plus.svg);
    background-size: 32px;
    width: 32px;
    height: 32px;
}
.accordion-button:not(.collapsed)::after {
    background-image: url(../Images/accordion-minus.svg);
    background-size: 32px;
    width: 32px;
    height: 32px;
}
.row .highlight {
    background-color: var(--medics-lightblue);
}
.quick-order-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 14px;
    border: 1px solid var(--medics-blue);
    border-radius: 4px;
    color: var(--medics-blue);
    background-color: transparent;
    cursor: pointer;
    width: 60px;
}
    .quick-order-button span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
    }

/* In der Produktkachel muessen immer drei Knoepfe nebeneinander Platz haben -
   AddToCartButtons rendert einen pro Einheit (Stueck, Rolle, Packung). Die
   Breite ist deshalb genau ein Drittel der Knopfzeile abzueglich der beiden
   gap-2-Zwischenraeume (2 x 0.5rem) statt der festen 60px. Das Prozent bezieht
   sich auf den Flex-Container, die Rechnung stimmt also auf jeder Kachelbreite.
   Die 1.02rem statt 1rem sind Rundungsreserve, damit der dritte Knopf nicht
   umbricht. Innenabstand, Abstand und Symbolgroesse skalieren mit. */
.product .quick-order-button {
    flex: 0 0 auto;
    width: calc((100% - 1.02rem) / 3);
    min-width: 0;
    justify-content: center;
    /* Etwas Luft zwischen Symbol und Zahl - vorher klebten sie bei schmalen
       Kacheln fast aneinander. Die Breite bleibt ein Drittel der Zeile, der
       groessere Abstand geht also zulasten der Innenabstaende, nicht der
       Knopfbreite. */
    gap: clamp(3px, 2.5cqi, 9px);
    padding: clamp(1px, 1cqi, 4px) clamp(2px, 1.6cqi, 6px);
    font-size: clamp(0.625rem, 5.5cqi, 0.875rem);
}

    .product .quick-order-button span {
        width: auto;
        height: auto;
    }

    .product .quick-order-button img {
        width: clamp(11px, 9cqi, 20px);
        height: auto;
    }
/* =========================================================
   Uebernommen aus css/site.css

   Nur was app_medics.css nicht abdeckt. Die Reihenfolge entspricht der
   bisherigen Ladefolge - site.css kam nach figma.css - damit hier
   ueberschriebene Regeln weiter ueberschreiben.
   ========================================================= */

/* Linkfarbe von e.shop. app_medics.css hat dazu keine Regel. */
a, .btn-link {
    color: #0071c1;
}

/* Gruener Rahmen an einem gueltig geaenderten Eingabefeld. */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

/*
    Die Blazor-Fehlerbox. Bewusst e.shop-eigen und nicht die Vorlagenfassung:
    sie beginnt unterhalb des Headers (top: 70px), ist weiss und deckt die
    Seite. display: none haelt sie versteckt, bis Blazor sie einblendet - ohne
    diese Regel waere sie dauerhaft sichtbar.
*/
#blazor-error-ui {
    background: white;
    bottom: 0;
    top: 70px;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Favoriten-Stern, der ueber der Produktkachel liegt (.product ist relativ). */
.favorite-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.favorite-overlay2 {
    position: absolute;
    top: 20px;
    right: 10px;
    z-index: 10;
}

/* =========================================================
   Mengen-Eingabe (CustomNumericInput)

   Pille mit Minus, Zahl und Plus in einer Zeile. Ersetzt die frueheren
   150px-Breite plus absolut positionierte Knoepfe - die bezogen sich auf den
   naechsten positionierten Vorfahren und lagen deshalb ausserhalb der Pille.
   ========================================================= */
.medics-amount-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(0.1rem, 0.5vw, 0.4rem);
    width: 100%;
    max-width: 11rem;
    min-width: 7rem;
    padding: 0.1rem clamp(0.25rem, 0.8vw, 0.6rem);
    border: 1px solid var(--medics-border-blue);
    border-radius: 50rem;
    background-color: #fff;
    /* Same height as the buttons and the unit dropdown in the same row - see
       --eshop-control-height. The pill used to be about 50px, which came out of the number's font
       size; align-items: center above keeps minus, number and plus centred in the taller box. */
    min-height: var(--eshop-control-height);
}

    /* Die Knoepfe sitzen im Fluss, nicht mehr absolut. Kein eigener Rahmen und
       kein Hintergrund, damit nur das Symbol in der Pille steht. */
    .medics-amount-group .btn-minus,
    .medics-amount-group .btn-plus {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        padding: 0.15rem clamp(0.15rem, 0.6vw, 0.45rem);
        border: 0;
        background-color: transparent;
        line-height: 1;
    }

        .medics-amount-group .btn-minus:disabled,
        .medics-amount-group .btn-plus:disabled {
            opacity: 0.4;
        }

        .medics-amount-group .btn-minus img,
        .medics-amount-group .btn-plus img {
            display: block;
            width: clamp(11px, 1.1vw, 16px);
            height: auto;
        }

    /* Das Zahlenfeld traegt den Rahmen nicht mehr selbst, den hat die Pille. */
    .medics-amount-group .medics-amount-input {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        padding: 0.1rem 0;
        border: 0;
        border-radius: 0;
        background-color: transparent;
        box-shadow: none;
    }

        .medics-amount-group .medics-amount-input:focus {
            box-shadow: none;
            outline: none;
        }

/* =========================================================
   Combobox der Kundenauswahl (Komponente aus ITOK.L004)

   Markup der Komponente: .input-group > .form-floating.flex-fill (Eingabefeld
   plus Label) und daneben der Auf-/Zuklapp-Knopf mit der Id
   l004comboboxselect...buttonDown bzw. ...buttonClear.

   .input-group bringt aus Bootstrap flex-wrap: wrap mit. Sobald das Eingabefeld
   seine ganze Breite beansprucht, rutscht der Knopf damit auf die naechste Zeile
   und steht unter dem Feld. nowrap haelt beide in einer Zeile, das Feld nimmt
   den restlichen Platz, der Knopf bleibt rechts daneben.

   Bewusst ueber :has() nur auf diese Combobox begrenzt - die Mengen-Eingabe
   oben ist ebenfalls eine .input-group und soll unberuehrt bleiben.
   ========================================================= */
.input-group:has(> .form-floating > [id^="l004comboboxselect"]) {
    flex-wrap: nowrap;
    width: 100%;
}

    .input-group:has(> .form-floating > [id^="l004comboboxselect"]) > .form-floating {
        flex: 1 1 auto;
        width: 1%;
        min-width: 0;
    }

    /* Der Auf-/Zuklapp-Knopf traegt im Paket-Markup "btn border border-1
       border-start-0". Die Klasse laesst sich von hier aus nicht entfernen - das
       Markup steht in Itok.L004.Blazor.Component - also wird das, was .btn ihm
       aufdrueckt, hier zurueckgenommen:

       - min-height: 4rem machte ihn 64px hoch, das Eingabefeld daneben ist 58px.
       - color: #fff faerbte den Chevron weiss auf weissem Grund, der Knopf sah
         deshalb leer aus.
       - Bootstraps .border zeichnet in --bs-border-color, einem Grau, waehrend
         das Feld daneben in Medics-Blau umrandet ist.
       - border-radius: 2rem war runder als die 1.1rem des Eingabefeldes.

       align-self: stretch statt einer festen Hoehe: so folgt der Knopf dem Feld,
       auch wenn dessen Hoehe sich mit der Schriftgroesse aendert.

       border-color braucht !important, weil Bootstraps .border-Utility die Farbe
       ihrerseits mit !important setzt und sonst gewinnt. Breite und Stil kommen
       von .border-1 und .border-start-0 und stimmen bereits. */
    .input-group:has(> .form-floating > [id^="l004comboboxselect"]) > .btn {
        flex: 0 0 auto;
        white-space: nowrap;
        align-self: stretch;
        min-height: 0;
        padding: 0 0.85rem;
        font-weight: normal;
        color: var(--medics-blue);
        background-color: #fff;
        border-color: var(--medics-blue) !important;
        border-radius: 0 1.1rem 1.1rem 0;
    }

        .input-group:has(> .form-floating > [id^="l004comboboxselect"]) > .btn:hover,
        .input-group:has(> .form-floating > [id^="l004comboboxselect"]) > .btn:focus {
            color: var(--medics-blue);
            background-color: #fff;
            border-color: var(--medics-blue) !important;
            box-shadow: none;
        }

    /* Das Feld gibt seine rechten Ecken an den Knopf ab, damit die beiden eine
       durchgehende Pille bilden. Bootstrap macht das fuer .form-control in einer
       .input-group bereits, aber mit seinem eigenen Radius. */
    .input-group:has(> .form-floating > [id^="l004comboboxselect"]) > .form-floating > .form-control {
        border-right: 0;
        border-radius: 1.1rem 0 0 1.1rem;
    }

/* Die Schrift im Feld und im Label der Combobox skaliert wie die uebrigen
   Formulartexte. */
[id^="l004comboboxselect"],
.form-floating > label {
    font-size: clamp(0.8125rem, 1.1vw, 15px);
}

/* =========================================================
   Datumsfelder der Bestellungsuebersicht

   Feste 120px waren zu schmal: die Schweizer Schreibweise mit vierstelligem
   Jahr plus das Kalendersymbol des Browsers brauchen mehr Platz, der Text war
   abgeschnitten.
   ========================================================= */
.medics-datetime {
    width: 100%;
    max-width: 13rem;
    min-width: 9.5rem;
    padding-inline: 0.5rem;
    font-size: clamp(0.8125rem, 1.1vw, 15px);
}

/* Der Dringend-Schalter stand hier ein zweites Mal, aus einer frueheren Korrektur: eine
   Rasterspalte fuer den 2.75rem breiten Schieber und ein Innenabstand nur rechts. Beides
   ueberschrieb die Regeln weiter oben, hielt den Schieber oval statt rund und schob die
   mittige Beschriftung um den halben Innenabstand aus der Mitte. Der Schalter steht jetzt
   vollstaendig weiter oben, an einer Stelle. */

/* =========================================================
   Knopfbreite und Knopfschrift

   app_medics.css gibt .btn ein min-width: 14rem, also 224px, und eine feste
   Schriftgroesse. In einer col-xl-2 sind aber nur rund 166px Platz - die
   Warenkorb-Knoepfe ragten deshalb aus ihrer Spalte und ueberlappten einander,
   und der Auf-/Zuklapp-Knopf der Combobox wurde 224px breit.

   min() laesst die 14rem stehen, wo Platz ist, begrenzt sie aber auf die Breite
   des umgebenden Elements. Die Schrift skaliert bis zur bisherigen Groesse als
   Obergrenze.
   ========================================================= */
.btn {
    min-width: min(14rem, 100%);
    font-size: clamp(0.9375rem, 1.4vw, 1.25rem);
}

/* Knoepfe, die nur ein Symbol tragen, brauchen gar keine Mindestbreite. */
.medics-amount-group .btn-minus,
.medics-amount-group .btn-plus,
.input-group:has(> .form-floating > [id^="l004comboboxselect"]) > .btn {
    min-width: 0;
}

/* =========================================================
   Einheitliche Schriftgroessen

   Alle Beschriftungen, Werte, Knopftexte und Auswahlfelder haengen an diesen
   Variablen. Wer die Groessen anpassen will, aendert sie hier an einer
   Stelle - die Zuweisungen weiter unten und in den Klassenbloecken oben
   verwenden ausschliesslich var().

   Die Obergrenzen lagen urspruenglich auf den vorher fest verdrahteten Werten und
   sind leicht angehoben; unterhalb davon skaliert alles gemeinsam mit
   der Fensterbreite.

   Bewusst NICHT an diesen Variablen:
   - .medics-title und .medics-subtitle. Das sind die Seitentitel ("Warenkorb",
     "1 Artikel"), die bleiben bewusst deutlich groesser.
   - .medics-accordion-header, ebenfalls eine Ueberschrift.
     (.medics-ordernumber stand hier ebenfalls; die Bestellnummer haengt jetzt mit
     einem Faktor an --eshop-font-size, ist also eine Stufe groesser als der uebrige
     Text und skaliert mit ihm.)
   - Die Texte in der Produktkachel und in der Filterliste. Die haengen an der
     Breite ihres eigenen Containers (cqi) statt am Fenster, weil eine Kachel auf
     dem Handy breiter ist als auf dem Grossbildschirm.
   ========================================================= */
:root {
    /* Standard: Beschriftungen, Werte, Knopftexte, Auswahlfelder, Brotkrumen.

       Fruehere Fassung: clamp(1.0625rem, 1.55vw, 20px). Deren Obergrenze von 20px
       war der Grund, weshalb Knoepfe, Auswahl- und Eingabefelder im e.shop kleiner
       waren als in e.kurier und e.absenzen: dort gibt es keine solche Regel, die
       Elemente erben ihre Groesse vom body - 20px unter 768px, 24px darueber
       (app_medics.css). Gemessen kam der e.shop auf 19.84px, wo die anderen zwei
       auf 24px standen.

       Jetzt dieselben zwei Stufen am selben Umbruchpunkt, damit die drei
       Anwendungen rechnerisch uebereinstimmen und nicht nur ungefaehr. Das
       fliessende Mitwachsen dazwischen entfaellt dafuer bewusst. */
    --eshop-font-size: 1.25rem;

    /* Etwas kleiner: Platzhalter, Hinweistexte beim Ueberfahren, Meldungen.
       Drei Viertel der Standardgroesse, wie schon vorher (15px zu 20px). */
    --eshop-font-size-small: 0.9375rem;

    /* Hausschrift, damit auch Tooltips und Meldungen sie sicher bekommen */
    --eshop-font-family: "Circular", var(--medics-backup-font);

    /* Height of the interactive controls that stand next to each other in a row: buttons, the
       urgent switch, the quantity pill and the unit dropdown. The value mirrors min-height: 4rem
       on .btn in app_medics.css, which cannot be referenced from here because that file is shared
       with e.kurier and e.absenzen. If it changes there, change it here - these are the only two
       places that carry the number.

       Every control that uses it is a border-box element whose content is shorter than 4rem, so
       the value really decides the height rather than only acting as a floor. */
    --eshop-control-height: 4rem;
}

/* Ab derselben Breite, ab der app_medics.css das body von 1.25rem auf 24px hebt.
   Die beiden Werte behalten dabei ihr Verhaeltnis zueinander: 24px und 18px.

   Hier stand ein dritter, --eshop-font-size-amount (25px bzw. 30px), nur fuer die Zahl in der
   Mengen-Pille. Die ist jetzt so gross wie das Einheiten-Dropdown daneben, damit ist die Variable
   ersatzlos entfallen. */
@media (min-width: 768px) {
    :root {
        --eshop-font-size: 1.5rem;
        --eshop-font-size-small: 1.125rem;
    }
}

/* Knopftexte, Auswahlfelder, Eingabefelder und der Dringend-Schalter */
.btn,
.form-select,
.form-control,
.toggleContainer,
.medics-datetime {
    font-size: var(--eshop-font-size);
    font-family: var(--eshop-font-family);
}

/* Die Kundenauswahl aus dem L004-Paket: Eingabefeld, dessen Label und die
   Eintraege der aufgeklappten Liste. */
[id^="l004comboboxselect"],
.form-floating > label,
.list-group-item {
    font-size: var(--eshop-font-size);
    font-family: var(--eshop-font-family);
}

/* Platzhalter sind Hinweise, nicht Inhalt - deshalb die kleinere Groesse. */
.form-control::placeholder,
.medics-textarea::placeholder {
    font-size: var(--eshop-font-size-small);
    font-family: var(--eshop-font-family);
}

/* Groesse und Schrift der Hinweistexte beim Ueberfahren stehen jetzt ebenfalls in
   itok-header.css, damit sie in allen drei Anwendungen gleich sind. Die Werte dort
   sind dieselben wie die frueher hier verwendeten --eshop-font-size-small und
   --eshop-font-family - das Erscheinungsbild aendert sich also nicht. */

/* Meldungen (Toasts). Titel und Text gleich gross, der Titel bleibt fett. */
.itok-toast,
.itok-toast .itok-toast-title,
.itok-toast .itok-toast-message,
.toast,
.toast-header,
.toast-body {
    font-size: var(--eshop-font-size-small);
    font-family: var(--eshop-font-family);
}

/* The quantity field used to be raised a step above the rest of the row here, on the grounds that
   the quantity is what one looks for when ordering. It now matches the unit dropdown next to it,
   and that size already comes from the shared .form-control rule above - so this block only needed
   the extra specificity while the size differed, and is gone with it. */

/* Abgerundete Eingabefelder passend zu den Pillen der Knoepfe. */
.form-control {
    border-radius: 1.1rem;
}

/* Das Bemerkungsfeld traegt form-control und medics-textarea. Weil .form-control
   weiter oben die Standardgroesse setzt und beide dieselbe Spezifitaet haben,
   braucht die kleinere Groesse hier den zusammengesetzten Selektor. */
.form-control.medics-textarea {
    font-size: var(--eshop-font-size-small);
}

/* =========================================================
   Feinheiten der Produktkachel
   ========================================================= */

/* Das Herz sitzt hoeher und naeher am rechten Rand. Betrifft die Kacheln der
   Artikelseite; Favoriten und Artikeldetail verwenden .favorite-overlay2 und
   bleiben unveraendert. */
.favorite-overlay {
    top: 10px;
    right: 10px;
}

/* Die Zahl im Bestellknopf ist so gross wie der Artikeltitel, aber nicht fett.
   Beide holen den Wert aus derselben Variable, damit sie zusammenbleiben, wenn
   einer der beiden angepasst wird. */
:root {
    --eshop-tile-title-size: clamp(0.95rem, 7.3cqi, 1.375rem);
}

.product .medics-products-name {
    font-size: var(--eshop-tile-title-size);
}

.product .quick-order-button > span:last-child {
    font-size: var(--eshop-tile-title-size);
    font-weight: 400;
    line-height: 1;
}

    /* Mit der groesseren Zahl bleibt weniger Platz. Symbol und Innenabstaende
       werden etwas schmaler, damit auch dreistellige Mengen wie 155 noch in den
       Knopf passen, ohne dass die drei Knoepfe ihre Zeile verlassen. */
    .product .quick-order-button {
        gap: clamp(2px, 1.6cqi, 6px);
        padding: clamp(1px, 0.8cqi, 3px) clamp(1px, 1cqi, 4px);
    }

        .product .quick-order-button img {
            width: clamp(9px, 7cqi, 16px);
        }

/* =========================================================
   Fusszeile aus Itok.Web.Footer.Medics
   ========================================================= */

/* Das Paket zentriert seinen Inhalt standardmaessig in einem Kasten mit Maximalbreite -
   passend zu e.kurier und e.absenzen, deren Seiten in einer Bootstrap-.container stehen.
   e.shop laeuft dagegen ueber die ganze Breite und zieht seine Inhalte stattdessen mit
   --eshop-page-inset ein. Die Fusszeile nimmt denselben Wert plus die 2.25rem, die von der
   Aussenkante des Rahmens bis zum Text dazukommen - so stehen Fusszeilentext und Seitentext
   auf jeder Fensterbreite auf derselben Linie. Vorher begann die Fusszeile deutlich weiter
   links. */
.itok-footer-medics {
    --itok-footer-medics-container-max-width: none;
    --itok-footer-medics-container-padding-inline: calc(var(--eshop-page-inset) + 2.25rem);
}

/* =========================================================
   Kundensuche auf der Startseite

   Uebernommen aus app_eKurier.css, wo dieselbe Suche auf der Home-Seite steht. Dort
   sind die Regeln mit .home-page praefixiert; e.shop hat keinen solchen Rahmen, und
   die Klassen kommen hier nur an dieser einen Stelle vor.
   ========================================================= */

.client-search-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
    width: 100%;
}

.client-search-label {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.client-search-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
}

.client-search-label {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.client-search-wrapper {
    position: relative;
    z-index: 999;
    flex: 1 1 0;
    min-width: 0;
    max-width: 50rem;
    width: auto !important;
}

.client-search-input-box {
    position: relative;
    width: 100%;
    min-width: 0;
}

.client-search-wrapper input,
.client-search-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.client-search-input-box {
    position: relative;
    width: 100%;
}

.client-search-wrapper input,
.client-search-input {
    width: 100% !important;
}

.client-search-input {
    padding-right: 2.4rem !important;
}

.client-search-clear {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--medics-blue);
    font-size: 1.4rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    z-index: 3;
    min-width: 0 !important;
    min-height: 0 !important;
}

    .client-search-clear:hover,
    .client-search-clear:focus {
        color: var(--medics-blue);
        background: transparent;
        outline: none;
        text-decoration: none;
    }

.client-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--medics-border-blue);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    max-height: 18rem;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .client-dropdown-list li {
        padding: 0.5rem 0.75rem;
        cursor: pointer;
        font-size: 1rem;
        color: #212529;
    }

        .client-dropdown-list li:hover,
        .client-dropdown-list li:focus,
        .client-dropdown-list li.is-active {
            background-color: var(--medics-lightblue);
            color: var(--medics-blue);
        }

.client-search-highlight {
    background-color: rgba(0, 87, 184, 0.16);
    color: var(--medics-blue);
    font-weight: 700;
    border-radius: 0.2rem;
    padding: 0 0.1rem;
}

/* =========================================================
   Benutzer-Popup des geteilten Headers

   Zwei Vorgaben des Pakets werden hier ueberschrieben, ueber die Variable bzw. die Klasse,
   die das Paket dafuer anbietet.
   ========================================================= */
:root {
    /* Groesser als die 1.3rem des Pakets: hier liest ein Kunde seine Kontoangaben. */
    --itok-header-user-panel-font-size: 1.4rem;
}

/* ── Date field with its own calendar popup ──────────────────────────────────────────────────────────────────────
   Belongs to Components/Pages/Components/DateField.razor. Taken over from e.absenzen (app_eAbsenzenManagement.css, section "Datumsfeld mit
   eigenem Kalender", commit 73fa8b9) with the same values, so that the popup looks the same in both applications. There every rule hangs on
   .home-page; here on .date-field, the frame of the component - the same specificity, so the global table/th/td/button rules of app_medics.css
   do not get through either.

   The popup sits in the middle of the screen, not as a drop-down below the field. All texts in it are 1.25rem, the size of the labels on the
   page (p in app_medics.css, 1.25rem at every screen width). */
.date-field {
    position: relative;
    display: inline-block;
}

    /* The field keeps the look of .medics-datetime, icon included - it is the background image there. Only a text field instead of a date
       field now. The values below are taken from the old date field, measured side by side in Chromium: width, font, border and radius come from
       .medics-datetime unchanged. A text field has 1px padding at the top and bottom by default, a date field none - without padding-block it
       would be 2px higher. The date field also kept room at the right for the browser's (invisible) picker indicator; padding-right 2.25rem
       recreates that room, so the centred text stands where it stood before and not under the icon. */
    .date-field .date-field__input {
        padding-block: 0;
        padding-right: 2.25rem;
    }

    /* Transparent, on top of the background icon of .medics-datetime (right 0.5rem, 1.1rem): the click target that the browser's own picker
       indicator used to be. */
    .date-field .date-field__button {
        position: absolute;
        top: 50%;
        right: 0.5rem;
        transform: translateY(-50%);
        width: 1.1rem;
        height: 1.1rem;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

        .date-field .date-field__button:focus-visible {
            outline: 2px solid var(--medics-blue);
            outline-offset: 2px;
        }

/* The dimmed layer behind the calendar. It also catches the click beside it, so that nothing on the page behind is hit - it does not close the
   calendar, that is only done with its buttons. Same colour as .modal-backdrop
   in app_medics.css. Below the toasts (z-index 1500), above the header. */
.date-field .date-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1075;
    background: rgba(0, 0, 0, 0.45);
    cursor: default;
}

/* Centres the calendar. pointer-events: none lets the click beside the calendar through to the dimmed layer, as with .modal-wrapper.

   Centred with margin: auto and not with align-items: center - if the window is lower than the calendar, it would otherwise stick out at the
   top and could not be reached there even by scrolling. This way it starts at the top and the wrapper scrolls. */
.date-field .date-picker-wrapper {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    padding: 1rem;
    overflow-y: auto;
    pointer-events: none;
}

.date-field .date-picker {
    /* One measure for everything: head, foot and the month list compute the same width from it. Otherwise the calendar would change its size
       when switching to the month list.

       The cell is 2.75rem, for two-digit days in 1.25rem. On a narrow phone it gets smaller, down to 2.25rem, so that the calendar including the
       padding of .date-picker-wrapper still fits into 375px. */
    --date-picker-kw: 3.25rem;
    --date-picker-cell: clamp(2.25rem, calc((100vw - 4rem - var(--date-picker-kw)) / 7), 2.75rem);
    --date-picker-width: calc(var(--date-picker-kw) + 7 * var(--date-picker-cell));
    --date-picker-head: 3rem;
    --date-picker-foot: 3rem;
    --date-picker-hover: #e8f0f9;

    pointer-events: auto;
    box-sizing: content-box;
    width: var(--date-picker-width);
    margin: auto;
    padding: 1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    font-family: "Circular", var(--medics-backup-font);
    font-size: 1.25rem;
    line-height: 1;
    color: var(--medics-grey);
    text-align: left;
    user-select: none;
}

    /* Head: month and year on the left, previous and next on the right. */
    .date-field .date-picker__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: var(--date-picker-width);
        height: var(--date-picker-head);
        margin-bottom: 0.25rem;
    }

    .date-field .date-picker__month {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.375rem 0.5rem;
        border: 0;
        border-radius: 0.5rem;
        background: transparent;
        font-size: 1.25rem;
        font-weight: 700;
        line-height: 1;
        color: var(--medics-blue);
        cursor: pointer;
    }

        .date-field .date-picker__month:hover {
            background: var(--date-picker-hover);
        }

    .date-field .date-picker__caret {
        border: 0.3rem solid transparent;
        border-top-color: var(--medics-blue);
        margin-top: 0.3rem;
    }

    .date-field .date-picker__nav {
        display: flex;
        gap: 0.25rem;
    }

    .date-field .date-picker__arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        border: 0;
        border-radius: 0.5rem;
        background: transparent;
        color: var(--medics-blue);
        cursor: pointer;
    }

        .date-field .date-picker__arrow:hover {
            background: var(--date-picker-hover);
        }

        .date-field .date-picker__arrow svg {
            width: 1.25rem;
            height: 1.25rem;
        }

    /* The grid. table-layout: fixed, so that the columns keep their widths instead of being spread by their content. White background like the
       popup: app_medics.css gives every table a light blue tone, which would stand as a box in the middle of the calendar. */
    .date-field .date-picker__grid {
        width: var(--date-picker-width);
        margin: 0;
        border-collapse: collapse;
        table-layout: fixed;
        background: transparent;
    }

        .date-field .date-picker__grid th,
        .date-field .date-picker__grid td {
            width: var(--date-picker-cell);
            height: var(--date-picker-cell);
            padding: 0;
            font-size: 1.25rem;
            font-weight: 400;
            line-height: 1;
            text-align: center;
            vertical-align: middle;
        }

        .date-field .date-picker__grid th {
            font-weight: 500;
            color: var(--medics-blue);
        }

    /* The weekdays: two letters on narrow screens. Below 480px the cell gets narrower than 2.75rem, and "mar." "mer." "sam." would stand letter
       to letter. */
    .date-field .date-picker__weekday-short {
        display: none;
    }

    @media (max-width: 480px) {
        .date-field .date-picker__weekday {
            display: none;
        }

        .date-field .date-picker__weekday-short {
            display: inline;
        }
    }

    .date-field .date-picker__day {
        border-radius: 0.5rem;
        color: var(--medics-grey);
        cursor: pointer;
    }

        .date-field .date-picker__day:hover {
            background: var(--date-picker-hover);
        }

        /* The days of the neighbouring months are there to complete the week - they can be picked, but are dimmed. */
        .date-field .date-picker__day.is-outside {
            color: #9e9e9e;
        }

        .date-field .date-picker__day.is-selected {
            background: var(--medics-blue);
            color: #fff;
        }

        .date-field .date-picker__day.is-focused {
            outline: 2px solid #e8a33d;
            outline-offset: -2px;
        }

        /* Outside Min/Max: lighter than the days of the neighbouring months, without hover and with a not-allowed cursor. Only in e.shop -
           e.absenzen has no limits. */
        .date-field .date-picker__day.is-disabled,
        .date-field .date-picker__day.is-disabled:hover {
            background: transparent;
            color: #d4d4d4;
            cursor: not-allowed;
        }

    /* The calendar week. It stands in front of the row, not in it: own column, own colour, a thin line in between - so the row still reads as
       seven days and not as eight cells. It cannot be clicked.

       Left-aligned and not centred: so there is air between the number and the line. The column is wider than a day cell because "sett." and
       "sem." are set in the same font as the days. */
    .date-field .date-picker__grid .date-picker__kw,
    .date-field .date-picker__grid .date-picker__kwhead {
        width: var(--date-picker-kw);
        padding-left: 0.25rem;
        border-right: 1px solid var(--medics-border-blue);
        color: #9e9e9e;
        font-weight: 400;
        text-align: left;
    }

    .date-field .date-picker__foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: var(--date-picker-width);
        height: var(--date-picker-foot);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--medics-border-blue);
        box-sizing: content-box;
    }

    .date-field .date-picker__link {
        padding: 0.5rem;
        border: 0;
        border-radius: 0.5rem;
        background: transparent;
        font-size: 1.25rem;
        line-height: 1;
        color: var(--medics-blue);
        cursor: pointer;
    }

        .date-field .date-picker__link:hover {
            background: var(--date-picker-hover);
            text-decoration: underline;
        }

        /* "Today" when today lies outside Min/Max. Only in e.shop. */
        .date-field .date-picker__link:disabled,
        .date-field .date-picker__link:disabled:hover {
            background: transparent;
            color: #d4d4d4;
            text-decoration: none;
            cursor: not-allowed;
        }

    /* The month list behind "October 2026". It is exactly as high as the grid including the foot, so that the calendar keeps its size when
       switching. */
    .date-field .date-picker__years {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: var(--date-picker-width);
        height: var(--date-picker-head);
        margin-bottom: 0.25rem;
    }

        .date-field .date-picker__years span {
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1;
            color: var(--medics-blue);
        }

    .date-field .date-picker__months {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
        width: var(--date-picker-width);
        height: calc(7 * var(--date-picker-cell) + var(--date-picker-foot) + 1rem + 1px);
    }

        .date-field .date-picker__months button {
            padding: 0.5rem 0;
            border: 0;
            border-radius: 0.5rem;
            background: transparent;
            font-size: 1.25rem;
            line-height: 1;
            color: var(--medics-grey);
            cursor: pointer;
        }

            .date-field .date-picker__months button:hover {
                background: var(--date-picker-hover);
            }

            .date-field .date-picker__months button.is-current {
                background: var(--medics-blue);
                color: #fff;
            }
