/* ------------------------------------------------------------
   Bestway Design Refresh 2026
   Inspiriert vom klaren ALL-INKL/KAS-Look: Weißraum, starke Typografie,
   schlanke Linien, ruhige Flächen und Bestway-Blau als Primärfarbe.
   ------------------------------------------------------------ */
:root {
    --bestway-blue: #174f81;
    --bestway-blue-strong: #0b3d67;
    --bestway-blue-soft: #e8f2fb;
    --bestway-ink: #0b0d10;
    --bestway-lime: #9af51b;
    --bg: #f4f6f8;
    --bg-soft: #eef2f6;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-muted: #f7f9fb;
    --border: #dfe5eb;
    --text: #111827;
    --text-muted: #667085;
    --muted: #667085;
    --primary: var(--bestway-blue);
    --primary-strong: var(--bestway-blue-strong);
    --accent: var(--bestway-blue);
    --success: #198754;
    --warning: #b7791f;
    --danger: #c24141;
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-soft: 0 12px 36px rgba(15, 23, 42, .07);
    --shadow-card: 0 10px 26px rgba(15, 23, 42, .055);
    --shadow-glow: 0 14px 34px rgba(23, 79, 129, .18);
    --sidebar-width: 286px;
    --topbar-height: 78px;
    --content-max: 1520px;
}

html,
body {
    background: #f3f5f7 !important;
    color: var(--text);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 0%, rgba(23, 79, 129, .085), transparent 28rem),
        radial-gradient(circle at 92% 8%, rgba(23, 79, 129, .055), transparent 26rem),
        linear-gradient(180deg, #ffffff 0, #f3f5f7 380px);
}

.app-shell {
    background: transparent;
}

/* Sidebar: sachlich wie Hosting/KAS, aber mit Bestway-Akzent */
.sidebar {
    padding: 18px 14px !important;
    background: rgba(255, 255, 255, .96) !important;
    border-right: 1px solid #e5e7eb !important;
    box-shadow: 8px 0 28px rgba(15, 23, 42, .055) !important;
    gap: 20px !important;
}

.sidebar__brand {
    min-height: 56px;
    padding: 0 4px 14px;
    border-bottom: 1px solid #edf0f3;
}

.brand {
    gap: 12px !important;
}

.brand__mark {
    width: 46px !important;
    height: 46px !important;
    flex-basis: 46px !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    background: var(--bestway-blue) !important;
    box-shadow: 0 10px 22px rgba(23, 79, 129, .20) !important;
    font-weight: 900 !important;
    letter-spacing: -.08em !important;
}

.brand__text strong {
    color: var(--bestway-ink) !important;
    font-size: 1.08rem !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase;
}

.sidebar__nav {
    gap: 4px !important;
}

.nav-item,
.nav-subitem {
    color: #28323d !important;
    font-weight: 800 !important;
    letter-spacing: .01em;
}

.nav-item {
    min-height: 44px !important;
    border-radius: 9px !important;
    padding: 0 12px !important;
}

.nav-item__icon {
    width: 23px !important;
    flex-basis: 23px !important;
    color: var(--bestway-blue) !important;
    opacity: .92;
}

.nav-item:hover,
.nav-item.is-active,
.nav-group.is-open > .nav-item--parent {
    color: var(--bestway-blue) !important;
    background: #f0f5fa !important;
    transform: none !important;
}

.nav-item.is-active::before,
.nav-group.is-open > .nav-item--parent::before {
    content: '';
    width: 4px;
    align-self: stretch;
    margin: 8px 0 8px -8px;
    border-radius: 999px;
    background: var(--bestway-blue);
}

.nav-submenu {
    margin-left: 24px !important;
    padding-left: 14px !important;
    border-left: 1px solid #dbe3eb !important;
}

.nav-subitem {
    min-height: 34px !important;
    border-radius: 8px !important;
    font-size: .88rem !important;
    color: #52606f !important;
}

.nav-subitem:hover,
.nav-subitem.is-active {
    color: var(--bestway-blue) !important;
    background: #f0f5fa !important;
    transform: none !important;
}

.sidebar__panel {
    padding: 14px !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e3e9ef !important;
    box-shadow: none !important;
}

.sidebar__panel strong {
    color: var(--bestway-ink);
    font-size: .9rem;
}

.sidebar__panel small {
    color: #667085 !important;
    line-height: 1.35;
}

/* Topbar: kompakter, weiß, mit klarer Kopfzeile */
.topbar {
    min-height: var(--topbar-height) !important;
    background: rgba(255, 255, 255, .92) !important;
    border-bottom: 1px solid #e6ebf0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .045) !important;
}

.topbar__title span,
.hero__eyebrow {
    color: var(--bestway-blue) !important;
    font-weight: 900 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
}

.topbar__title h1 {
    color: var(--bestway-ink) !important;
    font-weight: 900 !important;
    letter-spacing: -.045em !important;
}

.topbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.user-chip {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #dde5ed;
    border-radius: 999px;
    background: #f8fafc;
    color: #344054;
    font-size: .86rem;
    font-weight: 800;
}

.btn,
.button,
.primary-button,
.ghost-button,
.danger-button,
.btn--ghost,
.btn--primary,
.button--primary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px !important;
    font-weight: 900 !important;
    letter-spacing: .035em;
    text-transform: uppercase;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.btn--small,
.ghost-button--small,
.primary-button--small,
.danger-button--small {
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: .76rem !important;
}

.icon-button {
    border-radius: 8px !important;
    border-color: #dfe5eb !important;
    background: #ffffff !important;
    color: var(--bestway-blue) !important;
}

.ghost-button,
.btn--ghost,
.button,
.btn {
    border: 1px solid #dfe5eb !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: none !important;
}

