/* KONA theme: consolidated material, console, and KONA override passes in original cascade order. */
.theme-clean .documentation-nav-list a,
.theme-clean .documentation-block,
.theme-clean .documentation-rules,
.theme-clean .documentation-important-card,
.theme-clean .documentation-department-card,
.theme-clean .documentation-reader,
.theme-clean .documentation-screen-frame,
.theme-clean .documentation-screen-bar,
.theme-clean .documentation-screen-body aside,
.theme-clean .documentation-screen-cards span {
    border-color: #dce6df;
    background: #f7faf8;
}

.theme-clean .documentation-nav-list a.is-active {
    background: #e8f0ea;
    color: #123c34;
    box-shadow: inset 4px 0 0 #176b5b;
}

.theme-clean .documentation-progress span {
    background: #176b5b;
}

body.theme-clean {
    --bg: #eef3ef;
    --paper: #ffffff;
    --panel: #ffffff;
    --ink: #14211d;
    --muted: #66756e;
    --line: #d9e3dd;
    --accent: #176b5b;
    --accent-strong: #0f493f;
    --shadow: 0 18px 50px rgba(24, 42, 35, 0.08);
    background:
        radial-gradient(circle at top left, rgba(23, 107, 91, 0.09), transparent 34%),
        linear-gradient(180deg, #f8faf7 0%, #eef3ef 100%);
}

.theme-clean .sidebar {
    background: linear-gradient(180deg, #101b17 0%, #182823 100%);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.theme-clean .brand-mark {
    border-radius: 16px;
    background: linear-gradient(135deg, #176b5b, #57b19e);
}

.theme-clean .nav-link {
    border: 1px solid transparent;
}

.theme-clean .nav-link:hover,
.theme-clean .nav-link.is-active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.08);
}

.theme-clean .main-panel {
    background:
        radial-gradient(circle at 82% 8%, rgba(223, 177, 93, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(238, 243, 239, 0));
}

.theme-clean .topbar,
.theme-clean .page-head {
    padding: 18px 20px;
    border: 1px solid rgba(217, 227, 221, 0.9);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 42px rgba(24, 42, 35, 0.06);
    backdrop-filter: blur(14px);
}

.theme-clean .global-search label,
.theme-clean .global-search-panel {
    border-color: rgba(217, 227, 221, 0.96);
    background: rgba(255, 255, 255, 0.94);
}

.theme-clean .global-search-result {
    background: #f7faf8;
}

.theme-clean .panel,
.theme-clean .filter-panel,
.theme-clean .auth-card {
    border-color: rgba(217, 227, 221, 0.96);
    box-shadow: 0 18px 46px rgba(24, 42, 35, 0.07);
}

.theme-clean .metric-card,
.theme-clean .status-card,
.theme-clean .staff-item-card,
.theme-clean .purchase-import-card {
    border-color: rgba(217, 227, 221, 0.96);
    background:
        radial-gradient(circle at top right, rgba(23, 107, 91, 0.08), transparent 38%),
        linear-gradient(180deg, #ffffff, #f7faf8);
    box-shadow: 0 18px 42px rgba(24, 42, 35, 0.07);
}

.theme-clean .data-table-toolbar,
.theme-clean .workflow-owner-card,
.theme-clean .mini-row,
.theme-clean .storage-action-card,
.theme-clean .purchase-import-item-preview {
    border-color: #dce6df;
    background: #f7faf8;
}

.theme-clean .data-table th {
    background: #edf5f1;
    color: #33433d;
}

.theme-clean .field input,
.theme-clean .field select,
.theme-clean .field textarea,
.theme-clean .data-table td input[type="number"] {
    border-color: #d9e3dd;
    background: linear-gradient(180deg, #ffffff, #f8fbf9);
}

.theme-clean .primary-button {
    background: linear-gradient(135deg, #176b5b, #0f493f);
    box-shadow: 0 14px 28px rgba(23, 107, 91, 0.16);
}

.theme-clean .ghost-button,
.theme-clean .menu-button {
    background: rgba(23, 107, 91, 0.09);
    color: #0f493f;
}

.theme-clean .table-count-badge {
    background: #15221e;
}

/* Material-inspired polish for the default clean theme. */
body.theme-clean {
    --bg: #f4f7f5;
    --paper: #ffffff;
    --panel: #ffffff;
    --ink: #17211d;
    --muted: #65746d;
    --line: #d9e5df;
    --accent: #146b5b;
    --accent-strong: #0f4f43;
    --surface: #ffffff;
    --surface-container: #f7fbf8;
    --surface-container-high: #eef6f2;
    --primary-container: #d8f2ea;
    --on-primary-container: #083b32;
    --outline: #c8d6cf;
    --shadow: 0 1px 2px rgba(20, 33, 29, 0.06), 0 12px 34px rgba(20, 33, 29, 0.08);
    --radius: 28px;
    background:
        radial-gradient(circle at 18% -8%, rgba(20, 107, 91, 0.12), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(40, 96, 255, 0.07), transparent 26%),
        linear-gradient(180deg, #fbfdfb 0%, var(--bg) 58%, #eef4f1 100%);
    color: var(--ink);
}

.theme-clean .main-panel {
    padding: 24px clamp(18px, 2.3vw, 38px) 42px;
}

.theme-clean .content {
    width: min(100%, 1760px);
    margin-inline: auto;
    gap: 24px;
}

.theme-clean .topbar {
    position: sticky;
    top: 16px;
    z-index: 18;
    display: grid;
    grid-template-columns: auto minmax(190px, 0.66fr) minmax(260px, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(200, 214, 207, 0.82);
    box-shadow: 0 1px 2px rgba(20, 33, 29, 0.05), 0 18px 42px rgba(20, 33, 29, 0.08);
    backdrop-filter: blur(18px);
}

.theme-clean .topbar-title {
    min-width: 0;
}

.theme-clean .topbar h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(1.25rem, 2vw, 1.85rem);
    letter-spacing: -0.035em;
}

.theme-clean .sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 30% 0%, rgba(89, 178, 159, 0.26), transparent 28%),
        linear-gradient(180deg, #0f1916 0%, #15261f 100%);
}

.theme-clean .brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(87, 177, 158, 0.22);
}

.theme-clean .nav-links {
    gap: 6px;
}

.theme-clean .nav-link {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 999px;
    color: rgba(249, 252, 250, 0.76);
}

.theme-clean .nav-link .ui-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.theme-clean .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.theme-clean .nav-link.is-active {
    background: #d8f2ea;
    color: #082c25;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(8, 44, 37, 0.16);
}

.theme-clean .page-head,
.theme-clean .panel,
.theme-clean .filter-panel,
.theme-clean .auth-card,
.theme-clean .metric-card,
.theme-clean .status-card,
.theme-clean .staff-item-card,
.theme-clean .purchase-import-card,
.theme-clean .documentation-block,
.theme-clean .documentation-important-card,
.theme-clean .documentation-department-card {
    border: 1px solid rgba(200, 214, 207, 0.9);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.theme-clean .page-head {
    padding: 22px 24px;
}

.theme-clean .panel,
.theme-clean .filter-panel {
    padding: clamp(18px, 2vw, 28px);
}

.theme-clean .panel-head {
    padding-bottom: 4px;
}

.theme-clean .metric-card,
.theme-clean .status-card,
.theme-clean .staff-item-card,
.theme-clean .purchase-import-card {
    background:
        radial-gradient(circle at top right, rgba(20, 107, 91, 0.075), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
}

.theme-clean .metric-card {
    min-height: 128px;
    border-radius: 26px;
}

.theme-clean .metric-card strong,
.theme-clean .status-card strong,
.theme-clean .stock-number {
    letter-spacing: -0.045em;
}

.theme-clean .filter-panel {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
}

.theme-clean .field span {
    color: #263a33;
    font-size: 0.88rem;
    font-weight: 850;
}

.theme-clean .field input,
.theme-clean .field select,
.theme-clean .field textarea,
.theme-clean .table-search input,
.theme-clean .table-page-size select,
.theme-clean .data-table td input[type="number"],
.theme-clean .workflow-picker-toggle,
.theme-clean .workflow-picker-search {
    min-height: 50px;
    border-radius: 18px;
    border-color: var(--outline);
    background: var(--surface-container);
    box-shadow: inset 0 0 0 1px transparent;
}

.theme-clean .field textarea {
    line-height: 1.55;
}

.theme-clean .field input:hover,
.theme-clean .field select:hover,
.theme-clean .field textarea:hover,
.theme-clean .table-search input:hover,
.theme-clean .workflow-picker-toggle:hover {
    border-color: #9fb5ac;
    background: #ffffff;
}

.theme-clean .field input:focus,
.theme-clean .field select:focus,
.theme-clean .field textarea:focus,
.theme-clean .table-search input:focus,
.theme-clean .table-page-size select:focus,
.theme-clean .data-table td input[type="number"]:focus,
.theme-clean .workflow-picker-toggle:focus-visible,
.theme-clean .workflow-picker-search:focus {
    outline: 0;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(20, 107, 91, 0.14);
}

.theme-clean .primary-button,
.theme-clean .ghost-button,
.theme-clean .menu-button,
.theme-clean .notification-toggle {
    min-height: 44px;
    border-radius: 999px;
    font-weight: 850;
}

.theme-clean .primary-button {
    background: var(--accent);
    box-shadow: 0 2px 3px rgba(20, 107, 91, 0.18), 0 10px 20px rgba(20, 107, 91, 0.18);
}

.theme-clean .primary-button:hover {
    background: #0f5c4e;
}

.theme-clean .ghost-button,
.theme-clean .menu-button,
.theme-clean .notification-toggle {
    border: 1px solid transparent;
    background: var(--primary-container);
    color: var(--on-primary-container);
}

.theme-clean .ghost-button:hover,
.theme-clean .menu-button:hover,
.theme-clean .notification-toggle:hover {
    border-color: rgba(20, 107, 91, 0.18);
    background: #caebe2;
}

.theme-clean .global-search {
    flex: initial;
    max-width: none;
}

.theme-clean .global-search label {
    min-height: 54px;
    border-radius: 999px;
    background: var(--surface-container-high);
    border-color: transparent;
    box-shadow: none;
}

.theme-clean .global-search label:focus-within {
    border-color: rgba(20, 107, 91, 0.2);
    box-shadow: 0 0 0 4px rgba(20, 107, 91, 0.12);
}

.theme-clean .global-search-panel,
.theme-clean .notification-panel,
.theme-clean .workflow-picker-panel {
    border-color: rgba(200, 214, 207, 0.92);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(20, 33, 29, 0.14);
}

.theme-clean .global-search-result,
.theme-clean .workflow-picker-option,
.theme-clean .notification-row {
    border-radius: 18px;
}

.theme-clean .global-search-result:hover,
.theme-clean .global-search-result.is-active,
.theme-clean .workflow-picker-option:hover,
.theme-clean .workflow-picker-option:focus-visible,
.theme-clean .workflow-picker-option.is-selected,
.theme-clean .notification-row:hover {
    background: var(--primary-container);
    border-color: rgba(20, 107, 91, 0.18);
}

.theme-clean .data-table-toolbar {
    border-radius: 24px;
    border-color: rgba(200, 214, 207, 0.88);
    background: var(--surface-container);
}

.theme-clean .data-table {
    border-spacing: 0;
}

.theme-clean .data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eef6f2;
    color: #3f514a;
    font-size: 0.76rem;
}

.theme-clean .data-table th:first-child {
    border-top-left-radius: 16px;
}

.theme-clean .data-table th:last-child {
    border-top-right-radius: 16px;
}

.theme-clean .data-table td {
    border-bottom-color: rgba(217, 229, 223, 0.86);
}

.theme-clean .data-table tbody tr {
    transition: background 140ms ease, box-shadow 140ms ease;
}

.theme-clean .data-table tbody tr:hover {
    background: rgba(20, 107, 91, 0.045);
}

.theme-clean .table-count-badge,
.theme-clean .stat-chip,
.theme-clean .pill,
.theme-clean .role-chip {
    border-radius: 999px;
}

.theme-clean .copy-context-card,
.theme-clean .choice-field,
.theme-clean .panel-subsection,
.theme-clean .workflow-owner-card,
.theme-clean .mini-row,
.theme-clean .purchase-import-item-preview {
    border-color: rgba(20, 107, 91, 0.16);
    background: #f2faf6;
}

.theme-clean .flash {
    border: 1px solid transparent;
    box-shadow: 0 8px 24px rgba(20, 33, 29, 0.06);
}

.theme-clean .item-thumb,
.theme-clean .workflow-picker-thumb,
.theme-clean .item-hero-image {
    box-shadow: 0 6px 16px rgba(20, 33, 29, 0.10);
}

.theme-clean .sidebar-footer .ghost-button {
    background: rgba(255, 255, 255, 0.08);
    color: #e8f2ed;
}

.theme-clean .sidebar-footer .ghost-button:hover {
    background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 1100px) {
    .theme-clean .topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .theme-clean .global-search {
        grid-column: 1 / -1;
        order: initial;
    }
}

@media (max-width: 760px) {
    .theme-clean .main-panel {
        padding: 14px;
    }

    .theme-clean .topbar {
        position: static;
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
        border-radius: 24px;
    }

    .theme-clean .topbar h2 {
        white-space: normal;
    }

    .theme-clean .menu-button,
    .theme-clean .notification-toggle,
    .theme-clean .global-search,
    .theme-clean .global-search label {
        width: 100%;
    }

    .theme-clean .notification-menu {
        width: 100%;
    }

    .theme-clean .notification-panel {
        position: fixed;
        top: 92px;
        left: 16px;
        right: 16px;
        width: auto;
        max-height: calc(100vh - 120px);
        overflow: auto;
    }

    .theme-clean .data-table-mobile tbody tr {
        border-color: rgba(200, 214, 207, 0.9);
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(20, 33, 29, 0.07);
    }

    .theme-clean .data-table-mobile tbody tr:hover {
        background: #f7fbf8;
    }
}

@media (max-width: 1100px) {
    .topbar {
        flex-wrap: wrap;
    }

    .global-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .metric-grid,
    .panel-grid,
    .documentation-hero,
    .documentation-important-grid,
    .documentation-department-grid,
    .documentation-layout,
    .workflow-panel-grid,
    .dashboard-graph-grid,
    .dashboard-filter-grid,
    .detail-grid,
    .settings-grid,
    .settings-field-grid,
    .movement-filter-grid,
    .movement-preview-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .documentation-nav {
        position: static;
    }

    .documentation-nav-list {
        max-height: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .documentation-screen-body,
    .documentation-screen-cards {
        grid-template-columns: 1fr;
    }

    .documentation-screen-body aside {
        border-right: 0;
        border-bottom: 1px solid #efe7db;
    }

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

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 180ms ease;
        z-index: 30;
        width: min(88vw, 320px);
    }

    .shell.nav-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(16, 12, 7, 0.46);
        backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
        z-index: 20;
        display: block;
    }

    .shell.nav-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .menu-button {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .image-lightbox {
        padding: 20px;
    }

    .image-lightbox-image {
        max-height: calc(100vh - 180px);
    }

    .image-lightbox-close {
        top: 16px;
        right: 16px;
    }
}

@media (max-width: 760px) {
    .main-panel,
    .auth-card,
    .panel,
    .filter-panel {
        padding: 18px;
    }

    .topbar {
        align-items: flex-start;
    }

    .global-search {
        width: 100%;
    }

    .global-search-panel {
        position: fixed;
        top: 92px;
        left: 16px;
        right: 16px;
        width: auto;
        max-height: calc(100vh - 120px);
    }

    .global-search-result {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .global-search-result em {
        grid-column: 2;
        justify-self: start;
    }

    .metric-grid,
    .compact-grid,
    .filter-grid,
    .panel-grid,
    .documentation-hero,
    .documentation-important-grid,
    .documentation-department-grid,
    .documentation-columns,
    .workflow-panel-grid,
    .dashboard-graph-grid,
    .dashboard-filter-grid,
    .detail-grid,
    .settings-grid,
    .settings-field-grid,
    .chart-stat-row,
    .movement-filter-grid,
    .movement-preview-grid,
    .field-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .documentation-nav-list {
        grid-template-columns: 1fr;
    }

    .documentation-reader {
        padding: 12px;
    }

    .documentation-screen-frame {
        min-height: 0;
    }

    .documentation-screen-body main,
    .documentation-screen-body aside {
        padding: 14px;
    }

    .documentation-section-heading {
        display: grid;
        align-items: start;
    }

    .documentation-section-heading > span {
        text-align: left;
    }

    .page-head,
    .panel-head,
    .filter-actions,
    .page-actions,
    .inline-actions,
    .table-shell-head,
    .data-table-toolbar,
    .table-toolbar-group,
    .data-table-footer,
    .usage-meta,
    .detail-hero,
    .detail-hero-main,
    .item-table-cell,
    .align-right,
    .staff-item-card-head {
        align-items: flex-start;
        text-align: left;
        flex-direction: column;
    }

    .metric-card strong,
    .status-card strong,
    .stock-number {
        font-size: 1.8rem;
    }

    .metric-card-wide {
        grid-column: span 1;
    }

    .table-page-size,
    .table-search,
    .table-pagination {
        width: 100%;
    }

    .table-search {
        flex: none;
    }

    .table-toolbar-group {
        flex: none;
        width: 100%;
    }

    .choice-field {
        flex-direction: column;
    }

    .table-export-button {
        align-self: flex-start;
    }

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

    .table-pagination {
        justify-content: flex-start;
    }

    .trend-chart-labels {
        grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    }

    .workflow-picker-panel {
        position: static;
        box-shadow: none;
        border-radius: 18px;
    }

    .table-wrap {
        overflow: visible;
    }

    .data-table-mobile thead {
        display: none;
    }

    .data-table-mobile,
    .data-table-mobile tbody,
    .data-table-mobile tr,
    .data-table-mobile td {
        display: block;
        width: 100%;
    }

    .data-table-mobile,
    .movement-log-table {
        min-width: 0;
    }

    .data-table-mobile tbody {
        display: grid;
        gap: 14px;
    }

    .data-table-mobile tbody tr {
        padding: 6px 16px;
        border: 1px solid #efe7db;
        border-radius: 22px;
        background: #fffdf8;
        box-shadow: 0 14px 34px rgba(22, 18, 11, 0.05);
    }

    .data-table-mobile tbody tr:hover {
        background: #fffdf8;
    }

    .data-table-mobile td {
        display: grid;
        grid-template-columns: minmax(98px, 118px) minmax(0, 1fr);
        gap: 12px;
        padding: 12px 0;
    }

    .data-table-mobile td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .data-table-mobile td:last-child {
        border-bottom: 0;
    }

    .data-table-mobile .item-table-cell,
    .data-table-mobile .cell-link,
    .data-table-mobile .cell-link-compact {
        margin: 0;
        padding: 0;
    }

    .data-table-mobile .inline-actions {
        gap: 10px;
    }

    .data-table-mobile .table-actions-cell {
        width: 100%;
        min-width: 0;
    }

    .data-table-mobile .row-action-menu {
        justify-items: start;
    }

    .data-table-mobile .row-action-list {
        position: static;
        z-index: auto;
        margin-top: 8px;
        width: min(260px, 100%);
        min-width: 0;
    }

    .notification-menu {
        margin-left: 0;
    }

    .purchase-import-card-total {
        text-align: left;
    }

    .purchase-import-line-tools {
        align-items: flex-start;
        flex-direction: column;
    }

    .data-table-mobile td.empty-cell {
        display: block;
        padding: 20px 0;
        border-bottom: 0;
    }

    .data-table-mobile td.empty-cell::before {
        content: none;
    }
}

.purchase-line-table select,
.purchase-line-table input,
.purchase-line-table textarea,
.purchase-import-line-table select,
.purchase-import-line-table input,
.purchase-import-line-table textarea {
    width: 100%;
}

.field-stack {
    display: grid;
    gap: 10px;
}

.compact-field-stack input,
.compact-field-stack select,
.compact-field-stack textarea {
    min-height: 42px;
}

.inline-field-row {
    grid-template-columns: minmax(120px, 0.9fr) minmax(120px, 1fr);
    gap: 10px;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.document-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #efe7db;
    border-radius: 22px;
    background: #fffdf8;
}

.theme-clean .document-card,
.theme-clean .print-label {
    border-color: rgba(200, 214, 207, 0.9);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 33, 29, 0.06);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.label-print-shell {
    display: grid;
    gap: 20px;
}

.label-selection-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #e8e0d5;
    border-radius: 18px;
    background: #fbfaf7;
}

.label-select-all {
    margin: 0;
    font-weight: 900;
}

.label-selection-count {
    margin-left: auto;
    color: var(--muted);
    font-weight: 900;
}

.label-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.print-label {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #d9ccbb;
    border-radius: 18px;
    background: #fffdf8;
    break-inside: avoid;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.print-label.is-selected-for-print {
    border-color: var(--accent);
    box-shadow: 0 14px 30px rgba(10, 109, 102, 0.14);
    transform: translateY(-1px);
}

.label-select-tile {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #e6dacb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
}

.label-select-tile input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--accent);
}

.print-label.is-selected-for-print .label-select-tile {
    border-color: rgba(10, 109, 102, 0.24);
    background: #e8f7f1;
    color: var(--accent-strong);
}

.print-label-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.print-label-head img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
}

.print-label-head strong,
.print-label-head span,
.print-label small,
.barcode-box code {
    display: block;
}

.print-label-head span,
.print-label small {
    color: var(--muted);
}

.barcode-box {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px dashed #d7c9b7;
}

.barcode-svg {
    width: 100%;
    max-width: 260px;
    height: 58px;
    fill: #111;
}

.barcode-box code,
.data-table code {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.82rem;
}

.item-detail-barcode {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.2fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #ece1d2;
    border-radius: 20px;
    background: #fffdf8;
}

.item-detail-barcode strong {
    display: block;
    color: var(--ink);
    font-size: 1.15rem;
}

.item-detail-barcode p {
    margin: 4px 0 0;
}

.item-detail-barcode-box {
    padding: 10px;
}

.item-detail-barcode-box .barcode-svg {
    max-width: 320px;
}

/* Light admin console style matching the requested reference. */
body.theme-clean {
    --bg: #f4f7fb;
    --paper: #ffffff;
    --panel: #ffffff;
    --ink: #182235;
    --muted: #667085;
    --line: #e3e9f2;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --surface: #ffffff;
    --surface-container: #f8fbff;
    --surface-container-high: #eef4ff;
    --primary-container: #e8f0ff;
    --on-primary-container: #1d4ed8;
    --outline: #d8e1ee;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 24px rgba(15, 23, 42, 0.06);
    --radius: 18px;
    background: #f4f7fb;
    color: var(--ink);
    font-family: "Google Sans", "Product Sans", "Avenir Next", "Segoe UI", sans-serif;
}

.theme-clean .shell {
    grid-template-columns: 220px minmax(0, 1fr);
    background: #f4f7fb;
}

.theme-clean .shell.nav-collapsed {
    grid-template-columns: 76px minmax(0, 1fr);
}

.theme-clean .sidebar {
    gap: 18px;
    padding: 16px 12px;
    background: #ffffff;
    color: #1f2937;
    border-right: 1px solid #e6edf7;
    box-shadow: none;
}

.theme-clean .sidebar-head {
    padding: 0 0 10px;
}

.theme-clean .brand-block {
    gap: 10px;
}

.theme-clean .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 0.78rem;
    box-shadow: none;
}

.theme-clean .brand-block h1 {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.theme-clean .sidebar .eyebrow {
    color: #98a2b3;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    text-transform: none;
}

.theme-clean .sidebar-toggle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border-color: #e6edf7;
    background: #f8fbff;
    color: #667085;
}

.theme-clean .sidebar-toggle:hover {
    background: #eef4ff;
    color: #2563eb;
}

.theme-clean .nav-links {
    gap: 4px;
}

.theme-clean .nav-link {
    min-height: 36px;
    padding: 9px 11px;
    border-radius: 10px;
    color: #344054;
    font-size: 0.88rem;
    font-weight: 800;
}

.theme-clean .nav-link .ui-icon {
    width: 1rem;
    height: 1rem;
    color: #2563eb;
}

.theme-clean .nav-link:hover,
.theme-clean .nav-link.is-active {
    background: #e8f0ff;
    color: #1d4ed8;
    border-color: transparent;
    box-shadow: none;
}

.theme-clean .sidebar-footer {
    gap: 7px;
    padding-top: 16px;
    border-top-color: #e6edf7;
}

.theme-clean .sidebar-footer strong {
    color: #182235;
    font-size: 0.88rem;
}

.theme-clean .role-chip,
.theme-clean .sidebar-footer .ghost-button {
    background: #f1f5ff;
    color: #1d4ed8;
}

.theme-clean .sidebar-footer .ghost-button:hover {
    background: #e8f0ff;
    color: #174ea6;
}

.theme-clean .main-panel {
    min-width: 0;
    padding: 0;
    background: #f4f7fb;
}

.theme-clean .topbar {
    position: sticky;
    top: 0;
    z-index: 18;
    display: grid;
    grid-template-columns: auto minmax(260px, 430px) minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 18px;
    border: 0;
    border-bottom: 1px solid #e6edf7;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    backdrop-filter: blur(14px);
}

.theme-clean .topbar-title {
    display: none;
}

.theme-clean .menu-button {
    display: inline-flex;
    width: 34px;
    min-height: 34px;
    justify-content: center;
    padding: 0;
    border: 1px solid #e1e8f2;
    background: #ffffff;
    color: #344054;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.theme-clean .menu-button span {
    display: none;
}

.theme-clean .menu-button:hover {
    background: #f8fbff;
    color: #2563eb;
}

.theme-clean .global-search {
    width: 100%;
    max-width: none;
}

.theme-clean .global-search label {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #e1e8f2;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.theme-clean .global-search input {
    min-height: 36px;
    font-size: 0.86rem;
    font-weight: 750;
}

.theme-clean .global-search input::placeholder {
    color: #98a2b3;
}

.theme-clean .global-search label:focus-within {
    border-color: rgba(37, 99, 235, 0.38);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.theme-clean .notification-menu {
    grid-column: 4;
    justify-self: end;
    margin-left: 0;
}

.theme-clean .notification-toggle {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #e1e8f2;
    border-radius: 999px;
    background: #ffffff;
    color: #344054;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.theme-clean .notification-toggle span:not(.notification-badge) {
    display: none;
}

.theme-clean .notification-menu[open] .notification-toggle,
.theme-clean .notification-toggle:hover {
    border-color: rgba(37, 99, 235, 0.22);
    background: #f8fbff;
    color: #2563eb;
    box-shadow: none;
}

.theme-clean .notification-badge {
    background: #2563eb;
}

.theme-clean .topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 4px 12px 4px 4px;
    border: 1px solid #e1e8f2;
    border-radius: 999px;
    background: #ffffff;
    color: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.theme-clean .topbar-user-avatar {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.theme-clean .topbar-user-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.theme-clean .topbar-user-copy strong,
.theme-clean .topbar-user-copy small {
    overflow: hidden;
    max-width: 130px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-clean .topbar-user-copy strong {
    color: #182235;
    font-size: 0.8rem;
    line-height: 1.1;
}

.theme-clean .topbar-user-copy small {
    color: #667085;
    font-size: 0.68rem;
    font-weight: 800;
}

.theme-clean .content {
    width: min(100%, 1900px);
    padding: 20px 18px 36px;
    gap: 20px;
}

.theme-clean .page-head {
    padding: 18px 20px;
    border: 1px solid #dfe7f3;
    border-radius: 16px;
    background: #eef4ff;
    box-shadow: none;
}

.theme-clean .page-head-title {
    color: #172033;
}

.theme-clean .page-head-title .ui-icon,
.theme-clean .table-heading .ui-icon,
.theme-clean .metric-card-icon {
    color: #2563eb;
}

.theme-clean .page-head h3,
.theme-clean .panel-head h3 {
    color: #172033;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.theme-clean .page-head .eyebrow,
.theme-clean .panel-head .eyebrow {
    color: #667085;
    letter-spacing: 0;
    text-transform: none;
}

.theme-clean .panel,
.theme-clean .filter-panel,
.theme-clean .auth-card,
.theme-clean .metric-card,
.theme-clean .status-card,
.theme-clean .staff-item-card,
.theme-clean .purchase-import-card,
.theme-clean .documentation-block,
.theme-clean .documentation-important-card,
.theme-clean .documentation-department-card,
.theme-clean .document-card,
.theme-clean .print-label {
    border: 1px solid #dfe7f3;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.theme-clean .panel,
.theme-clean .filter-panel {
    padding: 18px;
}

.theme-clean .metric-card,
.theme-clean .status-card,
.theme-clean .staff-item-card,
.theme-clean .purchase-import-card {
    min-height: auto;
    background: #ffffff;
}

.theme-clean .metric-card {
    padding: 18px;
}

.theme-clean .metric-card span,
.theme-clean .status-label,
.theme-clean .table-shell-copy,
.theme-clean .table-results {
    color: #667085;
}

.theme-clean .metric-card strong,
.theme-clean .status-card strong,
.theme-clean .stock-number {
    color: #172033;
    letter-spacing: -0.035em;
}

.theme-clean .filter-panel {
    background: #ffffff;
    backdrop-filter: none;
}

.theme-clean .field span {
    color: #344054;
    font-size: 0.82rem;
    font-weight: 850;
}

.theme-clean .field input,
.theme-clean .field select,
.theme-clean .field textarea,
.theme-clean .table-search input,
.theme-clean .table-page-size select,
.theme-clean .data-table td input[type="number"],
.theme-clean .workflow-picker-toggle,
.theme-clean .workflow-picker-search {
    min-height: 40px;
    border: 1px solid #d8e1ee;
    border-radius: 10px;
    background: #ffffff;
    color: #172033;
    box-shadow: none;
}

.theme-clean .field input:hover,
.theme-clean .field select:hover,
.theme-clean .field textarea:hover,
.theme-clean .table-search input:hover,
.theme-clean .workflow-picker-toggle:hover {
    border-color: #b9c6da;
    background: #ffffff;
}

.theme-clean .field input:focus,
.theme-clean .field select:focus,
.theme-clean .field textarea:focus,
.theme-clean .table-search input:focus,
.theme-clean .table-page-size select:focus,
.theme-clean .data-table td input[type="number"]:focus,
.theme-clean .workflow-picker-toggle:focus-visible,
.theme-clean .workflow-picker-search:focus {
    outline: 0;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.theme-clean .primary-button {
    min-height: 38px;
    border-radius: 10px;
    background: #2563eb;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.16);
}

.theme-clean .primary-button:hover {
    background: #1d4ed8;
}

.theme-clean .ghost-button,
.theme-clean .table-export-button {
    min-height: 38px;
    border: 1px solid #dfe7f3;
    border-radius: 10px;
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: none;
}

.theme-clean .ghost-button:hover,
.theme-clean .table-export-button:hover {
    border-color: rgba(37, 99, 235, 0.24);
    background: #f1f5ff;
    color: #174ea6;
}

.theme-clean .table-count-badge {
    min-width: 40px;
    padding: 6px 11px;
    background: #172033;
    font-size: 0.82rem;
}

.theme-clean .data-table-toolbar {
    padding: 12px;
    border: 1px solid #dfe7f3;
    border-radius: 14px;
    background: #f8fbff;
}

.theme-clean .data-table th {
    position: static;
    background: #f2f5fa;
    color: #475467;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
}

.theme-clean .data-table th:first-child,
.theme-clean .data-table th:last-child {
    border-radius: 0;
}

.theme-clean .data-table th,
.theme-clean .data-table td {
    border-bottom-color: #edf1f7;
}

.theme-clean .data-table tbody tr:hover {
    background: #f8fbff;
}

.theme-clean .global-search-panel,
.theme-clean .notification-panel,
.theme-clean .workflow-picker-panel {
    border-color: #dfe7f3;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.14);
}

.theme-clean .global-search-result,
.theme-clean .workflow-picker-option,
.theme-clean .notification-row {
    border-radius: 12px;
    background: #f8fbff;
}

.theme-clean .global-search-result:hover,
.theme-clean .global-search-result.is-active,
.theme-clean .workflow-picker-option:hover,
.theme-clean .workflow-picker-option:focus-visible,
.theme-clean .workflow-picker-option.is-selected,
.theme-clean .notification-row:hover {
    background: #e8f0ff;
    border-color: rgba(37, 99, 235, 0.2);
}

.theme-clean .copy-context-card,
.theme-clean .choice-field,
.theme-clean .panel-subsection,
.theme-clean .workflow-owner-card,
.theme-clean .mini-row,
.theme-clean .purchase-import-item-preview {
    border-color: #dfe7f3;
    background: #f8fbff;
}

.theme-clean .pill,
.theme-clean .stat-chip,
.theme-clean .role-chip {
    border-radius: 999px;
}

.theme-clean .filter-chip:hover,
.theme-clean .filter-chip-active {
    border-color: rgba(37, 99, 235, 0.22);
    background: #e8f0ff;
    color: #1d4ed8;
}

.theme-clean .notification-toast {
    border-color: rgba(37, 99, 235, 0.22);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

@media (max-width: 1100px) {
    .theme-clean .shell,
    .theme-clean .shell.nav-collapsed {
        grid-template-columns: 1fr;
    }

    .theme-clean .topbar {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
    }

    .theme-clean .global-search {
        grid-column: 2;
        order: initial;
    }

    .theme-clean .notification-menu {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .theme-clean .topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 10px 12px;
        gap: 8px;
    }

    .theme-clean .global-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .theme-clean .notification-toggle span:not(.notification-badge),
    .theme-clean .topbar-user-copy {
        display: none;
    }

    .theme-clean .topbar-user {
        min-height: 34px;
        padding: 1px;
    }

    .theme-clean .topbar-user-avatar {
        width: 32px;
        height: 32px;
    }

    .theme-clean .content {
        padding: 14px 12px 28px;
        gap: 14px;
    }

    .theme-clean .page-head,
    .theme-clean .panel,
    .theme-clean .filter-panel {
        border-radius: 14px;
        padding: 14px;
    }

    .theme-clean .notification-menu {
        width: auto;
    }
}

/* KONA-style primary interface. Warm, minimal, logo-led, and less dashboard-template. */
body.theme-clean {
    --bg: #f2f5fd;
    --paper: #ffffff;
    --panel: #ffffff;
    --ink: #111111;
    --muted: #7b7d83;
    --line: #e4e4e7;
    --accent: #e5b557;
    --accent-strong: #8a6340;
    --surface: #ffffff;
    --surface-container: #fbfaf7;
    --surface-container-high: #f2eadf;
    --primary-container: #f3e8d8;
    --on-primary-container: #6d4b31;
    --outline: #dedede;
    --shadow: none;
    --radius: 18px;
    background: #f2f5fd;
    color: var(--ink);
    font-family: "Avenir Next", "Montserrat", "Segoe UI", sans-serif;
}

body.theme-clean.auth-shell {
    min-height: 100vh;
    background: #f2f5fd;
}

.theme-clean.auth-shell .auth-wrap {
    width: min(100%, 430px);
}

.theme-clean .auth-card-login {
    position: relative;
    min-height: 430px;
    padding: 58px 48px 42px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.theme-clean .auth-copy-login {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-bottom: 42px;
    text-align: center;
}

.theme-clean .auth-logo-word {
    color: #e5b557;
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1;
}

.theme-clean .auth-login-subtitle {
    color: #c9994e;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
}

.theme-clean .auth-dot-pattern {
    position: absolute;
    width: 48px;
    height: 48px;
    background-image: radial-gradient(circle, #3469ff 1.4px, transparent 1.5px);
    background-size: 10px 10px;
    opacity: 0.9;
}

.theme-clean .auth-dot-pattern-top {
    top: 0;
    right: 0;
}

.theme-clean .auth-dot-pattern-bottom {
    left: 0;
    bottom: 0;
}

.theme-clean .auth-card-login .field > .field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.theme-clean .auth-card-login .field input {
    min-height: 50px;
    border-radius: 6px;
    border-color: #dfe3eb;
    background: #ffffff;
    color: #111111;
}

.theme-clean .auth-card-login .field input::placeholder {
    color: #a9b0bd;
    font-weight: 700;
}

.theme-clean .auth-card-login .primary-button {
    min-height: 52px;
    border-radius: 6px;
    background: #e5b557;
    color: #ffffff;
    box-shadow: none;
}

.theme-clean .auth-card-login .primary-button:hover {
    background: #d8a645;
}

.theme-clean .auth-forgot {
    margin: 18px 0 0;
    color: #b7b7b7;
    font-weight: 800;
    text-align: center;
}

.theme-clean .auth-forgot a {
    color: inherit;
    text-decoration: none;
}

.theme-clean .auth-forgot a:hover {
    color: #e5b557;
}

.theme-clean .shell {
    grid-template-columns: 286px minmax(0, 1fr);
    background: #ffffff;
}

.theme-clean .shell.nav-collapsed {
    grid-template-columns: 86px minmax(0, 1fr);
}

.theme-clean .sidebar {
    gap: 28px;
    padding: 48px 28px 28px;
    background: #ffffff;
    color: #2f3033;
    border-right: 1px solid #d8d8dc;
    box-shadow: none;
}

.theme-clean .sidebar-head {
    display: grid;
    gap: 22px;
    padding: 0 0 22px;
}

.theme-clean .brand-block {
    display: grid;
    gap: 6px;
}

.theme-clean .brand-mark {
    display: none;
}

.theme-clean .brand-block h1 {
    margin: 0;
    color: #e5b557;
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 0.95;
}

.theme-clean .sidebar .eyebrow {
    color: #c9994e;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.theme-clean .sidebar-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: #ffffff;
    color: #7b7d83;
    box-shadow: none;
}

.theme-clean .sidebar-toggle:hover {
    background: #f8f1e8;
    color: #8a6340;
}

.theme-clean .nav-links::before {
    content: "General";
    margin: 0 0 2px;
    color: #a2a2a7;
    font-size: 0.74rem;
    font-weight: 800;
}

.theme-clean .nav-collapsed .nav-links::before {
    content: none;
    display: none;
}

.theme-clean .nav-links {
    gap: 10px;
}

.theme-clean .nav-link {
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #2f3033;
    font-size: 0.96rem;
    font-weight: 850;
}

.theme-clean .nav-link .ui-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #4c4f55;
}

.theme-clean .nav-link:hover {
    background: #faf6ef;
    color: #6d4b31;
}

.theme-clean .nav-link.is-active {
    border-color: #ead9c2;
    background: linear-gradient(90deg, #f3e6d3 0%, #f0e4d3 100%);
    color: #6d4b31;
    box-shadow: inset 3px 0 0 #8a6340;
}

.theme-clean .nav-link.is-active .ui-icon {
    color: #8a6340;
}

.theme-clean .sidebar-footer {
    gap: 8px;
    padding-top: 22px;
    border-top-color: #eeeeef;
}

.theme-clean .sidebar-footer strong {
    color: #111111;
}

.theme-clean .role-chip,
.theme-clean .sidebar-footer .ghost-button {
    background: #f3e8d8;
    color: #6d4b31;
}

.theme-clean .sidebar-footer .ghost-button:hover {
    background: #ead9c2;
}

.theme-clean .nav-collapsed .brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 0.8rem;
}

.theme-clean .main-panel {
    min-width: 0;
    background: #ffffff;
}

.theme-clean .topbar {
    position: sticky;
    top: 0;
    z-index: 18;
    display: grid;
    grid-template-columns: auto minmax(260px, 430px) minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    width: min(100%, 1560px);
    margin: 0 auto;
    padding: 18px 42px 10px;
    border: 0;
    border-bottom: 1px solid #eeeeef;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.theme-clean .topbar-title {
    display: none;
}

.theme-clean .menu-button {
    display: inline-flex;
    width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #ffffff;
    color: #4c4f55;
    box-shadow: none;
}

.theme-clean .menu-button span {
    display: none;
}

.theme-clean .menu-button:hover {
    background: #faf6ef;
    color: #8a6340;
}

.theme-clean .global-search {
    width: 100%;
    max-width: none;
}

.theme-clean .global-search label {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: none;
}

.theme-clean .global-search .ui-icon {
    color: #7b7d83;
}

.theme-clean .global-search input {
    min-height: 40px;
    color: #111111;
    font-size: 0.88rem;
    font-weight: 750;
}

.theme-clean .global-search input::placeholder {
    color: #9b9da3;
}

.theme-clean .global-search label:focus-within {
    border-color: #8a6340;
    box-shadow: 0 0 0 4px rgba(229, 181, 87, 0.18);
}

.theme-clean .notification-menu {
    grid-column: 4;
    justify-self: end;
    margin-left: 0;
}

.theme-clean .notification-toggle {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #ffffff;
    color: #4c4f55;
    box-shadow: none;
}

.theme-clean .notification-toggle span:not(.notification-badge) {
    display: none;
}

.theme-clean .notification-menu[open] .notification-toggle,
.theme-clean .notification-toggle:hover {
    border-color: #d8c4a8;
    background: #faf6ef;
    color: #8a6340;
    box-shadow: none;
}

.theme-clean .notification-badge {
    background: #ef4444;
}

.theme-clean .topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 2px 12px 2px 2px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: inherit;
    box-shadow: none;
}

.theme-clean .topbar-user-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 3px solid #3469ff;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.theme-clean .topbar-user-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.theme-clean .topbar-user-copy strong,
.theme-clean .topbar-user-copy small {
    overflow: hidden;
    max-width: 150px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-clean .topbar-user-copy strong {
    color: #111111;
    font-size: 0.9rem;
    line-height: 1.1;
}

.theme-clean .topbar-user-copy small {
    color: #6f7784;
    font-size: 0.78rem;
    font-weight: 800;
}

.theme-clean .menu-button .ui-icon,
.theme-clean .notification-toggle .ui-icon,
.theme-clean .topbar-user-panel .ui-icon {
    display: inline-flex !important;
    width: 1.05rem;
    height: 1.05rem;
    color: currentColor;
}

.theme-clean .topbar-user-menu {
    position: relative;
    justify-self: end;
}

.theme-clean .topbar-user-menu summary {
    list-style: none;
}

.theme-clean .topbar-user-menu summary::-webkit-details-marker {
    display: none;
}

.theme-clean .topbar-user {
    cursor: pointer;
}

.theme-clean .topbar-user-menu[open] .topbar-user,
.theme-clean .topbar-user:hover {
    background: #faf6ef;
    color: #6d4b31;
}

.theme-clean .topbar-user-caret {
    color: #8a8a8e;
    font-size: 0.72rem;
    font-weight: 900;
}

.theme-clean .topbar-user-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 46;
    display: grid;
    gap: 12px;
    width: min(330px, 92vw);
    padding: 14px;
    border: 1px solid #dedede;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(17, 17, 17, 0.14);
}

.theme-clean .topbar-user-panel-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #fbfaf7;
}

.theme-clean .topbar-user-panel-head > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.theme-clean .topbar-user-panel-head strong,
.theme-clean .topbar-user-panel-head span:not(.role-chip) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-clean .topbar-user-panel-head span:not(.role-chip) {
    color: #6f7784;
    font-size: 0.82rem;
    font-weight: 800;
}

.theme-clean .topbar-user-panel-links {
    display: grid;
    gap: 8px;
}

.theme-clean .topbar-user-panel-links a,
.theme-clean .topbar-user-panel-links button,
.theme-clean .topbar-logout-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #ffffff;
    color: #2f3033;
    cursor: pointer;
    font-weight: 850;
    text-align: left;
}

.theme-clean .topbar-user-panel-links a:hover,
.theme-clean .topbar-user-panel-links button:hover {
    border-color: #ead9c2;
    background: #faf6ef;
    color: #6d4b31;
}

.theme-clean .topbar-logout-button {
    border-color: #f0d4c8;
    color: #b93817;
}

.theme-clean .topbar-logout-button:hover {
    background: #fff4ef;
}

.theme-clean .content {
    width: min(100%, 1560px);
    margin-inline: auto;
    padding: 34px 42px 64px;
    gap: 26px;
}

.theme-clean .page-head {
    padding: 0 0 22px;
    border: 0;
    border-bottom: 1px solid #eeeeef;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.theme-clean .page-head-title {
    color: #111111;
}

.theme-clean .page-head-title .ui-icon {
    display: none;
}

.theme-clean .table-heading .ui-icon,
.theme-clean .metric-card-icon {
    color: #8a6340;
}

.theme-clean .page-head h3 {
    color: #111111;
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.theme-clean .panel-head h3 {
    color: #111111;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.theme-clean .page-head .eyebrow,
.theme-clean .panel-head .eyebrow {
    color: #8a8a8e;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.theme-clean .panel,
.theme-clean .filter-panel,
.theme-clean .auth-card,
.theme-clean .metric-card,
.theme-clean .status-card,
.theme-clean .staff-item-card,
.theme-clean .purchase-import-card,
.theme-clean .documentation-block,
.theme-clean .documentation-important-card,
.theme-clean .documentation-department-card,
.theme-clean .document-card,
.theme-clean .print-label {
    border: 1px solid #dedede;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
}

.theme-clean .panel,
.theme-clean .filter-panel {
    padding: 24px;
}

.theme-clean .metric-card,
.theme-clean .status-card,
.theme-clean .staff-item-card,
.theme-clean .purchase-import-card {
    min-height: auto;
    background: #ffffff;
}

.theme-clean .metric-card {
    padding: 24px;
}

.theme-clean .metric-grid .metric-card:first-child {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.theme-clean .metric-grid .metric-card:first-child span,
.theme-clean .metric-grid .metric-card:first-child .metric-card-note,
.theme-clean .metric-grid .metric-card:first-child .metric-card-icon,
.theme-clean .metric-grid .metric-card:first-child strong {
    color: #ffffff;
}

.theme-clean .metric-card span,
.theme-clean .status-label,
.theme-clean .table-shell-copy,
.theme-clean .table-results {
    color: #777a80;
}

.theme-clean .metric-card strong,
.theme-clean .status-card strong,
.theme-clean .stock-number {
    color: #111111;
    letter-spacing: -0.04em;
}

.theme-clean .filter-panel {
    background: #ffffff;
    backdrop-filter: none;
}

.theme-clean .field span {
    color: #36383d;
    font-size: 0.84rem;
    font-weight: 850;
}

.theme-clean .field input,
.theme-clean .field select,
.theme-clean .field textarea,
.theme-clean .table-search input,
.theme-clean .table-page-size select,
.theme-clean .data-table td input[type="number"],
.theme-clean .workflow-picker-toggle,
.theme-clean .workflow-picker-search {
    min-height: 44px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    box-shadow: none;
}

.theme-clean .field input:hover,
.theme-clean .field select:hover,
.theme-clean .field textarea:hover,
.theme-clean .table-search input:hover,
.theme-clean .workflow-picker-toggle:hover {
    border-color: #b7b7bb;
    background: #ffffff;
}

.theme-clean .field input:focus,
.theme-clean .field select:focus,
.theme-clean .field textarea:focus,
.theme-clean .table-search input:focus,
.theme-clean .table-page-size select:focus,
.theme-clean .data-table td input[type="number"]:focus,
.theme-clean .workflow-picker-toggle:focus-visible,
.theme-clean .workflow-picker-search:focus {
    outline: 0;
    border-color: #8a6340;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(229, 181, 87, 0.18);
}

.theme-clean .primary-button {
    min-height: 44px;
    border-radius: 8px;
    background: #e5b557;
    color: #ffffff;
    box-shadow: none;
}

.theme-clean .primary-button:hover {
    background: #d8a645;
}

.theme-clean .ghost-button,
.theme-clean .table-export-button {
    min-height: 42px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #ffffff;
    color: #6d4b31;
    box-shadow: none;
}

.theme-clean .ghost-button:hover,
.theme-clean .table-export-button:hover {
    border-color: #d8c4a8;
    background: #faf6ef;
    color: #8a6340;
}

.theme-clean .table-count-badge {
    min-width: 42px;
    padding: 7px 12px;
    background: #111111;
    color: #ffffff;
    font-size: 0.84rem;
}

.theme-clean .data-table-toolbar {
    padding: 14px;
    border: 1px solid #dedede;
    border-radius: 14px;
    background: #fbfaf7;
}

.theme-clean .data-table th {
    position: static;
    background: #fbfaf7;
    color: #686b70;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
}

.theme-clean .data-table th:first-child,
.theme-clean .data-table th:last-child {
    border-radius: 0;
}

.theme-clean .data-table th,
.theme-clean .data-table td {
    border-bottom-color: #eeeeef;
}

.theme-clean .data-table tbody tr:hover {
    background: #fbfaf7;
}

.theme-clean .global-search-panel,
.theme-clean .notification-panel,
.theme-clean .workflow-picker-panel {
    border-color: #dedede;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(17, 17, 17, 0.12);
}

.theme-clean .global-search-result,
.theme-clean .workflow-picker-option,
.theme-clean .notification-row {
    border-radius: 12px;
    background: #fbfaf7;
}

.theme-clean .global-search-result:hover,
.theme-clean .global-search-result.is-active,
.theme-clean .workflow-picker-option:hover,
.theme-clean .workflow-picker-option:focus-visible,
.theme-clean .workflow-picker-option.is-selected,
.theme-clean .notification-row:hover {
    background: #f3e8d8;
    border-color: rgba(138, 99, 64, 0.2);
}

.theme-clean .copy-context-card,
.theme-clean .choice-field,
.theme-clean .panel-subsection,
.theme-clean .workflow-owner-card,
.theme-clean .mini-row,
.theme-clean .purchase-import-item-preview {
    border-color: #dedede;
    background: #fbfaf7;
}

.theme-clean .filter-chip:hover,
.theme-clean .filter-chip-active {
    border-color: rgba(138, 99, 64, 0.22);
    background: #f3e8d8;
    color: #6d4b31;
}

.theme-clean .notification-toast {
    border-color: rgba(138, 99, 64, 0.22);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(17, 17, 17, 0.14);
}

.purchase-detail-grid,
.handover-detail-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

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

.purchase-action-panel,
.handover-action-panel {
    align-content: start;
}

.purchase-value-strip,
.handover-value-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.purchase-value-strip > div,
.handover-value-strip > div,
.purchase-info-card,
.handover-info-card,
.purchase-note-drawer,
.handover-note-drawer {
    border: 1px solid #dedede;
    border-radius: 16px;
    background: #fbfaf7;
}

.purchase-value-strip > div,
.handover-value-strip > div {
    display: grid;
    gap: 5px;
    min-height: 82px;
    align-content: center;
    padding: 14px;
}

.purchase-value-strip span,
.handover-value-strip span,
.purchase-info-card span,
.handover-info-card span,
.purchase-note-grid span,
.handover-note-grid span {
    color: #7b7d83;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.purchase-value-strip strong,
.handover-value-strip strong {
    color: #111111;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.purchase-compact-grid,
.handover-compact-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.purchase-info-card,
.handover-info-card {
    display: grid;
    gap: 5px;
    min-height: 92px;
    padding: 14px;
}

.purchase-info-card strong,
.purchase-info-card small,
.handover-info-card strong,
.handover-info-card small {
    overflow: hidden;
    text-overflow: ellipsis;
}

.purchase-info-card strong,
.handover-info-card strong {
    color: #111111;
    font-size: 0.98rem;
}

.purchase-info-card small,
.handover-info-card small {
    color: #7b7d83;
    font-weight: 750;
    line-height: 1.45;
}

.purchase-note-drawer,
.handover-note-drawer {
    overflow: hidden;
}

.purchase-note-drawer summary,
.handover-note-drawer summary {
    padding: 14px 16px;
    color: #6d4b31;
    cursor: pointer;
    font-weight: 900;
}

.purchase-note-grid,
.handover-note-grid {
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
}

.purchase-note-grid section,
.handover-note-grid section {
    display: grid;
    gap: 5px;
}

.purchase-note-grid p,
.handover-note-grid p {
    margin: 0;
    color: #2f3033;
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .theme-clean .shell,
    .theme-clean .shell.nav-collapsed {
        grid-template-columns: 1fr;
    }

    .theme-clean .topbar {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        width: 100%;
        padding-inline: 18px;
    }

    .theme-clean .global-search {
        grid-column: 2;
        order: initial;
    }

    .theme-clean .notification-menu {
        grid-column: auto;
    }

    .theme-clean .content {
        width: 100%;
        padding-inline: 18px;
    }

    .purchase-detail-grid,
    .handover-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.theme-clean.auth-shell {
        padding: 22px;
    }

    .theme-clean .auth-card-login {
        min-height: 400px;
        padding: 54px 28px 36px;
    }

    .theme-clean .topbar {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        padding: 12px;
        gap: 8px;
    }

    .theme-clean .global-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .theme-clean .notification-toggle span:not(.notification-badge),
    .theme-clean .topbar-user-copy {
        display: none;
    }

    .theme-clean .menu-button .ui-icon,
    .theme-clean .notification-toggle .ui-icon {
        display: inline-flex !important;
    }

    .theme-clean .topbar-user {
        min-height: 40px;
        padding: 1px 8px 1px 1px;
    }

    .theme-clean .topbar-user-avatar {
        width: 38px;
        height: 38px;
    }

    .theme-clean .content {
        padding: 22px 14px 34px;
        gap: 18px;
    }

    .theme-clean .page-head,
    .theme-clean .panel,
    .theme-clean .filter-panel {
        border-radius: 14px;
        padding: 16px;
    }

    .theme-clean .page-head {
        padding-inline: 0;
        border-radius: 0;
    }

    .theme-clean .notification-menu {
        width: auto;
    }

    .purchase-value-strip,
    .handover-value-strip,
    .purchase-compact-grid,
    .handover-compact-grid {
        grid-template-columns: 1fr;
    }
}

.purchase-form-section,
.purchase-line-builder {
    display: grid;
    gap: 18px;
}

.reorder-draft-panel {
    display: grid;
    gap: 18px;
}

.reorder-draft-form {
    display: grid;
    gap: 16px;
}

.reorder-draft-primary {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(280px, 1.35fr) minmax(220px, 1fr) minmax(110px, 0.45fr);
    gap: 14px;
    align-items: start;
}

.reorder-supplier-field {
    min-width: 0;
}

.reorder-selected-supplier {
    margin-top: 10px;
}

.reorder-new-supplier-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfaf7;
}

.reorder-new-supplier-card[hidden] {
    display: none !important;
}

.reorder-new-supplier-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.reorder-new-supplier-card summary::-webkit-details-marker {
    display: none;
}

.reorder-new-supplier-card summary strong {
    color: var(--ink);
}

.reorder-new-supplier-card summary span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 750;
}

.reorder-new-supplier-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0 16px 16px;
}

.reorder-draft-footer {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 1.2fr) auto;
    gap: 14px;
    align-items: end;
}

.reorder-draft-reminder {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid #ead9c2;
    border-radius: 16px;
    background: #faf6ef;
    color: #6d4b31;
    font-size: 0.86rem;
    font-weight: 800;
}

.reorder-draft-reminder .ui-icon {
    color: #8a6340;
}

.section-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.section-heading-row h3 {
    margin: 3px 0 0;
}

.purchase-picker {
    position: relative;
}

.purchase-picker-toggle {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.purchase-picker-toggle > span:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.purchase-picker-toggle strong,
.purchase-picker-option strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-picker-toggle small,
.purchase-picker-option small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.purchase-picker-caret {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
}

.purchase-picker-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 10px;
    max-height: min(420px, 70vh);
    padding: 12px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 20px 48px rgba(17, 17, 17, 0.14);
}

.purchase-picker-panel[hidden],
.purchase-new-supplier[hidden] {
    display: none !important;
}

.purchase-picker-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.purchase-picker-search .ui-icon {
    color: var(--muted);
}

.purchase-picker-search input {
    width: 100%;
    min-height: 40px;
    border: 0;
    background: transparent;
    outline: 0;
}

.purchase-picker-options {
    display: grid;
    gap: 8px;
}

.purchase-picker-empty {
    margin: 2px 4px 4px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.purchase-picker-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #fbfaf7;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.purchase-picker-option:hover,
.purchase-picker-option.is-selected {
    border-color: rgba(138, 99, 64, 0.22);
    background: #f3e8d8;
}

.purchase-picker-option > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.purchase-picker-option-mark,
.purchase-picker-option-thumb,
.purchase-line-thumb {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
}

.purchase-picker-option-thumb img,
.purchase-line-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.purchase-selected-summary {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #ead9c2;
    border-radius: 16px;
    background: #faf6ef;
}

.purchase-selected-summary[hidden],
.reorder-selected-supplier[hidden] {
    display: none !important;
}

.purchase-selected-summary span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.purchase-new-supplier {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfaf7;
}

.purchase-line-list {
    display: grid;
    gap: 14px;
}

.purchase-line-card {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
}

.purchase-line-card-head,
.purchase-line-title,
.purchase-line-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.purchase-line-card-head {
    justify-content: space-between;
}

.purchase-line-title {
    min-width: 0;
}

.purchase-line-title > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.purchase-line-title strong,
.purchase-line-title small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-line-title small {
    color: var(--muted);
    font-weight: 750;
}

.purchase-line-number {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.purchase-line-total {
    min-width: 112px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 900;
    text-align: center;
}

.purchase-line-core {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 0.5fr) minmax(170px, 0.6fr);
    gap: 12px;
    align-items: end;
}

.purchase-line-details {
    border: 1px solid #eeeeef;
    border-radius: 16px;
    background: #fbfaf7;
}

.purchase-line-details summary {
    padding: 13px 14px;
    color: #6d4b31;
    cursor: pointer;
    font-weight: 900;
}

.purchase-line-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 14px 14px;
}

.purchase-line-notes {
    grid-column: 1 / -1;
}

.purchase-total-card {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding: 16px;
    border: 1px solid #111;
    border-radius: 18px;
    background: #111;
    color: #fff;
}

.purchase-total-card span {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.purchase-total-card strong {
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.theme-clean .purchase-picker-toggle,
.theme-clean .reorder-new-supplier-card,
.theme-clean .purchase-line-card {
    border-color: #dedede;
    box-shadow: none;
}

.theme-clean .purchase-picker-toggle:hover,
.theme-clean .reorder-new-supplier-card:hover,
.theme-clean .purchase-line-card:hover {
    border-color: #d8c4a8;
}

.theme-clean .purchase-picker-toggle:focus-visible {
    border-color: #8a6340;
    box-shadow: 0 0 0 4px rgba(229, 181, 87, 0.18);
}

@media (max-width: 860px) {
    .reorder-draft-primary,
    .reorder-new-supplier-grid,
    .reorder-draft-footer {
        grid-template-columns: 1fr;
    }

    .reorder-new-supplier-card summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .purchase-line-card-head,
    .purchase-line-actions,
    .purchase-total-card {
        align-items: stretch;
        flex-direction: column;
    }

    .purchase-line-core,
    .purchase-line-detail-grid,
    .inline-field-row {
        grid-template-columns: 1fr;
    }

    .purchase-line-total {
        width: 100%;
    }

    .purchase-picker-panel {
        position: static;
        max-height: 360px;
        margin-top: 8px;
        box-shadow: none;
    }
}

.theme-clean .item-form-section {
    border-color: #dedede;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
}

.theme-clean .item-form-section-head h4 {
    color: #111111;
}

.theme-clean .item-form-section-note,
.theme-clean .item-form-help {
    color: #777a80;
}

.theme-clean .item-form-image-empty {
    border-color: #dedede;
    background: #fbfaf7;
}

.theme-clean .item-form-preview-wrap {
    border-radius: 16px;
}

.theme-clean .item-summary-stat {
    border-color: #dedede;
    border-radius: 14px;
    background: #ffffff;
}

.theme-clean .item-summary-stat-main {
    border-color: #000000;
    background: #000000;
}

.theme-clean .item-summary-more {
    border-top-color: #eeeeef;
}

.theme-clean .item-summary-more summary {
    color: #6d4b31;
}

.theme-clean .movement-panel {
    padding: 20px;
}

.theme-clean .movement-form-grid {
    gap: 12px;
}

.theme-clean .movement-form .field input,
.theme-clean .movement-form .field select,
.theme-clean .movement-form .field textarea {
    min-height: 42px;
}

.theme-clean .movement-form .field textarea {
    min-height: 92px;
}

.theme-clean .movement-form .field small {
    color: #777a80;
    font-size: 0.78rem;
}

.theme-clean .preview-card {
    border-color: #dedede;
    border-radius: 14px;
    background: #fbfaf7;
}

.theme-clean .preview-card-primary {
    border-color: #111111;
    background: #111111;
}

.theme-clean .preview-card-primary span,
.theme-clean .preview-card-primary strong {
    color: #ffffff;
}

.theme-clean .movement-form .primary-button {
    width: 100%;
    justify-content: center;
}
