/* ==========================================================================
   INHALTSVERZEICHNIS
   --------------------------------------------------------------------------
   0. BASIS (global: Schrift, Box-Sizing, Formularelemente)
   1. ALLGEMEINE ANPASSUNGEN (Bootstrap, Template, Plugins)
        - Farben, Tabellen-Aktionen und Button-Gruppen
        - Formulare: Input-Group
        - Modal
        - Sidebar und Header
        - Select2
   2. CSV-UPLOAD (Upload-Card, Dropzone, Datei-Button)
   3. LAGER BESTELLUNGEN – TABELLE UND SEITEN
        - Artikel: Titel, SKU, Warnungen, Erfolgs-Markierung
        - DataTables: fixierter Tabellenkopf und Spalten
        - DataTables: markierte Zelle
        - Schreibgeschützte Felder (Lieferdatum)
   4. LAGER BESTELLUNG – STATUSBOX RECHTS (Timeline)
   5. GESPERRTE ARTIKEL – SKU DETAILS
        - Container
        - Kopfbereich und Schließen-Button
        - Statusbox
        - Länderliste
        - Standorte je Land
        - Footer und Bearbeiten-Button
        - Tabelle gesperrte Artikel
   6. PARTNER – BESCHREIBUNG
   7. ROLLEN UND RECHTE (Rollen-/Mitarbeiter-Ansicht)
   8. RECHTE-GRUPPEN – EINSTELLUNGEN
   9. Login
        - Seitenlayout
        - Login-Karte
        - Markenbereich
        - Formularbereich
        - Eingabefelder und Passwortanzeige
        - Anmeldebutton
        - Footer
        - Responsive
    10. Profil Seite
    11. Offcanvas
   ========================================================================== */



/* ==========================================================================
   0. BASIS (global: Schrift, Box-Sizing, Formularelemente)
   ========================================================================== */

:root {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    color: #243c32;
    background: #f2f6f3;
    font-size: 15px;
}



.btn-border {
    border: 1px solid #006b5b;
    color: #006b5b;
}

.col-form-label {
    color: #365440;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group span.required {
    color: #721c24;
    margin-left: 5px;
    font-size: 18px;
}


.form-group label {
    margin-bottom: 10px;
    padding: 0;
    color: #365440;
}


* {
    box-sizing: border-box;
}

button, select, input {
    font: inherit;
}

button {
    cursor: pointer;
}



/* ==========================================================================
   1. ALLGEMEINE ANPASSUNGEN (Bootstrap, Template, Plugins)
   ========================================================================== */

/* --- Farben, Tabellen-Aktionen und Button-Gruppen --- */

.text-brand-green {
    color: #20332c !important;
}

.table .actions a,
.table .actions button,
.button-group a,
.button-group button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* --- Formulare: Input-Group --- */

.input-group-text {
    background: #F7FAF8 !important;
    height: 50px;
}

.input-group input {
    margin: 0!important;
    padding: 0!important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: auto;
}

/* --- Modal --- */

.modal .close {
    border: 0;
    background: none;
    font-size: 22px;
    position: absolute;
    right: 20px;

}

/* --- Sidebar und Header --- */

.sidebar-menu .nav-item a i {
    font-size: 12px!important;
}

.header .header_title {
    color: #71867a;
    font-size: 14px;
}

/* --- Select2 --- */

.select2-container--open {
    z-index: 9999;
}



/* ==========================================================================
   2. CSV-UPLOAD (Upload-Card, Dropzone, Datei-Button)
   ========================================================================== */

/* Upload Card */
.upload-card {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
}


/* Nur Abstand innerhalb des Bodys */
.upload-card .card-body {
    padding: 30px;
}


/* Große Upload-Fläche */
.upload-dropzone {
    min-height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 35px 25px;

    background: #fbfdfc;

    border: 2px dashed #9acfc4;
    border-radius: 12px;

    text-align: center;

    transition: 0.2s ease;
}

.upload-dropzone:hover {
    background: #f4faf8;
    border-color: #006b5b;
}


/* Icon */
.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    margin-bottom: 18px;

    background: #e5f5f1;
    border-radius: 10px;

    color: #007563;
    font-size: 30px;
}