.primary-button,
.btn--primary,
.button--primary,
button[type='submit'].primary-button {
    border: 1px solid var(--bestway-blue) !important;
    color: #ffffff !important;
    background: var(--bestway-blue) !important;
    box-shadow: 0 12px 24px rgba(23, 79, 129, .18) !important;
}

.primary-button:hover,
.btn--primary:hover,
.button--primary:hover,
.ghost-button:hover,
.btn--ghost:hover,
.icon-button:hover {
    transform: translateY(-1px) !important;
}

.primary-button:hover,
.btn--primary:hover,
.button--primary:hover {
    background: var(--bestway-blue-strong) !important;
}

/* Content-Flächen */
.content {
    padding-top: clamp(22px, 3vw, 38px) !important;
}

.card,
.kpi,
.kpi-card,
.settings-panel,
.settings-card,
.user-admin-card,
.user-card,
.api-connection-item,
.otto-connection-card,
.shop-filter-card,
.shop-products-card {
    border: 1px solid #e0e7ef !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: var(--shadow-card) !important;
    backdrop-filter: none !important;
}

.card__header,
.card__body {
    padding-inline: clamp(18px, 2vw, 26px) !important;
}

.card__header {
    padding-top: clamp(18px, 2vw, 24px) !important;
}

.card__body {
    padding-bottom: clamp(18px, 2vw, 26px) !important;
}

.card__title,
.kpi__value,
.kpi-card__value,
.settings-panel__title,
.user-card__name {
    color: var(--bestway-ink) !important;
    font-weight: 900 !important;
    letter-spacing: -.04em !important;
}

.card__meta,
.kpi__label,
.kpi-card__label,
.table-meta,
.table-subtext {
    color: #667085 !important;
}

/* Hero im Stil einer modernen Hosting-Landingpage */
.hero,
html body .app-shell .content > .hero.card.dashboard-hero,
html body .app-shell .content > .hero.card.otto-hero,
html body .app-shell .content > .hero.card.optimizer-hero {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    border: 0 !important;
    border-radius: 20px !important;
    padding: clamp(28px, 4vw, 50px) !important;
    color: #ffffff !important;
    background:
        radial-gradient(circle at 84% 30%, rgba(255, 255, 255, .14), transparent 20rem),
        linear-gradient(135deg, #101318 0%, #172331 52%, #174f81 100%) !important;
    box-shadow: 0 24px 54px rgba(15, 23, 42, .20) !important;
}

.hero::before,
html body .app-shell .content > .hero.card.dashboard-hero::before,
html body .app-shell .content > .hero.card.otto-hero::before,
html body .app-shell .content > .hero.card.optimizer-hero::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    inset: auto -90px -150px auto !important;
    width: 420px !important;
    height: 420px !important;
    border-radius: 50% !important;
    background: repeating-radial-gradient(circle, rgba(255, 255, 255, .16) 0 2px, transparent 3px 14px) !important;
    opacity: .7 !important;
    z-index: -1 !important;
}

.hero::after,
html body .app-shell .content > .hero.card.dashboard-hero::after,
html body .app-shell .content > .hero.card.otto-hero::after,
html body .app-shell .content > .hero.card.optimizer-hero::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 24px !important;
    right: clamp(20px, 4vw, 54px) !important;
    width: 92px !important;
    height: 92px !important;
    border: 2px solid rgba(255, 255, 255, .18) !important;
    border-radius: 18px !important;
    transform: rotate(8deg) !important;
    z-index: -1 !important;
}

.hero h1,
.hero h2,
html body .app-shell .content > .hero.card.dashboard-hero h1,
html body .app-shell .content > .hero.card.dashboard-hero h2,
html body .app-shell .content > .hero.card.otto-hero h1,
html body .app-shell .content > .hero.card.otto-hero h2,
html body .app-shell .content > .hero.card.optimizer-hero h1,
html body .app-shell .content > .hero.card.optimizer-hero h2 {
    max-width: 920px;
    color: #ffffff !important;
    font-size: clamp(2rem, 5vw, 4.7rem) !important;
    line-height: .96 !important;
    font-weight: 950 !important;
    letter-spacing: -.075em !important;
    text-transform: none !important;
}

.hero p,
html body .app-shell .content > .hero.card.dashboard-hero p,
html body .app-shell .content > .hero.card.otto-hero p,
html body .app-shell .content > .hero.card.optimizer-hero p,
html body .app-shell .content > .hero.card.optimizer-hero .optimizer-note {
    max-width: 780px;
    color: rgba(255, 255, 255, .82) !important;
    font-size: clamp(1rem, 1.4vw, 1.18rem) !important;
    line-height: 1.55 !important;
}

.hero__eyebrow,
html body .app-shell .content > .hero.card.dashboard-hero .hero__eyebrow,
html body .app-shell .content > .hero.card.otto-hero .hero__eyebrow,
html body .app-shell .content > .hero.card.optimizer-hero .hero__eyebrow {
    color: #b9d9f3 !important;
}

html body .app-shell .content > .hero.card.otto-hero .otto-connection-card,
html body .app-shell .content > .hero.card.optimizer-hero .otto-connection-card,
html body .app-shell .content > .hero.card.otto-hero .hero__aside,
html body .app-shell .content > .hero.card.optimizer-hero .hero__aside {
    background: rgba(255, 255, 255, .10) !important;
    border-color: rgba(255, 255, 255, .20) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Kennzahlen wie Tarif-/Produktkacheln: klare Kontur, großer Wert */
.otto-kpi-grid,
.grid--kpi,
.shop-kpi-grid--five,
.shop-kpi-grid--six {
    gap: 16px !important;
}

.kpi,
.kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 20px !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.kpi::after,
.kpi-card::after {
    content: '';
    position: absolute;
    inset: auto -42px -50px auto;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(23, 79, 129, .07) !important;
}

.kpi:hover,
.kpi-card:hover,
.otto-kpi-grid a:hover .kpi-card {
    transform: translateY(-3px) !important;
    border-color: rgba(23, 79, 129, .34) !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .10) !important;
}

