.supplier-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; }
.supplier-table td:first-child strong, .supplier-table td:first-child small { display: block; }
.supplier-table td:first-child small { color: var(--muted); margin-top: 4px; max-width: 280px; }
.supplier-table .supplier-edit { padding: 8px 14px; white-space: nowrap; }
.supplier-balance-note { background: #f4f8f7; border: 1px solid #dce9e6; border-radius: 14px; display: grid; gap: 4px; padding: 14px 16px; }
.supplier-balance-note span, .supplier-balance-note small { color: var(--muted); }
.supplier-balance-note strong { color: #125a52; font-size: 20px; }
.purchase-tabs { display: flex; gap: 8px; margin: -8px 0 24px; overflow-x: auto; padding-bottom: 4px; }
.purchase-tabs a { border: 1px solid #dce6e4; border-radius: 999px; color: #506662; flex: 0 0 auto; font-size: 13px; font-weight: 700; padding: 9px 14px; text-decoration: none; }
.purchase-tabs a.active { background: #125a52; border-color: #125a52; color: white; }
.purchase-dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; }
.purchase-form { display: grid; gap: 18px; }
.purchase-items-table { min-width: 1160px; }
.purchase-items-table input, .purchase-items-table select { min-width: 82px; width: 100%; }
.purchase-items-table .purchase-product { min-width: 190px; }
.purchase-total-card { display: grid; gap: 10px; margin-left: auto; max-width: 520px; width: 100%; }
.purchase-total-card > div { display: flex; justify-content: space-between; }
.purchase-total-card .grand-total { border-top: 1px solid #dce6e4; color: #125a52; font-size: 18px; padding-top: 12px; }
.purchase-form-actions { align-items: center; background: rgba(255,255,255,.96); border: 1px solid #dce6e4; border-radius: 16px; bottom: 14px; box-shadow: 0 10px 30px rgba(26,66,59,.12); display: flex; gap: 10px; justify-content: flex-end; padding: 12px; position: sticky; z-index: 8; }
.purchase-save { min-width: 210px; }
.purchase-reset { min-width: 130px; }
.scan-dropzone { border: 2px dashed #b8cfca; margin: 34px auto; max-width: 720px; padding: 44px; text-align: center; transition: .2s ease; }
.scan-dropzone.dragging { background: #eef7f5; border-color: #125a52; transform: translateY(-2px); }
.scan-dropzone p { color: var(--muted); line-height: 1.7; }
.scan-dropzone small { display: block; margin-top: 18px; }
.scan-icon { align-items: center; background: #e0f0ed; border-radius: 16px; color: #125a52; display: inline-flex; font-weight: 800; height: 62px; justify-content: center; margin-bottom: 12px; width: 62px; }
.scan-progress { margin: 34px auto; max-width: 680px; text-align: center; }
.scan-progress-track { background: #e6eeec; border-radius: 999px; height: 9px; margin: 16px 0 10px; overflow: hidden; }
.scan-progress-track span { background: #125a52; display: block; height: 100%; transition: width .2s ease; width: 2%; }
.scan-review { display: grid; gap: 18px; }
.review-items-table { min-width: 1280px; }
.review-items-table input, .review-items-table select { min-width: 78px; width: 100%; }
.review-items-table .review-product { min-width: 190px; }
.review-product-cell { align-items: center; display: flex; gap: 8px; }
.review-product-cell b { color: #125a52; flex: 0 0 28px; font-size: 12px; }
.review-uncertain { background: #fff5cc !important; border-color: #d7a72d !important; }
.match-badge { color: #6b7775; display: block; font-size: 11px; margin-top: 5px; }
.ocr-raw-text { background: white; border: 1px solid #e1e9e7; border-radius: 14px; padding: 14px 18px; }
.ocr-raw-text pre { max-height: 240px; overflow: auto; white-space: pre-wrap; }
.scan-review-actions { display: flex; gap: 10px; justify-content: flex-end; }
.scan-quality { color: #277368; font-size: 13px; font-weight: 700; margin: 8px 0 0; }
.scan-quality.warning { color: #9a6500; }
.pricing-help { color: var(--muted); line-height: 1.5; }
.price-suggestion-modal { max-width: 1180px; }
.pricing-grid-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.price-warning { color: #a56600; display: block; margin-top: 4px; }
.purchase-row-actions { align-items: center; display: flex; gap: 6px; margin-top: 8px; position: relative; }
.purchase-view-action { background: #e4f2ef; border: 1px solid #b9d8d1; border-radius: 8px; color: #125a52; font-weight: 700; padding: 7px 12px; }
.purchase-action-menu { position: relative; }
.purchase-action-menu summary { align-items: center; border: 1px solid #d7e2df; border-radius: 8px; cursor: pointer; display: flex; font-weight: 800; height: 32px; justify-content: center; list-style: none; width: 38px; }
.purchase-action-menu summary::-webkit-details-marker { display: none; }
.purchase-action-menu[open] summary { background: #f0f6f5; }
.purchase-action-menu > div { background: white; border: 1px solid #dce6e4; border-radius: 12px; box-shadow: 0 8px 22px rgba(25,55,50,.12); display: grid; margin-top: 6px; min-width: 205px; padding: 7px; position: relative; z-index: 3; }
.purchase-action-menu button { background: transparent; border: 0; border-radius: 8px; color: #334b47; display: flex; gap: 9px; padding: 9px 10px; text-align: left; width: 100%; }
.purchase-action-menu button:hover { background: #f0f6f5; }
.purchase-action-menu hr { border: 0; border-top: 1px solid #edf1f0; margin: 5px; }
.purchase-action-menu .danger-action { color: #a43c35; }
.purchase-print table { border-collapse: collapse; margin: 18px 0; width: 100%; }
.purchase-print th, .purchase-print td { border: 1px solid #dce6e4; padding: 8px; text-align: left; }
@media (max-width: 720px) { .supplier-stats, .purchase-dashboard-stats { grid-template-columns: 1fr; } .supplier-table { min-width: 760px; } .purchase-form-actions { bottom: 8px; } .purchase-form-actions button { flex: 1; min-width: 0; } .pricing-grid-actions button { flex: 1; } }