/* CSV-Datei hierher ziehen */
.upload-title {
    font-size: 20px;
    font-weight: 600;
    color: #262c30;
    margin-bottom: 20px;
}



/* Originales Datei-Input verstecken */
.file-input {
    position: absolute;
    width: 1px;
    height: 1px;

    opacity: 0;
    overflow: hidden;

    pointer-events: none;
}


/* Unser eigener Datei-Button */
.file-select-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px!important;
    margin: 0;
    background: #fff;
    border: 1px solid #006b5b;
    border-radius: 7px;
    color: #006b5b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.file-select-button:hover {
    background: #006b5b;
    color: #fff;
}


/* Text unter dem Button */
.upload-hint {
    margin-top: 20px;

    font-size: 14px;
    color: #737b82;
}

.upload-hint span {
    margin: 0 8px;
}


/* Responsive */
@media (max-width: 768px) {

    .upload-card .card-body {
        padding: 15px;
    }

    .upload-dropzone {
        min-height: 250px;
        padding: 25px 15px;
    }

    .upload-title {
        font-size: 18px;
    }
}



/* ==========================================================================
   3. LAGER BESTELLUNGEN – TABELLE UND SEITEN
   ========================================================================== */

/* --- Artikel: Titel, SKU, Warnungen, Erfolgs-Markierung --- */

.article-title {
    font-size: 1.05em;
}

.article-pack-warning {
    color: red;
    font-weight: normal;
    margin-left: 5px;
}

.article-sku-text {
    font-size: 0.9em;
}

.pack-size-warning {
    color: red;
    font-size: 1.5em;
    line-height: 1;
    vertical-align: middle;
}

.success-glow {
    border-color: #28a745 !important;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.8) !important;
    transition: all 0.3s ease-in-out !important;
}

/* --- DataTables: fixierter Tabellenkopf und Spalten --- */

/* 1. Verhindere, dass DataTables-Wrapper das Sticky blockieren */
div.dt-container,
.dt-layout-row,
.dt-layout-cell {
    overflow: visible !important;
}

/* 2. Fixiere den Tabellenkopf sauber im DataTables-Konstrukt */
.table-header-sticky.dataTable thead th {
    position: sticky !important;
    top: 70px !important;
    z-index: 1050 !important; /* Muss hoch genug sein, damit keine Zeile drüberrutscht */
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
}

.table_lager_bestellung_artikel.dataTable thead th {
    height: auto !important; 
    vertical-align: middle !important; 
    padding-top: 15px !important; 
    padding-bottom: 15px !important;
}

/* Optional: Damit die Sortier-Pfeile schön mittig bleiben */
.table_lager_bestellung_artikel.dataTable thead th.sorting,
.table_lager_bestellung_artikel.dataTable thead th.sorting_asc,
.table_lager_bestellung_artikel.dataTable thead th.sorting_desc {
    background-position: right 10px center !important;
}

.table_lager_bestellung_artikel.dataTable thead th,
.table_lager_bestellung_artikel.dataTable tbody td {
    padding-left: 8px !important;
    padding-right: 8px !important;
    white-space: normal !important; /* Erlaubt Zeilenumbrüche, statt die Spalte breit zu drücken */
    word-break: break-word;
}

.table_lager_bestellung_artikel.dataTable {
    width: 100% !important;
    max-width: 100% !important;
}

/* --- DataTables: markierte Zelle --- */

/* Zwingt DataTables, die markierte Zelle gelb einzufärben */
table.dataTable tbody td.highlight {
    background-color: #fff3cd !important; /* Ein schönes, weiches Bootstrap-Gelb */
    border: 2px solid #ffc107 !important; /* Optional: Ein dunklerer Rahmen zur Hervorhebung */
    color: #000 !important;
    transition: background-color 0.2s ease;
}

/* --- Schreibgeschützte Felder (Lieferdatum) --- */

/* Lager bestellung readonly lieferdtaum  */
.read_only {
    pointer-events: none; 
    opacity: 0.6; 
    user-select: none; 
}



/* ==========================================================================
   4. LAGER BESTELLUNG – STATUSBOX RECHTS (Timeline)
   ========================================================================== */

.order-tl-line {
    left: calc(1rem + 11px);
    top: 10px;
    bottom: 10px;
    width: 2px;
    z-index: 0;
}

.order-tl-circle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 0; 
}