.kpi-card.is-active,
.otto-kpi-grid a.is-active .kpi-card,
.otto-kpi-grid .card.is-active {
    border-color: var(--bestway-blue) !important;
    box-shadow: inset 0 3px 0 var(--bestway-blue), 0 18px 38px rgba(23, 79, 129, .12) !important;
}

.kpi-card__label,
.kpi__label {
    text-transform: uppercase;
    font-size: .76rem !important;
    font-weight: 900 !important;
    letter-spacing: .13em;
}

.kpi-card__value,
.kpi__value {
    font-size: clamp(2rem, 3.2vw, 3.25rem) !important;
}

/* Toolbar & Formularfelder */
.otto-toolbar,
.filter-bar,
.shop-article-filter-bar,
.optimizer-filter-form {
    background: #ffffff !important;
    border: 1px solid #e0e7ef !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-card) !important;
}

.field__control,
.control-field input,
.control-field select,
.control-field textarea,
.otto-toolbar select,
.otto-toolbar input,
.optimizer-filter-form input,
.optimizer-filter-form select,
.status-toggle {
    min-height: 44px;
    border: 1px solid #d9e1ea !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    color: #111827 !important;
    box-shadow: none !important;
}

.field__control:focus,
.control-field input:focus,
.control-field select:focus,
.control-field textarea:focus,
.otto-toolbar select:focus,
.otto-toolbar input:focus,
.optimizer-filter-form input:focus,
.optimizer-filter-form select:focus {
    border-color: rgba(23, 79, 129, .58) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(23, 79, 129, .10) !important;
}

.field__control::placeholder,
.control-field input::placeholder,
.control-field textarea::placeholder,
.otto-toolbar input::placeholder,
.optimizer-filter-form input::placeholder {
    color: #98a2b3 !important;
}

select,
.field__control option,
.control-field select option,
.otto-toolbar select option,
.optimizer-filter-form select option {
    background: #ffffff !important;
    color: #111827 !important;
}

/* Tabellen: dichter, heller, mit Kopfzeile wie KAS-Tabellen */
.table-wrap,
.shop-products-card,
.card:has(.data-table) {
    border-radius: 16px;
}

.data-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.data-table th {
    padding: 13px 14px !important;
    color: #111827 !important;
    background: #f2f5f8 !important;
    border-bottom: 1px solid #dde5ed !important;
    font-size: .76rem !important;
    font-weight: 950 !important;
    letter-spacing: .12em !important;
}

.data-table td {
    padding: 13px 14px !important;
    border-bottom: 1px solid #eef2f6 !important;
    color: #27313d;
}

.data-table tbody tr:nth-child(even) {
    background: #fbfcfd;
}

.data-table tbody tr:hover {
    background: #eef6fc !important;
}

/* Badges und Hinweise */
.badge,
.status-badge,
.status-pill,
.pill {
    min-height: 26px !important;
    border-radius: 999px !important;
    border: 1px solid #dde5ed !important;
    background: #f7f9fb !important;
    color: #475467 !important;
    font-weight: 900 !important;
}

.badge--success,
.status-badge--success,
.status-pill--success,
.pill--success {
    color: #146c43 !important;
    background: #eaf8f0 !important;
    border-color: #c5ead4 !important;
}

.badge--warning,
.status-badge--warning,
.status-pill--warning,
.pill--warning {
    color: #946200 !important;
    background: #fff6df !important;
    border-color: #f0d99b !important;
}

.badge--danger,
.status-badge--danger,
.status-pill--danger,
.status-pill--error,
.pill--danger {
    color: #a92e2e !important;
    background: #fff0f0 !important;
    border-color: #f0c5c5 !important;
}

html body .app-shell .content .alert {
    border-radius: 12px !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .06) !important;
}

html body .app-shell .content .alert--success {
    color: #135d3a !important;
    background: #effaf3 !important;
    border-color: #bde7cd !important;
}

html body .app-shell .content .alert--warning {
    color: #7a530f !important;
    background: #fff7e7 !important;
    border-color: #ecd39b !important;
}

html body .app-shell .content .alert--danger,
html body .app-shell .content .alert--error {
    color: #992828 !important;
    background: #fff2f2 !important;
    border-color: #ecc1c1 !important;
}

.empty-state,
.settings-section,
.api-edit-panel,
.credential-preview div {
    background: #f8fafc !important;
    border-color: #e0e7ef !important;
}

.settings-panel__header,
#user-management .settings-panel__header {
    border-radius: 16px !important;
    background: #ffffff !important;
    color: #111827 !important;
}

.settings-panel__header:hover,
#user-management .settings-panel__header:hover {
    background: #f5f8fb !important;
}

.settings-panel__icon,
#user-management .settings-panel__icon,
.user-avatar {
    border-radius: 10px !important;
    color: #ffffff !important;
    background: var(--bestway-blue) !important;
}

.optimizer-tab-button {
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid #dfe5eb !important;
    color: #111827 !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.optimizer-tab-button.is-active {
    color: #ffffff !important;
    background: var(--bestway-blue) !important;
    border-color: var(--bestway-blue) !important;
}

.shop-thumb-button {
    border-radius: 10px !important;
    border-color: #dfe5eb !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .07) !important;
}

.shop-thumb {
    border-radius: 9px !important;
}

.app-footer {
    background: transparent !important;
    border-top: 1px solid #e6ebf0 !important;
}

