html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

:root {
    --rp-primary: #2563EB;
    --rp-primary-dark: #1D4ED8;
    --rp-secondary: #0F172A;
    --rp-accent: #22C55E;
    --rp-background: #F8FAFC;
    --rp-surface: #FFFFFF;
    --rp-muted: #64748B;
    --rp-border: #E2E8F0;
    --rp-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --rp-soft-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

html,
body {
    background: var(--rp-background);
    color: var(--rp-secondary);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-width: 320px;
}

body {
    overflow-x: hidden;
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--rp-primary), #3B82F6);
    border-color: var(--rp-primary);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--rp-primary-dark), var(--rp-primary));
    border-color: var(--rp-primary-dark);
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.32);
}

.btn-outline-dark {
    border-color: rgba(15, 23, 42, 0.16);
    color: var(--rp-secondary);
}

.btn-outline-dark:hover {
    background: var(--rp-secondary);
    border-color: var(--rp-secondary);
    color: #FFFFFF;
}

.form-control {
    border-color: var(--rp-border);
    border-radius: 999px;
}

.form-control:focus {
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.14);
}

.site-header {
    backdrop-filter: blur(20px);
    background: rgba(248, 250, 252, 0.86);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    left: 0;
    position: sticky;
    right: 0;
    top: 0;
    z-index: 100;
}

.landing-nav {
    min-height: 78px;
}

.brand-logo {
    align-items: center;
    color: var(--rp-secondary);
    display: inline-flex;
    font-size: 1.08rem;
    font-weight: 800;
    gap: 0.7rem;
    text-decoration: none;
}

.brand-logo:hover {
    color: var(--rp-secondary);
}

.brand-logo-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-accent));
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
    color: #FFFFFF;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.navbar-nav {
    gap: 0.35rem;
}

.navbar .nav-link {
    color: #475569;
    font-size: 0.96rem;
    font-weight: 700;
    padding: 0.65rem 0.95rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--rp-primary);
}

.nav-cta {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.hero-section {
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.12), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(34, 197, 94, 0.12), transparent 30%),
        linear-gradient(180deg, #FFFFFF 0%, var(--rp-background) 82%);
    padding: 7.5rem 0 6rem;
}

.hero-copy {
    max-width: 660px;
}

.eyebrow {
    color: var(--rp-primary);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-copy h1 {
    color: var(--rp-secondary);
    font-size: clamp(3rem, 7vw, 5.8rem);
    font-weight: 900;
    line-height: 0.98;
    margin-bottom: 1.5rem;
}

.hero-copy p {
    color: #475569;
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 610px;
}

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

.hero-actions .btn {
    padding: 0.95rem 1.45rem;
}

.dashboard-shell {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 30px;
    box-shadow: var(--rp-shadow);
    padding: 1.2rem;
    position: relative;
}

.dashboard-shell::before {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(34, 197, 94, 0.18));
    border-radius: 36px;
    content: "";
    inset: -12px;
    opacity: 0.7;
    position: absolute;
    z-index: -1;
}

.dashboard-toolbar,
.panel-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-toolbar {
    border-bottom: 1px solid var(--rp-border);
    margin-bottom: 1rem;
    padding: 0.2rem 0.2rem 1rem;
}

.dashboard-kicker,
.panel-label,
.metric-card span {
    color: var(--rp-muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-toolbar h2 {
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0.25rem 0 0;
}

.status-pill {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 999px;
    color: #15803D;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 0.4rem 0.75rem;
}

.dashboard-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 1.1fr 1fr;
    margin-bottom: 0.8rem;
}

.metric-card,
.dashboard-panel,
.feature-card,
.why-card {
    background: var(--rp-surface);
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 24px;
    box-shadow: var(--rp-soft-shadow);
}

.metric-card {
    min-height: 148px;
    padding: 1rem;
}

.metric-card strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    margin-top: 0.5rem;
}

.metric-card small,
.dashboard-panel small {
    color: var(--rp-muted);
}

