/**
 * portal.css — Bootstrap 3 CSS Replacement for login
 *
 * Drop-in replacement using the same class names as Bootstrap 3.
 * No HTML changes needed. Uses CSS Custom Properties for theming.
 *
 * Covers: Grid, Buttons, Modals, Forms, Labels, Text Utils, Layout,
 * Panels, Alerts, Navbar, Nav-Tabs, Dropdowns, Progress, Tables,
 * Badges, Close, Glyphicon→Font Awesome mapping.
 */


/* ---- Fonts ---- */

@font-face {
    font-family: 'Franz Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Franz Sans'),
         url(/assets/fonts/FranzSans-Light.woff2) format('woff2'),
         url(/assets/fonts/FranzSans-Light.woff) format('woff');
}

@font-face {
    font-family: 'Franz Sans';
    font-style: normal;
    font-weight: 500;
    src: local('Franz Sans'),
         url(/assets/fonts/FranzSans-Medium.woff2) format('woff2'),
         url(/assets/fonts/FranzSans-Medium.woff) format('woff');
}

@font-face {
    font-family: 'Franz Sans Bold';
    font-weight: 700;
    src: local('Franz Sans Bold'),
         url(/assets/fonts/FranzSans-Bold.woff2) format('woff2'),
         url(/assets/fonts/FranzSans-Bold.woff) format('woff');
}


/* ---- Variables ---- */

:root {
    --bs-primary: #83bc41;
    --bs-success: #83bc41;
    --bs-danger: #ea516d;
    --bs-warning: #f0ad4e;
    --bs-info: #3a9fc5;
    --bs-default: #fff;
    --bs-default-border: #ccc;
    --bs-default-text: #333;
    --bs-font: 'Franz Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --bs-radius: 8px;
    --bs-radius-pill: 999px;
    --bs-font-size: 14px;
    --bs-line-height: 1.42857;
    --bs-gray-light: #777;
    --bs-gray-lighter: #eee;
    --bs-border-color: #ddd;
    --bs-input-border: #ccc;
    --bs-input-height: 38px;
    --bs-input-focus: #66afe9;
    --bs-body-bg: #fff;
    --bs-text-color: #333;
    --bs-link-color: #337ab7;
    --bs-panel-bg: #f5f5f5;
}


/* ---- Base / Reset ---- */

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

body {
    font-family: var(--font-family, var(--bs-font));
    font-size: var(--bs-font-size);
    line-height: var(--bs-line-height);
    color: var(--bs-text-color);
    background-color: var(--bs-body-bg);
    margin: 0;
}

input,
button,
select,
textarea {
    font-family: inherit;
}

a {
    color: var(--bs-link-color);
    text-decoration: none;
}

a:hover {
    color: #23527c;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}


/* ---- Grid ---- */

.container {
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.container::after {
    content: "";
    display: table;
    clear: both;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

.row::after {
    content: "";
    display: table;
    clear: both;
}

[class*="col-"] {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
    float: left;
}


/* xs columns (always active) */

.col-xs-1 {
    width: 8.333%;
}

.col-xs-2 {
    width: 16.667%;
}

.col-xs-3 {
    width: 25%;
}

.col-xs-4 {
    width: 33.333%;
}

.col-xs-5 {
    width: 41.667%;
}

.col-xs-6 {
    width: 50%;
}

.col-xs-7 {
    width: 58.333%;
}

.col-xs-8 {
    width: 66.667%;
}

.col-xs-9 {
    width: 75%;
}

.col-xs-10 {
    width: 83.333%;
}

.col-xs-11 {
    width: 91.667%;
}

.col-xs-12 {
    width: 100%;
}

.col-xs-offset-1 {
    margin-left: 8.333%;
}

.col-xs-offset-2 {
    margin-left: 16.667%;
}

.col-xs-offset-3 {
    margin-left: 25%;
}

.col-xs-offset-4 {
    margin-left: 33.333%;
}


/* sm columns (>= 768px) */

@media (min-width: 768px) {
    .col-sm-1 {
        width: 8.333%;
    }
    .col-sm-2 {
        width: 16.667%;
    }
    .col-sm-3 {
        width: 25%;
    }
    .col-sm-4 {
        width: 33.333%;
    }
    .col-sm-5 {
        width: 41.667%;
    }
    .col-sm-6 {
        width: 50%;
    }
    .col-sm-7 {
        width: 58.333%;
    }
    .col-sm-8 {
        width: 66.667%;
    }
    .col-sm-9 {
        width: 75%;
    }
    .col-sm-10 {
        width: 83.333%;
    }
    .col-sm-11 {
        width: 91.667%;
    }
    .col-sm-12 {
        width: 100%;
    }
    .col-sm-offset-1 {
        margin-left: 8.333%;
    }
    .col-sm-offset-2 {
        margin-left: 16.667%;
    }
    .col-sm-offset-3 {
        margin-left: 25%;
    }
    .hidden-xs {
        display: block !important;
    }
}


/* md columns (>= 992px) */

@media (min-width: 992px) {
    .col-md-1 {
        width: 8.333%;
    }
    .col-md-2 {
        width: 16.667%;
    }
    .col-md-3 {
        width: 25%;
    }
    .col-md-4 {
        width: 33.333%;
    }
    .col-md-5 {
        width: 41.667%;
    }
    .col-md-6 {
        width: 50%;
    }
    .col-md-7 {
        width: 58.333%;
    }
    .col-md-8 {
        width: 66.667%;
    }
    .col-md-9 {
        width: 75%;
    }
    .col-md-10 {
        width: 83.333%;
    }
    .col-md-11 {
        width: 91.667%;
    }
    .col-md-12 {
        width: 100%;
    }
    .col-md-offset-1 {
        margin-left: 8.333%;
    }
    .col-md-offset-2 {
        margin-left: 16.667%;
    }
    .col-md-offset-3 {
        margin-left: 25%;
    }
}


/* lg columns (>= 1200px) */

@media (min-width: 1200px) {
    .col-lg-1 {
        width: 8.333%;
    }
    .col-lg-2 {
        width: 16.667%;
    }
    .col-lg-3 {
        width: 25%;
    }
    .col-lg-4 {
        width: 33.333%;
    }
    .col-lg-5 {
        width: 41.667%;
    }
    .col-lg-6 {
        width: 50%;
    }
    .col-lg-7 {
        width: 58.333%;
    }
    .col-lg-8 {
        width: 66.667%;
    }
    .col-lg-9 {
        width: 75%;
    }
    .col-lg-10 {
        width: 83.333%;
    }
    .col-lg-11 {
        width: 91.667%;
    }
    .col-lg-12 {
        width: 100%;
    }
}


/* ---- Buttons ---- */

.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: var(--bs-font-size);
    font-weight: 500;
    line-height: var(--bs-line-height);
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--bs-radius-pill);
    user-select: none;
    touch-action: manipulation;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover {
    text-decoration: none;
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(147, 192, 36, .25);
}

.btn:active {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}

.btn[disabled],
.btn.disabled {
    opacity: .65;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-default {
    color: var(--bs-default-text);
    background: var(--bs-default);
    border-color: var(--bs-default-border);
}

.btn-default:hover {
    background: #e6e6e6;
    border-color: #adadad;
}

.btn-primary {
    color: #fff;
    background: var(--bs-primary);
    border-color: #6fa033;
}

.btn-primary:hover {
    background: #6fa033;
    border-color: #5e8a2b;
}

.btn-success {
    color: #fff;
    background: var(--bs-success);
    border-color: #6fa033;
}

.btn-success:hover {
    background: #6fa033;
}

.btn-danger {
    color: #fff;
    background: var(--bs-danger);
    border-color: #d94530;
}

.btn-danger:hover {
    background: #d94530;
}

.btn-warning {
    color: #fff;
    background: var(--bs-warning);
    border-color: #eea236;
}

.btn-warning:hover {
    background: #ec971f;
}

.btn-info {
    color: #fff;
    background: var(--bs-info);
    border-color: #2e8eab;
}

.btn-info:hover {
    background: #2e8eab;
}

.btn-lg {
    padding: 12px 20px;
    font-size: 18px;
    line-height: 1.33;
    border-radius: var(--bs-radius-pill);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: var(--bs-radius-pill);
}

.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: var(--bs-radius-pill);
}

.btn-xl {
    padding: 10px 18px;
    font-size: 16px;
    border-radius: var(--bs-radius-pill);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-light {
    color: #333;
    background: #f8f9fa;
    border-color: #ddd;
}

.btn-light:hover {
    background: #e2e6ea;
    border-color: #ccc;
}

.btn-link {
    font-weight: 400;
    color: var(--bs-link-color);
    background: transparent;
    border-color: transparent;
}

.btn-link:hover {
    color: #23527c;
    text-decoration: none;
    background: transparent;
    border-color: transparent;
}

.btn-md {
    padding: 6px 12px;
    font-size: 14px;
    line-height: var(--bs-line-height);
    border-radius: var(--bs-radius-pill);
}

.btn-outline-primary {
    color: var(--bs-primary);
    background: transparent;
    border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
    color: #fff;
    background: var(--bs-primary);
}

.btn-outline-secondary {
    color: #6c757d;
    background: transparent;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    color: #fff;
    background: #6c757d;
}


/* ---- Button Groups ---- */

.btn-group,
.btn-group-vertical {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    gap: 0;
}

.btn-group>.btn,
.btn-group-vertical>.btn {
    position: relative;
    flex: 0 1 auto;
}

.btn-group>.btn:not(:first-child) {
    margin-left: -1px;
}

.btn-group>.btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group>.btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}


/* Einziger Button in der Gruppe: rechts ebenfalls abgerundet */

.btn-group>.btn:only-child {
    border-radius: var(--bs-radius-pill);
}


/* Nur ein Filter-Button sichtbar (andere display:none): dann rechte Eckenrundung */

.btn-group.filter-group-single-visible>.btn {
    border-radius: var(--bs-radius-pill);
}

.btn-group-vertical {
    flex-direction: column;
    align-items: flex-start;
}

.btn-group-vertical>.btn {
    width: 100%;
}

.btn-group-vertical>.btn:not(:first-child) {
    margin-top: -1px;
    margin-left: 0;
}

.btn-group-vertical>.btn:not(:last-child) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group-vertical>.btn:not(:first-child) {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.btn-group-justified {
    display: flex;
    width: 100%;
}

.btn-group-justified>.btn,
.btn-group-justified>.btn-group {
    flex: 1;
}

.btn-group-xs>.btn {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: var(--bs-radius-pill);
}

.btn-group>.btn+.dropdown-toggle {
    padding-left: 8px;
    padding-right: 8px;
}


/* ---- Forms ---- */

.form-control {
    display: block;
    width: 100%;
    height: var(--bs-input-height);
    padding: 8px 14px;
    font-size: var(--bs-font-size);
    line-height: var(--bs-line-height);
    color: #555;
    background: #fff;
    border: 1px solid var(--bs-input-border);
    border-radius: var(--bs-radius-pill);
    box-shadow: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
    border-color: #83bc41;
    box-shadow: 0 0 0 3px rgba(131, 188, 65, .2);
    outline: 0;
}


/* Prepend/addon border + color follows input focus */

.input-group:focus-within .input-group-text,
.input-group:focus-within .input-group-addon {
    border-color: #83bc41;
    color: #666;
}


/* Wrap box-shadow around entire input-group instead of just the input */

.input-group:focus-within {
    border-radius: var(--bs-radius-pill);
    box-shadow: 0 0 0 3px rgba(131, 188, 65, .2);
}

.input-group:focus-within>.form-control:focus {
    box-shadow: none;
}

.form-control[disabled],
.form-control[readonly] {
    background: var(--bs-gray-lighter);
    opacity: 1;
}

select.form-control {
    appearance: auto;
    padding-right: 36px;
    padding-left: 16px;
}

textarea.form-control {
    height: auto;
    border-radius: var(--bs-radius);
}

select.form-control:not(.selectpicker) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group::after {
    content: "";
    display: table;
    clear: both;
}

.form-horizontal .form-group::after {
    content: "";
    display: table;
    clear: both;
}

.control-label {
    padding-top: 7px;
    margin-bottom: 0;
    text-align: right;
}

.form-horizontal .control-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}


/* Input-Group (Flexbox — BS3+BS4 compatible) */

.input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.input-group>.form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}


/* BS4: input-group-prepend / append / text */

.input-group-prepend,
.input-group-append {
    display: flex;
    align-items: stretch;
}

.input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 14px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #aaa;
    text-align: center;
    background: transparent;
    border: 1px solid var(--bs-input-border);
    border-right: none;
    white-space: nowrap;
    min-width: 38px;
}

.input-group-text .fa,
.input-group-text .fas,
.input-group-text .far,
.input-group-text .fab {
    width: 1em;
    text-align: center;
}

.input-group>.input-group-prepend+.form-control,
.input-group>.input-group-prepend+.vs-wrapper .vs-btn,
.input-group>.input-group-prepend+select.form-control {
    border-left: none;
    padding-left: 8px;
}


/* Append position: mirror of prepend */

.input-group-append .input-group-text {
    border: 1px solid var(--bs-input-border);
    border-left: none;
    border-right: 1px solid var(--bs-input-border);
    padding: 0 12px 0 6px;
    background: transparent;
    color: #999;
    font-size: 13px;
    min-width: auto;
}

.input-group>.form-control+.input-group-append {
    margin-left: 0;
}


/* BS3 compat: addon / btn */

.input-group-addon,
.input-group-btn {
    display: flex;
    align-items: stretch;
    white-space: nowrap;
}

.input-group-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #aaa;
    text-align: center;
    background: transparent;
    border: 1px solid var(--bs-input-border);
    border-right: none;
    white-space: nowrap;
    border-radius: var(--bs-radius-pill) 0 0 var(--bs-radius-pill);
}

.input-group-addon .fa,
.input-group-addon .fas,
.input-group-addon .far,
.input-group-addon .fab,
.input-group-addon .glyphicon {
    width: 1.15em;
    text-align: center;
    line-height: 1;
}

.input-group>.input-group-addon+.form-control {
    border-left: none;
    padding-left: 8px;
}

.input-group-btn {
    position: relative;
    font-size: 0;
}

.input-group-btn>.btn {
    position: relative;
}


/* Border radius: first/last child handling */

.input-group> :first-child,
.input-group> :first-child .input-group-text,
.input-group> :first-child>.btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group> :last-child,
.input-group> :last-child .input-group-text,
.input-group> :last-child>.btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group> :not(:first-child),
.input-group> :not(:first-child) .input-group-text,
.input-group> :not(:first-child)>.btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group> :not(:last-child),
.input-group> :not(:last-child) .input-group-text,
.input-group> :not(:last-child)>.btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}