/* Login-Seite wird optisch mitgezogen, ohne Funktion anzufassen */
.login-page,
body.login-body {
    background: linear-gradient(180deg, #ffffff 0, #f3f5f7 100%) !important;
}

.login-card {
    border-radius: 20px !important;
    border-color: #e0e7ef !important;
    background: #ffffff !important;
    box-shadow: 0 24px 58px rgba(15, 23, 42, .10) !important;
}

/* Mobile: Sidebar zuverlässig als Drawer */
@media (max-width: 1080px) {
    .topbar {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        padding-inline: 14px !important;
    }

    .topbar__menu {
        display: inline-grid !important;
    }

    .topbar__actions .user-chip {
        display: none;
    }

    .sidebar {
        width: min(88vw, 326px) !important;
        transform: translateX(-110%) !important;
    }

    body.sidebar-is-open .sidebar,
    body.sidebar-open .sidebar,
    body.is-sidebar-open .sidebar,
    .sidebar.is-open {
        transform: translateX(0) !important;
    }

    .sidebar-backdrop {
        background: rgba(15, 23, 42, .48) !important;
        backdrop-filter: blur(2px);
    }

    .content {
        padding-inline: 14px !important;
    }

    .hero,
    html body .app-shell .content > .hero.card.dashboard-hero,
    html body .app-shell .content > .hero.card.otto-hero,
    html body .app-shell .content > .hero.card.optimizer-hero {
        padding: 26px 20px !important;
    }
}

@media (max-width: 680px) {
    .topbar__title span {
        font-size: .66rem !important;
    }

    .topbar__title h1 {
        font-size: 1.22rem !important;
    }

    .hero h1,
    .hero h2,
    html body .app-shell .content > .hero.card.dashboard-hero h1,
    html body .app-shell .content > .hero.card.dashboard-hero h2,
    html body .app-shell .content > .hero.card.otto-hero h1,
    html body .app-shell .content > .hero.card.otto-hero h2,
    html body .app-shell .content > .hero.card.optimizer-hero h1,
    html body .app-shell .content > .hero.card.optimizer-hero h2 {
        font-size: clamp(2rem, 12vw, 3rem) !important;
    }

    .card__header {
        flex-direction: column;
    }
}


/* Dashboard-Feinschliff: bereinigte Kopfzeile ohne doppelten Menü-Button */
.topbar,
.topbar.topbar--clean {
    grid-template-columns: minmax(0, 1fr) auto !important;
}

.topbar__title {
    min-width: 0;
}

.topbar__menu {
    display: none !important;
}

@media (max-width: 1080px) {
    .topbar,
    .topbar.topbar--clean {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }
}


/* Dashboard-Willkommenskarte: Absatz nach Überschrift, Texte direkt untereinander */
.dashboard-welcome-card .card__header {
    padding-bottom: 0 !important;
}

.dashboard-welcome-card .card__body {
    padding-top: 18px !important;
}

.dashboard-welcome-card .card__body p {
    margin: 0 !important;
}

.dashboard-welcome-card .card__body p + p {
    margin-top: 2px !important;
}


/* Dashboard-Hero: Titel etwas kompakter, analog zur Listungs-Übersicht */
html body .app-shell .content > .hero.card.dashboard-hero h1,
html body .app-shell .content > .hero.card.dashboard-hero h2 {
    font-size: clamp(1.85rem, 3.2vw, 3.05rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.06em !important;
}

@media (max-width: 680px) {
    html body .app-shell .content > .hero.card.dashboard-hero h1,
    html body .app-shell .content > .hero.card.dashboard-hero h2 {
        font-size: clamp(1.85rem, 9vw, 2.55rem) !important;
    }
}


/* Mobile-Menü wieder aktiv: Desktop ausgeblendet, mobil sichtbar */
.topbar.topbar--clean {
    grid-template-columns: minmax(0, 1fr) auto !important;
}

.topbar.topbar--clean .topbar__menu {
    display: none !important;
}

@media (max-width: 1080px) {
    .topbar.topbar--clean {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
    }

    .topbar.topbar--clean .topbar__menu {
        display: inline-grid !important;
    }
}


/* OTTO Listungs-Übersicht: API-Status im Hero + saubere Filterleiste */
html body .app-shell .content > .hero.card.otto-hero.listings-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) !important;
    align-items: center !important;
    gap: clamp(22px, 4vw, 46px) !important;
}

html body .app-shell .content > .hero.card.otto-hero.listings-hero .listings-connection-card {
    justify-self: end;
    width: min(100%, 340px);
    min-width: 0;
    padding: 20px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: blur(14px);
}

html body .app-shell .content > .hero.card.otto-hero.listings-hero .listings-connection-card strong {
    color: #ffffff !important;
    font-weight: 900 !important;
    letter-spacing: -.02em;
}

html body .app-shell .content > .hero.card.otto-hero.listings-hero .listings-connection-card small {
    color: rgba(255, 255, 255, .78) !important;
    line-height: 1.4;
}

html body .app-shell .content > .hero.card.otto-hero.listings-hero .listings-connection-card .badge {
    width: fit-content;
    text-transform: uppercase;
}

html body .app-shell .content form.otto-toolbar {
    display: grid !important;
    grid-template-columns: minmax(280px, 2fr) minmax(180px, .7fr) minmax(220px, 1fr) minmax(140px, .55fr) auto !important;
    align-items: end !important;
    gap: 16px !important;
    padding: 20px !important;
    margin: 0 0 18px !important;
    overflow: visible !important;
}

html body .app-shell .content form.otto-toolbar .field,
html body .app-shell .content form.otto-toolbar .otto-status-multiselect,
html body .app-shell .content form.otto-toolbar .otto-category-filter {
    min-width: 0 !important;
    width: 100% !important;
}

html body .app-shell .content form.otto-toolbar .field__label {
    display: block;
    margin-bottom: 7px;
}

