:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --accent: #0f766e;
    --accent-soft: #ccfbf1;
    --shadow: 0 16px 50px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "SF Pro Text", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 0 0, #e2e8f0 0, transparent 35%),
        radial-gradient(circle at 100% 100%, #ecfeff 0, transparent 40%),
        var(--bg);
}

.app-body {
    min-height: 100vh;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 272px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--line);
    padding: 1.25rem;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.brand h1 {
    font-size: 1.125rem;
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
}

.brand small {
    color: var(--muted);
}

.brand-mark {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(140deg, var(--accent), #22d3ee);
    box-shadow: 0 0 0 6px var(--accent-soft);
    display: inline-block;
}

.nav-link {
    color: #374151;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    padding: 0.62rem 0.75rem;
    transition: all 0.2s ease;
}

.nav-link i {
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: #0f172a;
    background: #f8fafc;
}

.content-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(244, 246, 248, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.topbar h2 {
    font-size: 1.1rem;
    font-weight: 800;
}

.eyebrow {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-wrap {
    padding: 1rem 1.25rem 2rem;
}

.surface {
    background: var(--surface);
    border-radius: 1.1rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.kpi {
    padding: 1.2rem;
}

.kpi p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.kpi h3 {
    margin-top: 0.35rem;
    margin-bottom: 0;
    font-weight: 800;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.section-title {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.table > :not(caption) > * > * {
    border-bottom-color: var(--line);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.table thead th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.timeline > div {
    border-left: 2px solid var(--line);
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #fafafa;
    border-radius: 0.6rem;
}

.recipe-ingredient-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.collapse-row {
    background: #fff;
}

.supplier-group {
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.8rem;
    background: #fff;
}

.supplier-group h5 {
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.auth-container {
    width: min(460px, 100%);
}

.auth-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-brand h1 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 800;
}

[data-animate] {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .page-wrap {
        padding: 1rem;
    }

    .topbar {
        padding: 0.85rem 1rem;
    }

    .topbar h2 {
        font-size: 1rem;
    }
}

@media print {
    .sidebar,
    .topbar,
    .btn,
    form,
    .alert {
        display: none !important;
    }

    .page-wrap {
        padding: 0;
    }

    .surface {
        border: 0;
        box-shadow: none;
    }
}

/* Progressive enhancement: global search + smooth navigation */
.content-column {
    position: relative;
}

.page-progress {
    position: sticky;
    top: 0;
    z-index: 1100;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #0f766e, #14b8a6, #22d3ee);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: min(420px, 44vw);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar-search:focus-within {
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.topbar-search i.bi-search {
    color: #94a3b8;
    font-size: 0.86rem;
}

.topbar-search .form-control {
    border: 0;
    background: transparent;
    padding: 0;
    min-height: 1.5rem;
    font-size: 0.92rem;
}

.topbar-search .form-control:focus {
    box-shadow: none;
}

#clearGlobalSearch {
    color: #94a3b8;
    line-height: 1;
}

#clearGlobalSearch:hover {
    color: #475569;
}

[data-page-container] {
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-body.is-loading .page-progress {
    opacity: 1;
    transform: scaleX(0.92);
}

.app-body.is-loading [data-page-container] {
    opacity: 0.62;
    transform: translateY(2px);
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .topbar-search {
        min-width: 0;
    }
}

/* Workspace refinement for Produtos, Vendas e Estoque */
.workspace-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.workspace-hero h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.workspace-hero p {
    margin: 0.45rem 0 0;
    max-width: 54rem;
    color: var(--muted);
}

.workspace-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.metric-card {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.metric-card strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.metric-card small {
    display: block;
    margin-top: 0.45rem;
    color: #64748b;
}

.workspace-panel .section-caption,
.section-caption {
    margin: 0 0 0.3rem;
    color: #64748b;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.panel-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-intro p:last-child,
.panel-note {
    margin-bottom: 0;
    color: var(--muted);
}

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

.subsurface {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.98));
    padding: 1rem;
}

.utility-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.utility-list li {
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.9);
}

.utility-list li strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.workspace-form .form-label {
    color: #64748b;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.workspace-form .form-control,
.workspace-form .form-select,
.workspace-form textarea {
    min-height: 2.9rem;
    border-radius: 0.9rem;
    border-color: #dbe2ea;
    box-shadow: none;
}

.workspace-form textarea {
    min-height: auto;
}

.workspace-form .form-control:focus,
.workspace-form .form-select:focus,
.workspace-form textarea:focus {
    border-color: rgba(15, 118, 110, 0.55);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.helper-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.table-clean {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table-clean tbody tr {
    transition: background-color 0.18s ease;
}

.table-clean tbody tr:hover {
    background: rgba(15, 118, 110, 0.04);
}

.table-clean td,
.table-clean th {
    vertical-align: top;
}

.table-meta {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.inline-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.soft-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: #334155;
    font-size: 0.77rem;
    font-weight: 700;
}

.status-soft-danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.status-soft-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.status-soft-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.edit-shell {
    border-top: 1px dashed #d7dde5;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(255, 255, 255, 0.98));
}

.compact-stack {
    display: grid;
    gap: 0.45rem;
}

.empty-state {
    padding: 1.6rem 1rem;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1199.98px) {
    .subsurface-grid {
        grid-template-columns: 1fr;
    }
}

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

    .workspace-meta {
        justify-content: flex-start;
    }

    .metric-strip {
        grid-template-columns: 1fr;
    }
}

/* Receitas workspace */
.recipe-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.recipe-search-shell {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: min(100%, 20rem);
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.recipe-search-shell i {
    color: #94a3b8;
}

.recipe-search-shell .form-control {
    padding: 0;
    min-height: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.recipe-search-shell .form-control:focus {
    box-shadow: none;
}

.recipe-search-shell:focus-within {
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.recipe-search-shell button {
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: 0;
    line-height: 1;
}

.recipe-search-shell button:hover {
    color: #475569;
}

.recipe-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.recipe-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.18s ease;
}

.recipe-filter-chip .count {
    color: #94a3b8;
}

.recipe-filter-chip.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.recipe-filter-chip.is-active .count {
    color: rgba(255, 255, 255, 0.72);
}

.recipe-audit-list {
    display: grid;
    gap: 0.85rem;
}

.recipe-audit-item {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.recipe-audit-item:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.recipe-audit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    color: #64748b;
    font-size: 0.84rem;
}

.recipe-audit-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.recipe-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.recipe-table-empty {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed var(--line);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.85);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 991.98px) {
    .recipe-toolbar,
    .recipe-table-toolbar {
        align-items: stretch;
    }

    .recipe-search-shell {
        width: 100%;
    }
}
/* Estoque diario */
.conference-planner-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.conference-draft-table .form-control {
    min-width: 8.5rem;
}

.conference-draft-table .conference-difference-value {
    font-size: 0.9rem;
    font-weight: 800;
}

.conference-product-check {
    cursor: pointer;
}

[data-conference-product] {
    transition: background-color 0.18s ease;
}

[data-conference-product]:has(.conference-product-check:checked) {
    background: rgba(15, 118, 110, 0.06);
}

@media (max-width: 991.98px) {
    .conference-planner-toolbar {
        align-items: stretch;
    }

    .conference-draft-table .form-control {
        min-width: 7rem;
    }
}
/* Receitas console */
.recipe-command-center {
    overflow: hidden;
}

.recipe-ops-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 2fr);
    gap: 1rem;
    align-items: start;
}

.recipe-catalog-panel {
    position: sticky;
    top: 5.6rem;
}

.recipe-filter-bar--dense {
    gap: 0.45rem;
}

.recipe-catalog-list {
    display: grid;
    gap: 0.65rem;
    max-height: min(70vh, 920px);
    overflow: auto;
    padding-right: 0.15rem;
}

.recipe-catalog-item {
    width: 100%;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.9rem 0.95rem;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.recipe-catalog-item:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.recipe-catalog-item.is-active {
    border-color: rgba(15, 118, 110, 0.55);
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.96), rgba(255, 255, 255, 1));
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.recipe-catalog-item-top {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: flex-start;
}

.recipe-catalog-item-top strong {
    font-size: 0.96rem;
}

.recipe-catalog-meta,
.recipe-current-context-meta,
.recipe-inspector-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.84rem;
    margin-top: 0.45rem;
}

.recipe-catalog-meta span,
.recipe-current-context-meta span {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
}

.recipe-workbench {
    min-width: 0;
}

.recipe-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
    gap: 1rem;
    align-items: start;
}

.recipe-editor-panel,
.recipe-side-stack {
    min-width: 0;
}

.recipe-side-stack {
    display: grid;
    gap: 1rem;
}

.recipe-current-context {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 1));
    padding: 0.9rem 1rem;
}

.recipe-current-context-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.recipe-inline-note {
    min-height: 1rem;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
}

.recipe-editor-section + .recipe-editor-section {
    margin-top: 1rem;
}

.recipe-block-title {
    font-size: 1rem;
    font-weight: 800;
}

.recipe-import-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 118, 110, 0.25);
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.95), rgba(255, 255, 255, 1));
}

