/* Automotive parts — uses the existing retail theme and shared UX vocabulary. */
[hidden]{display:none!important}
.sidebar{width:250px}
.content{max-width:1450px}
.page-header{align-items:center}
.sales-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,0.85fr);gap:20px;align-items:start}
.product-list{margin-top:16px}
.product-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--border)}
.product-row:last-child{border-bottom:0}
.product-info{min-width:0;display:flex;flex-direction:column;gap:4px}
.product-info b{font-size:13px}
.product-info span{line-height:1.5}
.product-actions{display:flex;align-items:center;gap:16px;white-space:nowrap}
.product-actions b{font-size:14px}
.search-wrap{margin-top:18px}
.search-wrap input{width:100%;height:46px;padding:0 14px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--ink)}
.checkout-panel{position:sticky;top:24px}
.checkout-panel form{display:grid;gap:13px;margin-top:16px}
.cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.cart-row>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.cart-row>div:first-child b{font-size:12px}
.cart-row>b{white-space:nowrap}
.qty-controls{display:flex;align-items:center;gap:8px}
.qty-controls .btn{padding:4px 8px;min-height:30px}
.total-row{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--border);margin-top:16px;padding-top:17px;font-size:16px}
.total-row strong:last-child{font-size:22px}
.field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:750;color:var(--ink)}
.field input,.field select{display:block;width:100%;min-height:42px;border:1px solid var(--border);border-radius:9px;padding:10px 11px;background:white;color:var(--ink);font-weight:500}
.field input:focus,.field select:focus{outline:2px solid #69cda6;outline-offset:1px}
.modal-backdrop{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(9,27,39,.64);z-index:100;padding:18px;overflow:auto}
.dialog{width:min(100%,610px);max-height:calc(100dvh - 36px);overflow:auto;border-radius:17px;background:#fff;padding:24px;box-shadow:0 16px 60px rgba(10,40,54,.22)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.dialog-head h2{font-size:21px}
.stack{display:grid;gap:15px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-footer{grid-column:1/-1}
.purchase-add{justify-content:end}
.purchase-add .btn{margin-top:auto}
.purchase-lines{border-top:1px solid var(--border);padding-top:12px}
.line-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--border);padding:12px 0}
.line-item span{flex:1}
.notice-toast{position:fixed;bottom:22px;right:22px;z-index:120;max-width:min(460px,calc(100vw - 30px));display:flex;align-items:center;gap:16px;background:var(--nav);color:#fff;border-radius:11px;padding:12px 15px;box-shadow:0 12px 38px rgba(0,0,0,.17);font-weight:650}
.notice-toast .btn{background:transparent;border-color:#53646b;color:#fff}
.receipt-paper{background:#fff;border:1px solid var(--border);border-radius:12px;padding:24px;font-size:13px}
.receipt-paper h2{font-size:21px;margin-bottom:4px}
.receipt-paper p{margin-top:9px}
.receipt-details,.receipt-item{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding:12px 0}
.receipt-details{margin-top:20px}
.modal-actions{margin-top:16px;display:flex;gap:10px;justify-content:end}
.report-card{max-width:760px}
.period-field{max-width:220px}
.report-lines{margin:22px 0}
.report-line{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--border)}
.report-line.emphasis{background:#effaf5;margin:0 -10px;padding:14px 10px;color:#086747;font-size:15px;border-radius:8px}
.table-scroll table{min-width:710px}
.table-scroll td{vertical-align:middle}
body:has(.modal-backdrop){overflow:hidden}
@media(max-width:1040px){.sales-layout{grid-template-columns:1fr}.checkout-panel{position:static}}
@media(max-width:700px){.content{padding:22px 16px 72px}.page-header{align-items:flex-start;flex-wrap:wrap}.page-header h1{font-size:25px}.cart-row{grid-template-columns:minmax(0,1fr) auto}.cart-row>b{justify-self:end}.form-grid{grid-template-columns:1fr}.form-footer{grid-column:auto}.product-actions{gap:8px}.product-row{align-items:flex-start}.dialog{padding:17px}.notice-toast{bottom:12px;right:12px}.role-select{max-width:135px}}
@media print{body *{visibility:hidden!important}.receipt-paper,.receipt-paper *{visibility:visible!important}.receipt-paper{position:absolute;top:0;left:0;width:100%;border:0;box-shadow:none}.modal-actions{display:none!important}}
