*{box-sizing:border-box}body{margin:0;font-family:Arial,"Noto Sans Thai",sans-serif;background:#f3f5f7;color:#18212b}header{position:sticky;top:0;z-index:5;background:#17202a;color:#fff;padding:14px 22px;display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap}header small{display:block;color:#bfc8d2;margin-top:3px}nav{display:flex;gap:7px;flex-wrap:wrap}nav a{color:#fff;text-decoration:none;padding:7px 9px;border:1px solid #46515d;border-radius:6px;font-size:13px}main{max-width:1450px;margin:auto;padding:20px}footer{padding:20px;text-align:center;color:#6b7280}.card{background:#fff;border:1px solid #dce2e8;border-radius:10px;padding:16px;margin-bottom:15px}.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px}.c2{grid-column:span 2}.c3{grid-column:span 3}.c4{grid-column:span 4}.c6{grid-column:span 6}.c8{grid-column:span 8}.c12{grid-column:span 12}label{display:block;font-size:12px;font-weight:bold;margin-bottom:5px;color:#46505c}input,select,textarea{width:100%;padding:9px;border:1px solid #cfd6df;border-radius:7px;background:#fff}input[type=text]{text-transform:uppercase}.btn,button{display:inline-block;border:0;border-radius:7px;padding:9px 12px;font-weight:bold;text-decoration:none;cursor:pointer}.primary{background:#17202a;color:#fff}.secondary{background:#e7ebef;color:#17202a}.danger{background:#b73333;color:#fff}.warn{background:#f0c34e;color:#1f2937}.success{background:#2e7d4e;color:#fff}.table{overflow:auto}.table table{width:100%;border-collapse:collapse;min-width:900px}.table th,.table td{padding:8px;border-bottom:1px solid #edf0f3;text-align:left;font-size:12px}.table th{background:#f6f7f9;position:sticky;top:0}.pill{display:inline-block;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:bold}.green{background:#dcf3e3}.yellow{background:#fff0bb}.red{background:#ffdada}.blue{background:#dcecff}.muted{font-size:12px;color:#697586}.notice{padding:10px;border-radius:7px;margin:10px 0;background:#eef5ff;border:1px solid #cbdcf1}.bad{background:#fff0f0;border-color:#e3b2b2}.good{background:#edf9f0;border-color:#b8ddc1}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.kpi{background:#fff;border:1px solid #dce2e8;border-radius:9px;padding:14px}.kpi b{display:block;font-size:22px;margin-top:4px}.right{text-align:right}.inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hidden{display:none}.login{max-width:430px;margin:80px auto;background:#fff;border:1px solid #dce2e8;border-radius:12px;padding:25px}.login h1{margin-top:0}@media(max-width:850px){.c2,.c3,.c4,.c6,.c8{grid-column:span 12}.kpis{grid-template-columns:1fr 1fr}header{position:static}}@media print{header,footer,.no-print{display:none!important}main{padding:0}.card{border:0}}.spec-card{background:#f8fafc;border:1px solid #d8e0e8;border-radius:10px;padding:14px}.spec-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}.spec-head h3{margin:0 0 3px}.spec-section-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#607080;margin:14px 0 7px;padding-bottom:5px;border-bottom:1px solid #e4e9ee}.spec-grid{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:8px}.spec-item{background:#fff;border:1px solid #e3e8ed;border-radius:7px;padding:9px 10px;min-height:58px}.spec-item span{display:block;font-size:11px;color:#6b7280;margin-bottom:4px}.spec-item strong{font-size:13px;color:#18212b}.spec-grid.totals .spec-item{background:#f0f7f2}.full-spec-table table{min-width:3100px}.full-spec-table th{white-space:nowrap}.full-spec-table td{white-space:nowrap}@media(max-width:1000px){.spec-grid{grid-template-columns:repeat(2,minmax(135px,1fr))}}@media(max-width:600px){.spec-grid{grid-template-columns:1fr}.spec-head{display:block}.spec-head>div:last-child{margin-top:8px}}

.header-item-search{display:flex;gap:6px;align-items:center;min-width:260px;max-width:360px;flex:1}.header-item-search input{background:#fff;color:#18212b;text-transform:none}.header-item-search .btn{white-space:nowrap}.item-typeahead-menu{display:none;position:absolute;left:0;right:0;top:calc(100% + 3px);z-index:50;background:#fff;border:1px solid #cfd6df;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.14);max-height:330px;overflow:auto}.item-typeahead-menu.open{display:block}.item-typeahead-row{display:block;width:100%;text-align:left;border-radius:0;background:#fff;color:#18212b;border-bottom:1px solid #edf0f3;padding:10px 11px;font-weight:600}.item-typeahead-row:hover,.item-typeahead-row.active{background:#eef5ff}.item-typeahead-empty{padding:10px 11px;color:#6b7280;font-size:12px}.calc-warning{background:#fff7d6;border:1px solid #e7cc63;color:#554400}.calc-error{background:#fff0f0;border:1px solid #e3b2b2}.pure-calc-note{border-left:4px solid #2e7d4e}.search-hint{font-size:11px;color:#697586;margin-top:4px}@media(max-width:1050px){.header-item-search{order:3;max-width:none;width:100%}}

/* V5 New Order readability + display currency switch */
.currency-switch-box{margin:16px 0 4px;padding:12px 14px;border:1px solid #d8e0e8;border-radius:10px;background:#f8fafc;display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:8px 18px;align-items:center}.currency-switch-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.currency-btn{border:1px solid #cfd6df;background:#fff;color:#26313d;padding:8px 12px}.currency-btn.active{background:#17202a;color:#fff;border-color:#17202a}.fx-field{display:flex;align-items:center;gap:6px;margin:0 0 0 6px;white-space:nowrap}.fx-field input{width:90px;padding:7px 8px;text-transform:none}.currency-source{grid-column:1/-1;font-size:11px;color:#697586}.currency-preview{font-size:11px;color:#52606d;margin-top:4px;min-height:13px}.charged-title{color:#2f6541}.zero-title{color:#7a838d;margin-top:18px}.charged-grid .spec-item{border-left:3px solid #4f8a61}.zero-grid{grid-template-columns:repeat(6,minmax(120px,1fr))}.zero-grid .spec-item{background:#f7f8f9;border-color:#e8ebee;min-height:48px;padding:8px 9px}.zero-grid .spec-item span,.zero-grid .spec-item strong{color:#8a929b}.spec-item small{display:block;margin-top:4px;color:#6b7280;font-size:10px;line-height:1.25}.empty-cost-message{font-size:12px;color:#697586;padding:8px 0}.order-line-list{display:grid;gap:12px;margin:9px 0 14px}.empty-order-lines{padding:18px;border:1px dashed #cfd6df;border-radius:9px;color:#697586;text-align:center;background:#fafbfc}.order-line-card{border:1px solid #dce2e8;border-radius:10px;padding:13px;background:#fbfcfd}.order-line-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:9px;border-bottom:1px solid #e7ebef}.order-line-head>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.line-qty{font-size:12px;background:#edf1f5;border-radius:999px;padding:3px 8px}.line-metal-summary{display:grid;grid-template-columns:repeat(5,minmax(135px,1fr));gap:8px;margin-top:10px}.line-metal-summary .spec-item{min-height:52px}.line-cost-title,.line-zero-title{font-size:11px;text-transform:uppercase;letter-spacing:.04em;font-weight:700;margin:12px 0 6px}.line-cost-title{color:#2f6541}.line-zero-title{color:#7a838d}.line-cost-chips{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:7px}.cost-chip{background:#fff;border:1px solid #dfe6e1;border-left:3px solid #4f8a61;border-radius:7px;padding:8px}.cost-chip span{display:block;font-size:10px;color:#65716c}.cost-chip strong{display:block;font-size:12px;margin-top:2px}.cost-chip small{display:block;font-size:9px;color:#6b7280;margin-top:3px}.line-zero-chips{display:flex;gap:6px;flex-wrap:wrap}.line-zero-chips span{font-size:10px;color:#7f8790;background:#f0f2f4;border:1px solid #e1e5e8;border-radius:999px;padding:4px 7px}.order-total-box{font-size:16px}.order-total-box #orderTotal{font-size:18px}@media(max-width:1100px){.zero-grid{grid-template-columns:repeat(3,minmax(120px,1fr))}.line-metal-summary{grid-template-columns:repeat(3,minmax(130px,1fr))}.line-cost-chips{grid-template-columns:repeat(2,minmax(150px,1fr))}}@media(max-width:700px){.currency-switch-box{grid-template-columns:1fr}.currency-switch-controls{justify-content:flex-start}.zero-grid,.line-metal-summary,.line-cost-chips{grid-template-columns:1fr}.fx-field{margin-left:0}.order-line-head{align-items:flex-start}}

/* V8 shared Admin/Factory invoice workflow */
.workflow-steps{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.workflow-steps span{background:#f6f8fa;border:1px solid #dfe4e9;border-radius:8px;padding:9px 11px;font-size:12px;font-weight:700}.workflow-steps b{color:#8a949f}.invoice-entry-card{border-left:4px solid #718096}.invoice-edit-grid{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr));gap:8px}.invoice-field{background:#fafbfc;border:1px solid #e2e7ec;border-radius:8px;padding:9px}.invoice-field label{margin:0 0 6px}.invoice-field label small{display:block;font-size:10px;font-weight:400;color:#7b8794;margin-top:3px}.invoice-field input{background:#fff}.invoice-calc-strip{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:8px;margin-top:13px}.invoice-calc-strip>div{background:#f6f8fa;border:1px solid #dfe5ea;border-radius:8px;padding:10px}.invoice-calc-strip span{display:block;font-size:10px;color:#6f7a85;text-transform:uppercase;letter-spacing:.04em}.invoice-calc-strip strong{display:block;margin-top:4px;font-size:14px}.cost-up,.compare-up{color:#a62f2f}.cost-down,.compare-down{color:#267343}.compare-table{overflow:auto}.compare-table table{width:100%;border-collapse:collapse;min-width:760px}.compare-table th,.compare-table td{padding:8px 10px;border-bottom:1px solid #e9edf0;font-size:12px}.compare-table th{background:#f6f8fa;text-align:left}.compare-table tr.compare-up td{background:#fff2f2;color:#18212b}.compare-table tr.compare-down td{background:#f1faf3;color:#18212b}.compare-table tr.compare-changed td{background:#fff9e8;color:#18212b}.compare-table tr.compare-same td{color:#65717d}.comparison-card{overflow:hidden}.order-reference-card{border-left:4px solid #34495e}@media(max-width:1100px){.invoice-edit-grid{grid-template-columns:repeat(3,minmax(140px,1fr))}.invoice-calc-strip{grid-template-columns:repeat(2,minmax(140px,1fr))}}@media(max-width:700px){.invoice-edit-grid,.invoice-calc-strip{grid-template-columns:1fr}.workflow-steps b{display:none}}

/* V11 two-window item picker */
.item-picker-shell{border:1px solid #dce2e8;border-radius:10px;background:#f8fafc;padding:12px;margin-bottom:8px}.item-picker-search-window{background:#fff;border:1px solid #d7dee6;border-radius:8px;padding:11px;margin-bottom:10px}.item-picker-list-window{background:#fff;border:1px solid #d7dee6;border-radius:8px;padding:11px}.item-picker-bottom-row{align-items:start}.item-picker-list{width:100%;min-height:188px;padding:0;border:1px solid #cfd6df;border-radius:7px;background:#fff;font-size:13px}.item-picker-list option{padding:8px 10px;border-bottom:1px solid #eef1f4}.item-picker-list option:checked{font-weight:700}.item-picker-list:focus{outline:2px solid #9dbbe0;outline-offset:1px}.item-picker-search-window input{font-size:14px}.item-add-btn{width:100%}.compact-picker{margin:0}.compact-picker .item-picker-list{min-height:180px}@media(max-width:850px){.item-picker-list{min-height:160px}}
/* V12 compact invoice comparison */
.compact-review-card{padding-bottom:14px}.review-line-title{margin-top:14px;font-size:11px;font-weight:800;letter-spacing:.06em;color:#52606d;display:flex;align-items:center;gap:7px}.review-line-title span{font-size:10px;border-radius:999px;padding:2px 7px;background:#eef2f5}.matched-title{color:#2f6f4e}.unmatched-title{color:#a03636}.comment-title{color:#6d5b2d}.spec-one-line{display:flex;gap:7px;align-items:center;overflow-x:auto;white-space:nowrap;padding:8px 2px 10px;scrollbar-width:thin}.compact-spec-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid #dce3e8;border-radius:7px;padding:7px 9px;background:#fff;font-size:11px;flex:0 0 auto}.compact-spec-chip b{font-size:11px}.compact-spec-chip.match{background:#f2faf5;border-color:#d6eadf;color:#345f48}.compact-spec-chip.mismatch{background:#fff5f5;border-color:#efcece;color:#1b252e}.compact-spec-chip.mismatch.compare-down{background:#f2faf5;border-color:#d1e7d8}.compact-spec-chip.mismatch.compare-changed{background:#fff9e9;border-color:#ecdfb7}.compact-spec-chip .arrow{color:#8a949e}.compact-spec-chip em{font-style:normal;font-weight:800;color:#a52d2d;margin-left:3px}.compact-spec-chip.compare-down em{color:#267343}.compact-spec-chip.compare-changed em{color:#8a6b15}.all-match-text{font-size:12px;font-weight:700;color:#2f6f4e}.mismatch-comments{margin-top:6px;border-top:1px solid #edf0f2;padding-top:2px}.diff-comment-row{display:grid;grid-template-columns:minmax(220px,32%) 1fr;gap:10px;align-items:center;padding:7px 0;border-bottom:1px solid #edf0f2}.diff-comment-row:last-child{border-bottom:0}.diff-comment-row label{margin:0}.diff-comment-row label small{display:block;color:#7b8794;font-weight:400;margin-top:2px}.diff-comment-row input{width:100%;background:#fff}.factory-field-feedback{margin-top:12px;padding:11px;border:1px solid #efcaca;background:#fff6f6;border-radius:8px}.factory-field-feedback>strong{display:block;margin-bottom:7px}.factory-field-feedback>div{display:grid;grid-template-columns:180px 1fr;gap:10px;padding:6px 0;border-top:1px solid #f0dddd}.factory-field-feedback>div:first-of-type{border-top:0}.factory-field-feedback span{color:#4f5963}@media(max-width:700px){.diff-comment-row{grid-template-columns:1fr}.factory-field-feedback>div{grid-template-columns:1fr}.spec-one-line{padding-bottom:12px}}

/* V13 global left operation sidebar */
body.with-sidebar{background:#f3f5f7;min-height:100vh}
.app-sidebar{position:fixed;inset:0 auto 0 0;width:246px;background:#17202a;color:#fff;z-index:30;display:flex;flex-direction:column;border-right:1px solid #2c3742;box-shadow:4px 0 18px rgba(15,23,42,.08)}
.sidebar-brand{padding:20px 17px 15px;border-bottom:1px solid #303b46}
.sidebar-brand strong{display:block;font-size:16px;line-height:1.2}
.sidebar-brand small{display:block;color:#aeb8c2;font-size:11px;margin-top:5px}
.sidebar-item-search{padding:13px 12px;border-bottom:1px solid #303b46;position:relative}
.sidebar-item-search label{color:#bfc8d2;font-size:10px;text-transform:uppercase;letter-spacing:.055em;margin-bottom:6px}
.sidebar-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
.sidebar-item-search input{min-width:0;padding:8px 9px;font-size:12px;text-transform:none;border-color:#46515d;background:#fff}
.sidebar-item-search .btn{padding:8px 9px;font-size:11px}
.sidebar-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:10px 8px;scrollbar-width:thin;scrollbar-color:#596572 #17202a}
.sidebar-scroll::-webkit-scrollbar{width:8px}.sidebar-scroll::-webkit-scrollbar-track{background:#17202a}.sidebar-scroll::-webkit-scrollbar-thumb{background:#596572;border-radius:10px;border:2px solid #17202a}
.sidebar-nav{display:flex;flex-direction:column;gap:4px}
.sidebar-nav a,.sidebar-bottom a{display:flex;align-items:center;gap:10px;color:#dfe6ed;text-decoration:none;border:1px solid transparent;border-radius:8px;padding:10px 11px;font-size:13px;font-weight:600;transition:.15s ease}
.sidebar-nav a:hover,.sidebar-bottom a:hover{background:#222e39;color:#fff;border-color:#34414d}
.sidebar-nav a.active{background:#fff;color:#17202a;border-color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.13)}
.nav-icon{display:grid;place-items:center;width:21px;min-width:21px;height:21px;font-size:13px;font-weight:800}
.sidebar-bottom{padding:9px 8px 14px;border-top:1px solid #303b46;display:grid;gap:4px;background:#17202a}
.app-shell{margin-left:246px;min-height:100vh;display:flex;flex-direction:column}
.content-header{position:sticky;top:0;z-index:10;background:rgba(243,245,247,.96);backdrop-filter:blur(8px);border-bottom:1px solid #dde3e8;padding:17px 24px 12px}
.content-header-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#7a8590;font-weight:700;margin-bottom:2px}
.content-header h1{margin:0;font-size:25px;line-height:1.15;color:#18212b}
body.with-sidebar main{width:100%;max-width:1450px;margin:0 auto;padding:20px 24px 28px}
body.with-sidebar footer{margin-top:auto;padding:18px 24px;text-align:center;color:#6b7280}
.mobile-menu-toggle{display:none;position:fixed;left:12px;top:12px;z-index:45;width:42px;height:42px;border-radius:9px;background:#17202a;color:#fff;border:1px solid #36414c;font-size:20px;padding:0;box-shadow:0 4px 16px rgba(0,0,0,.15)}
.sidebar-backdrop{display:none}
/* neutralize old top header/nav rules when sidebar layout is active */
body.with-sidebar>header{display:none}
body.with-sidebar .header-item-search{display:none}
@media(max-width:900px){
  .app-sidebar{transform:translateX(-100%);transition:transform .2s ease;width:min(280px,86vw)}
  body.sidebar-open .app-sidebar{transform:translateX(0)}
  .sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:25;opacity:0;pointer-events:none;transition:opacity .2s ease}
  body.sidebar-open .sidebar-backdrop{opacity:1;pointer-events:auto}
  .mobile-menu-toggle{display:block}
  .app-shell{margin-left:0}
  .content-header{padding:17px 18px 12px 66px}
  body.with-sidebar main{padding:16px}
}
@media print{
  .app-sidebar,.mobile-menu-toggle,.sidebar-backdrop,.content-header{display:none!important}
  .app-shell{margin-left:0!important}
  body.with-sidebar main{max-width:none;padding:0}
}

/* V15 item image library + automatic Item Code matching */
.item-thumb{width:58px;height:58px;object-fit:cover;border-radius:8px;border:1px solid #dce2e8;background:#fff;display:block}
.item-thumb-placeholder{width:58px;height:58px;border-radius:8px;border:1px dashed #d5dce3;display:grid;place-items:center;color:#9aa3ad;background:#fafbfc}
.item-image-gallery{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-start}
.item-image-gallery img{width:130px;height:130px;object-fit:contain;border:1px solid #dce2e8;border-radius:9px;background:#fff;display:block}
.gallery-image-wrap{position:relative;display:flex;flex-direction:column;gap:4px;max-width:150px}
.gallery-image-wrap small{font-size:9px;color:#697586;overflow-wrap:anywhere}
.image-delete-btn{position:absolute;right:5px;top:5px;width:25px;height:25px;padding:0;border-radius:50%;background:#b73333;color:#fff;line-height:25px;font-size:17px;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.no-item-image{min-height:100px;border:1px dashed #d6dde5;border-radius:9px;background:#fafbfc;display:grid;place-items:center;color:#87919c;font-size:12px}
.item-image-upload-form input[type=file]{max-width:540px}
.image-product-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:12px;margin-top:14px}
.image-product-card{border:1px solid #dce2e8;border-radius:10px;padding:11px;background:#fafbfc;min-width:0}
.image-product-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}
.image-product-head small{color:#697586}
.image-product-card .item-image-gallery{gap:6px}
.image-product-card .item-image-gallery img{width:86px;height:86px}
.loose-gallery .gallery-image-wrap{padding:7px;border:1px solid #e0e5ea;border-radius:9px;background:#fafbfc}
.item-product-image{display:block;object-fit:contain;background:#fff;border:1px solid #dce2e8;border-radius:9px;flex:0 0 auto}
.item-product-image.large{width:92px;height:92px}
.item-product-image.thumb{width:50px;height:50px}
.item-product-image-placeholder{display:grid;place-items:center;background:#f2f4f6;border:1px dashed #cbd3db;color:#8b949e;font-size:9px;font-weight:700;border-radius:9px;flex:0 0 auto}
.item-product-image-placeholder.large{width:92px;height:92px}
.item-product-image-placeholder.thumb{width:50px;height:50px}
.image-spec-title{display:flex;align-items:center;gap:12px;min-width:0}
.image-spec-title>div:last-child{min-width:0}
.line-title-with-image{display:flex!important;align-items:center!important;gap:9px!important}
.line-title-with-image>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.product-image-panel{border-left:4px solid #587895}
@media(max-width:1000px){.image-product-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}}
@media(max-width:650px){.image-product-grid{grid-template-columns:1fr}.item-product-image.large,.item-product-image-placeholder.large{width:72px;height:72px}.image-spec-title{align-items:flex-start}.item-image-gallery img{width:105px;height:105px}}

/* V20 always-visible Admin approve/reject controls */
.admin-decision-dock{position:fixed;left:266px;right:20px;bottom:18px;z-index:24;background:#fff;border:2px solid #ccd5de;border-radius:12px;box-shadow:0 10px 30px rgba(15,23,42,.18);padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.decision-dock-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.decision-dock-copy strong{font-size:14px;letter-spacing:.04em;color:#18212b}.decision-dock-copy span{font-size:11px;color:#66727e}
.decision-dock-actions,.decision-bottom-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:360px}
.decision-btn{border:0;border-radius:9px;padding:14px 26px;font-size:15px;font-weight:900;letter-spacing:.04em;color:#fff;cursor:pointer;box-shadow:0 3px 8px rgba(0,0,0,.14)}
.decision-btn.approve{background:#16834b}.decision-btn.approve:hover{background:#106b3c}.decision-btn.reject{background:#c73535}.decision-btn.reject:hover{background:#a92525}
.admin-decision-card{margin-bottom:95px}.decision-bottom-actions{margin-top:12px;max-width:620px}.decision-bottom-actions .decision-btn{min-height:52px}
.simple-review-status{margin-bottom:12px}
body.with-sidebar main:has(.admin-decision-dock){padding-bottom:120px}
@media(max-width:900px){.admin-decision-dock{left:12px;right:12px;bottom:12px;padding:10px;gap:8px}.decision-dock-copy span{display:none}.decision-dock-actions{min-width:0;flex:1}.decision-btn{padding:13px 14px;font-size:13px}.admin-decision-card{margin-bottom:105px}}
@media(max-width:560px){.admin-decision-dock{align-items:stretch;flex-direction:column}.decision-dock-copy{display:none}.decision-dock-actions{width:100%;grid-template-columns:1fr 1fr}.decision-bottom-actions{min-width:0;width:100%}}
@media print{.admin-decision-dock{display:none!important}}

/* V21 New Review */
.new-review-add-box{margin-top:16px;padding:16px;border:1px solid #e4c66a;border-radius:12px;background:#fffaf0}
.new-review-line{border-color:#e4c66a;background:#fffdf7}
.new-review-line .pill{margin-left:8px}


/* V24 balanced Factory invoice action */
.factory-invoice-action{display:inline-flex;align-items:center;gap:12px;min-width:430px;max-width:540px;min-height:58px;padding:11px 15px;border-radius:12px;text-decoration:none;border:2px solid #c94e00;box-shadow:0 5px 14px rgba(15,23,42,.15);transition:transform .14s ease,box-shadow .14s ease,background .14s ease;line-height:1.15}
.factory-invoice-action:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.18)}
.factory-invoice-action.create,.factory-invoice-action.edit{background:linear-gradient(135deg,#ff8a00 0%,#ff6a00 100%);color:#fff}
.factory-invoice-action.create:hover,.factory-invoice-action.edit:hover{background:linear-gradient(135deg,#ff9519 0%,#ff7412 100%)}
.factory-invoice-action.view{background:linear-gradient(135deg,#286ee8 0%,#0d58d0 100%);color:#fff;border-color:#0849ad}
.factory-invoice-action.view:hover{background:linear-gradient(135deg,#3a7bef 0%,#1b66de 100%)}
.factory-invoice-action-icon{display:grid;place-items:center;width:38px;height:38px;min-width:38px;border-radius:9px;background:rgba(255,255,255,.20);font-size:20px;font-weight:900}
.factory-invoice-action.view .factory-invoice-action-icon{background:rgba(255,255,255,.20);border:none}
.factory-invoice-action-copy{display:flex;flex-direction:column;gap:3px;min-width:0;text-align:left;flex:1}
.factory-invoice-action-copy strong{font-size:16px;font-weight:900;letter-spacing:.015em}
.factory-invoice-action-copy small{font-size:11px;font-weight:700;opacity:.96;white-space:normal}
.factory-invoice-action-arrow{margin-left:auto;font-size:22px;font-weight:900;line-height:1}
@media(max-width:650px){.factory-invoice-action{width:100%;min-width:0;max-width:none;min-height:56px;padding:11px 13px;gap:10px}.factory-invoice-action-icon{width:36px;height:36px;min-width:36px;font-size:19px}.factory-invoice-action-copy strong{font-size:15px}.factory-invoice-action-copy small{font-size:10px}.factory-invoice-action-arrow{font-size:21px}}


/* V26 Admin full backup */
.backup-hero{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid #d8e0e7;border-radius:12px;background:#f8fafc}
.backup-icon{display:grid;place-items:center;width:54px;height:54px;min-width:54px;border-radius:14px;background:#17212b;color:#fff;font-size:28px;font-weight:900}
.backup-content-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.backup-download-btn{display:inline-flex;align-items:center;gap:13px;min-width:330px;padding:14px 20px;border:0;border-radius:11px;background:#17212b;color:#fff;cursor:pointer;text-align:left;box-shadow:0 4px 10px rgba(15,23,42,.18)}
.backup-download-btn:hover{background:#243140}
.backup-download-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:rgba(255,255,255,.12);font-size:22px;font-weight:900}
.backup-download-btn>span:last-child{display:flex;flex-direction:column;gap:2px}
.backup-download-btn strong{font-size:14px}
.backup-download-btn small{font-size:11px;opacity:.8}
@media(max-width:650px){.backup-content-grid{grid-template-columns:1fr}.backup-download-btn{width:100%;min-width:0}}


/* V27 product action spacing */
.action-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.action-group form{margin:0}
.action-group .btn{margin:0}


/* V28 Change Request controls */
.change-request-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px}
.change-request-new-btn{display:inline-flex;align-items:center;gap:12px;min-width:260px;padding:13px 17px;border-radius:11px;background:#17212b;color:#fff;text-decoration:none;box-shadow:0 4px 12px rgba(15,23,42,.14)}
.change-request-new-btn:hover{background:#253342;transform:translateY(-1px)}
.change-request-plus{display:grid;place-items:center;width:34px;height:34px;min-width:34px;border-radius:8px;background:#ff7a00;color:#fff;font-size:24px;font-weight:900;line-height:1}
.change-request-new-btn>span:last-child{display:flex;flex-direction:column;gap:2px}
.change-request-new-btn strong{font-size:13px;font-weight:900}
.change-request-new-btn small{font-size:10px;opacity:.78}
.change-request-empty{text-align:center;padding:46px 20px}
.change-request-empty-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 12px;border-radius:50%;background:#eef2f5;color:#647381;font-size:28px;font-weight:900}
.change-request-empty h2{margin:0 0 8px}
.change-request-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.change-request-actions button{min-width:82px}
@media(max-width:750px){.change-request-toolbar{align-items:stretch;flex-direction:column}.change-request-new-btn{width:100%;min-width:0}.change-request-actions{flex-direction:column;align-items:stretch}.change-request-actions button{width:100%}}


/* V29 selected product display for Change Requests */
.selected-product-panel{height:100%;min-height:170px;border:2px solid #cfd8e1;border-radius:12px;background:#fff;padding:14px}
.selected-product-panel.empty{background:#f8fafc;border-style:dashed}
#selectedProductEmpty{display:flex;align-items:center;justify-content:center;gap:12px;min-height:140px;text-align:left}
.selected-product-empty-icon{display:grid;place-items:center;width:42px;height:42px;min-width:42px;border-radius:50%;background:#e9eef3;color:#6a7885;font-size:20px;font-weight:900}
.selected-product-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:9px;margin-bottom:12px;border-bottom:1px solid #e5e9ed;text-transform:uppercase;font-size:10px;font-weight:900;letter-spacing:.06em;color:#63717e}
.selected-product-main{display:flex;align-items:center;gap:14px}
.selected-product-image-wrap{flex:0 0 auto}
.selected-product-info{min-width:0;flex:1}
.selected-product-info>strong{display:block;font-size:18px;margin-bottom:5px;color:#17212b}
.selected-product-labor{display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:125px}
.selected-product-labor span{font-size:10px;text-transform:uppercase;color:#687581;font-weight:800}
.selected-product-labor strong{font-size:18px;color:#17212b}
.btn.small{padding:7px 10px;font-size:11px}
.simulation-tools-card h2{margin:0 0 12px}.simulation-tool-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.simulation-tool-actions .btn{padding:6px 9px;border-radius:6px;font-size:11px;line-height:1.25;min-height:0}.simulation-tool-actions .muted{margin-left:2px}
.product-entry-sheet .grid{grid-template-columns:repeat(24,minmax(0,1fr));gap:0;border-top:1px solid #cfd8e3;border-left:1px solid #cfd8e3;margin:12px 0}.product-entry-sheet .c2,.product-entry-sheet .c3{grid-column:span 4}.product-entry-sheet .c6{grid-column:span 8}.product-entry-sheet .grid>div{border-right:1px solid #cfd8e3;border-bottom:1px solid #cfd8e3;background:#fff;min-width:0}.product-entry-sheet .grid label{margin:0;padding:4px 7px;background:#e9eef4;border-bottom:1px solid #cfd8e3;color:#223044;font-size:10px;min-height:24px;line-height:16px}.product-entry-sheet .grid input,.product-entry-sheet .grid select{border:0;border-radius:0;padding:5px 7px;background:#fff;min-height:31px;height:31px;font-size:13px}.product-entry-sheet .grid input[type=number]{font-variant-numeric:tabular-nums}.product-entry-sheet .grid input:focus{position:relative;z-index:1;outline:2px solid #2f6fed;outline-offset:-2px}.product-entry-sheet .grid .muted,.product-entry-sheet .grid small{display:block;padding:0 7px 5px;font-size:10px}.product-entry-sheet .bulk-variant-cell{background:#fff9df!important}.product-entry-sheet .bulk-variant-cell label{background:#fff0b8}.product-entry-sheet .bulk-variant-cell small{color:#725b00;padding-top:4px;line-height:1.25}.product-entry-sheet>button{margin-top:2px}@media(max-width:1100px) and (min-width:851px){.product-entry-sheet .c2,.product-entry-sheet .c3{grid-column:span 6}.product-entry-sheet .c6{grid-column:span 12}}@media(max-width:850px){.product-entry-sheet .grid{display:block}.product-entry-sheet .grid>div{width:100%}}
@media(max-width:750px){.selected-product-main{align-items:flex-start;flex-wrap:wrap}.selected-product-labor{width:100%;align-items:flex-start}.selected-product-panel{min-height:140px}}

/* V30 production polish */
html{scroll-behavior:smooth}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;text-rendering:optimizeLegibility}
button,input,select,textarea{font:inherit}
button,.btn,a{touch-action:manipulation}
:focus-visible{outline:3px solid rgba(37,99,235,.35);outline-offset:2px}
.account-card{max-width:640px;margin-inline:auto}
.account-card form{display:grid;gap:10px}
.account-card .btn{margin-top:8px;justify-self:start}
.sidebar-nav a,.sidebar-bottom a{min-height:44px}
.content-header{box-shadow:0 1px 0 rgba(15,23,42,.04)}
.card{box-shadow:0 1px 3px rgba(15,23,42,.05)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Automatic market currency windows */
.market-currency-windows{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.market-currency-window{border:1px solid #d8e0e7;border-radius:12px;padding:15px;background:#f8fafc}
.market-currency-window.yen-window{background:#f7f9ff;border-color:#ccd8f0}
.market-window-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.market-window-head h3{margin:0;font-size:17px}.market-window-head span{font-size:11px;font-weight:800;color:#66727e}
@media(max-width:760px){.market-currency-windows{grid-template-columns:1fr}}
.daily-product-rate{margin-bottom:14px}.daily-cog-value{display:flex;flex-direction:column;gap:2px;white-space:nowrap}.daily-cog-value strong{font-size:13px}.daily-cog-value span{font-size:9px;font-weight:700;color:#718096}
.rate-lock-note{display:block;margin-top:5px;color:#64748b;font-size:10px;font-weight:600}
.market-reference-card{background:linear-gradient(145deg,#fff 0%,#f8fbff 100%);border-top:4px solid #2563eb!important}.market-reference-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.market-reference-kicker{display:block;color:#2563eb;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-bottom:3px}.market-reference-head h2{margin:0}.market-reference-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.market-reference-rate{padding:12px;border:1px solid #d8e3ee;border-radius:10px;background:#fff;display:flex;flex-direction:column;gap:3px}.market-reference-rate>span{font-size:10px;text-transform:uppercase;font-weight:900;color:#64748b}.market-reference-rate>strong{font-size:17px;color:#0f172a}.market-reference-rate>small{font-size:10px;color:#64748b}.market-reference-rate.gold{border-color:#ead9a2;background:#fffdf5}.market-reference-rate.royal{border-color:#d9cff0;background:#fbf9ff}.market-reference-fx{display:flex;align-items:center;gap:10px;margin-top:10px;padding:9px 11px;border-radius:9px;background:#eaf2ff;color:#334155;font-size:11px}.market-reference-fx>strong{margin-left:auto;color:#172554}.rate-input-panel{padding:10px;border:1px solid #dce5ee;border-radius:10px;background:#fbfdff}.rate-field-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px}.rate-field-meta small{color:#475569;font-weight:800}.rate-difference{display:inline-flex;padding:3px 7px;border-radius:99px;font-size:9px;font-weight:900}.rate-difference.same{background:#dcfce7;color:#166534}.rate-difference.higher{background:#fee2e2;color:#991b1b}.rate-difference.lower{background:#fef3c7;color:#92400e}.auto-fx-field input{background:#eef4fb;color:#0f172a;font-weight:900;cursor:not-allowed}.auto-fx-field .pill{margin-right:3px}@media(max-width:700px){.market-reference-grid{grid-template-columns:1fr}.market-reference-fx{flex-wrap:wrap}.market-reference-fx>strong{margin-left:0}}
.rate-warning{grid-template-columns:auto 1fr;align-items:center;column-gap:20px;margin:14px 0 24px!important;padding:14px 17px!important;background:#fff1f2!important;border:1px solid #fecaca!important;border-left:5px solid #dc2626!important;color:#991b1b!important;box-shadow:0 2px 8px rgba(220,38,38,.08)}.rate-warning strong{white-space:nowrap;padding-right:18px;border-right:1px solid #fca5a5;color:#b91c1c}.rate-warning span{font-weight:700;line-height:1.4}.order-note-field{margin-top:6px;margin-bottom:14px}@media(max-width:620px){.rate-warning{grid-template-columns:1fr;row-gap:7px}.rate-warning strong{padding-right:0;padding-bottom:6px;border-right:0;border-bottom:1px solid #fca5a5}}
#productResultList option{cursor:pointer;padding:9px 10px}
.selected-quantity-item{border-color:#8fc6a2!important;background:#eaf7ee!important}.selected-quantity-item label{font-size:11px;color:#476452;margin-bottom:5px}.selected-quantity-item input{max-width:150px;padding:7px 9px;font-weight:800;background:#fff}.selected-quantity-item small{display:block;margin-top:4px;color:#607568}

/* Compact product rows for orders containing many items */
.order-line-card .line-metal-summary{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.order-line-card .line-metal-summary .spec-item{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;min-height:0;padding:5px 8px;border-radius:999px;background:#eef2f5;border-color:#dfe5ea}.order-line-card .line-metal-summary .spec-item span{display:inline;margin:0;font-size:10px}.order-line-card .line-metal-summary .spec-item strong{font-size:11px}.order-line-card .line-cost-title,.order-line-card .line-zero-title{margin:9px 0 5px}.order-line-card .line-cost-chips{display:flex;flex-wrap:wrap;gap:6px}.order-line-card .cost-chip{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;padding:5px 8px;border-left-width:2px;border-radius:999px;background:#f2f8f4}.order-line-card .cost-chip span,.order-line-card .cost-chip strong{display:inline;margin:0;font-size:10px}.order-line-card .cost-chip small{display:inline;margin:0;font-size:9px}.order-line-card .line-zero-chips span{padding:3px 7px}.order-line-card{padding:10px 12px}.order-line-head{padding-bottom:7px}
.order-line-card .line-metal-summary{padding:8px;border:1px solid #e7c95d;border-radius:8px;background:#fff8d8}.order-line-card .line-metal-summary .spec-item{background:#fffdf2;border-color:#eadb9b}.order-line-card .line-cost-chips{padding:8px;border:1px solid #91c7a1;border-radius:8px;background:#edf9f0}.order-line-card .cost-chip{background:#fff;border-color:#78b68b}.line-qty-control{display:inline-flex;align-items:center;overflow:hidden;border:1px solid #cbd5df;border-radius:999px;background:#f4f6f8}.line-qty-control button{width:27px;height:25px;padding:0;border-radius:0;background:#e2e8ee;color:#17202a;font-size:17px;line-height:1}.line-qty-control button:hover{background:#cdd8e2}.line-qty-control strong{min-width:48px;padding:0 7px;text-align:center;font-size:11px}
.order-line-list{gap:28px}.order-line-card{box-shadow:0 3px 9px rgba(15,23,42,.06)}

/* Compact locked-order reference: optimized for many products */
.order-reference-card{padding:10px 12px!important;margin-bottom:12px!important;border-left-width:3px!important}.order-reference-card .spec-head{align-items:center;margin-bottom:7px;padding-bottom:7px;border-bottom:1px solid #e2e8ee}.order-reference-card .item-product-image.large,.order-reference-card .item-product-image-placeholder.large{width:48px;height:48px;border-radius:6px}.order-reference-card .image-spec-title{gap:9px}.order-reference-card .image-spec-title h2{font-size:16px!important}.order-reference-card .image-spec-title .muted{font-size:10px}.order-reference-card .spec-section-title{display:none}.order-reference-card .spec-grid{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 7px}.order-reference-card .spec-grid .spec-item{display:inline-flex;align-items:center;gap:5px;flex:1 1 180px;min-height:0;padding:6px 8px;background:#fff8d8;border-color:#ead37a}.order-reference-card .spec-grid .spec-item span,.order-reference-card .spec-grid .spec-item strong,.order-reference-card .spec-grid .spec-item small{display:inline;margin:0;font-size:10px}.order-reference-card .line-cost-chips{display:flex;flex-wrap:wrap;gap:5px;padding:7px;border:1px solid #9acbaa;border-radius:7px;background:#edf9f0}.order-reference-card .cost-chip{display:inline-flex;align-items:center;gap:4px;min-height:0;padding:4px 7px;border-radius:999px;background:#fff;border:1px solid #82bd94}.order-reference-card .cost-chip span,.order-reference-card .cost-chip strong,.order-reference-card .cost-chip small{display:inline;margin:0;font-size:9px}@media(max-width:700px){.order-reference-card .spec-grid .spec-item{flex:1 1 140px}}
.legacy-order-card{display:none!important}.locked-order-sheet{padding:0;overflow:hidden}.locked-order-sheet .table{overflow:auto}.locked-order-table{min-width:1180px!important;border-collapse:collapse}.locked-order-table th{position:static!important;background:#17202a!important;color:#fff;padding:9px 8px!important;font-size:10px!important;text-transform:uppercase;letter-spacing:.03em;border:1px solid #344150!important}.locked-order-table td{padding:8px!important;border:1px solid #d9e0e6!important;vertical-align:top;font-size:11px!important;background:#fff}.locked-order-table tbody tr:nth-child(even) td{background:#f7f9fb}.locked-order-table td strong{display:block;font-size:11px}.locked-order-table td small{display:block;margin-top:3px;color:#64748b;font-size:9px}.locked-order-table .sheet-number{text-align:center;font-weight:900;background:#edf2f7!important}.locked-order-table .sheet-item{min-width:150px}.locked-order-table .sheet-total{font-weight:900;background:#fff8d8!important}.sheet-costs{min-width:300px}.sheet-costs span{display:inline-block;margin:0 5px 4px 0;padding:3px 6px;border:1px solid #9acbaa;border-radius:4px;background:#edf9f0;font-size:9px;white-space:nowrap}.sheet-costs em{color:#7b8794;font-style:normal}@media print{.locked-order-sheet{border:0!important}.locked-order-table{min-width:100%!important}.locked-order-table th,.locked-order-table td{font-size:8px!important;padding:4px!important}.sheet-costs span{font-size:7px;padding:2px 3px}}
.sheet-item-wrap{display:flex;align-items:center;gap:7px}.sheet-item-wrap img,.sheet-no-image{width:38px;height:38px;flex:0 0 38px;border:1px solid #d7dfe7;border-radius:4px;background:#fff;object-fit:contain}.sheet-no-image{display:grid;place-items:center;color:#9aa5b1}.sheet-item-wrap>div{min-width:0}
.order-hero-grid{align-items:stretch}.order-hero-grid>.card{margin-bottom:14px}.locked-order-overview{padding:20px;border-top:4px solid #17202a;background:linear-gradient(145deg,#fff 0%,#f7fafc 100%)}.order-hero-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.order-hero-heading h2,.order-email-card h2{margin:3px 0 0}.order-eyebrow{display:block;font-size:9px;font-weight:900;letter-spacing:.09em;color:#64748b}.locked-order-metrics{display:grid;grid-template-columns:1.35fr 1fr 1fr 1.15fr;gap:8px;margin-top:18px}.locked-order-metrics>div{padding:10px;border:1px solid #dce3ea;border-radius:8px;background:#fff}.locked-order-metrics span,.email-recipient span{display:block;margin-bottom:4px;font-size:9px;font-weight:800;text-transform:uppercase;color:#718096}.locked-order-metrics strong{font-size:13px}.locked-order-note{margin:13px 0 0;padding-top:11px;border-top:1px solid #e1e7ed;color:#64748b;font-size:11px}.order-email-card{padding:20px;border-top:4px solid #2563eb;background:linear-gradient(145deg,#fff 0%,#f5f9ff 100%)}.order-email-card>p{font-size:12px;line-height:1.45;color:#475569}.email-delivery-status{display:flex;align-items:center;gap:8px;margin:12px 0}.email-delivery-status strong{font-size:10px;color:#64748b}.email-recipient{padding:9px 10px;margin:10px 0;border:1px solid #d8e3ee;border-radius:8px;background:#fff;overflow-wrap:anywhere}.email-recipient strong{font-size:11px}.email-order-button{width:100%;padding:11px}.order-email-card form{margin:0}@media(max-width:1050px){.order-hero-grid .c7,.order-hero-grid .c5{grid-column:span 12}.locked-order-metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.locked-order-metrics{grid-template-columns:1fr}}
.order-hero-grid{width:100%}.order-hero-grid>.c7{grid-column:span 7}.order-hero-grid>.c5{grid-column:span 5}.order-hero-grid>.card{min-width:0}@media(max-width:1050px){.order-hero-grid>.c7,.order-hero-grid>.c5{grid-column:span 12}}
.draft-order-sheet{margin:8px 0 15px;overflow:auto;border:1px solid #d9e0e6;border-radius:9px}.draft-order-table{min-width:1280px!important}.draft-order-table td{vertical-align:middle!important}.draft-order-table .item-product-image.thumb,.draft-order-table .item-product-image-placeholder.thumb{width:38px;height:38px;flex:0 0 38px;border-radius:4px;font-size:7px}.draft-order-table .line-qty-control{white-space:nowrap}.draft-order-table .line-qty-control strong{min-width:42px;padding:0 5px}.draft-order-table .sheet-costs{min-width:280px}.draft-order-table .draft-remove{padding:6px 8px;font-size:10px}.draft-review-row td{background:#fffaf0!important}.draft-pending-cell{color:#92400e;font-weight:700}.draft-empty-row{padding:22px!important;text-align:center;color:#697586;background:#fafbfc!important}.draft-order-table .pill{margin-top:3px;font-size:8px}.draft-order-table .sheet-item-wrap .item-product-image-placeholder{display:grid;place-items:center;color:#8a949f;border:1px dashed #cbd5df;background:#fff}
.invoice-worksheet-wrap{margin-top:12px;border:1px solid #d7dfe7;border-radius:8px;overflow:auto}.invoice-worksheet{width:100%;min-width:900px;border-collapse:collapse}.invoice-worksheet th{position:static!important;padding:8px 9px!important;background:#17202a!important;color:#fff;font-size:9px!important;text-transform:uppercase;border:1px solid #344150!important}.invoice-worksheet td{padding:7px 9px!important;border:1px solid #dce2e8!important;font-size:10px!important;vertical-align:middle}.invoice-worksheet tr.compare-same td{background:#f3faf5;color:#263b2e}.invoice-worksheet tr.compare-up td{background:#fff1f1;color:#6f2020}.invoice-worksheet tr.compare-down td{background:#eef9f2;color:#245c38}.invoice-worksheet tr.compare-changed td{background:#fff9e8;color:#6b5314}.invoice-worksheet td:nth-child(1){width:20%}.invoice-worksheet td:nth-child(2),.invoice-worksheet td:nth-child(3){width:15%;font-variant-numeric:tabular-nums}.invoice-worksheet td:nth-child(4){width:18%;font-size:9px!important}.invoice-worksheet td:nth-child(5){width:32%}.invoice-worksheet input{padding:6px 7px;font-size:10px;background:#fff}.compact-review-card{padding:12px}.compact-review-card .item-product-image.large,.compact-review-card .item-product-image-placeholder.large{width:46px;height:46px}.compact-review-card .spec-head{margin-bottom:6px}
.language-switch{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:0 16px 8px}.language-switch a{display:block!important;padding:7px 5px!important;text-align:center;border:1px solid #3a4652!important;border-radius:6px!important;font-size:10px!important;color:#d7e0e8!important}.language-switch a.active{background:#fff!important;color:#17202a!important;border-color:#fff!important;font-weight:900}html[lang="ja"] body{font-family:Arial,"Yu Gothic","Meiryo",sans-serif}
.product-entry-sheet .c12{grid-column:span 24}.extra-stones-cell{padding-bottom:7px!important;background:#f8fbff!important}.extra-stones-cell>label{margin-bottom:6px!important}.extra-stone-row{display:grid;grid-template-columns:70px 1.4fr 1fr .65fr .75fr 30px;gap:5px;align-items:center;padding:4px 7px}.extra-stone-row>span{font-size:11px;font-weight:700}.extra-stone-row input{border:1px solid #cfd8e3!important;height:29px!important;min-height:29px!important}.extra-stone-remove{width:28px;height:28px;padding:0;border-radius:5px;background:#b73333;color:#fff}.extra-stones-cell>.btn{margin:5px 7px;padding:5px 9px}.extra-stones-cell>small{display:inline!important;padding-left:3px!important}@media(max-width:850px){.extra-stone-row{grid-template-columns:1fr 1fr}.extra-stone-row>span{grid-column:1/-1}}
.product-entry-sheet .grid{grid-template-columns:repeat(28,minmax(0,1fr))}.product-entry-sheet .c2,.product-entry-sheet .c3,.product-entry-sheet .c6,.product-entry-sheet .bulk-variant-cell{grid-column:span 4}.product-entry-sheet .c12{grid-column:span 28}@media(max-width:1300px) and (min-width:1001px){.product-entry-sheet .grid{display:grid;grid-template-columns:repeat(20,minmax(0,1fr))}.product-entry-sheet .c2,.product-entry-sheet .c3,.product-entry-sheet .c6,.product-entry-sheet .bulk-variant-cell{grid-column:span 4}.product-entry-sheet .c12{grid-column:span 20}}@media(max-width:1000px) and (min-width:701px){.product-entry-sheet .grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr))}.product-entry-sheet .c2,.product-entry-sheet .c3,.product-entry-sheet .c6,.product-entry-sheet .bulk-variant-cell{grid-column:span 4}.product-entry-sheet .c12{grid-column:span 12}}@media(max-width:700px){.product-entry-sheet .grid{display:block}.product-entry-sheet .grid>div{width:100%}}
.dual-cost-inputs{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px}.dual-cost-inputs span{min-width:0}.product-entry-sheet .dual-cost-inputs small{padding:0 2px 2px;font-size:8px;line-height:1}.product-entry-sheet .dual-cost-inputs input{border:1px solid #cfd8e3;height:25px;min-height:25px;padding:3px 5px}
.product-filter-card{padding:14px 16px}.product-filter-form{display:grid;grid-template-columns:minmax(260px,2fr) repeat(5,minmax(110px,1fr)) auto;gap:9px;align-items:end}.product-filter-form label{font-size:10px;margin-bottom:4px}.product-filter-form input,.product-filter-form select{height:38px;min-width:0}.filter-actions{display:flex;gap:6px;white-space:nowrap}.product-filter-footer{display:flex;align-items:center;gap:14px;margin-top:11px;padding-top:10px;border-top:1px solid #e1e6eb}.product-filter-footer .search-hint{flex:1}.product-filter-footer .btn{margin-left:auto}@media(max-width:1250px){.product-filter-form{grid-template-columns:repeat(4,minmax(140px,1fr))}.filter-search{grid-column:span 2}}@media(max-width:750px){.product-filter-form{grid-template-columns:1fr 1fr}.filter-search,.filter-actions{grid-column:1/-1}.filter-actions .btn{flex:1}.product-filter-footer{flex-wrap:wrap}.product-filter-footer .search-hint{order:3;flex-basis:100%}}@media(max-width:480px){.product-filter-form{display:block}.product-filter-form>div{margin-bottom:9px}}
.approval-modal[hidden]{display:none}.approval-modal{position:fixed;inset:0;z-index:1000}.approval-modal-backdrop{position:absolute;inset:0;background:rgba(12,22,34,.68);backdrop-filter:blur(3px)}.approval-modal-panel{position:absolute;inset:3vh 3vw;background:#f3f5f7;border-radius:12px;box-shadow:0 24px 80px rgba(0,0,0,.32);overflow:hidden;display:flex;flex-direction:column}.approval-modal-panel>header{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;background:#fff;border-bottom:1px solid #d7dfe7}.approval-modal-panel h2{margin:1px 0 0;font-size:20px}.approval-modal-close{border:0;background:#edf1f5;border-radius:7px;width:38px;height:38px;font-size:28px;line-height:1;cursor:pointer}.approval-modal-panel iframe{width:100%;flex:1;border:0;background:#f3f5f7}.approval-modal-open{overflow:hidden}.modal-page .mobile-menu-toggle,.modal-page .sidebar-backdrop,.modal-page .app-sidebar,.modal-page .content-header,.modal-page footer{display:none!important}.modal-page .app-shell{margin-left:0!important;min-height:100vh}.modal-page main{max-width:none!important;width:100%!important;padding:16px!important}.modal-page .product-image-panel{display:none}@media(max-width:700px){.approval-modal-panel{inset:0;border-radius:0}.approval-modal-panel>header{padding:9px 12px}.modal-page main{padding:8px!important}}
.dashboard-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.product-review-kpi{display:block;color:#18212b;text-decoration:none;position:relative}.product-review-kpi small{display:block;margin-top:5px;color:#697586;font-size:10px}.product-review-kpi.has-review{border-color:#e5b735;background:#fff9df;box-shadow:inset 0 3px 0 #e5b735}.product-review-kpi.has-review b{color:#9a6500}.dashboard-review-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff7d6;border:1px solid #e7cc63;border-left:5px solid #d69b00;border-radius:9px;padding:12px 15px;margin:0 0 15px}.dashboard-review-alert div span{display:block;color:#65561d;font-size:12px;margin-top:3px}.dashboard-review-alert .btn{white-space:nowrap}@media(max-width:1150px){.dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.dashboard-kpis{grid-template-columns:1fr 1fr}.dashboard-review-alert{align-items:flex-start;flex-direction:column}}@media(max-width:430px){.dashboard-kpis{grid-template-columns:1fr}}
.invoice-excel-form{--sheet-border:#cbd5df;--sheet-head:#e8eef5;--sheet-dark:#172432}.invoice-summary-grid{gap:10px}.invoice-summary-grid>.card{margin-bottom:4px;padding:13px 15px}.invoice-summary-grid h2{font-size:17px;margin:0 0 8px}.invoice-document-sheet{padding:0;overflow:hidden}.invoice-document-sheet>h2{margin:0;padding:10px 13px;background:var(--sheet-dark);color:#fff;font-size:15px}.invoice-document-sheet>.grid{gap:0}.invoice-document-sheet>.grid>div{border-right:1px solid var(--sheet-border);padding:9px 11px}.invoice-document-sheet>.grid>div:last-child{border-right:0}.invoice-document-sheet label{font-size:10px;text-transform:uppercase;letter-spacing:.025em}.invoice-document-sheet input{height:34px;border-radius:2px}.invoice-excel-form .invoice-entry-card{padding:0;border:1px solid var(--sheet-border);border-left:4px solid #34495e;border-radius:5px;overflow:hidden;margin-bottom:18px}.invoice-excel-form .invoice-entry-card>.spec-head{margin:0;padding:8px 11px;background:var(--sheet-dark);color:#fff;align-items:center}.invoice-excel-form .invoice-entry-card>.spec-head h2{font-size:15px}.invoice-excel-form .invoice-entry-card>.spec-head .muted{color:#cbd6e0}.invoice-excel-form .invoice-entry-card .item-product-image.large,.invoice-excel-form .invoice-entry-card .item-product-image-placeholder.large{width:42px;height:42px;min-width:42px;border-radius:2px}.invoice-excel-form .spec-section-title{margin:0;padding:5px 8px;background:var(--sheet-head);border-bottom:1px solid var(--sheet-border);color:#26384a;font-size:9px}.invoice-excel-form .invoice-edit-grid{display:grid;gap:0;border-bottom:1px solid var(--sheet-border)}.invoice-excel-form .metal-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.invoice-excel-form .work-grid{grid-template-columns:repeat(10,minmax(0,1fr))}.invoice-excel-form .stone-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.invoice-excel-form .invoice-field{padding:0;background:#fff;border:0;border-right:1px solid var(--sheet-border);border-radius:0;min-width:0}.invoice-excel-form .invoice-field:last-child{border-right:0}.invoice-excel-form .invoice-field label{display:block;margin:0;padding:4px 6px;background:#f4f7fa;border-bottom:1px solid #dbe2e9;min-height:38px;font-size:9px;line-height:1.15}.invoice-excel-form .invoice-field label small{margin-top:2px;font-size:8px;color:#667789;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invoice-excel-form .invoice-field input{height:31px;min-height:31px;padding:4px 6px;border:0;border-radius:0;font-size:12px}.invoice-excel-form .invoice-field input:focus{position:relative;z-index:2;outline:2px solid #2f6fed;outline-offset:-2px}.invoice-excel-form .invoice-calc-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;border-top:0}.invoice-excel-form .invoice-calc-strip>div{padding:7px 9px;border:0;border-right:1px solid var(--sheet-border);border-radius:0;background:#fff9da}.invoice-excel-form .invoice-calc-strip>div:last-child{border-right:0}.invoice-excel-form .invoice-calc-strip span{font-size:8px}.invoice-excel-form .invoice-calc-strip strong{font-size:13px;margin-top:2px}.invoice-excel-form .factory-field-feedback{margin:8px}.invoice-excel-form .invoice-total-card{padding:0;overflow:hidden;border-radius:5px}.invoice-excel-form .invoice-total-card h2{margin:0;padding:8px 11px;background:var(--sheet-dark);color:#fff;font-size:15px}.invoice-excel-form>.card.no-print:last-of-type{position:sticky;bottom:8px;z-index:8;padding:10px 12px;box-shadow:0 8px 28px rgba(20,35,50,.18)}@media(max-width:1250px){.invoice-excel-form .work-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.invoice-excel-form .work-grid .invoice-field:nth-child(-n+5){border-bottom:1px solid var(--sheet-border)}.invoice-excel-form .stone-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){.invoice-excel-form .metal-grid,.invoice-excel-form .work-grid,.invoice-excel-form .stone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-excel-form .invoice-calc-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-document-sheet>.grid{display:block}.invoice-document-sheet>.grid>div{border-right:0;border-bottom:1px solid var(--sheet-border)}}@media(max-width:480px){.invoice-excel-form .metal-grid,.invoice-excel-form .work-grid,.invoice-excel-form .stone-grid,.invoice-excel-form .invoice-calc-strip{grid-template-columns:1fr}}
.invoice-excel-form .invoice-entry-card{margin-bottom:26px;border-radius:8px;box-shadow:0 4px 14px rgba(31,48,67,.08)}.invoice-excel-form .invoice-entry-card>.spec-head{padding:10px 13px}.invoice-excel-form .spec-section-title{padding:7px 9px;font-size:10px;letter-spacing:.045em}.invoice-excel-form .work-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.invoice-excel-form .invoice-field label{min-height:46px;padding:6px 8px;font-size:10px}.invoice-excel-form .invoice-field label small{font-size:9px;margin-top:4px}.invoice-excel-form .invoice-field input{height:38px;min-height:38px;padding:6px 8px;font-size:13px;font-weight:600}.invoice-excel-form .invoice-field.field-changed{background:#fff3cf;box-shadow:inset 0 0 0 2px #e4a900}.invoice-excel-form .invoice-field.field-changed label{background:#ffe7a0;color:#5b4300}.invoice-excel-form .invoice-field.field-changed input{background:#fffaf0}.invoice-excel-form .invoice-entry-card .invoice-calc-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-excel-form .invoice-calc-strip>div{padding:9px 11px}.invoice-excel-form .invoice-calc-strip span{font-size:9px}.invoice-excel-form .invoice-calc-strip strong{font-size:15px}.invoice-excel-form .invoice-total-card{margin-top:4px;border:1px solid #9eacba;box-shadow:0 4px 15px rgba(31,48,67,.08)}@media(max-width:1250px){.invoice-excel-form .work-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:900px){.invoice-excel-form .metal-grid,.invoice-excel-form .work-grid,.invoice-excel-form .stone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.invoice-excel-form .metal-grid,.invoice-excel-form .work-grid,.invoice-excel-form .stone-grid,.invoice-excel-form .invoice-entry-card .invoice-calc-strip{grid-template-columns:1fr}}
.invoice-lines-sheet{padding:0;overflow:hidden}.invoice-lines-sheet .table{margin:0}.invoice-lines-sheet table{min-width:1280px}.invoice-lines-sheet th{background:#172432;color:#fff;padding:10px 9px;font-size:10px;text-transform:uppercase;letter-spacing:.025em}.invoice-lines-sheet td{padding:8px 9px;border-right:1px solid #d6dee6;vertical-align:middle}.invoice-lines-sheet tbody tr:nth-child(even){background:#f4f7fa}.invoice-lines-sheet td:nth-child(8){background:#fff8d9}.invoice-lines-sheet td small{display:block;color:#637286;font-size:9px;margin-top:3px}.invoice-summary-item{display:grid;grid-template-columns:38px auto;grid-template-rows:auto auto;gap:0 8px;align-items:center;min-width:190px}.invoice-summary-item img,.invoice-summary-item>span{grid-row:1/3;width:38px;height:38px;object-fit:cover;border:1px solid #d2dbe4;border-radius:3px;display:flex;align-items:center;justify-content:center}.invoice-summary-tags{display:flex;gap:4px;flex-wrap:wrap;min-width:240px}.invoice-summary-tags span{padding:3px 5px;border:1px solid #85c49a;background:#f0faf3;border-radius:4px;font-size:9px;white-space:nowrap}.invoice-item-editor-modal[hidden]{display:none}.invoice-item-editor-modal{position:fixed;inset:0;z-index:1100}.invoice-item-editor-backdrop{position:absolute;inset:0;background:rgba(10,20,31,.7);backdrop-filter:blur(3px)}.invoice-item-editor-panel{position:absolute;inset:3vh 2.5vw;overflow:auto;background:#eef2f5;border-radius:11px;padding:14px;box-shadow:0 25px 80px rgba(0,0,0,.35)}.invoice-item-editor-panel .invoice-entry-card{margin:0}.invoice-editor-head-actions{display:flex;align-items:center;gap:10px}.invoice-editor-close{width:34px;height:34px;padding:0;border-radius:6px;background:#eef2f5;color:#172432;font-size:24px;line-height:1}.invoice-item-editor-open{overflow:hidden}@media(max-width:700px){.invoice-item-editor-panel{inset:0;border-radius:0;padding:6px}.invoice-lines-sheet table{min-width:1150px}}
.invoice-document-sheet>.invoice-document-grid{display:grid;grid-template-columns:1.25fr .85fr .75fr .85fr 1.35fr}.invoice-document-sheet>.invoice-document-grid>div{grid-column:auto;min-width:0;padding:11px 12px;background:#fff}.invoice-document-sheet>.invoice-document-grid label{min-height:30px;margin:0 0 5px}.invoice-document-sheet>.invoice-document-grid label small{display:block;font-weight:400;text-transform:none;letter-spacing:0;color:#667789;margin-top:2px}.invoice-document-sheet>.invoice-document-grid input{height:39px}.invoice-document-sheet>.invoice-document-grid input[type=file]{padding:5px;background:#f7f9fb;border:1px solid #cbd5df;overflow:hidden}.invoice-document-sheet input[type=file]::file-selector-button{height:27px;border:0;border-radius:4px;background:#e2e8ef;color:#172432;font-weight:700;padding:0 10px;margin-right:8px;cursor:pointer}.invoice-global-rate{background:#fff9df!important}.invoice-global-rate label{color:#684f00}.invoice-global-rate input{border:2px solid #ddb84d;background:#fffef8;font-weight:700;font-variant-numeric:tabular-nums}.invoice-global-rate input:focus{outline:2px solid #e2b52d;outline-offset:1px}.invoice-document-sheet>.invoice-document-grid p{margin:7px 0 0;line-height:1.3}@media(max-width:1200px){.invoice-document-sheet>.invoice-document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-document-sheet>.invoice-document-grid>div:last-child{grid-column:1/-1}}@media(max-width:650px){.invoice-document-sheet>.invoice-document-grid{display:block}.invoice-document-sheet>.invoice-document-grid>div{border-right:0;border-bottom:1px solid #cbd5df}}
.invoice-auto-number input[readonly]{background:#eef4fa;border:1px solid #9fb4c8;color:#172432;font-weight:800;font-size:16px;letter-spacing:.045em;font-variant-numeric:tabular-nums;cursor:not-allowed}.invoice-auto-number label{color:#294b68}
.review-summary-sheet{padding:0;overflow:hidden}.review-summary-heading{padding:13px 15px;background:#fff;display:flex;justify-content:space-between;align-items:center}.review-summary-heading h2{margin:0;font-size:19px}.review-summary-heading span{display:block;color:#697586;font-size:11px;margin-top:3px}.review-summary-sheet .table{margin:0}.review-summary-sheet table{min-width:1120px}.review-summary-sheet th{background:#172432;color:#fff;text-transform:uppercase;font-size:9px;letter-spacing:.035em;padding:9px}.review-summary-sheet td{padding:8px 9px;border-right:1px solid #d6dee6;vertical-align:middle}.review-summary-sheet tr.review-summary-changed td{background:#fffaf0}.review-summary-sheet tr.review-summary-changed td:nth-child(8){background:#ffe8e8}.review-summary-sheet tr.review-summary-match td{color:#566474}.review-summary-item{display:grid;grid-template-columns:38px auto;grid-template-rows:auto auto;gap:0 8px;align-items:center;min-width:200px}.review-summary-item img,.review-summary-item>span{grid-row:1/3;width:38px;height:38px;object-fit:cover;border:1px solid #d1dbe4;border-radius:3px;display:flex;align-items:center;justify-content:center}.review-summary-item small{font-size:9px;color:#687789}.review-item-modal[hidden]{display:none}.review-item-modal{position:fixed;inset:0;z-index:1200}.review-item-backdrop{position:absolute;inset:0;background:rgba(9,19,30,.72);backdrop-filter:blur(3px)}.review-item-panel{position:absolute;inset:2vh 2vw;overflow:auto;background:#eef2f5;border-radius:11px;padding:14px;box-shadow:0 28px 90px rgba(0,0,0,.38)}.review-item-panel .compact-review-card{margin:0}.review-popup-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.review-popup-close{width:34px;height:34px;padding:0;background:#e8edf2;color:#172432;border-radius:6px;font-size:24px;line-height:1}.review-modal-open{overflow:hidden}.review-item-modal:not(.show-matches) .invoice-worksheet tr.compare-same{display:none}.review-item-panel .invoice-worksheet th{position:sticky;top:0;z-index:2}.review-item-panel .invoice-worksheet td{font-size:12px;padding:9px 10px}.review-item-panel .invoice-worksheet input{height:34px}.review-item-panel .invoice-calc-strip{position:sticky;bottom:0;background:#fff;z-index:3;border-top:1px solid #cdd7e0}@media(max-width:700px){.review-item-panel{inset:0;border-radius:0;padding:6px}.review-popup-actions .review-match-toggle{order:3;width:100%}}
.image-product-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:8px}.image-product-card{padding:8px;border-radius:7px}.image-product-head{margin-bottom:6px;min-height:24px;align-items:flex-start}.image-product-head strong{font-size:12px;line-height:1.2}.image-product-head small{font-size:9px;line-height:1.2}.image-product-card .item-image-gallery{gap:5px}.image-product-card .item-image-gallery img{width:64px;height:64px;border-radius:5px;object-fit:contain}.image-product-card .gallery-image-wrap{max-width:68px}.image-product-card .no-item-image{width:64px;height:64px;min-height:64px;border-radius:5px;font-size:9px;text-align:center;padding:5px;margin:0 auto}.image-product-card .image-delete-btn{right:2px;top:2px;width:20px;height:20px;line-height:20px;font-size:13px}.loose-gallery .item-image-gallery img,.loose-gallery img{width:72px;height:72px}@media(max-width:650px){.image-product-grid{grid-template-columns:repeat(2,minmax(130px,1fr))}.image-product-card .item-image-gallery img{width:58px;height:58px}.image-product-card .no-item-image{width:58px;height:58px;min-height:58px}}
.image-product-card{position:relative;padding-bottom:32px}.quick-image-upload{position:absolute;right:7px;bottom:6px;margin:0}.quick-image-upload label{display:block;margin:0;cursor:pointer}.quick-image-upload label span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#172432;color:#fff;font-size:18px;font-weight:800;line-height:1;box-shadow:0 2px 6px rgba(15,23,42,.2);transition:background .15s ease,transform .15s ease}.quick-image-upload label:hover span{background:#2f6fed;transform:scale(1.08)}.quick-image-upload label:focus-within span{outline:3px solid rgba(47,111,237,.3);outline-offset:2px}.quick-image-upload input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.image-product-card .item-image-gallery+.quick-image-upload label span{background:#2e7d4e}.image-product-card .item-image-gallery+.quick-image-upload label:hover span{background:#25663f}
.change-fields-sheet{margin-top:14px;border:1px solid #cbd5df;border-radius:8px;overflow:hidden;background:#fff}.change-fields-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#172432;color:#fff}.change-fields-head div{display:flex;flex-direction:column}.change-fields-head small{margin-top:2px;color:#c9d5df;font-size:10px}.change-fields-head .btn{background:#fff;color:#172432}.change-field-table-head,.change-field-row{display:grid;grid-template-columns:2fr 1fr 1fr 38px;gap:0}.change-field-table-head{background:#e8eef5;border-bottom:1px solid #cbd5df}.change-field-table-head span{padding:6px 9px;border-right:1px solid #cbd5df;font-size:9px;font-weight:800;text-transform:uppercase;color:#334155}.change-field-row{border-bottom:1px solid #d8e0e8}.change-field-row:last-child{border-bottom:0}.change-field-row select,.change-field-row input{height:39px;border:0;border-right:1px solid #d8e0e8;border-radius:0;padding:6px 9px}.change-field-row input:focus,.change-field-row select:focus{position:relative;z-index:1;outline:2px solid #2f6fed;outline-offset:-2px}.change-current-value{background:#f3f6f9;color:#526272;font-weight:700}.change-field-remove{margin:7px;width:24px;height:24px;padding:0;border-radius:50%;background:#fee2e2;color:#a52222;font-size:18px;line-height:1}.change-reason-field{margin-top:12px}.change-reason-field textarea{min-height:65px;resize:vertical}@media(max-width:650px){.change-field-table-head{display:none}.change-field-row{grid-template-columns:1fr 1fr 34px;padding:7px}.change-field-row select{grid-column:1/-1;border-bottom:1px solid #d8e0e8}.change-field-row input{border-top:0}.change-field-remove{grid-column:3;grid-row:2;margin:7px 4px}.change-fields-head{align-items:flex-start}.change-fields-head .btn{white-space:nowrap}}
.change-field-table-head,.change-field-row{grid-template-columns:72px minmax(180px,1.4fr) minmax(130px,.8fr) minmax(190px,1fr)}.change-field-row{min-height:43px;align-items:stretch}.change-field-check{display:grid!important;place-items:center;margin:0!important;border-right:1px solid #d8e0e8;background:#f7f9fb;cursor:pointer}.change-field-check input{width:18px;height:18px;padding:0;border:1px solid #aebbc8;accent-color:#167647}.change-field-label,.change-current-value{display:flex;align-items:center;padding:7px 10px;border-right:1px solid #d8e0e8}.change-field-label{font-size:11px;color:#172432}.change-current-value{font-variant-numeric:tabular-nums;background:#f3f6f9;color:#334155;font-size:12px}.change-new-wrap{display:flex;align-items:stretch;background:#f7f8fa}.change-field-row .change-new-wrap input[type=number]{width:100%;height:auto;min-height:42px;border:0;border-radius:0;background:#eef1f4;color:#8a949e}.change-field-row.selected{background:#effaf2;box-shadow:inset 4px 0 #23824d}.change-field-row.selected .change-field-check,.change-field-row.selected .change-new-wrap{background:#effaf2}.change-field-row.selected .change-new-wrap input[type=number]{background:#fff;color:#172432;font-weight:800;box-shadow:inset 0 0 0 2px #72b98a}.change-field-row.selected .change-field-label{color:#126436}.change-field-row input:disabled{cursor:not-allowed}@media(max-width:650px){.change-field-table-head{display:none}.change-field-row{display:grid;grid-template-columns:50px 1fr 1fr;padding:0}.change-field-check{grid-row:1/3}.change-field-label{grid-column:2/4}.change-current-value{grid-column:2}.change-new-wrap{grid-column:3}.change-field-row .change-new-wrap input[type=number]{min-width:0}.change-fields-head{align-items:flex-start}}
.request-change-list{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.request-change-list span{display:inline-flex;align-items:center;gap:4px;padding:5px 7px;border:1px solid #e4c85d;border-radius:5px;background:#fff8d8;white-space:nowrap;font-size:10px}.request-change-list b{color:#334155}.request-change-list i{color:#9a6b00;font-style:normal;font-weight:900}.request-change-list strong{color:#9b1c1c}.change-request-actions{white-space:nowrap}.change-request-actions .btn{padding:7px 10px;font-size:10px}
.change-request-delete-form{margin-top:6px}.change-request-delete-form .btn,.request-owner-actions .btn{padding:6px 9px;font-size:9px}.request-owner-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.request-owner-actions form{margin:0}
