@import url('/shared-tabs.css');

:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, sans-serif;
    --bg: #f4f6f8;
    --card: #fff;
    --text: #1a1a1a;
    --muted: #5f6b7a;
    --border: #d8dee6;
    --primary: #1f4f8a;
    --primary-hover: #163a66;
    --bricqer-action-gradient: linear-gradient(180deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
    --bricqer-action-gradient-hover: linear-gradient(180deg, #4b92ff 0%, #3070f0 55%, #2458e8 100%);
    --bricqer-action-gradient-active: linear-gradient(180deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
    --bricqer-action-shadow: 0 1px 2px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(29, 78, 216, 0.65);
    --danger: #b42318;
    --success: #1b7f4a;
    --warning: #9a6700;
}

* { box-sizing: border-box; }

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

a { color: var(--primary); }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.auth-brand {
    margin-bottom: 1rem;
    text-align: center;
}

.auth-brand-logo {
    display: block;
    width: min(100%, 20rem);
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

h1, h2 {
    margin: 0 0 0.75rem;
}

p { margin: 0.5rem 0; line-height: 1.5; color: var(--muted); }

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

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

input, textarea, select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

textarea { min-height: 100px; resize: vertical; }

button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary, button[type="submit"] {
    padding: 0.52rem 0.82rem;
    border: 0;
    background: var(--bricqer-action-gradient);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: var(--bricqer-action-shadow);
    transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover:not(:disabled), button[type="submit"]:hover:not(:disabled) {
    background: var(--bricqer-action-gradient-hover);
}

.btn-primary:active:not(:disabled), button[type="submit"]:active:not(:disabled) {
    background: var(--bricqer-action-gradient-active);
}

.btn-primary:focus-visible, button[type="submit"]:focus-visible {
    outline: 2px solid rgba(29, 78, 216, 0.45);
    outline-offset: 2px;
}

.btn-primary:disabled, button[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary[aria-pressed="true"] {
    background: var(--bricqer-action-gradient-active);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(30, 64, 175, 0.75);
}

.btn-secondary {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn-secondary:hover:not(:disabled) {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.btn-secondary:active:not(:disabled) {
    background: #f1f5f9;
}

.btn-secondary:focus-visible {
    outline: 2px solid rgba(29, 78, 216, 0.35);
    outline-offset: 2px;
}

.btn-secondary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-danger {
    background: #fff5f5;
    border-color: #f5c2c0;
    color: var(--danger);
}

.stack { display: flex; flex-direction: column; gap: 0.9rem; }

.alert {
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    font-size: 0.92rem;
}

.alert-error { background: #fff5f5; color: var(--danger); border: 1px solid #f5c2c0; }
.alert-success { background: #edfdf3; color: var(--success); border: 1px solid #b7ebc6; }
.alert-info { background: #f0f6ff; color: var(--primary); border: 1px solid #c7d9f5; }

.dashboard-test-phase-banner {
    margin: 0 0 1.35rem;
    padding: 1.1rem 1.35rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #ea580c;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.18);
    color: #7c2d12;
    font-size: 1.02rem;
    line-height: 1.6;
}

.dashboard-test-phase-banner strong {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #c2410c;
    letter-spacing: 0.01em;
}

.dashboard-test-phase-banner p {
    margin: 0 0 0.7rem;
}

.dashboard-test-phase-banner p:last-child {
    margin-bottom: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.topbar nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-pending { background: #fff7e6; color: var(--warning); }
.badge-approved { background: #edfdf3; color: var(--success); }
.badge-rejected { background: #fff5f5; color: var(--danger); }
.badge-admin { background: #eef2ff; color: #3f51b5; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

th, td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th { color: var(--muted); font-weight: 600; }

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.muted { color: var(--muted); font-size: 0.9rem; }

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tab {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
}

.tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.empty {
    padding: 1.25rem;
    text-align: center;
    color: var(--muted);
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.section-header-row h2 {
    margin: 0;
}

.section-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dashboard-header-privacy-switch {
    margin: 0;
}

.app-page-header-actions .dashboard-header-privacy-switch .settings-switch-label {
    font-size: 0.875rem;
    max-width: 11rem;
    line-height: 1.25;
}

@media (max-width: 720px) {
    .app-page-header-actions .dashboard-header-privacy-switch .settings-switch-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

html.is-customer-data-anonymized .customer-data-pii,
html.is-customer-data-anonymized .order-detail-ship-address .order-detail-multiline,
html.is-customer-data-anonymized .ship-ready-address-display,
html.is-customer-data-anonymized #shipReadyAddressInput,
html.is-customer-data-anonymized #shipReadyDhlConsigneeName,
html.is-customer-data-anonymized #shipReadyDhlConsigneeStreet,
html.is-customer-data-anonymized #shipReadyDhlConsigneeAddition,
html.is-customer-data-anonymized #shipReadyDhlConsigneePostal,
html.is-customer-data-anonymized #shipReadyDhlConsigneeCity,
html.is-customer-data-anonymized #shipReadyImReceiverName,
html.is-customer-data-anonymized #shipReadyImReceiverStreet,
html.is-customer-data-anonymized #shipReadyImReceiverPostalCode,
html.is-customer-data-anonymized #shipReadyImReceiverCity,
html.is-customer-data-anonymized #shipReadyImReceiverAdditional,
html.is-customer-data-anonymized #shipReadyImReceiverAddressLine2 {
    color: transparent !important;
    text-shadow: 0 0 7px rgba(15, 23, 42, 0.72);
    -webkit-text-security: disc;
    text-security: disc;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    caret-color: transparent;
}

html.is-customer-data-anonymized .dashboard-header-privacy-switch,
html.is-customer-data-anonymized .dashboard-header-privacy-switch * {
    color: var(--text) !important;
    text-shadow: none !important;
    -webkit-text-security: none;
    text-security: none;
    user-select: auto;
    -webkit-user-select: auto;
    pointer-events: auto;
    caret-color: auto;
}

.sync-status {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
}

.sync-status-error {
    color: var(--danger);
}

.dashboard-sync-bar {
    margin: 0 0 0.75rem;
}

.dashboard-sync-bar--header {
    margin: 0;
    width: 100%;
    min-width: 0;
}

.dashboard-sync-bar--header .dashboard-sync-bar-inner {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    gap: 0.35rem 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.dashboard-sync-bar--header .dashboard-sync-area-item {
    font-size: 0.72rem;
    line-height: 1.25;
    white-space: nowrap;
    flex-shrink: 0;
}

.dashboard-sync-bar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: #f8fafc;
}

.dashboard-sync-area-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.84rem;
    line-height: 1.35;
}

.dashboard-sync-area-label {
    font-weight: 600;
    color: var(--text);
}

.dashboard-sync-area-value {
    color: var(--muted);
}

.dashboard-sync-area-item--ok .dashboard-sync-area-value {
    color: #15803d;
}

.dashboard-sync-area-item--warning .dashboard-sync-area-value {
    color: #b45309;
}

.dashboard-sync-area-item--active .dashboard-sync-area-value {
    color: #1d4ed8;
}

.dashboard-order-search-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    min-width: min(100%, 18rem);
}

.dashboard-order-search-row {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    flex: 1 1 14rem;
    min-width: 0;
}

.app-page-header-search {
    flex: 1 1 14rem;
}

.dashboard-order-search {
    display: block;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
}

.dashboard-refresh-control {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.dashboard-refresh-btn.is-spinning .btn-icon-inner svg {
    animation: dashboard-refresh-spin 0.9s linear infinite;
}

@keyframes dashboard-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

.dashboard-refresh-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 80;
    min-width: 12rem;
    max-width: min(18rem, calc(100vw - 2rem));
    margin: 0;
    padding: 0.3rem;
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.dashboard-refresh-menu-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.65rem;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.dashboard-refresh-menu-item:hover:not(:disabled) {
    background: #f1f5f9;
}

.dashboard-refresh-menu-item:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.dashboard-refresh-menu-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dashboard-refresh-menu-item-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}

.dashboard-refresh-menu-item-desc {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--muted);
}

.dashboard-order-search-input {
    width: 100%;
    min-width: 0;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    font: inherit;
    font-size: 0.92rem;
    background: #fff;
}

.dashboard-order-search-meta {
    font-size: 0.82rem;
    white-space: nowrap;
}

.dashboard-quick-filters,
.archive-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    width: 100%;
}

.dashboard-quick-filter-chip,
.archive-quick-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-quick-filter-chip:hover,
.archive-quick-filter-chip:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.dashboard-quick-filter-chip.is-active,
.archive-quick-filter-chip.is-active {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1d4ed8;
}

mark.ls-search-highlight {
    padding: 0 0.08em;
    border-radius: 0.2em;
    background: #fef08a;
    color: inherit;
}

.dashboard-order-search-hidden {
    display: none !important;
}

.dashboard-order-search-section-hidden {
    display: none !important;
}

.dashboard-order-search-frame-hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sync-cooldown-hints {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
}

.sync-cooldown-hint {
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.88rem;
    line-height: 1.45;
}

.dashboard-orders-error-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.dashboard-orders-live-region {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dashboard-orders-last-updated {
    font-size: 0.82rem;
    white-space: nowrap;
}

.bricqer-orders-frame-header-actions .dashboard-orders-last-updated {
    align-self: center;
}

.dashboard-loading-state {
    display: grid;
    gap: 0.75rem;
}

.dashboard-skeleton {
    display: grid;
    gap: 0.55rem;
}

.dashboard-skeleton-line {
    height: 0.85rem;
    border-radius: 0.45rem;
    background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 100%);
    background-size: 200% 100%;
    animation: dashboard-skeleton-shimmer 1.2s ease-in-out infinite;
}

.dashboard-skeleton-line--short {
    width: 62%;
}

@keyframes dashboard-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.dashboard-toast-host {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.dashboard-toast {
    min-width: 12rem;
    max-width: 22rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.65rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    font-size: 0.9rem;
    line-height: 1.4;
    pointer-events: auto;
}

.dashboard-toast--success {
    background: #edfdf3;
    color: var(--success);
    border: 1px solid #b7ebc6;
}

.dashboard-toast--error {
    background: #fff5f5;
    color: var(--danger);
    border: 1px solid #f5c2c0;
}

.dashboard-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 0.65rem 0.9rem;
    border-radius: 0.5rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
}

.dashboard-skip-link:focus {
    left: 1rem;
    top: 1rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.sync-cooldown-hint--scheduled {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.sync-cooldown-hint--legacy-progress {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.sync-cooldown-timer {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.task-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dashboard-frame-reorder-hint {
    margin: 0 0 0.75rem;
    font-size: 0.84rem;
}

.dashboard-customize-settings {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
}

.dashboard-customize-settings-title {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.dashboard-customize-settings-title--spaced {
    margin-top: 1.15rem;
}

.dashboard-customize-switch {
    display: flex;
    margin-bottom: 0.65rem;
}

.dashboard-customize-settings-note {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
}

.dashboard-settings-anchor {
    position: relative;
}

.dashboard-settings-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 40;
    width: min(22rem, calc(100vw - 1.5rem));
}

.dashboard-settings-panel .dashboard-customize-settings {
    margin-bottom: 0;
    padding: 0.9rem 1rem 1rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.dashboard-settings-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.dashboard-settings-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.dashboard-settings-panel-close .btn-icon-inner {
    font-size: 1.2rem;
    line-height: 1;
}

.dashboard-settings-field {
    margin-bottom: 0.75rem;
}

.dashboard-settings-select {
    width: 100%;
    margin-top: 0.25rem;
}

.dashboard-frame-handle-cell--pinned {
    border-style: dashed;
    background: #f1f5f9;
    cursor: default;
}

.dashboard-frame-visibility-cell--pinned {
    border-style: dashed;
    background: #f1f5f9;
    cursor: default;
}

.dashboard-frame-item--pinned .dashboard-frame-content-cell {
    border-color: #cbd5e1;
}

#tasksWrap.is-customize-mode .dashboard-frame-list {
    gap: 0.5rem;
}

.dashboard-frame-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0;
    border: none;
    background: transparent;
}

.dashboard-frame-handle-cell,
.dashboard-frame-visibility-cell {
    flex: 0 0 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
}

.dashboard-frame-visibility-btn {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    min-height: 2rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.dashboard-frame-visibility-btn:hover {
    color: var(--text);
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.08);
}

.dashboard-frame-visibility-btn.is-hidden {
    color: #b45309;
}

.dashboard-frame-visibility-btn.is-hidden:hover {
    color: #92400e;
    background: rgba(180, 83, 9, 0.08);
    border-color: rgba(180, 83, 9, 0.18);
}

.dashboard-frame-visibility-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.dashboard-frame-row.is-frame-hidden .dashboard-frame-content-cell {
    opacity: 0.45;
}

.dashboard-frame-content-cell {
    flex: 1;
    min-width: 0;
}

.dashboard-frame-content-cell > .task-item,
.dashboard-frame-content-cell > .dashboard-frame-preview {
    height: 100%;
}

#tasksWrap.is-customize-mode .dashboard-frame-preview .task-item-body,
#tasksWrap.is-customize-mode .dashboard-frame-preview a.task-item-body {
    pointer-events: none;
}

#tasksWrap.is-customize-mode .bricqer-dashboard-section-toggle:disabled {
    cursor: default;
    opacity: 1;
}

.dashboard-frame-drag-handle {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 2rem;
    min-height: 2rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: element;
}

.dashboard-frame-drag-handle:hover {
    color: var(--text);
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.08);
}

.dashboard-frame-drag-handle:active {
    cursor: grabbing;
}

.dashboard-frame-drag-handle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.dashboard-frame-item.is-dragging {
    opacity: 0.55;
}

.dashboard-frame-item.is-drag-over {
    box-shadow: inset 0 3px 0 0 var(--primary);
}

.bricqer-orders-frame-header {
    display: block;
}

.bricqer-orders-frame-header .bricqer-dashboard-section-toggle {
    width: 100%;
}

.task-item.dashboard-frame-item:not(.task-item--nested) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafbfc;
}

.task-item-body {
    min-width: 0;
}

.task-item-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
}

.task-item-desc {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.task-item--nested {
    flex-direction: column;
    align-items: stretch;
}

.task-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bricqer-orders-frame-toggle {
    align-items: center;
}

.bricqer-orders-frame-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.bricqer-orders-frame .task-subframe {
    margin-top: 0;
}

.bricqer-invoice-dashboard-segment.bricqer-dashboard-section {
    margin-top: 0;
}

.bricqer-invoice-dashboard-segment.bricqer-dashboard-section + .bricqer-invoice-dashboard-segment.bricqer-dashboard-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.bricqer-order-action--lexware-credit-note img {
    filter: hue-rotate(300deg) saturate(1.2);
}

.bricqer-order-item-body--todo {
    display: grid;
    gap: 0.2rem;
}

.bricqer-order-item-note-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

.bricqer-order-item-note-title--untitled {
    font-weight: 500;
    font-style: italic;
    color: var(--muted);
}

.bricqer-order-item-actions .bricqer-order-note-btn {
    margin-left: auto;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
}

.bricqer-order-note-btn .btn-icon-inner {
    width: 1.35rem;
    height: 1.35rem;
}

.bricqer-order-note-modal-body {
    display: grid;
    gap: 1rem;
}

.bricqer-order-note-field {
    display: grid;
    gap: 0.35rem;
}

.bricqer-order-note-field-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.bricqer-order-note-field input,
.bricqer-order-note-field textarea {
    width: 100%;
}

.ls-user-todo-order-picker .bricqer-split-btn {
    display: flex;
    width: 100%;
}

.ls-user-todo-order-picker .bricqer-split-menu {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
}

.ls-user-todo-order-picker .bricqer-split-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-align: left;
}

.ls-user-todo-order-picker .bricqer-split-menu-item {
    white-space: normal;
}

.ls-user-todo-order-picker.is-disabled .bricqer-split-btn-part {
    opacity: 0.65;
    cursor: wait;
    pointer-events: none;
}

.bricqer-split-menu-item.is-selected {
    background: rgba(255, 255, 255, 0.18);
}

.bricqer-split-menu-item.is-selected:hover {
    background: rgba(255, 255, 255, 0.24);
}

.bricqer-order-note-todo-switch {
    margin-top: 0.25rem;
}

.bricqer-order-note-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.bricqer-order-note-error {
    margin: 0;
}

.bricqer-order-item--cancelled {
    border-left: 3px solid #f87171;
}

.task-subframe {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.task-subframe-empty {
    margin: 0;
}

.task-count {
    flex-shrink: 0;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #fff7e6;
    color: var(--warning);
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bricqer-order-group + .bricqer-order-group {
    margin-top: 1.25rem;
}

.bricqer-dashboard-section + .bricqer-dashboard-section {
    margin-top: 1rem;
}

.bricqer-dashboard-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bricqer-dashboard-section-header > .bricqer-dashboard-section-toggle:not(.bricqer-dashboard-section-toggle--chevron) {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
}

.bricqer-dashboard-section-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    flex-shrink: 0;
}

.bricqer-dashboard-section-header > .bricqer-dashboard-section-tools,
.bricqer-dashboard-section-header > .bricqer-dashboard-section-toggle--chevron,
.bricqer-dashboard-section-header > .bricqer-create-shipment-group-btn,
.bricqer-dashboard-section-header > .bricqer-complete-all-orders-btn {
    flex: 0 0 auto;
    flex-shrink: 0;
}

.bricqer-dashboard-section-toggle--chevron {
    flex: 0 0 auto;
    width: auto;
    align-self: center;
    justify-content: center;
    padding: 0.35rem 0.45rem;
    margin-left: 0.1rem;
}

.bricqer-orders-frame-header--with-actions .bricqer-orders-frame-count {
    flex: 0 0 auto;
    align-self: center;
}

.bricqer-dashboard-section-tools {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.bricqer-dashboard-section-color-btn,
.bricqer-dashboard-section-reverse-orders-btn,
.bricqer-dashboard-reverse-segments-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
}

.bricqer-dashboard-section-color-btn:hover,
.bricqer-dashboard-section-color-btn[aria-expanded="true"],
.bricqer-dashboard-section-reverse-orders-btn:hover,
.bricqer-dashboard-reverse-segments-btn:hover {
    color: var(--text);
    border-color: #cbd5e1;
    background: #f8fafc;
}

.bricqer-dashboard-section-reverse-orders-btn.is-active,
.bricqer-dashboard-reverse-segments-btn.is-active {
    color: var(--primary);
    border-color: #93c5fd;
    background: #eff6ff;
}

.bricqer-dashboard-section-color-btn:focus-visible,
.bricqer-dashboard-section-reverse-orders-btn:focus-visible,
.bricqer-dashboard-reverse-segments-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.bricqer-orders-frame-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    align-self: center;
}

.bricqer-dashboard-section-color-popover {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 30;
    width: min(17rem, calc(100vw - 2rem));
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.bricqer-dashboard-section-color-popover[hidden] {
    display: none;
}

.bricqer-dashboard-section-color-popover-title {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.bricqer-dashboard-section-color-contrast-warning {
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #7a3200;
    background: #fff3e6;
    border: 1px solid #f0c080;
    border-radius: 6px;
}

.bricqer-dashboard-section-color-contrast-warning[hidden] {
    display: none;
}

.bricqer-dashboard-section-color-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.bricqer-dashboard-section-color-field label {
    font-size: 0.84rem;
    color: var(--muted);
}

.bricqer-dashboard-section-color-field input[type="color"] {
    width: 2.75rem;
    height: 2rem;
    padding: 0.1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.bricqer-dashboard-section-color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.65rem 0 0.75rem;
}

.bricqer-dashboard-section-color-preset {
    width: 1.55rem;
    height: 1.55rem;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    cursor: pointer;
}

.bricqer-dashboard-section-color-preset:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.bricqer-dashboard-section-color-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.bricqer-dashboard-section.has-section-colors .bricqer-order-item,
.bricqer-dashboard-section-orders.has-section-colors .bricqer-order-item {
    background: var(--dashboard-section-bg);
    color: var(--dashboard-section-text);
    border-color: var(--dashboard-section-border);
}

.bricqer-dashboard-section.has-section-colors .bricqer-order-item-meta,
.bricqer-dashboard-section-orders.has-section-colors .bricqer-order-item-meta {
    color: inherit;
    opacity: 0.85;
}

.bricqer-orders-frame .bricqer-dashboard-section-header {
    padding-right: 0.15rem;
}

.bricqer-dashboard-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.bricqer-orders-frame-header:not(.bricqer-orders-frame-header--with-actions) .bricqer-dashboard-section-toggle {
    width: 100%;
}

.bricqer-dashboard-section-header > .bricqer-dashboard-section-toggle:not(.bricqer-dashboard-section-toggle--chevron) {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
}

.bricqer-dashboard-section-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

.bricqer-dashboard-section-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0.35rem 0.5rem;
    min-width: 0;
    overflow: hidden;
}

.bricqer-dashboard-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bricqer-dashboard-section-count {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
    flex-shrink: 0;
    white-space: nowrap;
}

.bricqer-dashboard-section-chevron {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    margin-top: -0.15rem;
}

.bricqer-dashboard-section.is-collapsed .bricqer-dashboard-section-chevron {
    transform: rotate(-45deg);
    margin-top: 0.15rem;
}

.bricqer-dashboard-section-body {
    margin-top: 0.65rem;
}

.bricqer-dashboard-section.is-collapsed .bricqer-dashboard-section-body {
    display: none;
}

.bricqer-dashboard-section-empty {
    margin: 0;
    font-size: 0.88rem;
}

.bricqer-order-group-title {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.bricqer-order-group-count {
    color: var(--muted);
    font-weight: 500;
}

.bricqer-order-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}

.bricqer-order-group-header .bricqer-order-group-title {
    margin: 0;
}

.shipment-groups-plus-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.shipment-groups-plus-section-title {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

.shipment-groups-plus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 0.75rem;
}

.shipment-groups-plus-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    background: var(--surface, #fff);
}

.shipment-groups-plus-card--persisted {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.shipment-groups-plus-card--opportunity {
    border-color: #fde68a;
    background: #fffbeb;
}

.shipment-groups-plus-card-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.shipment-groups-plus-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.shipment-groups-plus-card-meta {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.35;
}

.shipment-groups-plus-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.bricqer-order-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bricqer-order-country {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 2rem;
    gap: 0.12rem;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    user-select: none;
}

.bricqer-order-country-flag {
    font-size: 1.15rem;
    line-height: 1;
}

.bricqer-order-country-code {
    font-size: 0.62rem;
}

.bricqer-order-item--with-actions {
    cursor: default;
    overflow: visible;
}

.bricqer-order-item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
    overflow: visible;
}

.bricqer-order-item-actions .btn-icon {
    background: rgba(255, 255, 255, 0.72);
}

.bricqer-order-tracking-btn.btn-icon {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.bricqer-order-tracking-btn .btn-icon-inner {
    width: 100%;
    height: 100%;
}

.bricqer-order-tracking-btn img,
.bricqer-order-tracking-btn svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.bricqer-order-remove-btn.btn-icon,
.failed-sendungsnummer-remove-btn.btn-icon {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.28);
    color: #dc2626;
}

.bricqer-order-remove-btn .btn-icon-inner,
.failed-sendungsnummer-remove-btn .btn-icon-inner {
    width: 100%;
    height: 100%;
}

.bricqer-order-remove-btn img,
.bricqer-order-remove-btn svg,
.failed-sendungsnummer-remove-btn img,
.failed-sendungsnummer-remove-btn svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.bricqer-order-remove-btn:hover,
.bricqer-order-remove-btn:focus-visible,
.failed-sendungsnummer-remove-btn:hover,
.failed-sendungsnummer-remove-btn:focus-visible {
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.45);
    color: #b91c1c;
}

.bricqer-order-item--paid .bricqer-order-item-actions .btn-icon,
.bricqer-order-item--ready .bricqer-order-item-actions .btn-icon,
.bricqer-order-item--open .bricqer-order-item-actions .btn-icon {
    background: rgba(255, 255, 255, 0.82);
}

.bricqer-order-item-actions .bricqer-order-note-btn--todo-off.btn-icon,
.bricqer-order-item-actions .bricqer-order-note-btn--todo-on.btn-icon,
.bricqer-order-item--paid .bricqer-order-item-actions .bricqer-order-note-btn--todo-off.btn-icon,
.bricqer-order-item--paid .bricqer-order-item-actions .bricqer-order-note-btn--todo-on.btn-icon,
.bricqer-order-item--ready .bricqer-order-item-actions .bricqer-order-note-btn--todo-off.btn-icon,
.bricqer-order-item--ready .bricqer-order-item-actions .bricqer-order-note-btn--todo-on.btn-icon,
.bricqer-order-item--open .bricqer-order-item-actions .bricqer-order-note-btn--todo-off.btn-icon,
.bricqer-order-item--open .bricqer-order-item-actions .bricqer-order-note-btn--todo-on.btn-icon,
.bricqer-order-item--ship-ready .bricqer-order-item-actions .bricqer-order-note-btn--todo-off.btn-icon,
.bricqer-order-item--ship-ready .bricqer-order-item-actions .bricqer-order-note-btn--todo-on.btn-icon,
.bricqer-order-item--missing-invoice .bricqer-order-item-actions .bricqer-order-note-btn--todo-off.btn-icon,
.bricqer-order-item--missing-invoice .bricqer-order-item-actions .bricqer-order-note-btn--todo-on.btn-icon {
    background: #991b1b;
    border-color: #991b1b;
    color: #fef2f2;
}

.bricqer-order-item-actions .bricqer-order-note-btn--todo-off.btn-icon:hover,
.bricqer-order-item-actions .bricqer-order-note-btn--todo-on.btn-icon:hover,
.bricqer-order-item--paid .bricqer-order-item-actions .bricqer-order-note-btn--todo-off.btn-icon:hover,
.bricqer-order-item--paid .bricqer-order-item-actions .bricqer-order-note-btn--todo-on.btn-icon:hover,
.bricqer-order-item--ready .bricqer-order-item-actions .bricqer-order-note-btn--todo-off.btn-icon:hover,
.bricqer-order-item--ready .bricqer-order-item-actions .bricqer-order-note-btn--todo-on.btn-icon:hover,
.bricqer-order-item--open .bricqer-order-item-actions .bricqer-order-note-btn--todo-off.btn-icon:hover,
.bricqer-order-item--open .bricqer-order-item-actions .bricqer-order-note-btn--todo-on.btn-icon:hover,
.bricqer-order-item--ship-ready .bricqer-order-item-actions .bricqer-order-note-btn--todo-off.btn-icon:hover,
.bricqer-order-item--ship-ready .bricqer-order-item-actions .bricqer-order-note-btn--todo-on.btn-icon:hover,
.bricqer-order-item--missing-invoice .bricqer-order-item-actions .bricqer-order-note-btn--todo-off.btn-icon:hover,
.bricqer-order-item--missing-invoice .bricqer-order-item-actions .bricqer-order-note-btn--todo-on.btn-icon:hover {
    background: #7f1d1d;
    border-color: #7f1d1d;
    color: #ffffff;
}

.bricqer-order-item-main {
    flex: 1;
    min-width: 0;
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.bricqer-order-item-main:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

.bricqer-order-item-mobile-toggle,
.bricqer-order-item-details-link {
    display: none;
}

.bricqer-order-item--mobile-collapsible {
    text-align: left;
}

.bricqer-order-item-content {
    display: contents;
}

.bricqer-order-item--mobile-collapsible:hover {
    filter: brightness(0.96);
}

@media (max-width: 640px) {
    .bricqer-order-list {
        gap: 0.15rem;
    }

    .bricqer-order-item--mobile-collapsible {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        overflow: hidden;
        border-radius: 6px;
    }

    .bricqer-order-item--mobile-collapsible > .bricqer-order-country {
        display: none;
    }

    .bricqer-order-item--mobile-collapsible.bricqer-order-item--mobile-expanded > .bricqer-order-country {
        display: flex;
        width: 1.55rem;
        margin: 0.35rem 0.55rem 0;
        font-size: 0.55rem;
    }

    .bricqer-order-item--mobile-collapsible.bricqer-order-item--mobile-expanded > .bricqer-order-country .bricqer-order-country-flag {
        font-size: 0.9rem;
    }

    .bricqer-order-item-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.4rem;
        width: 100%;
        min-height: 0;
        padding: 0.24rem 0.5rem;
        border: none;
        background: transparent;
        font: inherit;
        color: inherit;
        text-align: left;
        cursor: pointer;
    }

    .bricqer-order-item-mobile-toggle:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: -2px;
        border-radius: 4px;
    }

    .bricqer-order-item-mobile-summary {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.45rem;
        flex: 1;
        min-width: 0;
    }

    .bricqer-order-item-mobile-name {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 600;
        font-size: 0.74rem;
        line-height: 1.15;
    }

    .bricqer-order-item-mobile-number {
        flex-shrink: 0;
        max-width: 42%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.66rem;
        line-height: 1.15;
        color: var(--muted);
        text-align: right;
    }

    .bricqer-order-mobile-chevron {
        width: 0.38rem;
        height: 0.38rem;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        flex-shrink: 0;
        opacity: 0.55;
        transition: transform 0.15s ease;
        margin-left: 0.15rem;
    }

    .bricqer-order-item--mobile-expanded .bricqer-order-mobile-chevron {
        transform: rotate(225deg);
        margin-top: 0;
    }

    .bricqer-order-item-content {
        display: none;
        flex-direction: column;
        gap: 0.35rem;
        width: 100%;
        padding: 0 0.55rem 0.4rem;
        border-top: 1px solid rgba(15, 23, 42, 0.07);
    }

    .bricqer-order-item--mobile-expanded .bricqer-order-item-content {
        display: flex;
    }

    .bricqer-order-item-content .bricqer-order-item-main {
        padding: 0.28rem 0 0;
        pointer-events: none;
        cursor: default;
    }

    .bricqer-order-item-content .bricqer-order-item-main .bricqer-order-item-head,
    .bricqer-order-item-content .bricqer-order-item-main .bricqer-order-status-bubble {
        display: none;
    }

    .bricqer-order-item-content .bricqer-order-item-meta {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .bricqer-order-item-details-link {
        display: inline-flex;
        align-self: flex-start;
        padding: 0;
        border: none;
        background: none;
        color: var(--primary);
        font: inherit;
        font-size: 0.72rem;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: underline;
        cursor: pointer;
    }

    .bricqer-order-item-details-link:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
        border-radius: 4px;
    }

    .bricqer-order-item-content .bricqer-order-item-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.22rem;
        margin-left: 0;
        width: 100%;
    }

    .bricqer-order-item-content .btn-icon {
        width: 1.75rem;
        height: 1.75rem;
        min-width: 1.75rem;
    }

    .bricqer-order-item-content .btn-icon-inner {
        width: 0.92rem;
        height: 0.92rem;
    }

    .bricqer-order-item-content .bricqer-split-btn {
        border-radius: 6px;
    }

    .bricqer-order-item-content .bricqer-split-btn-part {
        padding: 0.28rem 0.45rem;
        font-size: 0.7rem;
        line-height: 1.1;
        min-height: 1.75rem;
    }

    .bricqer-order-item-content .bricqer-split-btn-toggle,
    .bricqer-order-item-content .bricqer-split-btn-settings {
        min-width: 1.65rem;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .bricqer-order-item-content .bricqer-split-btn-icon {
        width: 0.85rem;
        height: 0.85rem;
    }
}

.bricqer-order-complete-btn {
    flex-shrink: 0;
    align-self: center;
    white-space: nowrap;
}

.bricqer-split-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    flex-shrink: 0;
    max-width: 100%;
    border-radius: 8px;
    overflow: visible;
    background: var(--bricqer-action-gradient);
    box-shadow: var(--bricqer-action-shadow);
}

.bricqer-split-btn.is-open {
    z-index: 2;
    box-shadow: var(--bricqer-action-shadow);
}

.bricqer-order-list > li:has(.bricqer-split-btn.is-open),
li.bricqer-order-item:has(.bricqer-split-btn.is-open) {
    position: relative;
    z-index: 40;
}

.bricqer-split-btn-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.bricqer-split-btn-part {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.52rem 0.82rem;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease;
}

.bricqer-split-btn-main {
    flex: 1 1 auto;
    justify-content: flex-start;
    padding-right: 0.75rem;
}

.bricqer-split-btn:has(.bricqer-split-btn-toggle) .bricqer-split-btn-main,
.bricqer-split-btn:has(.bricqer-split-btn-settings) .bricqer-split-btn-main {
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.bricqer-split-btn-toggle,
.bricqer-split-btn-settings {
    flex: 0 0 auto;
    padding-left: 0.62rem;
    padding-right: 0.62rem;
    min-width: 2.15rem;
}

.bricqer-order-complete-settings-btn.has-custom-complete-order-settings {
    background: linear-gradient(180deg, #dc2626 0%, var(--danger) 55%, #912018 100%);
}

.bricqer-order-complete-settings-btn.has-custom-complete-order-settings:hover {
    background: linear-gradient(180deg, #ef4444 0%, #c93428 55%, #a12820 100%);
}

.bricqer-order-complete-settings-btn.has-custom-complete-order-settings:active {
    background: linear-gradient(180deg, #991b1b 0%, #912018 55%, #7f1d1d 100%);
}

.bricqer-order-action-wrap.has-custom-complete-order-settings .bricqer-split-btn-toggle {
    background: linear-gradient(180deg, #dc2626 0%, var(--danger) 55%, #912018 100%);
}

.bricqer-order-action-wrap.has-custom-complete-order-settings .bricqer-split-btn-toggle:hover {
    background: linear-gradient(180deg, #ef4444 0%, #c93428 55%, #a12820 100%);
}

.bricqer-split-btn-part:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bricqer-split-btn-part:active {
    background: rgba(0, 0, 0, 0.08);
}

.bricqer-split-btn-part:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: -2px;
    z-index: 1;
}

.bricqer-split-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.96;
}

.bricqer-split-btn-label {
    white-space: nowrap;
}

.bricqer-split-chevron {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.15s ease;
    opacity: 0.9;
}

.bricqer-split-btn.is-open .bricqer-split-chevron {
    transform: rotate(180deg);
}

.bricqer-split-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    z-index: 100;
    width: max-content;
    min-width: 100%;
    max-width: min(20rem, calc(100vw - 2rem));
    margin: 0;
    padding: 0.2rem;
    border: 0;
    border-radius: 8px;
    background: var(--bricqer-action-gradient-active);
    box-shadow:
        0 8px 22px rgba(29, 78, 216, 0.28),
        0 0 0 1px rgba(29, 78, 216, 0.7);
}

.bricqer-split-menu-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.72rem;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.bricqer-split-menu-item:hover {
    background: rgba(255, 255, 255, 0.14);
}

.bricqer-split-menu-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: -2px;
}

.bricqer-split-menu-item.is-unaffordable,
.bricqer-split-menu-item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bricqer-split-menu-item.is-unaffordable:hover,
.bricqer-split-menu-item:disabled:hover {
    background: transparent;
}

.bricqer-order-item-actions .bricqer-split-btn {
    margin-left: 0.25rem;
    align-self: center;
}

.bricqer-order-invoice-btn {
    flex-shrink: 0;
    align-self: center;
    white-space: nowrap;
}

.bricqer-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fafbfc;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.bricqer-order-item--clickable:hover,
.bricqer-order-item--with-actions:hover {
    filter: brightness(0.96);
}

.bricqer-order-item.bricqer-order-item--tutorial-meldung {
    background: #d1fae5;
    border-color: #a7f3d0;
}

.bricqer-order-item.bricqer-order-item--tutorial-meldung .bricqer-order-item-main {
    background: transparent;
}

.bricqer-order-item.bricqer-order-item--tutorial-meldung .tutorial-meldung-open-btn {
    width: 100%;
}

.bricqer-order-item.bricqer-order-item--tutorial-meldung:hover,
.bricqer-order-item.bricqer-order-item--tutorial-meldung:focus-within {
    background: #bbf7d0;
    filter: none;
}

.bricqer-dashboard-section.has-section-colors .bricqer-order-item.bricqer-order-item--tutorial-meldung,
.bricqer-dashboard-section-orders.has-section-colors .bricqer-order-item.bricqer-order-item--tutorial-meldung {
    background: #d1fae5;
    border-color: #a7f3d0;
    color: inherit;
}

.bricqer-order-item-actions .tutorial-meldung-dismiss-btn {
    color: #b91c1c;
}

.bricqer-order-item.bricqer-order-item--plugin-todo {
    background: #dbeafe;
    border-color: #93c5fd;
}

.bricqer-order-item.bricqer-order-item--plugin-todo .bricqer-order-item-main {
    background: transparent;
}

.bricqer-order-item.bricqer-order-item--plugin-todo .plugin-todo-open-btn {
    width: 100%;
}

.bricqer-order-item.bricqer-order-item--plugin-todo:hover,
.bricqer-order-item.bricqer-order-item--plugin-todo:focus-within {
    background: #bfdbfe;
    filter: none;
}

.bricqer-dashboard-section.has-section-colors .bricqer-order-item.bricqer-order-item--plugin-todo,
.bricqer-dashboard-section-orders.has-section-colors .bricqer-order-item.bricqer-order-item--plugin-todo {
    background: #dbeafe;
    border-color: #93c5fd;
    color: inherit;
}

.bricqer-order-item-actions .plugin-todo-dismiss-btn {
    color: #b91c1c;
}

.bricqer-order-item.bricqer-order-item--application-todo {
    background: #fff7e6;
    border-color: #fcd34d;
}

.bricqer-order-item.bricqer-order-item--application-todo .bricqer-order-item-main {
    background: transparent;
}

.bricqer-order-item.bricqer-order-item--application-todo:hover,
.bricqer-order-item.bricqer-order-item--application-todo:focus-within {
    background: #ffedd5;
    filter: none;
}

.bricqer-dashboard-section.has-section-colors .bricqer-order-item.bricqer-order-item--application-todo,
.bricqer-dashboard-section-orders.has-section-colors .bricqer-order-item.bricqer-order-item--application-todo {
    background: #fff7e6;
    border-color: #fcd34d;
    color: inherit;
}

.application-todo-item-actions,
.widerruf-todo-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-end;
}

.bricqer-order-item--clickable:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.bricqer-order-item-body {
    min-width: 0;
}

.bricqer-order-item-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.6rem;
}

.bricqer-order-group-select {
    display: inline-flex;
    align-items: center;
    margin-right: 0.15rem;
}

.bricqer-order-group-select input {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.bricqer-order-group-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.bricqer-order-group-member-label {
    font-size: 0.82rem;
    white-space: nowrap;
}

.shipment-group-primary-picker {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shipment-group-primary-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.modal-card--shipment-group {
    max-width: 32rem;
    overflow: hidden;
    border: 1px solid #dbeafe;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.shipment-group-create-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #dbeafe;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.shipment-group-create-header-main {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    min-width: 0;
}

.shipment-group-create-header-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    background: #fff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.06);
}

.shipment-group-create-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.shipment-group-create-body {
    padding: 0.85rem 1rem 0.95rem;
    gap: 0.85rem;
    background: #fff;
}

.shipment-group-create-section {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: #fafbfc;
}

.shipment-group-create-section--method {
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
}

.shipment-group-create-weight-section {
    background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
}

.shipment-group-create-section-head {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.shipment-group-create-section-title {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #475569;
}

.shipment-group-create-section-hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--muted, #64748b);
}

.shipment-group-primary-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.68rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.shipment-group-primary-card:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.shipment-group-primary-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shipment-group-primary-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    flex: 1 1 auto;
}

.shipment-group-primary-card-label {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text, #0f172a);
    line-height: 1.3;
}

.shipment-group-primary-card-meta {
    font-size: 0.8rem;
    color: var(--muted, #64748b);
    line-height: 1.35;
    word-break: break-word;
}

.shipment-group-primary-card-check {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.shipment-group-primary-card:has(input:checked) {
    border-color: #3b82f6;
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.shipment-group-primary-card:has(input:checked) .shipment-group-primary-card-check {
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: inset 0 0 0 3px #fff;
}

.shipment-group-weight-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.shipment-group-weight-stat {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.shipment-group-weight-stat-label {
    font-size: 0.74rem;
    color: var(--muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.shipment-group-weight-stat-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text, #0f172a);
    line-height: 1.2;
}

.shipment-group-weight-fields {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.modal-card--shipment-group .form-field > span {
    font-size: 0.82rem;
}

.shipment-group-create-info {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 9px;
    border: 1px solid #fde68a;
    background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%);
    color: #92400e;
}

.shipment-group-create-info-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.shipment-group-create-info p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
}

.shipment-group-create-footer {
    padding: 0.72rem 1rem 0.85rem;
    border-top: 1px solid var(--border, #e2e8f0);
    background: #f8fafc;
}

.modal-card--shipment-group .modal-card-footer--compact .btn-primary {
    min-width: 11rem;
}

.bricqer-dashboard-section-header .bricqer-create-shipment-group-btn {
    flex-shrink: 0;
    align-self: center;
}

.shipment-group-opportunity-banner {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin: 0 0 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid #93c5fd;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e3a8a;
    box-shadow: 0 1px 0 rgba(30, 64, 175, 0.06);
}

.shipment-group-opportunity-banner-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: #fff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.shipment-group-opportunity-banner-content {
    min-width: 0;
    flex: 1 1 auto;
}

.shipment-group-opportunity-banner-title {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e40af;
}

.shipment-group-opportunity-banner-intro,
.shipment-group-opportunity-banner-hint {
    margin: 0 0 0.45rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #1e3a8a;
}

.shipment-group-opportunity-banner-hint {
    margin-bottom: 0.65rem;
}

.shipment-group-opportunity-banner-clusters {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.shipment-group-opportunity-banner-clusters li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #bfdbfe;
}

.shipment-group-opportunity-banner-cluster-label {
    font-weight: 600;
    font-size: 0.88rem;
}

.shipment-group-opportunity-banner-cluster-count {
    font-size: 0.82rem;
    color: #3730a3;
}

.shipment-group-opportunity-select-btn,
.shipment-group-opportunity-banner .bricqer-create-shipment-group-btn {
    flex-shrink: 0;
}

.shipment-group-opportunity-select-btn {
    margin-left: auto;
}

.shipment-group-opportunity-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.15rem;
}

.shipment-group-future-banner {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    position: relative;
    margin: 0 0 0.85rem;
    padding: 0.85rem 2.5rem 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid #fcd34d;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
}

.shipment-group-future-banner-dismiss-btn {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #b45309;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.shipment-group-future-banner-dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.75);
    color: #92400e;
}

.shipment-group-future-banner-content {
    flex: 1 1 auto;
    min-width: 0;
}

.shipment-group-future-banner-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #fde68a;
    font-weight: 700;
    line-height: 1;
}

.shipment-group-future-banner-title {
    margin: 0 0 0.25rem;
    font-size: 0.96rem;
    font-weight: 700;
    color: #b45309;
}

.shipment-group-future-banner-intro,
.shipment-group-future-banner-hint {
    margin: 0 0 0.4rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.shipment-group-future-banner-clusters {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.shipment-group-future-banner-clusters li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #fde68a;
    font-size: 0.86rem;
}

.shipment-group-future-banner-cluster-label {
    font-weight: 600;
}

.shipment-group-future-section-banner {
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.86rem;
    line-height: 1.45;
}

.shipment-group-future-order-hint {
    display: block;
    margin-top: 0.2rem;
    color: #b45309;
    font-size: 0.82rem;
    line-height: 1.4;
}

.bricqer-order-item-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: inherit;
}

.bricqer-order-status-bubble {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    border: 1px solid transparent;
    letter-spacing: 0.01em;
}

.bricqer-order-status-bubble--missing-invoice {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.bricqer-order-status-bubble--with-invoice {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.bricqer-order-status-bubble--paid {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.bricqer-order-status-bubble--ready {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fdba74;
}

.bricqer-order-status-bubble--open {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.bricqer-order-status-bubble--shipped {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #a5b4fc;
}

.bricqer-order-status-bubble--cancelled {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.bricqer-order-status-bubble--default {
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
    border-color: rgba(15, 23, 42, 0.12);
}

.bricqer-order-status-bubble--legacy-archive {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #c4b5fd;
}

.bricqer-order-status-bubble--legacy-archive-details {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #c4b5fd;
}

.bricqer-order-status-bubble--legacy-archive-pending {
    background: rgba(15, 23, 42, 0.06);
    color: #64748b;
    border-color: rgba(15, 23, 42, 0.12);
}

.bricqer-order-item--legacy-archive {
    background: #f5f3ff;
    color: #4c1d95;
    border-color: #ddd6fe;
}

.bricqer-order-item--legacy-archive:hover,
.bricqer-order-item--legacy-archive:focus-within {
    background: #ede9fe;
    border-color: #c4b5fd;
}

.bricqer-order-item--failed-sendungsnummer {
    border-color: #fcd34d;
    background: #fffbeb;
}

.bricqer-order-item--failed-sendungsnummer .bricqer-order-item-link,
.bricqer-order-item--failed-sendungsnummer .bricqer-order-item-main.bricqer-order-item-link {
    text-decoration: none;
    color: inherit;
}

.bricqer-order-item--failed-sendungsnummer:hover,
.bricqer-order-item--failed-sendungsnummer:focus-within {
    background: #fef3c7;
}

.failed-sendungsnummer-lookup-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.12em;
    cursor: pointer;
}

.failed-sendungsnummer-lookup-link:hover,
.failed-sendungsnummer-lookup-link:focus-visible {
    color: #1d4ed8;
}

.sendungsnummer-usage-list {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
}

.sendungsnummer-usage-list li + li {
    margin-top: 0.2rem;
}

.sendungsnummer-usage-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 0.85rem 0;
}

.bricqer-order-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin-top: 0.15rem;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}


.bricqer-order-item--paid,
.bricqer-order-item--ship-ready,
.bricqer-order-item--missing-invoice,
.bricqer-order-item--ready,
.bricqer-order-item--open,
.bricqer-order-item--cancelled {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
    border-left-width: 4px;
}

.bricqer-order-item--paid {
    border-left-color: #10b981;
}

.bricqer-order-item--ship-ready {
    border-left-color: #3b82f6;
}

.bricqer-order-item--missing-invoice {
    border-left-color: #f59e0b;
}

.bricqer-order-item--ready {
    border-left-color: #f97316;
}

.bricqer-order-item--open {
    border-left-color: #ef4444;
}

.bricqer-order-item--cancelled {
    border-left-color: #f87171;
}

.settings-frame + .settings-frame {
    margin-top: 1rem;
}

.settings-frame h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.bestellabschluss-settings-form {
    margin-top: 0.75rem;
}

.bestellabschluss-transfer-title {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.bestellabschluss-settings-checkbox {
    align-items: flex-start;
}

.bestellabschluss-settings-checkbox-label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.bestellabschluss-settings-checkbox.is-disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.bestellabschluss-settings-checkbox.is-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.settings-switch.is-disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.settings-switch.is-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.bestellabschluss-settings-soon {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.84rem;
    font-weight: 400;
}

.settings-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.settings-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-switch-slider {
    position: relative;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.15s ease;
}

.settings-switch-slider::after {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
    transition: transform 0.15s ease;
}

.settings-switch input:checked + .settings-switch-slider {
    background: var(--primary);
}

.settings-switch input:checked + .settings-switch-slider::after {
    transform: translateX(1.25rem);
}

.settings-switch input:focus-visible + .settings-switch-slider {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.settings-switch-label {
    font-weight: 500;
    color: var(--text);
}

.settings-secret-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.settings-secret-field-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    width: fit-content;
}

.settings-secret-field-toggle input {
    margin: 0;
}

.settings-secret-field-toggle input:disabled + span {
    opacity: 0.55;
    cursor: not-allowed;
}

.settings-segmented {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.settings-segmented label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.settings-segmented input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-segmented span {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
}

.settings-segmented input:checked + span {
    background: #fff;
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--border);
}

.settings-segmented input:focus-visible + span {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.bestellabschluss-invoice-hours {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    font-size: 0.92rem;
    color: var(--text);
}

.bestellabschluss-invoice-hours input[type="number"] {
    width: 4.5rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
}

.bestellabschluss-settings-subsection {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.bestellabschluss-email-smtp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.bestellabschluss-outbound-section {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border, #e2e8f0);
}

.bestellabschluss-outbound-title {
    margin: 0;
    font-size: 1rem;
}

.bestellabschluss-outbound-hint {
    margin: -0.35rem 0 0;
}

.bestellabschluss-email-test-upload {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.bestellabschluss-smtp-password-hint {
    margin: -0.35rem 0 0;
}

.bestellabschluss-smtp-credentials-hint {
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.bestellabschluss-email-body {
    min-height: 7rem;
    resize: vertical;
}

.bestellabschluss-email-placeholders {
    margin-top: 0.55rem;
}

.bestellabschluss-email-placeholders-title {
    margin: 0 0 0.15rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
}

.bestellabschluss-email-placeholders-hint {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.bestellabschluss-email-attach-hint {
    margin: -0.15rem 0 0;
    max-width: 42rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.bestellabschluss-email-placeholder-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.bestellabschluss-email-placeholder-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.bestellabschluss-email-placeholder-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--text);
    cursor: pointer;
    font: inherit;
}

.bestellabschluss-email-placeholder-tag:hover,
.bestellabschluss-email-placeholder-tag:focus-visible {
    border-color: #9ec5eb;
    background: #f0f6ff;
    outline: none;
}

.bestellabschluss-email-placeholder-tag code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--primary);
}

.bestellabschluss-email-placeholder-list .muted {
    font-size: 0.82rem;
    line-height: 1.35;
}

.readonly-value {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-backdrop--stack {
    z-index: 110;
}

.modal-card {
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.modal-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.modal-card--compact {
    padding: 0.95rem 1.05rem;
}

.modal-card--compact h2 {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
}

.modal-card--compact > .muted {
    margin: 0 0 0.45rem;
    font-size: 0.86rem;
    line-height: 1.35;
}

.modal-card--compact .stack {
    gap: 0.45rem;
}

.modal-card--compact input,
.modal-card--compact select {
    padding: 0.45rem 0.6rem;
}

.modal-card--compact .form-actions {
    margin-top: 0.25rem;
}

.modal-card--compact .bestellabschluss-smtp-password-hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
}

.modal-card--wide {
    max-width: 760px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.modal-card--confirm {
    max-width: 28rem;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-card-header--solo {
    padding: 1rem 1.25rem;
}

.complete-order-settings-modal {
    max-width: 32rem;
}

.complete-order-settings-modal-intro {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    line-height: 1.4;
}

.complete-order-settings-section + .complete-order-settings-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.complete-order-settings-section h3 {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

.complete-order-settings-switch-list {
    display: grid;
    gap: 0.65rem;
}

.complete-order-settings-switch-list .complete-order-settings-switch[hidden] {
    display: none;
}

.complete-order-settings-switch-list .settings-switch {
    cursor: pointer;
}

.complete-order-settings-modal-footer {
    justify-content: flex-end;
}

.complete-order-progress-modal {
    width: min(28rem, calc(100vw - 2rem));
}

.complete-order-progress-order-label {
    margin: 0 0 1rem;
}

.complete-order-progress-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.complete-order-progress-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--muted);
}

.complete-order-progress-step.is-running {
    color: var(--text);
    border-color: #93c5fd;
    background: #eff6ff;
}

.complete-order-progress-step.is-done {
    color: #166534;
    border-color: #86efac;
    background: #f0fdf4;
}

.complete-order-progress-step.is-error {
    color: #991b1b;
    border-color: #fca5a5;
    background: #fef2f2;
}

.complete-order-progress-step-icon {
    flex: 0 0 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.complete-order-progress-step.is-pending .complete-order-progress-step-icon::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #cbd5e1;
}

.complete-order-progress-step.is-running .complete-order-progress-step-icon::before {
    content: '';
    width: 1rem;
    height: 1rem;
    border: 2px solid #93c5fd;
    border-top-color: #2563eb;
    border-radius: 999px;
    animation: complete-order-progress-spin 0.8s linear infinite;
}

.complete-order-progress-step.is-done .complete-order-progress-step-icon::before {
    content: '✓';
    color: #16a34a;
    font-weight: 700;
}

.complete-order-progress-step.is-error .complete-order-progress-step-icon::before {
    content: '✕';
    color: #dc2626;
    font-weight: 700;
}

.complete-order-progress-step-label {
    line-height: 1.4;
}

.complete-order-progress-success-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.5rem;
    font-weight: 700;
}

.complete-order-progress-success-warning {
    margin-top: 1rem;
    text-align: left;
}

.complete-order-progress-success-warning .alert {
    margin: 0;
}

.complete-order-progress-success-summary {
    margin-top: 1rem;
    text-align: left;
}

.complete-order-progress-error-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: 700;
}

.complete-order-progress-result-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.complete-order-progress-result-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    line-height: 1.4;
}

.complete-order-progress-result-item.is-done {
    color: #166534;
    border-color: #86efac;
    background: #f0fdf4;
}

.complete-order-progress-result-item.is-error {
    color: #991b1b;
    border-color: #fca5a5;
    background: #fef2f2;
}

.complete-order-progress-result-icon {
    flex: 0 0 1rem;
    width: 1rem;
    text-align: center;
    font-weight: 700;
}

.complete-order-progress-result-item.is-done .complete-order-progress-result-icon::before {
    content: '✓';
    color: #16a34a;
}

.complete-order-progress-result-item.is-error .complete-order-progress-result-icon::before {
    content: '✕';
    color: #dc2626;
}

.complete-order-progress-result-text {
    flex: 1 1 auto;
    min-width: 0;
}

.complete-order-progress-error-footnote {
    margin: 1rem 0 0;
    text-align: left;
}

.complete-order-progress-error-hint {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.45;
}

.complete-order-progress-footer {
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.internetmarke-purchase-confirm-modal {
    max-width: 28rem;
}

.internetmarke-purchase-confirm-intro {
    margin: 0 0 1rem;
}

.internetmarke-purchase-confirm-summary {
    margin: 0;
}

.internetmarke-purchase-confirm-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-subtle, #e5e7eb);
}

.internetmarke-purchase-confirm-row:last-child {
    border-bottom: 0;
}

.internetmarke-purchase-confirm-row dt {
    margin: 0;
    font-weight: 500;
    color: var(--text-muted, #6b7280);
}

.internetmarke-purchase-confirm-row dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: right;
}

.internetmarke-purchase-confirm-row--emphasis dd {
    color: var(--accent, #2563eb);
}

.internetmarke-purchase-confirm-row--insufficient dd {
    color: #b91c1c;
}

.nachlieferung-label-success-modal .modal-card-body--confirm {
    text-align: center;
    padding: 1.35rem 1.25rem 1.1rem;
}

.nachlieferung-label-success-modal h2 {
    margin: 0.65rem 0 0.35rem;
    font-size: 1.12rem;
}

.nachlieferung-label-success-modal .nachlieferung-label-success-intro {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.nachlieferung-label-success-modal .internetmarke-purchase-confirm-summary {
    margin-top: 1rem;
    text-align: left;
}

.nachlieferung-label-success-modal .nachlieferung-label-success-tracking {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.nachlieferung-label-success-modal .modal-card-footer {
    justify-content: flex-end;
    gap: 0.5rem;
}

#internetmarkePurchaseConfirmError {
    margin-top: 1rem;
    margin-bottom: 0;
}

.complete-all-orders-progress-modal {
    max-width: 34rem;
}

.bricqer-complete-all-orders-btn {
    flex-shrink: 0;
    align-self: center;
}

.complete-all-orders-progress-phases {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.complete-all-orders-progress-phase {
    border: 1px solid var(--border-subtle, #e5e7eb);
    border-radius: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: #fff;
}

.complete-all-orders-progress-phase.is-running {
    border-color: #93c5fd;
    background: #eff6ff;
}

.complete-all-orders-progress-phase.is-done {
    border-color: #86efac;
    background: #f0fdf4;
}

.complete-all-orders-progress-phase.is-error {
    border-color: #fca5a5;
    background: #fef2f2;
}

.complete-all-orders-progress-phase-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.complete-all-orders-progress-phase-icon,
.complete-all-orders-progress-substep-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.complete-all-orders-progress-phase.is-pending .complete-all-orders-progress-phase-icon::before,
.complete-all-orders-progress-substep.is-pending .complete-all-orders-progress-substep-icon::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
}

.complete-all-orders-progress-phase.is-running .complete-all-orders-progress-phase-icon::before,
.complete-all-orders-progress-substep.is-running .complete-all-orders-progress-substep-icon::before {
    content: '';
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    border: 2px solid #3b82f6;
    border-top-color: transparent;
    animation: complete-order-progress-spin 0.8s linear infinite;
}

.complete-all-orders-progress-phase.is-done .complete-all-orders-progress-phase-icon::before,
.complete-all-orders-progress-substep.is-done .complete-all-orders-progress-substep-icon::before {
    content: '✓';
    color: #16a34a;
    font-size: 0.95rem;
    font-weight: 700;
}

.complete-all-orders-progress-phase.is-error .complete-all-orders-progress-phase-icon::before,
.complete-all-orders-progress-substep.is-error .complete-all-orders-progress-substep-icon::before {
    content: '✕';
    color: #dc2626;
    font-size: 0.95rem;
    font-weight: 700;
}

.complete-all-orders-progress-phase-label {
    font-weight: 600;
}

.complete-all-orders-progress-substeps {
    list-style: none;
    margin: 0.65rem 0 0 1.35rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.complete-all-orders-progress-substep {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-muted, #6b7280);
}

.complete-all-orders-progress-substep.is-running,
.complete-all-orders-progress-substep.is-done {
    color: inherit;
}

@keyframes complete-order-progress-spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-card-body--confirm {
    padding: 1rem 1.25rem 1.15rem;
}

.modal-card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem 1.15rem;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}

.local-unpaid-confirm-text {
    margin: 0;
    line-height: 1.55;
    color: var(--text);
}

.unmark-ship-ready-confirm-text {
    margin: 0;
    line-height: 1.55;
    color: var(--text);
    font-size: 0.95rem;
}

.unmark-ship-ready-confirm-text strong {
    font-weight: 600;
}

.unmark-ship-ready-confirm-hint {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.local-unpaid-confirm-checkbox {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 1rem 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    color: var(--text);
}

.local-unpaid-confirm-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.modal-card--ship-ready {
    max-width: 38rem;
}

.modal-card--ship-ready-internetmarke {
    max-width: 38rem;
}

.modal-card-header--ship-ready {
    padding: 0.66rem 0.9rem;
    border-bottom: 1px solid var(--border);
}

.ship-ready-header-text {
    min-width: 0;
}

.modal-card-header--ship-ready h2 {
    margin: 0;
    font-size: 1.14rem;
    line-height: 1.2;
}

.ship-ready-modal-subtitle {
    margin: 0.18rem 0 0;
    font-size: 0.86rem;
    line-height: 1.25;
    color: var(--muted, #64748b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-card-body--ship-ready {
    padding: 0.62rem 0.9rem 0.68rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-card-footer--compact {
    padding: 0.55rem 0.9rem 0.65rem;
    gap: 0.4rem;
}

.modal-card--ship-ready .modal-card-footer--compact {
    padding: 0.58rem 0.9rem 0.7rem;
    gap: 0.48rem;
}

.ship-ready-field-row {
    display: grid;
    grid-template-columns: minmax(5.4rem, auto) minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem 0.72rem;
}

.ship-ready-field-row-label {
    font-size: 0.94rem;
    color: var(--muted, #64748b);
}

.modal-card--ship-ready .form-field {
    display: block;
    margin: 0;
}

.modal-card--ship-ready .form-field > span {
    display: block;
    margin-bottom: 0.26rem;
    font-size: 0.94rem;
    color: var(--muted, #64748b);
}

.modal-card--ship-ready textarea {
    min-height: 4.4rem;
    padding: 0.48rem 0.66rem;
    resize: vertical;
    line-height: 1.4;
    font-size: 1rem;
}

.modal-card--ship-ready select,
.modal-card--ship-ready input[type="text"],
.modal-card--ship-ready input[type="number"] {
    width: 100%;
    padding: 0.48rem 0.66rem;
    font-size: 1rem;
    box-sizing: border-box;
}

.ship-ready-original-address {
    font-size: 0.92rem;
}

.ship-ready-original-address > summary {
    cursor: pointer;
    color: var(--muted, #64748b);
    user-select: none;
}

.ship-ready-original-address[open] > summary {
    margin-bottom: 0.36rem;
}

.ship-ready-address-display {
    margin: 0;
    max-height: 5.4rem;
    overflow: auto;
    padding: 0.42rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 0.35rem);
    background: var(--surface-muted, rgba(0, 0, 0, 0.03));
    font-family: inherit;
    font-size: 0.96rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
}

.ship-ready-weight-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.55rem;
    align-items: start;
    margin: 0;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 0.35rem);
    background: #fafbfc;
}

.ship-ready-weight-summary-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.ship-ready-weight-summary-row strong {
    font-size: 0.86rem;
}

.ship-ready-weight-field-label {
    font-size: 0.74rem;
    color: var(--muted);
}

.ship-ready-weight-value,
.ship-ready-weight-summary-row--field input {
    width: 100%;
    min-height: 2rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 0.35rem);
    font-size: 0.86rem;
    font-family: inherit;
    box-sizing: border-box;
}

.ship-ready-weight-value {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    color: var(--text);
    font-weight: 600;
}

.ship-ready-weight-summary-row--field input {
    background: #fff;
    color: var(--text);
}

.ship-ready-dhl-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.82rem;
    white-space: nowrap;
    user-select: none;
}

.ship-ready-dhl-premium input {
    margin: 0;
}

.ship-ready-dhl-hint {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.25;
    flex: 1 1 auto;
    min-width: 0;
}

.ship-ready-dhl-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
}

.ship-ready-weight-summary--compact {
    flex: 0 1 auto;
    min-width: min(100%, 16rem);
    padding: 0.35rem 0.5rem;
    gap: 0.35rem 0.45rem;
}

.ship-ready-weight-summary--compact .ship-ready-weight-value,
.ship-ready-weight-summary--compact .ship-ready-weight-summary-row--field input {
    min-height: 1.85rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.84rem;
}

.ship-ready-dhl-validation-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ship-ready-dhl-validation-alert {
    margin: 0;
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
    line-height: 1.3;
}

.ship-ready-dhl-validation {
    margin: 0;
    padding: 0.35rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fafafa;
}

.ship-ready-dhl-validation-title {
    margin: 0 0 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.ship-ready-dhl-validation ul {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.76rem;
    line-height: 1.35;
}

.ship-ready-dhl-validation-error {
    color: #b91c1c;
}

.ship-ready-dhl-validation-warning {
    color: #b45309;
}

.ship-ready-dhl-address-fieldset {
    margin: 0;
    padding: 0.4rem 0.55rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.ship-ready-dhl-address-fieldset legend {
    padding: 0 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.ship-ready-dhl-address-compact {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.ship-ready-dhl-address-row,
.ship-ready-dhl-address-inline {
    display: grid;
    gap: 0.38rem;
}

.ship-ready-dhl-address-row {
    grid-template-columns: minmax(0, 1fr) 4.2rem;
}

.ship-ready-dhl-address-inline {
    grid-template-columns: 5.5rem minmax(0, 1fr);
}

.ship-ready-dhl-address-input {
    width: 100%;
    min-height: 2rem;
    padding: 0.38rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 0.35rem);
    font-size: 0.92rem;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    color: var(--text);
}

.ship-ready-dhl-address-input--country {
    text-transform: uppercase;
    text-align: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.ship-ready-dhl-address-state {
    display: grid;
    gap: 0.35rem;
}

.ship-ready-dhl-address-state-label {
    font-size: 0.82rem;
    color: var(--muted, #64748b);
}

.ship-ready-dhl-optional {
    font-size: 0.82rem;
}

.ship-ready-dhl-optional > summary {
    cursor: pointer;
    color: var(--muted, #64748b);
    user-select: none;
}

.ship-ready-dhl-optional[open] > summary {
    margin-bottom: 0.32rem;
}

.ship-ready-dhl-address-fieldset > .muted {
    margin: 0 0 0.35rem;
    font-size: 0.74rem;
}

.ship-ready-dhl-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 0.5rem;
}

.ship-ready-dhl-address-full {
    grid-column: 1 / -1;
}

@media (max-width: 520px) {
    .modal-card--ship-ready,
    .modal-card--ship-ready-internetmarke,
    .modal-card--shipment-group {
        max-width: calc(100vw - 1.5rem);
    }

    .shipment-group-create-header {
        flex-direction: column;
        align-items: stretch;
    }

    .shipment-group-create-badge {
        align-self: flex-start;
    }

    .shipment-group-weight-summary {
        grid-template-columns: 1fr;
    }

    .shipment-group-create-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .modal-card--shipment-group .modal-card-footer--compact .btn-primary {
        min-width: 0;
        width: 100%;
    }

    .ship-ready-dhl-address-row {
        grid-template-columns: 1fr;
    }

    .ship-ready-dhl-address-inline {
        grid-template-columns: 1fr 1fr;
    }

    .ship-ready-dhl-address-grid {
        grid-template-columns: 1fr;
    }
}

.ship-ready-method-picker .bricqer-split-btn {
    width: 100%;
}

.ship-ready-method-picker .bricqer-split-btn-part {
    min-height: 2.4rem;
    padding: 0.36rem 0.66rem;
    font-size: 0.98rem;
}

.ship-ready-method-picker .bricqer-split-btn-toggle,
.ship-ready-method-picker .bricqer-split-btn-settings {
    min-width: 2.4rem;
    padding-inline: 0.48rem;
}

.ship-ready-weight-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.48rem 0.6rem;
    margin: 0;
    padding: 0.46rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 0.35rem);
    background: #f8fafc;
    font-size: 0.92rem;
}

.ship-ready-weight-strip-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.36rem;
}

.ship-ready-weight-strip-label {
    color: var(--muted, #64748b);
}

.ship-ready-weight-strip-item strong {
    font-size: 0.98rem;
    font-weight: 600;
}

.ship-ready-weight-strip-sep {
    color: var(--muted, #94a3b8);
}

.ship-ready-im-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.ship-ready-im-block .ship-ready-field-row {
    margin: 0;
}

.ship-ready-im-block .ship-ready-method-picker .bricqer-split-btn {
    width: 100%;
}

#shipReadyModal .bricqer-split-btn.is-open {
    z-index: 12;
}

#shipReadyModal .bricqer-split-menu {
    z-index: 13;
}

.ship-ready-im-product-summary {
    margin: 0;
    padding: 0.38rem 0.6rem;
    font-size: 0.92rem;
    color: var(--muted, #64748b);
    border-left: 2px solid #bfdbfe;
    background: #f8fafc;
}

.ship-ready-im-status-bar {
    display: flex;
    align-items: stretch;
    gap: 0.58rem;
}

.ship-ready-im-wallet-panel {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    flex: 1 1 0;
    min-width: 0;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 0.35rem);
    background: #f8fafc;
}

.ship-ready-im-wallet-panel.is-error {
    border-color: #fecaca;
    background: #fef2f2;
}

.ship-ready-im-wallet-panel.is-muted {
    opacity: 0.85;
}

.ship-ready-im-wallet {
    display: flex;
    align-items: baseline;
    gap: 0.42rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.ship-ready-im-wallet-label {
    font-size: 0.86rem;
    color: var(--muted, #64748b);
    flex-shrink: 0;
}

.ship-ready-im-wallet-amount {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ship-ready-im-wallet-refresh {
    flex-shrink: 0;
    margin-left: auto;
    min-width: 1.95rem;
    padding: 0.24rem 0.42rem;
}

.ship-ready-im-cart-summary {
    display: flex;
    align-items: center;
    gap: 0.54rem;
    flex: 1 1 0;
    min-width: 0;
    padding: 0.5rem 0.66rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 0.35rem);
    background: #fff;
}

.ship-ready-im-cart-summary-label {
    font-size: 0.86rem;
    color: var(--muted, #64748b);
    flex-shrink: 0;
    margin-right: auto;
}

.ship-ready-im-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.38rem;
    height: 1.38rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.82rem;
    font-weight: 600;
}

.ship-ready-im-cart-count.is-empty {
    background: #e2e8f0;
    color: #64748b;
}

.ship-ready-im-cart-total {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.ship-ready-im-cart-total[hidden] {
    display: none !important;
}

.ship-ready-im-cart-empty {
    margin: 0;
    font-size: 0.72rem;
    color: var(--muted, #64748b);
}

.ship-ready-im-cart-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.3rem;
    max-height: 5.4rem;
    overflow: auto;
}

.ship-ready-im-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.42rem;
    padding: 0.36rem 0.48rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 0.35rem);
    background: #fafbfc;
}

.ship-ready-im-cart-item-body {
    min-width: 0;
    overflow: hidden;
}

.ship-ready-im-cart-item-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ship-ready-im-cart-item-meta {
    display: block;
    font-size: 0.84rem;
    color: var(--muted, #64748b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ship-ready-im-cart-item-remove {
    min-width: 1.8rem;
    padding: 0.18rem 0.36rem;
    flex-shrink: 0;
}

.ship-ready-im-wallet-warning {
    margin: 0;
    padding: 0.42rem 0.54rem;
    font-size: 0.88rem;
}

.ship-ready-im-address-compact {
    display: grid;
    gap: 0.34rem;
    margin: 0;
}

.ship-ready-im-address-input {
    width: 100%;
    margin: 0;
    padding: 0.44rem 0.6rem;
    font-size: 1rem;
    line-height: 1.32;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 0.35rem);
    box-sizing: border-box;
}

.ship-ready-im-address-inline {
    display: grid;
    grid-template-columns: 5.7rem minmax(0, 1fr);
    gap: 0.46rem;
}

.ship-ready-im-optional {
    margin: 0.26rem 0 0;
    font-size: 0.92rem;
}

.ship-ready-im-optional > summary {
    cursor: pointer;
    color: var(--muted, #64748b);
    margin-bottom: 0.28rem;
}

.ship-ready-im-optional .ship-ready-im-address-compact {
    margin-top: 0.18rem;
}

@media (max-width: 520px) {
    .ship-ready-im-status-bar {
        flex-direction: column;
    }

    .ship-ready-im-address-inline {
        grid-template-columns: 1fr 1fr;
    }
}

.local-unpaid-confirm-footer .btn {
    white-space: nowrap;
}

.dashboard-settings-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
    color: var(--text);
}

.dashboard-settings-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    padding: 0;
    margin: 0.15rem 0 0;
    flex-shrink: 0;
}

.dashboard-settings-age-wrap {
    margin-top: 0.75rem;
}

.dashboard-settings-age {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
    cursor: default;
}

.dashboard-settings-age input[type="number"] {
    width: 4.5rem;
    padding: 0.45rem 0.55rem;
    text-align: center;
}

.dashboard-settings-age-hint {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
}

.modal-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.85rem;
    border-bottom: 1px solid var(--border);
}

.modal-card-header h2 {
    margin: 0;
}

.modal-card-header .muted {
    margin: 0.2rem 0 0;
}

.modal-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-icon {
    box-sizing: border-box;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    padding: 0;
    gap: 0;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
}

.btn-icon-inner {
    width: 1.2rem;
    height: 1.2rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.btn-icon-inner > * {
    grid-area: 1 / 1;
}

.btn-icon-inner img,
.btn-icon-inner svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.btn-icon--full-bleed {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.btn-icon--full-bleed .btn-icon-inner {
    width: 100%;
    height: 100%;
}

.btn-icon--full-bleed .btn-icon-inner img,
.btn-icon--full-bleed .btn-icon-inner svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.btn-icon--full-bleed .btn-icon-inner img[src*="marketplaces/bricqer-open"],
.btn-icon--full-bleed .btn-icon-inner img[src*="marketplaces/ebay"],
.btn-icon--full-bleed .btn-icon-inner img[src*="marketplaces/lexware"],
.btn-icon--full-bleed .btn-icon-inner img[src*="lexware-open"],
.btn-icon--full-bleed .btn-icon-inner .lexware-open-icon,
.btn-icon--full-bleed .btn-icon-inner .bricqer-open-icon {
    object-fit: contain;
}

.btn-icon-inner .lexware-open-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.btn-icon-inner .bricqer-open-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.btn-icon--full-bleed .btn-marketplace-label {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: flex;
    border-radius: inherit;
    font-size: 0.78rem;
}

.bricqer-order-item-actions .btn-icon--full-bleed {
    background: transparent;
}

.btn-icon-inner > [hidden] {
    display: none !important;
}

.btn-marketplace-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    min-width: 1.2rem;
    padding: 0;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.btn-marketplace-label--bricklink {
    background: #ef4444;
    color: #fff;
}

.btn-marketplace-label--brickowl {
    background: #f59e0b;
    color: #fff;
}

.btn-marketplace-label--ebay {
    background: #2563eb;
    color: #fff;
}

.btn-marketplace-label--bricqer {
    background: #0f766e;
    color: #fff;
}

.btn-marketplace-label--lexware {
    background: #c8102e;
    color: #fff;
}

.modal-card--tutorial-meldung {
    max-width: 36rem;
}

.tutorial-meldung-modal-body p {
    margin: 0 0 0.85rem;
    line-height: 1.55;
}

.tutorial-meldung-modal-body p:last-child {
    margin-bottom: 0;
}

.tutorial-meldung-modal-body a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.tutorial-meldung-signatur {
    margin-top: 1.25rem;
    font-style: italic;
}

.modal-card-body {
    padding: 1rem 1.25rem 1.25rem;
    overflow: auto;
}

.order-detail-section + .order-detail-section {
    margin-top: 1.25rem;
}

.order-detail-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: start;
}

.order-detail-panels-column {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.order-detail-panel {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    padding: 0.85rem 1rem;
    min-width: 0;
}

.order-detail-panel--full {
    grid-column: 1 / -1;
}

.order-detail-panel-title {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.order-detail-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.order-detail-panel-header .order-detail-panel-title {
    margin: 0;
}

.order-detail-panel-body {
    min-width: 0;
}

.order-detail-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.order-detail-quicklinks .btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
}

.order-detail-quicklinks .btn-icon:not(.btn-icon--full-bleed) .btn-icon-inner {
    width: 1.2rem;
    height: 1.2rem;
}

.order-detail-quicklinks .btn-icon--full-bleed {
    background: transparent;
}

.order-detail-note-todo-hint {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
}

.order-detail-panel--note .order-detail-panel-actions .btn-icon {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
}

.order-detail-panel--note .order-detail-panel-actions .btn-icon-inner {
    width: 1rem;
    height: 1rem;
}

.order-detail-note-heading {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.order-detail-note-content {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.45;
}

.order-detail-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0.35rem;
    display: grid;
    gap: 0.85rem;
}

.order-detail-timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    position: relative;
}

.order-detail-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0.34rem;
    top: 1rem;
    bottom: -0.85rem;
    width: 2px;
    background: var(--border);
}

.order-detail-timeline-marker {
    width: 0.72rem;
    height: 0.72rem;
    margin-top: 0.18rem;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    background: #fff;
}

.order-detail-timeline-item--current .order-detail-timeline-marker {
    border-color: var(--primary);
    background: var(--primary);
}

.order-detail-timeline-label {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
}

.order-detail-timeline-detail {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.84rem;
    color: var(--text);
}

.order-detail-timeline-time {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
}

.order-detail-fields {
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.order-detail-field {
    display: grid;
    grid-template-columns: minmax(6.5rem, 38%) 1fr;
    gap: 0.45rem 0.65rem;
    align-items: start;
    font-size: 0.88rem;
}

.order-detail-field dt {
    margin: 0;
    color: #64748b;
    font-weight: 500;
}

.order-detail-field dd {
    margin: 0;
    word-break: break-word;
}

.order-detail-address-fields {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.order-detail-ship-address {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.order-detail-subheading {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.order-detail-multiline {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.order-detail-empty {
    margin: 0;
    font-size: 0.88rem;
}

.order-detail-amount {
    text-align: right;
    white-space: nowrap;
}

.order-detail-table--compact th:last-child,
.order-detail-table--compact td:last-child {
    width: 6.5rem;
    text-align: right;
}

@media (max-width: 860px) {
    .order-detail-panels {
        grid-template-columns: 1fr;
    }
}

.order-detail-section-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.order-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}

.order-detail-table th,
.order-detail-table td {
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border);
    vertical-align: top;
    text-align: left;
    word-break: break-word;
}

.order-detail-table th {
    width: 18%;
    background: #f8fafc;
    font-weight: 600;
    color: var(--text);
}

.order-detail-table td {
    width: 32%;
}

.order-detail-tracking-cell {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.order-detail-tracking-value {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.order-detail-tracking-edit-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.order-detail-tracking-input {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    font: inherit;
}

.order-detail-tracking-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.invoice-preview-totals {
    margin: 0.85rem 0 0;
    text-align: right;
    font-size: 0.95rem;
}

.order-detail-invoice-positions {
    margin-top: 0;
}

.order-detail-invoice-positions .order-detail-table {
    border-top: 1px solid var(--border);
}

.order-detail-invoice-positions + .invoice-preview-totals {
    margin-top: 0.85rem;
}

.order-detail-customer-form-fields {
    display: grid;
    gap: 0.55rem;
}

.order-detail-customer-field {
    display: grid;
    gap: 0.25rem;
    font-size: 0.88rem;
}

.order-detail-customer-field > span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
}

.order-detail-customer-field input {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    font: inherit;
    background: #fff;
}

.order-detail-customer-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.order-detail-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.order-detail-options-split {
    width: 100%;
    max-width: 100%;
}

.order-detail-options-split .bricqer-split-btn-row {
    width: 100%;
}

.order-detail-panel:has(.order-detail-options-split.is-open) {
    position: relative;
    z-index: 3;
    overflow: visible;
}

.order-detail-shipment-status-text {
    display: block;
    font-size: 0.88rem;
    line-height: 1.35;
}

.order-detail-shipment-status-time {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.82rem;
    color: var(--muted, #64748b);
}

.order-detail-options-result {
    margin-top: 0.85rem;
}

.order-detail-options-result[hidden] {
    display: none !important;
}

.order-detail-options-tracking-preview {
    display: grid;
    gap: 0.45rem;
}

.order-detail-options-tracking-meta {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.35;
}

.order-detail-options-loading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: var(--muted, #64748b);
}

.order-detail-options-error {
    margin: 0.65rem 0 0;
}

.order-detail-options-fallback {
    margin: 0.55rem 0 0;
    font-size: 0.88rem;
}

.order-detail-options-result .dhl-tracking-shipment-card {
    margin-top: 0;
}

.order-detail-options-result .dhl-tracking-shipment-card + .dhl-tracking-shipment-card {
    margin-top: 0.75rem;
}

.order-detail-options-result .dhl-tracking-timeline {
    max-height: 12rem;
    overflow-y: auto;
}

.order-detail-table--positions th,
.order-detail-table--positions td {
    width: auto;
}

.dhl-status-legend-table--codes {
    width: auto;
    max-width: min(100%, 52rem);
    table-layout: auto;
}

.dhl-status-legend-table--codes th,
.dhl-status-legend-table--codes td {
    width: auto;
}

.dhl-status-legend-table--codes th:first-child,
.dhl-status-legend-table--codes td:first-child {
    width: 1%;
    white-space: nowrap;
    text-align: right;
    padding-left: 0.75rem;
    padding-right: 1rem;
    font-variant-numeric: tabular-nums;
}

.dhl-status-legend-table--codes th:last-child,
.dhl-status-legend-table--codes td:last-child {
    width: auto;
}

.dhl-legend-subheading {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.dhl-legend-subheading + .muted,
.dhl-legend-subheading + table {
    margin-top: 0;
}

.dhl-legend-subheading:not(:first-child) {
    margin-top: 1.5rem;
}

.dhl-legend-notes {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.dhl-legend-notes li + li {
    margin-top: 0.35rem;
}

.dhl-test-result {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.dhl-test-shipment + .dhl-test-shipment {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.dhl-test-shipment-heading,
.dhl-test-events-heading {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.dhl-test-events-heading {
    margin-top: 1rem;
}

.dhl-test-events-table th:first-child {
    width: 9rem;
    white-space: nowrap;
}

.invoice-debug-block + .invoice-debug-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.invoice-debug-label {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.invoice-debug-meta {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    word-break: break-all;
}

.order-detail-collapsible {
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafbfc;
    overflow: hidden;
}

.order-detail-collapsible summary {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.order-detail-collapsible summary::-webkit-details-marker {
    display: none;
}

.order-detail-collapsible summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.45rem;
    transition: transform 0.15s ease;
}

.order-detail-collapsible[open] summary::before {
    transform: rotate(90deg);
}

.order-detail-collapsible .order-detail-pre {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
}

.order-detail-pre {
    margin: 0;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: auto;
}

.order-detail-pre--full {
    max-height: 42vh;
}

.permission-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 1rem 0;
}

.permission-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafbfc;
    cursor: pointer;
}

.permission-option input {
    width: auto;
    margin: 0;
}

.permission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.permission-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3f51b5;
    font-size: 0.8rem;
    font-weight: 600;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    margin-bottom: 1rem;
}

.upload-area > * {
    pointer-events: none;
}

.upload-area:hover,
.upload-area.is-dragover {
    border-color: var(--primary);
    background: #f0f7ff;
}

.upload-area-title {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.upload-info-text {
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #f0f6ff;
    color: var(--primary);
    border: 1px solid #c7d9f5;
    font-size: 0.92rem;
    line-height: 1.5;
}

.upload-info-text p {
    margin: 0;
}

.upload-info-text p + p {
    margin-top: 0.55rem;
}

.selected-files {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selected-file-item,
.file-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafbfc;
}

.file-list-item + .file-list-item {
    margin-top: 0.5rem;
}

.weight-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.weight-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.weight-stat:hover {
    background: #eef2ff;
    border-color: #c7d9f5;
}

.weight-stat.is-active {
    background: #eef2ff;
    border-color: var(--primary);
    color: var(--primary);
}

.weight-stat-total.is-active {
    background: #edfdf3;
    border-color: var(--success);
    color: var(--success);
}

.weight-stat-total {
    background: #f6fffa;
}

.weight-stats--readonly .weight-stat {
    cursor: default;
    pointer-events: none;
}

.weight-stats--readonly .weight-stat:hover {
    background: #f8fafc;
    border-color: var(--border);
    color: var(--text);
}

.weight-stats--readonly .weight-stat-total:hover {
    background: #f6fffa;
}

.weight-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3f51b5;
    font-size: 0.8rem;
    font-weight: 600;
}

.sendungsnummer-actions-cell {
    width: 3rem;
    text-align: right;
    white-space: nowrap;
}

/* Bewerbungs-Assistent */
.apply-card {
    width: 100%;
    max-width: 640px;
}

.apply-steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.apply-step {
    flex: 1;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-size: 0.82rem;
    color: var(--muted);
}

.apply-step strong {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.15rem;
}

.apply-step.is-active {
    border-color: #9ec5eb;
    background: #f0f6ff;
    color: var(--primary);
}

.apply-step.is-done {
    border-color: #b7ebc6;
    background: #edfdf3;
    color: var(--success);
}

.archive-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.75rem;
    align-items: end;
    margin: 0.75rem 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.archive-filter {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.archive-filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.archive-filter input,
.archive-filter select {
    width: 100%;
    min-width: 0;
}

.archive-filter-search {
    grid-column: 1 / -1;
}

.archive-filter-chips {
    grid-column: 1 / -1;
}

.archive-filter-actions {
    display: flex;
    align-items: flex-end;
}

.archive-filter-saved {
    grid-column: 1 / -1;
}

.archive-saved-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.archive-saved-filters select {
    flex: 1 1 12rem;
    min-width: 10rem;
}

.archive-detail-backfill-control {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.archive-detail-backfill-status {
    margin: 0;
}

.archive-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.archive-pagination--top {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.archive-pagination--bottom {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.archive-pagination-summary {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.archive-pagination-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.archive-pagination-page {
    font-size: 0.88rem;
    color: var(--text);
}

.bricqer-archiv-import-hint {
    margin: 0 0 1rem;
    line-height: 1.5;
}

.bricqer-archiv-import-days-field {
    display: grid;
    gap: 0.35rem;
}

.bricqer-archiv-import-days-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.bricqer-archiv-import-days-field input {
    max-width: 8rem;
}

.bricqer-archiv-import-progress-modal {
    max-width: 32rem;
}

.bricqer-archiv-import-progress-bar {
    height: 0.55rem;
    margin: 1rem 0 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.bricqer-archiv-import-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.25s ease;
}

.bricqer-archiv-import-progress-text {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text);
}

.dashboard-refresh-progress-modal {
    max-width: 30rem;
}

.dashboard-refresh-progress-bar--indeterminate {
    position: relative;
    overflow: hidden;
}

.dashboard-refresh-progress-bar--indeterminate .dashboard-refresh-progress-fill--indeterminate {
    width: 38%;
    margin-left: -38%;
    transition: none;
    animation: dashboard-refresh-progress-slide 1.35s ease-in-out infinite;
}

.dashboard-refresh-progress-bar--determinate .dashboard-refresh-progress-fill--indeterminate {
    width: 0;
    margin-left: 0;
    transition: width 0.25s ease;
    animation: none;
}

@keyframes dashboard-refresh-progress-slide {
    0% {
        margin-left: -38%;
    }

    100% {
        margin-left: 100%;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.form-grid .span-2 { grid-column: span 2; }

.form-section-title {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: var(--text);
}

.required-note {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

label .required-mark {
    color: var(--danger);
    margin-left: 0.15rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-actions--with-feedback {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem 1rem;
}

.form-actions-feedback {
    flex: 1 1 14rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-actions-feedback .alert {
    margin: 0;
    padding: 0.45rem 0.7rem;
    font-size: 0.88rem;
}

.modal-card .form-field {
    display: block;
    margin: 1rem 0;
}

.modal-card .form-field > span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.modal-card.modal-card--compact .form-field {
    margin: 0;
}

.modal-card.modal-card--compact .form-field > span {
    margin-bottom: 0.15rem;
    font-size: 0.84rem;
}

.btn-small {
    padding: 0.3rem 0.55rem;
    font-size: 0.82rem;
}

.btn-primary.btn-small, button[type="submit"].btn-small,
.btn-secondary.btn-small {
    padding: 0.52rem 0.82rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.created-at-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.summary-list li span:first-child {
    color: var(--muted);
}

.field-error {
    color: var(--danger);
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

.optional-note {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.label-with-info {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.info-hover {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: help;
    vertical-align: middle;
}

.info-hover:focus {
    outline: 2px solid #9ec5eb;
    outline-offset: 1px;
}

.info-hover-text {
    position: absolute;
    left: calc(100% + 0.45rem);
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.45;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 20;
}

.api-provider-group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.api-provider-group:first-of-type {
    margin-top: 0.75rem;
    padding-top: 0;
    border-top: none;
}

.api-provider-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.info-hover-text a {
    color: var(--primary);
    word-break: break-all;
}

.info-hover:hover .info-hover-text,
.info-hover:focus .info-hover-text,
.info-hover:focus-within .info-hover-text {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 720px) {
    .info-hover-text {
        left: auto;
        right: 0;
        top: calc(100% + 0.4rem);
        transform: none;
        width: min(240px, 70vw);
    }
}

@media (max-width: 720px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .span-2 {
        grid-column: span 1;
    }

    .apply-steps {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    table, thead, tbody, th, td, tr { display: block; }
    thead { display: none; }
    tr {
        border: 1px solid var(--border);
        border-radius: 10px;
        margin-bottom: 0.75rem;
        padding: 0.5rem;
        background: #fff;
    }
    td {
        border: 0;
        padding: 0.35rem 0.5rem;
    }
    td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        color: var(--muted);
        margin-bottom: 0.15rem;
        font-weight: 600;
    }
}

.ls-floating-todo-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    z-index: 120;
    width: 3.5rem;
    height: 3.5rem;
    border: 0;
    border-radius: 50%;
    background: var(--primary, #2563eb);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ls-floating-todo-fab:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

.ls-floating-todo-fab:focus-visible {
    outline: 2px solid var(--primary, #2563eb);
    outline-offset: 3px;
}

.ls-floating-todo-fab-icon {
    font-size: 2rem;
    line-height: 1;
    font-weight: 300;
    margin-top: -0.1rem;
}

.bricqer-order-item--user-todo .bricqer-order-item-note-title--empty {
    font-style: italic;
    color: var(--muted);
}

/* --- Dashboard Übersichtlichkeit (Overview UI) --- */

.dashboard-main-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.task-item.dashboard-frame-item:not(.task-item--nested) {
    background: var(--card);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.bricqer-dashboard-section-header {
    position: sticky;
    top: 0;
    z-index: 6;
    background: var(--card);
    padding: 0.35rem 0;
    margin: -0.35rem 0 0.15rem;
}

/* Nur Segment-Überschriften kleben — Frame-Titel inkl. „X Sendungen“ scrollt weg */
.bricqer-orders-frame > .bricqer-dashboard-section-header.bricqer-orders-frame-header {
    position: relative;
    z-index: 4;
}

.bricqer-order-list > li:nth-child(even) > .bricqer-order-item {
    background: #f8fafc;
}

.bricqer-order-meta-part {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.bricqer-order-meta-icon {
    flex-shrink: 0;
    font-size: 0.78rem;
    line-height: 1;
    opacity: 0.85;
}

.dashboard-header__kpi .dashboard-segment-filter-bar {
    margin: 0;
}

.dashboard-segment-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.dashboard-segment-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.55rem 0.28rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.76rem;
    line-height: 1.25;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dashboard-segment-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.dashboard-segment-chip.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.dashboard-segment-chip__plugin {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.38rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

.dashboard-segment-chip__label {
    font-weight: 600;
    white-space: nowrap;
}

.dashboard-segment-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.08rem 0.35rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    font-size: 0.68rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.dashboard-segment-chip.is-active .dashboard-segment-chip__count {
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
}

.dashboard-segment-chip--plugin-bricqer {
    border-color: #bfdbfe;
}
.dashboard-segment-chip--plugin-bricqer .dashboard-segment-chip__plugin {
    background: #dbeafe;
    color: #1e40af;
}

.dashboard-segment-chip--plugin-rechnung {
    border-color: #fecaca;
}
.dashboard-segment-chip--plugin-rechnung .dashboard-segment-chip__plugin {
    background: #fee2e2;
    color: #991b1b;
}

.dashboard-segment-chip--plugin-dhl {
    border-color: #fde68a;
}
.dashboard-segment-chip--plugin-dhl .dashboard-segment-chip__plugin {
    background: #fef3c7;
    color: #92400e;
}

.dashboard-segment-chip--plugin-shipment {
    border-color: #c4b5fd;
}
.dashboard-segment-chip--plugin-shipment .dashboard-segment-chip__plugin {
    background: #ede9fe;
    color: #5b21b6;
}

.dashboard-segment-chip--plugin-system {
    border-color: #cbd5e1;
}
.dashboard-segment-chip--plugin-system .dashboard-segment-chip__plugin {
    background: #f1f5f9;
    color: #475569;
}

.dashboard-segment-chip--plugin-task {
    border-color: #a7f3d0;
}
.dashboard-segment-chip--plugin-task .dashboard-segment-chip__plugin {
    background: #d1fae5;
    color: #065f46;
}

.dashboard-segment-focus-hidden {
    display: none !important;
}

#tasksWrap.is-segment-focus-active .dashboard-frame-list {
    gap: 0.35rem;
}

.dashboard-kpi-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0.65rem 0 0.35rem;
}

.dashboard-kpi-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-kpi-chip:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1e40af;
}

.dashboard-kpi-chip--primary {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.dashboard-kpi-chip--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.dashboard-kpi-chip--todo {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.dashboard-kpi-stand {
    font-size: 0.78rem;
    margin-left: 0.15rem;
}

/* Dashboard — einheitlicher sticky Header */
.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.dashboard-header .dashboard-test-phase-banner {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

.dashboard-header__row {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0 1.25rem;
    min-width: 0;
}

.dashboard-header__row--primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(9.5rem, 14rem) auto;
    grid-template-areas: "stats search actions";
    align-items: center;
    min-height: 3.1rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.dashboard-header__order-data {
    grid-area: stats;
    min-width: 0;
}

.dashboard-header__order-data[hidden] {
    display: none !important;
}

.dashboard-header__row--primary.dashboard-header__row--order-data-hidden {
    grid-template-columns: minmax(9.5rem, 1fr) auto;
    grid-template-areas: "search actions";
}

.dashboard-stats-bar--embedded {
    grid-area: stats;
    position: static;
    z-index: auto;
    min-width: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
}

.dashboard-stats-bar {
    width: 100%;
}

.dashboard-stats-bar__loading {
    padding: 0.35rem 0;
    font-size: 0.78rem;
}

.dashboard-header__search {
    grid-area: search;
    min-width: 0;
    max-width: none;
    margin-left: 0;
}

.dashboard-header__actions {
    grid-area: actions;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dashboard-header__row--sync {
    min-height: 0;
    padding-top: 0.2rem;
    padding-bottom: 0.25rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    background: #f8fafc;
}

.dashboard-header__sync-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    width: 100%;
    min-width: 0;
}

.dashboard-header__sync-line .dashboard-sync-bar--header {
    width: auto;
    flex: 0 1 auto;
}

.dashboard-header__sync-line .dashboard-header__hints {
    width: auto;
    flex: 0 1 auto;
}

.dashboard-header__labels {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 1 auto;
    min-width: 0;
}

.dashboard-header__labels-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
}

.dashboard-header__labels-chips {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.dashboard-header__row--sync[hidden] {
    display: none !important;
}

.dashboard-header__row--chips {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    min-height: 0;
    padding-top: 0.4rem;
    padding-bottom: 0.45rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.dashboard-header__row--chips[hidden] {
    display: none !important;
}

.dashboard-header__row--secondary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
    gap: 0.5rem 1.25rem;
    align-items: start;
    min-height: 2.15rem;
    padding-top: 0.35rem;
    padding-bottom: 0.45rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.dashboard-header__row--secondary[hidden] {
    display: none !important;
}

.dashboard-stats-bar__inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 2.1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 0;
}

.dashboard-header__secondary-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
}

.dashboard-header__secondary-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.3rem;
    min-width: 0;
    max-width: min(100%, 42rem);
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.dashboard-header__kpi {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.dashboard-header__kpi .dashboard-segment-filter-bar {
    width: 100%;
}

.dashboard-header__kpi .dashboard-kpi-bar {
    margin: 0;
    flex-wrap: wrap;
}

.dashboard-header__hints {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
}

.dashboard-header__hint {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    line-height: 1.3;
    max-width: 100%;
    white-space: normal;
    text-align: right;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.dashboard-header__hint--legacy {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.dashboard-header__hint .sync-cooldown-timer {
    font-weight: 700;
}

.dashboard-stats-bar__group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.25rem 0.65rem;
    border: none;
    border-left: 1px solid var(--border);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.dashboard-stats-bar__inner > .dashboard-stats-bar__group:first-child {
    border-left: none;
}

.dashboard-stats-bar__group--primary {
    cursor: pointer;
    transition: background 0.15s ease;
}

.dashboard-stats-bar__group--primary:hover {
    background: rgba(56, 189, 248, 0.08);
}

.dashboard-stats-bar__group--primary:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: -2px;
}

.dashboard-stats-bar__group-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
}

.dashboard-stats-bar__value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dashboard-stats-bar__value--hero {
    font-size: 1.08rem;
    color: #0369a1;
}

.dashboard-stats-bar__value--money {
    color: #b45309;
}

.dashboard-stats-bar__inline {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
}

.dashboard-stats-bar__unit {
    font-size: 0.72rem;
    color: #64748b;
}

.dashboard-stats-bar__dot {
    color: #cbd5e1;
    margin: 0 0.1rem;
}

.dashboard-stats-bar__group--labels {
    gap: 0.5rem;
}

.dashboard-stats-bar__chips {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.dashboard-stats-bar__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(14, 116, 144, 0.25);
    background: rgba(224, 242, 254, 0.65);
    font-size: 0.68rem;
    line-height: 1.2;
    color: #0c4a6e;
}

.dashboard-stats-bar__chip.is-low {
    border-color: rgba(217, 119, 6, 0.45);
    background: rgba(254, 243, 199, 0.85);
    color: #92400e;
}

.dashboard-stats-bar__chip-class {
    font-weight: 600;
}

.dashboard-stats-bar__chip-count {
    font-weight: 800;
}

.dashboard-stats-bar__link {
    font-size: 0.68rem;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-stats-bar__link:hover {
    text-decoration: underline;
}

.dashboard-stats-bar__muted {
    font-size: 0.75rem;
    color: #94a3b8;
}

.dashboard-welcome-line {
    margin-top: 0.25rem;
    font-size: 0.88rem;
}

.dashboard-header-privacy-btn.is-active,
.dashboard-header-customize-btn.is-active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.dashboard-header-menu {
    position: relative;
}

.dashboard-header-menu-popover {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 50;
    min-width: 15rem;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.dashboard-header-menu-popover[hidden] {
    display: none;
}

.dashboard-header-menu-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dashboard-header-menu-item:hover {
    background: #f1f5f9;
}

.dashboard-header-menu-item[aria-pressed="true"] {
    background: #eff6ff;
    color: #1e40af;
    font-weight: 600;
}

.dashboard-header-menu-item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dashboard-header-menu-item:disabled:hover {
    background: transparent;
}

.dashboard-header-menu-privacy {
    cursor: pointer;
}

.bricqer-order-actions-overflow {
    position: relative;
    flex-shrink: 0;
}

.bricqer-order-actions-overflow-btn .btn-icon-inner {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.bricqer-order-actions-overflow-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    min-width: 8rem;
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.bricqer-order-actions-overflow-menu[hidden] {
    display: none;
}

@media (max-width: 1100px) {
    .dashboard-header__row--primary {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "stats actions"
            "search search";
        row-gap: 0.45rem;
    }

    .dashboard-header__row--primary.dashboard-header__row--order-data-hidden {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "search actions"
            "search search";
    }

    .dashboard-header__row--chips {
        row-gap: 0.4rem;
    }

    .dashboard-header__row--secondary {
        grid-template-columns: 1fr;
        row-gap: 0.4rem;
    }
}

@media (max-width: 640px) {
    .dashboard-header__row--primary {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .dashboard-header__row--sync,
    .dashboard-header__row--chips {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .dashboard-header__row--secondary {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .dashboard-kpi-bar {
        margin-top: 0;
        flex-wrap: wrap;
    }

    .dashboard-kpi-stand {
        flex-basis: 100%;
        margin-left: 0;
    }

    .app-page-header-search {
        flex-basis: 100%;
    }
}

/* Dashboard Inbox (Phase A) */
.dashboard-inbox-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.dashboard-inbox-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--border-color, #e2e8f0);
    background: #fff;
    color: var(--text-color, #334155);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.dashboard-inbox-tab:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.dashboard-inbox-tab.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.dashboard-inbox-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: inherit;
    font-size: 0.75rem;
    font-weight: 700;
}

.dashboard-inbox-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

.dashboard-inbox-todos {
    border: 1px solid #fcd34d;
    border-radius: 0.75rem;
    background: #fffbeb;
    overflow: hidden;
    flex-shrink: 0;
}

.dashboard-inbox-todos-header {
    border-bottom: 1px solid #fde68a;
}

.dashboard-inbox-todos-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    border: 0;
    background: transparent;
    color: #92400e;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.dashboard-inbox-todos-toggle:hover {
    background: rgba(251, 191, 36, 0.12);
}

.dashboard-inbox-todos-chevron {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex-shrink: 0;
    margin-top: -0.15rem;
}

.dashboard-inbox-todos.is-collapsed .dashboard-inbox-todos-chevron {
    transform: rotate(-45deg);
    margin-top: 0.1rem;
}

.dashboard-inbox-todos-title {
    flex: 1 1 auto;
}

.dashboard-inbox-todos-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.dashboard-inbox-todos-body {
    max-height: min(40vh, 360px);
    overflow-y: auto;
    padding: 0.5rem 0.65rem 0.65rem;
}

.dashboard-inbox-todos.is-collapsed .dashboard-inbox-todos-body {
    display: none;
}

.dashboard-inbox-todos-body .bricqer-order-list {
    gap: 0.35rem;
}

.dashboard-inbox-todos-body .bricqer-order-item {
    background: #fff;
    border-radius: 0.6rem;
}

.dashboard-inbox-legacy-section {
    margin-top: 0.85rem;
}

.dashboard-inbox-body--legacy .dashboard-inbox-legacy-section {
    margin-top: 0;
}

.dashboard-inbox-layout {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.dashboard-inbox-layout--split {
    display: grid;
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: stretch;
    min-height: 0;
}

.dashboard-inbox-list-pane {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.15rem;
}

.dashboard-inbox-list-pane::-webkit-scrollbar {
    width: 8px;
}

.dashboard-inbox-list-pane::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.dashboard-inbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-inbox-order-row {
    margin: 0;
}

.dashboard-inbox-order-row.dashboard-order-search-hidden {
    display: none;
}

.dashboard-inbox-order-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.65rem 0.75rem;
    cursor: pointer;
}

.dashboard-inbox-order-row.is-selected .dashboard-inbox-order-item {
    border-color: #2563eb;
    box-shadow: inset 0 0 0 1px #2563eb;
    background: #f8fbff;
}

.dashboard-inbox-order-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-inbox-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    min-width: 0;
}

.dashboard-inbox-order-head-primary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.dashboard-inbox-order-id {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    flex: 0 0 auto;
}

.dashboard-inbox-order-timestamp {
    min-width: 0;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 500;
}

.dashboard-inbox-order-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.dashboard-inbox-order-note-indicator {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    color: #b45309;
    opacity: 0.9;
}

.dashboard-inbox-order-note-indicator--todo {
    color: #d97706;
    opacity: 1;
}

.dashboard-inbox-order-note-indicator svg {
    display: block;
}

.dashboard-inbox-order-title {
    font-weight: 600;
    line-height: 1.35;
}

.dashboard-inbox-order-main .bricqer-order-item-meta {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.92;
}

.dashboard-inbox-list-footer {
    margin-top: 0.65rem;
    display: flex;
    justify-content: center;
}

.dashboard-inbox-detail-pane {
    min-width: 0;
    min-height: 0;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dashboard-inbox-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    background: #f8fafc;
}

.dashboard-inbox-detail-header-text {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-inbox-detail-header-actions {
    flex: 0 0 auto;
    align-self: flex-start;
}

.dashboard-inbox-detail-header-actions .bricqer-split-btn {
    max-width: 100%;
}

.dashboard-inbox-detail-title {
    margin: 0;
    font-size: 1rem;
}

.dashboard-inbox-detail-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
}

.dashboard-inbox-detail-body {
    padding: 0.85rem 1rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.dashboard-inbox-detail-empty {
    padding: 2rem 1rem;
    text-align: center;
}

.dashboard-inbox-empty {
    padding: 1.5rem 0.5rem;
    text-align: center;
}

.dashboard-inbox-legacy-frames {
    margin-top: 0;
}

/* Dashboard-Inbox: volle Viewport-Höhe, Scroll nur in Liste/Details */
body.dashboard-page:has(.dashboard-inbox-layout--split) {
    height: 100dvh;
    overflow: hidden;
}

body.dashboard-page:has(.dashboard-inbox-layout--split) .app-main {
    min-height: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

body.dashboard-page .app-main {
    min-height: 100dvh;
}

body.dashboard-page .app-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 0.75rem;
    overflow: hidden;
}

body.dashboard-page:has(.dashboard-inbox-layout--split) .dashboard-header {
    flex-shrink: 0;
}

body.dashboard-page .dashboard-main-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

body.dashboard-page #tasksWrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

body.dashboard-page .dashboard-inbox {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

body.dashboard-page .dashboard-inbox-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

body.dashboard-page:has(.dashboard-inbox-layout--split) .dashboard-inbox-body {
    display: flex;
    flex-direction: column;
}

body.dashboard-page:has(.dashboard-inbox-layout--split) .dashboard-inbox-layout--split {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    grid-template-rows: minmax(0, 1fr);
}

body.dashboard-page:has(.dashboard-inbox-layout--split) .dashboard-inbox-list-pane {
    height: 100%;
    max-height: 100%;
}

body.dashboard-page:has(.dashboard-inbox-layout--split) .dashboard-inbox-detail-pane {
    height: 100%;
    max-height: 100%;
}

body.dashboard-page .dashboard-inbox-todo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #fde68a;
    border-radius: 0.65rem;
    background: #fffbeb;
    color: #92400e;
    flex-shrink: 0;
}

@media (max-width: 1023px) {
    .dashboard-inbox-layout--split {
        display: flex;
        flex-direction: column;
    }

    .dashboard-inbox-detail-pane {
        display: none;
    }
}