.order-tl-icon {
    font-size: 11px;
}



/* ==========================================================================
   5. GESPERRTE ARTIKEL – SKU DETAILS
   ========================================================================== */

/* --- Container --- */

.js_gesperrte_artikel_sku_details {
    position: fixed;
    top: 280px;
    width: 380px;
    background: #ffffff;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: #172033;
    padding-bottom: 20px;
    overflow-y: scroll;
    max-height: 700px;
}

/* --- Kopfbereich und Schließen-Button --- */

.gesperrte-artikel-details-header {
    position: relative;
    padding: 22px 22px 14px;
    border-bottom: 1px solid #e7e9ec;
}

.gesperrte-artikel-details-header h3 {
    margin: 0 40px 4px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #121b2d;
}

.gesperrte-artikel-details-sku {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 3px;
}


.gesperrte-artikel-details-close {
    position: absolute;
    right: 18px;
    top: 19px;

    width: 30px;
    height: 30px;

    border: 0;
    background: transparent;
    cursor: pointer;

    color: #536070;
    font-size: 17px;
    border-radius: 6px;
}

.gesperrte-artikel-details-close:hover {
    background: #f3f4f6;
}

/* --- Statusbox --- */

.gesperrte-artikel-details-status {
    margin: 12px 22px 14px;
    padding: 13px 14px;

    display: flex;
    align-items: center;
    gap: 12px;

    background: #eaf6f3;
    border-radius: 7px;
}

.gesperrte-artikel-details-status-icon {
    font-size: 24px;
    color: #005847;
    width: 30px;
    text-align: center;
}

.gesperrte-artikel-details-status strong {
    display: block;
    color: #005847;
    font-size: 16px;
    margin-bottom: 3px;
}

.gesperrte-artikel-details-status span {
    display: block;
    font-size: 13px;
    color: #54645f;
}

/* --- Länderliste --- */

.gesperrte-artikel-details-countries {
    flex: 1;
    padding: 0 22px;
    overflow-y: auto;
}

.gesperrte-artikel-country {
    border-bottom: 1px solid #e6e8eb;
}

.gesperrte-artikel-country-header {
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    cursor: pointer;

    font-size: 13px;
}

.gesperrte-artikel-country-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.gesperrte-artikel-country-title strong {
    font-size: 13px;
    color: #252e3d;
}

.country-flag {
    width: 22px;
    font-size: 19px;
    line-height: 1;
}

.gesperrte-artikel-country-header > i {
    color: #263240;
    font-size: 11px;
}

/* --- Standorte je Land --- */

.gesperrte-artikel-country-content {
    padding: 0 0 10px 22px;
}

.gesperrte-artikel-location {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 3px 0;

    font-size: 12px;
    color: #414b5b;
}

.gesperrte-artikel-location i {
    width: 13px;
    text-align: center;

    font-size: 11px;
    color: #364152;
}

.gesperrte-artikel-location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Footer und Bearbeiten-Button --- */

.gesperrte-artikel-details-footer {
    padding: 18px 22px 22px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.js_gesperrte_artikel_standorte_bearbeiten {
    width: 100%;
    height: 44px;

    border: 0;
    border-radius: 6px;

    background: #006451;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: background .15s ease,
                transform .1s ease;
}

/* --- Tabelle gesperrte Artikel --- */

.js_table_gesperrte_artikel tr td img {
    border-radius: 8px;
}



/* ==========================================================================
   6. PARTNER – BESCHREIBUNG
   ========================================================================== */

.beschreibung-kurz {
    font-size: 14px;
    line-height: 1.6;
    color: #536273;
}

.beschreibung-kurz .js_beschreibung_anzeigen {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;

    font-size: 13px;
    font-weight: 600;
    color: #315b8a;

    text-decoration: none;
    cursor: pointer;

    transition: all 0.2s ease;
}

.beschreibung-kurz .js_beschreibung_anzeigen::after {
    content: "›";
    margin-left: 5px;
    font-size: 17px;
    line-height: 1;

    transition: transform 0.2s ease;
}

.beschreibung-kurz .js_beschreibung_anzeigen:hover {
    color: #1d3f66;
    text-decoration: none;
}

.beschreibung-kurz .js_beschreibung_anzeigen:hover::after {
    transform: translateX(3px);
}



/* ==========================================================================
   7. ROLLEN UND RECHTE (Rollen-/Mitarbeiter-Ansicht)
   ========================================================================== */

/* --- Hauptlayout --- */
.layout {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 18px;
}

.panel {
    background: #fff;
    border: 1px solid #dfe8e1;
    border-radius: 14px;
    box-shadow: 0 6px 20px #20432908;
}

/* --- Linke Sidebar (Rollen/Mitarbeiter Navigation) --- */
.left {
    padding: 20px;
    align-self: start;
}

.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: #819287;
    font-weight: 800;
    margin: 7px 0 12px;
}

