#elsamilu-workbench{font-family:Arial,Microsoft YaHei,sans-serif;color:#54424a}#elsamilu-workbench *{box-sizing:border-box}.eb-shell{max-width:1450px;margin:20px auto;background:#fffaf6;border:1px solid #e9dcd7;border-radius:14px;padding:26px}.eb-shell h1,.eb-shell h2,.eb-shell h3{color:#6a4656;line-height:1.4;margin:0}.eb-shell h1{font-size:27px}.eb-shell h2{font-size:19px}.eb-shell h3{font-size:16px}.eb-shell p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}.eb-shell button,.eb-shell a,.eb-dialog button{font-family:inherit;font-size:13px;line-height:1.5}.eb-shell button,.eb-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 14px;border:1px solid #d8c2ca;background:#fffdfb;color:#804f65;border-radius:7px;cursor:pointer}.eb-shell button:disabled,.eb-dialog button:disabled{opacity:.5;cursor:not-allowed}.eb-shell .primary,.eb-dialog .primary{background:#925b71;border-color:#925b71;color:#fff}.eb-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 0 24px;border-bottom:1px solid #eadbd5}.eb-header>div:first-child{display:flex;align-items:baseline;gap:14px}.eb-brand{font-family:Georgia,serif;font-size:35px;color:#925b71}.eb-header small{color:#967e83;font-size:12px}.eb-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.eb-actions a{display:inline-flex;gap:5px;color:#8c6679;align-items:center;text-decoration:none}.eb-shell nav{display:flex;gap:9px;padding:21px 0;flex-wrap:wrap}.eb-shell nav button{border-color:transparent;background:transparent}.eb-shell nav button[aria-current=page]{background:#f3e4e9;color:#78475f}.eb-page-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:13px 0 24px}.eb-page-title>div>p:last-child{margin:7px 0 0;color:#9a848a;font-size:11px}.eb-eyebrow{letter-spacing:2px;color:#a1848b;font-size:10px!important;margin:0 0 8px}.eb-error,.eb-success{margin:15px 0;padding:13px 16px;line-height:1.8;border-radius:7px;font-size:13px;overflow-wrap:anywhere}.eb-error{color:#963c4d;background:#f9e4e4}.eb-success{color:#65724d;background:#edf1e3}.eb-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:24px}.eb-metrics article{background:#f6ecec;padding:19px 23px;border-radius:9px}.eb-metrics span{font-size:12px;color:#92717d}.eb-metrics strong{display:block;margin-top:9px;font-size:29px;font-weight:500;color:#744959}.eb-metrics small{font-size:12px;margin-left:8px}.eb-panel{border:1px solid #e6d8d4;background:#fffdfa;border-radius:10px;margin-bottom:22px;overflow:hidden}.eb-filters{display:flex;gap:14px;flex-wrap:wrap;padding:20px;border-bottom:1px solid #e8dcd6;align-items:flex-end}.eb-shell label,.eb-dialog label{display:grid;gap:7px;font-size:12px;color:#7c626e}.eb-shell input,.eb-shell select,.eb-shell textarea,.eb-dialog input,.eb-dialog select,.eb-dialog textarea{font-family:inherit;width:100%;padding:10px 11px;font-size:13px;background:#fff;border:1px solid #dbcbd1;border-radius:6px;color:#604852;line-height:1.5;max-width:100%}.eb-filters label{flex:1;min-width:120px}.eb-shell .eb-check,.eb-dialog .eb-check{display:flex;gap:8px;align-items:center}.eb-shell input[type=checkbox],.eb-dialog input[type=checkbox],.eb-dialog input[type=radio]{width:17px;height:17px;accent-color:#925b71;flex-shrink:0}.eb-scroll{overflow:auto}.eb-shell table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap;text-align:center}.eb-shell table th,.eb-shell table td{padding:12px;border-bottom:1px solid #eddfda;vertical-align:middle}.eb-shell table th{font-weight:500}.eb-shell thead{background:#f7edec;color:#8a6a78}.eb-shell table small{display:block;font-size:10px;color:#93717f;white-space:normal}.eb-product{display:flex;align-items:center;gap:12px;min-width:100px}.eb-product img,.eb-image-missing{width:48px;height:58px;object-fit:contain;background:#fff;border-radius:5px;border:1px solid #ecdfd8}.eb-image-missing{font-size:9px;color:#ab9399;display:grid;place-content:center;line-height:1.8}.eb-shell .eb-quantity{min-width:33px;padding:7px;display:inline-grid;gap:2px;background:#f6e9ed;border-color:#efdee5;font-size:12px}.eb-quantity small{font-size:9px}.eb-pagination{display:flex;align-items:center;gap:11px;padding:15px 20px;font-size:12px}.eb-pagination>span:first-child{margin-right:auto}.eb-note{font-size:11px!important;line-height:1.8;color:#9b808a;margin:15px 20px}.eb-empty{text-align:center;padding:35px;color:#9b7e88}.eb-cards{padding:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.eb-cards article{border:1px solid #e6d7d7;border-radius:9px;padding:20px}.eb-tags{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.eb-tags span{display:inline-block;font-size:10px;padding:5px 7px;border-radius:4px;background:#f3e6eb;color:#916379}.eb-tags .disabled{background:#f2efeb;color:#9f9293}.eb-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px;border-bottom:1px solid #e8dcd6}.eb-settings-form{padding:22px;display:grid;gap:14px}.eb-settings-form>.primary,.eb-settings-form>button{justify-self:start}.eb-settings-form .eb-note{margin:0}.eb-import-preview{background:#f7edee;padding:18px;border-radius:8px}.eb-history{padding:12px 20px;border-bottom:1px solid #efdfdc;margin:0}.eb-dialog{font-family:Arial,Microsoft YaHei,sans-serif;width:min(590px,calc(100vw - 30px));max-height:90vh;overflow:auto;background:#fffaf6;color:#58424e;border:1px solid #d9c4cd;border-radius:13px;padding:25px;box-shadow:0 22px 90px #57404e40}.eb-dialog::backdrop{background:#41303966}.eb-dialog .dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.eb-dialog h2{font-size:20px;color:#744a5e;margin:0}.eb-dialog label{margin:15px 0}.eb-dialog p{font-size:13px;line-height:1.9;overflow-wrap:anywhere}.eb-dialog fieldset{border:1px solid #e4d5da;border-radius:7px;padding:12px 16px;margin:20px 0}.eb-dialog legend{font-size:12px;color:#846276}.eb-dialog .eb-note{margin:14px 0;font-size:11px}.eb-right{float:right}.eb-cancel{padding:13px;background:#f9eded;border-radius:8px}.eb-draft-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #e5d7d8}.eb-draft-row>span{flex:1}.eb-draft-row small{display:block;margin-top:5px;font-size:11px;color:#9f7c8b}.eb-dialog .export-scope label{display:flex;gap:10px;align-items:flex-start}.eb-dialog .export-scope small{display:block;margin-top:6px;font-size:11px;line-height:1.8;color:#9d7f8e}.eb-dialog .export-images{display:flex;align-items:center;gap:10px}.eb-dialog .export-summary{background:#f4e8ed;padding:16px;border-radius:7px;font-size:13px}.eb-dialog .export-summary small,.eb-dialog .field-note{font-size:11px;line-height:1.8;color:#927181}.eb-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.eb-dialog .form-error{color:#a8404e;padding:9px;background:#f9e1e6}.eb-shell :focus-visible,.eb-dialog :focus-visible{outline:2px solid #925b71;outline-offset:3px}@media(max-width:760px){.eb-shell{padding:15px;margin:10px;border-radius:9px}.eb-header{align-items:flex-start;padding-bottom:15px}.eb-header>div:first-child{display:block}.eb-header small{display:block;margin-top:5px}.eb-brand{font-size:29px}.eb-shell nav{gap:2px;padding:15px 0}.eb-shell nav button{font-size:11px;padding:8px}.eb-page-title{align-items:flex-start;flex-direction:column;margin:10px 0 20px}.eb-shell h1{font-size:23px}.eb-metrics{grid-template-columns:1fr;gap:9px}.eb-metrics article{display:flex;align-items:center;justify-content:space-between;padding:13px 16px}.eb-metrics strong{margin:0;font-size:24px}.eb-filters{padding:13px;gap:10px}.eb-filters label{min-width:120px}.eb-cards{grid-template-columns:1fr;padding:13px;gap:12px}.eb-cards article{padding:15px}.eb-shell table th,.eb-shell table td{padding:10px}.eb-settings-form,.eb-panel-heading{padding:16px}.eb-dialog{padding:20px}.eb-dialog h2{font-size:18px}.eb-header .eb-actions button,.eb-header .eb-actions a{font-size:11px}.eb-note{margin:13px}.eb-pagination{padding:13px;font-size:11px;gap:8px}.eb-pagination button{padding:7px 10px}}