/* Prevent double borders */

.input-group> :not(:first-child) {
    margin-left: -1px;
}


/* Mittleres Addon (z. B. „✕“ bei Breite x Höhe): rechte Border für symmetrische Trennung */

.input-group>.form-control+.input-group-addon.input-group-addon-sep,
.input-group>.form-control+.input-group-addon:has(+.form-control) {
    border-right: 1px solid var(--bs-input-border);
}

.input-group>.form-control:focus {
    z-index: 3;
    position: relative;
}

.input-group>.input-group-prepend .input-group-text,
.input-group-addon {
    z-index: 1;
}


/* First child keeps left radius, last keeps right radius */

.input-group> :first-child,
.input-group> :first-child .input-group-text {
    border-top-left-radius: var(--bs-radius-pill);
    border-bottom-left-radius: var(--bs-radius-pill);
}

.input-group> :last-child,
.input-group> :last-child .input-group-text {
    border-top-right-radius: var(--bs-radius-pill);
    border-bottom-right-radius: var(--bs-radius-pill);
}


/* bigInput → normalize to standard pill (higher specificity beats kernel.css) */

.bigInput.form-control {
    font-size: var(--bs-font-size);
    height: var(--bs-input-height);
    padding: 8px 14px;
    margin: 0;
    border: 1px solid var(--bs-input-border);
    border-radius: var(--bs-radius-pill);
    background: #fff;
}

.input-group>.bigInput.form-control {
    border-left: none;
    padding-left: 8px;
    border-radius: 0 var(--bs-radius-pill) var(--bs-radius-pill) 0;
}

textarea.bigInput.form-control {
    height: auto;
    border-radius: var(--bs-radius-pill);
    resize: none;
}

.input-group>textarea.bigInput.form-control {
    border-radius: 0 var(--bs-radius-pill) var(--bs-radius-pill) 0;
}


/* Textarea inside input-group */

.input-group>textarea.form-control {
    height: auto;
    border-radius: 0 var(--bs-radius) var(--bs-radius) 0;
}

.input-group:has(>textarea)>.input-group-prepend {
    align-items: flex-start;
}

.input-group:has(>textarea)>.input-group-prepend .input-group-text {
    border-radius: var(--bs-radius) 0 0 var(--bs-radius);
}


/* VanillaSelect: portal — unified height + pill radius */

.vs-btn {
    border-radius: var(--bs-radius-pill);
    min-height: var(--bs-input-height);
    padding: 8px 14px;
}

.vs-btn.form-control {
    height: auto;
    min-height: var(--bs-input-height);
    padding: 8px 14px;
}

.vs-dropdown {
    border-radius: 0 0 var(--bs-radius) var(--bs-radius);
}


/* Dropdown etwas schmaler als der pill-förmige Trigger */

.vs-wrapper .vs-dropdown {
    width: calc(100% - 16px);
    margin-left: 8px;
}

.vs-musterset-btn {
    border-radius: var(--bs-radius-pill);
    margin: 6px;
    width: calc(100% - 12px);
    box-sizing: border-box;
}

.vs-wrapper.vs-open .vs-btn {
    border-radius: var(--bs-radius-pill) !important;
}

.input-group>.vs-wrapper:first-child .vs-btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group>.vs-wrapper:last-child .vs-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--bs-radius-pill);
    border-bottom-right-radius: var(--bs-radius-pill);
}

.input-group>.vs-wrapper:last-child .vs-wrapper.vs-open .vs-btn {
    border-bottom-right-radius: 0;
}


/* Mittlerer VanillaSelect in input-group (addon links + buttons rechts): keine Rundung */

.input-group>.input-group-addon+.vs-wrapper .vs-btn {
    border-radius: 0;
    border-left: none;
}

.input-group>.input-group-addon+.vs-wrapper.vs-open .vs-btn {
    border-radius: 0;
}

.input-lg,
.input-group-lg>.form-control {
    height: 46px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33;
    border-radius: var(--bs-radius-pill);
}

.input-group-addon.input-lg {
    padding: 10px 16px;
    font-size: 18px;
    border-radius: var(--bs-radius-pill) 0 0 var(--bs-radius-pill);
}

.has-feedback {
    position: relative;
}

.has-error .form-control {
    border-color: #a94442;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.has-error .form-control:focus {
    border-color: #843534;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
}

.has-error .control-label,
.has-error .help-block,
.has-error .radio,
.has-error .checkbox {
    color: #a94442;
}

.has-success .form-control {
    border-color: #3c763d;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.has-success .form-control:focus {
    border-color: #2b542c;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168;
}

.has-success .control-label,
.has-success .help-block {
    color: #3c763d;
}

.has-warning .form-control {
    border-color: #8a6d3b;
}

.has-warning .control-label,
.has-warning .help-block {
    color: #8a6d3b;
}

.form-control-feedback {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    pointer-events: none;
}

.checkbox,
.radio {
    position: relative;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
}

.checkbox-inline,
.radio-inline {
    display: inline-block;
    padding-left: 20px;
    margin-bottom: 0;
    font-weight: 400;
    vertical-align: middle;
    cursor: pointer;
}


/* Validation states */

.is-invalid,
.input-danger {
    border-color: var(--bs-danger) !important;
}

.is-valid {
    border-color: var(--bs-success) !important;
}

.invalid-feedback {
    display: block;
    color: var(--bs-danger);
    font-size: 12px;
    margin-top: 2px;
}

.valid-feedback {
    display: block;
    color: var(--bs-success);
    font-size: 12px;
    margin-top: 2px;
}


/* ---- Modals ---- */

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    outline: 0;
}

.modal.in {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
}

@media (min-width: 768px) {
    .modal-dialog {
        width: 600px;
        margin: 30px auto;
    }
}

.modal-lg {
    width: auto;
}

@media (min-width: 992px) {
    .modal-lg {
        width: 900px;
    }
}

.modal-md {
    width: auto;
}

@media (min-width: 768px) {
    .modal-md {
        width: 600px;
    }
}

.modal-sm {
    width: auto;
}

@media (min-width: 768px) {
    .modal-sm {
        width: 300px;
    }
}

.modal-content {
    position: relative;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
    background-clip: padding-box;
    outline: 0;
}

.modal-header {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    border-radius: 12px 12px 0 0;
}

.modal-header::after {
    content: "";
    display: table;
    clear: both;
}

.modal-header .close {
    margin: -2px;
    font-size: 29px;
}

.modal-title {
    margin: 0 0 -5px 0;
    line-height: var(--bs-line-height);
    color: #c5c5c5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 18px;
    font-weight: 500;
}

.modal-body {
    position: relative;
    padding: 15px;
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}

.modal-footer::after {
    content: "";
    display: table;
    clear: both;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background: #000;
}

.modal-backdrop.in {
    opacity: .5;
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity .15s linear;
}

.modal-open {
    overflow: hidden;
}


/* ---- Labels / Badges ---- */

.label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 4px;
}

.label-default {
    background: #777;
}

.label-primary {
    background: var(--bs-primary);
}

.label-success {
    background: var(--bs-success);
}

.label-danger {
    background: var(--bs-danger);
}

.label-warning {
    background: var(--bs-warning);
}

.label-info {
    background: var(--bs-info);
}

.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background: #777;
    border-radius: 10px;
}


/* ---- Alerts ---- */

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--bs-radius);
}

.alert-success {
    color: #3d6b1e;
    background: #e8f5d6;
    border-color: #c8e6a5;
}

.alert-danger {
    color: #9b2d20;
    background: #fdecea;
    border-color: #f5c6bf;
}

.alert-warning {
    color: #8a6d3b;
    background: #fcf8e3;
    border-color: #faebcc;
}

.alert-info {
    color: #1e6a85;
    background: #daf0f7;
    border-color: #b0dce9;
}

.alert-default {
    color: #333;
    background: #f5f5f5;
    border-color: #ddd;
}

.alert-dismissible {
    padding-right: 35px;
}

.alert-dismissible .close {
    position: relative;
    top: -2px;
    right: -21px;
    color: inherit;
}


/* ---- Panels ---- */

.panel {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: calc(var(--bs-radius) - 1px);
    border-top-right-radius: calc(var(--bs-radius) - 1px);
}

.panel-body {
    padding: 15px;
}

.panel-body::after {
    content: "";
    display: table;
    clear: both;
}

.panel-footer {
    padding: 10px 15px;
    background: var(--bs-panel-bg);
    border-top: 1px solid var(--bs-border-color);
    border-bottom-left-radius: calc(var(--bs-radius) - 1px);
    border-bottom-right-radius: calc(var(--bs-radius) - 1px);
}

.panel-default>.panel-heading {
    color: #333;
    background: var(--bs-panel-bg);
    border-color: var(--bs-border-color);
}

.panel-success {
    border-color: #d6e9c6;
}

.panel-success>.panel-heading {
    color: #3c763d;
    background: #dff0d8;
    border-color: #d6e9c6;
}

.panel-danger {
    border-color: #ebccd1;
}

.panel-danger>.panel-heading {
    color: #a94442;
    background: #f2dede;
    border-color: #ebccd1;
}

.panel-info {
    border-color: #bce8f1;
}

.panel-info>.panel-heading {
    color: #31708f;
    background: #d9edf7;
    border-color: #bce8f1;
}

.panel-warning {
    border-color: #faebcc;
}

.panel-warning>.panel-heading {
    color: #8a6d3b;
    background: #fcf8e3;
    border-color: #faebcc;
}

.panel-login {
    border: none;
    box-shadow: none;
}

.panel-group {
    margin-bottom: 20px;
}

.panel-group .panel {
    margin-bottom: 0;
    border-radius: var(--bs-radius);
}

.panel-group .panel+.panel {
    margin-top: 5px;
}


/* Sonderfarben-Panel im Artikel-Modal: leichte Eckenrundung */

.spotcolors-panel {
    border-radius: var(--bs-radius);
    overflow: hidden;
}

.spotcolors-panel-heading {
    border-top-left-radius: var(--bs-radius);
    border-top-right-radius: var(--bs-radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.spotcolors-panel-body {
    padding: 10px 15px;
}

.spotcolors-panel .table {
    margin-bottom: 0;
}

.spotcolors-panel .table>tbody>tr>td {
    padding: 6px 0;
    border-top: 1px solid var(--bs-border-color);
}

.spotcolors-panel .table>tbody>tr:first-child>td {
    border-top: none;
}


/* ---- Well ---- */

.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border: 1px solid #e3e3e3;
    border-radius: var(--bs-radius);
}


/* ---- Jumbotron ---- */

.jumbotron {
    padding: 30px 15px;
    margin-bottom: 30px;
    color: inherit;
    background: #f0f0f0;
    border-radius: 12px;
}

.jumbotron h1,
.jumbotron .h1 {
    color: inherit;
}

.jumbotron p {
    margin-bottom: 15px;
    font-size: 21px;
    font-weight: 200;
}

@media (min-width: 768px) {
    .jumbotron {
        padding: 48px 60px;
    }
}


/* ---- List Group ---- */

.list-group {
    padding-left: 0;
    margin-bottom: 20px;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 10px 15px;
    margin-bottom: -1px;
    background: #fff;
    border: 1px solid #ddd;
}

.list-group-item:first-child {
    border-top-left-radius: var(--bs-radius);
    border-top-right-radius: var(--bs-radius);
}

.list-group-item:last-child {
    margin-bottom: 0;
    border-bottom-left-radius: var(--bs-radius);
    border-bottom-right-radius: var(--bs-radius);
}

.list-group-item-heading {
    margin-top: 0;
    margin-bottom: 5px;
}

.list-group-item-text {
    margin-bottom: 0;
    line-height: 1.3;
}


/* ---- Card (BS4 compat) ---- */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: var(--bs-radius);
    margin-bottom: 20px;
}

.card-body {
    flex: 1 1 auto;
    padding: 15px;
}

.card-header {
    padding: 10px 15px;
    background: rgba(0, 0, 0, .03);
    border-bottom: 1px solid rgba(0, 0, 0, .125);
}

.card-footer {
    padding: 10px 15px;
    background: rgba(0, 0, 0, .03);
    border-top: 1px solid rgba(0, 0, 0, .125);
}


/* ---- Tables ---- */

.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.table>thead>tr>th,
.table>tbody>tr>td {
    padding: 8px;
    line-height: var(--bs-line-height);
    vertical-align: top;
    border-top: 1px solid var(--bs-border-color);
}

.table>thead>tr>th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--bs-border-color);
    font-weight: 700;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background: #f9f9f9;
}

.table-hover>tbody>tr:hover {
    background: #f5f5f5;
}

.table-condensed>thead>tr>th,
.table-condensed>tbody>tr>td {
    padding: 5px;
}

.table-bordered {
    border: 1px solid var(--bs-border-color);
}

.table-bordered>thead>tr>th,
.table-bordered>tbody>tr>td {
    border: 1px solid var(--bs-border-color);
}

.table-responsive {
    min-height: .01%;
    overflow-x: auto;
}


/* Tabellenzeilen: lesbare Texte auch bei danger/success Klassen */

.table>tbody>tr.danger,
.table>tbody>tr.success {
    color: var(--bs-text-color);
}

.table>tbody>tr.danger>td,
.table>tbody>tr.success>td {
    color: var(--bs-text-color);
}


/* Warenkorb Header */

#headerLeiste {
    position: sticky;
    top: 52px;
    /* Direkt unter der topNav (height: 52px) */
    z-index: 1020;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    padding-bottom: 6px;
    /* Abstand zur folgenden Liste/Tabelle, verhindert Überlappung */
}


/* Headline-Zeile: Höhe sichern, damit float-Spalten die erste Zeile nicht zerschießen */

#headerLeiste>.row {
    display: flow-root;
    /* Block-Formatting-Context ohne overflow-Clipping */
    min-height: 1px;
}

#headerLeiste h1 {
    font-size: 20px;
    margin: 8px 0 4px;
    line-height: 1.35;
    overflow: visible;
    /* Zähler (z. B. "95") nicht abschneiden */
}

#headerLeiste .btn-xs {
    font-size: 11px;
}


/* Artikel hinzufügen-Dropdown: einheitlich wie Mobile (größere Klickflächen) */

#headerLeiste #addArticleButton .dropdown-menu {
    right: 0;
    left: auto;
    border-radius: var(--bs-radius);
    padding: 6px 0;
    margin-top: 4px;
}

#headerLeiste #addArticleButton .dropdown-menu>li>a {
    padding: 12px 16px;
    font-size: 15px;
}