.tabs {
    
    background: #f2f6f3;
    border-radius: 9px;
    padding: 4px;
    margin-bottom: 23px;
}

.js_rechte_wrapper .tabs {
display: flex;
}

.tabs button {
    flex: 1;
    border: 0;
    background: none;
    border-radius: 7px;
    color: #66796d;
    padding: 9px 5px;
    font-weight: 700;
    font-size: 13px;
}

.tabs button.active {
    color: #145d41;
    background: #fff;
    box-shadow: 0 1px 5px #183b2620;
}

.item {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 9px;
    background: none;
    padding: 11px 12px;
    margin-bottom: 4px;
    color: #43594b;
}

.item strong {
    display: block;
    font-size: 14px;
}

.item small {
    display: block;
    color: #819287;
    margin-top: 4px;
    font-size: 12px;
}

.item.active {
    background: #e6f2e9;
    border-color: #cfe6d5;
    color: #145d41;
}

.hint {
    font-size: 12px;
    color: #7e9185;
    margin-top: 18px;
    line-height: 1.5;
}

/* --- Rechte Hauptansicht (Content) --- */
.content {
    min-width: 0;
}

.detail {
    padding: 26px 28px;
}

.detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e8eee9;
}

.detail-head h2 {
    font-size: 22px;
    margin: 0 0 6px;
    letter-spacing: -.025em;
}

.detail-head p {
    font-size: 13px;
}

.pill {
    background: #edf5ef;
    color: #31704a;
    border-radius: 99px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.toolbar {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 14px;
}

.search {
    width: min(320px, 100%);
    border: 1px solid #cad9cf;
    background: #f7faf8;
    border-radius: 9px;
    padding: 10px 13px;
    outline: none;
    color: #243c32;
}

.search:focus {
    border-color: #20332c;
    box-shadow: 0 0 0 3px #dcefe3;
}

.check {
    font-size: 12px;
    color: #52695b;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.check input {
    accent-color: #20332c;
}

/* --- Rechte-Tabellen (Gruppen) --- */
.group {
    border: 1px solid #e0e9e3;
    border-radius: 11px;
    margin: 12px 0;
    overflow: hidden;
}

.group-title {
    background: #f7faf8;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 780;
    color: #365545;
}

.right-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 238px 120px;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #edf1ed;
    padding: 8px 16px;
    color: #849589;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    font-weight: 800;
}

.perm-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 238px 120px;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #edf1ed;
    min-height: 64px;
}

.perm-row:last-child {
    border-bottom: 0;
}

.perm-title {
    font-size: 14px;
    font-weight: 680;
    color: #2e4738;
}

.perm-key {
    font-size: 11px;
    color: #94a397;
    margin-top: 4px;
}

/* --- UI Elemente (Toggles, Badges) --- */
.tri {
    display: flex;
    border: 1px solid #d5e2d9;
    border-radius: 8px;
    padding: 3px;
    background: #f7faf8;
    gap: 2px;
}

.tri button {
    border: 0;
    background: none;
    color: #64796b;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 5px;
    flex: 1;
}

.tri button.sel {
    background: #fff;
    color: #155d41;
    box-shadow: 0 1px 5px #20432925;
}

.tri button.deny.sel {
    color: #a4463f;
}

.switch {
    position: relative;
    border: 0;
    width: 38px;
    height: 22px;
    border-radius: 20px;
    background: #ccd9d0;
    display: inline-block;
    vertical-align: middle;
    transition: .15s;
}

.switch:after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: .15s;
}

.switch.on {
    background: #20332c;
}

.switch.on:after {
    left: 19px;
}

