/* Obere Navigation kompakt halten, damit alle Punkte in eine Zeile passen */
.fi-topbar-nav-groups { column-gap: .25rem; }
.fi-topbar-item-btn { padding-inline: .6rem; }
.fi-topbar .fi-global-search-field { width: 11rem; }

@media (max-width: 1439px) {
    .fi-topbar-item-btn { padding-inline: .45rem; }
    .fi-topbar .fi-global-search-field { width: 7.5rem; }
}

@media (min-width: 1536px) {
    .fi-topbar-nav-groups { column-gap: .75rem; }
    .fi-topbar .fi-global-search-field { width: 14rem; }
}

/* Menüpunkte der oberen Leiste in Großbuchstaben */
.fi-topbar-item-label {
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .8125rem;
    font-weight: 600;
}
/* Laptop-Breiten: Menü etwas kleiner, damit „System“ nicht in eine zweite Zeile rutscht */
@media (max-width: 1535px) {
    .fi-topbar-nav-groups { column-gap: .1rem; }
    .fi-topbar-item-btn { padding-inline: .35rem; column-gap: .25rem; }
    .fi-topbar-item-label { font-size: .75rem; letter-spacing: .02em; }
}

/* Seiten-Untertitel nicht schmal begrenzen (z. B. Ablauf-Pfeile im Mahnwesen in einer Zeile) */
/* Untertitel unter den Seitentiteln kleiner (Standard text-lg ist zu groß) */
.fi-header-subheading { max-width: none; font-size: .85rem; line-height: 1.4; margin-top: .3rem; }
/* Kopf-Buttons (Speichern/Abbrechen stehen immer ganz rechts) bleiben rechtsbündig, auch wenn sie unter den Titel umbrechen */
.fi-header-actions-ctn { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; row-gap: .5rem; }
.fi-header-actions-ctn > .fi-ac { justify-content: flex-end; }
@media (max-width: 640px) {
    .fi-header-actions-ctn > .fi-ac { gap: .4rem; }
    .fi-header-actions-ctn .fi-btn { padding: .35rem .6rem; font-size: .8rem; }
}
/* Trennstrich vor der Gruppe „Abbrechen · Speichern“ (App\Filament\Support\SpeichernOben) */
.fi-header-actions-ctn .fi-ac > .lc-trenner:not(:first-child) { position: relative; margin-left: .6rem; }
.fi-header-actions-ctn .fi-ac > .lc-trenner:not(:first-child)::before {
    content: ''; position: absolute; left: -.55rem; top: 18%; bottom: 18%; border-left: 1px solid var(--gray-300);
}
/* Kopfleiste (Titel + Buttons) bleibt beim Scrollen unter dem Menü sichtbar; die Brotkrumen laufen darunter weg.
   Höhe des Menüs und Versatz misst public/js/lagercini.js. Nur Desktop – auf dem Handy würde sie zu viel Platz nehmen. */
@media (min-width: 1024px) {
    .fi-header {
        position: sticky; z-index: 20;
        top: calc(var(--lc-menue-hoehe, 4rem) - var(--lc-kopf-versatz, 0px));
        margin-inline: -.5rem; padding: .5rem .5rem .6rem;
        background-color: var(--gray-50); border-radius: 0 0 .75rem .75rem;
        transition: box-shadow .15s;
    }
    .dark .fi-header { background-color: var(--gray-950); }
    .fi-header.lc-schwebt { box-shadow: 0 8px 14px -10px rgba(15, 23, 42, .35); }
}
/* Formular-Dialoge (Anlegen/Bearbeiten im Fenster): Buttons oben rechts unter dem Titel, „Speichern“ ganz rechts –
   wie auf den Seiten. Kleine Bestätigungsdialoge (zentriert, mit Symbol) bleiben unverändert. */