.wk-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 6px;
}


/* Warenkorb-Draft Dropdown */

.wk-draft-menu {
    min-width: 220px;
    padding: 6px 0;
    margin-top: -1px !important;
    right: 0;
    left: auto;
    background: #fff;
    border-radius: var(--bs-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .06);
}

.wk-draft-item {
    display: flex;
    align-items: center;
}

.wk-draft-name {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: background .1s;
}

.wk-draft-name:hover {
    background: #f5f6f8;
    color: #111;
    text-decoration: none;
}

.wk-draft-name i {
    margin-right: 6px;
    color: #999;
}

.wk-draft-delete {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    border-radius: 4px;
    margin-right: 4px;
    transition: all .15s;
}

.wk-draft-delete:hover {
    color: var(--bs-danger);
    background: #fee;
}

.wk-article-nr {
    font-size: 11px;
    font-family: var(--bs-font-monospace);
    color: var(--bs-gray-600);
    text-transform: uppercase;
    width: 125px;
    word-break: break-all;
}

.wk-rabatt-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--bs-radius-pill);
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: #4a6a20;
    transition: background .15s;
}

.wk-rabatt-toggle:hover {
    background: #e6f0d9;
}

.wk-rabatt-toggle input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--bs-success);
}

.wk-rabatt-label {
    flex: 1;
}

.wk-rabatt-label .fa-check-circle {
    margin-right: 4px;
    color: var(--bs-success);
}

#topInfoLeiste {
    margin-top: 20px !important;
    font-size: 13px;
    line-height: 1.6;
    background: #fff;
    padding: 15px 5px;
    ;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#topInfoLeiste strong {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

#topInfoLeiste .col-xs-6 {
    padding-left: 15px;
    padding-right: 15px;
}

#topInfoLeiste .row {
    margin-bottom: 20px;
}

#topInfoLeiste .row:last-child {
    margin-bottom: 0;
}

#topInfoLeiste .da-header {
    margin-bottom: 8px;
}

#topInfoLeiste .machine {
    margin-top: 8px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    display: inline-block;
    font-size: 11px;
    color: #666;
}

#topInfoLeiste .parcel-dropdown {
    margin-top: 8px;
}

#deliveryAddressWarning {
    margin-top: 15px;
    margin-bottom: 0;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
}


/* Warenkorb Article Panels — flex rows */

.wk-items {
    border-top: 1px solid #eee;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 0;
    padding-right: 0;
}

.wkLine {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.wkLine:nth-child(odd) {
    background: #fafafa;
}

.wkLine:hover {
    background: #f5f9ff;
}

.wkLine .row {
    margin-top: 0px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.wkLine .row small {
    color: #888;
    font-size: 11px;
}

.wk-col-qty {
    width: 200px;
    flex-shrink: 0;
}

.wk-col-details {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.5;
    padding-right: 8px;
}

.wk-col-details strong {
    font-weight: 600;
    color: #222;
    display: block;
    margin-bottom: 4px;
}

.wk-col-details .label {
    margin-top: 8px;
    display: inline-block;
    font-size: 11px;
    padding: 4px 8px;
}

.wk-col-details small {
    display: block;
    margin-top: 6px;
}

.wk-col-preview {
    width: 25%;
    flex-shrink: 0;
    text-align: center;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -10px 0;
    max-height: 200px;
    overflow: hidden;
}

.wk-col-preview svg,
.wk-col-preview img {
    max-height: 180px;
    object-fit: contain;
}

.wk-col-price {
    width: 120px;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
    padding-right: 15px;
    box-sizing: border-box;
}

.wk-col-price h4 {
    margin: 0;
    font-size: 14px;
}

.wkLine .btn-danger {
    border-radius: var(--bs-radius-pill);
}

.wkLine .input-group {
    margin-bottom: 0;
}

.wkLine .input-group .form-control {
    height: 30px;
    font-size: 13px;
    padding: 4px 6px;
}

.wkLine .input-group-btn>.btn {
    height: 30px;
    padding: 4px 8px;
    margin: 0 !important;
    font-size: 12px;
}

.wkLine .refreshButton {
    margin-top: 4px;
    font-size: 11px;
    padding: 2px 6px;
}

.wkLine strong {
    color: #333;
    font-size: 13px;
}

.wkLine small {
    color: #888;
    font-size: 11px;
}

.wkLine .label {
    margin-top: 4px;
    display: inline-block;
    font-size: 10px;
}

.wkLine .wk-wicklung-label {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
    max-width: 100%;
}

.wkLine .rollPreview {
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.wkLine .rollPreview svg {
    max-width: 100%;
    height: 100%;
}

.wkLine .wk-edit-btn {
    padding: 2px 6px;
    font-size: 11px;
    margin-right: 4px;
}


/* Warenkorb Checkout — Bestellnummer + Zusammenfassung */

.wk-checkout {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.wk-checkout-left {
    padding-bottom: 15px;
}

.wk-checkout-left label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 4px;
}

.wk-checkout-left textarea.form-control {
    border-radius: var(--bs-radius);
    min-height: 70px;
    resize: vertical;
}

.wk-checkout-right {
    padding-bottom: 15px;
}

.wk-summary {
    margin-bottom: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    overflow: visible;
}

.wk-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-top: none;
    font-size: 13px;
    transition: background-color 0.15s ease;
    gap: 12px;
    position: relative;
    overflow: visible;
}

.wk-summary-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(to right, transparent, #e8e8e8 10%, #e8e8e8 90%, transparent);
}

.wk-summary-row:first-child {
    padding-top: 18px;
}

.wk-summary-row:last-child {
    padding-bottom: 18px;
}

.wk-summary-row>span:first-child {
    flex: 1;
    min-width: 0;
    color: #555;
    line-height: 1.5;
}

.wk-summary-val {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
    color: #333;
    font-size: 14px;
}

.wk-summary h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.wk-summary-row.wk-total {
    background: linear-gradient(to bottom, #f8f9fa, #fff);
    padding-top: 18px;
    padding-bottom: 18px;
}

.wk-summary-row.wk-total::after {
    display: none;
}

.wk-summary-row.wk-total>span:first-child {
    color: #222;
    font-weight: 600;
}

.wk-summary-row.wk-total .wk-summary-val {
    font-size: 18px;
    font-weight: 700;
    color: #83bc41;
}

.wk-summary-row.wk-shipping-row {
    align-items: flex-start;
}

.wk-summary-row.wk-shipping-row>span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wk-summary-row .parcel-dropdown {
    display: inline-block;
    margin-left: 4px;
    position: relative;
    z-index: 10;
}

.wk-summary-row .parcel-dropdown.dropup .dropdown-menu {
    position: absolute !important;
    bottom: 100% !important;
    top: auto !important;
    left: 0 !important;
    right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    z-index: 1050 !important;
    min-width: 200px;
}

.wk-summary-row .parcel-dropdown.dropup.open .dropdown-menu,
.wk-summary-row .parcel-dropdown.dropup.show .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wk-summary-row.wk-shipping-row {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.wk-summary-row.wk-shipping-row>span:first-child {
    position: relative;
    overflow: visible;
}

.wk-summary-row .parcel-selector {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    font-size: 11px;
    color: #555;
    text-decoration: none;
    transition: all 0.15s ease;
}

.wk-summary-row .parcel-selector:hover {
    background: #f0f0f0;
    border-color: #83bc41;
    color: #333;
    text-decoration: none;
}

.wk-summary-row .parcelLogo {
    max-height: 14px;
    width: auto;
}

.wk-summary-row .parcel-selector-text {
    font-size: 11px;
}


/* Warenkorb Reassurance — trust text before order button */

.wk-reassurance {
    margin: 0 0 15px 0;
    padding: 12px 16px;
    background: rgba(131, 188, 65, 0.08);
    border-radius: var(--bs-radius);
    font-size: 13px;
    color: #4a6a20;
    line-height: 1.5;
    border: 1px solid rgba(131, 188, 65, 0.2);
}

.wk-reassurance p {
    margin: 0 0 4px;
}

.wk-reassurance p:last-child {
    margin-bottom: 0;
}

.wk-reassurance .fa-check-circle {
    margin-right: 4px;
    color: #83bc41;
}

.wk-reassurance .wk-legal {
    font-size: 12px;
    color: #777;
    margin-top: 6px;
}

.wk-reassurance .wk-legal a {
    color: #555;
    text-decoration: none;
}


/* Lieferadresse Header — label left, buttons right */

.da-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.da-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.da-actions .btn-xs {
    min-height: 26px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bs-radius-pill);
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font-size: 11px;
    line-height: 1;
}

.da-actions .btn-xs.da-icon-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
}

.da-actions .da-change-btn {
    gap: 5px;
    white-space: nowrap;
    font-size: 12px;
    padding: 0 10px;
}

.da-actions .da-change-btn .caret {
    margin-left: 0;
}

.da-actions .btn-xs:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

@media (max-width: 640px) {
    .da-header {
        align-items: flex-start;
    }
}


/* Lieferadresse Dropdown — modern redesign */

.da-dropdown .dropdown-menu {
    min-width: 280px;
    padding: 6px 0;
    border-radius: var(--bs-radius);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.da-dropdown .dropdown-menu .da-search-wrap {
    padding: 6px 10px;
}

.da-dropdown .dropdown-menu .da-search-wrap .da-search-input {
    height: 30px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: var(--bs-radius);
}

.da-dropdown .dropdown-menu .dropdown-header {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #999;
    padding: 8px 14px 4px;
    margin-top: 4px;
}

.da-dropdown .dropdown-menu .dropdown-header:first-child {
    margin-top: 0;
}

.da-dropdown .dropdown-menu>li>a {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background .1s;
}

.da-dropdown .dropdown-menu>li>a:hover {
    background: #f5f7fa;
    text-decoration: none;
}

.da-dropdown .dropdown-menu>li>a .optText {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 6px;
}

.da-dropdown .dropdown-menu>li>a .optText .da-opt-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.da-dropdown .dropdown-menu>li>a .optText .da-opt-title {
    display: block;
    font-weight: 500;
    line-height: 1.25;
    color: #2f3339;
}

.da-dropdown .dropdown-menu>li>a .optText .da-machine-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef5e2;
    color: #4a6a20;
    border: 1px solid #d7e8b8;
    font-size: 11px;
    line-height: 1.2;
}

.da-dropdown .dropdown-menu>li>a .optText .da-machine-pill .fa {
    font-size: 10px;
    opacity: .8;
}

.da-dropdown .dropdown-menu>li>a .optText .da-machine-pill .da-machine-label {
    opacity: .8;
}

.da-dropdown .dropdown-menu>li>a .optText .da-machine-pill strong {
    font-weight: 600;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.da-dropdown .dropdown-menu>li>a .optText .fa-home {
    font-size: 13px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    color: var(--bs-success);
}

.da-dropdown .dropdown-menu>li>a .optText .fa-home.text-light {
    color: #ccc;
}

.da-dropdown .dropdown-menu>li>a .optText .pull-right {
    float: none !important;
    margin-left: auto;
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .15s;
    font-size: 11px;
}

.da-dropdown .dropdown-menu>li>a:hover .pull-right {
    opacity: 1;
}

.da-dropdown .dropdown-menu .divider {
    margin: 4px 0;
    background: #eee;
}

.da-dropdown .dropdown-menu>li:last-child>a {
    font-size: 12px;
    color: #888;
}

.da-dropdown .dropdown-menu>li:last-child>a:hover {
    color: var(--bs-success);
}

.da-dropdown .dropdown-menu>li.da-manage {
    padding: 6px 10px 4px;
}

.da-dropdown .dropdown-menu>li.da-manage>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid #d8dee6;
    border-radius: var(--bs-radius-pill);
    background: #fff;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.da-dropdown .dropdown-menu>li.da-manage>a:hover {
    background: #f5f7fa;
    border-color: #bcc7d4;
    color: #2f3339;
}

.machine {
    clear: both;
    margin-top: 6px;
}


/* Liefertermin: Label + Datum-Dropdown + "Nicht früher" in einer Zeile */

.wk-field-label {
    display: block;
    margin: 14px 0 4px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.wk-liefertermin-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wk-liefertermin-row>.input-group {
    flex: 1;
    min-width: 0;
}

.wk-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 400;
    color: #555;
    white-space: nowrap;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: var(--bs-radius-pill);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.wk-toggle-label:hover {
    background: #eee;
    border-color: #ccc;
}

.wk-toggle-label input[type="checkbox"] {
    margin: 0;
    accent-color: var(--bs-success);
}

.wk-toggle-label .fa-info-circle {
    color: #aaa;
    font-size: 12px;
}


/* Rollenkern/Durchmesser Felder im Warenkorb */

#thisRollenkern {
    font-size: 14px;
}

#thisRollendm {
    font-size: 14px;
    text-align: right;
    padding: 6px 6px;
    -moz-appearance: textfield;
    appearance: textfield;
}

#thisRollendm::-webkit-outer-spin-button,
#thisRollendm::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}


/* Max. Ø soll visuell gleich groß wie Rollenkern sein */

#topInfoLeiste #thisRollenkern,
#topInfoLeiste #thisRollendm,
#topInfoLeiste #thisRollendm+.input-group-append .input-group-text {
    height: var(--bs-input-height);
}

#topInfoLeiste #thisRollendm+.input-group-append .input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Selectpicker: auch im geöffneten/aktiven Zustand pill-rund lassen */

.bootstrap-select>.dropdown-toggle,
.bootstrap-select.open>.dropdown-toggle,
.bootstrap-select.show>.dropdown-toggle,
.bootstrap-select>.dropdown-toggle:focus,
.bootstrap-select>.dropdown-toggle:active {
    border-radius: var(--bs-radius-pill) !important;
}

.bootstrap-select .dropdown-menu {
    border-radius: 0 0 10px 10px;
}

@media (max-width: 767px) {
    .table-responsive {
        width: 100%;
        margin-bottom: 15px;
        overflow-y: hidden;
        border: 1px solid var(--bs-border-color);
    }
}


/* ---- Navbar ---- */


/* ============================================================
   Top Navigation — First Class
   ============================================================ */

#topNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 52px;
    background: var(--color-nav-bg, #1e2028);
    border: none;
    box-shadow: 0 1px 12px rgba(0, 0, 0, .18);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 20px;
    max-width: 100%;
}


/* Brand / Logo */

.nav-brand {
    display: flex;
    align-items: center;
    margin-right: 24px;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    opacity: .9;
    transition: opacity .15s;
}

.nav-brand:hover {
    opacity: 1;
}

