:root{font-family:"Segoe UI","Helvetica Neue",Arial,sans-serif;color:#1a1a1a;background:#f4f4f4;--vow-ink:#1a1a1a;--vow-charcoal:#2c2c2c;--vow-silver:#9a9a9a;--vow-silver-soft:#c8c8c8;--vow-mist:#f4f4f4;--vow-paper:#ffffff;--vow-line:#e2e2e2;--vow-accent:#8a8a8a;--vow-sidebar:#1c1c1c;--vow-sidebar-deep:#111111;--navy:#1a1a1a;--gold:#8a8a8a;--muted:#7a7a7a;--line:#e2e2e2}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}[hidden]{display:none!important}.layout{display:flex;min-height:100vh}.sidebar{width:252px;flex:0 0 252px;display:flex;flex-direction:column;padding:27px 17px 20px;background:linear-gradient(180deg,var(--vow-sidebar) 0%,var(--vow-sidebar-deep) 100%);color:#d8d8d8}.brand{display:flex;align-items:center;gap:12px;padding:0 7px 29px;border-bottom:1px solid #ffffff16;color:#fff;text-decoration:none}.brand-mark{width:39px;height:39px;display:grid;place-items:center;border-radius:11px 11px 11px 3px;background:var(--vow-charcoal);font:italic 27px Georgia,serif}.brand-logo-mark{display:block;width:auto;height:30px;object-fit:contain}.brand strong,.brand em{display:block}.brand strong{font-size:11px;letter-spacing:.13em}.brand strong small{font-weight:500;font-size:9px}.brand em{font-style:normal;color:var(--vow-silver);font-weight:700;font-size:7px;letter-spacing:.19em;margin-top:5px}.branch-card{display:flex;align-items:center;gap:10px;padding:11px;margin:22px 0 25px;border:1px solid #ffffff1b;border-radius:8px;background:#ffffff08}.branch-symbol{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;background:#ffffff14;color:var(--vow-silver-soft);font-size:10px;font-weight:800}.branch-card small,.branch-card strong{display:block}.branch-card small{font-size:7px;letter-spacing:.14em;color:#8e9bad;margin-bottom:5px}.branch-card strong{font-size:11px;color:#fff}.nav-caption{margin:0 10px 10px;color:#75849a;font-size:8px;font-weight:800;letter-spacing:.18em}.nav-item{min-height:42px;display:flex;align-items:center;gap:12px;margin:3px 0;padding:0 11px;border-radius:6px;text-decoration:none;color:#b6c0ce;font-size:11px}.nav-item.active{color:#fff;background:#ffffff12;box-shadow:inset 2px 0 var(--gold)}.nav-item:first-letter{color:var(--vow-silver)}.muted-item{opacity:.48}.nav-item small{margin-left:auto;font-size:7px;letter-spacing:.08em}.management-caption{margin-top:30px}.sidebar-bottom{margin-top:auto;padding:12px 7px 0;border-top:1px solid #ffffff15;color:#9eacbd;font-size:9px}.sidebar-bottom small{display:block;margin:12px 0 0 15px;color:#6f7d91;font-size:7px;letter-spacing:.14em}.online-dot{display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#48a47e}.main{min-width:0;flex:1}.topbar{height:75px;padding:0 38px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.crumb{font-size:11px;color:#9098a4}.crumb span{padding:0 9px;color:var(--gold)}.crumb strong{color:#394456}.top-actions{display:flex;align-items:center;gap:22px}.online-label{font-size:9px;color:#788392;white-space:nowrap}.online-label i{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#3b9a72}.user-chip{display:flex;align-items:center;gap:9px;padding-left:19px;border-left:1px solid var(--line)}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#f3ecdf;color:#8c6e37;font-size:10px;font-weight:800}.user-chip strong,.user-chip small{display:block}.user-chip strong{font-size:10px;color:#394456}.user-chip small{font-size:8px;color:#929aa5;margin-top:4px}.logout,.secondary-button{padding:8px 12px;border:1px solid #e2e5e9;border-radius:5px;background:#fff;color:#657081;font-size:10px;text-decoration:none}.logout:hover,.secondary-button:hover{border-color:var(--gold);color:#26364e}.content{max-width:1440px;margin:auto;padding:34px 38px 22px}.heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.eyebrow{margin:0 0 8px;color:var(--gold);font-size:9px;letter-spacing:.17em;font-weight:800}.heading-row h1{margin:0 0 8px;color:var(--navy);font-size:29px;letter-spacing:-.04em}.subheading{margin:0;color:var(--muted);font-size:11px;line-height:1.6}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:40px;padding:0 16px;border:0;border-radius:6px;background:var(--navy);color:white;font-size:10px;font-weight:700}.primary-button:hover{background:#263854}.primary-button:disabled{opacity:.6;cursor:wait}.metric-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}.metric{display:flex;align-items:center;gap:13px;padding:17px;background:#fff;border:1px solid var(--line);border-radius:8px}.metric-icon{width:35px;height:35px;flex:0 0 35px;display:grid;place-items:center;border-radius:8px;background:#f6f0e5;color:#a27e43;font-size:17px}.metric-icon.branch{background:#edf3f8;color:#54789d}.metric-icon.status{background:#edf6f1;color:#4e8c71}.metric small,.metric strong,.metric em{display:block}.metric small{font-size:7px;font-weight:800;letter-spacing:.12em;color:#929aa5}.metric strong{margin:6px 0 3px;font-size:21px;color:var(--navy)}.metric em{font-style:normal;font-size:8px;color:#9aa1ab}.panel{background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 2px 8px #18253a05}.catalogue-heading,.panel-title{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 21px}.catalogue-heading h2,.panel-title h2{margin:0 0 6px;color:var(--navy);font-size:16px}.catalogue-heading .eyebrow,.panel-title .eyebrow{margin-bottom:6px;font-size:8px}.table-scroll{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}thead{background:#fafbfc}th{padding:12px 14px;border-top:1px solid #f0f1f3;border-bottom:1px solid #eef0f3;color:#969eaa;text-align:left;font-size:7px;letter-spacing:.11em;font-weight:800}td{padding:14px;border-bottom:1px solid #f0f1f3;color:#526072;font-size:10px}td:first-child{color:#997a48;font-weight:800}.right{text-align:right}.product-name{color:#354257;font-weight:700}.category-pill{display:inline-block;padding:4px 7px;border-radius:4px;background:#f2f4f6;color:#758194;font-size:8px}.empty-cell{text-align:center;padding:40px 15px;color:#929ba7!important;font-weight:400!important}.table-foot{display:flex;justify-content:space-between;gap:18px;padding:12px 20px;color:#9aa2ad;font-size:8px}.form-panel{margin-bottom:20px;padding-bottom:3px}.panel-title{padding-bottom:13px}.icon-button{width:30px;height:30px;border:1px solid var(--line);border-radius:5px;background:#fff;color:#7b8492;font-size:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:0 21px}.field{display:grid;gap:7px;font-size:9px;color:#535f70;font-weight:700}.field span b{color:#ae5d50}.field input,.field select{height:40px;width:100%;padding:0 11px;border:1px solid #dfe2e8;border-radius:5px;outline:none;background:#fff;color:#354257;font-size:10px}.field input:focus,.field select:focus{border-color:var(--gold);box-shadow:0 0 0 3px #8a8a8a1c}.field input:disabled,.field input:read-only{background:#f6f7f9;color:#8992a0}.span-2{grid-column:span 2}.form-note{margin:15px 21px;padding:10px 12px;border-radius:5px;background:#f8f5ef;color:#877653;font-size:9px}.form-note span{margin-right:5px}.form-actions{display:flex;justify-content:flex-end;gap:9px;padding:13px 21px 17px;border-top:1px solid #f0f1f3}.notice{margin-bottom:16px;padding:11px 14px;border:1px solid #cfe6d8;border-radius:6px;background:#eff8f2;color:#347451;font-size:10px}.notice.error{border-color:#efcfcc;background:#fff3f1;color:#a0453c}.footer,.vow-site-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px 28px;margin-top:28px;padding-top:18px;border-top:1px solid var(--vow-line);color:#7a7a7a;font-size:11px;line-height:1.55;letter-spacing:0}.footer b{padding:0 4px;color:var(--gold)}.vow-site-footer-contact p{margin:0 0 6px}.vow-site-footer a{color:var(--vow-charcoal);text-decoration:none}.vow-site-footer a:hover{text-decoration:underline}.vow-site-footer .vow-quicklinks-label{margin:0 0 8px;font-size:9px;letter-spacing:.16em;font-weight:800;color:var(--vow-silver);text-transform:uppercase}.vow-quicklinks{display:flex;flex-wrap:wrap;gap:12px}.vow-quicklinks a{color:var(--vow-charcoal);text-decoration:none;font-size:11px;font-weight:600;border-bottom:1px solid transparent}.vow-quicklinks a:hover{border-bottom-color:var(--vow-silver)}@media(max-width:950px){.sidebar{width:215px;flex-basis:215px}.topbar{padding:0 22px}.content{padding:27px 22px}.top-actions{gap:12px}}@media(max-width:700px){.sidebar{width:60px;flex-basis:60px;padding:18px 7px}.brand{justify-content:center;padding:0 0 20px}.brand>span:last-child,.branch-card>span:last-child,.nav-caption,.muted-item,.sidebar-bottom{display:none}.brand-logo-mark{height:22px}.branch-card{justify-content:center;padding:6px;margin:16px 0}.nav-item{justify-content:center;font-size:0;padding:0}.nav-item span{display:none}.nav-item:first-letter{font-size:17px}.topbar{height:60px;padding:0 12px}.online-label,.user-chip>span:last-child,.logout{display:none}.user-chip{padding-left:10px}.content{padding:22px 12px}.heading-row{align-items:flex-start;flex-direction:column}.metric-row{grid-template-columns:1fr}.metric{padding:12px}.form-grid{grid-template-columns:1fr;padding:0 13px}.span-2{grid-column:span 1}.panel-title,.catalogue-heading{padding:15px 13px}.form-note{margin:13px}.form-actions{padding:12px 13px}.table-foot{padding:11px 13px}.footer{font-size:7px}}
.form-section{grid-column:span 2;display:flex;align-items:center;gap:10px;margin-top:8px;padding:8px 0 10px;border-bottom:1px solid #eee8dc;color:#78613a;font-size:8px;font-weight:800;letter-spacing:.16em}.form-section span{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#f6f0e5;color:#9e7a3f;font-size:8px}.field textarea{width:100%;min-height:58px;padding:10px 11px;border:1px solid #dfe2e8;border-radius:5px;resize:vertical;font:inherit;font-size:10px;color:#354257;outline:none}.field textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px #8a8a8a1c}@media(max-width:700px){.form-section{grid-column:span 1}}

.material-editor{margin:10px 0 4px;padding:17px;border:1px solid #e8e1d4;border-radius:8px;background:#fcfbf8}.material-editor-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}.material-editor-head h3{margin:0 0 5px;font-size:15px;color:#202a3a}.material-rows{display:grid;gap:10px}.material-row{padding:13px;border:1px solid #e7e8eb;border-radius:7px;background:#fff}.material-row-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:12px}.material-row-head>.material-field{max-width:320px;flex:1}.material-field{display:grid;gap:6px;font-size:9px;font-weight:700;color:#535f70}.material-field>span{font-size:9px}.material-field input,.material-field select{height:38px;min-width:0;width:100%;padding:0 10px;border:1px solid #dfe2e8;border-radius:5px;background:#fff;color:#354257;font:inherit;font-size:10px}.material-field input:disabled{background:#f6f7f9;color:#8a929e}.material-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.remove-material{height:36px;padding:0 10px;border:1px solid #e4d5d0;border-radius:5px;background:#fff;color:#9a594b;font-size:9px}.material-line-cost{margin-top:10px;padding-top:9px;border-top:1px solid #f0f1f3;color:#727d8b;font-size:10px}.material-line-cost strong{color:#27364a}.material-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:13px}.material-totals>div{padding:11px;border-radius:6px;background:#fff;border:1px solid #ece8df}.material-totals small,.material-totals strong{display:block}.material-totals small{font-size:8px;color:#858e9a;line-height:1.4}.material-totals strong{margin-top:6px;font-size:14px;color:#1b293e}.material-totals>div:nth-child(2) strong{color:#9c7940}.material-totals>div:nth-child(3) strong{color:#2e7658}.material-totals>div:nth-child(4) strong{color:#223b65}.material-help{margin:11px 0 0;color:#858e9a;font-size:9px;line-height:1.6}.text-button{margin-left:12px;padding:5px 9px;border:1px solid #e6dfd2;border-radius:5px;background:#fff;color:#876b3d;font-size:9px;font-weight:700;letter-spacing:0}.stone-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:14px;border:1px dashed #ddd5c5;border-radius:7px;background:#fdfcf9}.field-help{font-size:8px;color:#8e97a3;font-weight:400}.form-section{align-items:center}.form-section .text-button{margin-left:auto}@media(max-width:850px){.material-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.material-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.material-fields,.material-totals,.stone-details{grid-template-columns:1fr}.material-editor-head{align-items:flex-start;flex-direction:column}.material-row-head{align-items:flex-start;flex-direction:column}.material-row-head>.material-field{max-width:none;width:100%}.form-section .text-button{margin-left:0}}

.price-cell{font-variant-numeric:tabular-nums;font-weight:700;color:#29384e;white-space:nowrap}.table-scroll table{min-width:1120px}

.production-stone-board{margin:0 0 12px;border:1px solid #e4d7bc;border-radius:8px;background:#fffdf8;overflow:hidden}
.production-stone-caption{display:flex;gap:12px;align-items:baseline;padding:10px 12px;background:#1c1c1c;color:#f4f4f4}
.production-stone-caption strong{font-size:11px;letter-spacing:.08em}
.production-stone-caption span{color:#d9c7a2;font-size:10px;line-height:1.4}
.production-stones{min-width:1020px;table-layout:fixed;width:100%}
.production-stones th{background:#f7f1e4}
.production-stones td{padding:6px;overflow:hidden;max-width:0;vertical-align:middle}
.production-stones input,.production-stones select{height:30px;width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:0 6px;border:1px solid #e1d5bf;border-radius:4px;background:#fff;font-size:11px}
.production-stones input[readonly]{background:#f6f3ec;color:#5d6b7c}
/* Edit-row: keep controls inside cells; stack Kaynak selects so they never bleed into Cins/Renk */
.stone-edit-cell{min-width:0;overflow:hidden}
.stone-edit-cell > input,
.stone-edit-cell > select{
  display:block;
  width:0;
  min-width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.stone-edit-source-cell{overflow:hidden;white-space:normal}
.stone-edit-source-stack{display:flex;flex-direction:column;gap:4px;min-width:0;max-width:100%;width:100%;overflow:hidden}
.stone-edit-source-stack select{
  display:block;
  width:0;
  min-width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.card-diamond-stock .production-stones th:nth-child(1),
.card-diamond-stock .production-stones td:nth-child(1){width:52px}
.card-diamond-stock .production-stones th:nth-child(2),
.card-diamond-stock .production-stones td:nth-child(2){width:78px}
.card-diamond-stock .production-stones th:nth-child(3),
.card-diamond-stock .production-stones td:nth-child(3){width:168px}
.card-diamond-stock .production-stones th:nth-child(4),
.card-diamond-stock .production-stones td:nth-child(4),
.card-diamond-stock .production-stones th:nth-child(5),
.card-diamond-stock .production-stones td:nth-child(5),
.card-diamond-stock .production-stones th:nth-child(6),
.card-diamond-stock .production-stones td:nth-child(6){width:88px}
.card-diamond-stock .production-stones th:nth-child(7),
.card-diamond-stock .production-stones td:nth-child(7),
.card-diamond-stock .production-stones th:nth-child(8),
.card-diamond-stock .production-stones td:nth-child(8){width:64px}
.card-diamond-stock .production-stones th:nth-child(9),
.card-diamond-stock .production-stones td:nth-child(9){width:72px}
.card-diamond-stock .production-stones th:nth-child(10),
.card-diamond-stock .production-stones td:nth-child(10){width:78px}
.card-diamond-stock .production-stones th:nth-child(11),
.card-diamond-stock .production-stones td:nth-child(11){width:200px;overflow:visible;max-width:none}
.card-diamond-stock .production-stones .stone-row-actions{flex-wrap:nowrap;min-width:0}
.charge-lines-table{table-layout:auto}
.charge-lines-table td{max-width:none;overflow:visible}
.stone-line-code{font-weight:800;color:#8d6840;letter-spacing:.04em;white-space:nowrap}
.pricing-settings{margin:12px 0;padding:17px;border:1px solid #e8e1d4;border-radius:8px;background:#fcfbf8}
.pricing-rules-list{display:grid;gap:9px}
.pricing-rule-row{display:grid;grid-template-columns:100px minmax(130px,1fr) minmax(130px,1fr) auto;align-items:end;gap:12px;padding:12px;border:1px solid #e7e8eb;border-radius:7px;background:#fff}
.pricing-rule-row>strong{padding-bottom:12px;color:#26354a;font-size:10px;letter-spacing:.08em}
@media(max-width:700px){.pricing-rule-row{grid-template-columns:1fr 1fr}.pricing-rule-row>strong{grid-column:span 2}}

/* Fast-entry GOLD material card */
.gold-quick-fields{display:grid;grid-template-columns:1.1fr 1.1fr 1fr;gap:12px;align-items:end;width:100%}
.gold-quick-fields .material-field{min-width:0}
.gold-quick-fields .material-field select,.gold-quick-fields .material-field input{height:44px;font-size:13px;font-weight:700}
.gold-advanced{margin-top:10px;border-top:1px solid #eee8dc;padding-top:8px}
.gold-advanced summary{cursor:pointer;color:#8c744a;font-size:9px;font-weight:700}
.gold-advanced-body{padding:10px 0}
.gold-advanced-body .material-field{max-width:240px}
.material-empty{color:#8b929c;font-size:9px;padding:9px 0}
.material-row{margin-bottom:8px}
.material-row-head{align-items:end}
.material-row-head .material-field select{height:40px}
.material-totals{margin-top:16px}
@media(max-width:600px){.gold-quick-fields{grid-template-columns:1fr 1fr}.gold-quick-fields .material-field:last-child{grid-column:span 2}}

.gold-product-card{padding:18px;border:1px solid #e8e1d4;border-radius:9px;background:#fcfbf8}
.gold-product-identity{padding:3px 2px 18px}
.gold-card-heading{margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid #eee8dc}
.gold-card-heading h3{margin:0;color:#202a3a;font-size:17px}
.gold-identity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.gold-description-field{grid-column:span 2}
.gold-identity-grid .field input,.gold-identity-grid .field select{height:42px}
.gold-identity-grid .field textarea{min-height:58px}
.gold-product-card #goldMaterialsSection{margin:0;padding:16px;border-color:#e5dfd2;background:#fff}
.gold-product-card .material-totals{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:850px){.gold-identity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.gold-identity-grid{grid-template-columns:1fr}.gold-description-field{grid-column:span 1}.gold-product-card{padding:12px}.gold-product-card .material-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Focused, compact desktop product entry */
.content.product-entry-mode{padding-top:10px;padding-bottom:8px}
.content.product-entry-mode>.heading-row,
.content.product-entry-mode>.metric-row,
.content.product-entry-mode>.catalogue-panel,
.content.product-entry-mode>#pricingSettingsPanel,
.content.product-entry-mode>.footer{display:none!important}
.content.product-entry-mode>#notice{margin:0 0 6px}
.content.product-entry-mode>#productFormPanel{margin:0;box-shadow:none;border-color:#e2e4e8}
.content.product-entry-mode>#productFormPanel>.panel-title{padding:8px 14px 6px}
.content.product-entry-mode .panel-title .eyebrow{display:none}
.content.product-entry-mode .panel-title h2{font-size:14px;margin:0}
.content.product-entry-mode .panel-title .subheading{display:none}
.content.product-entry-mode .icon-button{width:26px;height:26px}
.content.product-entry-mode .gold-product-card{padding:10px 12px;border-radius:7px}
.content.product-entry-mode .gold-product-identity{padding:0 0 9px}
.content.product-entry-mode .gold-card-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px;padding:0 0 6px}
.content.product-entry-mode .gold-card-heading .eyebrow{margin:0;font-size:8px}
.content.product-entry-mode .gold-card-heading h3{font-size:14px}
.content.product-entry-mode .gold-identity-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px 10px}
.content.product-entry-mode .gold-identity-grid .field{gap:3px;font-size:8px}
.content.product-entry-mode .gold-identity-grid .field input,
.content.product-entry-mode .gold-identity-grid .field select{height:32px;padding:0 8px;font-size:9px}
.content.product-entry-mode .gold-description-field{grid-column:span 2}
.content.product-entry-mode .gold-identity-grid .field textarea{height:32px;min-height:32px;padding:6px 8px;resize:none;font-size:9px}
.content.product-entry-mode .gold-product-card #goldMaterialsSection{padding:9px 10px;margin:0}
.content.product-entry-mode .material-editor-head{margin-bottom:6px}
.content.product-entry-mode .material-editor-head .eyebrow{margin-bottom:2px;font-size:7px}
.content.product-entry-mode .material-editor-head h3{font-size:12px;margin:0}
.content.product-entry-mode .material-editor-head .subheading{font-size:8px;line-height:1.2}
.content.product-entry-mode .material-editor-head .secondary-button{padding:6px 9px;font-size:8px}
.content.product-entry-mode .material-rows{gap:5px}
.content.product-entry-mode .material-row{padding:7px;margin:0}
.content.product-entry-mode .material-row-head{margin-bottom:5px;gap:8px}
.content.product-entry-mode .material-row-head>.material-field{max-width:220px}
.content.product-entry-mode .material-field{gap:3px;font-size:8px}
.content.product-entry-mode .material-field>span{font-size:7px}
.content.product-entry-mode .material-field input,
.content.product-entry-mode .material-field select{height:31px;padding:0 7px;font-size:9px}
.content.product-entry-mode .material-fields{gap:6px}
.content.product-entry-mode .gold-quick-fields{gap:7px}
.content.product-entry-mode .gold-quick-fields .material-field select,
.content.product-entry-mode .gold-quick-fields .material-field input{height:33px;font-size:10px}
.content.product-entry-mode .gold-advanced{margin-top:4px;padding-top:4px}
.content.product-entry-mode .gold-advanced summary{font-size:7px}
.content.product-entry-mode .gold-advanced-body{padding:5px 0}
.content.product-entry-mode .material-line-cost{margin-top:5px;padding-top:4px;font-size:8px}
.content.product-entry-mode .material-totals{gap:6px;margin-top:7px}
.content.product-entry-mode .material-totals>div{padding:6px 8px}
.content.product-entry-mode .material-totals small{font-size:7px}
.content.product-entry-mode .material-totals strong{margin-top:3px;font-size:12px}
.content.product-entry-mode .material-help{margin-top:5px;font-size:7px;line-height:1.25}
.content.product-entry-mode .form-note{margin:5px 12px;padding:5px 8px;font-size:7px}
.content.product-entry-mode .form-actions{padding:6px 12px;border-top:0}
.content.product-entry-mode .form-actions button{min-height:30px;padding:0 11px;font-size:8px}
@media(max-height:820px) and (min-width:900px){
 .content.product-entry-mode{padding-top:5px}
 .content.product-entry-mode .gold-product-card{padding:7px 10px}
 .content.product-entry-mode .gold-identity-grid{gap:5px 8px}
 .content.product-entry-mode .gold-identity-grid .field input,
 .content.product-entry-mode .gold-identity-grid .field select{height:28px}
 .content.product-entry-mode .gold-identity-grid .field textarea{height:28px;min-height:28px}
 .content.product-entry-mode .gold-product-card #goldMaterialsSection{padding:6px 8px}
 .content.product-entry-mode .material-totals{margin-top:5px}
}
@media(max-width:850px){
 .content.product-entry-mode .gold-identity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.language-control,.login-language{display:flex;align-items:center;gap:7px;color:#7d8795;font-size:9px;font-weight:700}
.language-control select,.login-language select{height:32px;padding:0 9px;border:1px solid #e2e5e9;border-radius:5px;background:#fff;color:#344155;font-size:10px}
.login-language{justify-content:flex-end;margin-bottom:18px}
.login-language label{font-size:9px}
.material-row-head{display:flex;align-items:flex-end;gap:10px;margin-bottom:12px}
.material-row-head>.material-field{max-width:320px;flex:1}
.material-action{min-height:38px;padding:0 15px;white-space:nowrap}
.material-action.remove-material{min-height:38px;background:#fff}
.material-row-committed{background:#fbfcfd;border-color:#dce4e9}
.material-row-committed .material-field input:disabled,.material-row-committed .material-field select:disabled{background:#f5f6f8;color:#6d7786;opacity:1}
@media(max-width:600px){.language-control{gap:4px}.language-control span{display:none}.material-row-head{align-items:stretch}.material-row-head>.material-field{max-width:none}.material-action{min-height:42px}}

/* Material type select with a compact adjacent add (+) action */
.material-row-head{display:flex;align-items:flex-end;justify-content:flex-start;gap:0;margin-bottom:8px}
.material-type-add-control{display:flex;align-items:flex-end;gap:5px;width:auto;max-width:100%}
.material-type-add-control>.material-field{width:235px;max-width:235px;flex:0 1 235px}
.material-type-add-control .material-field select{height:38px}
.material-add-button{display:inline-grid;place-items:center;width:38px;min-width:38px;height:38px;padding:0;border:1px solid #8a8a8a;border-radius:6px;background:#2c2c2c;color:#fff;font-size:24px;font-weight:400;line-height:1}
.material-add-button:hover{background:#a98442}
.content.product-entry-mode .material-type-add-control>.material-field{width:210px;max-width:210px;flex-basis:210px}
.content.product-entry-mode .material-type-add-control .material-field select{height:31px}
.content.product-entry-mode .material-add-button{width:31px;min-width:31px;height:31px;font-size:21px}
.gold-quick-fields{grid-template-columns:repeat(4,minmax(0,1fr))}
.gold-quick-fields .material-field input:disabled{background:#f6f7f9;color:#354257;font-weight:700}
@media(max-width:600px){.material-type-add-control{width:100%}.material-type-add-control>.material-field{width:auto;max-width:none;flex:1}.gold-quick-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Gram inputs: users type the weight directly; hide browser spinner +/- controls. */
input.weight-grams::-webkit-outer-spin-button,
input.weight-grams::-webkit-inner-spin-button,
#grossWeight::-webkit-outer-spin-button,
#grossWeight::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input.weight-grams,
#grossWeight {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Currency and FX fields are visible with the selected gold or coin material. */
.gold-quick-fields{grid-template-columns:repeat(6,minmax(0,1fr))}
.content.product-entry-mode .gold-quick-fields{grid-template-columns:repeat(6,minmax(0,1fr))}
.content.product-entry-mode .gold-quick-fields .material-field input,
.content.product-entry-mode .gold-quick-fields .material-field select{min-width:0;width:100%}
.content.product-entry-mode .material-fields{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1050px){
 .gold-quick-fields,.content.product-entry-mode .gold-quick-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
 .gold-quick-fields,.content.product-entry-mode .gold-quick-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .content.product-entry-mode .material-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Optional stones are hidden during ordinary GOLD entry and appear only on request. */
.stone-toggle{display:inline-flex;align-items:center;margin:6px 0 8px;padding:5px 9px;font-size:9px}
.stone-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:4px 0 12px;padding:11px;border:1px solid #e8e1d4;border-radius:7px;background:#fff}
.stone-quick-grid[hidden]{display:none!important}
.stone-quick-grid .field{min-width:0}
.date-cell{font-size:9px;white-space:nowrap;color:#5c6878;font-variant-numeric:tabular-nums}
#productionDateTime,#cardProductionDate,#cardCreatedBy{background:#f5f6f8;color:#657185;font-size:12px}
@media(max-width:850px){.stone-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.stone-quick-grid{grid-template-columns:1fr}}


/* Readable fast entry: compact layout without shrinking the controls. */
.content.product-entry-mode .gold-identity-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px 12px;
}
.content.product-entry-mode .gold-identity-grid .field{
  gap:5px;
  font-size:10px;
  line-height:1.25;
}
.content.product-entry-mode .gold-identity-grid .field input,
.content.product-entry-mode .gold-identity-grid .field select{
  height:39px;
  padding:0 10px;
  font-size:11px;
}
.content.product-entry-mode .gold-identity-grid .field textarea{
  height:39px;
  min-height:39px;
  padding:8px 10px;
  resize:vertical;
  font-size:11px;
}
.content.product-entry-mode .gold-description-field{grid-column:span 2}
.content.product-entry-mode .gold-product-card #goldMaterialsSection{
  padding:12px 13px;
}
.content.product-entry-mode .material-editor-head{margin-bottom:9px}
.content.product-entry-mode .material-editor-head h3{font-size:14px}
.content.product-entry-mode .material-editor-head .subheading{
  font-size:9px;
  line-height:1.4;
}
.content.product-entry-mode .material-row{padding:10px}
.content.product-entry-mode .material-row-head{
  margin-bottom:8px;
  gap:9px;
}
.content.product-entry-mode .material-field{
  gap:5px;
  font-size:10px;
}
.content.product-entry-mode .material-field>span{
  font-size:9px;
  line-height:1.25;
}
.content.product-entry-mode .material-field input,
.content.product-entry-mode .material-field select{
  height:40px;
  padding:0 9px;
  font-size:11px;
}
.content.product-entry-mode .gold-quick-fields{
  grid-template-columns:repeat(6,minmax(95px,1fr));
  gap:9px;
}
.content.product-entry-mode .gold-quick-fields .material-field select,
.content.product-entry-mode .gold-quick-fields .material-field input{
  height:40px;
  font-size:11px;
}
.content.product-entry-mode .gold-advanced summary{font-size:9px}
.content.product-entry-mode .material-line-cost{
  margin-top:8px;
  padding-top:7px;
  font-size:10px;
}
.content.product-entry-mode .material-totals{
  gap:8px;
  margin-top:10px;
}
.content.product-entry-mode .material-totals>div{padding:9px 10px}
.content.product-entry-mode .material-totals small{font-size:8px}
.content.product-entry-mode .material-totals strong{font-size:14px;margin-top:4px}
.content.product-entry-mode .material-help{font-size:8px;line-height:1.35}
.content.product-entry-mode .form-actions button{min-height:36px;font-size:10px}
.content.product-entry-mode .stone-toggle[hidden],
.content.product-entry-mode #stoneDetails[hidden]{display:none!important}
@media(max-width:1100px){
  .content.product-entry-mode .gold-identity-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .content.product-entry-mode .gold-quick-fields{grid-template-columns:repeat(3,minmax(100px,1fr))}
}
@media(max-width:850px){
  .content.product-entry-mode .gold-identity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .content.product-entry-mode .gold-quick-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .content.product-entry-mode .gold-identity-grid{grid-template-columns:1fr}
  .content.product-entry-mode .gold-description-field{grid-column:span 1}
  .content.product-entry-mode .gold-quick-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Inventory category shortcuts: category-specific NEW entry launchers */
.nav-fold{margin:3px 0 8px}
.nav-fold>summary{list-style:none;cursor:pointer;width:100%;font-weight:inherit;color:inherit}
.nav-fold>summary::-webkit-details-marker{display:none}
.nav-fold>summary::marker{content:""}
.nav-fold>summary::after{content:"▸";margin-left:auto;color:#9a9a9a;font-size:11px}
.nav-fold[open]>summary::after{content:"▾"}
.nav-fold:not([open])>.stock-nav-sub{display:none}
.stock-nav-sub{display:grid;gap:2px;margin:0 0 10px 18px}
.stock-nav-sub a{padding:6px 10px;border-radius:6px;color:#c8c8c8;font-size:10px;font-weight:700;letter-spacing:.08em;text-decoration:none}
.stock-nav-sub a:hover,.stock-nav-sub a.is-current{background:#ffffff14;color:#fff}
.inventory-heading-row{align-items:center;gap:24px}
.inventory-heading-copy{flex:1;min-width:230px}
.category-launcher{
  display:grid;
  grid-template-columns:repeat(7,minmax(88px,1fr));
  gap:10px;
  width:min(1180px,100%);
  flex:0 1 1180px;
}
.category-launch-card{
  min-width:0;
  min-height:116px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 9px 9px;
  border:1px solid #e7e8ec;
  border-radius:9px;
  background:#fff;
  box-shadow:0 2px 7px #18253a08;
  text-align:center;
  transition:transform .15s ease,box-shadow .15s ease;
}
.category-launch-card:hover{
  transform:translateY(-2px);
  box-shadow:0 5px 14px #18253a12;
}
.category-launch-icon{
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  font-family:Georgia,serif;
  font-size:27px;
  line-height:1;
}
.category-launch-card>strong{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1px;
  color:#394456;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
}
.category-launch-card>strong small{font-size:9px;font-weight:600;letter-spacing:0;color:#7a7166}
.category-gold{background:linear-gradient(180deg,#fffdf7 0%,#fff 100%);border-color:#ead8ad}
.category-gold .category-launch-icon{color:#bb9139}
.category-silver{background:linear-gradient(180deg,#fafbfd 0%,#fff 100%);border-color:#d8dfe7}
.category-silver .category-launch-icon{color:#8795a5}
.category-platinum{background:linear-gradient(180deg,#f7f8fa 0%,#fff 100%);border-color:#cfd5dd}
.category-platinum .category-launch-icon{color:#667384}
.category-diamond{background:linear-gradient(180deg,#f6fbff 0%,#fff 100%);border-color:#d1e3f1}
.category-diamond .category-launch-icon{font-size:25px}
.category-loose{background:linear-gradient(180deg,#f7f8ff 0%,#fff 100%);border-color:#d5d8ee}
.category-loose .category-launch-icon{color:#5d6794;font-size:22px}
.category-loose>strong{letter-spacing:.02em;font-size:11px}
.category-new-button{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0;
  width:100%;
  min-height:29px;
  margin-top:2px;
  border:1px solid #e3e5e9;
  border-radius:5px;
  background:#fff;
  color:#364459;
  font-size:8px;
  font-weight:800;
  letter-spacing:.12em;
  cursor:pointer;
  text-decoration:none;
}
.category-new-button small{font-size:8px;font-weight:700;letter-spacing:.04em;line-height:1.1;opacity:.8}
.category-gold .category-new-button{border-color:#dfca99;background:#fbf4e4;color:#8c6b2f}
.category-silver .category-new-button{border-color:#d7dfe8;background:#f4f6f8;color:#667589}
.category-platinum .category-new-button{border-color:#cfd5dd;background:#eef1f4;color:#596777}
.category-diamond .category-new-button{border-color:#c9dfef;background:#edf7ff;color:#416d8f}
.category-loose .category-new-button{border-color:#d5d8ee;background:#f3f4fb;color:#4e577f}
@media(max-width:1100px){
  .inventory-heading-row{align-items:flex-start;flex-direction:column}
  .category-launcher{width:100%;max-width:700px;flex-basis:auto}
}
@media(max-width:600px){
  .category-launcher{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .category-launch-card{min-height:106px}
}


/* Barcode directly below the assigned product code */
.product-code-field{align-self:start}
.product-barcode-preview{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1px;
  width:100%;
  min-height:45px;
  margin-top:5px;
  padding:4px 7px 2px;
  border:1px solid #edf0f3;
  border-radius:5px;
  background:#fff;
}
.product-barcode-preview[hidden]{display:none!important}
.product-barcode-preview svg{
  display:block;
  width:min(100%,230px);
  height:34px;
  overflow:visible;
}
.product-barcode-preview>span{
  width:min(100%,230px);
  color:#344155;
  text-align:center;
  font-family:monospace;
  font-size:9px;
  font-weight:700;
  letter-spacing:.16em;
}
.content.product-entry-mode .product-barcode-preview{
  min-height:39px;
  margin-top:3px;
  padding:2px 5px 1px;
}
.content.product-entry-mode .product-barcode-preview svg{
  width:min(100%,210px);
  height:29px;
}
.content.product-entry-mode .product-barcode-preview>span{font-size:8px}


/* Live product camera capture */
.photo-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.product-camera-modal{
  position:fixed;inset:0;z-index:10000;
  display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(13,20,32,.72);
}
.product-camera-modal[hidden]{display:none!important}
.product-camera-dialog{
  width:min(760px,100%);max-height:calc(100vh - 40px);
  overflow:auto;padding:18px;border-radius:12px;
  background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.3);
}
.product-camera-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.product-camera-heading h3{margin:0;color:#1e293b;font-size:18px}
.product-camera-heading .eyebrow{margin:0 0 4px;font-size:9px;color:#a8894b}
#productCameraVideo{
  display:block;width:100%;max-height:65vh;min-height:260px;
  object-fit:contain;background:#111;border-radius:8px;
}
.product-camera-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:13px}
.product-camera-actions button{min-height:42px;padding:0 18px}
.product-photo-previews{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}
@media(max-width:600px){
  .product-camera-dialog{padding:12px}
  #productCameraVideo{min-height:200px}
  .product-camera-actions button{flex:1}
}


/* Product edit actions and supervisor permission management */
.edit-product-button{
  min-height:30px;padding:0 10px;border:1px solid #d8caa9;border-radius:5px;
  background:#fbf7ee;color:#806536;font-size:10px;font-weight:700;cursor:pointer;
}
.edit-product-button:hover{background:#f4ecd9}
.product-actions-cell{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.print-barcode-link{
  display:inline-flex;align-items:center;min-height:30px;padding:0 10px;
  border:1px solid #d0d0d0;border-radius:5px;background:#f7f7f7;color:#3a3a3a;
  font-size:10px;font-weight:700;text-decoration:none;white-space:nowrap;
}
.print-barcode-link:hover{background:#efefef;border-color:#bdbdbd}
.permissions-panel{margin-bottom:16px}
.product-permissions-list{display:grid;gap:8px}
.product-permission-row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:12px 14px;border:1px solid #e7e9ed;border-radius:7px;background:#fff;
}
.product-permission-details{display:grid;gap:4px;min-width:0}
.product-permission-details strong{font-size:12px;color:#25344a}
.product-permission-details small{font-size:10px;color:#7c8795;overflow-wrap:anywhere}
.product-permission-toggle{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:10px;color:#415064}
.product-permission-toggle input{width:17px;height:17px;accent-color:#9a7a3e}
.product-thumb-cell{width:58px}
.product-thumb-placeholder{
  display:grid;place-items:center;width:42px;height:42px;border-radius:5px;
  background:#f2f2f0;border:1px solid #e4e2dc;color:#9a8a68;font-size:9px;font-weight:800;
}
@media(max-width:650px){.product-permission-row{align-items:flex-start;flex-direction:column}.product-permission-toggle{white-space:normal}}


/* Square product-photography station and stock thumbnails */
.camera-focus-stage{
  position:relative;
  width:min(100%,600px);
  aspect-ratio:1/1;
  margin:0 auto;
  overflow:hidden;
  border-radius:10px;
  background:#141820;
}
#productCameraVideo{
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  max-height:none;
  object-fit:cover;
  background:#141820;
}
.camera-square-guide{
  pointer-events:none;
  position:absolute;
  inset:8%;
  border:1px solid rgba(255,255,255,.72);
  border-radius:8px;
  box-shadow:0 0 0 999px rgba(0,0,0,.12);
}
.camera-square-guide:before,.camera-square-guide:after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  background:rgba(255,255,255,.45);
}
.camera-square-guide:before{width:1px;height:22px}
.camera-square-guide:after{width:22px;height:1px}
.camera-status{
  max-width:600px;
  margin:9px auto 0;
  color:#667386;
  text-align:center;
  font-size:11px;
}
.product-camera-dialog{width:min(700px,100%)}
.product-camera-actions{max-width:600px;margin:12px auto 0}
.product-photo-preview{
  position:relative;
  width:112px;
  height:112px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  border-radius:7px;
  background:#f7f7f5;
}
.product-photo-preview img{width:100%;height:100%;object-fit:cover}
.product-stock-thumbnail{
  display:block;
  width:48px;
  height:48px;
  object-fit:cover;
  border:1px solid #e5e1d8;
  border-radius:5px;
  background:#f7f7f4;
}
.product-thumb-cell{width:62px;min-width:62px}
.product-thumb-placeholder{width:48px;height:48px}


/* Fixed five-slot product gallery, used for create and edit workflows */
.photo-mode-actions{align-items:center;gap:8px;flex-wrap:wrap}
.photo-mode-actions button{min-height:36px;padding:0 12px;font-size:10px}
.product-photo-previews{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,112px));
  gap:10px;
  align-items:start;
}
.product-photo-preview.photo-slot-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  width:112px;
  height:auto;
  min-height:150px;
  padding:5px;
  border:1px solid #e1e5ea;
  border-radius:8px;
  background:#fff;
}
.product-photo-preview.photo-slot-card img{
  display:block;
  width:100px;
  height:100px;
  object-fit:contain;
  border-radius:5px;
  background:#f6f6f4;
}
.product-photo-preview.photo-slot-card img.empty-slot-image{
  border:1px dashed #cbd2dc;
  background:linear-gradient(135deg,#fafafa,#f0f1f2);
}
.photo-slot-number{
  position:absolute;
  top:9px;
  left:9px;
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#29364a;
  color:#fff;
  font-size:10px;
  font-weight:700;
}
.photo-slot-action{
  min-height:28px;
  margin-top:5px;
  border:1px solid #d8cdaF;
  border-radius:5px;
  background:#fbf7ed;
  color:#806536;
  font-size:9px;
  font-weight:700;
  cursor:pointer;
}
.existing-photo-slot{border-color:#c9d9ca!important}
.product-stock-thumbnail{
  width:52px;
  height:52px;
  object-fit:contain;
  background:#fff;
}
.product-thumb-cell{vertical-align:middle}
@media(max-width:720px){
  .product-photo-previews{grid-template-columns:repeat(3,minmax(0,112px))}
}
@media(max-width:420px){
  .product-photo-previews{grid-template-columns:repeat(2,minmax(0,112px))}
  .photo-mode-actions button{flex:1}
}


/* Product type decides which measurement card is visible. */
#ringSizeSection[hidden],
#weddingBandSection[hidden],
#chainSpecificationsSection[hidden],
#braceletSpecificationsSection[hidden]{
  display:none!important;
}
#ringSizeSection:not([hidden]),
#weddingBandSection:not([hidden]),
#chainSpecificationsSection:not([hidden]),
#braceletSpecificationsSection:not([hidden]){
  display:block;
}


/* VOW Jewellery fast stock entry: balanced two-column work area */
.content.product-entry-mode .product-entry-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 6.4cm;
  gap:14px;
  align-items:start;
  padding:0 12px;
}
.content.product-entry-mode .product-entry-main{min-width:0}
.content.product-entry-mode .product-entry-side{min-width:0;width:100%}
.content.product-entry-mode .gold-product-card{
  min-width:0;
  padding:11px;
  border:1px solid #e5dfd2;
  border-radius:8px;
  background:#fcfbf8;
}
.content.product-entry-mode .gold-product-identity{padding:0 0 7px}
.content.product-entry-mode .gold-card-heading{margin-bottom:8px}
.content.product-entry-mode .gold-identity-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 10px;
}
.content.product-entry-mode .gold-identity-grid .field{min-width:0}
.content.product-entry-mode .gold-identity-grid .field input,
.content.product-entry-mode .gold-identity-grid .field select{height:34px}
.content.product-entry-mode .prefix-field{max-width:135px}
.content.product-entry-mode .prefix-field input{text-align:center;font-weight:800;letter-spacing:.08em}
.content.product-entry-mode .product-code-field{min-width:0}
.content.product-entry-mode .product-code-field input{font-weight:800;letter-spacing:.06em}
.content.product-entry-mode .workshop-field{grid-column:span 2}
.content.product-entry-mode .gold-description-field{grid-column:span 2}
.content.product-entry-mode .jewellery-specifications{margin-top:8px}
.content.product-entry-mode .jewellery-specifications>.material-editor-head{margin:3px 0 6px}
.content.product-entry-mode .jewellery-specifications>.material-editor-head h3{font-size:11px}
.content.product-entry-mode .specification-group{margin:6px 0;padding:7px 9px;border:1px solid #eee8dc;border-radius:6px;background:#fff}
.content.product-entry-mode .specification-group h4{margin:0 0 6px;font-size:9px;color:#78623d}
.content.product-entry-mode .specification-group .gold-identity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.content.product-entry-mode .stone-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:7px}
.content.product-entry-mode .stone-quick-grid .field input,
.content.product-entry-mode .stone-quick-grid .field select{height:32px;padding:0 8px;font-size:9px}
.content.product-entry-mode #goldMaterialsSection{
  margin:0;
  padding:10px;
  border:1px solid #e5dfd2;
  border-radius:8px;
  background:#fff;
}
.content.product-entry-mode .material-editor-head{margin-bottom:7px}
.content.product-entry-mode .material-row{
  padding:8px;
  border-radius:7px;
  background:#fff;
}
.content.product-entry-mode .material-row-gold{border-color:#e6d5ac;background:#fffdf7}
.content.product-entry-mode .material-row-silver{border-color:#cbd6e4;background:#fbfdff}
.content.product-entry-mode .material-row-platinum{border-color:#c5c9d4;background:#f7f8fb}
.content.product-entry-mode .material-row-coin{border-color:#e7dfcd;background:#fffefa}
.content.product-entry-mode .material-row-head{margin-bottom:7px}
.content.product-entry-mode .material-type-add-control{display:flex;align-items:end;gap:8px;width:100%}
.content.product-entry-mode .material-type-add-control>.material-field{max-width:210px;flex:1}
.content.product-entry-mode .material-add-button{
  width:36px;height:32px;border:0;border-radius:5px;background:#17243a;color:#fff;
  font-size:18px;font-weight:700;box-shadow:0 2px 5px #17243a24
}
.content.product-entry-mode .material-add-button:hover{background:#9c7a43}
.content.product-entry-mode .material-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.content.product-entry-mode .material-field input,
.content.product-entry-mode .material-field select{height:33px;padding:0 7px;font-size:9px}
.content.product-entry-mode .material-field .quantity{font-weight:700}
.content.product-entry-mode .material-field .final-quantity{border-color:#c9b17e;background:#fffdf7;font-weight:800}
.content.product-entry-mode .material-line-cost{font-size:8px;margin-top:5px;padding-top:5px}
.content.product-entry-mode .material-lines-table-wrap{
  overflow-x:auto;
  margin-top:8px;
  padding:10px;
  border:1px solid #e7dfcd;
  border-radius:8px;
  background:#fffdf8;
}
.content.product-entry-mode .material-lines-table{min-width:620px;width:100%;border-collapse:separate;border-spacing:0}
.content.product-entry-mode .material-lines-table th{
  padding:10px 12px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.05em;
  color:#17243a;
  background:#f7f1e4;
  border-bottom:1px solid #e7dfcd;
}
.content.product-entry-mode .material-lines-table td{
  padding:11px 12px;
  font-size:13px;
  color:#2a3548;
  border-bottom:1px solid #eee4d4;
}
.content.product-entry-mode .material-lines-table .material-line-name{
  font-weight:800;
  color:#17243a;
  font-size:14px;
}
.content.product-entry-mode .material-lines-table .material-line-cost-cell{
  font-weight:800;
  color:#17243a;
  font-size:14px;
}
.content.product-entry-mode .material-lines-table tbody tr.is-selectable{cursor:pointer}
.content.product-entry-mode .material-lines-table tr.is-selected td{
  background:#e8eef8;
  box-shadow:inset 3px 0 0 #17243a;
}
.content.product-entry-mode .material-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
.content.product-entry-mode .material-totals>div{padding:7px 8px}
.content.product-entry-mode .material-totals strong{font-size:12px}
.content.product-entry-mode .material-help{font-size:7px;line-height:1.35}
.content.product-entry-mode .product-entry-side .product-photo-section{
  margin:0;
  padding:12px;
  border:1px solid #e4e7ec;
  border-radius:9px;
  background:#fff;
  box-shadow:0 3px 12px #17243a0b;
}
.content.product-entry-mode .photo-section-heading{display:grid;gap:8px;margin-bottom:9px}
.content.product-entry-mode .photo-section-heading h3{font-size:13px;margin:0 0 4px}
.content.product-entry-mode .photo-section-heading .eyebrow{margin-bottom:3px}
.content.product-entry-mode .photo-section-heading .subheading{font-size:8px}
.content.product-entry-mode .photo-actions{display:flex;flex-wrap:wrap;gap:6px}
.content.product-entry-mode .photo-actions button{min-height:30px;padding:0 8px;font-size:8px}
.content.product-entry-mode .product-photo-previews{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  align-items:start;
}
.content.product-entry-mode .product-photo-preview{
  position:relative;
  min-width:0;
  aspect-ratio:1;
  width:100%;
  overflow:hidden;
  border:1px solid #dfe3e8;
  border-radius:7px;
  background:linear-gradient(135deg,#f7f8fa,#edf0f4);
}
.content.product-entry-mode .product-photo-preview.main-product-photo-preview{
  background:#fff;
  border-color:#d9dce2;
  box-shadow:0 2px 8px #1a294010;
}
.stone-line-cost{font-weight:800;white-space:nowrap;color:#17243a}
.stone-row-actions{display:flex;gap:6px;align-items:center;white-space:nowrap;min-width:0}
.stone-row-actions select,.stone-row-actions button{height:30px;flex:0 0 auto}
.stone-row-actions select{width:auto;min-width:64px;max-width:88px}
.stone-row-actions .primary-button,.stone-row-actions .secondary-button{width:auto;min-width:0;padding:0 10px}
.charge-card{display:grid;gap:8px;padding:12px 0;border-top:1px solid #eee4d4}
.charge-people{display:flex;gap:8px;align-items:center}
.charge-people input{height:34px;min-width:180px;padding:0 10px;border:1px solid #dfe2e8;border-radius:5px}
.charge-names{display:grid;gap:6px;padding-left:12px}
.charge-add-bar{grid-template-columns:minmax(140px,1.4fr) 110px minmax(120px,1fr) 36px;margin-top:8px}
.charge-rate{max-width:220px;margin-top:8px}
.setting-split{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.setting-split .section-value{margin:0;padding:8px 10px;border:1px solid #e7dfcd;border-radius:6px;background:#fffdf8}
.section-value{display:flex;justify-content:flex-end;align-items:baseline;gap:12px;margin:8px 0 0;color:#6b5a3e;font-size:13px;font-weight:700}
.section-value strong{color:#17243a;font-size:18px}
.diamond-card-totals{grid-template-columns:repeat(3,minmax(0,1fr))}
.stone-add-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-items:end;margin-bottom:8px}
.stone-add-bar .field{min-width:0}
.stone-add-bar input,.stone-add-bar select{width:100%}
.stone-add-bar .field.stone-qty-active input{
  border-color:#8a8a8a;background:#fff;box-shadow:0 0 0 2px #8a8a8a22
}
.stone-add-bar .field.stone-qty-idle input{
  background:#f3f4f6;color:#8a929e;border-color:#e2e4e8
}
.stone-add-bar .field.stone-qty-idle span{color:#9aa3af}
.stone-add-bar #stoneAddBasisField select:invalid{border-color:#c9a227}
.production-stones input.stone-qty-idle-input{background:#f3f4f6;color:#8a929e;border-color:#e2e4e8}
.stone-stock-balance{
  grid-column:1/-1;
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;
  margin:2px 0 0;padding:8px 10px;
  border:1px solid #d7dde6;border-radius:6px;background:#f8fafc;color:#425066
}
.stone-stock-balance[hidden]{display:none!important}
.stone-stock-balance-title{margin:0;font-size:10px;font-weight:700;letter-spacing:.04em;color:#1f2c3f;text-transform:uppercase}
.stone-stock-balance-grid{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0}
.stone-stock-balance-grid > div{display:flex;flex-direction:column;gap:2px;min-width:72px}
.stone-stock-balance-grid dt{margin:0;font-size:9px;font-weight:600;color:#6b7585;letter-spacing:.03em}
.stone-stock-balance-grid dd{margin:0;font-size:12px;font-weight:700;color:#17243a}
.stone-code-typeahead{position:relative;z-index:5}
.stone-code-typeahead .stone-code-suggestions{
  position:absolute;left:0;right:0;top:calc(100% + 2px);z-index:40;
  margin:0;padding:4px 0;list-style:none;max-height:220px;overflow:auto;
  border:1px solid #d7dde6;border-radius:6px;background:#fff;
  box-shadow:0 10px 24px #18253a14
}
.stone-code-typeahead .stone-code-suggestions[hidden]{display:none!important}
.stone-code-typeahead .stone-code-suggestions li{
  display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;
  padding:7px 10px;cursor:pointer;color:#425066;font-size:10px;font-weight:500
}
.stone-code-typeahead .stone-code-suggestions li strong{color:#1f2c3f;font-size:11px;letter-spacing:.04em}
.stone-code-typeahead .stone-code-suggestions li span{color:#6b7585;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stone-code-typeahead .stone-code-suggestions li em{font-style:normal;color:#8a929e;font-size:9px;white-space:nowrap}
.stone-code-typeahead .stone-code-suggestions li.is-active,
.stone-code-typeahead .stone-code-suggestions li:hover{background:#f3f6fa}
.stone-code-typeahead .stone-code-suggestions li.is-disabled{opacity:.55;cursor:not-allowed}
.stone-code-typeahead .stone-code-suggestion-empty{
  display:block;padding:9px 10px;color:#8a929e;font-size:10px;font-weight:600;cursor:default
}
.content.product-entry-mode .card-diamond-stock .stone-code-typeahead{z-index:6}
.content.product-entry-mode .card-diamond-stock .stone-code-typeahead .stone-code-suggestions{min-width:min(320px,70vw)}
.content.product-entry-mode .product-photo-preview.small-product-photo-preview{aspect-ratio:1}
.content.product-entry-mode .product-photo-preview img{
  width:100%;height:100%;display:block;object-fit:contain;cursor:zoom-in;
  background:#fff;
}
.content.product-entry-mode .product-photo-preview .empty-slot-image{
  background:repeating-linear-gradient(45deg,#f7f8fa,#f7f8fa 9px,#eef1f5 9px,#eef1f5 18px);
}
.content.product-entry-mode .photo-slot-number{
  position:absolute;top:6px;left:6px;min-width:20px;height:20px;display:grid;place-items:center;
  border-radius:50%;background:#17243acc;color:#fff;font-size:8px;font-weight:800
}
.content.product-entry-mode .photo-slot-action{
  position:absolute;right:5px;bottom:5px;min-height:25px;padding:0 7px;border:1px solid #ddd;
  border-radius:4px;background:#ffffffeb;color:#344155;font-size:7px;font-weight:700
}
.content.product-entry-mode .main-product-photo-preview .photo-slot-action{min-height:29px;font-size:8px;padding:0 10px}
.content.product-entry-mode #productPhotoCount{margin:7px 0 0;text-align:center}
.content.product-entry-mode .gold-product-card .form-note{margin:8px 0}
.gold-colour[data-colour="yellow"]{background:#fff5d9!important;border-color:#d7b45e!important;color:#78581b!important}
.gold-colour[data-colour="white"]{background:#f1f4f8!important;border-color:#c5ccd5!important;color:#536274!important}
.gold-colour[data-colour="rose"]{background:#fae8e7!important;border-color:#d9a49f!important;color:#89504d!important}
.gold-colour[data-colour="two_tone"]{background:linear-gradient(90deg,#fff2d3 0 50%,#edf1f5 50%)!important;border-color:#c6b48d!important;color:#5e594d!important}
.product-image-lightbox{
  position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:12px;padding:32px;background:#0c1423ed;backdrop-filter:blur(5px)
}
.product-image-lightbox img{display:block;max-width:min(92vw,1200px);max-height:86vh;object-fit:contain;background:#fff;border-radius:8px;box-shadow:0 20px 70px #0008}
.product-image-lightbox p{margin:0;color:#fff;font-size:12px}
.product-image-lightbox-close{
  position:fixed;top:20px;right:24px;width:42px;height:42px;border:1px solid #ffffff55;border-radius:50%;
  background:#ffffff20;color:#fff;font-size:28px;line-height:1
}
.product-image-lightbox-close:hover{background:#ffffff35}
body.image-lightbox-open{overflow:hidden}
.product-stock-thumbnail{cursor:zoom-in;transition:transform .15s ease}
.product-stock-thumbnail:hover{transform:scale(1.08)}
@media(max-width:1120px){
  .content.product-entry-mode .product-entry-layout{grid-template-columns:minmax(0,1fr) minmax(260px,38%)}
  .content.product-entry-mode .product-photo-preview.main-product-photo-preview{width:100%}
}
@media(max-width:850px){
  .content.product-entry-mode .product-entry-layout{grid-template-columns:1fr}
  .content.product-entry-mode .product-entry-side{max-width:15cm}
  .content.product-entry-mode .product-entry-side .product-photo-section{margin-top:10px}
}
@media(max-width:600px){
  .content.product-entry-mode .gold-identity-grid,
  .content.product-entry-mode .specification-group .gold-identity-grid{grid-template-columns:1fr}
  .content.product-entry-mode .workshop-field,
  .content.product-entry-mode .gold-description-field{grid-column:span 1}
  .content.product-entry-mode .product-entry-layout{padding:0 5px;gap:8px}
  .content.product-entry-mode .material-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .content.product-entry-mode .product-photo-previews{grid-template-columns:repeat(3,minmax(0,1fr))}
  .content.product-entry-mode .product-photo-preview.main-product-photo-preview{width:100%}
  .list-summary-split,.setting-split{grid-template-columns:1fr}
}

/* Added metals / stones / charge lists — shop-readable prominence (~80–90% of mıhlama boxes) */
.list-summary-split{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.list-summary-split .section-value{
  margin:0;
  padding:7px 10px;
  border:1px solid #e7dfcd;
  border-radius:6px;
  background:#fffdf8;
  font-size:12px;
}
.list-summary-split .section-value strong{font-size:15px;color:#17243a}
.content.product-entry-mode .production-list-wrap{
  overflow-x:auto;
  margin-top:8px;
  padding:10px;
  border:1px solid #e7dfcd;
  border-radius:8px;
  background:#fffdf8;
}
.content.product-entry-mode .table-scroll.production-list-wrap .production-stones{min-width:1020px;width:100%;table-layout:fixed}
.content.product-entry-mode .table-scroll.production-list-wrap .charge-lines-table{min-width:480px;table-layout:auto}
.content.product-entry-mode .table-scroll.production-list-wrap .charge-lines-table td{max-width:none;overflow:visible}
.content.product-entry-mode .production-stones th{
  padding:10px 12px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.05em;
  color:#17243a;
  background:#f7f1e4;
  border-bottom:1px solid #e7dfcd;
}
.content.product-entry-mode .production-stones td{
  padding:10px 12px;
  font-size:13px;
  color:#2a3548;
  border-bottom:1px solid #eee4d4;
  overflow:hidden;
  max-width:0;
  vertical-align:middle;
}
.content.product-entry-mode .card-diamond-stock .production-stones td:nth-child(11){
  overflow:visible;
  max-width:none;
}
.content.product-entry-mode .production-stones input,
.content.product-entry-mode .production-stones select{
  height:36px;
  font-size:13px;
  padding:0 8px;
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
.content.product-entry-mode .stone-line-code{font-size:13px}
.content.product-entry-mode .stone-line-cost{font-size:14px}
.content.product-entry-mode .stone-row-actions select,
.content.product-entry-mode .stone-row-actions button{height:34px;font-size:11px;flex:0 0 auto}
.content.product-entry-mode .stone-row-actions select{
  width:auto;
  min-width:64px;
  max-width:88px;
}
.content.product-entry-mode .stone-row-actions .primary-button,
.content.product-entry-mode .stone-row-actions .secondary-button{
  width:auto;
  min-width:0;
  padding:0 10px;
}
.content.product-entry-mode .production-stones tbody tr.is-selectable{cursor:pointer}
.content.product-entry-mode .production-stones tr.is-selected td{
  background:#e8eef8;
  box-shadow:inset 3px 0 0 #17243a;
}
.content.product-entry-mode .production-stones tr.is-selected .stone-line-cost,
.content.product-entry-mode .material-lines-table tr.is-selected .material-line-cost-cell{
  color:#1a1a1a;
}

.market-rates-strip,.market-rates-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding:16px 18px;border:1px solid #c5ccd8;border-radius:10px;background:linear-gradient(180deg,#fff 0%,#f3f5f8 100%);box-shadow:0 1px 0 rgba(17,27,46,.04)}
.market-rates-strip{position:sticky;top:0;z-index:25}
.market-rates-copy{min-width:0;flex:1}
.market-rates-title{margin:0 0 10px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#1a1a1a}
.market-rates-subtitle{margin-left:8px;font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:none;color:#526072}
.market-rates-copy .eyebrow{margin-bottom:8px}
.market-rates-values{display:flex;flex-wrap:wrap;gap:12px 22px;align-items:baseline;color:#1b293e;font-size:15px}
.market-rates-values strong{color:#1a1a1a;margin-right:6px;font-size:12px;letter-spacing:.04em;font-weight:700}
.market-rates-values em{font-style:normal;color:#0a1322;font-weight:800;font-size:15px}
.market-rates-meta{color:#526072;font-size:12px}
.market-rates-meta em{font-weight:700;color:#26354a;font-size:12px}
@media(max-width:700px){.market-rates-strip{align-items:flex-start;flex-direction:column}.market-rates-strip .secondary-button{width:100%}.market-rates-values{font-size:14px}.market-rates-values em{font-size:14px}}
.content.product-entry-mode .market-rates-strip{padding:12px 14px;margin-bottom:12px}
.content.product-entry-mode .market-rates-values{gap:8px 14px;font-size:14px}
.content.product-entry-mode .market-rates-values em{font-size:14px}

/* ===== Diamond Product Card grid (mockup2) ===== */
:root{
  --card-page:#e8ebf0;
  --card-panel:#ffffff;
  --card-ink:#182231;
  --card-muted:#5a6574;
  --card-line:#d5dbe3;
  --card-head:#e4edf6;
  --card-accent:#8a8a8a;
  --card-navy:#17263a;
  --card-gold:#c8962e;
  --card-gold-deep:#b07d18;
  --card-gold-soft:#f6ebcf;
  --card-check:#2f8f5b;
  --card-radius:10px;
  --card-shadow:0 2px 8px #1822310d;
}
.content.product-entry-mode{
  background:var(--card-page);
  max-width:1600px;
  padding:12px 16px 22px;
}
.content.product-entry-mode>#productFormPanel.product-card-panel{
  margin:0;
  border:0;
  box-shadow:none;
  background:transparent;
  border-radius:0;
}
.content.product-entry-mode>#productFormPanel>.product-card-header{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
  margin:0 0 12px;
  padding:9px 12px;
  border:1px solid var(--card-line);
  border-radius:var(--card-radius);
  background:var(--card-panel);
  box-shadow:var(--card-shadow);
}
.product-card-header .back-to-stock-button{
  min-height:32px;
  padding:0 12px;
  border:1px solid #d7dbe1;
  border-radius:8px;
  background:#fff;
  color:var(--card-ink);
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}
.product-card-header .back-to-stock-button:hover{
  border-color:var(--card-gold);
  color:#1a2230;
}
.product-card-title-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:0;
}
.product-card-title-icon{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:8px;
  background:var(--card-head);
  color:var(--card-navy);
  flex:0 0 auto;
}
.product-card-title-wrap h2{
  margin:0;
  font-size:16px;
  font-weight:800;
  letter-spacing:.01em;
  color:var(--card-ink);
  text-align:center;
}

/* True two-column composition: left stack + right rail + bottom + actions */
.product-card-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(230px,268px);
  grid-template-areas:
    "main rail"
    "bottom bottom"
    "actions actions";
  gap:12px;
  align-items:start;
}
.product-card-main{
  grid-area:main;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}
.product-card-rail{
  grid-area:rail;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}
.product-card-bottom{
  grid-area:bottom;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:12px;
  align-items:stretch;
}
.card-actions{grid-area:actions}
.card-summary{display:none!important}

.card-section{
  margin:0;
  padding:11px 13px 13px;
  border:1px solid var(--card-line);
  border-radius:var(--card-radius);
  background:var(--card-panel);
  box-shadow:var(--card-shadow);
  min-width:0;
}
.card-section-head{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 11px;
  padding:8px 10px;
  border-radius:8px;
  background:var(--card-head);
}
.card-section-head h3{
  margin:0;
  font-size:12px;
  font-weight:800;
  color:var(--card-ink);
  line-height:1.25;
}
.card-section-num{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  border:1px solid #bfd0e2;
  color:var(--card-navy);
  font-size:10px;
  font-weight:800;
  flex:0 0 auto;
}
.card-section-icon{color:var(--card-navy);flex:0 0 auto}

.content.product-entry-mode .card-details .details-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px 10px;
}
.content.product-entry-mode .card-details .gold-description-field{
  grid-column:1/-1;
  position:relative;
}
.content.product-entry-mode .card-details .gold-description-field textarea{
  min-height:52px;
  height:auto;
  resize:vertical;
}
.char-counter{
  position:absolute;
  right:8px;
  bottom:6px;
  font-size:9px;
  font-weight:600;
  color:var(--card-muted);
  pointer-events:none;
}
.ring-size-inline{
  display:grid;
  gap:7px;
  font-size:9px;
  color:#535f70;
  font-weight:700;
}
.ring-size-inline select{
  height:34px;
  width:100%;
  padding:0 11px;
  border:1px solid #dfe2e8;
  border-radius:5px;
  background:#fff;
  color:#354257;
  font-size:10px;
}
#ringSizeSection.ring-size-inline:not([hidden]){display:grid}

.visually-hidden{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.content.product-entry-mode.diamond-card-mode .mockup-hide-help{display:none!important}
.content.product-entry-mode.diamond-card-mode .mockup-compact-totals #hasPriceBox,
.content.product-entry-mode.diamond-card-mode .mockup-compact-totals #materialSaleBox,
.content.product-entry-mode.diamond-card-mode .mockup-compact-totals #materialLabelBox{display:none!important}
.content.product-entry-mode.diamond-card-mode .mockup-compact-totals{
  grid-template-columns:1fr;
  margin-top:8px;
}
.content.product-entry-mode.diamond-card-mode #addedMetalsSummary{
  margin-top:8px;
  padding:8px 10px;
  border:1px solid #e2e8f0;
  border-radius:8px;
  background:#f7f9fc;
}
.content.product-entry-mode.diamond-card-mode .metal-cost-footer{display:none}

.content.product-entry-mode .card-metal.material-editor,
.content.product-entry-mode .card-diamond-stock.material-editor{
  margin:0;
  padding:11px 13px 13px;
  border:1px solid var(--card-line);
  border-radius:var(--card-radius);
  background:var(--card-panel);
  box-shadow:var(--card-shadow);
  min-width:0;
  overflow:visible;
}
.content.product-entry-mode .card-metal .material-rows,
.content.product-entry-mode .card-diamond-stock .stone-add-bar{
  display:grid;
  min-width:0;
  max-width:100%;
}
.content.product-entry-mode .product-card-main{
  overflow:visible;
}
.content.product-entry-mode .card-details{
  overflow:visible;
}
.content.product-entry-mode .jewellery-specifications{
  position:static;
  z-index:auto;
  max-height:none;
  overflow:visible;
}
.content.product-entry-mode .card-metal .material-lines-table-wrap,
.content.product-entry-mode .card-diamond-stock .production-list-wrap,
.content.product-entry-mode .card-making .production-list-wrap{
  background:#f8fafc;
  border:1px solid var(--card-line);
  border-radius:8px;
}
.content.product-entry-mode .card-metal .material-lines-table thead th,
.content.product-entry-mode .card-diamond-stock .production-stones thead th,
.content.product-entry-mode .card-making .production-stones thead th{
  background:#eef3f8;
  color:#4a5565;
  font-size:8px;
  letter-spacing:.06em;
}
.content.product-entry-mode.diamond-card-mode .card-metal .material-row{
  padding:10px;
  border-color:#e2e8f0;
  background:#fbfdff;
}
.content.product-entry-mode.diamond-card-mode .card-metal .material-add-button,
.content.product-entry-mode .material-add-button.material-add-labeled{
  width:auto;
  min-width:36px;
  height:34px;
  padding:0 12px;
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
  border:0;
  background:var(--card-gold);
  color:#fff;
}
.content.product-entry-mode.diamond-card-mode .card-metal .material-add-button:hover,
.content.product-entry-mode .material-add-button.material-add-labeled:hover{
  background:var(--card-gold-deep);
}

.content.product-entry-mode .making-total-footer{
  margin-top:10px;
  justify-content:flex-end;
  padding:8px 10px;
  border-radius:8px;
  background:#f7f9fc;
  border:1px solid #e2e8f0;
}

/* Diamond stock footer — single light-blue strip */
.diamond-stock-footer{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 18px;
  margin-top:10px;
  padding:10px 12px;
  border:1px solid #cddceb;
  border-radius:8px;
  background:linear-gradient(180deg,#eef4fb,#e7eef7);
}
.diamond-stock-footer .section-value,
.diamond-stock-footer .footer-metric{
  margin:0;
  justify-content:flex-start;
  gap:8px;
  font-size:11px;
  color:#4d5b6d;
  font-weight:650;
}
.diamond-stock-footer .section-value strong,
.diamond-stock-footer .footer-metric strong{
  font-size:13px;
  color:var(--card-ink);
}
.diamond-stock-footer .footer-metric-strong strong{
  color:var(--card-navy);
  font-size:14px;
}
.stone-setting-inline{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 16px;
}

/* Compact photos rail */
.content.product-entry-mode .card-media.product-photo-section{
  margin:0;
  padding:10px 11px 11px;
}
.content.product-entry-mode .card-media .photo-section-heading{margin:8px 0 0}
.content.product-entry-mode .card-media .photo-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.content.product-entry-mode .card-media .photo-actions button{
  min-height:28px;
  padding:0 8px;
  font-size:9px;
}
.content.product-entry-mode .card-media .photo-add-button{
  background:var(--card-navy);
  flex:1 1 auto;
}
.content.product-entry-mode .card-media .product-photo-previews,
.content.product-entry-mode .card-media .compact-photo-previews{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  justify-items:center;
  align-items:start;
}
.content.product-entry-mode .card-media .product-photo-preview.photo-slot-card{
  height:auto;
  min-height:0;
  padding:0;
  display:block;
  overflow:hidden;
}
.content.product-entry-mode .card-media .product-photo-preview.main-product-photo-preview{
  grid-column:1/-1;
  width:min(100%,200px);
  max-width:200px;
  justify-self:center;
  aspect-ratio:1/1;
  border-radius:8px;
}
.content.product-entry-mode .card-media .product-photo-preview.small-product-photo-preview{
  width:100%;
  max-width:80px;
  aspect-ratio:1/1;
  border-radius:6px;
}
.content.product-entry-mode .card-media .product-photo-preview img,
.content.product-entry-mode .card-media .product-photo-preview.photo-slot-card img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.content.product-entry-mode .card-media .photo-slot-action{
  min-height:20px;
  font-size:7px;
  padding:0 4px;
}
.content.product-entry-mode .card-media .photo-slot-number{
  font-size:7px;
  min-width:14px;
  height:14px;
}
.content.product-entry-mode .card-media #productPhotoCount{
  margin:6px 0 0;
  font-size:9px;
  text-align:left;
}

/* Cost summary with icon feel */
.cost-breakdown{
  margin:0;
  display:grid;
  gap:4px;
}
.cost-breakdown>div,
.cost-breakdown .cost-line{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:7px 2px;
  border-bottom:1px solid #eef0f3;
  font-size:12px;
}
.cost-breakdown .cost-line-icon{
  flex:0 0 auto;
  width:18px;
  color:var(--card-navy);
  font-size:12px;
  opacity:.75;
}
.cost-breakdown dt{
  margin:0;
  margin-right:auto;
  color:var(--card-muted);
  font-weight:600;
}
.cost-breakdown dd{margin:0;color:var(--card-ink);font-weight:800}
.cost-breakdown-total,
.cost-total-gold{
  margin-top:8px;
  padding:11px 12px!important;
  border:0!important;
  border-radius:8px;
  background:linear-gradient(180deg,#f8ecc8,var(--card-gold-soft));
  box-shadow:inset 0 0 0 1px #e2c988;
}
.cost-breakdown-total dt,
.cost-breakdown-total dd,
.cost-total-gold dt,
.cost-total-gold dd{
  color:#6a4f12;
  font-size:13px;
}
.cost-total-gold dd{font-size:15px}

/* Pricing rail */
.card-pricing .pricing-bar-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  align-items:stretch;
  margin-bottom:0;
}
.pricing-metric{
  padding:10px 12px;
  border:1px solid var(--card-line);
  border-radius:8px;
  background:#f8fafc;
}
.pricing-metric small{
  display:block;
  margin-bottom:6px;
  font-size:9px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--card-muted);
}
.pricing-metric strong{
  display:block;
  font-size:15px;
  color:var(--card-ink);
}
.pricing-metric.pricing-sale{
  border-color:#c9d4e2;
  background:#f3f7fc;
}
.pricing-metric.pricing-label-gold{
  border-color:#e0c98a;
  background:linear-gradient(180deg,#f8ecc8,var(--card-gold-soft));
  box-shadow:inset 0 0 0 1px #e2c988;
}
.pricing-metric.pricing-label-gold strong{color:#6a4f12;font-size:17px}
.card-pricing .charge-rate{max-width:none;margin:0}
.card-pricing .charge-rate input[readonly]{
  cursor:default;
  -moz-appearance:textfield;
}
.card-pricing .charge-rate input[readonly]::-webkit-outer-spin-button,
.card-pricing .charge-rate input[readonly]::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.card-pricing .form-note{margin:8px 0 0;padding:8px 10px}

/* Checklist */
.product-checklist{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:7px;
}
.checklist-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:8px 10px;
  border:1px solid #e4ebf3;
  border-radius:8px;
  background:#f8fbfe;
}
.checklist-item div{display:grid;gap:2px;min-width:0}
.checklist-item strong{font-size:11px;color:var(--card-ink)}
.checklist-item span:not(.checklist-tick){font-size:11px;color:var(--card-muted)}
.checklist-tick{
  width:18px;
  height:18px;
  flex:0 0 auto;
  margin-top:1px;
  border-radius:50%;
  border:1.5px solid #c5ced9;
  background:#fff;
  position:relative;
}
.checklist-item.is-done .checklist-tick{
  border-color:var(--card-check);
  background:var(--card-check);
}
.checklist-item.is-done .checklist-tick::after{
  content:"";
  position:absolute;
  left:5px;top:2px;
  width:5px;height:9px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.checklist-item.is-done strong{color:#1d5c3a}

.card-notes .notes-field textarea{
  min-height:140px;
  width:100%;
  resize:vertical;
  border-radius:8px;
}

.product-card-actions,
.card-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  padding:4px 0 0;
  border-top:0;
  background:transparent;
}
.product-card-actions .save-draft-button{
  min-height:38px;
  padding:0 14px;
  border:1px solid #c9d1db;
  background:#fff;
  color:var(--card-ink);
  font-weight:700;
}
.product-card-actions .calculate-button{
  min-height:38px;
  padding:0 14px;
  background:var(--card-navy);
  color:#fff;
  border-color:var(--card-navy);
  font-weight:700;
}
.product-card-actions .calculate-button:hover{
  background:#24364d;
  color:#fff;
}
.product-card-actions .save-product-button{
  min-height:38px;
  padding:0 16px;
  background:var(--card-gold);
  color:#fff;
  min-width:180px;
  border:0;
  font-weight:800;
}
.product-card-actions .save-product-button:hover{background:var(--card-gold-deep)}

.content.product-entry-mode .card-diamond-stock .stone-add-bar .material-add-button,
.content.product-entry-mode .card-making .charge-add-bar .material-add-button{
  width:auto;
  min-width:36px;
  height:34px;
  padding:0 10px;
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
  justify-self:start;
  background:var(--card-navy);
  border-color:var(--card-navy);
  color:#fff;
}

/* Non-diamond modes */
.content.product-entry-mode:not(.diamond-card-mode) .product-card-grid{
  grid-template-columns:minmax(0,1fr) minmax(230px,268px);
  grid-template-areas:
    "main rail"
    "bottom bottom"
    "actions actions";
}
.content.product-entry-mode:not(.diamond-card-mode) .card-diamond-stock,
.content.product-entry-mode:not(.diamond-card-mode) .card-setting,
.content.product-entry-mode:not(.diamond-card-mode) .card-making,
.content.product-entry-mode:not(.diamond-card-mode) .card-checklist{display:none!important}
.content.product-entry-mode:not(.diamond-card-mode) .notes-num{display:none}
.content.product-entry-mode:not(.diamond-card-mode) .product-card-bottom{
  grid-template-columns:1fr;
}

.content.product-entry-mode .jewellery-specifications{margin-top:10px}
.content.product-entry-mode .specification-group{
  margin:6px 0;
  padding:8px 10px;
  border:1px solid var(--card-line);
  border-radius:8px;
  background:#fafaf8;
}

@media(max-width:1100px){
  .product-card-grid{
    grid-template-columns:minmax(0,1fr) minmax(210px,240px);
  }
}
@media(max-width:980px){
  .product-card-grid,
  .content.product-entry-mode:not(.diamond-card-mode) .product-card-grid{
    grid-template-columns:1fr;
    grid-template-areas:
      "main"
      "rail"
      "bottom"
      "actions";
  }
  .product-card-bottom{grid-template-columns:1fr}
  .product-card-header{grid-template-columns:1fr auto}
  .product-card-header .back-to-stock-button{grid-column:1/-1;justify-self:start}
  .content.product-entry-mode .card-details .details-grid{grid-template-columns:1fr 1fr}
  .content.product-entry-mode .card-media .product-photo-preview.main-product-photo-preview{max-width:180px}
}
@media(max-width:560px){
  .content.product-entry-mode .card-details .details-grid{grid-template-columns:1fr}
  .product-card-actions{flex-direction:column}
  .product-card-actions button{width:100%}
  .diamond-stock-footer{flex-direction:column;align-items:flex-start}
}

.content.product-entry-mode .card-diamond-stock .stone-add-bar{
  grid-template-columns:repeat(auto-fill,minmax(88px,1fr));
  gap:6px;
}
.content.product-entry-mode .card-making .charge-add-bar{
  grid-template-columns:minmax(100px,1.4fr) 90px minmax(90px,1fr) auto;
}
.content.product-entry-mode .card-section .field input,
.content.product-entry-mode .card-section .field select{
  height:34px;
  font-size:10px;
}

/* Material add toolbar — mirror .stone-add-bar (full-width dense row) */
.material-add-bar,
.content.product-entry-mode .card-metal .material-add-bar{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(88px,1fr));
  gap:6px;
  align-items:end;
  width:100%;
  max-width:100%;
  min-width:0;
  margin-bottom:4px;
}
/* Flatten nested wrappers so every field participates in the toolbar grid */
.material-add-bar .material-fields,
.material-add-bar .gold-quick-fields,
.material-add-bar .material-source-bar,
.content.product-entry-mode .material-add-bar .material-fields,
.content.product-entry-mode .material-add-bar .gold-quick-fields,
.content.product-entry-mode .material-add-bar .material-source-bar,
.content.product-entry-mode .card-metal .material-add-bar .material-fields,
.content.product-entry-mode .card-metal .material-add-bar .gold-quick-fields,
.content.product-entry-mode .card-metal .material-add-bar .material-source-bar{
  display:contents;
  grid-template-columns:unset;
  gap:unset;
  width:auto;
  max-width:none;
}
.material-add-bar .material-field,
.content.product-entry-mode .material-add-bar .material-field{
  min-width:0;
  max-width:none;
  width:auto;
  flex:unset;
}
.material-add-bar .material-field input,
.material-add-bar .material-field select,
.content.product-entry-mode .material-add-bar .material-field input,
.content.product-entry-mode .material-add-bar .material-field select,
.content.product-entry-mode .card-metal .material-add-bar .material-field input,
.content.product-entry-mode .card-metal .material-add-bar .material-field select{
  width:100%;
  min-width:0;
  height:34px;
  font-size:10px;
  font-weight:700;
}
.material-add-bar .material-add-button,
.content.product-entry-mode .card-metal .material-add-bar .material-add-button{
  align-self:end;
  justify-self:stretch;
  width:auto;
  min-width:36px;
  height:34px;
  padding:0 10px;
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
}
.material-row > .material-stock-helper{
  margin:4px 0 0;
}
.material-row > .material-line-cost{
  margin-top:6px;
}
.content.product-entry-mode .card-metal .material-row{
  padding:8px 10px;
}
.content.product-entry-mode .card-metal .material-row > .material-line-cost{
  font-size:8px;
  margin-top:5px;
  padding-top:5px;
}
@media(max-width:700px){
  .material-add-bar,
  .content.product-entry-mode .card-metal .material-add-bar{
    grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
  }
}

.catalogue-panel{
  border:1px solid #d8dde6;
  border-radius:20px;
  background:
    radial-gradient(900px 240px at 100% 0%, rgba(55,78,110,.10), transparent 55%),
    linear-gradient(180deg,#f7f8fb 0%,#eef1f6 100%);
  overflow:hidden;
}
.catalogue-heading-modern{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  padding:22px 22px 8px;
}
.catalogue-heading-modern h2{margin:4px 0 6px;font-size:28px;letter-spacing:-.03em;color:#152033}
.catalogue-heading-modern .subheading{margin:0;color:#667085;font-size:14px;max-width:42ch}
.ghost-refresh{
  min-height:40px;padding:0 16px;border:1px solid #cfd6e2;border-radius:12px;
  background:#fff;color:#405066;font-size:13px;font-weight:700;cursor:pointer;
}
.ghost-refresh:hover{background:#f3f5f9}
.stock-status-modern{
  display:flex;flex-wrap:wrap;gap:8px;padding:4px 22px 14px;
}
.stock-status-modern .stat-chip{
  display:inline-flex;align-items:baseline;gap:8px;
  padding:8px 12px;border-radius:12px;background:rgba(255,255,255,.88);
  border:1px solid #d8dde6;color:#1f2a3a;font-size:13px;
}
.stock-status-modern .stat-chip em{font-style:normal;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#6b778c}
.stock-status-modern .stat-chip strong{font-weight:750}
.stock-status-modern .stat-chip small{color:#6b778c}
.stock-status-modern .stat-chip.muted{opacity:.78}
.catalogue-toolbar{
  display:flex;flex-wrap:wrap;gap:12px;align-items:end;
  padding:0 22px 16px;
}
.catalogue-toolbar .segmented{
  display:inline-flex;gap:4px;padding:4px;border-radius:12px;
  background:#e4e9f1;border:1px solid #d0d7e2;
}
.catalogue-toolbar .segmented button,
#stockStatusFilters button{
  min-height:36px;padding:0 14px;border:0;border-radius:10px;
  background:transparent;color:#5b677a;font-size:12px;font-weight:700;cursor:pointer;
}
.catalogue-toolbar .segmented button:hover,
#stockStatusFilters button:hover{color:#152033}
.catalogue-toolbar .segmented button.active,
#stockStatusFilters button.active{
  background:#fff;color:#152033;
  box-shadow:0 1px 2px rgba(21,32,51,.08);
}
.catalogue-search-field{
  flex:1;min-width:220px;display:grid;gap:6px;margin:0;
  font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#6b778c;
}
.catalogue-search-field input{
  height:44px;padding:0 14px;border-radius:12px;border:1px solid #cfd6e2;
  background:#fff;color:#152033;font-size:15px;text-transform:none;letter-spacing:0;
}
.catalogue-toolbar-actions{display:flex;flex-wrap:wrap;gap:8px}
.soft-action{
  min-height:44px;padding:0 16px;border-radius:12px;border:1px solid #2c3f57;
  background:#24364d;color:#f4f7fb;font-size:13px;font-weight:700;cursor:pointer;
}
.soft-action:hover{background:#1b2a3d}
.soft-action-secondary{
  border-color:#cfd6e2;background:#fff;color:#405066;
}
.soft-action-secondary:hover{background:#f3f5f9}
.stock-search-console{
  margin:16px 16px 0;padding:14px;border:1px solid #ebe4d8;border-radius:18px;
  background:rgba(255,255,255,.72);backdrop-filter:blur(8px);
}
.stock-search-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.stock-search-head strong{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#6b655c}
.stock-search-clear{
  min-height:28px;padding:0 12px;border:0;border-radius:999px;
  background:transparent;color:#8a8172;font-size:12px;font-weight:700;cursor:pointer;text-decoration:underline;
}
.stock-search-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;align-items:start}
.stock-search-grid section{
  display:flex;flex-direction:column;gap:6px;min-width:0;padding:10px;
  border:1px solid #efeae2;border-radius:14px;background:#fff;
}
.stock-search-grid section.is-scroll{
  max-height:220px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;
  scrollbar-width:thin;
}
.stock-search-grid section.is-scroll h3{position:sticky;top:0;z-index:1;padding-bottom:4px;background:#fff}
.stock-search-grid h3{margin:0;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#8a8172}
.stock-search-grid button{
  display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:6px 8px;
  border:1px solid transparent;border-radius:12px;background:#faf8f4;color:#243044;
  font-size:12px;font-weight:700;text-align:left;cursor:pointer;
  transition:background .15s ease,border-color .15s ease;
}
.stock-search-grid button:hover{background:#f3ebe0;border-color:#e2d5c0}
.stock-search-grid button span{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.stock-search-grid button small{font-size:9px;font-weight:600;color:#8a8172}
.stock-search-grid button img{width:26px;height:26px;object-fit:contain;flex:0 0 26px}
.stock-search-swatch{width:18px;height:18px;border-radius:50%;border:1px solid rgba(0,0,0,.12);flex:0 0 18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.stock-search-grid button.is-selected{background:#f3ebe0;border-color:#d7c3a0;color:#6a4f28;font-weight:800}
.stock-search-empty{margin:0;color:#8a8172;font-size:12px}
@media(max-width:1100px){.stock-search-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.stock-search-grid{grid-template-columns:1fr 1fr}.catalogue-toolbar{align-items:stretch}}
.catalogue-panel thead th{padding:8px 6px;vertical-align:bottom}
/* ~15 product rows visible; scroll the right bar for the rest */
.catalogue-panel .table-scroll.catalogue-scroll{
  margin:0 16px 16px;
  max-height:min(68vh, 780px);
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid #ebe4d8;
  border-radius:18px;
  background:#fff;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:#c2b9ab #f6f2eb;
}
.catalogue-panel .table-scroll.catalogue-scroll::-webkit-scrollbar{width:12px;height:12px}
.catalogue-panel .table-scroll.catalogue-scroll::-webkit-scrollbar-track{background:#f6f2eb;border-radius:999px}
.catalogue-panel .table-scroll.catalogue-scroll::-webkit-scrollbar-thumb{
  background:#c2b9ab;border-radius:999px;border:3px solid #f6f2eb;
}
.catalogue-panel .table-scroll.catalogue-scroll::-webkit-scrollbar-thumb:hover{background:#a89f90}
.catalogue-panel .catalogue-scroll thead th{
  position:sticky;top:0;z-index:3;
  background:rgba(255,252,247,.96);
  backdrop-filter:blur(8px);
  box-shadow:0 1px 0 #ebe4d8;
}
.catalogue-panel .catalogue-scroll tbody tr{height:52px}
.catalogue-panel .catalogue-scroll tbody tr.stock-row td{height:52px}
.catalogue-panel .catalogue-scroll tbody tr.stock-row:hover td{background:#fbf8f2}
.stock-head-plain{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 8px;
  color:#8a8172;
  font-size:10px;
  font-weight:700;
  letter-spacing:.06em;
}
.stock-filter-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:28px;
  padding:0 10px;
  border:1px solid #e2dbd0;
  border-radius:999px;
  background:#fff;
  color:#2c3340;
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  cursor:pointer;
  box-shadow:none;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.stock-filter-button:hover{background:#f7f4ee;border-color:#cfc5b6}
.stock-filter-button.is-filtering{background:#f3ebe0;border-color:#c4a574;color:#6a4f28}
.stock-filter-button::after{content:"▾";opacity:.55;font-size:9px}
.stock-filter-menu{
  position:fixed;
  z-index:80;
  min-width:168px;
  max-width:min(280px,92vw);
  max-height:min(360px,50vh);
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:8px;
  border:1px solid #e0d8cc;
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 40px rgba(28,36,48,.14);
  scrollbar-width:thin;
}
.stock-filter-menu button{
  display:block;
  width:100%;
  min-height:36px;
  padding:8px 12px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#2c3340;
  font-size:13px;
  font-weight:600;
  text-align:left;
  cursor:pointer;
}
.stock-filter-menu button:hover{background:#f7f4ee;border-color:#e7e0d4}
.stock-filter-menu button.is-selected{
  background:#f3ebe0;border-color:#d7c3a0;color:#6a4f28;
}
.catalogue-panel .table-scroll table{border-collapse:collapse;width:100%}
.catalogue-panel .table-foot{
  display:flex;justify-content:space-between;gap:12px;padding:0 22px 18px;
  color:#8a8172;font-size:12px;
}
.catalogue-panel tbody tr.stock-row td{
  background:#fff;
  color:#243044;
  border:0;
  border-bottom:1px solid #e6e6e6;
  box-shadow:none;
  padding-top:4px;
  padding-bottom:4px;
}
.product-thumb-pair{display:flex;align-items:center;gap:8px}
.product-stock-code{color:#997a48;font-size:11px;font-weight:800;letter-spacing:.02em;white-space:nowrap}
.catalogue-panel tbody tr.stock-row .product-thumb-cell{
  width:auto;
  min-width:148px;
  padding:4px 8px 4px 8px;
}
.catalogue-panel tbody tr.stock-row .product-stock-thumbnail,
.catalogue-panel tbody tr.stock-row .product-thumb-placeholder{
  width:52px;
  height:52px;
  box-sizing:border-box;
  border:1px solid #e4e4e4;
  border-radius:4px;
  background:#fff;
  box-shadow:none;
}
.catalogue-panel tbody tr.stock-row-diamond .product-stock-thumbnail,
.catalogue-panel tbody tr.stock-row-diamond .product-thumb-placeholder{background:#edf7ff;border-color:#c9dfef}
.catalogue-panel tbody tr.stock-row-gold .product-stock-thumbnail,
.catalogue-panel tbody tr.stock-row-gold .product-thumb-placeholder{background:#fbf4e4;border-color:#dfca99}
.catalogue-panel tbody tr.stock-row-loose .product-stock-thumbnail,
.catalogue-panel tbody tr.stock-row-loose .product-thumb-placeholder{background:#f3f4fb;border-color:#d5d8ee}
.catalogue-panel tbody tr.stock-row-platinum .product-stock-thumbnail,
.catalogue-panel tbody tr.stock-row-platinum .product-thumb-placeholder{background:#eef1f4;border-color:#cfd5dd}
.catalogue-panel tbody tr.stock-row-silver .product-stock-thumbnail,
.catalogue-panel tbody tr.stock-row-silver .product-thumb-placeholder{background:#f4f6f8;border-color:#d7dfe8}
.barcode-ask{position:fixed;inset:0;z-index:80;display:grid;place-items:center;background:#11111166;padding:20px}
.barcode-ask-card{width:min(360px,100%);padding:22px;border-radius:8px;background:#fff;box-shadow:0 12px 40px #11111133}
.barcode-ask-card p{margin:0 0 16px;color:#1a1a1a;font-size:16px;font-weight:700}
.barcode-ask-card div{display:flex;justify-content:flex-end;gap:8px}

#stockStatusFilters button{border:1px solid #d4d0c8;background:#fff;padding:6px 12px;border-radius:6px;color:#3f3a34}
/* status chips styled above — keep light, not black */
.stock-row-sold{opacity:.72}
.stock-row-sold .product-stock-code{text-decoration:line-through}
.stock-status-summary strong{font-weight:600;margin-right:4px}