.fi-modal-window.fi-align-start.fi-modal-window-has-footer:has(.fi-modal-content .fi-fo-field) > .fi-modal-footer {
    order: 1; padding-top: .25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--gray-200);
}
.fi-modal-window.fi-align-start.fi-modal-window-has-footer:has(.fi-modal-content .fi-fo-field) > .fi-modal-content { order: 2; }
.fi-modal-window.fi-align-start.fi-modal-window-has-footer:has(.fi-modal-content .fi-fo-field) .fi-modal-footer-actions {
    flex-direction: row-reverse; justify-content: flex-start;
}
.dark .fi-modal-window.fi-align-start.fi-modal-window-has-footer:has(.fi-modal-content .fi-fo-field) > .fi-modal-footer { border-bottom-color: var(--gray-800); }
.lc-ablauf { flex-wrap: nowrap; }
@media (max-width: 1100px) { .lc-ablauf { flex-wrap: wrap; } }
/* Handy: Mahnstufen-Pfeile untereinander statt aus dem Bildschirm zu ragen */
@media (max-width: 640px) {
    .lc-ablauf > span:first-child { flex-wrap: wrap; row-gap: .35rem; }
    .lc-ablauf > span:first-child > span { margin-left: 0 !important; }
    .lc-ablauf > span:last-child { white-space: normal !important; }
}

/* Anmelde-Seite: rundes BerMa-Siegel groß zeigen */
.fi-simple-header .fi-logo { height: 7rem !important; width: auto; margin-bottom: .5rem; }

/* Alle Listen sehr kompakt: minimale Zeilenabstände, etwas kleinere Schrift */
.fi-ta-row .fi-ta-text,
.fi-ta-row .fi-ta-text-item,
.fi-ta-row .fi-ta-icon,
.fi-ta-row .fi-ta-col-wrp > div { padding-top: .12rem !important; padding-bottom: .12rem !important; }
.fi-ta-row .fi-ta-selection-cell,
.fi-ta-row .fi-ta-actions-cell,
.fi-ta-row .fi-ta-record-actions,
.fi-ta-row > td.fi-ta-cell:has(.fi-ta-actions) { padding-top: .12rem !important; padding-bottom: .12rem !important; }
.fi-ta-row .fi-ta-text-has-descriptions .fi-ta-text-item { padding-top: 0 !important; padding-bottom: 0 !important; }
.fi-ta-row .fi-ta-text-item, .fi-ta-row .fi-ta-text-item * { font-size: .8125rem; line-height: 1.2; }
.fi-ta-row .fi-ta-text-description, .fi-ta-row .fi-ta-text-description * { font-size: .72rem !important; line-height: 1.1; margin-top: 0 !important; }
.fi-ta-row .fi-ta-actions { gap: .4rem; }
.fi-ta-row .fi-ta-actions .fi-link, .fi-ta-row .fi-ta-actions .fi-btn { padding-top: 0; padding-bottom: 0; font-size: .78rem; }
/* „⋮“-Knopf (36 px) war höher als die kompakte Zeile → ragte in der letzten Zeile unten aus der Tabelle → unnötiger Scrollbalken rechts */
.fi-ta-row .fi-ta-actions .fi-icon-btn { height: 1.25rem; }
/* Artikelliste: „Lager buchen“ / „Bearbeiten“ nur als Symbol – farbig hinterlegtes Kästchen statt Text (Tooltip) */
.fi-ta-row .fi-ta-actions .fi-icon-btn.zeilen-knopf { margin: 0; width: 1.85rem; height: 1.5rem; border-radius: .4rem; background: color-mix(in srgb, currentColor 13%, transparent); }
.fi-ta-row .fi-ta-actions .fi-icon-btn.zeilen-knopf:hover { background: color-mix(in srgb, currentColor 24%, transparent); }
/* Warengruppen: Bild-Spalte ohne Filament-Standardabstand (16 px oben/unten) → Zeilen bleiben kompakt */
.fi-resource-warengruppen .fi-ta-row .fi-ta-image { padding-top: .2rem; padding-bottom: .2rem; }
.fi-ta-row .fi-badge { padding-top: 0; padding-bottom: 0; }
.fi-ta-header-cell { padding-top: .4rem !important; padding-bottom: .4rem !important; }

/* Formulare kompakt – alle Anlegen-/Bearbeiten-Seiten, Einstellungsseiten mit Formular und Formular-Dialoge:
   gleiche Felder am gleichen Platz, nur weniger Luft (Felder 30 statt 36 px hoch, Abstände etwa halbiert,
   schmale Abschnittsköpfe, kleinere Hinweistexte). */