.nav-brand img {
    height: 22px;
    width: auto;
}


/* Left links */

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .6);
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
}

.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.nav-link i {
    font-size: 13px;
}


/* Badge on nav links */

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 600;
    background: var(--bs-success);
    color: #fff;
    border-radius: 999px;
    line-height: 1;
}


/* Right actions */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 15px;
    color: rgba(255, 255, 255, .55);
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease;
    position: relative;
}

.nav-action:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    text-decoration: none;
}

/* Desktop: Aufträge-Action + Burger-Artikel verstecken (nach .nav-action, damit Spezifität stimmt) */

.nav-action-orders {
    display: none;
}

.nav-burger-articles {
    display: none;
}


/* Cart: abgerundeter Button wie andere nav-actions */

.nav-cart {
    color: #fff;
    background: var(--bs-success);
    width: auto;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--bs-radius-pill);
    font-size: 15px;
    gap: 6px;
    margin-right: 0;
}

.nav-cart:hover {
    background: var(--color-primary-dark, #6fa033);
    color: #fff;
    text-decoration: none;
}

.nav-cart-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    background: #fff;
    color: var(--bs-success);
    border-radius: 999px;
    text-align: center;
}


/* Dropdown menus */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    padding: 6px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15), 0 0 0 1px rgba(0, 0, 0, .05);
    z-index: 1050;
    margin-top: 6px;
}

.nav-dropdown-offset-up {
    margin-top: -8px;
}

.nav-dropdown-right {
    left: auto;
    right: 0;
    transform: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-header {
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.nav-dropdown-item {
    display: block;
    padding: 9px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: background .1s;
}

.nav-dropdown-item:hover {
    background: #f5f6f8;
    color: #111;
    text-decoration: none;
}

.nav-dropdown-item i {
    width: 20px;
    margin-right: 6px;
    color: #999;
}

.nav-dropdown-divider {
    height: 1px;
    margin: 4px 12px;
    background: #eee;
}


/* Burger Menu */

.nav-burger {
    position: relative;
}

.nav-burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s;
}

.nav-burger-btn:hover {
    background: rgba(255, 255, 255, .1);
}

.nav-burger-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, .7);
    border-radius: 1px;
    transition: all .25s ease;
}


/* X animation when open */

.nav-burger.open .nav-burger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-burger.open .nav-burger-bar:nth-child(2) {
    opacity: 0;
}

.nav-burger.open .nav-burger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* Panel */

.nav-burger-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    padding: 6px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15), 0 0 0 1px rgba(0, 0, 0, .05);
    z-index: 1050;
}

.nav-burger.open .nav-burger-panel {
    display: block;
}

.nav-burger-section {
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.nav-burger-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: background .1s;
}

.nav-burger-item:hover {
    background: #f5f6f8;
    color: #111;
    text-decoration: none;
}

.nav-burger-item i {
    width: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.nav-burger-divider {
    height: 1px;
    margin: 4px 12px;
    background: #eee;
}


/* Footer with customer name + logout */

.nav-burger-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    margin-top: 4px;
    border-top: 1px solid #eee;
}

.nav-burger-customer {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.nav-burger-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 14px;
    color: #999;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}

.nav-burger-logout:hover {
    background: #fee;
    color: var(--bs-danger);
}


/* Tablet / schmaler Desktop */

@media (max-width: 900px) {
    /* Nav-Links: nur Icons */
    /* Hinzufügen-Button: nur Icon, kein Text */
    #addArticleButton .hidden-xs {
        display: none !important;
    }
    #addArticleButton .caret {
        display: none;
    }
}


/* Mobile nav */

@media (max-width: 640px) {
    .nav-link span:not(.nav-badge) {
        display: none;
    }
    .nav-link {
        padding: 7px 10px;
    }
    .nav-inner {
        padding: 0 12px;
    }
    .nav-brand {
        margin-right: 12px;
    }
    .nav-links {
        gap: 2px;
    }
    .nav-link {
        font-size: 14px;
    }
    /* Warenkorb-Button: Abstand zum Burger-Menü sicherstellen */
    .nav-actions {
        gap: 4px;
        /* Mehr Abstand zwischen Warenkorb und Burger */
    }
    .nav-cart {
        padding: 0 12px;
        /* Kompakter auf Mobile */
        margin-right: 0;
        /* Kein negativer Margin */
        border-radius: var(--bs-radius-pill);
        /* Abgerundet auch auf Mobile */
    }
    /* Burger panel: full width below nav */
    .nav-burger-panel {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        min-width: 100%;
        border-radius: 0;
        box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
        padding-bottom: 0;
    }
    .nav-burger-item {
        padding: 12px 16px;
        font-size: 14px;
    }
    .nav-burger-footer {
        padding: 10px 16px;
    }
}


/* Legacy compat — Bootstrap navbar for installations not yet on new nav */

#topNav.navbar {
    height: auto;
}

.navbar {
    min-height: 52px;
    margin-bottom: 0;
    border: none;
}

.navbar-inverse {
    background: var(--color-nav-bg, #1e2028);
    box-shadow: 0 1px 12px rgba(0, 0, 0, .18);
}

.navbar-fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar>.container-fluid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.navbar-header {
    display: flex;
    align-items: center;
    min-height: 52px;
}

.navbar-always-text {
    display: inline;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar .navbar-collapse {
    display: flex !important;
    flex: 1;
    align-items: center;
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav>li>a {
    color: rgba(255, 255, 255, .6);
    padding: 15px 12px;
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: color .15s;
}

.navbar-nav>li>a:hover {
    color: #fff;
}

.navbar-right {
    margin-left: auto;
}

.navbar-toggle {
    display: none;
}

.navbar-inverse .badge {
    background: #fff;
    color: var(--bs-success);
}


/* Always-visible nav items — full navbar height */

.navbar-always-item {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 52px;
    padding: 0 14px;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s, color .15s;
}

.navbar-always-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
}

.navbar-always-item .badge {
    margin-left: 4px;
}


/* Warenkorb: ganz rechts, volle Höhe, grüner Hintergrund */

.navbar-always-cart {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 52px;
    padding: 0 18px;
    color: #fff;
    background: var(--bs-success);
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
    transition: background .15s;
}

.navbar-always-cart:hover {
    background: var(--color-primary-dark, #6fa033);
    color: #fff;
    text-decoration: none;
}

.navbar-always-cart .badge {
    margin-left: 4px;
}


/* Desktop: Mobile-only Items ausblenden, Desktop-Items zeigen */

.nav-mobile-item,
.nav-mobile-divider {
    display: none;
}

.navbar-always-item {
    display: none;
}

.nav-desktop-item {
    display: list-item;
}


/* ---- Mobile navbar ---- */

@media (max-width: 640px) {
    /* Warenkorb bis zum Rand */
    .navbar>.container-fluid {
        padding-right: 0;
    }
    /* Header volle Breite für margin-left:auto */
    .navbar-header {
        flex: 1;
    }
    /* Mobile: always-items zeigen, Desktop-Items/Dropdown ausblenden */
    .navbar-always-item {
        display: flex;
    }
    .nav-desktop-item {
        display: none !important;
    }
    .nav-desktop-menu {
        display: none !important;
    }
    .nav-mobile-item {
        display: list-item;
    }
    .nav-mobile-divider {
        display: list-item;
        border-top: 1px solid rgba(255, 255, 255, .12);
        margin: 4px 0;
    }
    .navbar-nav>li>a {
        padding: 12px 15px;
        font-size: 14px;
    }
    /* Always-visible: kompakter auf Mobile */
    .navbar-always-item {
        padding: 0 10px;
    }
    .navbar-always-cart {
        padding: 0 14px;
    }
    /* Text neben Icons ausblenden auf schmalen Screens */
    .navbar-always-text {
        display: none;
    }
    /* Hamburger button */
    .navbar-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        background: none;
        border: none;
        width: 40px;
        height: 40px;
        padding: 0;
        cursor: pointer;
        margin-left: 0;
        position: relative;
        z-index: 2;
    }
    .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transition: transform .25s ease, opacity .2s ease;
        margin: 3px 0;
    }
    /* Hamburger → X animation */
    .nav-open .navbar-toggle .icon-bar:nth-child(2) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .nav-open .navbar-toggle .icon-bar:nth-child(3) {
        opacity: 0;
    }
    .nav-open .navbar-toggle .icon-bar:nth-child(4) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    /* Collapse panel: hidden by default */
    .navbar .navbar-collapse {
        display: block;
        flex: 0 0 100%;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .navbar.nav-open .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }
    .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 6px 0;
    }
    .navbar-collapse .navbar-nav>li>a {
        border-bottom: 1px solid rgba(255, 255, 255, .06);
        color: rgba(255, 255, 255, .8);
    }
    .navbar-collapse .navbar-nav>li>a:hover {
        background: rgba(255, 255, 255, .08);
        color: #fff;
    }
    .navbar-collapse .navbar-nav>li>a .fa {
        width: 22px;
        text-align: center;
        margin-right: 6px;
        opacity: .6;
    }
    /* Flat-Items im Burger: Divider + Section-Header */
    .navbar-nav>li.divider {
        border-top: 1px solid rgba(255, 255, 255, .1);
        margin: 4px 0;
        padding: 0;
    }
    .navbar-nav>li.dropdown-header {
        padding: 10px 15px 4px;
        font-size: 11px;
        color: rgba(255, 255, 255, .4);
        text-transform: uppercase;
        letter-spacing: .5px;
    }
    /* Backdrop overlay */
    .navbar.nav-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, .35);
        z-index: -1;
        animation: fadeIn .2s ease;
    }
}


/* Text neben Icons einblenden wenn genug Platz */

@media (min-width: 480px) and (max-width: 640px) {
    .navbar-always-text {
        display: inline;
    }
}

.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container-fluid::after {
    content: "";
    display: table;
    clear: both;
}


/* ---- Nav base ---- */

.nav {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav::after {
    content: "";
    display: table;
    clear: both;
}

.nav>li {
    position: relative;
    display: block;
}

.nav>li>a {
    position: relative;
    display: block;
    padding: 10px 15px;
}

.nav>li>a:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, .1);
}

.nav-pills>li {
    float: left;
}

.nav-pills>li>a {
    border-radius: var(--bs-radius-pill);
}

.nav-pills>li.active>a {
    color: #fff;
    background: var(--bs-primary);
}


/* ---- Nav Tabs ---- */

.nav-tabs {
    border-bottom: 1px solid var(--bs-border-color);
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-tabs::after {
    content: "";
    display: table;
    clear: both;
}

.nav-tabs>li {
    float: left;
    margin-bottom: -1px;
}

.nav-tabs>li>a {
    margin-right: 2px;
    line-height: var(--bs-line-height);
    border: 1px solid transparent;
    border-radius: var(--bs-radius) var(--bs-radius) 0 0;
    padding: 10px 15px;
    display: block;
    color: var(--bs-link-color);
    transition: color .15s, background .15s;
}

.nav-tabs>li>a:hover {
    border-color: var(--bs-gray-lighter) var(--bs-gray-lighter) var(--bs-border-color);
    background: var(--bs-gray-lighter);
}

.nav-tabs>li.active>a,
.nav-tabs>li.active>a:hover {
    color: #555;
    cursor: default;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-bottom-color: #fff;
}

.tab-content>.tab-pane {
    display: none;
}

.tab-content>.tab-pane.active {
    display: block;
}

.fade {
    opacity: 0;
    transition: opacity .15s linear;
}

.fade.in {
    opacity: 1;
}


/* ---- Dropdowns ---- */

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: var(--bs-font-size);
    text-align: left;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.dropdown.open>.dropdown-menu,
.open>.dropdown-menu {
    display: block;
}

.dropdown-menu>li>a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: var(--bs-line-height);
    color: #333;
    white-space: nowrap;
}

.dropdown-menu>li>a:hover {
    color: #262626;
    text-decoration: none;
    background: #f5f5f5;
}

.dropdown-menu .divider {
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
    background: #e5e5e5;
}

.dropdown-menu-right {
    right: 0;
    left: auto;
}

.dropdown-header {
    display: block;
    padding: 3px 20px;
    font-size: 12px;
    line-height: var(--bs-line-height);
    color: #777;
    white-space: nowrap;
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px dashed;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}


/* ---- Progress ---- */

.progress {
    height: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: var(--bs-radius-pill);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
}

.progress-bar {
    float: left;
    width: 0;
    height: 100%;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background: var(--bs-primary);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
    transition: width .6s ease;
}

.progress-bar-success {
    background: var(--bs-success);
}

.progress-bar-warning {
    background: var(--bs-warning);
}

.progress-bar-danger {
    background: var(--bs-danger);
}

.progress-bar-info {
    background: var(--bs-info);
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
}

.progress-bar-animated,
.progress-bar-striped.active {
    animation: progress-bar-stripes 2s linear infinite;
}

@keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }
    to {
        background-position: 0 0;
    }
}


/* ---- Close Button ---- */

.close {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .2;
    filter: alpha(opacity=20);
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    appearance: none;
}

.close:hover {
    opacity: .5;
}


/* ---- Text Utilities ---- */

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

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

.text-primary {
    color: var(--bs-primary);
}

.text-success {
    color: #3c763d;
}

.text-danger {
    color: var(--bs-danger);
}

.text-warning {
    color: #8a6d3b;
}

.text-info {
    color: #31708f;
}

.text-white {
    color: #fff !important;
}


/* ---- Background Utilities ---- */

.bg-success {
    background-color: #f0f7e6;
}

.bg-danger {
    background-color: #f2dede;
}

.bg-warning {
    background-color: #fcf8e3;
}

.bg-info {
    background-color: #d9edf7;
}

.bg-alert {
    background-color: #fcf8e3;
}

.bg-white {
    background-color: #fff;
}

.bg-secondary {
    background-color: #6c757d;
    color: #fff;
}

.bg-light {
    background-color: #f8f9fa;
}

.bg-dark {
    background-color: #343a40;
    color: #fff;
}


/* ---- Layout Utilities ---- */

.pull-left {
    float: left !important;
}

.pull-right {
    float: right !important;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.hidden {
    display: none !important;
}

.hidden-xs {
    display: none !important;
}

@media (min-width: 768px) {
    .hidden-xs {
        display: block !important;
    }
    .input-group-addon.hidden-xs {
        display: flex !important;
    }
}

.hidden-sm {
    display: block;
}

@media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm {
        display: none !important;
    }
}

.visible-xs {
    display: none !important;
}

