:root {
    --bg: #0d0f12;
    --surface: #161a20;
    --surface-2: #20262f;
    --surface-3: #11161d;
    --line: #303744;
    --text: #f3f7f8;
    --muted: #a7b1bd;
    --accent: #23c9a9;
    --accent-2: #f2b84b;
    --brand-navy: #11143a;
    --brand-ink: #080a18;
    --danger: #f06464;
    --success: #38c172;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

a {
    color: inherit;
}

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

.hidden {
    display: none !important;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
    background:
        linear-gradient(135deg, #070812 0%, #10133a 48%, #0d0f12 100%);
    color: var(--text);
}

.login-shell {
    width: min(100%, 960px);
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.login-brand-panel {
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: #f8f9fc;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.login-logo {
    width: min(100%, 430px);
    max-height: 330px;
    display: block;
    object-fit: contain;
}

.login-brand-copy {
    display: grid;
    gap: 5px;
    color: var(--brand-navy);
}

.login-brand-copy strong {
    font-size: 22px;
}

.login-brand-copy span {
    color: #586178;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.login-card {
    width: auto;
    padding: 52px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #171b24 0%, #11141b 100%);
    color: var(--text);
}

.login-card h1 {
    margin: 5px 0 8px;
    color: var(--text);
    font-size: 34px;
    line-height: 1.1;
}

.login-card .muted {
    margin: 0 0 26px;
    color: var(--muted);
}

.login-card .eyebrow {
    color: #b9f0e6;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-card label {
    color: var(--muted);
}

.login-card input {
    color: var(--text);
    background: #0f1217;
    border-color: var(--line);
}

.login-card input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(35, 201, 169, 0.14);
}

.login-card .btn-primary {
    color: #06130f;
    background: var(--accent);
    border-color: var(--accent);
}

.login-card .btn-primary:hover {
    background: #35d6b9;
    border-color: #35d6b9;
}

.login-card .alert {
    margin-bottom: 14px;
}

.link-button {
    min-height: 34px;
    padding: 0;
    border: 0;
    color: #b9f0e6;
    background: transparent;
    cursor: pointer;
    text-align: left;
    justify-self: start;
}

.link-button:hover {
    color: var(--text);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand strong {
    display: block;
    font-size: 19px;
    line-height: 1.2;
}

.brand span,
.sidebar-meta span,
.muted,
.eyebrow,
.hint {
    color: var(--muted);
}

.brand span {
    font-size: 12px;
}

.app-brand-logo-wrap {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: #f8f9fc;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.app-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: #111419;
    border-right: 1px solid var(--line);
}

.main-nav {
    display: grid;
    gap: 6px;
}

.main-nav button {
    min-height: 42px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--muted);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.main-nav button:hover,
.main-nav button.active {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--line);
}

.sidebar-meta {
    margin-top: auto;
    display: grid;
    gap: 6px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.customer-logo-card {
    margin-bottom: 8px;
    display: grid;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.customer-logo-card img {
    width: 100%;
    height: 48px;
    display: block;
    padding: 6px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius);
}

.sidebar-meta strong {
    font-size: 13px;
}

.app-shell {
    min-height: 100vh;
    margin-left: 260px;
}

.topbar {
    min-height: 92px;
    padding: 24px 34px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 15, 18, 0.94);
    position: sticky;
    top: 0;
    z-index: 5;
}

.topbar h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.eyebrow {
    margin: 0 0 5px;
    font-size: 13px;
}

.user-pill {
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    white-space: nowrap;
}

.app-footer {
    padding: 0 34px 28px;
    color: var(--muted);
    font-size: 13px;
}

.content {
    padding: 28px 34px 44px;
}

.page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.search-form,
.actions,
.row-actions,
.inline-form {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
}

.panel {
    margin-bottom: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.panel-header h2,
.section-title {
    margin: 0;
    font-size: 18px;
}

.panel-body {
    padding: 20px;
}

.stack {
    display: grid;
    gap: 14px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat-card {
    min-height: 118px;
    padding: 18px;
    display: grid;
    align-content: space-between;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.stat-card span {
    color: var(--muted);
}

.metric-value {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.15;
}

.analytics-header-panel {
    min-height: 76px;
    margin-bottom: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.analytics-header-panel h2 {
    margin: 0;
    font-size: 22px;
}

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

.analytics-kpi-card {
    min-height: 104px;
    padding: 15px;
    display: grid;
    align-content: space-between;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.analytics-kpi-card span,
.analytics-kpi-card small {
    color: var(--muted);
}

.analytics-kpi-card strong {
    font-size: 28px;
    line-height: 1.05;
}

.analytics-kpi-card.accent-green {
    border-left-color: var(--accent);
}

.analytics-kpi-card.accent-gold {
    border-left-color: var(--accent-2);
}

.analytics-kpi-card.accent-blue {
    border-left-color: #7dd3fc;
}

.analytics-kpi-card.accent-red {
    border-left-color: var(--danger);
}

.analytics-delta {
    font-weight: 800;
}

.analytics-delta.up {
    color: var(--success);
}

.analytics-delta.down {
    color: var(--danger);
}

.analytics-delta.neutral {
    color: var(--muted);
}

.analytics-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.75fr);
    gap: 16px;
    align-items: start;
}

.analytics-trend-panel {
    min-height: 390px;
}

.analytics-area-wrap {
    padding: 14px 18px 16px;
    overflow-x: auto;
}

.analytics-area-svg {
    width: 100%;
    min-width: 660px;
    min-height: 260px;
    display: block;
}

.chart-grid line {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

.chart-area-fill {
    fill: rgba(35, 201, 169, 0.22);
}

.chart-area-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-shipped-line {
    fill: none;
    stroke: var(--accent-2);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 7 7;
}

.chart-point {
    fill: #0f1217;
    stroke: var(--accent);
    stroke-width: 3;
}

.chart-axis-label {
    fill: var(--muted);
    font-size: 12px;
    text-anchor: middle;
}

.analytics-insights-panel {
    margin-bottom: 0;
}

.analytics-insights-body {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.analytics-insight-divider {
    height: 1px;
    background: var(--line);
}

.analytics-donut-wrap {
    padding: 0;
    display: grid;
    justify-items: center;
    gap: 14px;
}

.analytics-donut {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    position: relative;
}

.analytics-donut::after {
    content: "";
    position: absolute;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
}

.analytics-donut span {
    position: relative;
    z-index: 1;
    font-size: 23px;
    font-weight: 800;
}

.analytics-status-list,
.analytics-product-list {
    width: 100%;
    display: grid;
    gap: 10px;
}

.analytics-status-list div,
.analytics-product-list div {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.analytics-status-list i {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 999px;
}

.analytics-status-list div {
    justify-content: flex-start;
    color: var(--muted);
}

.analytics-status-list strong {
    margin-left: auto;
    color: var(--text);
}

.analytics-product-list {
    padding: 0;
}

.analytics-product-list h3 {
    margin: 0 0 2px;
    font-size: 16px;
}

.analytics-product-list span {
    display: grid;
    gap: 3px;
}

.analytics-product-list small {
    color: var(--muted);
}

.analytics-product-list b {
    color: var(--accent-2);
}

.analytics-admin-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
}

.analytics-admin-grid article {
    min-height: 82px;
    padding: 14px;
    display: grid;
    gap: 8px;
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.analytics-admin-grid span {
    color: var(--muted);
}

.analytics-admin-grid strong {
    font-size: 19px;
}

.analytics-lower-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

.analytics-map-panel {
    overflow: hidden;
}

.analytics-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.28fr);
    gap: 14px;
    padding: 14px;
}

.analytics-map-wrap {
    min-height: 275px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(35, 201, 169, 0.08), transparent 46%),
        #07090d;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.analytics-map-svg {
    width: 100%;
    height: 100%;
    min-height: 275px;
    display: block;
}

.analytics-map-grid line {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

.analytics-map-land path {
    fill: url(#europe-dot-pattern);
    opacity: 0.9;
}

#europe-dot-pattern circle {
    fill: rgba(243, 247, 248, 0.94);
}

.destination-pulse {
    fill: rgba(35, 201, 169, 0.24);
    stroke: rgba(185, 240, 230, 0.8);
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    animation: mapPulse 1.9s ease-out infinite;
    animation-delay: inherit;
}

.destination-core {
    fill: #121a4a;
    stroke: #b9f0e6;
    stroke-width: 2;
    filter: drop-shadow(0 0 7px rgba(35, 201, 169, 0.75));
}

.origin-marker .destination-pulse {
    fill: rgba(56, 193, 114, 0.3);
    stroke: rgba(185, 240, 210, 0.95);
    animation-duration: 1.25s;
}

.origin-marker .destination-core {
    fill: #38c172;
    stroke: #d8ffe9;
    filter: drop-shadow(0 0 10px rgba(56, 193, 114, 0.95));
}

.barefill-plane {
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

.barefill-plane-shell {
    animation: planeFloat 2.2s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.barefill-plane-shadow {
    fill: rgba(0, 0, 0, 0.25);
    transform: translate(1.7px, 2.4px);
}

.barefill-plane-body,
.barefill-plane-wing,
.barefill-plane-tail {
    fill: #38c172;
    stroke: #38c172;
    stroke-linejoin: round;
    stroke-width: 0.6;
}

.barefill-plane-body {
    filter: drop-shadow(0 0 5px rgba(56, 193, 114, 0.42));
}

.barefill-plane-wing-back {
    opacity: 1;
}

@keyframes planeFloat {
    0%,
    100% {
        transform: translateY(-1px);
    }

    50% {
        transform: translateY(2px);
    }
}

@keyframes mapPulse {
    0% {
        opacity: 1;
        transform: scale(0.75);
    }

    70% {
        opacity: 0.18;
        transform: scale(1.7);
    }

    100% {
        opacity: 0;
        transform: scale(1.9);
    }
}

.analytics-destination-list {
    max-height: 275px;
    overflow: auto;
    display: grid;
    align-content: start;
    gap: 9px;
}

.analytics-destination-list div {
    min-height: 38px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.analytics-destination-list span {
    color: var(--muted);
}

.analytics-destination-list strong {
    color: var(--accent);
}

.analytics-collapse {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.analytics-collapse summary {
    min-height: 58px;
    padding: 16px 18px;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.analytics-collapse summary::-webkit-details-marker {
    display: none;
}

.analytics-collapse summary::after {
    content: "+";
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
}

.analytics-collapse[open] summary {
    border-bottom: 1px solid var(--line);
}

.analytics-collapse[open] summary::after {
    content: "-";
}

.analytics-collapse summary span {
    font-weight: 800;
}

.analytics-collapse summary strong {
    color: var(--muted);
    font-size: 13px;
    margin-left: auto;
}

.analytics-month-grid {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 12px;
}

.analytics-month-card {
    min-height: 116px;
    padding: 13px;
    display: grid;
    gap: 8px;
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.analytics-month-card span {
    color: var(--muted);
    font-size: 13px;
}

.analytics-month-card b {
    color: var(--text);
}

.analysis-chart-wrap {
    overflow-x: auto;
    padding: 20px;
}

.analysis-chart {
    min-width: 760px;
    min-height: 280px;
    display: grid;
    grid-template-columns: repeat(12, minmax(46px, 1fr));
    align-items: end;
    gap: 14px;
}

.chart-month {
    min-height: 240px;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 10px;
}

.chart-bars {
    min-height: 210px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 6px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
}

.chart-bars.single {
    gap: 0;
}

.chart-bar {
    width: 15px;
    min-height: 4px;
    border-radius: 6px 6px 0 0;
    display: inline-block;
}

.chart-bar-orders {
    background: var(--accent);
}

.chart-bar-shipped {
    background: var(--accent-2);
}

.chart-bar-money {
    width: 24px;
    background: #7dd3fc;
}

.chart-label {
    min-height: 32px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 999px;
}

.legend-dot.orders {
    background: var(--accent);
}

.legend-dot.shipped {
    background: var(--accent-2);
}

.analytics-table {
    min-width: 820px;
}

.history-days {
    display: grid;
    gap: 16px;
}

.history-day {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.history-day-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: #12161c;
    border-bottom: 1px solid var(--line);
}

.history-day-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.history-day-kpis {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.history-day-kpis span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 13px;
}

.history-day-kpis strong {
    color: var(--text);
}

.history-table {
    min-width: 940px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;
    color: var(--text);
    background: #0f1217;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(35, 201, 169, 0.14);
}

.btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--surface-2);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    border-color: var(--accent);
}

.btn-primary {
    color: #06130f;
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 700;
}

.btn-secondary {
    background: #252b34;
}

.btn-danger {
    color: #fff;
    background: #803036;
    border-color: #a8434a;
}

.btn-small {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
}

.tracking-link {
    color: #b9f0e6;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.tracking-link:hover {
    color: var(--text);
}

.shipping-input,
.shipping-link-input {
    min-width: 190px;
}

.shipping-link-input {
    min-width: 240px;
}

.shipping-link-preview {
    margin-top: 6px;
    font-size: 13px;
}

.shipping-date {
    min-width: 150px;
}

.invoice-table {
    min-width: 1120px;
}

.package-table {
    min-width: 1040px;
}

.invoice-table input {
    min-width: 170px;
}

.invoice-tool-panel .row-actions {
    justify-content: flex-start;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    background: #12161c;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.number {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

.badge {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #262b34;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-offen {
    color: #ffd78a;
    border-color: rgba(242, 184, 75, 0.55);
    background: rgba(242, 184, 75, 0.1);
}

.status-gepackt {
    color: #b9f0e6;
    border-color: rgba(35, 201, 169, 0.5);
    background: rgba(35, 201, 169, 0.1);
}

.status-versendet,
.stock-ok {
    color: #c8f6d8;
}

.status-versendet {
    border-color: rgba(56, 193, 114, 0.5);
    background: rgba(56, 193, 114, 0.1);
}

.status-storniert,
.low-stock {
    color: #ffc2c2;
    border-color: rgba(240, 100, 100, 0.55);
    background: rgba(240, 100, 100, 0.11);
}

.alert {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.alert-success {
    color: #c8f6d8;
    background: rgba(56, 193, 114, 0.1);
    border-color: rgba(56, 193, 114, 0.45);
}

.alert-error {
    color: #ffc2c2;
    background: rgba(240, 100, 100, 0.1);
    border-color: rgba(240, 100, 100, 0.45);
}

.empty-state {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.order-item-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 110px 160px auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-3);
}

.row-total {
    min-height: 42px;
    display: flex;
    align-items: center;
    color: var(--muted);
}

.flash-slot {
    margin-bottom: 16px;
}

@media (max-width: 1100px) {
    .stat-grid,
    .analytics-kpi-grid,
    .analytics-admin-grid,
    .analytics-month-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .grid.two,
    .form-grid.three,
    .analytics-dashboard-grid,
    .analytics-lower-grid,
    .analytics-map-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .login-page {
        padding: 18px;
    }

    .login-shell {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        padding: 26px 24px;
        border-right: 0;
        border-bottom: 1px solid #d9deea;
    }

    .login-logo {
        width: min(100%, 300px);
        max-height: 220px;
    }

    .login-card {
        padding: 30px 24px;
    }

    .sidebar {
        position: static;
        width: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .main-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-shell {
        margin-left: 0;
    }

    .topbar {
        position: static;
        padding: 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .content {
        padding: 20px;
    }

    .form-grid,
    .stat-grid,
    .order-item-row,
    .analytics-kpi-grid,
    .analytics-admin-grid,
    .analytics-month-grid {
        grid-template-columns: 1fr;
    }

    .analytics-header-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .analytics-area-wrap {
        padding: 12px;
    }

    .analytics-map-layout {
        padding: 12px;
    }

    .analytics-collapse summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .analytics-collapse summary::after {
        position: absolute;
        right: 16px;
        top: 15px;
    }

    .analytics-collapse summary strong {
        margin-left: 0;
    }
}