.recipe-import-banner-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #0f766e;
    margin-bottom: 0.25rem;
}

.recipe-import-preview {
    border-top: 1px dashed #dbe2ea;
    padding-top: 1rem;
}

.recipe-import-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.recipe-section-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.recipe-section-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #475569;
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.18s ease;
}

.recipe-section-chip.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.recipe-import-preview-summary {
    color: #475569;
    font-size: 0.88rem;
}

.recipe-import-unresolved-list {
    display: grid;
    gap: 0.65rem;
}

.recipe-import-unresolved-item {
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.9);
    padding: 0.75rem 0.85rem;
}

.recipe-queue-list {
    display: grid;
    gap: 0.6rem;
}

.recipe-queue-item {
    width: 100%;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.9);
    padding: 0.75rem 0.85rem;
}

.recipe-queue-item strong {
    display: block;
    margin-bottom: 0.15rem;
}

.recipe-queue-item span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
}

.recipe-report-shell > summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.recipe-report-shell > summary::-webkit-details-marker {
    display: none;
}

@media (max-width: 1399.98px) {
    .recipe-editor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199.98px) {
    .recipe-ops-layout {
        grid-template-columns: 1fr;
    }

    .recipe-catalog-panel {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .recipe-import-banner,
    .recipe-current-context-head,
    .recipe-import-preview-head,
    .recipe-report-shell > summary {
        flex-direction: column;
        align-items: stretch;
    }

    .recipe-catalog-list {
        max-height: 22rem;
    }
}
/* Cotacao workspace */
.quote-compare-wrapper {
    overflow-x: auto;
}

.quote-compare-table {
    min-width: max-content;
}

.quote-compare-table td,
.quote-compare-table th {
    white-space: nowrap;
}

.quote-recommendation-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 1));
    padding: 0.95rem;
}