@media (max-width: 767px) {
    .visible-xs {
        display: block !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* BS4 float utilities */

.float-left {
    float: left !important;
}

.float-right {
    float: right !important;
}

.float-none {
    float: none !important;
}


/* BS4 spacing utilities (subset used in login) */

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: .25rem !important;
}

.mt-2 {
    margin-top: .5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: .25rem !important;
}

.mb-2 {
    margin-bottom: .5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.my-2 {
    margin-top: .5rem !important;
    margin-bottom: .5rem !important;
}

.my-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: .25rem !important;
}

.p-2 {
    padding: .5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.px-2 {
    padding-left: .5rem !important;
    padding-right: .5rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-2 {
    padding-top: .5rem !important;
    padding-bottom: .5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}


/* BS4 col-12 */

.col-12 {
    width: 100%;
    float: left;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
    min-height: 1px;
}


/* Responsive images */

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.img-thumbnail {
    display: inline-block;
    max-width: 100%;
    height: auto;
    padding: 4px;
    line-height: var(--bs-line-height);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--bs-radius);
}


/* Collapse (generic) */

.collapse {
    display: none;
}

.collapse.in {
    display: block;
}


/* ---- Misc ---- */

.small,
small {
    font-size: 85%;
}

.small2 {
    font-size: 80%;
    color: var(--bs-gray-light);
}

.lead {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid var(--bs-gray-lighter);
}

.help-block {
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
    color: var(--bs-gray-light);
}

.borderblock {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-radius);
    padding: 15px;
    margin-bottom: 15px;
}


/* Express-Select: hide prepend icon (option data-content already has the correct icon) */

.input-group:has(.express-select)>.input-group-prepend {
    display: none;
}

.input-group:has(.express-select)>.vs-wrapper .vs-btn {
    border-radius: var(--bs-radius-pill);
    border-left: 1px solid var(--bs-input-border);
}


/* Flags: no border, no padding, top-aligned */

.flag-icon {
    border: none !important;
    padding: 0 !important;
    outline: none;
    box-shadow: none;
    vertical-align: top;
}

.language {
    cursor: pointer;
    height: 12px;
    width: auto;
    display: inline-block;
}

.language:hover {
    opacity: .7;
}


/* VanillaSelect only-child in input-group — full pill radius */

.input-group>.vs-wrapper:only-child .vs-btn {
    border-radius: var(--bs-radius-pill);
}


/* Plain select only-child in input-group — full pill radius */

.input-group>.form-control:only-child {
    border-radius: var(--bs-radius-pill);
}


/* Footer: text prominent, links subtle */

.footer-nav .navbar-text {
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    white-space: nowrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, .4);
}

.footer-nav a:hover {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
}

.footer-nav .language {
    opacity: 0.5;
    transition: opacity .15s;
}

.footer-nav .language:hover {
    opacity: 1;
}

.footer-nav .unit-seg {
    opacity: 0.7;
}

.footer-nav .unit-seg:hover {
    opacity: 1;
}


/* ---- Tooltip (vanilla) ---- */

.portal-tooltip {
    position: absolute;
    z-index: 1070;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #fff;
    background: rgba(0, 0, 0, 0.9);
    border-radius: var(--bs-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    white-space: normal;
    max-width: 300px;
    word-wrap: break-word;
}


/* ---- Popover (vanilla) ---- */

.portal-popover {
    position: absolute;
    z-index: 1060;
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 6px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    max-width: 276px;
}

.portal-popover-title {
    font-weight: 600;
    margin: 0 0 5px;
}


/* Winding-Icon in VanillaSelect: image left, text right — no wrapping below image */

.vs-option:has(.winding-icon),
.vs-btn-content:has(.winding-icon) {
    display: flex;
    align-items: center;
    gap: 8px;
}

.winding-icon {
    flex-shrink: 0;
}


/* Parcel service selector — compact inline pill */

.parcel-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: var(--bs-radius-pill);
    background: #fff;
    cursor: pointer;
    text-decoration: none !important;
    color: #555;
    font-size: 12px;
    transition: border-color .15s, box-shadow .15s;
}

.parcel-selector:hover {
    border-color: #aaa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    text-decoration: none;
    color: #333;
}

.parcel-selector .parcelLogo {
    height: 16px;
    width: auto;
    flex-shrink: 0;
}

.parcel-selector .parcel-selector-text {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parcel-selector .caret {
    opacity: .4;
    font-size: 10px;
}


/* Legacy pill fallback */

.parcel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--bs-input-border);
    border-radius: var(--bs-radius-pill);
    background: #fff;
    cursor: pointer;
    text-decoration: none !important;
    color: #333;
    transition: border-color .15s, box-shadow .15s;
}

.parcel-btn:hover {
    border-color: #aaa;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.parcel-btn .parcelLogo {
    height: 18px;
    width: auto;
}

.parcel-btn .caret {
    opacity: .5;
}

.parcel-dropdown .dropdown-menu>li>a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
}

.parcel-dropdown .dropdown-menu .parcelLogo {
    height: 18px;
    width: auto;
}


/* Wicklung VanillaSelect: compact icon in button so text fits */

.vs-btn .winding-icon {
    height: 14px !important;
    width: 28px !important;
    margin: -1px 0;
    object-fit: contain;
}


/* VanillaSelect + calc-unit-seg: see /assets/css/vanillaselect.css */


/* ================================================
   ANIMATIONEN & TRANSITIONS
   ================================================ */


/* Globale Transition-Defaults (non-VS elements; VS transitions in vanillaselect.css) */

.btn,
.form-control,
.nav-link,
a {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}


/* Tooltip Animation */

.portal-tooltip {
    animation: tooltipFadeIn 0.15s ease forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}


/* Modal Animation */

.modal {
    transition: opacity 0.25s ease;
}

.modal.in {
    opacity: 1;
}

.modal .modal-dialog {
    transform: translateY(-30px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.modal.in .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

.modal-backdrop {
    transition: opacity 0.2s ease;
}

.modal-backdrop.in {
    opacity: 0.5;
}


/* Content Container Transitions */

#contentContainer {
    margin-top: 0;
    transition: opacity 0.12s ease-out, transform 0.12s ease-out;
    min-height: 200px;
}

#contentContainer.page-loading {
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
}

#contentContainer.page-loaded {
    animation: contentFadeIn 0.18s ease-out;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Spinner/Loader - schicker Top-Bar im YouTube/GitHub-Stil */


/* ---- Loader: YouTube/GitHub-Style ---- */

.loader {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 9999;
    overflow: hidden;
}

.loader::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--bs-success, #93c024);
    box-shadow: 0 0 8px rgba(147, 192, 36, .4), 0 0 2px rgba(147, 192, 36, .3);
    animation: loaderGrow 2.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.loader::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
    animation: loaderShimmer 2.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.loader.active,
.loader[style*="display: block"],
.loader[style*="display:block"] {
    display: block !important;
}

@keyframes loaderGrow {
    0% {
        left: 0;
        width: 0;
    }
    25% {
        left: 0;
        width: 55%;
    }
    50% {
        left: 30%;
        width: 50%;
    }
    75% {
        left: 70%;
        width: 30%;
    }
    100% {
        left: 100%;
        width: 0;
    }
}

@keyframes loaderShimmer {
    0% {
        left: -30%;
    }
    100% {
        left: 130%;
    }
}


/* Tabellen-Zeilen Hover */

.table tbody tr {
    transition: background-color 0.15s ease;
}


/* Card/Panel Animation */

.panel,
.card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.panel:hover,
.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Alert Fade-In */

.alert {
    animation: alertSlideIn 0.3s ease;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Loading Spinner Pulse */

.fa-spinner {
    animation: spinnerRotate 1s linear infinite;
}

@keyframes spinnerRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* ---- Dropzone (Vanilla) ---- */

.dz-clickable {
    cursor: pointer;
}

.dz-drag-hover {
    border: 2px dashed var(--bs-success) !important;
    background: rgba(147, 192, 36, 0.1) !important;
}


/* Button Click Effect */

.btn:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}


/* Smooth Focus Outline */

.form-control:focus,
.vs-btn:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 192, 36, 0.25);
    transition: box-shadow 0.15s ease;
}


/* Selectpicker Option Hover + Keyboard Highlight */

.vs-option {
    transition: background-color 0.1s ease, color 0.1s ease;
}

.vs-option.vs-highlight {
    background-color: #e8e8e8;
}


/* PDF Upload Container */

[id^="canvas-container_"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden;
}


/* SVG-Preview: proportional im Container, bleibt scharf (2×-Auflösung wird runterskaliert) */

[id^="canvas-container_"]>svg.previewImage {
    width: 100%;
    height: auto;
    max-height: 100%;
    flex-shrink: 0;
}

[id^="canvas-container2_"] {
    background: #a3a5ab;
    border-radius: 0 0 0 8px;
}


/* Artikel-Modal: PDF-Upload-Feld gleiche Höhe wie linke Spalte (Settings/Colors) */

#modalContainer .modal-body form#articleContent>.row {
    display: flex;
    align-items: stretch;
}

#modalContainer .modal-body form#articleContent>.row>.col-sm-6:last-child {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#modalContainer .modal-body form#articleContent>.row>.col-sm-6:last-child [id^="canvas-container2_"] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#modalContainer .modal-body form#articleContent>.row>.col-sm-6:last-child [id^="canvas-container_"] {
    flex: 1;
    min-height: 0;
}

[id^="canvas-content_"] {
    text-align: center !important;
    color: #fff;
    padding: 20px;
    pointer-events: none;
    z-index: 1;
}


/* PDF Preview Canvas - versteckt bis PDF geladen */

.radHuh,
canvas.radHuh,
#pdf-preview_label,
#pdf-preview_pouch,
#pdf-preview_roll,
#pdf-preview_bbb {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}


/* Wenn PDF geladen ist (canvas hat width/height Attribute), wird es angezeigt */

canvas.radHuh[width][height] {
    display: block !important;
    width: auto !important;
    height: auto !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    z-index: 50;
}


/* PDF Upload File Input - muss unsichtbar bleiben */

[id^="canvas-container_"] input[type="file"] {
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
    z-index: 100 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}


/* Stylisches File Input */

input[type="file"]:not([style*="opacity"]) {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    color: #555;
    background: linear-gradient(to bottom, #fff 0%, #f5f5f5 100%);
    border: 2px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="file"]:not([style*="opacity"]):hover {
    border-color: #93c024;
    background: linear-gradient(to bottom, #fff 0%, #f0f7e6 100%);
}

input[type="file"]:not([style*="opacity"]):focus {
    outline: none;
    border-color: #93c024;
    box-shadow: 0 0 0 3px rgba(147, 192, 36, 0.2);
}

input[type="file"]:not([style*="opacity"])::file-selector-button {
    padding: 8px 16px;
    margin-right: 15px;
    background: #93c024;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

input[type="file"]:not([style*="opacity"])::file-selector-button:hover {
    background: #7da61e;
}


/* ---- Glyphicon → Font Awesome Mapping ---- */

.glyphicon {
    font-family: 'FontAwesome';
    font-style: normal;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.glyphicon::before {
    font-family: 'FontAwesome';
}

.glyphicon-search::before {
    content: '\f002';
}

.glyphicon-remove::before {
    content: '\f00d';
}

.glyphicon-ok::before {
    content: '\f00c';
}

.glyphicon-plus::before {
    content: '\f067';
}

.glyphicon-pencil::before {
    content: '\f040';
}

.glyphicon-trash::before {
    content: '\f1f8';
}

.glyphicon-cog::before {
    content: '\f013';
}

.glyphicon-upload::before {
    content: '\f093';
}

.glyphicon-download::before {
    content: '\f019';
}

.glyphicon-cloud-upload::before {
    content: '\f0ee';
}

.glyphicon-envelope::before {
    content: '\f0e0';
}

.glyphicon-exclamation-sign::before {
    content: '\f06a';
}

.glyphicon-remove-circle::before {
    content: '\f057';
}

.glyphicon-ban-circle::before {
    content: '\f05e';
}

.glyphicon-refresh::before {
    content: '\f021';
}

.glyphicon-sort-by-order::before {
    content: '\f162';
}

.glyphicon-sort-by-alphabet::before {
    content: '\f15d';
}

.glyphicon-file::before {
    content: '\f15b';
}

.glyphicon-minus::before {
    content: '\f068';
}

.glyphicon-user::before {
    content: '\f007';
}

.glyphicon-option-vertical::before {
    content: '\f142';
}

.glyphicon-warning-sign::before {
    content: '\f071';
}


/* ---- Artikel-Rows: Desktop-Grundlayout ---- */

.articlerow .articleInfoRow {
    display: flex;
    gap: 12px;
}

.articlerow .articleInfoCol {
    flex: 1 1 0;
    min-width: 0;
    padding-top: 8px;
    overflow-wrap: break-word;
}

.articlerow .articleActionsCol {
    flex: 1 1 0;
    min-width: 0;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* Warenkorb-Buttons: gleiche Höhe in btn-group */

.wkoutput .btn-group {
    display: inline-flex;
    align-items: stretch;
}

.wkoutput .btn-group>.btn {
    display: inline-flex;
    align-items: center;
}

.wkoutput .wk-remove-btn,
.wkoutput .wk-cart-label,
.articlerow .wkoutput .wk-remove-btn,
.articlerow .wkoutput .wk-cart-label {
    font-size: 12px;
    line-height: 1.2;
}

.wkoutput .wk-remove-btn {
    justify-content: center;
    min-width: 28px;
}

.wkoutput .wk-remove-x {
    display: inline-block;
    font-size: 1em;
    line-height: 1;
    font-weight: 600;
}


/* Warenkorb: Edit-Icon sauber mittig im runden Button */

.wk-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    vertical-align: middle;
    float: right;
    margin: 0 0 4px 8px;
}

.wk-edit-btn .fa {
    margin: 0;
    line-height: 1;
    font-size: 12px;
}

.wk-paymentmethod {
    background: #eee;
    padding: 8px 15px !important;
    margin: 0;
}


/* Artikel-Aktions-Dropdown */

.artAction-menu {
    min-width: 200px;
    padding: 6px 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .14) !important;
    border: 1px solid rgba(0, 0, 0, .08) !important;
}

.artAction-menu .dropdown-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    padding: 6px 16px 4px;
}

.artAction-menu>li>a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background .12s;
}

.artAction-menu>li>a:hover {
    background: #f5f7fa;
    text-decoration: none;
}

.artAction-menu>li>a .fa {
    width: 16px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.artAction-menu>li>a:hover .fa {
    color: #555;
}

.artAction-menu>li>a.text-danger {
    color: #d9534f;
}

.artAction-menu>li>a.text-danger .fa {
    color: #d9534f;
}

.artAction-menu>li>a.text-danger:hover {
    background: #fdf2f2;
}

.artAction-menu>li>a.disabled {
    color: #bbb !important;
    cursor: not-allowed;
    pointer-events: none;
}

.artAction-menu>li>a.disabled .fa {
    color: #ccc !important;
}

.artAction-menu .divider {
    margin: 4px 12px !important;
    background: #eee;
}

.editButtons .dropdown-toggle {
    background: #fff;
    border: 1px solid #ddd;
    color: #777;
    transition: border-color .15s, color .15s;
}

.editButtons .dropdown-toggle:hover {
    border-color: #bbb;
    color: #333;
}


/* Artikel-Thumbnails: min 150px, Höhe folgt dem Text */

.articlerow {
    display: flex;
    align-items: stretch;
    min-height: 150px;
}


/* Upload-Button-Overlay im Thumbnail */

.articlethumb {
    position: relative;
    display: flex;
    flex-direction: column;
}

.articlethumb .svgLink {
    position: relative;
    flex: 1;
}

.articlethumb .svgLink svg,
.articlethumb .svgLink img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.svgUploadBtn {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    padding: 5px 0;
    margin: 0 20px;
    background: #555;
    opacity: 0.5;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    z-index: 2;
    transition: background 0.2s;
}

.svgUploadBtn:hover {
    background: rgba(0, 0, 0, 0.3);
}


/* Dropzone Drag-Hover Feedback */

.articlethumb.dz-drag-hover {
    outline: 2px dashed #93C024;
    outline-offset: -2px;
}

.articlethumb.dz-drag-hover .svgUploadBtn {
    background: rgba(147, 192, 36, 0.7);
}


/* Upload-Progress-Overlay */

.svgUploadOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4;
    font-size: 20px;
}


/* ---- Mobile: Body-Offset für fixe Nav ---- */

@media (max-width: 767px) {
    body {
        padding-top: 52px;
    }
    #contentContainer {
        margin-top: 0;
    }
}