html body .app-shell .content form.otto-toolbar .field__control,
html body .app-shell .content form.otto-toolbar input.field__control,
html body .app-shell .content form.otto-toolbar select.field__control,
html body .app-shell .content form.otto-toolbar .otto-status-multiselect__button {
    width: 100% !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    line-height: 1.2 !important;
}

html body .app-shell .content form.otto-toolbar .otto-toolbar__actions {
    display: flex !important;
    align-items: end !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    min-width: max-content;
}

html body .app-shell .content form.otto-toolbar .otto-toolbar__actions .ghost-button {
    min-height: 46px !important;
    white-space: nowrap !important;
    padding-inline: 16px !important;
}

html body .app-shell .content form.otto-toolbar .otto-status-multiselect__panel {
    width: max(100%, 230px);
}

@media (max-width: 1240px) {
    html body .app-shell .content form.otto-toolbar {
        grid-template-columns: minmax(260px, 1fr) minmax(180px, 1fr) !important;
    }

    html body .app-shell .content form.otto-toolbar .otto-toolbar__actions {
        min-width: 0;
    }
}

@media (max-width: 860px) {
    html body .app-shell .content > .hero.card.otto-hero.listings-hero {
        grid-template-columns: 1fr !important;
    }

    html body .app-shell .content > .hero.card.otto-hero.listings-hero .listings-connection-card {
        justify-self: stretch;
        width: 100%;
    }

    html body .app-shell .content form.otto-toolbar {
        grid-template-columns: 1fr !important;
        padding: 16px !important;
    }

    html body .app-shell .content form.otto-toolbar .otto-toolbar__actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    html body .app-shell .content form.otto-toolbar .otto-toolbar__actions .ghost-button {
        width: 100% !important;
    }
}

@media (max-width: 520px) {
    html body .app-shell .content form.otto-toolbar .otto-toolbar__actions {
        grid-template-columns: 1fr;
    }
}

/* OTTO Listungs-Übersicht: smarte Mobile-Ansicht statt breiter Tabelle */
.otto-mobile-listings {
    display: none;
}