.quote-recommendation-card h5 {
    font-size: 1rem;
    font-weight: 800;
}

.quote-recommendation-list {
    display: grid;
    gap: 0.45rem;
}

.quote-recommendation-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px dashed #dbe2ea;
    padding-top: 0.5rem;
}

.quote-recommendation-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

@media (max-width: 991.98px) {
    .quote-recommendation-list li {
        flex-direction: column;
        align-items: flex-start;
    }
}

.status-soft-neutral {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.status-soft-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.document-command-panel {
    overflow: hidden;
}

.document-upload-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px dashed rgba(15, 118, 110, 0.32);
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.96), rgba(255, 255, 255, 1));
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.document-upload-shell input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.document-upload-shell:hover,
.document-upload-shell:focus-within,
.document-upload-shell.is-dragover {
    border-color: rgba(15, 118, 110, 0.62);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
    transform: translateY(-1px);
}

.document-upload-shell.has-file {
    border-style: solid;
}

.document-upload-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
    flex-shrink: 0;
}

.document-upload-icon i {
    font-size: 1.25rem;
}

.document-upload-copy {
    display: grid;
    gap: 0.2rem;
}

.document-upload-copy strong {
    font-size: 0.96rem;
}

.document-upload-copy small {
    color: #64748b;
    line-height: 1.4;
}

.documents-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.document-renewal-list {
    display: grid;
    gap: 0.75rem;
}

.document-renewal-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    background: rgba(248, 250, 252, 0.9);
}

.document-renewal-item strong {
    display: block;
    margin-bottom: 0.18rem;
}

.document-renewal-item span,
.document-renewal-item small {
    display: block;
    color: #64748b;
}