/* ================================================
   TABLET: Warenkorb-Konfigurationsbereich kompakter
   ================================================ */

@media (max-width: 900px) {
    #topInfoLeiste {
        margin-top: 8px !important;
        font-size: 12px;
        line-height: 1.4;
    }
    #topInfoLeiste strong {
        font-size: 12px;
    }
    #topInfoLeiste .col-xs-6 {
        padding: 0 8px;
    }
    /* Adressen-Spalten: col-sm-7 + col-sm-5 nebeneinander erzwingen */
    #topInfoLeiste>.col-sm-7,
    #topInfoLeiste>.row>.col-sm-7 {
        width: 58%;
        float: left;
    }
    #topInfoLeiste>.col-sm-5,
    #topInfoLeiste>.row>.col-sm-5 {
        width: 42%;
        float: left;
    }
    /* Wicklung + Rollenkern auf gleicher Zeile */
    #topInfoLeiste .form-group {
        margin-bottom: 6px;
    }
    #topInfoLeiste .control-label {
        font-size: 11px;
        margin-bottom: 2px;
    }
    #topInfoLeiste .form-control,
    #topInfoLeiste select.form-control {
        height: 30px;
        font-size: 12px;
        padding: 4px 6px;
    }
    #topInfoLeiste #thisRollenkern,
    #topInfoLeiste #thisRollendm {
        height: 30px;
        font-size: 12px;
    }
    #topInfoLeiste .input-group-addon,
    #topInfoLeiste .input-group-append .input-group-text {
        font-size: 11px;
        padding: 4px 5px;
        height: 30px;
        line-height: 22px;
    }
    /* Max.Ø-Eingabe im Tablet-Breakpoint: exakt gleiche Höhe wie Rollenkern-Select */
    #topInfoLeiste #thisRollenkern,
    #topInfoLeiste #thisRollendm,
    #topInfoLeiste #thisRollendm+.input-group-append .input-group-text {
        height: 36px !important;
        min-height: 36px !important;
        box-sizing: border-box;
    }
    #topInfoLeiste #thisRollendm+.input-group-append {
        height: 36px;
        min-height: 36px;
    }
    #topInfoLeiste #thisRollendm {
        padding-top: 6px;
        padding-bottom: 6px;
    }
    #topInfoLeiste #thisRollendm+.input-group-append .input-group-text {
        line-height: 1;
        padding-top: 0;
        padding-bottom: 0;
    }
    /* Lieferadresse: Maschine + Parcel kompakter */
    .machine {
        font-size: 11px;
    }
    .parcel-dropdown {
        font-size: 12px;
    }
    .parcelLogo {
        max-height: 20px;
    }
    /* Bevorzugte Produktion / Rabatt Toggle */
    .wk-rabatt-toggle {
        padding: 5px 12px;
        font-size: 12px;
    }
    .wk-rabatt-badge {
        padding: 3px 8px;
        font-size: 11px;
        min-width: 45px;
    }
    .wk-rabatt-badge .fa-gift {
        font-size: 10px;
    }
    .wk-rabatt-description {
        font-size: 11px;
    }
    /* Liefertermin-Zeile kompakter */
    .wk-liefertermin-row {
        display: flex;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }
    .wk-liefertermin-row .form-control {
        height: 30px;
        font-size: 12px;
    }
    .wk-liefertermin-row .input-group-addon {
        font-size: 11px;
        padding: 4px 6px;
    }
    /* topInfoLeiste auf Mobile */
    #topInfoLeiste {
        margin-top: 15px !important;
    }
    #topInfoLeiste .row {
        margin-bottom: 15px;
    }
    .wk-liefertermin-row label {
        font-size: 11px;
    }
    /* Express-Select */
    .express-select+.vs-wrapper .vs-btn {
        min-height: 30px;
        padding: 4px 10px;
        font-size: 12px;
    }
    /* Alert-Hinweise kompakter */
    #topInfoLeiste .alert,
    #deliveryAddressWarning {
        font-size: 12px;
        padding: 8px 10px;
        margin-bottom: 6px;
    }
    /* HeaderLeiste: direkt an Navi, volle Breite mit Padding, sticky */
    #headerLeiste {
        position: sticky;
        top: 52px;
        /* Direkt unter der topNav */
        z-index: 1020;
        margin-top: 0;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding: 10px 15px;
        width: 100vw;
        max-width: 100vw;
        background: #fff;
        border-bottom: 1px solid #eee;
        display: flex;
        flex-direction: column;
        gap: 8px;
        box-sizing: border-box;
    }
    /* Sicherstellen, dass Inputs nicht abgeschnitten werden */
    #headerLeiste>div {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    #headerLeiste .input-group {
        min-width: 0;
        max-width: 100%;
    }
    /* Warenkorb Header */
    #headerLeiste h1 {
        font-size: 1.2em;
        margin: 6px 0 2px;
    }
    /* Checkout: Bestellnummer + Preise nebeneinander wie Desktop */
    .wk-checkout {
        display: flex;
        flex-wrap: nowrap;
    }
    .wk-checkout .col-sm-6 {
        width: 50%;
        float: none;
        flex: 0 0 50%;
    }
    .wk-checkout-left textarea.form-control {
        min-height: 50px;
        font-size: 12px;
    }
    .wk-checkout-left label {
        font-size: 11px;
    }
    .wk-checkout-left .form-control {
        height: 30px;
        font-size: 12px;
    }
    .wk-summary {
        font-size: 12px;
    }
    .wk-summary h4 {
        font-size: 15px;
    }
}


/* ================================================
   TABLET UX: Warenkorb-Artikel (641-900px)
   ================================================ */

