:root {
    --bg-app: #f0f2f5;
    --bg-sidebar: #1a1f26;
    --bg-sidebar-hover: #252b35;
    --sidebar-border: #2d3540;
    --sidebar-text: #9aa5b8;
    --sidebar-text-active: #ffffff;
    --bg-panel: #ffffff;
    --bg-panel-hover: #f6f8fb;
    --bg-input: #f8fafc;
    --border: #e2e8f0;
    --text-primary: #1a2332;
    --text-secondary: #5a6578;
    --text-muted: #8b95a8;
    --accent: #22c55e;
    --accent-dim: #16a34a;
    --accent-glow: rgba(34, 197, 94, 0.14);
    --accent-on: #ffffff;
    --blue: #3b82f6;
    --yellow: #eab308;
    --orange: #f59e0b;
    --red: #ef4444;
    --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 35, 50, 0.08);
    --sidebar-width: 260px;
    --radius: 12px;
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}

/* ── Sidebar ── */

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    border-bottom: 1px solid var(--sidebar-border);
}

.brand-mark {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--accent-on);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.brand-mark--logo {
    background: transparent;
    padding: 0;
}

.brand-mark__triangle {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 18px solid var(--accent);
    transform: rotate(0deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-name {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 1.5px;
    color: var(--sidebar-text-active);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--sidebar-text);
    text-transform: uppercase;
    line-height: 1.3;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}

.nav-item:hover:not(.nav-item--disabled) {
    background: var(--bg-sidebar-hover);
    color: var(--sidebar-text-active);
}

.nav-item--active {
    background: rgba(34, 197, 94, 0.12);
    color: var(--accent);
    font-weight: 600;
}

.nav-item--disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: currentColor;
    opacity: 0.7;
    border-radius: 3px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--sidebar-border);
    flex-wrap: wrap;
}

.logout-link {
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: var(--sidebar-text);
    text-decoration: none;
}

.logout-link:hover {
    color: #fca5a5;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--sidebar-text-active);
}

.user-role {
    font-size: 11px;
    color: var(--sidebar-text);
}

/* ── Main content ── */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 28px 32px;
    min-height: 100vh;
    min-width: 0;
    max-width: 100%;
}

