/* App shell — sidebar layout inspired by modern cost dashboard */

:root {
    --sidebar-w: 248px;
    --topbar-h: 64px;
    --shell-bg: #f0f2f7;
    --shell-card: #ffffff;
    --shell-border: #e6eaf2;
    --shell-text: #1c2434;
    --shell-muted: #6b7a94;
    --shell-accent: #5b4cdb;
    --shell-accent-soft: #ede9fe;
    --shell-dark: #1a2233;
    --font-serif: "Instrument Serif", Georgia, serif;
    --metric-orange: #fff4e8;
    --metric-orange-icon: #f97316;
    --metric-purple: #f3efff;
    --metric-purple-icon: #8b5cf6;
    --metric-green: #ecfdf3;
    --metric-green-icon: #22c55e;
    --metric-red: #fef2f2;
    --metric-red-icon: #ef4444;
}

body.has-sidebar {
    background: var(--shell-bg);
    display: block;
    min-height: 100vh;
}

body.has-sidebar .site-header,
body.has-sidebar .site-footer,
body.has-sidebar > .container {
    display: none;
}

/* Sidebar */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--shell-card);
    border-right: 1px solid var(--shell-border);
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 20px;
    text-decoration: none !important;
    color: var(--shell-text) !important;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--shell-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand-svg {
    width: 22px;
    height: 22px;
}

.sidebar-brand-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.sidebar-group-label {
    margin: 18px 10px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--shell-muted);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: 10px;
    color: var(--shell-muted) !important;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}

.sidebar-link .icon {
    flex-shrink: 0;
    opacity: 0.85;
}

.sidebar-link:hover {
    background: #f4f6fb;
    color: var(--shell-text) !important;
}

.sidebar-link.is-active {
    background: var(--shell-accent-soft);
    color: var(--shell-accent) !important;
    box-shadow: inset 3px 0 0 var(--shell-accent);
}

.sidebar-link--muted {
    margin-top: 4px;
}

.sidebar-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 10px 6px;
    border-top: 1px solid var(--shell-border);
}

.sidebar-user-emoji {
    font-size: 22px;
    line-height: 1;
}

.sidebar-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 12px;
    color: var(--shell-muted);
}

.sidebar-user-meta strong {
    color: var(--shell-text);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 300;
    border: 1px solid var(--shell-border);
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(15, 23, 42, 0.4);
}

/* Main area */
.app-main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--topbar-h);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(240, 242, 247, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--shell-text);
    font-size: 15px;
}