.state {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 99px;
    background: #f0f3f1;
    color: #6e8175;
    white-space: nowrap;
}

.state.yes {
    background: #e8f5eb;
    color: #236a42;
}

.state.no {
    background: #f9eeeb;
    color: #9a5245;
}

/* --- Footer & Sonstiges --- */
.summary {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 15px 17px;
    border: 1px solid #dbe9dd;
    background: #f5faf6;
    border-radius: 10px;
    font-size: 13px;
    color: #526b58;
}

.summary strong {
    color: #184d31;
}

.footer {
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    font-size: 12px;
    color: #809184;
    text-align: center;
}

.save {
    border: 0;
    border-radius: 9px;
    background: #20332c;
    color: #fff;
    font-weight: 750;
    padding: 11px 17px;
}

.save:hover {
    background: #0d4b31;
}

.empty {
    padding: 30px;
    color: #819287;
    font-size: 13px;
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* --- Mobile Responsive Anpassungen --- */
@media(max-width: 1050px) {
    .layout {
        grid-template-columns: 230px 1fr;
    }
}

@media(max-width: 760px) {
    .layout {
        display: block;
    }
    .left {
        margin-bottom: 14px;
    }
    .detail {
        padding: 18px 14px;
    }
    .right-head {
        display: none;
    }
    .perm-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .tri {
        width: 100%;
    }
    .toolbar {
        flex-wrap: wrap;
    }
    .check {
        white-space: normal;
    }
}



/* ==========================================================================
   8. RECHTE-GRUPPEN – EINSTELLUNGEN
   ========================================================================== */

/* Sidebar & Listen */
.rg-sidebar-col {
    border-right: 1px solid #e9ecef;
}
.rg-list-group {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}
.rg-list-item {
    border: none !important;
    border-bottom: 1px solid #e9ecef !important;
    cursor: pointer;
}
.rg-list-item:last-child {
    border-bottom: none !important;
}

/* Rechte-Container (rechte Spalte) */
.rg-perm-wrapper {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
}
.rg-perm-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f8f9fa;
    font-size: 11px;
    font-weight: bold;
    color: #6e8175;
    text-transform: uppercase;
    border-bottom: 1px solid #e9ecef;
}
.rg-perm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f5;
}
.rg-perm-row:last-child {
    border-bottom: none;
}
.rg-perm-title {
    font-weight: 600;
    font-size: 14px;
    color: #343a40;
}
.rg-perm-key {
    font-size: 12px;
    color: #819287;
}


/* ==========================================================================
   9. LOGIN
   ========================================================================== */


/* 01. Seitenlayout */

body.tbs-login-page {
    --login-green: #075e43;
    --login-text: #234733;
    --login-muted: #7b8f80;
    --login-border: #d9e5dc;

    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    background: #f2f6f3;
}

.tbs-login-page .main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}

.tbs-login-page .content-wrapper {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
}

.tbs-login-page .page-content {
    display: flex;
    flex: 1;
    align-items: center;
    width: 100%;
    padding: 48px 0;
}

.tbs-login-page .tbs-login-container {
    width: 100%;
    max-width: 1200px;
}

.tbs-login-page .login-row {
    min-height: 0;
    margin-top: 0;
    margin-bottom: 0;
}


/* 02. Login-Karte */

.tbs-login-page .tbs-login-card {
    overflow: hidden;
    padding: 0;
    border: 1px solid #e0e9e2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 65px rgba(18, 61, 38, 0.12);
}

.tbs-login-page .tbs-login-card > .row {
    margin-right: 0;
    margin-left: 0;
}

.tbs-login-page .tbs-login-card > .row > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}


/* 03. Markenbereich */

.tbs-login-page .tbs-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 570px;
    padding: 46px 40px !important;
    color: #fff;
    background: linear-gradient(
        145deg,
        #003f30 0%,
        #075b42 65%,
        #15724b 100%
    );
}