@media (max-width: 820px) {
    .table-shell:has(.data-table) {
        display: none !important;
    }

    .otto-mobile-listings {
        display: grid;
        gap: 12px;
        margin-top: 14px;
    }

    .otto-mobile-listing-card {
        display: grid;
        gap: 14px;
        padding: 14px;
        border: 1px solid #e0e7ef;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
    }

    .otto-mobile-listing-card__top {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
    }

    .otto-mobile-listing-card__image {
        grid-row: span 2;
    }

    .otto-mobile-listing-card__image .otto-thumb-button,
    .otto-mobile-listing-card__image .otto-thumb {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        border-radius: 12px !important;
    }

    .otto-mobile-listing-card__main {
        min-width: 0;
        display: grid;
        gap: 3px;
    }

    .otto-mobile-listing-card__label,
    .otto-mobile-listing-card__facts span,
    .otto-mobile-listing-card__meta span {
        color: #667085;
        font-size: .68rem;
        font-weight: 900;
        letter-spacing: .13em;
        text-transform: uppercase;
    }

    .otto-mobile-listing-card__main > strong {
        color: #0b0d10;
        font-size: 1.2rem;
        font-weight: 950;
        line-height: 1.05;
        letter-spacing: -.04em;
    }

    .otto-mobile-listing-card__category {
        width: fit-content;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 4px 8px;
        border: 1px solid #d7e4ef;
        border-radius: 999px;
        background: #f0f5fa;
        color: var(--bestway-blue);
        font-size: .73rem;
        font-weight: 850;
    }

    .otto-mobile-listing-card__status {
        grid-column: 2;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .otto-mobile-listing-card__facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .otto-mobile-listing-card__facts > div,
    .otto-mobile-listing-card__meta > div {
        min-width: 0;
        display: grid;
        gap: 5px;
        padding: 10px;
        border: 1px solid #e7edf3;
        border-radius: 12px;
        background: #f8fafc;
    }

    .otto-mobile-listing-card__facts strong,
    .otto-mobile-listing-card__meta strong {
        min-width: 0;
        color: #111827;
        font-size: .88rem;
        font-weight: 850;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .otto-mobile-listing-card__facts .otto-score-button,
    .otto-mobile-listing-card__facts .otto-issue-button {
        width: fit-content;
        max-width: 100%;
    }

    .otto-mobile-listing-card__meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .otto-mobile-listing-card__actions {
        display: flex;
        justify-content: flex-end;
        padding-top: 2px;
    }

    .otto-mobile-listing-card__actions .ghost-button {
        min-width: 128px;
    }

    .otto-pagination {
        margin-top: 16px !important;
    }
}

@media (max-width: 440px) {
    .otto-mobile-listing-card {
        padding: 12px;
        border-radius: 14px;
    }

    .otto-mobile-listing-card__top {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .otto-mobile-listing-card__image .otto-thumb-button,
    .otto-mobile-listing-card__image .otto-thumb {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
    }

    .otto-mobile-listing-card__facts {
        grid-template-columns: 1fr;
    }

    .otto-mobile-listing-card__actions,
    .otto-mobile-listing-card__actions .ghost-button {
        width: 100%;
    }
}

/* Reporting Dashboard: moderne Filter, Amazon-ähnliche KPI-Kacheln und sichtbare Diagramme */
.reporting-filter-card {
    margin-bottom: 18px;
    border-color: #dfe7f1 !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08) !important;
}

.reporting-filter-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 14px;
    align-items: end;
}

.reporting-date-shortcuts {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 6px;
}

.reporting-date-shortcut {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 12px;
    border: 1px solid #dfe7f1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #5b6590;
    font-size: .78rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}

.reporting-date-shortcut:hover,
.reporting-date-shortcut:focus-visible,
.reporting-date-shortcut.is-active {
    border-color: rgba(23, 79, 129, .24);
    background: linear-gradient(135deg, rgba(23, 79, 129, .1), rgba(47, 128, 194, .08));
    color: #174f81;
    box-shadow: 0 10px 22px rgba(23, 79, 129, .11);
    transform: translateY(-1px);
}

.reporting-filter-form .control-field {
    min-width: 0;
}

.reporting-filter-form input[type="date"] {
    color-scheme: light;
    font-weight: 700;
    letter-spacing: .01em;
}

.reporting-filter-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .75;
    padding: 6px;
    border-radius: 8px;
    background-color: rgba(23, 79, 129, .08);
}

.reporting-filter-submit {
    min-height: 46px;
    border-radius: 12px !important;
    box-shadow: 0 12px 24px rgba(23, 79, 129, .18) !important;
}

.reporting-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.reporting-kpi-grid .kpi-card {
    display: grid;
    align-content: center;
    gap: 7px;
    min-height: 110px;
    border-color: #dfe7f1 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

.reporting-kpi-grid .kpi-card__label {
    color: #64748b;
    font-size: .68rem !important;
    font-weight: 650 !important;
    letter-spacing: .085em !important;
    line-height: 1.25;
}

.reporting-kpi-grid .kpi-card__meta {
    color: #7c8da5;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.3;
}

.reporting-kpi-grid .kpi-card__value {
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: #25364a;
    font-size: clamp(1rem, 1.08vw, 1.38rem) !important;
    font-weight: 600 !important;
    letter-spacing: -.025em !important;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reporting-kpi-grid .kpi-card__value--positive {
    color: #2d8a6f;
}

.reporting-kpi-grid .kpi-card__value--negative {
    color: #c45a73;
}

.reporting-details-card {
    overflow: hidden;
    border-color: #dfe7f1 !important;
}

.reporting-details-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.reporting-details-table {
    width: 100%;
    min-width: 860px;
}

.reporting-details-table th,
.reporting-details-table td {
    white-space: nowrap;
}

.reporting-details-table th:nth-child(5),
.reporting-details-table th:nth-child(6),
.reporting-details-table th:nth-child(7),
.reporting-details-table th:nth-child(8),
.reporting-details-table td:nth-child(5),
.reporting-details-table td:nth-child(6),
.reporting-details-table td:nth-child(7),
.reporting-details-table td:nth-child(8) {
    text-align: right;
}

.reporting-details-table td:nth-child(2),
.reporting-details-table td:nth-child(4) {
    white-space: normal;
}

.reporting-chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.reporting-chart-card {
    overflow: hidden;
    border-color: #dfe7f1 !important;
}

.reporting-chart-grid + .reporting-details-card {
    margin-top: 16px;
}

.reporting-bars {
    display: grid;
    gap: 14px;
}

.reporting-bar-row {
    display: grid;
    gap: 7px;
}

.reporting-bar-row__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .88rem;
    color: #344054;
}

.reporting-bar-row__meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reporting-bar-row__value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.reporting-bar-row__meta strong {
    color: #07111f;
    white-space: nowrap;
}

.reporting-bar-row__value em {
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef6ff;
    color: #17568f;
    font-size: .76rem;
    font-style: normal;
    font-weight: 700;
}

.reporting-bar-row__track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f7;
}

.reporting-bar-row__track span {
    display: block;
    width: var(--bar-width);
    min-width: 3px;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #174f81, #2f80c2);
    box-shadow: 0 6px 14px rgba(23, 79, 129, .22);
}

@media (max-width: 1280px) {
    .reporting-filter-form,
    .reporting-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .reporting-filter-form,
    .reporting-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.reporting-platform-chart-card .card__body {
    padding-top: 8px;
}

.reporting-platform-chart {
    --chart-height: clamp(260px, 34vw, 420px);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(118px, 1fr);
    align-items: end;
    gap: clamp(12px, 2vw, 24px);
    min-height: calc(var(--chart-height) + 92px);
    padding: 18px 6px 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.reporting-platform-chart__item {
    display: grid;
    grid-template-rows: auto var(--chart-height) auto;
    gap: 10px;
    min-width: 0;
}

.reporting-platform-chart__value {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-height: 48px;
    color: #07111f;
    text-align: center;
}

.reporting-platform-chart__value strong {
    font-size: clamp(.78rem, .9vw, .95rem);
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.reporting-platform-chart__value em {
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(23, 79, 129, .12), rgba(47, 128, 194, .1));
    color: #174f81;
    font-size: .72rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.reporting-platform-chart__plot {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: var(--chart-height);
    border-bottom: 1px solid #dfe7f1;
    background:
        linear-gradient(to top, rgba(148, 163, 184, .22) 1px, transparent 1px) 0 0 / 100% 25%,
        linear-gradient(180deg, rgba(248, 251, 255, .6), rgba(255, 255, 255, 0));
    border-radius: 18px 18px 6px 6px;
    overflow: hidden;
}

.reporting-platform-chart__bar {
    display: block;
    width: min(72%, 96px);
    min-height: 4px;
    height: var(--bar-height);
    border-radius: 18px 18px 5px 5px;
    background: linear-gradient(180deg, #2f80c2 0%, #174f81 100%);
    box-shadow: 0 16px 28px rgba(23, 79, 129, .24), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .18s ease, filter .18s ease;
}

.reporting-platform-chart__item:hover .reporting-platform-chart__bar {
    filter: saturate(1.08) brightness(1.04);
    transform: translateY(-2px);
}

.reporting-platform-chart__label {
    min-height: 34px;
    color: #526174;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 860px) {
    .reporting-platform-chart {
        --chart-height: 240px;
        grid-auto-columns: minmax(104px, 42vw);
    }
}

.reporting-ranking-chart__header {
    align-items: flex-start;
}

.reporting-ranking-chart__subtitle {
    margin: 5px 0 0;
    color: #718096;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.reporting-ranking-chart {
    display: grid;
    gap: 6px;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.reporting-ranking-chart__row {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(140px, 1fr) minmax(110px, 130px) minmax(70px, 80px);
    gap: 14px;
    align-items: center;
    min-height: 38px;
    padding: 4px 6px;
    border-radius: 13px;
    color: #344054;
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.reporting-ranking-chart__row:hover {
    background: rgba(238, 246, 255, .72);
    box-shadow: inset 0 0 0 1px rgba(23, 79, 129, .08);
    transform: translateY(-1px);
}

.reporting-ranking-chart__label {
    min-width: 0;
    overflow: hidden;
    color: #243447;
    font-size: .88rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reporting-ranking-chart__track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf4fb;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}

.reporting-ranking-chart__track span {
    display: block;
    width: var(--bar-width);
    min-width: 6px;
    max-width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #174f81, #2f80c2);
    box-shadow: 0 6px 14px rgba(23, 79, 129, .18);
}

.reporting-ranking-chart__track span.is-empty {
    min-width: 0;
}

.reporting-ranking-chart__row.is-top .reporting-ranking-chart__label,
.reporting-ranking-chart__row.is-top .reporting-ranking-chart__value {
    color: #07111f;
    font-weight: 850;
}

.reporting-ranking-chart__row.is-top .reporting-ranking-chart__track span {
    background: linear-gradient(90deg, #0f426d, #2f80c2);
    box-shadow: 0 8px 18px rgba(23, 79, 129, .24);
}

.reporting-ranking-chart__value {
    color: #07111f;
    font-size: .88rem;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.reporting-ranking-chart__share {
    justify-self: end;
    min-width: 70px;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(23, 79, 129, .1), rgba(47, 128, 194, .08));
    color: #17568f;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .reporting-ranking-chart__row {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px 10px;
        min-height: 58px;
        padding: 8px 4px;
    }

    .reporting-ranking-chart__label {
        grid-column: 1 / 2;
    }

    .reporting-ranking-chart__value {
        grid-column: 2 / 3;
    }

    .reporting-ranking-chart__share {
        grid-column: 3 / 4;
    }

    .reporting-ranking-chart__track {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }
}

.reporting-kpi-grid .kpi-card__value--split .is-positive,
.reporting-platform-detail .is-positive {
    color: #0ea54a;
}

.reporting-kpi-grid .kpi-card__value--split .is-negative,
.reporting-platform-detail .is-negative {
    color: #e12d48;
}

.reporting-kpi-grid .kpi-card__value--split .is-neutral,
.reporting-platform-detail .is-neutral {
    color: #64748b;
}

.reporting-hour-card,
.reporting-details-card {
    grid-column: 1 / -1;
}

.reporting-hour-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.reporting-hour-cell {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 4px;
    min-height: 86px;
    padding: 12px;
    border: 1px solid #dfe7f1;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 20px rgba(15, 23, 42, .04);
}

.reporting-hour-cell span,
.reporting-hour-cell strong,
.reporting-hour-cell em {
    position: relative;
    z-index: 1;
}

.reporting-hour-cell span {
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.reporting-hour-cell strong {
    color: #1f2a44;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.18;
}

.reporting-hour-cell em {
    color: #7b86a8;
    font-size: .72rem;
    font-style: normal;
    font-weight: 700;
}

.reporting-hour-cell i {
    position: absolute;
    inset: auto 0 0 0;
    height: 5px;
    width: var(--bar-width);
    border-radius: 999px;
    background: linear-gradient(90deg, #174f81, #5aa7df);
}

.reporting-platform-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.reporting-platform-detail {
    padding: 16px;
    border: 1px solid #dfe7f1;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .05);
}

.reporting-platform-detail h4 {
    margin: 0 0 12px;
    color: #1f2a44;
    font-size: 1rem;
    font-weight: 850;
}

.reporting-platform-detail dl {
    display: grid;
    gap: 9px;
    margin: 0;
}

.reporting-platform-detail dl div {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(0, 1.15fr);
    gap: 12px;
    align-items: baseline;
    padding-top: 9px;
    border-top: 1px solid rgba(223, 231, 241, .86);
}

.reporting-platform-detail dt {
    color: #64748b;
    font-size: .72rem;
    font-weight: 750;
}

.reporting-platform-detail dd {
    margin: 0;
    color: #1f2a44;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: right;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .reporting-hour-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .reporting-hour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reporting-platform-details {
        grid-template-columns: 1fr;
    }

    .reporting-platform-detail dl div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .reporting-platform-detail dd {
        text-align: left;
    }
}

.reporting-sync-card { margin-bottom: 16px; border-color: #dfe7f1 !important; background: linear-gradient(135deg, #ffffff, #f6fbff) !important; }
.reporting-sync-card .card__body { display: grid; gap: 4px; }
.reporting-sync-card span { color: #174f81; font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.reporting-sync-card strong { color: #0f172a; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.reporting-sync-card small { color: #64748b; font-weight: 700; }
.reporting-results-shell { animation: reportingFadeIn .34s ease both; }
@keyframes reportingFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.reporting-upload-card { max-width: 780px; }
.reporting-upload-form { display: grid; gap: 18px; }
.reporting-file-drop { position: relative; display: grid; gap: 8px; padding: 22px; border: 2px dashed #bed4e8; border-radius: 22px; background: linear-gradient(180deg, #fbfdff, #f4f8fc); cursor: pointer; }
.reporting-file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.reporting-file-drop__label { color: #174f81; font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.reporting-file-drop strong { color: #0f172a; font-size: clamp(1.05rem, 4vw, 1.35rem); overflow-wrap: anywhere; }
.reporting-file-drop small { color: #64748b; font-weight: 650; }
.reporting-upload-button { justify-self: start; display: inline-flex !important; align-items: center; gap: 10px; min-height: 48px; border-radius: 14px !important; }
.reporting-upload-button i { display: none; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: reportingSpin .8s linear infinite; }
.reporting-upload-progress { display: none; align-items: center; gap: 10px; color: #174f81; font-weight: 800; }
.reporting-upload-progress span { width: 18px; height: 18px; border: 3px solid rgba(23,79,129,.18); border-top-color: #174f81; border-radius: 50%; animation: reportingSpin .8s linear infinite; }
.reporting-upload-form.is-uploading .reporting-upload-button { pointer-events: none; opacity: .82; }
.reporting-upload-form.is-uploading .reporting-upload-button i, .reporting-upload-form.is-uploading .reporting-upload-progress { display: inline-flex; }
@keyframes reportingSpin { to { transform: rotate(360deg); } }

.reporting-import-log { display: grid; gap: 12px; }
.reporting-import-log__item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; padding: 16px; border: 1px solid #dfe7f1; border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(15,23,42,.06); }
.reporting-import-log__main { display: grid; gap: 4px; min-width: 0; }
.reporting-import-log__main strong { overflow-wrap: anywhere; color: #0f172a; }
.reporting-import-log__main small { color: #64748b; font-weight: 650; line-height: 1.4; }
.reporting-import-log__id, .reporting-import-log__status { width: fit-content; padding: 4px 9px; border-radius: 999px; font-size: .75rem; font-weight: 900; }
.reporting-import-log__id { background: #eef6ff; color: #174f81; }
.reporting-import-log__status { align-self: start; background: #eef2f7; color: #334155; text-transform: uppercase; letter-spacing: .05em; }
.reporting-import-log__status--completed { background: #e7f8ef; color: #147a4d; }
.reporting-import-log__status--failed { background: #fff0f3; color: #bd3152; }
.reporting-import-log__stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 0; }
.reporting-import-log__stats div { padding: 10px; border-radius: 14px; background: #f8fafc; }
.reporting-import-log__stats dt { color: #64748b; font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.reporting-import-log__stats dd { margin: 2px 0 0; color: #0f172a; font-size: 1.2rem; font-weight: 900; }
.reporting-import-log__error { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 720px) { .reporting-upload-card { max-width: none; } .reporting-upload-button { width: 100%; justify-content: center; } .reporting-import-log__item { grid-template-columns: 1fr; } .reporting-import-log__stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.reporting-ranking-chart__hint {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(23, 79, 129, .08);
    color: #17568f;
    font-size: .75rem;
    font-weight: 850;
    white-space: nowrap;
}

.reporting-ranking-chart__row--button {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.reporting-ranking-chart__row--button:focus-visible {
    outline: 3px solid rgba(47, 128, 194, .35);
    outline-offset: 2px;
}

.has-reporting-modal {
    overflow: hidden;
}

.reporting-modal[hidden] {
    display: none;
}

.reporting-modal.is-closing {
    pointer-events: none;
}

.reporting-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    align-items: start;
    justify-items: center;
    overflow-y: auto;
    padding: clamp(18px, 6vh, 56px) 24px 24px;
    opacity: 0;
    transition: opacity .18s ease;
}

.reporting-modal.is-open {
    opacity: 1;
}

.reporting-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 17, 31, .58);
    backdrop-filter: blur(4px);
}

.reporting-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1120px, 96vw);
    max-height: min(760px, calc(100vh - clamp(42px, 12vh, 112px)));
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(7, 17, 31, .32);
    transform: translateY(14px) scale(.985);
    transition: transform .18s ease, opacity .18s ease;
}

.reporting-modal.is-open .reporting-modal__dialog {
    transform: translateY(0) scale(1);
}

.reporting-modal.is-closing .reporting-modal__dialog {
    transform: translateY(10px) scale(.99);
}

@media (prefers-reduced-motion: reduce) {
    .reporting-modal,
    .reporting-modal__dialog {
        transition: none;
    }
}

.reporting-modal__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid #e6edf5;
}

.reporting-modal__eyebrow {
    color: #17568f;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.reporting-modal__header h3 {
    margin: 4px 0 6px;
    color: #07111f;
    font-size: 1.35rem;
}

.reporting-modal__header p {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
    font-weight: 700;
}

.reporting-modal__close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #eef4fa;
    color: #243447;
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
}

.reporting-modal__body {
    overflow: auto;
    padding: 20px 28px 28px;
}

.reporting-modal-table-wrap {
    overflow: auto;
    border: 1px solid #e6edf5;
    border-radius: 18px;
}

.reporting-modal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    table-layout: fixed;
}

.reporting-modal-table--articles .reporting-modal-table__article-number {
    width: 14%;
}

.reporting-modal-table--articles .reporting-modal-table__ean {
    width: 13%;
}

.reporting-modal-table--articles .reporting-modal-table__article {
    width: auto;
}

.reporting-modal-table--articles .reporting-modal-table__quantity {
    width: 9%;
}

.reporting-modal-table--articles .reporting-modal-table__net {
    width: 11%;
}

.reporting-modal-table--groups .reporting-modal-table__group {
    width: auto;
}

.reporting-modal-table--groups .reporting-modal-table__quantity,
.reporting-modal-table--groups .reporting-modal-table__orders,
.reporting-modal-table--groups .reporting-modal-table__net {
    width: 20.5%;
}

.reporting-modal-table th,
.reporting-modal-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
    color: #243447;
    font-size: .86rem;
    text-align: left;
    vertical-align: top;
}

.reporting-modal-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7fbff;
    color: #526174;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.reporting-modal-table tr:last-child td {
    border-bottom: 0;
}

.reporting-modal-table .is-number {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .reporting-modal {
        padding: 10px;
    }

    .reporting-modal__header,
    .reporting-modal__body {
        padding-left: 16px;
        padding-right: 16px;
    }
}