.document-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.document-category-card {
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    background: #fff;
    padding: 0.9rem;
}

.document-category-card.is-empty {
    background: rgba(248, 250, 252, 0.9);
}

.document-category-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 0.35rem;
}

.document-category-card-top span {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}

.document-category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.documents-guardrail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.documents-guardrail-grid strong {
    display: block;
    margin-bottom: 0.2rem;
}

.documents-guardrail-grid span {
    color: #64748b;
    font-size: 0.88rem;
}

.documents-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.documents-toolbar-side {
    display: grid;
    gap: 0.85rem;
    width: min(100%, 42rem);
}

.documents-filter-form .form-label {
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.documents-filter-form .form-select {
    min-height: 2.85rem;
    border-radius: 0.9rem;
    border-color: #dbe2ea;
    box-shadow: none;
}

.documents-filter-form .form-select:focus {
    border-color: rgba(15, 118, 110, 0.55);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.document-row-main strong {
    display: block;
    font-size: 0.97rem;
}

.document-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.82rem;
}

.document-file-meta {
    display: grid;
    gap: 0.1rem;
}

.document-row-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.document-empty-panel {
    padding: 1rem;
    border: 1px dashed var(--line);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.88);
    color: var(--muted);
}

.document-edit-row .helper-text {
    font-size: 0.82rem;
}

@media (max-width: 1199.98px) {
    .documents-focus-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .document-category-grid,
    .documents-guardrail-grid {
        grid-template-columns: 1fr;
    }

    .document-renewal-item,
    .documents-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .documents-toolbar-side,
    .document-row-actions {
        width: 100%;
    }

    .document-row-actions {
        justify-content: flex-start;
    }
}

.stock-import-panel {
    overflow: hidden;
}

.stock-import-upload-shell {
    min-height: 6.5rem;
}

.stock-import-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
}

.stock-import-preview-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.stock-import-preview-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.stock-import-preview-meta {
    padding: 0.7rem;
    display: grid;
    gap: 0.15rem;
}

.stock-import-preview-meta strong {
    font-size: 0.84rem;
}

.stock-import-preview-meta span {
    color: #64748b;
    font-size: 0.78rem;
}

.stock-import-history-shell {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: rgba(248, 250, 252, 0.92);
}

.stock-import-history-list {
    display: grid;
    gap: 0.75rem;
}

.stock-import-history-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.stock-import-history-item:hover {
    border-color: rgba(15, 118, 110, 0.45);
}

.stock-import-history-item strong,
.stock-import-history-item span {
    display: block;
}

.stock-import-history-item span {
    color: #64748b;
    font-size: 0.82rem;
}

.stock-import-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.stock-import-file-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.stock-import-file-preview {
    background: #f8fafc;
    min-height: 220px;
}

.stock-import-file-preview img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.stock-import-file-placeholder {
    min-height: 220px;
    display: grid;
    place-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-align: center;
    padding: 1rem;
}

.stock-import-file-meta {
    padding: 1rem;
    display: grid;
    gap: 0.25rem;
}

.stock-import-file-meta strong,
.stock-import-file-meta span {
    display: block;
}

.stock-import-file-meta span {
    color: #64748b;
    font-size: 0.82rem;
}

.stock-import-ocr-shell {
    margin-top: 0.75rem;
    max-height: 240px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.8rem;
    padding: 0.75rem;
    display: grid;
    gap: 0.25rem;
}

.stock-import-review-table .form-control,
.stock-import-review-table .form-select {
    min-width: 120px;
}

.stock-import-review-row.confidence-high {
    background: rgba(240, 253, 244, 0.55);
}

.stock-import-review-row.confidence-medium {
    background: rgba(255, 251, 235, 0.7);
}

.stock-import-review-row.confidence-low {
    background: rgba(254, 242, 242, 0.7);
}

.stock-import-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.stock-import-reason-list {
    margin: 0.75rem 0 0;
    padding-left: 1rem;
    color: #64748b;
    font-size: 0.8rem;
}

.stock-import-new-product {
    display: none;
}

@media (max-width: 991.98px) {
    .stock-import-gallery {
        grid-template-columns: 1fr;
    }

    .stock-import-history-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