:is(.fi-sc-form, .fi-modal-content) .fi-sc-has-gap { gap: .6rem 1rem; }
:is(.fi-sc-form, .fi-modal-content) .fi-fo-field { row-gap: .15rem; }
:is(.fi-sc-form, .fi-modal-content) .fi-fo-field-label-content { font-size: .8125rem; line-height: 1.1rem; }
:is(.fi-sc-form, .fi-modal-content) .fi-fo-field-label { line-height: 1.1rem; }
:is(.fi-sc-form, .fi-modal-content) :is(input.fi-input, select.fi-select-input, .fi-select-input-btn, .fi-fo-date-time-picker-display-text-input) {
    padding-top: .1875rem; padding-bottom: .1875rem;
}
:is(.fi-sc-form, .fi-modal-content) :is(.fi-select-input-btn, .fi-select-input div[x-ref='select']) { min-height: 1.875rem; }
:is(.fi-sc-form, .fi-modal-content) .fi-fo-textarea textarea { padding-top: .25rem; padding-bottom: .25rem; }
:is(.fi-sc-form, .fi-modal-content) .fi-fo-field-wrp-helper-text { font-size: .75rem; line-height: 1.1rem; }
:is(.fi-sc-form, .fi-modal-content) .fi-section:not(.fi-section-not-contained):not(.fi-aside) > .fi-section-header { padding: .5rem 1rem; }
:is(.fi-sc-form, .fi-modal-content) .fi-section-header-heading { font-size: .9rem; line-height: 1.25rem; }
:is(.fi-sc-form, .fi-modal-content) .fi-section-header-description { font-size: .78rem; line-height: 1.15rem; }
:is(.fi-sc-form, .fi-modal-content) .fi-section:not(.fi-section-not-contained):not(.fi-divided) > .fi-section-content-ctn > .fi-section-content {
    padding: .75rem 1rem .85rem;
}
:is(.fi-sc-form, .fi-modal-content) .fi-fieldset:not(.fi-fieldset-not-contained) { padding: .6rem 1rem .85rem; }
:is(.fi-sc-form, .fi-modal-content) .fi-fo-table-repeater > table > thead > tr > th { padding: .3rem .5rem; font-size: .8rem; }
:is(.fi-sc-form, .fi-modal-content) .fi-fo-table-repeater > table > tbody > tr > td { padding: .2rem .4rem; }
/* Belege: grüne Zeile „Artikel wählen oder Barcode scannen“ unter der Positionstabelle (filament/belege/artikel-suche) */
.lc-artikel-suche { position: relative; }
.lc-artikel-suche-feld {
    display: flex; align-items: center; gap: .5rem; padding: 0 .75rem; height: 2.5rem;
    border: 2px solid #1a7a22; border-radius: .6rem; background: #f1f8f1; transition: box-shadow .15s;
}
.lc-artikel-suche-feld:focus-within { box-shadow: 0 0 0 3px rgba(26, 122, 34, .2); background: #fff; }
.lc-artikel-suche-icon { width: 1.35rem; height: 1.35rem; color: #1a7a22; flex-shrink: 0; }
.lc-artikel-suche-feld input {
    flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; font-size: .9rem; font-weight: 600; color: #14532d;
}
.lc-artikel-suche-feld input:focus { outline: none; box-shadow: none; }
.lc-artikel-suche-feld input::placeholder { color: #1a7a22; opacity: .75; font-weight: 600; }
.lc-artikel-suche-laedt { width: 1.1rem; height: 1.1rem; color: #1a7a22; }
.lc-artikel-suche-liste {
    position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: 18rem; overflow-y: auto;
    background: #fff; border: 1px solid #cfe5d0; border-radius: .6rem; box-shadow: 0 14px 30px -10px rgba(15, 23, 42, .35); padding: .25rem;
}
.lc-artikel-suche-liste button { display: block; width: 100%; text-align: left; padding: .4rem .6rem; border-radius: .4rem; font-size: .85rem; }
.lc-artikel-suche-liste button.lc-aktiv { background: #e3f1e4; color: #14532d; }
.lc-artikel-suche-leer { padding: .5rem .6rem; font-size: .8rem; color: #6b7280; }
.dark .lc-artikel-suche-feld { background: rgba(26, 122, 34, .12); border-color: #2f9e3a; }
.dark .lc-artikel-suche-feld:focus-within { background: rgba(26, 122, 34, .2); }
.dark .lc-artikel-suche-feld input { color: #bbf7c4; }
.dark .lc-artikel-suche-feld input::placeholder, .dark .lc-artikel-suche-icon { color: #6ee07a; }
.dark .lc-artikel-suche-liste { background: var(--gray-900); border-color: rgba(255, 255, 255, .12); }
.dark .lc-artikel-suche-liste button.lc-aktiv { background: rgba(26, 122, 34, .25); color: #dcfce7; }
/* Belegpositionen in schmalen Fenstern (Tablet, halbe Bildschirmbreite): Zahlenspalten schmal, Überschriften dürfen
   umbrechen – der Artikelname bekommt den Platz statt in 5 Zeilen gequetscht zu werden */
@media (max-width: 1279px) {
    [data-lc-positionen] > table > thead > tr > th { white-space: normal; }
    [data-lc-positionen] > table > thead > tr > th:nth-child(3) { width: 6rem !important; }
    [data-lc-positionen] > table > thead > tr > th:is(:nth-child(4), :nth-child(6)) { width: 4rem !important; }
    [data-lc-positionen] > table > thead > tr > th:nth-child(5) { width: 6.5rem !important; }
    [data-lc-positionen] > table > thead > tr > th:nth-child(7) { width: 6.5rem !important; }
}
/* Handy: Positionen als Karten untereinander – auch dort enger (bei Tabellenansicht wirkungslos) */
:is(.fi-sc-form, .fi-modal-content) .fi-fo-table-repeater > table > tbody > tr { gap: .5rem; padding: .75rem; }
.fi-page:has(.fi-sc-form) .fi-page-content { row-gap: 1rem; }

/* Artikel-Formular (Anlegen/Bearbeiten): Abschnitte hellgrün hinterlegt, Eingabefelder weiß (Abstände wie alle Formulare) */
html:not(.dark) .fi-resource-artikel:is(.fi-resource-create-record-page, .fi-resource-edit-record-page) .fi-section {
    background: #f1f8f1; border-color: #cfe5d0;
}
html:not(.dark) .fi-resource-artikel:is(.fi-resource-create-record-page, .fi-resource-edit-record-page) .fi-section-header {
    background: #e3f1e4; border-bottom: 1px solid #cfe5d0;
    border-top-left-radius: inherit; border-top-right-radius: inherit;
}
.fi-resource-artikel:is(.fi-resource-create-record-page, .fi-resource-edit-record-page) .fi-section-header-heading { color: #1a7a22; }
html:not(.dark) .fi-resource-artikel:is(.fi-resource-create-record-page, .fi-resource-edit-record-page) .fi-input-wrp { background: #fff; }
.fi-resource-artikel:is(.fi-resource-create-record-page, .fi-resource-edit-record-page) .fi-sc-text { font-size: .75rem; }

/* Artikelliste: Suchfeld links in der Tabellen-Werkzeugleiste, Filter offen und kompakt darüber */
.fi-resource-artikel.fi-resource-list-records-page .fi-ta-header-toolbar > div:last-child { margin-left: auto !important; margin-right: 0 !important; }
.fi-resource-artikel.fi-resource-list-records-page .fi-ta-search-field { width: 22rem; max-width: 100%; }
.fi-resource-artikel.fi-resource-list-records-page .fi-ta-filters-above-content-ctn { padding: .6rem 1rem !important; }
.fi-resource-artikel.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-sc { gap: .5rem .9rem !important; align-items: end; }
/* Artikelliste: Filterzeile ohne Überschrift, Tabellen-Werkzeugleiste nur noch für Spaltenauswahl */
.fi-resource-artikel.fi-resource-list-records-page .fi-ta-filters-above-content-ctn .fi-ta-filters-header { display: none; }
/* Artikelliste: Spaltenauswahl rechts in derselben Zeile wie die Filter */
.fi-resource-artikel.fi-resource-list-records-page .fi-ta-header-ctn { position: relative; }
.fi-resource-artikel.fi-resource-list-records-page .fi-ta-header-ctn > .fi-ta-header-toolbar {
    position: absolute; right: 1rem; bottom: .65rem; height: 36px; padding: 0 !important; border: 0 !important; gap: .5rem;
}
.fi-resource-artikel.fi-resource-list-records-page .fi-ta-filters-above-content-ctn { padding-right: 3.75rem !important; }

/* Artikel-Formular mit Reitern (ArtikelResource::form): Reiterleiste hellgrün, aktiver Reiter weiß mit grüner Schrift,
   Inhalt etwas enger. Reiter „Online-Shop (B2C)“ hellblau wie der B2C-Rahmen im Dashboard (Klasse b2c-reiter sitzt am
   Reiter-Knopf und am Inhalt). Roter Punkt am Reiter = dort ist ein Fehler. */
.artikel-reiter.fi-sc-tabs { border: 1px solid #cfe5d0; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.artikel-reiter > .fi-tabs { background: #e3f1e4; border-bottom: 1px solid #cfe5d0; border-radius: .75rem .75rem 0 0; padding: .4rem .6rem; }
.artikel-reiter > .fi-tabs .fi-tabs-item { font-weight: 600; }
/* schmale Fenster: Reiter brechen in eine zweite Zeile um statt seitlich zu scrollen (kein Scrollbalken) */
.artikel-reiter > .fi-tabs { flex-wrap: wrap; overflow: visible; row-gap: .25rem; }
@media (max-width: 640px) {
    .artikel-reiter > .fi-tabs { padding: .35rem .4rem; column-gap: .15rem; }
    .artikel-reiter > .fi-tabs .fi-tabs-item { padding: .35rem .55rem; font-size: .8rem; }
    .artikel-reiter > .fi-tabs .fi-tabs-item > .fi-icon { display: none; }
}
.artikel-reiter > .fi-tabs .fi-tabs-item.fi-active { background: #fff; color: #1a7a22; box-shadow: 0 1px 3px rgba(26, 122, 34, .18); }
.artikel-reiter > .fi-tabs .fi-tabs-item.fi-active .fi-tabs-item-label,
.artikel-reiter > .fi-tabs .fi-tabs-item.fi-active .fi-icon { color: #1a7a22; }
.artikel-reiter > .fi-tabs .fi-tabs-item.b2c-reiter .fi-tabs-item-label,
.artikel-reiter > .fi-tabs .fi-tabs-item.b2c-reiter .fi-icon { color: #1d4ed8; }
.artikel-reiter > .fi-tabs .fi-tabs-item.b2c-reiter.fi-active { background: #f0f6ff; box-shadow: 0 0 0 1px #9ec2f2; }
.artikel-reiter > .fi-sc-tabs-tab.fi-active { padding: 1rem 1.1rem 1.1rem; }
/* Artikel „Verkaufspreis B2B“: Popup VK-Vorschläge unter dem Feld (ArtikelResource::vkVorschlagPopup);
   der Platz unter dem Feld ist eine Flex-Zeile → Popup-Anker in eine eigene, volle Zeile */
.fi-sc.fi-inline > :has(.lc-vk-popup) { flex-basis: 100%; }
.lc-vk-popup {
    position: absolute; z-index: 40; top: 4px; left: 0; width: 100%; min-width: 300px; max-width: 420px;
    background: #fff; border: 1px solid #d1d5db; border-radius: .75rem; padding: .6rem .75rem .75rem;
    box-shadow: 0 14px 30px -10px rgba(15, 23, 42, .4); color: #111827;
}
.lc-vk-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; font-size: .8rem; }
.lc-vk-kopf button { color: #6b7280; font-size: .9rem; line-height: 1; padding: .15rem .3rem; border-radius: .3rem; }
.lc-vk-kopf button:hover { background: #f3f4f6; }
.lc-vk-kasten { flex: 1; min-width: 0; text-align: left; cursor: pointer; border-radius: .6rem; padding: .45rem .6rem; line-height: 1.3; transition: transform .1s; }
.lc-vk-kasten:hover { transform: translateY(-1px); box-shadow: 0 3px 8px -4px rgba(15, 23, 42, .35); }
.lc-vk-frage { color: #6b7280; margin-top: .15rem; }
.lc-vk-nein, .lc-vk-ja { font-size: .8rem; font-weight: 600; border-radius: .5rem; padding: .35rem .8rem; }
.lc-vk-nein { border: 1px solid #d1d5db; background: #fff; color: #374151; }
.lc-vk-ja { background: #1a7a22; color: #fff; }
.lc-vk-ja:hover { background: #16631d; }
.dark .lc-vk-popup { background: var(--gray-900); border-color: rgba(255, 255, 255, .15); color: #f3f4f6; }
.dark .lc-vk-kopf button:hover { background: rgba(255, 255, 255, .08); }
.dark .lc-vk-nein { background: transparent; border-color: rgba(255, 255, 255, .2); color: #e5e7eb; }
/* Reiter „Einheit & Preise“: Kasten „Angebot (B2B)“ hellrot abgesetzt (Angebot = Rot wie in der BerMa-App) */
.artikel-reiter .fi-fieldset.angebot-b2b { border-color: #f3b8b8; background: #fff7f7; }
.artikel-reiter .fi-fieldset.angebot-b2b > legend { color: #d01010; font-weight: 700; }
.dark .artikel-reiter .fi-fieldset.angebot-b2b { border-color: rgba(208, 16, 16, .45); background: rgba(208, 16, 16, .08); }
.dark .artikel-reiter .fi-fieldset.angebot-b2b > legend { color: #f87171; }
.artikel-reiter > .fi-sc-tabs-tab.b2c-reiter { background: #f0f6ff; border-radius: 0 0 .75rem .75rem; }
.artikel-reiter > .fi-sc-tabs-tab.b2c-reiter .fi-sc-text { color: #1d4ed8; }
.dark .artikel-reiter.fi-sc-tabs { border-color: rgba(255, 255, 255, .1); }
.dark .artikel-reiter > .fi-tabs { background: rgba(26, 122, 34, .18); border-bottom-color: rgba(255, 255, 255, .1); }
.dark .artikel-reiter > .fi-tabs .fi-tabs-item.fi-active { background: var(--gray-900); color: #6ee07a; }
.dark .artikel-reiter > .fi-tabs .fi-tabs-item.fi-active :is(.fi-tabs-item-label, .fi-icon) { color: #6ee07a; }
.dark .artikel-reiter > .fi-tabs .fi-tabs-item.b2c-reiter :is(.fi-tabs-item-label, .fi-icon) { color: #93c5fd; }
.dark .artikel-reiter > .fi-tabs .fi-tabs-item.b2c-reiter.fi-active { background: rgba(37, 99, 235, .18); }
.dark .artikel-reiter > .fi-sc-tabs-tab.b2c-reiter { background: rgba(37, 99, 235, .1); }
.dark .artikel-reiter > .fi-sc-tabs-tab.b2c-reiter .fi-sc-text { color: #93c5fd; }

/* Dashboard: offene Aufträge der Geschäftskunden (B2B) im eigenen, sanft grünen Rahmen (BerMa-Grün) */
.fi-ta.b2b-rahmen .fi-ta-ctn { background: #f1f8f1; border: 2px solid #a9d6ac; box-shadow: 0 4px 14px rgba(26, 122, 34, .08); }
.fi-ta.b2b-rahmen .fi-ta-header { background: #e3f1e4; border-bottom: 1px solid #cfe5d0; }
.fi-ta.b2b-rahmen .fi-ta-header-heading { color: #1a7a22; }

/* Dashboard: Online-Shop-Bestellungen (B2C) im eigenen, hellblauen Rahmen – wie der B2C-Bereich im Artikel */
.fi-ta.shop-b2c-rahmen .fi-ta-ctn { background: #f0f6ff; border: 2px solid #9ec2f2; box-shadow: 0 4px 14px rgba(29, 78, 216, .08); }
.fi-ta.shop-b2c-rahmen .fi-ta-header { background: #dfeafb; border-bottom: 1px solid #c7dcf7; }
.fi-ta.shop-b2c-rahmen .fi-ta-header-heading { color: #1d4ed8; }
.fi-ta.shop-b2c-rahmen .fi-ta-table { background: transparent; }
.fi-ta.shop-b2c-rahmen .fi-ta-row:hover { background: #e6f0fd; }
/* Dashboard-Kästen: Seitenzahlen 1 2 3 … immer zeigen (Filament zeigt sie sonst erst ab ~900 px Tabellenbreite, darunter nur „Weiter“) */
.fi-wi-table .fi-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.fi-wi-table .fi-pagination .fi-pagination-overview { display: inline; font-size: .8rem; }
.fi-wi-table .fi-pagination .fi-pagination-items { display: flex; flex-wrap: wrap; }
.fi-wi-table .fi-pagination:not(.fi-simple) :is(.fi-pagination-previous-btn, .fi-pagination-next-btn) { display: none; }

/* Dashboard-Überschrift „BEREKET MARKET BERLIN GMBH“ (Pages\Dashboard::getHeading): mittig, BerMa-Grün,
   Schrift wächst/schrumpft mit der Bildschirmbreite und bricht am Handy notfalls in zwei Zeilen um */
.fi-header:has(.lc-firmen-titel) { justify-content: center; }
.fi-header:has(.lc-firmen-titel) > :first-child { flex: 1 1 auto; min-width: 0; }
.lc-firmen-titel {
    display: block; text-align: center; color: #1a7a22; font-weight: 800; letter-spacing: .06em; line-height: 1.2;
    font-size: clamp(1.15rem, 4.2vw, 2rem); overflow-wrap: anywhere;
}
.dark .lc-firmen-titel { color: #4fb05f; }
/* Dashboard oben (UebersichtWidget): Rahmen „Offene Aufträge“ · „Lager“ · „Buchhaltung“ mit anklickbaren Kästen/Listen;
   Farbe je Rahmen/Kasten über --farbe (B2B grün, BM-Filialen braun, B2C blau, Lager orange, Buchhaltung violett) */
.lc-ueb { display: grid; gap: 1rem; }
.lc-ueb-zeile { display: grid; gap: 1rem; }
/* breit: „Offene Aufträge“ (3 Kästen) 3 Teile, jeder weitere Rahmen (Rechnungen, Lager) 1 Teil */
@media (min-width: 1024px) {
    .lc-ueb-zeile { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
    .lc-ueb-zeile.lc-ueb-mit-auftraegen { grid-template-columns: minmax(0, 3fr); }
}
.lc-rahmen {
    border: 1.5px solid var(--farbe); border-radius: .9rem; padding: .65rem .85rem .85rem;
    background: color-mix(in srgb, var(--farbe) 5%, #fff);
}
/* Titel in Großbuchstaben mittig auf der Rahmenlinie (fieldset.lc-rahmen > legend.lc-legende) */
fieldset.lc-rahmen { min-width: 0; margin: 0; }
.lc-legende {
    margin: 0 auto; padding: 0 .7rem; font-size: 1rem; line-height: 1.5rem; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: var(--farbe);
}
.lc-legende .shop-b2c-neu { text-transform: none; letter-spacing: 0; }
/* Tabellen-Widget im Rahmen (filament/widgets/tabelle-im-rahmen): Tabelle ohne eigenen Kasten, Rahmen kommt vom fieldset */
.lc-rahmen-tabelle { padding: .25rem .5rem .6rem; }
.lc-rahmen-tabelle .fi-ta-ctn { box-shadow: none; border: 1px solid #e5e7eb; }
.dark .lc-rahmen-tabelle .fi-ta-ctn { border-color: rgba(255, 255, 255, .1); }
.lc-rahmen-link { font-size: .8rem; font-weight: 600; color: var(--farbe); }
.lc-rahmen-aktion { display: flex; justify-content: flex-end; margin: -.35rem 0 .35rem; }
.lc-rahmen-link:hover { text-decoration: underline; }
.lc-kaesten { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.lc-kasten {
    display: flex; flex-direction: column; gap: .1rem; padding: .6rem .8rem; border-radius: .65rem;
    background: #fff; border: 1px solid #e5e7eb; border-left: 4px solid var(--farbe); transition: box-shadow .15s, transform .15s;
}
.lc-kasten:hover { box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .35); transform: translateY(-1px); }
.lc-kasten-titel { font-size: .85rem; font-weight: 700; color: #111827; }
.lc-kasten-zahl { font-size: 1.75rem; font-weight: 800; line-height: 1.15; color: var(--farbe); }
.lc-kasten-zahl.lc-null { color: #9ca3af; }
.lc-kasten-text { font-size: .75rem; color: #6b7280; }
.lc-kasten-pfeil { font-size: .75rem; font-weight: 600; color: var(--farbe); margin-top: .15rem; }
.lc-listen { display: grid; gap: .75rem; }
@media (min-width: 768px) { .lc-listen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lc-liste { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: .65rem; padding: .5rem .7rem; transition: box-shadow .15s; }
.lc-liste:hover { box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .3); }
.lc-liste.lc-liste-rot { border-color: #f3b8b8; }
.lc-liste-kopf { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; color: #111827; margin-bottom: .25rem; }
.lc-liste-rot .lc-liste-kopf > span:first-child { color: #d01010; }
.lc-liste-anzahl { color: #6b7280; font-weight: 600; }
.lc-liste-zeile { display: flex; gap: .5rem; align-items: baseline; padding: .2rem 0; border-top: 1px solid #f1f5f9; font-size: .78rem; }
.lc-liste-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-liste-info { color: #6b7280; white-space: nowrap; }
.lc-liste-zeile b { white-space: nowrap; }
.lc-rot { color: #d01010; }
.lc-liste-leer { display: block; font-size: .78rem; color: #15803d; padding: .15rem 0; }
.lc-liste-mehr { display: block; font-size: .72rem; color: #6b7280; margin-top: .2rem; }
.dark .lc-rahmen { background: color-mix(in srgb, var(--farbe) 10%, transparent); }
.dark .lc-kasten, .dark .lc-liste { background: var(--gray-900); border-color: rgba(255, 255, 255, .1); }
.dark .lc-kasten-titel, .dark .lc-liste-kopf { color: #f3f4f6; }
.dark .lc-liste-zeile { border-top-color: rgba(255, 255, 255, .06); }
.dark .lc-liste-leer { color: #6ee07a; }
/* roter Zähler „x neu“ (B2C-Bestellungen und neue B2B-App-Aufträge) */
.shop-b2c-neu { display: inline-block; margin-left: .5rem; padding: .05rem .55rem; border-radius: 999px; background: #dc2626; color: #fff; font-size: .75rem; font-weight: 700; vertical-align: middle; }

/* Handy/Tablet: Tabellen scrollen seitlich – umbrechende Spalten (Namen, Beschreibungen) nicht auf ein Wort je Zeile quetschen */
@media (max-width: 1023px) {
    .fi-ta-cell .fi-ta-text.fi-wrapped { min-width: 10rem; }
}

/* Panel „Buchhaltung“: Leiste mit Filiale (farbig) + Reiter (resources/views/filament/buchhaltung/leiste.blade.php) */
.lc-bh-leiste { margin-bottom: .75rem; border-left: 5px solid var(--farbe); border-radius: .6rem; background: color-mix(in srgb, var(--farbe) 6%, white); padding: .5rem .75rem .35rem; }
.dark .lc-bh-leiste { background: color-mix(in srgb, var(--farbe) 14%, #0f172a); }
.lc-bh-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; margin-bottom: .35rem; }
.lc-bh-filiale { display: inline-flex; align-items: center; gap: .45rem; color: var(--farbe); font-size: .95rem; }
.lc-bh-filiale svg { width: 1.35rem; height: 1.35rem; }
.lc-bh-filiale > span { opacity: .8; }
.lc-bh-filiale b { font-size: 1.15rem; letter-spacing: .02em; }
.lc-bh-wechsel { font-size: .8rem; opacity: .85; display: inline-flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; }
.lc-bh-wechsel a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.lc-bh-reiter { overflow-x: auto; background: transparent; box-shadow: none; padding: 0; }

/* Artikelformular: Pflichtfeld-Stern rot und deutlich (Nutzerwunsch 23.11.2026) */
.artikel-reiter .fi-fo-field-label-required-mark { color: #dc2626; font-size: 1.1em; font-weight: 800; margin-left: .2rem; top: -.2em; }
.dark .artikel-reiter .fi-fo-field-label-required-mark { color: #f87171; }
/* Artikel anlegen/bearbeiten: Fenster „Pflichtfelder fehlen“ (MeldetPflichtfelder) */
.pflichtfelder-liste { display: table; margin: 0 auto; text-align: left; list-style: disc; padding-left: 1.25rem; color: #b91c1c; font-weight: 600; line-height: 1.7; }
.dark .pflichtfelder-liste { color: #f87171; }