.tbs-login-page .tbs-login-brand::after {
    position: absolute;
    right: -155px;
    bottom: -155px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.tbs-login-page .tbs-login-brand > * {
    position: relative;
    z-index: 1;
}

.tbs-login-page .tbs-login-eyebrow {
    display: block;
    color: #438061;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tbs-login-page .tbs-login-brand .tbs-login-eyebrow {
    color: #b3dcc6;
}

.tbs-login-page .tbs-login-brand h1 {
    max-width: 320px;
    margin: 46px 0 18px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.65rem;
    font-weight: 700;
    line-height: 1.13;
    letter-spacing: -0.035em;
}

.tbs-login-page .tbs-login-description {
    margin: 0;
    color: #cce5d7;
    font-size: 18px;
    line-height: 28px;
}

.tbs-login-page .tbs-login-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.tbs-login-page .tbs-login-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e3f1e9;
    font-size: 16px;
}

.tbs-login-page .tbs-login-features i {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
}

.tbs-login-page .tbs-login-brand-footer {
    margin-top: auto;
    padding-top: 36px;
    color: #a3cdb6;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* 04. Formularbereich */

.tbs-login-page .tbs-login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 40px !important;
}

.tbs-login-page .tbs-login-logo {
    margin-bottom: 34px;
}

.tbs-login-page .tbs-login-logo img {
    display: block;
    width: 235px;
    max-width: 100%;
    height: auto;
}

.tbs-login-page .tbs-login-heading {
    margin-bottom: 28px;
}