/* Keep each style identifiable while viewing later size/quantity columns. */
.eb-scroll:has(> .eb-stock-grid){isolation:isolate}
.eb-shell .eb-stock-grid,.cs-dialog .eb-stock-grid{border-collapse:separate;border-spacing:0}
.eb-stock-grid>thead>tr>:first-child,.eb-stock-grid>tbody>tr>:first-child:not([colspan]){position:sticky;left:0;z-index:2;box-shadow:1px 0 0 #dfcbd2,5px 0 8px -6px #78475f70;background:#fffdfa;background-clip:padding-box}
.eb-stock-grid>thead>tr>:first-child{z-index:3;background:#f7edec}
.cs-dialog .eb-stock-grid>thead{z-index:4}
.cs-dialog .eb-stock-grid>tbody>tr>:first-child{background:#fffaf6}
@media(max-width:760px){.eb-stock-grid .eb-product{min-width:96px;gap:8px}.eb-stock-grid .eb-product img,.eb-stock-grid .eb-image-missing{width:40px;height:50px;flex-shrink:0}}
@media print{.eb-stock-grid>thead>tr>:first-child,.eb-stock-grid>tbody>tr>:first-child{position:static;box-shadow:none}}

/* Order totals, warehouse allocation and private owner notes. */
.eb-order-line{padding:12px 0;border-bottom:1px solid #e5d1d8}.eb-order-line-heading{display:flex;justify-content:space-between;gap:16px}.eb-order-line small,.eb-order-total small,.eb-supply{display:block;font-size:13px;line-height:1.6;margin-top:5px}.eb-order-total{background:#f6edf0;border:1px solid #e5d1d8;border-radius:10px;padding:14px;margin:16px 0}.eb-order-total b{font-size:18px}.eb-allocation,.eb-order-notes{border-top:1px solid #e5d1d8;padding-top:14px;margin-top:18px}.eb-allocation input{max-width:180px}.eb-allocation>button{display:block;margin-top:14px}.eb-pre-wrap{white-space:pre-wrap;overflow-wrap:anywhere}.eb-order-notes textarea{width:100%;min-height:84px;box-sizing:border-box}.eb-order-line,.eb-order-total,.eb-allocation{overflow-wrap:anywhere}


/* Compact order cards; notes remain fully expanded. */
.eb-order-cards{align-items:start;gap:16px}
.eb-order-cards .eb-order-card{padding:18px;min-width:0;background:#fffdfb}
.eb-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px 16px;flex-wrap:wrap}
.eb-card-head h3{font-size:15px;overflow-wrap:anywhere}
.eb-card-head .eb-tags{margin:0;gap:5px}
.eb-card-head .eb-tags span{padding:4px 6px}
.eb-card-meta{display:flex;justify-content:space-between;gap:4px 14px;flex-wrap:wrap;font-size:12px;line-height:1.6;margin-top:9px;color:#816775}
.eb-order-card .eb-order-total{padding:10px 12px;margin:12px 0;border-radius:7px}
.eb-order-card .eb-order-total b{font-size:16px;line-height:1.5}
.eb-order-card .eb-order-total small{font-size:11px;line-height:1.6;margin-top:2px;color:#826875}
.eb-shell .eb-order-grid{width:100%;table-layout:fixed;font-size:12px;white-space:normal}
.eb-shell .eb-order-grid th,.eb-shell .eb-order-grid td{padding:9px 4px;text-align:center;line-height:1.5;overflow-wrap:anywhere}
.eb-shell .eb-order-grid tbody th{font-weight:600;color:#684353}
.eb-shell .eb-order-grid thead{background:#f8f1f2}
.eb-shell .eb-order-grid thead th{font-size:11px}
.eb-stock-count,.eb-make-count{display:inline-block;min-width:25px;padding:1px 5px;border-radius:4px;font-weight:600;font-variant-numeric:tabular-nums}
.eb-stock-count{background:#edf2e9;color:#526345}
.eb-make-count{background:#f7e9ee;color:#864f64}
.eb-count-zero{color:#a6949d}
.eb-shell .eb-card-allocation-note{font-size:11px;line-height:1.6;margin:7px 0 0;color:#826875}
.eb-card-notes{display:grid;gap:10px;border:1px solid #e9dce0;border-radius:7px;padding:11px 12px;margin-top:12px;background:#fdf7f4;min-width:0}
.eb-card-note strong{display:block;font-size:11px;line-height:1.6;color:#85556a}
.eb-shell .eb-card-note p{white-space:pre-wrap;overflow-wrap:anywhere;margin:3px 0 0;font-size:13px;line-height:1.7}
.eb-card-private:not(:first-child){border-top:1px dashed #dfcbd3;padding-top:9px}
.eb-card-note-entry+ .eb-card-note-entry{margin-top:9px}
.eb-card-note-entry small{display:block;margin-top:2px;color:#927984;font-size:10px;line-height:1.6}
.eb-shell .eb-card-no-note{font-size:11px;color:#a28b94;margin:10px 0 0}
.eb-card-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #eee1e4;margin-top:12px;padding-top:11px}
.eb-card-footer small{font-size:10px;color:#927984;line-height:1.6}
.eb-card-footer button{padding:7px 12px}
@media(max-width:1050px){.eb-order-cards{grid-template-columns:1fr}}
@media(max-width:760px){.eb-order-cards .eb-order-card{padding:13px}.eb-card-head{gap:8px}.eb-card-head h3{font-size:14px}.eb-card-meta{font-size:11px}.eb-shell .eb-order-grid th,.eb-shell .eb-order-grid td{padding:8px 3px}.eb-card-notes{padding:10px}.eb-order-card .eb-order-total b{font-size:15px}}

.eb-lead-edit{display:flex;flex-direction:column;align-items:center;gap:6px;white-space:nowrap}.eb-lead-edit button{padding:4px 10px;min-height:32px;font-size:12px}.eb-product-editor .eb-product-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.eb-product-editor .eb-product-sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.eb-product-editor input,.eb-product-editor select{max-width:100%;box-sizing:border-box}.eb-product-editor h3{margin:18px 0 8px}.eb-product-editor .eb-check{display:flex;align-items:center;gap:8px}.eb-product-editor .eb-check input{width:auto}.eb-product-upload-preview{width:96px;height:120px;object-fit:contain;border-radius:8px}.eb-product-edit-link{display:inline-flex;align-items:center;border:1px solid #c9aab8;border-radius:8px;padding:10px 16px;color:inherit;text-decoration:none}@media(max-width:600px){.eb-product-editor .eb-product-fields{grid-template-columns:1fr}.eb-product-editor .eb-product-sizes{grid-template-columns:repeat(3,minmax(0,1fr))}}

.eb-picture-picker{margin:0 0 22px;border:1px solid #e5d4da;border-radius:12px;background:#fffdfa;overflow:hidden}
.eb-picture-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px}
.eb-picture-heading h2{margin:0;font-size:18px;line-height:1.5}.eb-picture-heading p{margin:3px 0 0;font-size:13px;color:#947987}
.eb-picture-heading button{white-space:nowrap;font-size:13px;padding:7px 12px}
.eb-picture-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:10px;max-height:300px;overflow-y:auto;overscroll-behavior-y:contain;padding:3px 20px 18px;scrollbar-gutter:stable;align-content:start}
.eb-shell .eb-picture-tile{display:block;position:relative;aspect-ratio:4/5;min-width:0;width:100%;height:auto;padding:3px;border:2px solid transparent;border-radius:8px;overflow:hidden;cursor:pointer;background:#f5edf0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23b799a6' stroke-width='1.2'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3Cpath d='m3 17 5-5 4 4 3-3 6 6'/%3E%3C/svg%3E") center/28px no-repeat}
.eb-shell .eb-picture-tile img{display:block;width:100%;height:100%;object-fit:contain;border-radius:4px;background:#fffdfa}.eb-shell .eb-picture-tile img:not([src]),.eb-shell .eb-picture-tile img[hidden]{display:none}
.eb-shell .eb-picture-tile:hover{border-color:#c8a6b6}.eb-shell .eb-picture-tile[aria-pressed=true]{border-color:#925a76;box-shadow:0 0 0 1px #925a76 inset}
.eb-shell .eb-picture-tile:focus-visible{outline:3px solid #75455f;outline-offset:1px}
.eb-stock-target{scroll-margin-top:56px}.eb-stock-target:focus{outline:none}.eb-stock-grid tr.eb-stock-selected>th,.eb-stock-grid tr.eb-stock-selected>td{background:#fbf0f5}
.eb-show-all-stock{align-self:end;white-space:nowrap}
@media(max-width:600px){.eb-picture-heading{padding:14px 12px;gap:8px;flex-wrap:wrap}.eb-picture-grid{grid-template-columns:repeat(auto-fill,minmax(62px,1fr));padding:2px 12px 14px;gap:8px;max-height:260px}.eb-picture-heading h2{font-size:17px}.eb-stock-target{scroll-margin-top:64px}}
/* Prices remain in the sticky product cell, visible beside the stock sizes. */
.eb-stock-grid .eb-product{gap:12px;align-items:center}
.eb-product-info{min-width:0;text-align:left}
.eb-product-style{display:block;margin-bottom:7px;font-size:14px}
.eb-product-prices{display:grid;gap:4px;font-size:12px;font-weight:400;line-height:1.45;white-space:normal}
.eb-product-prices>span{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.eb-product-prices>span>span{color:#907582}
.eb-product-prices strong{font-weight:600;font-variant-numeric:tabular-nums;color:#694555}
.eb-shell .eb-stock-grid th:first-child{min-width:270px;width:270px}
.eb-stock-price-controls{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid #e8dcd6;background:#fcf6f5}
.eb-stock-price-controls label{min-width:210px}
.eb-stock-price-controls p{flex:1;min-width:180px;margin:0;color:#8b6d7b;font-size:12px;line-height:1.65}
@media(max-width:760px){.eb-shell .eb-stock-grid th:first-child{min-width:190px;width:190px}.eb-stock-grid .eb-product{gap:8px}.eb-stock-grid .eb-product img{width:44px;height:58px}.eb-product-prices{font-size:11px}.eb-product-prices>span{gap:2px 6px}.eb-product-style{margin-bottom:5px}.eb-stock-price-controls{padding:12px;gap:10px}.eb-stock-price-controls label{width:100%}}