.page-body {
    max-width: 100%;
    min-width: 0;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-title {
    font-size: 26px;
    font-weight: 700;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.page-actions .header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ── KPI cards ── */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-grid--5 {
    grid-template-columns: repeat(5, 1fr);
}

.kpi-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.kpi-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

.kpi-icon--green { background: rgba(34, 197, 94, 0.12); color: var(--accent-dim); }
.kpi-icon--yellow { background: rgba(234, 179, 8, 0.14); color: #ca8a04; }
.kpi-icon--blue { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.kpi-icon--red { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.kpi-icon--neutral { background: rgba(90, 101, 120, 0.1); color: var(--text-secondary); }

.kpi-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.kpi-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.kpi-bar {
    height: 4px;
    background: #eef1f6;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.kpi-bar__fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.kpi-bar__fill--green { background: var(--accent); }
.kpi-bar__fill--yellow { background: var(--yellow); }
.kpi-bar__fill--blue { background: var(--blue); }
.kpi-bar__fill--red { background: var(--red); }

.status-breakdown {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.status-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
}

.status-row__label {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-row__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-row__dot--green { background: var(--accent); }
.status-row__dot--yellow { background: var(--yellow); }
.status-row__dot--blue { background: var(--blue); }
.status-row__dot--orange { background: var(--orange); }

.kpi-bar__fill--orange { background: var(--orange); }

/* ── Event workflow ── */

.workflow-pipeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.workflow-pipeline__step {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.workflow-pipeline__arrow {
    color: var(--text-muted);
    font-size: 12px;
}

.workflow-legend .panel-body {
    padding-top: 12px;
}

@media (max-width: 768px) {
    .workflow-pipeline__step {
        font-size: 11px;
        padding: 5px 8px;
    }
}

.status-row__count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.status-row__bar {
    grid-column: 1 / -1;
    height: 6px;
    background: #eef1f6;
    border-radius: 3px;
    overflow: hidden;
}

.status-row__bar-fill {
    height: 100%;
    border-radius: 3px;
}

.dashboard-grid--overview {
    grid-template-columns: 1.2fr 1fr;
}

.panel-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dim);
    text-decoration: none;
}

.panel-link:hover {
    text-decoration: underline;
}

.panel-header--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ── Panels ── */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel--wide {
    grid-column: 1 / -1;
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.panel-header h2 {
    font-size: 15px;
    font-weight: 600;
}

.panel-body {
    padding: 20px;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px;
}

.empty-state {
    color: var(--text-muted);
    font-size: 14px;
}

/* ── Buttons ── */

.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: opacity 0.15s, transform 0.1s;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn--primary {
    background: var(--accent);
    color: var(--accent-on);
}

.btn--primary:not(:disabled):hover {
    background: var(--accent-dim);
}

.btn--secondary {
    background: var(--bg-panel);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn--secondary:not(:disabled):hover {
    background: var(--bg-panel-hover);
    border-color: var(--text-muted);
}

a.btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* ── Flash messages ── */

.flash-messages {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.flash--success {
    background: var(--accent-glow);
    border: 1px solid rgba(22, 201, 100, 0.35);
    color: var(--accent-dim);
}

.flash--error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: var(--red);
}

/* ── Tables ── */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover {
    background: var(--bg-panel-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Badges ── */

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge--planlagt { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.badge--opsaetning { background: var(--accent-glow); color: var(--accent-dim); }
.badge--igangvaerende { background: rgba(217, 119, 6, 0.12); color: var(--orange); }
.badge--afsluttet { background: rgba(90, 101, 120, 0.1); color: var(--text-secondary); }
.badge--paa_lager { background: rgba(234, 179, 8, 0.14); color: #ca8a04; }
.badge--klargoering { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.badge--udgaaende { background: rgba(59, 130, 246, 0.18); color: #1d4ed8; }
.badge--udlejet { background: var(--accent-glow); color: var(--accent-dim); }
.badge--indgaaende { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.badge--rengoering { background: rgba(239, 68, 68, 0.1); color: var(--red); }
.badge--i_service { background: rgba(90, 101, 120, 0.12); color: var(--text-secondary); }
.badge--i_reparation { background: rgba(220, 38, 38, 0.1); color: var(--red); }
.badge--pack-kladde { background: rgba(90, 101, 120, 0.1); color: var(--text-secondary); }
.badge--pack-klar { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.badge--pack-plukket { background: var(--accent-glow); color: var(--accent-dim); }
.badge--pack-i_bil { background: rgba(37, 99, 235, 0.12); color: var(--blue); }

.scan-mode-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.scan-mode-tabs__item {
    padding: 8px 14px;
    border-radius: var(--radius-md, 8px);
    border: 1px solid var(--border-color, #e2e8f0);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--surface, #fff);
}

.scan-mode-tabs__item--active {
    background: var(--accent, #22c55e);
    border-color: var(--accent, #22c55e);
    color: #fff;
}

.scan-context-select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    margin-top: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.scan-log-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.scan-log-list__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: var(--radius-md, 8px);
    background: var(--surface-muted, #f8fafc);
    font-size: 13px;
}

.scan-log-list__item--done {
    border-left: 3px solid var(--accent, #22c55e);
}

/* ── Forms ── */

.panel--form {
    max-width: 720px;
}

.atlas-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.form-hint a {
    color: var(--accent-dim);
}

.form-actions {
    display: flex;
    gap: 10px;
    padding-top: 8px;
}

/* ── Table actions ── */

.col-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.inline-form {
    display: inline;
}

.table-link {
    color: var(--accent-dim);
    text-decoration: none;
    font-weight: 600;
}

.table-link:hover {
    text-decoration: underline;
}

.btn--small {
    padding: 5px 12px;
    font-size: 12px;
}

.btn--danger {
    background: rgba(220, 38, 38, 0.08);
    color: var(--red);
    border: 1px solid rgba(220, 38, 38, 0.35);
}

.btn--danger:hover {
    background: rgba(220, 38, 38, 0.14);
}

/* ── Detail pages ── */

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-list {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 16px;
    font-size: 14px;
}

.detail-list dt {
    color: var(--text-secondary);
    font-weight: 600;
}

.assign-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.assign-form select {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
}

.assign-form--compact select {
    padding: 6px 8px;
    font-size: 13px;
    max-width: 180px;
}

/* ── Auth / login ── */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    width: 100%;
    max-width: 400px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-brand .brand-name {
    color: var(--text-primary);
}

.auth-brand .brand-tagline {
    color: var(--text-muted);
}

.auth-card {
    width: 100%;
}

.auth-card .panel-header h1 {
    font-size: 18px;
    font-weight: 700;
}

.auth-footer {
    font-size: 12px;
    color: var(--text-muted);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.is-hidden {
    display: none !important;
}

.table-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.data-table .col-check {
    width: 40px;
    text-align: center;
}

.data-table .col-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.asset-tabs {
    margin-bottom: 16px;
}

.asset-tabs__count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 2px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.settings-card {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.settings-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(22, 201, 100, 0.08);
}

.settings-card h2 {
    font-size: 16px;
    margin-bottom: 8px;
}

.settings-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.design-tabs__item--active .asset-tabs__count {
    color: var(--accent-dim);
}

.btn--full {
    width: 100%;
}

/* ── Pakkelister ── */

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar__fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.2s;
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.col-pick {
    width: 48px;
    text-align: center;
}

.pick-toggle {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid var(--border);
    background: var(--bg-panel);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pick-toggle--done {
    background: var(--accent-glow);
    border-color: var(--accent-dim);
}

.pick-row--done td {
    color: var(--text-muted);
}

.pick-row--done strong {
    color: var(--text-secondary);
}

/* ── Kundeportal ── */

.stepper {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.stepper__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.stepper__item--active {
    color: var(--accent-dim);
    font-weight: 600;
}

.stepper__item--done {
    color: var(--text-secondary);
}

.stepper__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.stepper__item--active .stepper__num {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-on);
}

.stepper__item--done .stepper__num {
    background: var(--accent-glow);
    border-color: var(--accent-dim);
    color: var(--accent-dim);
}

.stepper__line {
    width: 32px;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
}

.stepper__line--done {
    background: var(--accent-dim);
}

.portal-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.portal-form {
    max-width: none;
}

.portal-step-title {
    font-size: 18px;
    margin-bottom: 20px;
}

.portal-actions {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.qty-label {
    font-size: 14px;
    font-weight: 500;
}

.qty-input {
    width: 80px;
    padding: 8px 12px;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.checkbox-group,
.radio-group {
    border: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group legend,
.radio-group legend {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.radio-label:has(input:checked) {
    border-color: var(--accent-dim);
    background: var(--accent-glow);
}

.summary-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

.summary-list dt {
    color: var(--text-secondary);
    font-weight: 600;
}

.price-box {
    background: var(--accent-glow);
    border: 1px solid rgba(22, 201, 100, 0.35);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.price-box__label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.price-box__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-dim);
}

.suggestion-box {
    position: sticky;
    top: 28px;
}

.suggestion-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.badge--inquiry-sendt { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.badge--inquiry-godkendt { background: var(--accent-glow); color: var(--accent-dim); }
.badge--inquiry-afvist { background: rgba(220, 38, 38, 0.1); color: var(--red); }

/* ── Design Engine ── */

.design-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.design-tabs__item {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.design-tabs__item:hover {
    color: var(--text-primary);
}

.design-tabs__item--active {
    color: var(--accent-dim);
    border-bottom-color: var(--accent);
}

.design-workspace {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
    align-items: start;
}

.design-sidebar {
    position: sticky;
    top: 28px;
}

.detail-list--compact {
    grid-template-columns: 90px 1fr;
    gap: 8px 12px;
    font-size: 13px;
}

.suggestion-box-inner {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.suggestion-box-inner h3 {
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.design-price-tag {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-dim);
    padding: 8px 14px;
    background: var(--accent-glow);
    border-radius: 8px;
}

.package-block {
    margin-bottom: 24px;
}

.package-block__title {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--accent-dim);
}

.network-diagram-wrap {
    overflow-x: auto;
}

.network-diagram {
    width: 100%;
    min-width: 600px;
    height: auto;
}

.network-node rect {
    fill: var(--bg-panel);
    stroke: var(--border);
    stroke-width: 1.5;
}

.network-node--core rect { stroke: var(--accent-dim); fill: var(--accent-glow); }
.network-node--wan rect { stroke: var(--blue); }
.network-node--bar rect { stroke: #2563eb; }

.network-node text {
    fill: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font);
}

.network-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.network-legend__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.network-legend__line {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: #8b95a8;
}

.network-legend__line--fiber { background: #2563eb; }
.network-legend__line--ethernet { background: #4d9fff; }
.network-legend__line--wireless { background: #8b95a8; opacity: 0.7; }
.network-legend__line--backup { background: #16c964; }

/* ── Lager ── */

.kpi-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.warehouse-grid {
    display: grid;
    grid-template-columns: 40px repeat(6, 1fr);
    gap: 8px;
    max-width: 720px;
}

.warehouse-grid__corner {
    grid-column: 1;
}

.warehouse-grid__col-label,
.warehouse-grid__row-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.warehouse-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    border-radius: 8px;
    border: 2px solid var(--border);
    text-decoration: none;
    transition: transform 0.1s, border-color 0.15s;
    padding: 6px;
}

.warehouse-cell:hover {
    transform: translateY(-2px);
}

.warehouse-cell--free {
    background: var(--bg-input);
    border-color: var(--border);
}

.warehouse-cell--occupied {
    background: var(--accent-glow);
    border-color: var(--accent-dim);
}

.warehouse-cell__code {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.warehouse-cell__asset {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-dim);
    margin-top: 4px;
    text-align: center;
    word-break: break-all;
}

.warehouse-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.warehouse-legend__swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 6px;
    border: 1px solid var(--border);
}

.warehouse-legend__swatch--free { background: var(--bg-input); }
.warehouse-legend__swatch--occupied { background: var(--accent-glow); border-color: var(--accent-dim); }

.scan-slot-select {
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

/* ── Warehouse scan / QR camera ── */

.scan-camera-panel {
    overflow: hidden;
}

.qr-reader {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 16px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    min-height: 240px;
}

.qr-reader video {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

.scan-camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.scan-file-btn {
    cursor: pointer;
    margin: 0;
}

.scan-status {
    margin-bottom: 12px;
}

.scan-status--ok {
    color: var(--color-success, #16a34a);
}

.pack-scan-manual {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pack-scan-manual__input {
    flex: 1 1 180px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    font-size: 1rem;
}

.pack-scan-panel .qr-reader {
    margin-bottom: 12px;
}

.scan-quick-add {
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--radius-md, 8px);
    border: 1px dashed var(--accent, #22c55e);
    background: rgba(34, 197, 94, 0.06);
}

.scan-quick-add__title {
    margin: 0 0 12px;
    font-size: 14px;
}

.scan-quick-add__fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.scan-quick-add__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.scan-history-title {
    font-size: 13px;
    margin: 16px 0 8px;
    color: var(--text-secondary);
}

.form-hint--error {
    color: var(--red);
}

.history-list {
    list-style: none;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-list__action {
    font-weight: 600;
    color: var(--accent-dim);
    text-transform: capitalize;
    margin-right: 6px;
}

.history-list__time {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Mobile card layout (shown < 768px) ── */

.desktop-only {
    display: block;
}

.mobile-only,
.mobile-only.card-list,
.mobile-only.action-tiles {
    display: none !important;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}

a.info-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

a.info-card:active {
    transform: scale(0.985);
}

.info-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

a.info-card__top {
    text-decoration: none;
    color: inherit;
}

.info-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.info-card__subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.info-card__id {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-dim);
    font-family: ui-monospace, "Cascadia Code", monospace;
    white-space: nowrap;
}

.info-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.info-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-input);
    border-radius: 999px;
    padding: 4px 10px;
}

.equipment-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.info-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.info-card__actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
}

.info-card__check {
    flex-shrink: 0;
    padding-top: 2px;
}

.info-card--selectable {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-card__body {
    flex: 1;
    min-width: 0;
}

.action-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    min-height: 92px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.12s ease;
}

.action-tile:active {
    transform: scale(0.97);
}

.action-tile__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.action-tile__icon--green { background: rgba(34, 197, 94, 0.14); }
.action-tile__icon--blue { background: rgba(59, 130, 246, 0.12); }
.action-tile__icon--yellow { background: rgba(234, 179, 8, 0.14); }
.action-tile__icon--neutral { background: rgba(90, 101, 120, 0.1); }

.action-tile--accent {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04));
    border-color: rgba(34, 197, 94, 0.28);
    color: var(--accent-dim);
}

.mobile-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 0 0 10px 2px;
}

.mobile-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-panel-stack .panel {
    margin: 0;
}

/* ── Responsive ── */

/* Mobile topbar + bottom nav (hidden on desktop) */
.mobile-topbar,
.mobile-bottom-nav,
.sidebar-backdrop,
.sidebar-close {
    display: none;
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .app-shell {
        overflow-x: hidden;
    }

    .mobile-topbar,
    .mobile-bottom-nav,
    .sidebar-close {
        display: flex;
    }

    .sidebar-backdrop {
        display: block;
    }

    .mobile-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 120;
        align-items: center;
        gap: 12px;
        height: 56px;
        padding: 0 12px;
        padding-top: env(safe-area-inset-top, 0);
        background: var(--bg-sidebar);
        border-bottom: 1px solid var(--sidebar-border);
        box-shadow: var(--shadow-sm);
    }

    .mobile-topbar__title {
        font-size: 16px;
        font-weight: 700;
        color: var(--sidebar-text-active);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }

    .mobile-topbar__back {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.08);
        color: var(--sidebar-text-active);
        text-decoration: none;
        font-size: 22px;
        font-weight: 700;
        line-height: 1;
    }

    .mobile-topbar__back:active {
        background: rgba(255, 255, 255, 0.14);
    }

    @media (min-width: 769px) {
        .mobile-hide-portal-escape {
            display: none;
        }
    }

    .mobile-menu-btn {
        width: 44px;
        height: 44px;
        border: none;
        background: transparent;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-menu-btn__bar {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--sidebar-text-active);
        border-radius: 1px;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 130;
        background: rgba(26, 35, 50, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }

    .sidebar-backdrop--visible {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar {
        width: min(300px, 88vw);
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        z-index: 140;
        box-shadow: 4px 0 24px rgba(26, 35, 50, 0.12);
    }

    .sidebar--open {
        transform: translateX(0);
    }

    .sidebar-brand {
        position: relative;
        padding-right: 48px;
    }

    .sidebar-close {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        font-size: 28px;
        line-height: 1;
        color: var(--sidebar-text);
        cursor: pointer;
        align-items: center;
        justify-content: center;
    }

    .info-card .assign-form {
        margin-top: 10px;
    }

    .info-card .assign-form select {
        width: 100%;
        font-size: 14px;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .table-toolbar--sticky {
        position: sticky;
        top: calc(56px + env(safe-area-inset-top, 0));
        z-index: 20;
        background: var(--bg-app);
        padding: 10px 0;
        margin-bottom: 8px;
    }

    body.nav-open {
        overflow: hidden;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
        padding-top: calc(56px + env(safe-area-inset-top, 0) + 12px);
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
    }

    .page-body {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
    }

    .dashboard-grid,
    .dashboard-grid--overview,
    .kpi-grid,
    .kpi-grid--5,
    .panel,
    .card-list,
    .info-card,
    .action-tiles,
    .workflow-pipeline,
    .design-tabs,
    .asset-tabs {
        max-width: 100%;
        min-width: 0;
    }

    .panel-header--split {
        flex-wrap: wrap;
        gap: 8px;
    }

    .panel-header--split h2 {
        min-width: 0;
        flex: 1 1 auto;
    }

    .desktop-only {
        display: none !important;
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-only.card-list {
        display: flex !important;
    }

    .mobile-only.action-tiles {
        display: grid !important;
    }

    .bg-app-mobile {
        background: var(--bg-app);
    }

    .panel {
        border-radius: 16px;
        box-shadow: var(--shadow-md);
    }

    .panel-header {
        padding: 14px 16px;
    }

    .panel-header h2 {
        font-size: 16px;
    }

    .panel--flat-mobile {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .panel--flat-mobile .panel-header {
        border-bottom: none;
        padding-left: 2px;
        padding-right: 2px;
        background: transparent;
    }

    .panel--flat-mobile .panel-body {
        padding: 0 2px;
    }

    .kpi-grid,
    .kpi-grid--5 {
        display: flex;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 12px;
        margin-bottom: 20px;
        padding: 2px 0 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .kpi-grid::-webkit-scrollbar,
    .kpi-grid--5::-webkit-scrollbar {
        display: none;
    }

    .kpi-grid .kpi-card,
    .kpi-grid--5 .kpi-card {
        flex: 0 0 calc(100% - 48px);
        max-width: 280px;
        scroll-snap-align: center;
        margin: 0;
    }

    .kpi-value {
        font-size: 30px;
    }

    .dashboard-grid,
    .dashboard-grid--overview {
        gap: 14px;
    }

    .quick-actions.desktop-only {
        display: none !important;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
    }

    .page-header .page-title {
        display: none;
    }

    .page-actions,
    .page-actions .header-actions {
        width: 100%;
    }

    .page-actions .btn,
    .page-actions .header-actions .btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
    }

    .page-actions .btn:only-child,
    .page-actions .header-actions .btn:only-child {
        flex: 1 1 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .scan-slot-select {
        width: 100%;
    }

    .scan-page.portal-layout {
        display: flex;
        flex-direction: column;
    }

    .scan-page .scan-camera-panel {
        order: -1;
    }

    .scan-camera-actions .btn,
    .scan-file-btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        text-align: center;
    }

    .qr-reader {
        max-width: none;
        min-height: 280px;
    }

    .panel-body {
        padding: 16px;
        max-width: 100%;
        overflow-x: visible;
    }

    .panel-body:has(.data-table) {
        overflow-x: visible;
    }

    .data-table {
        min-width: 560px;
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }

    .col-actions {
        white-space: normal;
    }

    .col-actions .btn--small {
        padding: 8px 10px;
        margin: 2px 0;
    }

    .table-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .design-tabs,
    .asset-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin-bottom: 12px;
    }

    .design-tabs__item {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 12px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 110;
        background: var(--bg-sidebar);
        border-top: 1px solid var(--sidebar-border);
        padding-bottom: env(safe-area-inset-bottom, 0);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
        justify-content: space-around;
        align-items: stretch;
    }

    .mobile-bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 4px 10px;
        border: none;
        background: transparent;
        color: var(--sidebar-text);
        text-decoration: none;
        font-family: var(--font);
        cursor: pointer;
        min-height: 56px;
        border-radius: 12px;
        margin: 4px 2px;
        transition: background 0.15s, color 0.15s;
    }

    .mobile-bottom-nav__item--active {
        color: var(--accent);
        background: rgba(34, 197, 94, 0.1);
    }

    .mobile-bottom-nav__label {
        font-size: 10px;
        font-weight: 600;
    }

    .mobile-bottom-nav__icon {
        width: 22px;
        height: 22px;
        background: currentColor;
        opacity: 0.75;
        border-radius: 4px;
    }

    .mobile-bottom-nav__item--active .mobile-bottom-nav__icon {
        opacity: 1;
    }

    .kpi-grid,
    .kpi-grid--5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dashboard-grid--overview {
        grid-template-columns: 1fr;
    }

    .kpi-value {
        font-size: 26px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .detail-list dt {
        margin-top: 10px;
    }

    .detail-list dt:first-child {
        margin-top: 0;
    }

    .assign-form {
        flex-direction: column;
        align-items: stretch;
    }

    .assign-form select,
    .assign-form .btn {
        width: 100%;
        max-width: 100%;
    }

    .info-card__id {
        white-space: normal;
        word-break: break-word;
    }

    .info-card__chip {
        max-width: 100%;
        word-break: break-word;
    }

    .mobile-bottom-nav {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .flash-messages {
        max-width: 100%;
    }

    .page-actions .header-actions {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .portal-layout {
        grid-template-columns: 1fr;
    }

    .stepper__label {
        display: none;
    }

    .design-workspace {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        flex-direction: column;
    }

    .quick-actions .btn {
        width: 100%;
    }

    .panel--form {
        max-width: none;
    }

    .auth-shell {
        padding: 24px 16px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .auth-card {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .kpi-grid:not(.kpi-grid--5),
    .kpi-grid--5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid--overview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .kpi-grid,
    .kpi-grid--5 {
        display: flex;
        grid-template-columns: unset;
    }
}

@media (max-width: 400px) {
    .kpi-grid .kpi-card,
    .kpi-grid--5 .kpi-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .page-actions .btn,
    .page-actions .header-actions .btn {
        flex: 1 1 100%;
    }
}
