.excel-view-page .excel-sheet-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0 0 20px;
    color: #687586;
    font-size: 14px;
}
.excel-sheet-summary i { margin-right: 5px; }
.excel-sheet-summary #costedPartsCount { color: #2f7c46; }
.excel-sheet-summary #missingCostCount { color: #916127; }
.excel-sheet-workspace {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #dfe4eb;
    border-radius: 10px;
    overflow: hidden;
}
.excel-sheet-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    padding: 18px 20px;
}
.excel-sheet-toolbar h2 { margin: 0 0 4px; font: 600 18px/1.4 Inter, system-ui, sans-serif; color: #202c3c; }
.excel-sheet-toolbar p { margin: 0; color: #687586; font-size: 14px; }
.excel-sheet-actions, .excel-sheet-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.excel-sheet-controls { padding: 10px 16px; border-top: 1px solid #eaecf0; border-bottom: 1px solid #dfe4eb; }
.excel-sheet-control-divider { height: 22px; width: 1px; margin: 0 4px; background: #dfe4eb; }
.excel-view-page .excel-sheet-workspace .btn {
    font: 500 14px/1.5 Inter, system-ui, sans-serif !important;
    text-transform: none !important;
    letter-spacing: 0;
    padding: 7px 10px;
    border-radius: 7px;
    box-shadow: none !important;
}
.excel-view-page .excel-sheet-workspace .btn-outline-secondary {
    background: #edf0f3 !important;
    border-color: transparent !important;
    color: #475569 !important;
}
.excel-view-page .excel-sheet-workspace .btn-outline-secondary:hover { background: #e1e6eb !important; }
.excel-view-page .excel-sheet-workspace .btn-outline-danger {
    background: transparent !important;
    border-color: transparent !important;
    color: #a95358 !important;
}
.excel-view-page .excel-sheet-workspace .btn-outline-danger:hover { background: #fef3f2 !important; }
.excel-view-page :is(.btn, .btn-close):focus-visible { outline: 2px solid #547da5; outline-offset: 3px; }
#partsListSheetViewport { height: clamp(360px, 65vh, 800px); width: 100%; min-width: 0; overflow: hidden; }
#partsListHandsontableGrid { width: 100%; height: 100%; overflow: hidden; }
#partsListAlerts:empty { display: none; }
#partsListAlerts .alert { margin: 8px 16px; font-size: 14px; }
.excel-sheet-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 12px 16px; color: #687586; font-size: 13px; border-top: 1px solid #eaecf0; }
.excel-sheet-price-key { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: #d1e7dd; }
.excel-view-page .handsontable { font: 14px/1.5 Inter, system-ui, sans-serif; color: #202c3c; }
.excel-view-page .handsontable th { background: #f3f6f8; color: #526176; font-weight: 600; border-color: #dfe4eb; vertical-align: middle; }
.excel-view-page .handsontable td { border-color: #eaecf0; vertical-align: middle; }
.excel-view-page .handsontable td.supplier-group-even { background: #f8fafc; }
.excel-view-page .handsontable td.supplier-col-group { border-right: 2px solid #cbd5e1; }
.excel-view-page .handsontable .best-price-cell { background: #d1e7dd !important; font-weight: 600; }
.excel-view-page .handsontable .no-bid-cell { background: #fce8e6 !important; color: #a95358; font-style: italic; }
.stock-total-badge { display: inline-block; min-width: 42px; padding: 3px 7px; border-radius: 999px; font-weight: 600; text-align: center; }
.stock-total-badge.stock-ok { background: #d1e7dd; color: #0f5132; }
.stock-total-badge.stock-partial { background: #fbf2e6; color: #916127; }
.stock-total-badge.stock-none { background: #f8f9fa; color: #6c757d; }
.stock-lot-list { display: flex; flex-wrap: wrap; gap: 4px; }
.stock-lot-choice-btn { border: 1px solid #b8d8c0; background: #fff; color: #2f7c46; border-radius: 999px; padding: 2px 7px; font-size: 12px; line-height: 1.3; cursor: pointer; }
.stock-lot-choice-btn.is-selected { background: #2f7c46; color: #fff; }
.stock-lot-empty { color: #adb5bd; font-size: 13px; }
.spinner-overlay { position: fixed; inset: 0; background: #202c3c66; display: none; justify-content: center; align-items: center; z-index: 9999; }
.spinner-overlay.show { display: flex; }
#partsListSheetModal .modal-content { border-radius: 0 !important; height: 100vh; height: 100dvh; }
#partsListSheetModal .modal-header { flex-shrink: 0; padding: 14px 20px; gap: 16px; }
#partsListSheetModalHost { display: flex; padding: 0; min-height: 0; overflow: hidden; }
#partsListSheetModal .excel-sheet-workspace { flex: 1; min-height: 0; border: 0; border-radius: 0; }
#partsListSheetModal #partsListSheetViewport { flex: 1; min-height: 0; height: auto; }
#partsListSheetModal #expandPartsListSheetBtn { display: none; }
@media (max-width: 700px) {
    .excel-view-page .preview-heading .card-title { font-size: 26px !important; }
    .excel-view-page .preview-tabs { gap: 16px; flex-wrap: wrap; }
    .excel-view-page .preview-tabs > .btn { font-size: 14px; padding-block: 10px !important; }
    .excel-sheet-toolbar { padding: 14px; gap: 12px; }
    .excel-sheet-controls { padding: 8px; gap: 6px; }
    .excel-sheet-control-divider { display: none; }
    #partsListSheetModal .excel-sheet-toolbar p, #partsListSheetModal .excel-sheet-footer { display: none; }
}
