.empty-state.panel, .variant-switches, .recipe-actions, .sop-media-preview, .batch-tray, .preview-product, .preview-row, .count-image-chip, .file-list div, .info-row code, .operation-summary>div, .answer-conclusion, .answer-section, .answer-section.sources, .answer-section.operations, .preview-section.filtered-preview, .filtered-preview-row.restored, .matrix-new-row, .ingredient-child-row td{background:var(--surface);color:var(--ink);border-color:var(--line)}.empty-state.panel{color:var(--muted)}.ingredient-group-row td{background:var(--raised);color:var(--muted)}.unit-change-modal{max-height:calc(100dvh - 150px);overflow:auto}.unit-change-check{display:flex;align-items:flex-start;gap:10px;margin:16px 0;line-height:1.6}.unit-change-check input{width:auto;flex:none;margin-top:5px}.unit-change-modal .modal-actions{position:sticky;bottom:0;background:var(--surface);padding:14px 0}dialog.modal.unit-change-modal{inset:calc(var(--shell-height) + 12px) auto auto 50%;transform:translateX(-50%);width:min(1040px,96vw);max-height:calc(100dvh - var(--shell-height) - 49px);padding:24px;animation:none}.drop-card{background:var(--field);color:var(--accent)!important;border-color:var(--line)!important}.drop-card:hover{background:var(--raised);border-color:var(--accent)!important}.batch-head, .sop-basic-meta span, .kind-badge.semifinished, .kind-badge.operational{background:var(--raised);color:var(--muted);border-color:var(--line)}.sop-card-text, .recipe-sop{color:var(--muted);font-size:.86rem;line-height:1.75}.dense-list button:hover, .ingredient-child-row:hover td, .recipe-edit-row.dragging{background:var(--raised)!important;color:var(--ink);border-color:var(--line)}.recipe-edit-row.cost-excluded{background:var(--field);color:var(--muted)}.confirm-icon, .import-suspected_deleted, .status-pill.offline, .import-progress.error, .tag.abnormal, .tag.inventory_anomaly, .tag.no_theoretical_usage{background:color-mix(in srgb,var(--danger) 12%,var(--surface));color:var(--danger);border-color:var(--danger)}.loss-subnav button:hover{background:var(--raised);color:var(--ink)}.overview-bar i, .composition-row i{background:var(--raised)}.loss-combobox-arrow{background:var(--raised);color:var(--muted);border-color:var(--line)}#page-loss .dense-table tbody tr.selected{background:var(--accent-soft)}.receipt-modal{width:min(1460px,96vw);max-width:96vw;padding:24px;overflow:auto}dialog.modal.receipt-modal{inset:calc(var(--shell-height) + 12px) auto auto 50%;transform:translateX(-50%);max-height:calc(100dvh - var(--shell-height) - 49px);animation:none}.receipt-modal .modal-head{margin-bottom:16px}.receipt-upload{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:14px}.receipt-upload label{cursor:pointer;display:inline-block!important;margin:0!important;color:var(--ink)!important}.receipt-upload span{font-size:.85rem;color:var(--muted);flex:1}.receipt-upload button{margin-left:auto}.receipt-modal .notice{margin:12px 0;padding:12px}.receipt-modal .c-local-tabs{margin-top:12px;overflow:auto}.receipt-workspace{display:grid;grid-template-columns:minmax(230px,.7fr) minmax(0,1.8fr);gap:20px;align-items:start}.receipt-original{background:var(--field);border:1px solid var(--line);border-radius:7px;padding:10px;max-height:55vh;overflow:auto}.receipt-original img{display:block;width:100%;height:auto;image-orientation:from-image}.receipt-original img[hidden]{display:none}.receipt-original p{font-size:.8rem;line-height:1.6;color:var(--muted)}.receipt-image-tools{display:flex;gap:8px;margin-bottom:10px}.receipt-image-tools button{font-size:.8rem;padding:6px 10px}.receipt-image-stage{position:relative;overflow:visible}.receipt-image-stage img{position:absolute;left:50%;top:50%;max-width:none!important;max-height:none!important}.receipt-editor{min-width:0}.receipt-editor label{display:flex;flex-direction:column;gap:7px}.receipt-editor input, .receipt-editor select{padding:8px;border:1px solid var(--line);border-radius:5px;width:100%;min-width:0}.receipt-table{overflow:auto}.receipt-table table{min-width:820px;width:100%;table-layout:fixed}.receipt-table th:first-child{width:22%}.receipt-table th:nth-child(2){width:26%}.receipt-table td{padding:9px 7px}.receipt-table small{display:block;line-height:1.6}.receipt-table input{font-size:.9rem;padding:8px 4px}#receiptFinalSummary{border:1px solid var(--accent);background:var(--field);border-radius:7px;padding:18px;margin-top:20px;font-size:.9rem;line-height:1.7}.receipt-warning{color:var(--warning)}.receipt-success{padding:20px}.receipt-success h3{color:var(--success)}.receipt-picker{min-width:0}.receipt-candidates{margin-top:6px;max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:6px;background:var(--field)}.receipt-candidates[hidden]{display:none}.receipt-candidates [role=option]{display:flex;width:100%;gap:8px;align-items:center;justify-content:space-between;padding:9px 8px;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);font-size:.9rem;white-space:normal}.receipt-candidates [role=option]:hover, .receipt-candidates [aria-selected=true]{background:var(--accent-soft)}.receipt-candidates small{flex-shrink:0;color:var(--muted)}.receipt-candidates p{padding:8px;margin:0;font-size:.8rem;color:var(--muted)}.receipt-modal .modal-actions{position:sticky;bottom:-24px;background:var(--surface);padding:16px 0;margin-bottom:0;border-top:1px solid var(--line);z-index:2}
@media(max-width:1150px){.receipt-workspace{grid-template-columns:1fr}.receipt-original{max-height:230px}.receipt-original img{max-height:600px;width:auto;max-width:100%;margin:auto}.receipt-modal{padding:18px}.receipt-modal .modal-actions{bottom:-18px}}#unitChangeDialog, #processFactsDialog, #sopReferencesDialog{animation:none}