.inventory-card {
    background: linear-gradient(135deg, var(--rp-secondary), #1E293B);
    color: #FFFFFF;
    grid-row: span 2;
}

.inventory-card span,
.inventory-card small {
    color: rgba(255, 255, 255, 0.72);
}

.profit-card strong,
.sale-row strong {
    color: #16A34A;
}

.dashboard-panel {
    margin-top: 0.8rem;
    padding: 1rem;
}

.low-stock-panel {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.low-stock-panel strong {
    display: block;
    margin: 0.3rem 0;
}

.accent-dot {
    background: var(--rp-accent);
    border-radius: 999px;
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.12);
    flex: 0 0 auto;
    height: 14px;
    width: 14px;
}

.sale-row {
    align-items: center;
    border-top: 1px solid var(--rp-border);
    color: #475569;
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0.75rem 0 0;
}

.section-padding {
    padding: 6rem 0;
}

.section-heading {
    margin: 0 auto 3rem;
    max-width: 760px;
    text-align: center;
}

.section-heading h2,
.waitlist-card h2 {
    color: var(--rp-secondary);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.section-heading p,
.waitlist-card p {
    color: var(--rp-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.feature-grid,
.why-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
    min-height: 260px;
    padding: 1.5rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.why-card:hover {
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: var(--rp-shadow);
    transform: translateY(-6px);
}

.feature-icon {
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(34, 197, 94, 0.12));
    border-radius: 18px;
    color: var(--rp-primary);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 900;
    height: 52px;
    justify-content: center;
    margin-bottom: 1.4rem;
    width: 52px;
}

.feature-card h3,
.why-card h3 {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.feature-card p,
.why-card p {
    color: var(--rp-muted);
    line-height: 1.7;
    margin: 0;
}

.why-section {
    background: linear-gradient(180deg, var(--rp-background), #EEF6FF 54%, var(--rp-background));
}

.why-card {
    min-height: 320px;
    padding: 2rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.why-number {
    color: rgba(37, 99, 235, 0.24);
    display: block;
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2.5rem;
}

.coming-soon-section {
    padding-top: 4rem;
}

.waitlist-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.96));
    border-radius: 34px;
    box-shadow: var(--rp-shadow);
    color: #FFFFFF;
    margin: 0 auto;
    max-width: 980px;
    padding: clamp(2rem, 5vw, 4.2rem);
    text-align: center;
}

.waitlist-card h2,
.waitlist-card p {
    color: #FFFFFF;
}

.waitlist-card p {
    color: rgba(255, 255, 255, 0.78);
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
}

.waitlist-card small {
    color: rgba(255, 255, 255, 0.64);
    display: block;
    font-weight: 700;
    margin-top: 1rem;
}

.waitlist-form {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 2rem auto 0;
    max-width: 700px;
}

.waitlist-form .form-control {
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
    min-height: 58px;
    padding-left: 1.25rem;
}

.waitlist-form .btn {
    min-height: 58px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.site-footer {
    border-top: 1px solid var(--rp-border);
    padding: 2.5rem 0;
}

.footer-content {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.footer-content p {
    color: var(--rp-muted);
    margin: 0.9rem 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-links a {
    color: #475569;
    font-weight: 800;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--rp-primary);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .landing-nav {
        min-height: 72px;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--rp-border);
        border-radius: 22px;
        box-shadow: var(--rp-soft-shadow);
        margin-top: 0.9rem;
        padding: 1rem;
    }

    .hero-section {
        padding: 5rem 0 4rem;
    }

    .hero-copy {
        margin: 0 auto;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

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

@media (max-width: 767.98px) {
    .section-padding {
        padding: 4rem 0;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .hero-actions .btn,
    .waitlist-form .btn {
        width: 100%;
    }

    .dashboard-shell {
        border-radius: 24px;
        padding: 0.9rem;
    }

    .dashboard-grid,
    .feature-grid,
    .why-grid,
    .waitlist-form {
        grid-template-columns: 1fr;
    }

    .inventory-card {
        grid-row: auto;
    }

    .feature-card,
    .why-card {
        min-height: auto;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }
}

.bookkeeping-period {
    align-items: end;
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-radius: 18px;
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
}

.bookkeeping-tax-settings {
    align-items: end;
    border-bottom: 1px solid var(--rp-border);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
}

.bookkeeping-tax-settings > div:first-child {
    display: flex;
    flex: 1 1 220px;
    flex-direction: column;
}

.bookkeeping-tax-settings small {
    color: var(--rp-muted);
}

.bookkeeping-tax-settings .form-field {
    width: 150px;
}

.bookkeeping-period .form-field {
    min-width: 180px;
}

.bookkeeping-period-range {
    align-self: center;
    color: var(--rp-muted);
}

.bookkeeping-period-error {
    align-self: center;
    color: #b42318;
}

.bookkeeping-report-backdrop {
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    inset: 0;
    justify-content: center;
    overflow: auto;
    padding: 1.5rem;
    position: fixed;
    z-index: 1100;
}

.bookkeeping-report-paper {
    align-self: flex-start;
    background: #fff;
    color: #111827;
    max-width: 1100px;
    min-width: 0;
    padding: clamp(1rem, 3vw, 2.5rem);
    width: 100%;
}

.bookkeeping-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.bookkeeping-report-header {
    border-bottom: 2px solid #111827;
    padding-bottom: 1rem;
}

.bookkeeping-report-header span {
    color: #2563eb;
    font-weight: 800;
}

.bookkeeping-report-header h2 {
    font-size: 1.75rem;
    margin: 0.4rem 0;
}

.bookkeeping-report-header p,
.bookkeeping-report-note {
    margin: 0;
}

.bookkeeping-report-note {
    background: #f8fafc;
    border-left: 3px solid #2563eb;
    font-size: 0.82rem;
    margin-top: 1rem;
    padding: 0.75rem;
}

.bookkeeping-report-footnote {
    color: #475569;
    font-size: 0.78rem;
    margin: 0.75rem 0 0;
}

.bookkeeping-report-section {
    margin-top: 2rem;
}

.bookkeeping-report-section h3 {
    border-bottom: 1px solid #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
}

.bookkeeping-report-summary {
    margin: 0;
    max-width: 38rem;
}

.bookkeeping-report-summary div {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.35rem 0;
}

.bookkeeping-report-summary dt {
    font-weight: 500;
}

.bookkeeping-report-summary dd {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.bookkeeping-report-summary .bookkeeping-report-total {
    border-top: 2px solid #111827;
    font-weight: 700;
    margin-top: 0.25rem;
    padding-top: 0.65rem;
}

.bookkeeping-report-table-wrap {
    overflow-x: auto;
}

.bookkeeping-report-table-wrap table {
    border-collapse: collapse;
    font-size: 0.8rem;
    width: 100%;
}

.bookkeeping-report-table-wrap th,
.bookkeeping-report-table-wrap td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.45rem 0.55rem;
    text-align: left;
    vertical-align: top;
}

.bookkeeping-report-table-wrap th {
    background: #f1f5f9;
    white-space: nowrap;
}

.bookkeeping-report-table-wrap td {
    overflow-wrap: anywhere;
}

.bookkeeping-report-notes td {
    color: #475569;
    font-style: italic;
}

@media print {
    .bookkeeping-report-backdrop {
        background: none;
        display: block;
        inset: auto;
        overflow: visible;
        padding: 0;
        position: static;
    }

    .bookkeeping-report-paper {
        max-width: none;
        padding: 0;
    }

    .bookkeeping-report-actions {
        display: none;
    }

    .bookkeeping-report-section {
        break-inside: auto;
    }

    .bookkeeping-report-section h3,
    .bookkeeping-report-table-wrap tr {
        break-inside: avoid;
    }

    .bookkeeping-report-table-wrap {
        overflow: visible;
    }

    .bookkeeping-report-table-wrap table {
        font-size: 7pt;
    }

    .bookkeeping-report-table-wrap th,
    .bookkeeping-report-table-wrap td {
        padding: 0.2rem;
    }
}

.bookkeeping-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.bookkeeping-stats > div {
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-radius: 20px;
    box-shadow: var(--rp-soft-shadow);
    display: flex;
    flex-direction: column;
    min-height: 132px;
    padding: 1.15rem;
}

.bookkeeping-stats span,
.bookkeeping-stats small {
    color: var(--rp-muted);
}

.bookkeeping-stats strong {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    margin: auto 0 0.15rem;
}

.bookkeeping-stats .net-profit-card {
    background: linear-gradient(145deg, #0f172a, #1e3a5f);
    border-color: transparent;
    color: #fff;
}

.bookkeeping-stats .net-profit-card span,
.bookkeeping-stats .net-profit-card small {
    color: #cbd5e1;
}

.bookkeeping-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.bookkeeping-grid .admin-panel {
    min-width: 0;
}

.returns-panel {
    margin-top: 1.25rem;
}

.sourcing-product-select { min-width: min(28rem, 100%); }
.sourcing-sandbox-notice { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.sourcing-filters { margin: 0 1.25rem 1rem; }
.sourcing-table td:first-child { min-width: 16rem; }
.sourcing-table td:last-child { white-space: nowrap; }
.sourcing-leads-heading { flex-wrap: wrap; }
.sourcing-leads-heading .seller-heading-actions { flex-wrap: wrap; }
.price-check-header,
.price-check-actions,
.price-check-list-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.price-check-actions { justify-content: flex-end; }
.price-check-list-heading { justify-content: space-between; }
.price-check-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.25rem 0;
}
.price-check-stats > div {
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    padding: 1rem;
}
.price-check-stats span,
.price-check-stats small { color: var(--rp-muted); display: block; }
.price-check-stats strong { display: block; font-size: 1.5rem; margin-top: 0.3rem; }
.price-check-filters { margin: 0 1.25rem 1rem; }
.price-check-row-actions { white-space: nowrap; }
@media (max-width: 767.98px) {
    .price-check-stats { grid-template-columns: 1fr; }
    .price-check-actions { justify-content: flex-start; }
}
.seller-contacts { margin-top: 1.25rem; }
.seller-contacts .panel-heading { margin-bottom: 0; }
.seller-contacts:has(#seller-contacts-content:not([hidden])) .panel-heading { margin-bottom: 1rem; }
.seller-count { color: var(--rp-muted); font-size: 0.85rem; font-weight: 600; vertical-align: middle; }
.seller-heading-actions { align-items: center; display: flex; gap: 0.5rem; }
.seller-collapse-toggle { align-items: center; background: transparent; border: 1px solid var(--rp-border); border-radius: 0.5rem; color: inherit; display: inline-flex; height: 2.5rem; justify-content: center; width: 2.5rem; }
.seller-collapse-toggle:hover { background: #f1f5f9; }
.seller-collapse-toggle:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.seller-chevron { border-bottom: 2px solid currentColor; border-right: 2px solid currentColor; height: 0.5rem; transform: rotate(45deg); transition: transform 0.2s ease; width: 0.5rem; }
.seller-collapse-toggle[aria-expanded="true"] .seller-chevron { transform: rotate(225deg); }
.seller-search { max-width: 24rem; margin: 0 1.25rem 1rem; }
.seller-table td:first-child { min-width: 12rem; }
.seller-table td:first-child a { display: block; font-size: 0.85rem; margin-top: 0.25rem; }
.seller-note-cell { min-width: 18rem; white-space: pre-line; font-weight: 400 !important; overflow-wrap: anywhere; }
.seller-actions { white-space: nowrap; }

.return-status {
    color: #b45309 !important;
    font-weight: 600;
}

.bookkeeping-table td:first-child strong,
.bookkeeping-table td:first-child span {
    display: block;
}

.bookkeeping-table td:first-child span {
    color: var(--rp-muted);
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.table-action {
    background: none;
    border: 0;
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem;
}

@media (max-width: 1199.98px) {
    .bookkeeping-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bookkeeping-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .bookkeeping-period {
        align-items: stretch;
        flex-direction: column;
    }

    .bookkeeping-stats {
        grid-template-columns: 1fr;
    }
}

/* Logoipsum-inspired theme layer */
:root {
    --rp-theme-bg: 251, 251, 253;
    --rp-theme-surface: 255, 255, 255;
    --rp-theme-text: 10, 18, 30;
    --rp-theme-primary: 22, 115, 255;
    --rp-theme-secondary: 10, 18, 30;
    --rp-theme-tertiary: 231, 241, 251;
    --rp-theme-shadow-md: 0 2px 4px 0 rgb(12 0 46 / 4%);
    --rp-theme-shadow-lg: 0 10px 14px 0 rgb(12 0 46 / 6%);
}

html,
body {
    background: rgb(var(--rp-theme-bg));
    color: rgb(var(--rp-theme-text));
    font-family: "Poppins", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
    background: rgb(var(--rp-theme-surface));
    border-bottom: 0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 5%);
}

.landing-nav {
    min-height: 80px;
}

.brand-logo {
    color: #243A5A;
    font-size: 1.02rem;
    font-weight: 800;
}

.brand-logo-mark {
    background: rgb(var(--rp-theme-primary));
    border-radius: 6px;
    box-shadow: none;
    height: 36px;
    width: 36px;
}

.navbar .nav-link {
    color: rgba(var(--rp-theme-text), 0.72);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    padding: 0.75rem 1.1rem;
    text-transform: uppercase;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: rgb(var(--rp-theme-primary));
}

.btn {
    border-radius: 0.4rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    padding: 1rem 1.35rem;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn span {
    margin-left: 1rem;
}

.btn:hover {
    transform: scale(1.025);
}

.btn-primary {
    background: rgb(var(--rp-theme-primary));
    border: 2px solid rgb(var(--rp-theme-primary));
    box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: rgb(var(--rp-theme-primary));
    border-color: rgb(var(--rp-theme-primary));
    box-shadow: var(--rp-theme-shadow-lg);
}

.btn-outline-dark {
    background: transparent;
    border: 0;
    color: rgb(var(--rp-theme-text));
    box-shadow: none;
}

.btn-outline-dark:hover {
    background: transparent;
    color: rgb(var(--rp-theme-primary));
}

.nav-cta {
    padding: 0.75rem 1.35rem;
}

.hero-section {
    background:
        linear-gradient(180deg, rgba(var(--rp-theme-tertiary), 0.38), rgba(var(--rp-theme-bg), 0) 46%),
        rgb(var(--rp-theme-bg));
    padding: 5rem 0 7rem;
}

.hero-copy {
    max-width: 620px;
}

.eyebrow {
    align-items: center;
    color: rgb(var(--rp-theme-text));
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.eyebrow::before {
    background: rgb(var(--rp-theme-primary));
    content: "";
    display: inline-block;
    height: 0.9em;
    margin-right: 1em;
    width: 0.9em;
}

.hero-copy h1 {
    color: rgb(var(--rp-theme-text));
    font-size: clamp(3.4rem, 7vw, 6.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 2.25rem;
}

.hero-copy p {
    color: rgba(var(--rp-theme-text), 0.72);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.dashboard-shell {
    background: rgb(var(--rp-theme-surface));
    border: 0;
    border-radius: 0.7rem;
    box-shadow: var(--rp-theme-shadow-lg);
    margin-left: auto;
    max-width: 560px;
    overflow: hidden;
    padding: 1.35rem;
}

.dashboard-shell::before {
    display: none;
}

.hero-theme-illustration {
    display: block;
    margin: -0.75rem auto 1rem;
    max-height: 190px;
    object-fit: contain;
    width: min(82%, 360px);
}

.metric-card,
.dashboard-panel,
.feature-card,
.why-card {
    background: rgb(var(--rp-theme-surface));
    border: 0;
    border-radius: 0.6rem;
    box-shadow: var(--rp-theme-shadow-md);
}

.inventory-card {
    background: rgb(var(--rp-theme-secondary));
}

.status-pill {
    background: rgba(var(--rp-theme-primary), 0.08);
    border-color: rgba(var(--rp-theme-primary), 0.16);
    color: rgb(var(--rp-theme-primary));
}

.section-padding {
    padding: 7rem 0;
}

.section-heading {
    max-width: 800px;
}

.section-heading h2,
.waitlist-card h2 {
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-heading p,
.waitlist-card p {
    color: rgba(var(--rp-theme-text), 0.62);
    font-size: 1.08rem;
}

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

.feature-card {
    align-items: center;
    justify-content: center;
    min-height: 315px;
    padding: 2.5rem;
    text-align: center;
}

.feature-card:hover,
.why-card:hover {
    border-color: transparent;
    box-shadow: var(--rp-theme-shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    background: transparent;
    border-radius: 0;
    height: 96px;
    margin: 0 auto 1.4rem;
    object-fit: contain;
    width: 96px;
}

.feature-card h3,
.why-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
}

.feature-card p,
.why-card p {
    color: rgba(var(--rp-theme-text), 0.62);
}

.why-section {
    background: rgb(var(--rp-theme-tertiary));
}

.why-card {
    min-height: 300px;
}

.why-number {
    color: rgba(var(--rp-theme-primary), 0.22);
}

.coming-soon-section {
    background: rgb(var(--rp-theme-secondary));
    color: #FFFFFF;
    margin-top: 0;
    padding: 0 0 8rem;
}

.cta-wave {
    display: block;
    height: 160px;
    margin-top: -1px;
    width: 100%;
}

.waitlist-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: 980px;
    padding: 4rem 0 0;
}

.waitlist-card .eyebrow,
.waitlist-card h2,
.waitlist-card p {
    color: #FFFFFF;
}

.waitlist-card .eyebrow::before {
    background: #FFFFFF;
}

.waitlist-card p {
    color: rgba(255, 255, 255, 0.78);
}

.waitlist-form .form-control {
    border-radius: 0.4rem;
    min-height: 62px;
}

.waitlist-form .btn {
    min-height: 62px;
}

.waitlist-form .validation-message {
    color: #FCA5A5;
    font-size: 0.9rem;
    font-weight: 700;
    grid-column: 1 / -1;
    text-align: left;
}

.waitlist-status {
    border-radius: 0.4rem;
    font-weight: 700;
    margin: 1.25rem auto 0;
    max-width: 700px;
    padding: 0.9rem 1rem;
}

.waitlist-status.is-success {
    background: rgba(34, 197, 94, 0.16);
    color: #BBF7D0;
}

.waitlist-status.is-info {
    background: rgba(59, 130, 246, 0.16);
    color: #BFDBFE;
}

.waitlist-status.is-error {
    background: rgba(239, 68, 68, 0.16);
    color: #FECACA;
}

.site-footer {
    background: rgb(var(--rp-theme-secondary));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .brand-logo,
.site-footer .brand-logo:hover,
.site-footer p,
.footer-links a {
    color: #FFFFFF;
}

.site-footer p,
.footer-links a {
    opacity: 0.72;
}

.footer-links a:hover {
    color: #FFFFFF;
    opacity: 1;
}

.nav-actions {
    align-items: center;
    display: flex;
    gap: 0.7rem;
}

.admin-login-link {
    color: rgba(var(--rp-theme-text), 0.72);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.auth-page,
.admin-shell {
    background:
        linear-gradient(180deg, rgba(var(--rp-theme-tertiary), 0.45), rgba(var(--rp-theme-bg), 0) 38%),
        rgb(var(--rp-theme-bg));
    min-height: 100vh;
}

.auth-page {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: rgb(var(--rp-theme-surface));
    border-radius: 0.8rem;
    box-shadow: var(--rp-theme-shadow-lg);
    max-width: 520px;
    padding: clamp(2rem, 5vw, 3rem);
    width: 100%;
}

.auth-brand,
.admin-brand {
    align-items: center;
    color: rgb(var(--rp-theme-text));
    display: inline-flex;
    font-weight: 800;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.auth-card h1 {
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.04;
    margin-bottom: 1rem;
}

.auth-card p {
    color: rgba(var(--rp-theme-text), 0.64);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.auth-form,
.admin-form {
    display: grid;
    gap: 1rem;
}

.form-label {
    color: rgb(var(--rp-theme-text));
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.auth-form .form-control,
.admin-form .form-control,
.admin-form .form-select {
    border-radius: 0.45rem;
    min-height: 52px;
}

.quick-category {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 0.65rem;
}

.sku-feedback {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    margin-top: 0.45rem;
}

.sku-feedback.is-checking {
    color: rgba(var(--rp-theme-text), 0.58);
}

.sku-feedback.is-available {
    color: #15803D;
}

.sku-feedback.is-taken {
    color: #B91C1C;
}

.item-name-matches {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    margin-top: 0.65rem;
    padding: 0.75rem;
}

.item-name-matches > strong { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; }
.item-name-matches ul { list-style: none; margin: 0; max-height: 13rem; overflow-y: auto; padding: 0; }
.item-name-matches li { align-items: baseline; border-top: 1px solid #e2e8f0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.75rem; justify-content: space-between; padding: 0.45rem 0; }
.item-name-matches li a { font-weight: 700; overflow-wrap: anywhere; }
.item-name-matches li span, .item-name-matches small { color: #64748b; font-size: 0.8rem; }
.item-name-matches small { display: block; margin-top: 0.35rem; }

.auth-form .validation-message,
.admin-form .validation-message {
    color: #DC2626;
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
    background: #0A121E;
    color: #FFFFFF;
    min-height: 100vh;
    padding: 1.5rem;
    position: sticky;
    top: 0;
}

.admin-sidebar .brand-logo-mark {
    background: rgb(var(--rp-theme-primary));
}

.admin-brand {
    color: #FFFFFF;
    margin-bottom: 2.75rem;
}

.admin-brand:hover {
    color: #FFFFFF;
}

.admin-menu {
    display: grid;
    gap: 0.4rem;
}

.admin-menu a,
.admin-menu span {
    border-radius: 0.55rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0.85rem 1rem;
    text-decoration: none;
}

.admin-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.admin-main {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

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

.admin-topbar h1 {
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.04;
    margin-bottom: 0.8rem;
}

.admin-topbar p {
    color: rgba(var(--rp-theme-text), 0.62);
    line-height: 1.7;
    margin: 0;
    max-width: 760px;
}

.admin-user {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

.admin-user span {
    color: rgba(var(--rp-theme-text), 0.62);
    font-weight: 700;
}

.admin-grid {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(330px, 0.42fr) minmax(0, 1fr);
}

.admin-grid.inventory-only {
    grid-template-columns: minmax(0, 1fr);
}

.inventory-overview {
    border-bottom: 1px solid var(--rp-border);
    border-top: 1px solid var(--rp-border);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.5rem;
    padding: 1.15rem 0;
}

.inventory-overview > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.inventory-overview > div + div {
    border-left: 1px solid var(--rp-border);
    padding-left: 1.25rem;
}

.inventory-overview span {
    color: rgba(var(--rp-theme-text), 0.6);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.inventory-overview strong {
    font-size: clamp(1.4rem, 2.1vw, 2rem);
    line-height: 1.25;
    margin: 0.3rem 0;
}

.inventory-overview small {
    color: rgba(var(--rp-theme-text), 0.6);
}

.stock-demand {
    border: 1px solid var(--rp-border);
    border-left: 4px solid #22c55e;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    padding: 1.1rem 1.25rem;
}

.stock-demand-heading,
.stock-demand-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: space-between;
}

.stock-demand-heading h2 {
    font-size: 1.05rem;
    margin: 0.2rem 0 0;
}

.stock-demand-heading small,
.stock-demand-row span {
    color: rgba(var(--rp-theme-text), 0.65);
}

.stock-demand-list {
    margin-top: 0.8rem;
}

.stock-demand-row {
    border-top: 1px solid var(--rp-border);
    padding: 0.75rem 0;
}

.stock-demand-row a {
    font-weight: 700;
    min-width: 12rem;
}

.stock-demand-row strong {
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .inventory-overview {
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .inventory-overview > div + div {
        border-left: 0;
        border-top: 1px solid var(--rp-border);
        padding-left: 0;
        padding-top: 1rem;
    }
}

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

.admin-modal {
    background: rgb(var(--rp-theme-surface));
    border-radius: 0.75rem;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    max-height: calc(100vh - 2.5rem);
    max-width: 760px;
    overflow-y: auto;
    padding: 1.5rem;
    width: 100%;
}

.admin-modal .panel-heading {
    margin-bottom: 1.25rem;
}

.modal-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.4rem;
    color: rgba(var(--rp-theme-text), 0.62);
    display: inline-flex;
    font-size: 1.8rem;
    height: 40px;
    justify-content: center;
    line-height: 1;
    width: 40px;
}

.modal-close:hover {
    background: rgba(var(--rp-theme-text), 0.06);
    color: rgb(var(--rp-theme-text));
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.inventory-count {
    color: rgba(var(--rp-theme-text), 0.58);
    font-size: 0.85rem;
    font-weight: 800;
}

.inventory-toolbar {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(260px, 1fr) minmax(170px, 0.38fr) minmax(180px, 0.4fr) auto;
    margin: 1.25rem 0 0.5rem;
}

.inventory-toolbar .form-control,
.inventory-toolbar .form-select {
    min-height: 44px;
}

.admin-panel {
    background: rgb(var(--rp-theme-surface));
    border-radius: 0.75rem;
    box-shadow: var(--rp-theme-shadow-lg);
    padding: 1.25rem;
}

.admin-panel h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0.2rem 0 0;
}

.admin-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.form-field {
    min-width: 0;
}

.span-2 {
    grid-column: 1 / -1;
}

.admin-alert {
    border-radius: 0.55rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
}

.admin-alert.is-success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803D;
}

.admin-alert.is-error {
    background: rgba(239, 68, 68, 0.12);
    color: #B91C1C;
}

.admin-loading,
.empty-state {
    color: rgba(var(--rp-theme-text), 0.62);
    padding: 2rem;
    text-align: center;
}

.empty-state strong {
    color: rgb(var(--rp-theme-text));
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

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

.items-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 820px;
    width: 100%;
}

.items-table th {
    color: rgba(var(--rp-theme-text), 0.5);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 0.9rem 0.75rem;
    text-transform: uppercase;
}

.items-table td {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    color: rgb(var(--rp-theme-text));
    font-weight: 700;
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.items-table td:first-child {
    min-width: 230px;
}

.items-table td span {
    color: rgba(var(--rp-theme-text), 0.54);
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.inventory-row {
    cursor: pointer;
    transition: background-color 160ms ease;
}

.inventory-row:hover {
    background: rgba(var(--rp-theme-primary), 0.045);
}

.inventory-item-link {
    color: rgb(var(--rp-theme-text));
    font-weight: 800;
    text-decoration: none;
}

.inventory-item-link:hover {
    color: rgb(var(--rp-theme-primary));
    text-decoration: underline;
}

.item-detail-header {
    align-items: flex-end;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.item-detail-header h1 {
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    font-weight: 800;
    margin: 0.35rem 0 0.75rem;
}

.item-detail-header code {
    background: rgba(var(--rp-theme-primary), 0.08);
    border-radius: 0.35rem;
    color: rgb(var(--rp-theme-primary));
    font-size: 0.9rem;
    font-weight: 900;
    padding: 0.35rem 0.55rem;
}

.item-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.item-detail-meta {
    color: rgba(var(--rp-theme-text), 0.62);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 0.5rem 1.5rem;
    margin: 0 0 1.25rem;
}

.item-listing-templates {
    margin-bottom: 1.25rem;
}

.listing-template-block + .listing-template-block {
    border-top: 1px solid rgba(var(--rp-theme-text), 0.1);
    margin-top: 1rem;
    padding-top: 1rem;
}

.listing-template-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.listing-template-heading h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
}

.listing-template-block p {
    margin: 0.5rem 0 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.item-checklist-panel {
    margin-bottom: 1.25rem;
}

.item-checklist-toggle {
    align-items: center;
    background: none;
    border: 0;
    color: inherit;
    display: flex;
    justify-content: space-between;
    padding: 0;
    text-align: left;
    width: 100%;
}

.item-checklist-toggle:hover .item-checklist-title {
    color: var(--bs-primary);
}

.item-checklist-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.item-checklist-toggle-meta {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.item-checklist-toggle-meta > span:last-child {
    font-size: 1.4rem;
    line-height: 1;
}

#item-checklist-content {
    padding-top: 1rem;
}

.item-checklist-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.checklist-order-button {
    flex: 0 0 34px;
    height: 34px;
    padding: 0;
    width: 34px;
}

.checklist-target-list {
    border-bottom: 1px solid var(--rp-border);
    border-top: 1px solid var(--rp-border);
    margin-top: 1rem;
    max-height: min(45vh, 350px);
    overflow-y: auto;
}

.checklist-target-row {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    padding: 0.7rem 0.25rem;
}

.checklist-target-row + .checklist-target-row {
    border-top: 1px solid var(--rp-border);
}

.checklist-target-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.checklist-target-row code {
    color: rgba(var(--rp-theme-text), 0.6);
    display: block;
    font-size: 0.75rem;
}

.item-checklist-list {
    margin: 0.75rem 0;
}

.item-checklist-row,
.item-checklist-add,
.unit-checklist-row {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.item-checklist-row {
    border-top: 1px solid var(--rp-border);
    padding: 0.6rem 0;
}

.item-checklist-row > span,
.item-checklist-row > input,
.item-checklist-add > input {
    flex: 1;
    min-width: 0;
}

.item-checklist-add {
    margin-top: 0.8rem;
}

.unit-checklist-row {
    border-bottom: 1px solid var(--rp-border);
    cursor: pointer;
    padding: 0.9rem 0;
}

.unit-checklist-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.unit-checklist-progress {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 1rem 0 0;
}

@media (max-width: 575.98px) {
    .item-checklist-row,
    .item-checklist-add {
        flex-wrap: wrap;
    }

    .item-checklist-row > span,
    .item-checklist-row > input,
    .item-checklist-add > input {
        flex-basis: 100%;
    }
}

.unit-label-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.label-modal {
    max-width: min(96vw, 9in);
}

.label-feed-select {
    width: auto;
}

.label-preview-scroll {
    background: #e9eef4;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    overflow: auto;
    padding: 1rem;
}

.unit-label-page {
    background: #fff;
    box-sizing: border-box;
    height: 1in;
    width: 2in;
}

.unit-label {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    gap: 0.025in;
    height: 1in;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 0.04in 0.08in;
    width: 2in;
}

.unit-label strong {
    display: -webkit-box;
    font-size: 11pt;
    line-height: 1.1;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.unit-label > span,
.unit-label code {
    color: #111827;
    font-family: Arial, sans-serif;
    font-size: 9pt;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.unit-label code {
    font-size: 11pt;
    font-weight: 700;
}

@media print {
    .admin-shell,
    .label-preview-actions {
        display: none !important;
    }

    .label-backdrop,
    .label-modal,
    .label-preview-scroll {
        background: none;
        border: 0;
        box-shadow: none;
        display: block;
        inset: auto;
        margin: 0;
        max-height: none;
        max-width: none;
        overflow: visible;
        padding: 0;
        position: static;
        width: auto;
    }

    .unit-label-page {
        break-after: page;
        margin: 0;
    }

    .unit-label-page:last-child {
        break-after: auto;
    }

    .label-feed-narrow .unit-label-page {
        height: 2in;
        position: relative;
        width: 1in;
    }

    .label-feed-narrow .unit-label {
        left: 0;
        position: absolute;
        top: 0;
        transform: translateX(1in) rotate(90deg);
        transform-origin: top left;
    }
}

.back-link {
    color: rgba(var(--rp-theme-text), 0.62);
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-decoration: none;
}

.back-link:hover {
    color: rgb(var(--rp-theme-primary));
}

.inventory-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.inventory-stats > div {
    background: rgb(var(--rp-theme-surface));
    border-radius: 0.65rem;
    box-shadow: var(--rp-theme-shadow-lg);
    padding: 1.15rem;
}

.inventory-stats span {
    color: rgba(var(--rp-theme-text), 0.55);
    display: block;
    font-size: 0.74rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.inventory-stats strong {
    font-size: 1.55rem;
}

.row-actions {
    display: flex;
    gap: 0.45rem;
    justify-content: flex-end;
}

.compact-modal {
    max-width: 620px;
}

.category-pricing-list {
    border-top: 1px solid var(--rp-border);
    max-height: min(65vh, 580px);
    overflow-y: auto;
}

.category-pricing-row {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--rp-border);
    color: inherit;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
    padding: 0.9rem 0.25rem;
    text-align: left;
    width: 100%;
}

.category-pricing-row:hover,
.category-pricing-row:focus-visible {
    background: rgba(var(--rp-theme-text), 0.04);
}

.category-pricing-row-main,
.category-pricing-row-detail {
    min-width: 0;
    overflow-wrap: anywhere;
}

.category-pricing-row-main strong,
.category-pricing-row-main small,
.category-pricing-row-detail small {
    display: block;
}

.category-pricing-row-main small,
.category-pricing-row-detail small {
    color: rgba(var(--rp-theme-text), 0.6);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.category-pricing-row-action {
    color: var(--bs-primary);
    font-weight: 700;
}

.category-fees-section {
    border-top: 1px solid var(--rp-border);
    margin-top: 0.25rem;
    padding-top: 1rem;
}

.category-fees-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

@media (max-width: 575.98px) {
    .category-pricing-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .category-pricing-row-detail {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

.lot-layout {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
}

.saved-lots-bar {
    align-items: end;
    background: rgb(var(--rp-theme-surface));
    border-radius: 0.65rem;
    box-shadow: var(--rp-theme-shadow-lg);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 1.25rem;
    padding: 1rem;
}

.saved-lots-bar .form-label {
    grid-column: 1 / -1;
    margin: 0;
}

.source-link {
    color: rgb(var(--rp-theme-primary));
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    margin-top: 0.45rem;
    text-decoration: none;
}

.lot-search-wrap {
    margin: 1.25rem 0;
    position: relative;
}

.lot-search-results {
    background: rgb(var(--rp-theme-surface));
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.55rem;
    box-shadow: var(--rp-theme-shadow-lg);
    left: 0;
    max-height: 340px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 20;
}

.lot-search-results > button {
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    color: rgb(var(--rp-theme-text));
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    text-align: left;
    width: 100%;
}

.lot-search-results > button:hover {
    background: rgba(var(--rp-theme-primary), 0.055);
}

.lot-search-results button span:first-child {
    display: grid;
}

.lot-search-results small {
    color: rgba(var(--rp-theme-text), 0.52);
    font-weight: 700;
}

.lot-no-results {
    color: rgba(var(--rp-theme-text), 0.62);
    padding: 1rem;
}

.lot-no-results button {
    background: transparent;
    border: 0;
    color: rgb(var(--rp-theme-primary));
    font-weight: 800;
    padding: 0;
}

.lot-table {
    min-width: 760px;
}

.quantity-input {
    max-width: 84px;
    min-height: 40px;
}

.lot-decision {
    position: sticky;
    top: 1.25rem;
}

.lot-decision h2 {
    margin-bottom: 1.25rem;
}

.lot-price-input {
    font-size: 1.4rem;
    font-weight: 800;
    min-height: 58px;
}

.lot-totals {
    margin: 1.25rem 0;
}

.lot-totals > div {
    align-items: center;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 0;
}

.lot-totals dt {
    color: rgba(var(--rp-theme-text), 0.58);
    font-size: 0.84rem;
}

.lot-totals dd {
    font-weight: 900;
    margin: 0;
}

.loss {
    color: #B91C1C;
}

.lot-verdict {
    border-radius: 0.55rem;
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
}

.lot-verdict strong {
    font-size: 1.25rem;
}

.lot-verdict span {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.5;
}

.lot-verdict.is-waiting {
    background: rgba(148, 163, 184, 0.12);
    color: rgba(var(--rp-theme-text), 0.68);
}

.lot-verdict.is-buy {
    background: rgba(34, 197, 94, 0.13);
    color: #15803D;
}

.lot-verdict.is-pass {
    background: rgba(239, 68, 68, 0.12);
    color: #B91C1C;
}

.items-table code {
    background: rgba(var(--rp-theme-primary), 0.08);
    border-radius: 0.35rem;
    color: rgb(var(--rp-theme-primary));
    font-weight: 900;
    padding: 0.28rem 0.45rem;
}

.unit-code-list {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.unit-code-list span,
.table-muted {
    color: rgba(var(--rp-theme-text), 0.5);
    font-size: 0.8rem;
    font-weight: 700;
}

.profit {
    color: #15803D !important;
}

.stock-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    justify-content: center;
    min-width: 58px;
    padding: 0.35rem 0.55rem;
    text-transform: uppercase;
}

.stock-pill.is-good {
    background: rgba(34, 197, 94, 0.12);
    color: #15803D;
}

.stock-pill.is-low {
    background: rgba(234, 179, 8, 0.14);
    color: #A16207;
}

.stock-pill.is-out {
    background: rgba(239, 68, 68, 0.12);
    color: #B91C1C;
}

.stock-pill.is-high {
    background: rgba(37, 99, 235, 0.12);
    color: rgb(var(--rp-theme-primary));
}

@media (max-width: 991.98px) {
    .nav-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        min-height: auto;
        position: relative;
    }

    .admin-menu {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .inventory-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(170px, 0.45fr);
    }

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

    .lot-layout {
        grid-template-columns: 1fr;
    }

    .lot-decision {
        position: static;
    }

    .saved-lots-bar {
        grid-template-columns: 1fr;
    }

    .saved-lots-bar .form-label {
        grid-column: auto;
    }

    .dashboard-shell {
        margin-left: auto;
        margin-right: auto;
    }

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

@media (max-width: 767.98px) {
    .admin-topbar {
        display: block;
    }

    .admin-user {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .admin-menu,
    .admin-form {
        grid-template-columns: 1fr;
    }

    .admin-modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .admin-modal {
        border-radius: 0.75rem 0.75rem 0 0;
        max-height: 92vh;
        padding: 1.25rem;
    }

    .inventory-toolbar {
        grid-template-columns: 1fr;
    }

    .item-detail-header {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-stats {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .quick-category {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .hero-section {
        padding: 4rem 0 5rem;
    }

    .hero-copy h1 {
        font-size: 3.8rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }

    .cta-wave {
        height: 90px;
    }
}