.tbs-login-page .tbs-login-heading h2 {
    margin: 9px 0;
    color: var(--login-text);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.tbs-login-page .tbs-login-heading p {
    margin: 0;
    color: var(--login-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* 05. Eingabefelder und Passwortanzeige */

.form-control::placeholder {
    color: #9ca99f;
    opacity: 1;
}

.form-control:focus {
    border-color: #4a9976;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(66, 152, 113, 0.12);
}

.tbs-login-password {
    position: relative;
}

.tbs-login-password .form-control {
    padding-right: 58px;
}

.tbs-login-password-toggle {
    position: absolute;
    top: 30px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #7a9181;
    cursor: pointer;
}

.tbs-login-page .tbs-login-password-toggle:hover {
    color: var(--login-green);
}


/* 07. Footer */

.tbs-login-page .footer {
    position: static;
    width: 100%;
    margin: 0;
    padding: 0 20px 24px;
    border: 0;
    background: transparent;
    color: #82988a;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.6;
}

.tbs-login-page .footer a {
    color: #427258;
}


/* 08. Responsive */

@media (max-width: 991.98px) {
    .tbs-login-page .tbs-login-brand,
    .tbs-login-page .tbs-login-form-panel {
        padding: 36px 28px !important;
    }

    .tbs-login-page .tbs-login-brand h1 {
        font-size: 2.25rem;
    }

    .tbs-login-page .tbs-login-heading h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    .tbs-login-page .page-content {
        padding: 24px 0;
    }

    .tbs-login-page .tbs-login-container {
        max-width: 500px;
    }

    .tbs-login-page .tbs-login-card {
        border-radius: 17px;
    }

    .tbs-login-page .tbs-login-brand {
        min-height: 0;
        padding: 28px !important;
    }

    .tbs-login-page .tbs-login-brand h1 {
        max-width: none;
        margin: 15px 0 10px;
        font-size: 1.8rem;
    }

    .tbs-login-page .tbs-login-description {
        font-size: 0.9rem;
    }

    .tbs-login-page .tbs-login-features,
    .tbs-login-page .tbs-login-brand-footer {
        display: none;
    }

    .tbs-login-page .tbs-login-form-panel {
        padding: 30px 28px !important;
    }

    .tbs-login-page .tbs-login-logo {
        margin-bottom: 25px;
    }

    .tbs-login-page .tbs-login-logo img {
        width: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tbs-login-page .tbs-login-form .form-control {
        transition: none;
    }
}




/* ==========================================================================
   10. PROFIL SEITE
   ========================================================================== */


.card.tbs-profile-card {
    background: #fff;
    border: 1px solid #e1e8e4;
    border-radius: 12px;
    overflow: hidden;
}

/* Grüner Kopfbereich */
.tbs-profile-card .tbs-profile-cover {
    height: 105px;
    padding: 20px;
    background: #004c42;
    border-bottom: 0;
    border-radius: 0;
    color: #d3e4dc;
}

.tbs-profile-cover span {
    font-size: 11px;
    letter-spacing: 1.7px;
}

/* Inhalt */
.tbs-profile-card .tbs-profile-body {
    padding: 0 24px 25px;
}

/* Profilbild mit Überlappung */
.tbs-profile-avatar-wrap {
    width: 88px;
    margin-top: -42px;
    margin-bottom: 18px;
}

.tbs-profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border: 5px solid #fff;
    background: #e5eee8;
    color: #004c42;
    font: 32px Georgia, serif;
}

.tbs-profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bildauswahl */
.tbs-profile-photo-button {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    border: 1px solid #dbe5df;
    background: #fff;
    color: #005448;
    cursor: pointer;
}

.tbs-profile-photo-button:hover {
    background: #edf4ef;
}

.tbs-profile-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.tbs-profile-avatar-wrap:focus-within .tbs-profile-photo-button {
    outline: 3px solid #69b9a4;
    outline-offset: 3px;
}

/* Name, E-Mail und Rolle */
.tbs-profile-card .tbs-profile-name {
    color: #183b30;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

.tbs-profile-email {
    color: #7b8981;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.tbs-profile-card .tbs-profile-role {
    padding: 7px 10px;
    border-radius: 4px;
    background: #edf4ef;
    color: #416d5a;
    font-size: 12px;
    font-weight: 500;
}

.tbs-profile-divider {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid #e1e8e4;
    opacity: 1;
}

/* Kontodaten */
.tbs-profile-details dt {
    margin-bottom: 6px;
    color: #839087;
    font-size: 13px;
    font-weight: 400;
}

.tbs-profile-details dd {
    color: #253b36;
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* Hinweis */
.tbs-profile-note {
    padding: 13px 11px;
    border-radius: 6px;
    background: #f5f8f6;
    color: #74857c;
}

.tbs-profile-note p {
    font-size: 13px;
    line-height: 1.55;
}

.tbs-profile-card svg {
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tbs-profile-photo-button svg {
    width: 16px;
    height: 16px;
}

.tbs-profile-note svg {
    width: 15px;
    height: 15px;
    margin-top: 3px;
    margin-right: 9px;
}


/* ==========================================================================
   11. Offcanvas Navigation
   ========================================================================== */

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 28px 25px;
    border-bottom: 1px solid #e1e8e4;
}

.tbs-orders {
    color: #253b36;
}

.tbs-orders,
.tbs-orders * {
    box-sizing: border-box;
}

.tbs-orders svg {
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tbs-orders .tbs-orders-description {
    margin: 0 0 25px;
    color: #7d8e83;
    font-size: 14px;
    line-height: 1.6;
}

/* Gesamtanzahl */
.tbs-orders-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 23px 24px;
    border-radius: 10px;
    background: #004c42;
    color: #fff;
}

.tbs-orders-total span {
    display: block;
    margin-bottom: 8px;
    color: #c1dcd0;
    font-size: 14px;
}

.tbs-orders-total strong {
    display: block;
    font-size: 43px;
    font-weight: 600;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.tbs-orders-total > svg {
    width: 43px;
    height: 43px;
    color: #81ad96;
    stroke-width: 1.2;
}

/* Statuskarten */
.tbs-orders-status-list {
    display: grid;
    gap: 13px;
}

.tbs-order-status {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 19px 15px;
    border: 1px solid #e1e8e4;
    border-radius: 9px;
    background: #fff;
}

.tbs-order-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 41px;
    height: 41px;
    border-radius: 9px;
}

.tbs-order-status-icon svg {
    width: 21px;
    height: 21px;
}

.tbs-order-status-text {
    min-width: 0;
}

.tbs-orders .tbs-order-status h3 {
    margin: 0 0 5px;
    color: #253b36;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.tbs-orders .tbs-order-status p {
    margin: 0;
    color: #839187;
    font-size: 12px;
    line-height: 1.4;
}

.tbs-order-status > strong {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 29px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

/* Statusfarben */
.tbs-order-status-entwurf .tbs-order-status-icon {
    background: #f8d7da;
    color: #721c24;
}

.tbs-order-status-open .tbs-order-status-icon {
    background: #fcf2db;
    color: #a97718;
}

.tbs-order-status-approved .tbs-order-status-icon {
    background: #e6f2eb;
    color: #005448;
}

.tbs-order-status-shipped .tbs-order-status-icon {
    background: #eaf1f8;
    color: #41769b;
}

