/* The quiet sage palette follows the existing workspace. Product imagery and
   a numbered, three-part order form carry the hierarchy. */
.commerce-nav{display:flex;gap:3px;margin-left:auto;margin-right:24px}.commerce-nav button{border:0;background:transparent;color:#637e72;padding:10px 15px;font-size:15px;border-radius:8px;cursor:pointer}.commerce-nav button.active{background:#e9f2ed;color:#2c6a59;font-weight:700}
.commerce-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:16px 0 32px}.commerce-heading h1{font-size:32px;color:#213e35;letter-spacing:-.7px;margin:0 0 10px}.commerce-heading p{color:#75857c;margin:0;line-height:1.7}.commerce-heading .inline-actions{flex-shrink:0;gap:10px}
.commerce-filter{display:flex;align-items:center;gap:20px;margin-bottom:22px}.commerce-filter input,.commerce-search{width:min(440px,100%);padding:13px 16px;border:1px solid #dbe5de;border-radius:9px;background:#fff;font:inherit}.commerce-filter span{color:#7a8d80}.product-pick[hidden]{display:none}.product-photo{background:#f6f8f5;aspect-ratio:1;overflow:hidden;border-radius:8px;display:flex;align-items:center;justify-content:center;width:100%}.product-photo img,.import-thumb img{width:100%;height:100%;object-fit:contain}.product-no-image{font-size:12px;color:#a1ada4}
.product-editor-photo{display:flex;gap:22px;align-items:center;margin:0 0 25px}.product-editor-photo>.product-photo{width:130px;flex-shrink:0}.product-editor-photo img{width:100%;height:100%;object-fit:contain}.import-thumb{width:70px;max-width:70px;height:70px}.import-thumb img{max-width:64px;max-height:64px}.product-picker{display:flex;flex-direction:column;gap:8px;margin-top:20px}.product-pick{border:1px solid #e1e8e1;border-radius:9px;padding:12px;display:flex;text-align:left;align-items:center;gap:18px;background:white;cursor:pointer;color:#3c5c4c}.product-pick:hover{background:#f3f8f4;border-color:#9cbcab}.product-pick .product-photo{width:70px;flex-shrink:0}.product-pick>span{flex:1}.product-pick strong{display:block;font-size:15px;line-height:1.6}.product-pick small{display:block;color:#88988c;line-height:1.8}.product-pick>b{font-size:13px;margin-right:10px}
.commerce-onboarding{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;background:#edf4ef;border:1px solid #dce9df;border-radius:12px;margin-bottom:28px}.commerce-onboarding strong{font-size:17px;color:#446b55}.commerce-onboarding p{margin:7px 0 0;color:#80947f;font-size:13px;overflow-wrap:anywhere}.sale-records{display:grid;gap:12px}.sale-record{display:flex;align-items:center;gap:25px;text-align:left;padding:22px 26px;border:1px solid #dfe7e0;border-radius:10px;background:#fff;color:#3f6754;cursor:pointer}.sale-record>span:first-child{flex:1}.sale-record strong{display:block;font-size:18px}.sale-record small{display:block;margin-top:8px;color:#86988a;font-size:13px}.sale-record>b{font-size:21px;font-weight:600}.sale-record>span:last-child{font-size:13px;color:#84998a}
.commerce-step{padding:28px 32px;background:#fff;border:1px solid #dce7df;border-radius:12px;margin:0 0 22px}.commerce-step-title{display:flex;align-items:center;gap:13px;margin-bottom:25px}.commerce-step-title>b{display:flex;align-items:center;justify-content:center;border-radius:50%;background:#eaf3ed;color:#397969;width:30px;height:30px;font-size:14px}.commerce-step-title h2{font-size:20px;margin:0;flex:1}.commerce-step-title>.btn{font-size:14px;padding:9px 14px}.commerce-step>.field{max-width:480px}.commerce-empty-step{color:#8ca08f;padding:20px 0;line-height:1.8}.sale-lines input,.sale-lines select{border:1px solid #dce5dd;border-radius:6px;padding:9px;background:#fff;font:inherit;color:#40664e;width:130px}.sale-lines input[type=date]{width:160px}.sale-lines td:first-child{min-width:190px}.sale-lines small,.sale-records small,.guide-panel td small{display:block;margin-top:6px;color:#8a9c8b;font-size:12px}.sale-confirm-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:22px;margin-top:20px;border-top:1px solid #e6ece7}.sale-confirm-bar strong{font-size:25px;color:#34715c;margin-left:12px}.sale-detail-head strong{font-size:21px}.sale-detail-head p{color:#7f9482;line-height:1.7}
@media(max-width:1100px){.commerce-nav{margin-right:10px}.commerce-nav button{padding:9px}}
@media(max-width:700px){.commerce-heading{align-items:start;flex-direction:column;margin-bottom:24px}.commerce-heading h1{font-size:26px}.commerce-step{padding:21px 18px}.commerce-step-title{flex-wrap:wrap}.commerce-step-title h2{font-size:17px}.commerce-onboarding{align-items:start;flex-direction:column;padding:20px}.sale-record{padding:18px;gap:12px}.sale-record>span:last-child{display:none}.sale-record>b{font-size:18px}.commerce-nav{order:3;width:100%;justify-content:center;margin:12px 0 0}.guide-header>div{flex-wrap:wrap}.commerce-nav button{flex:1}.commerce-filter span{white-space:nowrap}.sale-confirm-bar{flex-wrap:wrap}}

.sale-record-wrap{display:flex;align-items:center;gap:15px}.sale-record-wrap>.sale-record{flex:1;min-width:0}.sale-record-check{padding:20px 6px;cursor:pointer}.sale-record-check input{width:18px;height:18px;accent-color:#397969}

.factory-product-picker label[hidden]{display:none}.factory-product-picker>input{width:100%;box-sizing:border-box;border:1px solid #d8e4da;padding:12px;border-radius:7px;margin:12px 0;font:inherit}

.notify-factory-row{display:flex;align-items:center;gap:20px;border-bottom:1px solid #e6ece7}.notify-factory-row:last-child{border-bottom:0}.notify-factory-row>.guide-factory-row{flex:1;min-width:0;border-bottom:0}.notify-factory-row>.btn{font-size:13px;padding:12px 16px;flex-shrink:0}@media(max-width:700px){.notify-factory-row{flex-wrap:wrap;gap:0;padding-bottom:18px}.notify-factory-row>.guide-factory-row{flex-basis:100%}.notify-factory-row>.btn{margin-left:auto}}

@media(max-width:700px){.guide-brand small{display:none}}

.customer-switcher{display:flex;gap:18px;align-items:end;margin-bottom:24px}.customer-switcher>.field{width:min(440px,100%);margin:0}.customer-profile{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.customer-profile h2{font-size:24px;margin:0 0 8px}.customer-profile p{font-size:14px;line-height:1.8;color:#647e6d;margin:0;white-space:pre-line;overflow-wrap:anywhere}.customer-totals{margin-bottom:24px}.customer-charts{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.customer-charts>.guide-panel{min-width:0}.customer-chart-note{margin:8px 0 16px;font-size:13px;color:#647e6d}.customer-bar{width:100%;display:grid;grid-template-columns:minmax(95px,1.2fr) minmax(60px,1fr) auto;gap:16px;align-items:center;padding:17px 0;text-align:left;border:0;border-bottom:1px solid #e4ece6;background:transparent;color:#365e4a;cursor:pointer}.customer-bar:last-child{border-bottom:0}.customer-bar:hover{background:#f4f8f5}.customer-bar strong{font-size:14px;line-height:1.5;display:block;overflow-wrap:anywhere}.customer-bar small{display:block;font-size:12px;font-weight:400;color:#647e6d;margin-top:4px}.customer-bar>b{font-size:19px;font-weight:600;text-align:right;white-space:nowrap}.customer-bar>b small{display:inline}.customer-bar-track{display:block;height:9px;background:#edf3ef;border-radius:4px;overflow:hidden}.customer-bar-track i{display:block;height:100%;background:#397969;border-radius:4px}.customer-pending{padding:16px;background:#fff7e9;border-radius:7px;line-height:1.8;color:#805c22;font-size:14px}.customer-line-product{display:flex;gap:14px;align-items:center;min-width:210px}.customer-line-product .import-thumb{width:50px;height:50px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.customer-line-product img{width:100%;height:100%;object-fit:contain}.customer-lines td:last-child{min-width:155px}.customer-lines td{vertical-align:middle}.customer-empty p{line-height:1.8;color:#647e6d}
@media(max-width:800px){.customer-charts{grid-template-columns:1fr;gap:0}.customer-profile{align-items:start;flex-direction:column}.customer-switcher{align-items:start;flex-wrap:wrap}.customer-bar{gap:12px}.customer-profile .inline-actions{width:100%}}
.catalog-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.75rem 1rem; margin-bottom:1rem; }
.catalog-search { display:flex; align-items:center; gap:.75rem; flex:1 1 24rem; min-width:0; }
.catalog-search input { flex:1; min-width:0; max-width:27rem; }
.catalog-search > span { flex:none; color:#567063; font-size:.85rem; }
.catalog-tools { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem .4rem; }
.catalog-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap:1rem; }
.catalog-card { display:flex; flex-direction:column; gap:.85rem; min-width:0; padding:1rem; background:#fff; border:1px solid #dee8e1; border-radius:.65rem; }
.catalog-card:only-child { max-width:34rem; }
.catalog-card[hidden], #catalog-no-matches[hidden] { display:none; }
.catalog-card-top { display:grid; grid-template-columns:4.25rem minmax(0,1fr); align-items:start; gap:.85rem; }
.catalog-info h2 { font-size:1.05rem; line-height:1.4; margin:0; overflow-wrap:anywhere; }
.catalog-identifiers { display:flex; flex-wrap:wrap; gap:.15rem .65rem; margin:.25rem 0 0; color:#567063; font-size:.8rem; overflow-wrap:anywhere; }
.catalog-identifiers:empty { display:none; }
.catalog-info > small { display:block; margin:.45rem 0 0; color:#567063; font-size:.8rem; overflow-wrap:anywhere; }
.catalog-meta { display:flex; flex-wrap:wrap; gap:.2rem .85rem; margin-top:.45rem; color:#567063; font-size:.8rem; }
.catalog-meta b { color:#315e52; font-weight:600; }
.catalog-stock { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; padding:.6rem .75rem; background:#edf5ef; border-radius:.4rem; color:#2b5446; }
.catalog-stock > div + div { border-inline-start:1px solid #cfdfd5; padding-inline-start:.75rem; }
.catalog-stock dt { font-size:.8rem; }
.catalog-stock dd { margin:.1rem 0 0; font-size:1.15rem; font-weight:650; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.catalog-stock dd small { font-size:.75rem; font-weight:400; }
.catalog-card-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem; margin-top:auto; }
.catalog-card-actions .btn { font-size:.8rem; padding:.4rem .55rem; min-height:2.3rem; }
.catalog-card-actions [data-action="stock-add"] { color:#286755; border-color:#c4d8cc; background:#f3f8f5; }
.catalog-card-actions [data-action="stock-add"]:hover { background:#e6f2e9; }