@media (min-width: 641px) and (max-width: 900px) {
    .wkLine {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 8px;
    }
    .wk-col-qty {
        width: 200px;
        flex-shrink: 0;
    }
    .wk-col-details {
        flex: 1;
        min-width: 0;
        font-size: 14px;
        line-height: 1.35;
    }
    .wk-col-preview {
        align-self: flex-start;
    }
    .wk-col-preview .rollPreview {
        width: 145px !important;
        height: 180px;
    }
    .wk-col-preview .rollPreview svg {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .wk-col-price {
        width: 64px;
        flex-shrink: 0;
    }
    .wk-col-price h4 {
        font-size: 13px;
    }
}


/* ================================================
   MOBILE: Warenkorb & allgemeine Optimierungen
   ================================================ */

@media (max-width: 640px) {
    /* -- Warenkorb: Kompakte Karte mit Aufklapp-Details -- */
    .wkLine {
        position: relative;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 10px 12px 18px;
        margin-bottom: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
        overflow: visible;
        display: grid;
        grid-template-columns: 56px 1fr auto;
        grid-template-areas: "preview summary price" "qty     qty     qty";
        gap: 4px 10px;
        align-items: center;
        cursor: pointer;
    }
    /* Chevron-Indikator */
    .wkLine::after {
        content: "\f107";
        font-family: FontAwesome;
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 13px;
        color: #ccc;
        transition: transform 0.2s;
    }
    .wkLine.wk-expanded::after {
        content: "\f106";
    }
    /* 1. Preview: links */
    .wk-col-preview {
        grid-area: preview;
        width: 56px;
        padding: 0;
        margin: 0;
        align-self: center;
    }
    .wk-col-preview a,
    .wk-col-preview .svgLink {
        display: block;
        width: 100%;
        border-radius: 6px;
        overflow: hidden;
        background: #f8f9fa;
    }
    .wk-col-preview .rollPreview,
    .wk-col-preview .rollPreview--flat {
        width: 100% !important;
        max-height: 56px !important;
        min-height: 48px;
    }
    .wk-col-preview .rollPreview svg,
    .wk-col-preview .rollPreview--flat svg {
        width: 100%;
        height: 100%;
        max-height: 56px;
        object-fit: contain;
    }
    /* 2. Details/Summary: Mitte */
    .wk-col-details {
        grid-area: summary;
        padding: 0;
        font-size: 12px;
        line-height: 1.35;
        min-width: 0;
        overflow: hidden;
    }
    .wk-col-details strong {
        font-size: 13px;
        display: block;
        margin-bottom: 0;
    }
    .wk-col-details .wk-article-nr {
        font-size: 11px;
        color: #888;
    }
    /* Collapsed: Details ausblenden */
    .wkLine:not(.wk-expanded) .wk-col-details br,
    .wkLine:not(.wk-expanded) .wk-col-details small,
    .wkLine:not(.wk-expanded) .wk-col-details .label,
    .wkLine:not(.wk-expanded) .wk-col-details .wk-wicklung-label,
    .wkLine:not(.wk-expanded) .wk-col-details .row,
    .wkLine:not(.wk-expanded) .wk-col-details .wk-edit-btn {
        display: none;
    }
    /* Expanded: Details einblenden */
    .wkLine.wk-expanded .wk-col-details br {
        display: inline;
    }
    .wkLine.wk-expanded .wk-col-details small {
        display: block;
        margin-top: 4px;
    }
    .wkLine.wk-expanded .wk-col-details .label,
    .wkLine.wk-expanded .wk-col-details .wk-wicklung-label {
        display: inline-block;
        margin-top: 4px;
        font-size: 10px;
    }
    .wkLine.wk-expanded .wk-col-details .row {
        display: flex;
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid #f0f0f0;
        font-size: 10px;
        color: #888;
    }
    .wkLine.wk-expanded .wk-col-details .row small {
        font-size: 10px;
    }
    .wkLine.wk-expanded .wk-col-details .wk-edit-btn {
        display: inline-block;
    }
    /* 3. Preis: rechts */
    .wk-col-price {
        grid-area: price;
        padding: 0;
        text-align: right;
        align-self: center;
    }
    .wk-col-price h4 {
        margin: 0;
        font-size: 15px;
        font-weight: 700;
        color: #222;
    }
    /* 4. Qty: immer sichtbar, volle Breite */
    .wk-col-qty {
        grid-area: qty;
        grid-column: 1 / -1;
        width: 100%;
        padding-top: 6px;
        border-top: 1px solid #f0f0f0;
    }
    /* Edit-Button */
    .wk-edit-btn {
        margin: 0 0 4px 6px;
    }
    /* Refresh-Button */
    .wkLine .refreshButton {
        margin-top: 4px;
    }
    /* Liefertermin-Row: umbrechen auf Mobile */
    .wk-liefertermin-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
    }
    .wk-liefertermin-row>.input-group {
        flex: 1 1 100%;
        min-width: 0;
    }
    .wk-liefertermin-row>.wk-toggle-label {
        margin-top: 6px;
        margin-left: 0;
        flex: 1 1 100%;
        min-width: 0;
    }
    /* -- Rollen-Specs Dropdown -- */
    .wkLine .dropdown-menu {
        min-width: 280px !important;
        left: 0 !important;
        right: auto;
    }
    /* -- Warenkorb Header: kompakter -- */
    /* Padding-Regel entfernt - Flexbox-Struktur soll identisch bleiben */
    #headerLeiste h1 {
        font-size: 1.1em;
    }
    /* -- Adressen-Block: full-width stacking -- */
    #topInfoLeiste {
        margin-top: 10px !important;
    }
    #topInfoLeiste>.row>.col-sm-7,
    #topInfoLeiste>.row>.col-sm-5 {
        float: none;
        width: 100%;
    }
    #topInfoLeiste>.col-sm-7,
    #topInfoLeiste>.col-sm-5 {
        float: none;
        width: 100%;
    }
    #topInfoLeiste .col-xs-6 {
        font-size: 12px;
        line-height: 1.5;
        padding: 0 8px;
    }
    /* -- Wicklung / Rollenkern / Max∅: stapeln -- */
    #topInfoLeiste>.row>.row>.col-xs-6 {
        width: 100%;
        float: none;
        margin-bottom: 0;
    }
    #topInfoLeiste>.row>.row {
        margin-bottom: 0;
    }
    /* Rollenkern + Max∅ nebeneinander bleiben */
    #topInfoLeiste .col-xs-6>div[style*="width: 48%"] {
        width: 48% !important;
    }
    /* -- Express + Liefertermin: volle Breite -- */
    .col-sm-5 {
        margin-top: 6px;
    }
    .col-sm-5 .input-group {
        margin-bottom: 6px;
    }
    /* VanillaSelect: kompakterer Button — gleiche Höhe wie .form-control */
    .vs-btn {
        font-size: 13px;
        padding: 6px 10px;
        min-height: 36px;
    }
    .vs-option {
        font-size: 13px;
        padding: 8px 10px;
    }
    /* -- Checkout: Gesamtpreise oben, Bestellnummer unten auf Mobile -- */
    .wk-checkout {
        display: flex;
        margin-left: -15px;
        margin-right: -15px;
        flex-direction: column;
        gap: 0;
    }
    .wk-checkout .col-sm-6 {
        float: none;
        width: 100%;
    }
    .wk-checkout-left {
        order: 2;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 0;
    }
    .wk-checkout-right {
        order: 1;
        margin-bottom: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .wk-summary {
        margin-left: 0;
        margin-right: 0;
    }
    .wk-summary-row {
        padding-left: 12px;
        padding-right: 12px;
    }
    .wk-summary-row>span:first-child {
        word-break: break-word;
        hyphens: auto;
    }
    .wk-summary-row.wk-total .wk-summary-val {
        font-size: 20px;
    }
    .wk-reassurance {
        padding: 14px;
    }
    .wk-reassurance .wk-legal {
        font-size: 11px;
    }
    .wk-checkout-left label {
        margin-bottom: 8px;
    }
    .wk-checkout-left textarea {
        min-height: 80px;
        font-size: 14px;
    }
    .col-md-6,
    .col-md-5,
    .col-md-8,
    .col-md-4 {
        float: none;
        width: 100%;
        margin-left: 0;
    }
    /* -- Buttons unten: stapeln -- */
    #emptyCart {
        margin-bottom: 8px;
    }
    .btn-lg {
        font-size: 15px;
        padding: 10px 16px;
    }
    /* -- Lieferadresse Note -- */
    .alert {
        font-size: 13px;
        padding: 10px 14px;
        margin-bottom: 8px;
    }
    /* -- Parcel Logo -- */
    .parcelLogo {
        max-height: 24px;
    }
    /* -- Jumbotron kompakter -- */
    .jumbotron {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    .jumbotron h2 {
        font-size: 1.3em;
    }
    .jumbotron p {
        font-size: 14px;
    }
    /* -- Modal auf Mobile -- */
    .modal-dialog {
        margin: 5px;
        width: auto;
    }
    .modal-content {
        border-radius: 10px;
    }
    .modal-header {
        padding: 10px 15px;
    }
    .modal-body {
        padding: 10px 15px;
    }
    .modal-title {
        font-size: 14px;
    }
    /* Modal form-groups: Labels über Inputs statt daneben */
    .modal .control-label {
        text-align: left;
        padding-top: 0;
        margin-bottom: 4px;
    }
    .modal .form-group [class*="col-"] {
        float: none;
        width: 100%;
        padding: 0;
    }
    /* -- Footer: kompakter -- */
    .footer-nav .container {
        padding: 0 10px;
    }
    .footer-nav .navbar-text {
        font-size: 11px;
        margin: 6px 0 !important;
    }
    /* -- Allgemein: weniger Padding -- */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
    /* Form-Controls: etwas kleiner */
    .form-control {
        height: 36px;
        font-size: 13px;
        padding: 6px 12px;
    }
    textarea.form-control {
        height: auto;
    }
    select.form-control {
        font-size: 13px;
    }
    .input-group-text {
        font-size: 13px;
        padding: 0 0 0 10px;
        min-width: 32px;
    }
    /* -- SVG-Image Modal: volle Breite auf Mobile -- */
    #modalImage .modal-dialog {
        width: calc(100% - 20px) !important;
        margin: 10px auto !important;
    }
    #modalImage .modal-content {
        border-radius: 12px;
        min-height: auto;
    }
    #modalImage .modal-body {
        height: auto !important;
        min-height: 40vh;
        overflow: auto;
    }
    #modalImage .modal-body .SVGbackButton,
    #modalImage .modal-body .SVGforwardButton {
        height: auto !important;
        padding: 20px 8px !important;
        top: 50%;
        transform: translateY(-50%);
        position: absolute;
        z-index: 10;
        background: rgba(255, 255, 255, 0.85);
    }
    #modalImage .modal-body .SVGbackButton {
        left: 0 !important;
        border-radius: 0 4px 4px 0;
    }
    #modalImage .modal-body .SVGforwardButton {
        right: 0 !important;
        border-radius: 4px 0 0 4px;
    }
    #modalImage .modal-footer {
        padding: 10px;
    }
    #modalImage .modal-footer .row>.col-xs-7,
    #modalImage .modal-footer .row>.col-xs-5 {
        float: none;
        width: 100%;
    }
    #modalImage .modal-footer .row>.col-xs-7 {
        margin-bottom: 10px;
    }
    #modalImage .modal-footer .row>.col-xs-7 h4 {
        font-size: 14px;
        line-height: 1.4;
    }
    #modalImage .modal-footer .btn-group.btn-group-justified {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
    }
    #modalImage .modal-footer .btn-group-justified>.btn {
        display: block !important;
        width: 100% !important;
        border-radius: var(--bs-radius, 4px) !important;
        min-height: 44px;
        line-height: 28px;
        font-size: 14px;
    }
    /* HeaderLeiste: Flex-Layout beibehalten */
    #headerLeiste {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    /* =========================================================================
       ARTIKEL-CARDS: Mobile UX-Optimierung
       ========================================================================= */
    /* --- Card-Layout: Thumbnail + Content --- */
    .articlerow {
        padding: 0;
        border-bottom: 1px solid var(--bs-border-color, #eee);
        display: flex;
        align-items: stretch;
    }
    .articlerow>.col-xs-3.articlethumb {
        width: 105px;
        min-width: 105px;
        max-height: 200px;
        flex: 0 0 105px;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    .articlerow>.col-xs-3.articlethumb .articlenr {
        font-size: 9px;
    }
    .articlerow>.col-xs-3.articlethumb .svgLink {
        flex: 1;
        display: flex;
        align-items: stretch;
        background: #999;
        border-radius: 0;
        overflow: hidden;
    }
    .articlerow>.col-xs-3.articlethumb .svgLink svg,
    .articlerow>.col-xs-3.articlethumb .svgLink img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .articlerow>.col-xs-9.articleContent {
        width: calc(100% - 105px);
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 12px 8px 8px;
    }
    /* Artikel Info + Actions: zwei Spalten nebeneinander */
    .articlerow .articleInfoRow {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .articlerow .articleInfoCol {
        flex: 0 0 auto;
        overflow-wrap: break-word;
    }
    .articlerow .articleActionsCol {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .articlerow .articleActionsCol .wkInput {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        align-items: flex-end;
    }
    /* --- Aktion-Dropdown --- */
    .articlerow .editButtons {
        margin: 0 0 2px 8px;
    }
    .articlerow .editButtons .dropdown-toggle {
        padding: 4px 10px;
        font-size: 13px;
        border-radius: var(--bs-radius-pill) !important;
    }
    .articlerow .artAction-menu {
        font-size: 14px;
    }
    .articlerow .artAction-menu>li>a {
        padding: 10px 18px;
    }
    /* --- Artikelinfo: kompakte Typografie, enger am oberen Rand --- */
    .articlerow .articleBezeichnung {
        font-size: 13px;
        line-height: 1.3;
    }
    .articlerow .articleSizetext {
        font-size: 11px;
        opacity: 0.7;
    }
    .articlerow .articleDescription {
        font-size: 11px;
        line-height: 1.3;
    }
    .articlerow small {
        font-size: 10px;
        opacity: 0.6;
    }
    /* --- Warenkorb-Badge: kompakt, inline --- */
    .articlerow .wkoutput {
        margin: 4px 0 4px 0;
    }
    .articlerow .wkoutput .btn-group {
        display: inline-flex;
        align-items: stretch;
    }
    .articlerow .wkoutput .btn-group>.btn {
        margin: 0 !important;
        padding: 2px 8px;
        font-size: 11px;
        line-height: 1.5;
    }
    .articlerow .wkoutput .btn-group>.btn:first-child {
        padding: 2px 6px;
    }
    /* --- Staffel-Buttons: kompakt, 2-spaltig --- */
    .articlerow .wkInput>.btn {
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
        font-size: 10px;
        padding: 4px 4px;
        white-space: nowrap;
        min-height: 32px;
    }
    .articlerow .wkInput>.flexPrice,
    .articlerow .wkInput>.lfmPrice {
        flex: 1 1 100%;
        min-width: 100%;
    }
    /* --- FlexPrice + Neue Daten: gleiche Zeile --- */
    .articlerow .flexPrice {
        margin-bottom: 0;
    }
    .articlerow .flexPrice .form-control {
        height: 34px;
        min-height: 34px;
        font-size: 13px;
        padding: 4px 8px;
    }
    .articlerow .flexPrice .btn {
        padding: 4px 8px;
        height: 34px;
    }
    .articlerow .flexPrice .auswahlbutton {
        padding: 4px 5px;
    }
    /* -- Artikel-hinzufügen Modal: Upload-Zone oben, volle Breite, direkt unter Header -- */
    #modalContainer .modal-body .row>.col-sm-6 {
        float: none;
        width: 100%;
    }
    /* Erste Zeile im Modal-Body: Flex-Spalte, Upload-Spalte zuerst (order -1) */
    #modalContainer .modal-body>form>.row:first-of-type {
        display: flex;
        flex-direction: column;
    }
    #modalContainer .modal-body>form>.row:first-of-type>.col-sm-6:has([id^="canvas-container2_"]) {
        order: -1;
    }
    /* Upload-Zone: volle Breite, direkt an den Modal-Header (negatives margin-top = Body-Padding) */
    #modalContainer [id^="canvas-container2_"] {
        margin: -10px -15px 15px -15px !important;
        border-radius: 0 !important;
    }
}


/* ================================================
   Artikel-Header: "Artikel hinzufügen" ab 641px
   (Bootstrap `.hidden-xs` ist sonst bis 767px verborgen)
   ================================================ */

@media (min-width: 641px) {
    #headerLeiste #addArticleButton .hidden-xs {
        display: inline !important;
    }
}


/* ---- User-Liste ---- */


/* Abstand unter Headline, damit erste Zeile nicht überlappt */

#headerLeiste+.user-list-header {
    margin-top: 4px;
}

.user-list-header {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    font-size: 13px;
    color: #888;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.user-row:hover {
    background: #fafafa;
}

.user-col-email {
    flex: 2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-col-name {
    flex: 1.5;
    min-width: 0;
}

.user-col-ab {
    width: 140px;
    flex-shrink: 0;
    text-align: center;
}

.user-col-status {
    width: 100px;
    flex-shrink: 0;
}

.user-col-actions {
    width: 130px;
    flex-shrink: 0;
    text-align: right;
}

@media (max-width: 640px) {
    .user-list-header {
        display: none;
    }
    .user-row {
        flex-wrap: wrap;
        position: relative;
        border: 1px solid #eee;
        border-radius: var(--bs-radius);
        margin-bottom: 8px;
        padding: 10px 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    }
    .user-col-email {
        flex: 1 1 calc(100% - 140px);
        font-weight: 600;
    }
    .user-col-name {
        flex: 1 1 100%;
    }
    .user-col-ab {
        width: auto;
        flex: 0 0 auto;
    }
    .user-col-ab::before {
        content: "AB ";
        font-size: 12px;
        color: #888;
    }
    .user-col-status {
        flex: 0 0 auto;
    }
    .user-col-actions {
        position: absolute;
        top: 8px;
        right: 10px;
        width: auto;
    }
}


/* ---- Zahlungsliste (Listen-Layout wie User-Liste) ---- */

#suchergebnisse h2 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 18px;
}

#suchergebnisse h2:first-child {
    margin-top: 4px;
}

.payment-list-header {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    font-size: 13px;
    color: #888;
}

.payment-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    color: var(--bs-text-color);
}

.payment-row:hover {
    background: #fafafa;
}

.payment-row.danger,
.payment-row.success {
    color: var(--bs-text-color);
}

.payment-col-date {
    width: 120px;
    flex-shrink: 0;
}

.payment-col-invoice {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.payment-col-amount {
    width: 100px;
    flex-shrink: 0;
    text-align: right;
}

.payment-col-paid {
    width: 180px;
    flex-shrink: 0;
    text-align: right;
    font-size: 13px;
}


/* ---- Zahlungsliste: Mobile UX (max-width 640px) ---- */

@media (max-width: 640px) {
    #suchergebnisse {
        padding-left: 12px;
        padding-right: 12px;
    }
    .payment-list-header {
        display: none;
    }
    #suchergebnisse h2 {
        font-size: 16px;
        font-weight: 600;
        margin-top: 24px;
        margin-bottom: 12px;
        padding-bottom: 6px;
        border-bottom: 2px solid var(--bs-border-color);
        color: var(--bs-text-color);
    }
    #suchergebnisse h2:first-child {
        margin-top: 8px;
    }
    .payment-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        flex-wrap: nowrap;
        border: 1px solid var(--bs-border-color);
        border-radius: var(--bs-radius);
        margin-bottom: 12px;
        padding: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
        overflow: hidden;
        min-height: 44px;
    }
    .payment-row.danger {
        border-left: 4px solid var(--bs-danger);
        background: linear-gradient(to right, rgba(234, 81, 109, 0.06) 0%, transparent 12%);
    }
    .payment-row.success {
        border-left: 4px solid var(--bs-success);
        background: linear-gradient(to right, rgba(131, 188, 65, 0.05) 0%, transparent 12%);
    }
    /* Offene Rechnungen: erste Zeile = Fällig + Betrag, zweite = Rechnungslinks */
    .payment-row .payment-col-date {
        order: 1;
        width: 100%;
        padding: 12px 14px 4px;
        font-size: 12px;
        color: #666;
    }
    .payment-row .payment-col-date::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #999;
        margin-bottom: 2px;
    }
    .payment-row .payment-col-date:not([data-label])::before {
        content: "Fällig am";
    }
    .payment-row .payment-col-amount {
        order: 2;
        width: 100%;
        padding: 0 14px 12px;
        text-align: left;
        font-size: 22px;
        font-weight: 700;
        color: var(--bs-text-color);
        line-height: 1.2;
    }
    .payment-row .payment-col-amount::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #999;
        margin-bottom: 2px;
    }
    .payment-row .payment-col-amount:not([data-label])::before {
        content: "Betrag";
    }
    .payment-row .payment-col-invoice {
        order: 3;
        width: 100%;
        padding: 0 14px 14px;
        font-size: 14px;
    }
    .payment-row .payment-col-invoice::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #999;
        margin-bottom: 6px;
    }
    .payment-row .payment-col-invoice:not([data-label])::before {
        content: "Rechnung";
    }
    /* PDF-Links als Touch-freundliche Buttons */
    .payment-row .payment-col-invoice a.btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 44px;
        padding: 10px 14px;
        margin: 4px 4px 0 0;
        font-size: 14px;
        font-weight: 500;
        border-radius: var(--bs-radius);
        text-decoration: none;
        transition: background .15s, transform .1s;
        -webkit-tap-highlight-color: transparent;
    }
    .payment-row .payment-col-invoice a.btn:active {
        transform: scale(0.98);
    }
    /* Bezahlte Rechnungen: 4 Spalten → Card mit Reihenfolge Rechnung → Datum/Betrag → Bezahlt */
    .payment-row .payment-col-paid {
        order: 4;
        width: 100%;
        padding: 10px 14px 14px;
        font-size: 13px;
        text-align: left;
        border-top: 1px solid #eee;
        background: rgba(0, 0, 0, .02);
    }
    .payment-row .payment-col-paid::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #999;
        margin-bottom: 4px;
    }
    .payment-row .payment-col-paid:not([data-label])::before {
        content: "Bezahlt am";
    }
    .payment-row .payment-col-paid .label {
        margin-left: 4px;
    }
    /* Bezahlte Rechnungen: Rechnung/PDF zuerst (primäre Aktion) */
    .payment-row--paid .payment-col-invoice {
        order: 1;
        padding-top: 14px;
    }
    .payment-row--paid .payment-col-date {
        order: 2;
    }
    .payment-row--paid .payment-col-amount {
        order: 3;
    }
    .payment-row--paid .payment-col-paid {
        order: 4;
    }
    .payment-row--paid .payment-col-invoice::before {
        margin-bottom: 8px;
    }
}