.topbar-crumb-icon {
    font-size: 18px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.app-content {
    flex: 1;
    padding: 8px 28px 40px;
    max-width: 1400px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
    text-decoration: none !important;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-dark {
    background: var(--shell-dark);
    color: #fff !important;
    border-color: var(--shell-dark);
}

.btn-dark:hover {
    background: #2a3548;
    transform: translateY(-1px);
}

.btn-ghost {
    background: #fff;
    color: var(--shell-text) !important;
    border-color: var(--shell-border);
}

.btn-ghost:hover {
    background: #f8fafc;
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.page-header .eyebrow {
    color: var(--shell-muted);
    font-size: 12px;
}

.page-header h1,
.dashboard-greeting {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(32px, 4vw, 42px);
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--shell-text);
}

.page-header .lede {
    max-width: 52ch;
}

/* Metric cards */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.metric-card {
    background: var(--shell-card);
    border: 1px solid var(--shell-border);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(28, 36, 52, 0.04);
}

.metric-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon--orange { background: var(--metric-orange); color: var(--metric-orange-icon); }
.metric-icon--purple { background: var(--metric-purple); color: var(--metric-purple-icon); }
.metric-icon--green { background: var(--metric-green); color: var(--metric-green-icon); }
.metric-icon--red { background: var(--metric-red); color: var(--metric-red-icon); }

.metric-icon-svg {
    width: 22px;
    height: 22px;
}

.metric-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.metric-badge--success { background: var(--metric-green); color: #15803d; }
.metric-badge--purple { background: var(--metric-purple); color: #6d28d9; }
.metric-badge--neutral { background: #f1f5f9; color: var(--shell-muted); }

.metric-label {
    display: block;
    font-size: 13px;
    color: var(--shell-muted);
    margin-bottom: 4px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--shell-text);
}

/* Dashboard layout */
.dashboard-hero {
    margin-bottom: 8px;
}

.dashboard-hero-meta {
    font-size: 13px;
    color: var(--shell-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 22px;
    align-items: start;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--shell-card);
    border: 1px solid var(--shell-border);
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit !important;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.quick-action-card:hover {
    border-color: #d0d8e8;
    box-shadow: 0 4px 16px rgba(28, 36, 52, 0.06);
}

.quick-action-emoji {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8fafc;
}

.quick-action-text strong {
    display: block;
    font-size: 14px;
    color: var(--shell-text);
}

.quick-action-text span {
    font-size: 12px;
    color: var(--shell-muted);
}

/* Panel card */
.panel-card {
    background: var(--shell-card);
    border: 1px solid var(--shell-border);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 2px 12px rgba(28, 36, 52, 0.04);
    margin-bottom: 24px;
}

.panel-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-card-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.panel-card-head a {
    font-size: 13px;
    font-weight: 600;
}

/* Item pills */
.item-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.item-pill--0 { background: #fff4e8; color: #c2410c; }
.item-pill--1 { background: #f3efff; color: #6d28d9; }
.item-pill--2 { background: #ecfdf3; color: #15803d; }
.item-pill--3 { background: #eff6ff; color: #1d4ed8; }
.item-pill--4 { background: #fef2f2; color: #b91c1c; }

.money-cell {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.btn-icon-only {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--shell-border);
    background: #fff;
    color: var(--shell-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-only:hover {
    background: var(--shell-accent-soft);
    color: var(--shell-accent);
    border-color: #c4b5fd;
}

/* Search bar pro */
.search-bar-pro {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.search-bar-pro .search-wrap {
    flex: 1;
    position: relative;
}

.search-bar-pro .search-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--shell-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.search-bar-pro input[type="search"] {
    padding-left: 42px;
    border-radius: 12px;
    border-color: var(--shell-border);
}

/* Auth — full-viewport split layout */
body.auth-body {
    margin: 0;
    min-height: 100vh;
    background: #f7f5f2;
}

.auth-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-brand {
    flex: 0 0 min(46%, 520px);
    background: linear-gradient(165deg, #12182a 0%, #1a2238 48%, #151c30 100%);
    color: #f1f5f9;
    display: flex;
    align-items: center;
    padding: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px);
}

.auth-brand-inner {
    max-width: 420px;
    width: 100%;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 10px;
    margin-bottom: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0 !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none !important;
}

.auth-brand-badge:hover {
    background: rgba(255, 255, 255, 0.12);
}

.auth-brand-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--shell-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-brand-svg {
    width: 18px;
    height: 18px;
}

.auth-brand-title {
    margin: 0 0 20px;
    font-family: var(--font-serif);
    font-size: clamp(32px, 4.2vw, 44px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.auth-brand-lede {
    margin: 0 0 36px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.78);
    max-width: 38ch;
}

.auth-brand-features {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-brand-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.92);
}

.auth-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c4b5fd;
    box-sizing: border-box;
}

.auth-brand-foot {
    margin: 48px 0 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(148, 163, 184, 0.9);
}

.auth-brand-foot a {
    color: #c4b5fd !important;
    font-weight: 600;
}

.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
    background: #f7f5f2;
}

.auth-panel-inner {
    width: 100%;
    max-width: 440px;
}

.auth-flashes {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-alert {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.auth-alert--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.auth-alert--danger,
.auth-alert--warning {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-alert--info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.auth-page .auth-card {
    max-width: none;
    margin: 0;
    position: static;
    z-index: auto;
    border-top: none;
    background: #fff;
    border: 1px solid #ebe8e3;
    border-radius: 20px;
    padding: clamp(32px, 4vw, 44px);
    box-shadow:
        0 1px 2px rgba(28, 36, 52, 0.04),
        0 20px 50px rgba(28, 36, 52, 0.07);
}

.auth-card-eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--shell-accent);
}

.auth-card-title {
    margin: 0 0 10px;
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 34px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--shell-text);
}

.auth-card-lede {
    margin: 0 0 32px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--shell-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--shell-text);
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fafaf9;
    border: 1px solid #e5e2dc;
    border-radius: 12px;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.auth-input-wrap:focus-within {
    background: #fff;
    border-color: #a78bfa;
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
}

.auth-input-icon {
    flex-shrink: 0;
    margin-left: 14px;
    color: #94a3b8;
    width: 18px;
    height: 18px;
}

.auth-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 16px 14px 10px;
    font-size: 15px;
    box-shadow: none;
}

.auth-input-wrap input:focus {
    outline: none;
    box-shadow: none;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    padding: 15px 20px;
    border: 1px solid #1a2233;
    border-radius: 12px;
    background: #fff;
    color: #1a2233;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.auth-submit:hover {
    background: #f8fafc;
    box-shadow: 0 4px 14px rgba(26, 34, 51, 0.08);
    transform: translateY(-1px);
}

.auth-submit-arrow {
    width: 18px;
    height: 18px;
    color: #64748b;
}

.auth-card-foot {
    margin: 28px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--shell-muted);
}

.auth-card-foot a {
    color: var(--shell-accent) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.auth-card-foot a:hover {
    text-decoration: underline !important;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
}

.btn-danger-outline {
    background: #fff;
    color: #b91c1c !important;
    border: 1px solid rgba(185, 28, 28, 0.35);
}

.btn-danger-outline:hover {
    background: var(--metric-red);
    border-color: #fca5a5;
}

.app-content .btn.primary {
    background: var(--shell-dark);
    color: #fff !important;
    border-color: var(--shell-dark);
}

.app-content .btn.secondary {
    background: #fff;
    color: var(--shell-text) !important;
    border: 1px solid var(--shell-border);
}

.action-btn-group,
.table-action-group {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.table-action-group .inline-delete-form,
.table-action-form {
    display: inline-flex;
    margin: 0;
    flex: 0 0 auto;
}

.table-action-form button {
    margin: 0;
}

.btn-icon-only--danger:hover {
    background: var(--metric-red);
    color: #b91c1c;
    border-color: #fca5a5;
}

.td-actions {
    white-space: nowrap;
    width: 1%;
}

.app-content .data-table th.col-action,
.app-content .data-table .td-actions {
    min-width: 132px;
    text-align: right;
}

.app-content .data-table .table-action-group {
    justify-content: flex-end;
}

/* Cost records list: fixed columns + ellipsis so long text never overlaps */
.app-content .records-table {
    table-layout: fixed;
    width: 100%;
    min-width: 1040px;
}

.app-content .records-table th,
.app-content .records-table td {
    overflow: hidden;
}

.app-content .records-table .col-photo,
.app-content .records-table .td-thumb {
    width: 72px;
    padding-left: 12px;
    padding-right: 10px;
    overflow: visible;
}

.app-content .records-table .col-design {
    width: 19%;
    min-width: 140px;
}

.app-content .records-table .col-date {
    width: 102px;
    min-width: 102px;
}

.app-content .records-table .col-sku {
    width: 12%;
    min-width: 88px;
}

.app-content .records-table .col-item {
    width: 18%;
    min-width: 120px;
}

.app-content .records-table .col-money {
    width: 88px;
    min-width: 88px;
}

.app-content .records-table .col-mult {
    width: 80px;
    min-width: 80px;
}

.app-content .records-table th.col-action,
.app-content .records-table .td-actions {
    width: 132px;
    min-width: 132px;
    overflow: visible;
}

.app-content .records-table .cell-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-content .records-table .cell-truncate strong {
    font-weight: 700;
}

.app-content .records-table .col-date {
    white-space: nowrap;
}

.app-content .records-table .col-money,
.app-content .records-table .col-mult {
    white-space: nowrap;
}

.app-content .records-table .col-item .item-pill {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--shell-border);
}

.search-bar-pro .btn-dark,
.search-bar-pro .btn-primary {
    flex-shrink: 0;
}

/* Override legacy container cards inside shell */
.app-content .card {
    border-radius: 16px;
    border-color: var(--shell-border);
    box-shadow: 0 2px 12px rgba(28, 36, 52, 0.04);
}

.app-content .eyebrow {
    color: var(--shell-accent);
}

/* Responsive */
@media (max-width: 1100px) {
    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .quick-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .quick-action-card {
        flex: 1 1 200px;
    }
}

@media (max-width: 900px) {
    .sidebar-toggle {
        display: block;
    }
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
    }
    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }
    body.sidebar-open .sidebar-backdrop {
        display: block;
    }
    .app-main {
        margin-left: 0;
    }
    .app-topbar {
        padding-left: 56px;
    }
    .auth-page {
        flex-direction: column;
    }

    .auth-brand {
        flex: none;
        padding: 40px 28px 36px;
    }

    .auth-brand-title {
        font-size: 28px;
    }

    .auth-brand-features {
        gap: 14px;
    }

    .auth-brand-foot {
        margin-top: 32px;
    }

    .auth-panel {
        padding: 32px 20px 48px;
    }
}

.form-metrics-row {
    margin-bottom: 24px;
}

.form-metrics-row .metric-card {
    padding: 14px 16px;
}

.form-metrics-row .metric-value {
    font-size: 22px;
}

.pagination-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle, #e8e8ec);
}

.pagination-summary {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted, #6b7280);
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-page {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #374151);
    padding: 0 6px;
}

.pagination-links .is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.vendors-search {
    margin-bottom: 16px;
}

.export-format-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 20px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted, #6b7280);
    background: var(--surface-muted, #f8f9fb);
    border: 1px solid var(--border-subtle, #e8e8ec);
    border-radius: 8px;
}

.export-format-tip-icon {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--accent, #2563eb);
}

.export-process-modal {
    max-width: 400px;
    padding: 22px 24px;
}

.export-process-lede {
    margin: 0 0 16px;
    font-size: 14px;
}

.export-select-all,
.export-process-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.export-select-all {
    font-weight: 600;
    margin-bottom: 8px;
    padding: 0 2px;
}

.export-select-all input,
.export-process-label input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--shell-accent, #5b4cdb);
}

.export-process-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    max-height: min(50vh, 320px);
    overflow-y: auto;
    border: 1px solid var(--border-subtle, #e8e8ec);
    border-radius: 10px;
    background: #fff;
}

.export-process-item {
    border-bottom: 1px solid var(--border-subtle, #e8e8ec);
}

.export-process-item:last-child {
    border-bottom: none;
}

.export-process-label {
    padding: 11px 14px;
    font-weight: 500;
}

.export-process-label:hover {
    background: #f8fafc;
}

.export-process-name {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    color: var(--shell-text, #1a2233);
}

.export-process-empty {
    margin: 0 0 16px;
    font-size: 14px;
}

.export-process-modal .modal-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 1.25rem;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle, #e8e8ec);
    background: #fff;
    color: var(--shell-text-muted, #5c6578);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.filter-tab:hover {
    border-color: var(--shell-accent, #5b4cdb);
    color: var(--shell-accent, #5b4cdb);
}

.filter-tab.is-active {
    background: var(--shell-accent, #5b4cdb);
    border-color: var(--shell-accent, #5b4cdb);
    color: #fff;
}

.filter-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 12px;
    font-weight: 700;
}

.filter-tab.is-active .filter-tab-badge {
    background: rgba(255, 255, 255, 0.28);
}

.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-pill--success {
    background: #e8f8ef;
    color: #0f6b3f;
}

.status-pill--warning {
    background: #fff4e5;
    color: #9a5b00;
}

.status-pill--danger {
    background: #fdeaea;
    color: #991b1b;
}

@media (max-width: 560px) {
    .metrics-row {
        grid-template-columns: 1fr;
    }
    .app-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    .pagination-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