/* ---- Lieferadressen (Listen-Layout wie User-Liste / Zahlungsliste) ---- */

#headerLeiste+.delivery-list-header {
    margin-top: 4px;
}

.delivery-list-header {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    font-size: 13px;
    color: #888;
}

.delivery-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    color: var(--bs-text-color);
}

.delivery-row:hover {
    background: #fafafa;
}

.delivery-col-firma {
    flex: 0 0 200px;
    min-width: 0;
}

.delivery-col-address {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
}

.delivery-col-specs {
    flex: 0 0 220px;
    min-width: 0;
    font-size: 13px;
}

.delivery-col-actions {
    width: 100px;
    flex-shrink: 0;
    text-align: right;
}

.delivery-row .delivery-home-icon {
    margin-right: 6px;
    cursor: pointer;
}

.delivery-row .delivery-parcel-icon {
    margin-right: 8px;
    vertical-align: middle;
}

.delivery-row .delivery-asp {
    font-size: 12px;
    color: #666;
}

.delivery-row .delivery-besonderheiten {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 12px;
}

.delivery-row .machine {
    font-weight: 600;
}


/* Lieferadressen: Mobile UX */

@media (max-width: 640px) {
    #suchergebnisse #delivery {
        padding-left: 12px;
        padding-right: 12px;
    }
    .delivery-list-header {
        display: none;
    }
    .delivery-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--bs-border-color);
        border-radius: var(--bs-radius);
        margin-bottom: 12px;
        padding: 14px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
        background: #fff;
    }
    .delivery-col-firma {
        order: 1;
        flex: none;
        width: 100%;
        padding-bottom: 8px;
        border-bottom: 1px solid #eee;
    }
    .delivery-col-firma::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #999;
        margin-bottom: 4px;
    }
    .delivery-col-firma .delivery-home-icon,
    .delivery-col-firma .delivery-parcel-icon {
        margin-left: 0;
    }
    .delivery-col-address {
        order: 2;
        flex: none;
        width: 100%;
        padding: 10px 0 8px;
        font-size: 14px;
    }
    .delivery-col-address::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #999;
        margin-bottom: 4px;
    }
    .delivery-col-specs {
        order: 3;
        flex: none;
        width: 100%;
        padding: 8px 0 12px;
        font-size: 13px;
    }
    .delivery-col-specs::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #999;
        margin-bottom: 4px;
    }
    .delivery-row .delivery-besonderheiten {
        margin-top: 8px;
    }
    .delivery-col-actions {
        order: 4;
        width: 100%;
        text-align: left;
        padding-top: 10px;
        border-top: 1px solid #eee;
        display: flex;
        gap: 8px;
    }
    .delivery-col-actions .btn {
        min-height: 44px;
        padding: 10px 16px;
        flex: 1;
        border-radius: var(--bs-radius);
    }
}


/* ---- Provisionen (Flex-Rows) ---- */

.prov-section {
    margin-bottom: 24px;
}

.prov-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: #474b5a;
}

.prov-list-header {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    font-size: 13px;
    color: #888;
}

.prov-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.prov-row:hover {
    background: #fafafa;
}

.prov-col-order {
    flex: 0 0 100px;
    min-width: 0;
}

.prov-col-kunde {
    flex: 1;
    min-width: 0;
}

.prov-col-datum {
    flex: 0 0 120px;
    min-width: 0;
}

.prov-col-netto {
    flex: 0 0 110px;
    min-width: 0;
    text-align: right;
}

.prov-col-satz {
    flex: 0 0 80px;
    min-width: 0;
    text-align: right;
}

.prov-col-betrag {
    flex: 0 0 120px;
    min-width: 0;
    text-align: right;
    font-weight: 600;
}

.prov-col-status {
    flex: 0 0 120px;
    min-width: 0;
    text-align: right;
}

.prov-summary {
    padding: 12px;
    background: #f5f6f8;
    border-radius: 10px;
    margin-top: 8px;
}

@media (max-width: 900px) and (min-width: 641px) {
    .prov-col-order {
        flex: 0 0 80px;
    }
    .prov-col-datum {
        flex: 0 0 95px;
        font-size: 13px;
    }
    .prov-col-netto {
        flex: 0 0 90px;
        font-size: 13px;
    }
    .prov-col-satz {
        display: none;
    }
    .prov-col-betrag {
        flex: 0 0 100px;
        font-size: 13px;
    }
    .prov-col-status {
        flex: 0 0 100px;
        font-size: 13px;
    }
    .prov-list-header {
        font-size: 12px;
    }
    .prov-row {
        padding: 8px 10px;
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .prov-list-header {
        display: none;
    }
    .prov-row {
        flex-wrap: wrap;
        border: 1px solid var(--bs-border-color);
        border-radius: var(--bs-radius);
        margin-bottom: 10px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
        background: #fff;
    }
    .prov-col-order,
    .prov-col-kunde,
    .prov-col-datum,
    .prov-col-netto,
    .prov-col-satz,
    .prov-col-betrag,
    .prov-col-status {
        flex: none;
        text-align: left;
    }
    .prov-col-order {
        width: 50%;
        font-weight: 600;
    }
    .prov-col-datum {
        width: 50%;
        text-align: right;
        color: #888;
        font-size: 13px;
    }
    .prov-col-kunde {
        width: 100%;
        font-size: 13px;
        color: #666;
    }
    .prov-col-netto,
    .prov-col-satz,
    .prov-col-betrag,
    .prov-col-status {
        width: 50%;
        font-size: 13px;
    }
    .prov-col-netto::before,
    .prov-col-satz::before,
    .prov-col-betrag::before,
    .prov-col-status::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #999;
        margin-bottom: 2px;
    }
}


/* ---- Confirm-Dialog ---- */

.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}

.confirm-overlay.in {
    opacity: 1;
}

.confirm-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
    transform: scale(.95);
    transition: transform .2s;
}

.confirm-overlay.in .confirm-box {
    transform: scale(1);
}

.confirm-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: none;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.confirm-close:hover {
    color: #333;
}

.confirm-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-right: 24px;
}

.confirm-message {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
    white-space: pre-line;
}

.confirm-input-wrap {
    margin-bottom: 16px;
}

.confirm-input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #555;
}

.confirm-input {
    width: 100%;
}

.confirm-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.confirm-dismiss {
    margin-right: auto;
    font-size: 13px;
    color: #999;
    padding: 0;
    white-space: nowrap;
}


/* ---- AB-Toggle-Switch ---- */

.ab-toggle {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 16px;
    vertical-align: middle;
    cursor: pointer;
}

.ab-toggle input {
    display: none;
}

.ab-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 8px;
    transition: background .2s;
}

.ab-slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: left .2s;
}

.ab-toggle input:checked+.ab-slider {
    background: #4caf50;
}

.ab-toggle input:checked+.ab-slider::after {
    left: 14px;
}


/* ---- Warenkorb: Pouch/BBB-Vorschau (nur Vorderseite, 200px Höhe wie Orderdetails) ---- */

.wk-col-preview>a.wk-preview-pouch {
    position: relative;
    height: 200px;
    min-height: 200px;
    display: block;
    overflow: hidden;
}


/* ---- Welcome Cards (articles.php, warenkorb.php) ---- */

.welcome-card {
    background: #fafbfc;
    border: 1px solid rgba(71, 75, 90, 0.15);
    border-radius: 16px;
    padding: 18px;
    margin: 12px 0;
    box-shadow: 0 8px 20px rgba(71, 75, 90, 0.1);
}

.welcome-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.welcome-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(122, 202, 239, 0.22);
    color: #474b5a;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.welcome-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    color: rgba(71, 75, 90, 0.9);
}

.welcome-subtitle {
    color: #474b5a;
    margin: 0 0 14px 0;
    font-size: 15px;
}

.welcome-products {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.welcome-product-card {
    flex: 1 1 220px;
    background: #fff;
    border: 1px solid rgba(71, 75, 90, 0.12);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(71, 75, 90, 0.07);
}

.welcome-product-card img {
    width: 100%;
    border-radius: 8px;
    display: block;
    margin-bottom: 10px;
}

.welcome-cta {
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
    background: #474b5a !important;
    border-color: rgba(71, 75, 90, 0.85) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(71, 75, 90, 0.24);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.welcome-cta:hover,
.welcome-cta:focus {
    background: #3f4350 !important;
    border-color: rgba(71, 75, 90, 0.95) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(71, 75, 90, 0.3);
}

.welcome-notes {
    margin: 0;
    padding: 12px 14px;
    background: #f5f6f8;
    border: 1px solid rgba(71, 75, 90, 0.1);
    border-radius: 10px;
    color: #474b5a;
    line-height: 1.5;
}

.welcome-notes a {
    font-weight: 600;
}

.welcome-import-hint {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(122, 202, 239, 0.14);
    border: 1px solid rgba(122, 202, 239, 0.5);
    color: #474b5a;
    line-height: 1.4;
}

.welcome-import-hint .btn {
    margin-top: 8px;
    border-radius: 999px;
    font-weight: 600;
}

.welcome-musterset-btn {
    margin-top: 12px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
}

.welcome-card--success ul {
    margin: 0;
    padding-left: 18px;
    color: #474b5a;
}

.welcome-card--success li {
    margin-bottom: 8px;
}

.welcome-import-section {
    margin-top: 16px;
}

.welcome-import-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 14px;
    color: #999;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
}

.welcome-import-divider::before,
.welcome-import-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(71, 75, 90, 0.15);
}

.welcome-import-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f4f9f0;
    border: 1px solid rgba(131, 188, 65, 0.25);
    border-radius: 12px;
    margin-bottom: 10px;
}

.welcome-import-inline-preview {
    width: 50px;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-import-inline-preview svg {
    width: 40px;
    height: 40px;
}

.welcome-import-inline-preview svg * {
    stroke: #3f5f1b !important;
    fill: transparent !important;
}

.welcome-import-inline-copy {
    flex: 1;
    min-width: 0;
    color: #474b5a;
}

.welcome-import-inline-copy .price {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(131, 188, 65, 0.25);
    font-weight: 700;
    color: #3f5f1b;
}

.welcome-import-cta {
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    background: #83bc41;
    border-color: #75ad37;
    box-shadow: 0 4px 12px rgba(131, 188, 65, 0.35);
}

.welcome-import-cta:hover,
.welcome-import-cta:focus {
    background: #79af3b;
    border-color: #6f9f35;
    box-shadow: 0 5px 14px rgba(131, 188, 65, 0.4);
}


/* ---- Website Import Card (articles.php Kalkulations-Import) ---- */

.website-import-card {
    background: #f4f9f0;
    border: 1px solid rgba(131, 188, 65, 0.25);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 6px 20px rgba(71, 75, 90, 0.08);
}

.website-import-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.website-import-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(131, 188, 65, 0.22);
    color: #3f5f1b;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.website-import-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #474b5a;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(71, 75, 90, 0.15);
    cursor: pointer;
}

.website-import-close:hover {
    background: #fff;
    color: #ea516d;
    border-color: rgba(234, 81, 109, 0.35);
}

.website-import-body {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.website-import-preview {
    width: 56px;
    min-width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.website-import-preview svg {
    width: 46px;
    height: 46px;
    display: block;
}

.website-import-preview svg * {
    stroke: #3f5f1b !important;
    fill: transparent !important;
}

.website-import-copy {
    flex: 1;
    min-width: 0;
    color: #474b5a;
}

.website-import-copy .expressText {
    display: block;
    margin-bottom: 2px;
}

.website-import-copy .price {
    display: inline-block;
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(131, 188, 65, 0.25);
    font-weight: 700;
    color: #3f5f1b;
}

.website-import-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #474b5a;
}

.website-import-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.website-import-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 16px;
    white-space: normal;
    word-break: break-word;
}

.website-import-primary.btn-success {
    background: #83bc41;
    border-color: #75ad37;
    box-shadow: 0 4px 12px rgba(131, 188, 65, 0.35);
}

.website-import-primary.btn-success:hover,
.website-import-primary.btn-success:focus {
    background: #79af3b;
    border-color: #6f9f35;
    box-shadow: 0 5px 14px rgba(131, 188, 65, 0.4);
}

.website-import-primary .fa {
    font-size: 18px;
}

.website-import-primary.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.website-import-secondary {
    min-width: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .website-import-actions {
        flex-direction: column;
    }
    .website-import-secondary {
        width: 100%;
        min-height: 42px;
    }
}


/* ---- Downloads Page ---- */

.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

a.dl-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid rgba(71, 75, 90, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: #474b5a;
    transition: box-shadow .15s ease, transform .15s ease;
}

a.dl-item:hover {
    box-shadow: 0 4px 12px rgba(71, 75, 90, 0.12);
    transform: translateY(-1px);
    text-decoration: none;
    color: #474b5a;
}

a.dl-item .fa {
    font-size: 18px;
    color: rgba(71, 75, 90, 0.45);
    margin-top: 2px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dl-item-text {
    flex: 1;
    min-width: 0;
}

.dl-item-comment {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.dl-grid--stanzen {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px;
}

.dl-stanz-item {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid rgba(71, 75, 90, 0.1);
    border-radius: 8px;
    color: #474b5a;
    font-size: 14px;
}

.dl-stanz-form {
    font-weight: 400;
    font-size: 12px;
    color: #888;
}