/* Pivoteka ERP 2.30.0.3.0.6.6.5 — Writeoffs Visual Match
   Final visual layer for the Dashboard write-offs widget and product movement drawer.
*/

:root{
  --wo-vm-bg:#f5f7fb;
  --wo-vm-card:#ffffff;
  --wo-vm-text:#101b34;
  --wo-vm-text-2:#33435d;
  --wo-vm-muted:#75839a;
  --wo-vm-muted-2:#98a3b4;
  --wo-vm-border:#e2e8f1;
  --wo-vm-border-soft:#edf1f6;
  --wo-vm-blue:#0b66f6;
  --wo-vm-blue-soft:#eef5ff;
  --wo-vm-green:#159a55;
  --wo-vm-green-soft:#effaf4;
  --wo-vm-red:#df3445;
  --wo-vm-red-soft:#fff2f3;
  --wo-vm-orange:#ef6b32;
  --wo-vm-orange-soft:#fff5ee;
  --wo-vm-purple:#7758e8;
  --wo-vm-purple-soft:#f4f0ff;
  --wo-vm-shadow:0 10px 28px rgba(24,39,68,.07);
}

/* ---------------- Write-offs widget ---------------- */
.db2-vm-writeoffs{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  min-height:0;
}
.db2-vm-writeoffs .db2-resize-handle{right:8px;bottom:8px}
.db2-vm-shell{
  height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;
  background:var(--wo-vm-card);border:1px solid var(--wo-vm-border);border-radius:18px;
  box-shadow:var(--wo-vm-shadow);color:var(--wo-vm-text);
}
.db2-page.is-editing .db2-vm-shell{border-color:#bcd0f6;box-shadow:0 12px 32px rgba(11,102,246,.10)}
.db2-vm-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px 12px}
.db2-vm-head h3{margin:0;color:var(--wo-vm-text);font-size:20px;line-height:1.16;font-weight:800;letter-spacing:-.02em}
.db2-vm-head p{margin:5px 0 0;color:var(--wo-vm-muted);font-size:12px;line-height:1.35;font-weight:500}
.db2-vm-head-right{display:flex;align-items:center;gap:8px;min-width:0}
.db2-vm-segment{display:inline-flex;align-items:center;overflow:hidden;border:1px solid #dce4ef;background:#fff;border-radius:11px}
.db2-vm-segment button{min-width:72px;border:0;border-right:1px solid #e5eaf2;background:#fff;color:#536177;padding:9px 13px;font-size:12px;line-height:1;font-weight:650;cursor:pointer}
.db2-vm-segment button:last-child{border-right:0}
.db2-vm-segment button:hover{background:#f7f9fc;color:#1f3f75}
.db2-vm-segment button.active{background:var(--wo-vm-blue);color:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.02)}
.db2-vm-kebab,.db2-vm-edit-actions button{width:34px;height:34px;border:0;background:transparent;border-radius:9px;color:#697990;display:grid;place-items:center;cursor:pointer;padding:8px}
.db2-vm-kebab:hover,.db2-vm-edit-actions button:hover{background:#f3f6fa;color:var(--wo-vm-blue)}
.db2-vm-kebab svg,.db2-vm-edit-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.db2-vm-edit-actions{display:none;align-items:center;gap:2px}
.db2-page.is-editing .db2-vm-edit-actions{display:flex}
.db2-page.is-editing .db2-vm-kebab{display:none}

.db2-vm-kpis{display:grid;grid-template-columns:1.05fr 1.05fr .94fr;gap:10px;padding:4px 20px 14px}
.db2-vm-kpi{min-width:0;min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 17px;border:1px solid var(--wo-vm-border);border-radius:14px;background:#fff}
.db2-vm-kpi>div{min-width:0}
.db2-vm-kpi strong{display:block;color:var(--wo-vm-text);font-size:22px;line-height:1.05;font-weight:800;letter-spacing:-.025em;white-space:nowrap}
.db2-vm-kpi span{display:block;margin-top:8px;color:#52617a;font-size:12px;line-height:1.2;font-weight:600}
.db2-vm-kpi small{display:block;margin-top:5px;color:var(--wo-vm-muted);font-size:10px;line-height:1.25;font-weight:500;white-space:normal}
.db2-vm-kpi i{width:40px;height:40px;flex:0 0 40px;border-radius:11px;background:var(--wo-vm-blue-soft);color:var(--wo-vm-blue);display:grid;place-items:center;font-style:normal}
.db2-vm-kpi i svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.db2-vm-kpi.is-bad{background:var(--wo-vm-red-soft);border-color:#f4d7dc}
.db2-vm-kpi.is-bad strong{color:var(--wo-vm-red)}
.db2-vm-kpi.is-good{background:var(--wo-vm-green-soft);border-color:#d8eddf}
.db2-vm-kpi.is-good strong{color:var(--wo-vm-green)}
.db2-vm-kpi.is-neutral strong{color:#657389}

.db2-vm-tabs{display:flex;align-items:flex-end;gap:18px;margin:0 20px;border-bottom:1px solid var(--wo-vm-border)}
.db2-vm-tabs button{position:relative;border:0;background:transparent;color:#63718a;padding:11px 3px 12px;font-size:12px;line-height:1;font-weight:650;cursor:pointer}
.db2-vm-tabs button:hover{color:#264f93}
.db2-vm-tabs button.active{color:var(--wo-vm-blue);font-weight:750}
.db2-vm-tabs button.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:3px;background:var(--wo-vm-blue)}
.db2-vm-body{min-height:0;flex:1;overflow:auto;padding:0 20px}
.db2-vm-loading,.db2-vm-supplier-loading,.db2-vm-inline-empty{padding:22px 14px;text-align:center;color:var(--wo-vm-muted);font-size:12px}
.db2-vm-list{border:1px solid var(--wo-vm-border);border-radius:12px;overflow:hidden;margin-top:8px;background:#fff}
.db2-vm-product-row,.db2-vm-supplier-row,.db2-vm-document-row,.db2-vm-supplier-product{width:100%;border:0;border-bottom:1px solid var(--wo-vm-border-soft);background:#fff;color:inherit;text-align:left;cursor:pointer}
.db2-vm-product-row:last-child,.db2-vm-supplier-row:last-child,.db2-vm-document-row:last-child,.db2-vm-supplier-product:last-child{border-bottom:0}
.db2-vm-product-row:hover,.db2-vm-supplier-row:hover,.db2-vm-document-row:hover,.db2-vm-supplier-product:hover{background:#f8fbff}
.db2-vm-product-row{display:grid;grid-template-columns:30px minmax(155px,1fr) minmax(76px,.33fr) minmax(86px,.36fr) 28px;gap:10px;align-items:center;min-height:54px;padding:7px 9px 7px 6px}
.db2-vm-rank{color:#8793a6;font-size:11px;line-height:1;text-align:center;font-variant-numeric:tabular-nums}
.db2-vm-product-title{min-width:0;display:block}
.db2-vm-product-title b{display:block;color:var(--wo-vm-text);font-size:13px;line-height:1.25;font-weight:720;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.db2-vm-product-title small{display:block;margin-top:3px;color:var(--wo-vm-muted);font-size:10.5px;line-height:1.2;font-weight:500;white-space:normal;overflow-wrap:anywhere}
.db2-vm-qty,.db2-vm-product-row>strong,.db2-vm-supplier-product>strong{justify-self:end;color:#24344f;font-size:12px;line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.db2-vm-product-row>strong,.db2-vm-supplier-product>strong{color:var(--wo-vm-text);font-weight:750}
.db2-vm-chevron{justify-self:end;display:grid;place-items:center;width:26px;height:26px;border:1px solid #dfe6f0;border-radius:8px;color:#66758b;font-size:18px;line-height:1;transition:.15s ease}
.db2-vm-chevron.up{transform:rotate(-90deg)}

.db2-vm-supplier-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(88px,.35fr) 66px 28px;gap:10px;align-items:center;min-height:52px;padding:8px 9px 8px 14px}
.db2-vm-supplier-row.is-expanded{background:#fbfdff;border-bottom:1px solid #dfe8f5}
.db2-vm-supplier-name{min-width:0;color:var(--wo-vm-text);font-size:13px;line-height:1.25;font-weight:720;white-space:normal;overflow-wrap:anywhere}
.db2-vm-supplier-money{justify-self:end;color:#23334f;font-size:12px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.db2-vm-supplier-share{justify-self:end;color:#77859a;font-size:11px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.db2-vm-supplier-detail{border-bottom:1px solid var(--wo-vm-border);background:#fbfdff;padding:0 12px 7px}
.db2-vm-supplier-product{display:grid;grid-template-columns:28px minmax(150px,1fr) minmax(78px,.32fr) minmax(88px,.36fr);gap:10px;align-items:center;min-height:42px;padding:5px 8px;background:transparent}
.db2-vm-supplier-product .db2-vm-name{min-width:0;color:#2c3b55;font-size:11.5px;font-weight:620;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
.db2-vm-supplier-more{display:block;width:100%;border:0;background:transparent;color:var(--wo-vm-blue);font-size:11px;font-weight:700;padding:9px 8px 6px;cursor:pointer;text-align:center}
.db2-vm-supplier-more:hover{text-decoration:underline}

.db2-vm-document{border-bottom:1px solid var(--wo-vm-border-soft);background:#fff}.db2-vm-document:last-child{border-bottom:0}.db2-vm-document.is-expanded{background:#f8fbff}
.db2-vm-document-row{display:grid;grid-template-columns:86px minmax(130px,1fr) 102px 72px 94px 28px;gap:10px;align-items:center;min-height:50px;padding:7px 9px 7px 12px;cursor:pointer}
.db2-vm-document-row>strong{min-width:0;color:var(--wo-vm-text);font-size:12px;font-weight:720;white-space:normal;overflow-wrap:anywhere}
.db2-vm-document-row>strong small{display:block;margin-top:3px;color:#687c92;font-size:10px;font-weight:600}
.db2-vm-document-row>span:not(.db2-vm-doc-kind):not(.db2-vm-chevron){color:#617087;font-size:11px;font-weight:550;white-space:nowrap}
.db2-vm-document-row>b{justify-self:end;color:var(--wo-vm-text);font-size:12px;font-weight:760;white-space:nowrap}
.db2-vm-doc-kind{display:inline-flex;align-items:center;justify-content:center;width:max-content;border-radius:7px;padding:5px 8px;background:#edf4ff;color:#2462d9;font-size:10px;font-weight:700;line-height:1}
.db2-vm-doc-kind.revision{background:var(--wo-vm-purple-soft);color:#684be0}
.db2-vm-document-row .db2-vm-chevron{transition:transform .16s ease}.db2-vm-document-row .db2-vm-chevron.is-open{transform:rotate(90deg)}
.db2-vm-document-detail{padding:4px 12px 10px 110px;background:#f8fbff}.db2-vm-document-detail-head,.db2-vm-document-item{display:grid;grid-template-columns:minmax(170px,1fr) 120px 100px;gap:12px;align-items:center}.db2-vm-document-detail-head{padding:7px 10px;color:#718298;font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.db2-vm-document-item{width:100%;min-height:38px;padding:6px 10px;border:0;border-top:1px solid #e4ebf3;background:transparent;color:#253852;text-align:left;cursor:pointer}.db2-vm-document-item:hover{background:#eef5ff}.db2-vm-document-item strong{min-width:0;font-size:11.5px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}.db2-vm-document-item span,.db2-vm-document-item b{justify-self:end;font-size:11px;white-space:nowrap}.db2-vm-document-item b{font-weight:800}

.db2-vm-footer{padding:10px 20px 16px}
.db2-vm-footer button{width:100%;border:1px solid var(--wo-vm-border);background:#fff;color:var(--wo-vm-blue);border-radius:10px;padding:9px 12px;font-size:12px;font-weight:720;cursor:pointer}
.db2-vm-footer button:hover{background:#f7faff;border-color:#cfdef7}

/* ---------------- Product drawer ---------------- */
.db2-detail-backdrop{position:fixed;inset:0;z-index:103;background:rgba(20,31,52,.30);backdrop-filter:blur(1.5px)}
.db2-detail-drawer.db2-vm-detail{
  right:16px;top:16px;bottom:16px;width:min(720px,calc(100vw - 32px));z-index:105;
  border:1px solid #dde5ef;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(19,34,60,.22);overflow:hidden;
  display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;
}
.db2-vm-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid var(--wo-vm-border)}
.db2-vm-detail-head>div{min-width:0}
.db2-vm-detail-head h3{margin:0;color:var(--wo-vm-text);font-size:21px;line-height:1.2;font-weight:800;letter-spacing:-.02em;white-space:normal;overflow-wrap:anywhere}
.db2-vm-detail-head p{margin:6px 0 0;color:var(--wo-vm-muted);font-size:12px;line-height:1.3;font-weight:500;white-space:normal;overflow-wrap:anywhere}
.db2-vm-detail .db2-detail-close{width:34px;height:34px;flex:0 0 34px;border:0;background:#fff;color:#56667f;border-radius:9px;font-size:24px;line-height:1;cursor:pointer}
.db2-vm-detail .db2-detail-close:hover{background:#f3f6fa;color:#17345f}
.db2-vm-detail-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:14px 22px 13px;border-bottom:1px solid var(--wo-vm-border)}
.db2-vm-detail-metric{min-width:0;display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:10px 9px;border:1px solid var(--wo-vm-border);border-radius:11px;background:#fff}
.db2-vm-detail-metric i{grid-row:1/3;width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--wo-vm-blue-soft);color:var(--wo-vm-blue);font-style:normal}
.db2-vm-detail-metric i svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.db2-vm-detail-metric.incoming i{background:var(--wo-vm-purple-soft);color:var(--wo-vm-purple)}
.db2-vm-detail-metric.writeoff i{background:var(--wo-vm-orange-soft);color:var(--wo-vm-orange)}
.db2-vm-detail-metric.purchase i{background:var(--wo-vm-green-soft);color:var(--wo-vm-green)}
.db2-vm-detail-metric span{min-width:0;color:var(--wo-vm-muted);font-size:9.5px;font-weight:600;line-height:1.2;white-space:normal}
.db2-vm-detail-metric strong{min-width:0;color:var(--wo-vm-text);font-size:13px;font-weight:760;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
.db2-vm-detail-content{min-height:0;overflow:auto;padding:0 22px 18px;background:#fff}
.db2-vm-history{min-width:0}
.db2-vm-history-filters{position:sticky;top:0;z-index:5;display:flex;align-items:center;overflow-x:auto;background:#fff;padding:11px 0 10px;border-bottom:1px solid var(--wo-vm-border);scrollbar-width:thin}
.db2-vm-history-filters button{flex:0 0 auto;border:1px solid #dfe6f0;border-right:0;background:#fff;color:#58677f;padding:8px 13px;font-size:11px;font-weight:650;cursor:pointer}
.db2-vm-history-filters button:first-child{border-radius:9px 0 0 9px}
.db2-vm-history-filters button:last-child{border-right:1px solid #dfe6f0;border-radius:0 9px 9px 0}
.db2-vm-history-filters button.active{background:var(--wo-vm-blue-soft);border-color:#aac7fb;color:var(--wo-vm-blue);font-weight:750}
.db2-vm-history-groups{display:grid;gap:9px;padding-top:10px}
.db2-vm-day{border:1px solid var(--wo-vm-border);border-radius:11px;overflow:hidden;background:#fff}
.db2-vm-day>header{display:grid;grid-template-columns:110px minmax(0,1fr) 20px;gap:10px;align-items:center;min-height:42px;padding:8px 11px;border-bottom:1px solid var(--wo-vm-border-soft);background:#fbfcfe}
.db2-vm-day>header b{color:#263651;font-size:11.5px;font-weight:760;text-transform:none;white-space:nowrap}
.db2-vm-day>header span{min-width:0;color:#66758c;font-size:10px;line-height:1.25;font-weight:550;white-space:normal;overflow-wrap:anywhere}
.db2-vm-day>header em{justify-self:end;color:#56677f;font-size:13px;font-style:normal}
.db2-vm-movement-row{display:grid;grid-template-columns:8px 28px minmax(140px,1fr) 88px 86px 42px;gap:8px;align-items:center;min-height:49px;padding:7px 11px;border-bottom:1px solid var(--wo-vm-border-soft)}
.db2-vm-movement-row:last-child{border-bottom:0}
.db2-vm-movement-dot{width:6px;height:6px;border-radius:999px;background:#8b98ab}
.db2-vm-movement-row i{width:25px;height:25px;border-radius:999px;display:grid;place-items:center;font-style:normal;font-size:13px;font-weight:750;background:#f2f5f8;color:#6a788d}
.db2-vm-movement-row.receipt .db2-vm-movement-dot{background:#36ae6a}.db2-vm-movement-row.receipt i{background:var(--wo-vm-green-soft);color:var(--wo-vm-green)}
.db2-vm-movement-row.sales .db2-vm-movement-dot{background:#2d72ef}.db2-vm-movement-row.sales i{background:var(--wo-vm-blue-soft);color:var(--wo-vm-blue)}
.db2-vm-movement-row.writeoff .db2-vm-movement-dot{background:#ef6b32}.db2-vm-movement-row.writeoff i{background:var(--wo-vm-orange-soft);color:var(--wo-vm-orange)}
.db2-vm-movement-row.revision .db2-vm-movement-dot{background:#7659e8}.db2-vm-movement-row.revision i{background:var(--wo-vm-purple-soft);color:var(--wo-vm-purple)}
.db2-vm-movement-row>div{min-width:0}
.db2-vm-movement-row>div b{display:block;color:#24344f;font-size:11.5px;line-height:1.2;font-weight:720}
.db2-vm-movement-row>div small{display:block;margin-top:3px;color:#758399;font-size:9.5px;line-height:1.25;font-weight:500;white-space:normal;overflow-wrap:anywhere}
.db2-vm-movement-row>strong{justify-self:end;color:#24344f;font-size:11.5px;font-weight:720;white-space:nowrap;font-variant-numeric:tabular-nums}
.db2-vm-movement-money{justify-self:end;color:#24344f;font-size:11px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.db2-vm-movement-row time{justify-self:end;color:#7f8ca0;font-size:9.5px;white-space:nowrap;font-variant-numeric:tabular-nums}
.db2-vm-history-loading{display:grid;place-items:center;min-height:180px;color:var(--wo-vm-muted);font-size:12px}

.db2-vm-detail-footer{display:grid;grid-template-columns:auto minmax(190px,1fr) auto;gap:14px;align-items:center;padding:13px 22px 14px;border-top:1px solid var(--wo-vm-border);background:#fff}
.db2-vm-history-button{height:38px;border:1px solid #dfe6f0;background:#fff;color:#53627b;border-radius:10px;padding:0 14px;font-size:11px;font-weight:680;cursor:default}
.db2-vm-qty-stepper{display:flex;justify-content:center;align-items:flex-end;gap:9px;min-width:0}
.db2-vm-qty-stepper>span{align-self:center;color:#78869a;font-size:10px;font-weight:600}
.db2-vm-qty-stepper>div{display:grid;grid-template-columns:34px 48px 34px;height:36px;border:1px solid #dce4ee;border-radius:9px;overflow:hidden;background:#fff}
.db2-vm-qty-stepper button{border:0;border-right:1px solid #e4e9f1;background:#fff;color:#53647c;font-size:19px;cursor:pointer}.db2-vm-qty-stepper button:last-child{border-right:0;border-left:1px solid #e4e9f1}
.db2-vm-qty-stepper button:hover{background:#f5f8fc;color:var(--wo-vm-blue)}
.db2-vm-qty-stepper b{display:grid;place-items:center;color:#1d2b43;font-size:12px;font-weight:760}
.db2-vm-qty-stepper em{align-self:center;color:#66758a;font-size:10px;font-style:normal}
.db2-vm-add-order{height:40px;border:0;background:var(--wo-vm-blue);color:#fff;border-radius:10px;padding:0 18px;font-size:11.5px;font-weight:750;cursor:pointer;box-shadow:0 5px 14px rgba(11,102,246,.18)}
.db2-vm-add-order:hover{filter:brightness(.97)}.db2-vm-add-order:disabled{opacity:.58;cursor:wait;box-shadow:none}

/* Editing mechanics remain available without polluting the normal visual. */
.db2-page.is-editing .db2-vm-writeoffs:not(.is-pinned) .db2-widget__drag{display:flex}

@media(max-width:1180px){
  .db2-vm-head{flex-direction:column;align-items:stretch}.db2-vm-head-right{justify-content:space-between}.db2-vm-kpis{grid-template-columns:1fr 1fr}.db2-vm-kpi:last-child{grid-column:1/-1;min-height:72px}
  .db2-vm-detail-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.db2-vm-detail-metric:nth-child(4),.db2-vm-detail-metric:nth-child(5){grid-column:span 1}
}
@media(max-width:760px){
  .db2-vm-head{padding:15px 14px 10px}.db2-vm-head h3{font-size:18px}.db2-vm-head-right{align-items:flex-start}.db2-vm-segment{max-width:100%;overflow-x:auto}.db2-vm-segment button{min-width:64px;padding:8px 9px;font-size:11px}
  .db2-vm-kpis{grid-template-columns:1fr;padding:2px 14px 12px}.db2-vm-kpi:last-child{grid-column:auto}.db2-vm-kpi{min-height:76px;padding:13px}.db2-vm-kpi strong{font-size:20px}
  .db2-vm-tabs{margin:0 14px}.db2-vm-body{padding:0 14px}.db2-vm-footer{padding:9px 14px 13px}
  .db2-vm-product-row{grid-template-columns:24px minmax(130px,1fr) 72px 24px}.db2-vm-product-row>strong{display:none}
  .db2-vm-supplier-row{grid-template-columns:minmax(130px,1fr) 84px 24px}.db2-vm-supplier-share{display:none}
  .db2-vm-document-row{grid-template-columns:76px minmax(120px,1fr) 80px 24px}.db2-vm-document-row>span:nth-child(4),.db2-vm-document-row>b{display:none}
  .db2-detail-drawer.db2-vm-detail{right:6px;top:6px;bottom:6px;width:calc(100vw - 12px);border-radius:14px}
  .db2-vm-detail-head{padding:16px 14px 12px}.db2-vm-detail-head h3{font-size:18px}
  .db2-vm-detail-metrics{grid-template-columns:1fr 1fr;padding:10px 14px}.db2-vm-detail-metric:last-child{grid-column:1/-1}
  .db2-vm-detail-content{padding:0 14px 12px}.db2-vm-day>header{grid-template-columns:90px minmax(0,1fr) 16px}.db2-vm-movement-row{grid-template-columns:7px 25px minmax(120px,1fr) 74px}.db2-vm-movement-money,.db2-vm-movement-row time{display:none}
  .db2-vm-detail-footer{grid-template-columns:1fr;gap:8px;padding:10px 14px}.db2-vm-history-button{display:none}.db2-vm-qty-stepper{justify-content:space-between}.db2-vm-add-order{width:100%}
}

/* 2.30.0.3.0.7.1 — period-aware product card + 3 month writeoff trend */
.db2-vm-kpi--trend{
  width:100%;font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.db2-vm-kpi--trend:hover{border-color:#cbd8ea;box-shadow:0 5px 16px rgba(33,56,91,.07);transform:translateY(-1px)}
.db2-vm-kpi--trend:active{transform:none}
.db2-vm-kpi--trend small{color:#64758d;font-size:11px;font-weight:680}

.db2-vm-period-badge{
  display:inline-flex;align-items:center;margin-top:10px;padding:5px 9px;border-radius:999px;
  background:#eef5ff;color:#245ca9;font-size:12px;line-height:1;font-weight:720;
}
.db2-vm-detail-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 22px}
.db2-vm-detail-metric{
  position:relative;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto auto;
  min-height:92px;padding:12px 11px;border-radius:13px;font:inherit;text-align:left;color:inherit;
}
button.db2-vm-detail-metric{appearance:none;-webkit-appearance:none;cursor:pointer}
.db2-vm-detail-metric.is-clickable{transition:.15s ease}
.db2-vm-detail-metric.is-clickable:hover{background:#f8fbff;border-color:#cbdcf5;box-shadow:0 5px 14px rgba(28,55,92,.06);transform:translateY(-1px)}
.db2-vm-detail-metric i{grid-row:1/4;width:32px;height:32px;border-radius:10px}
.db2-vm-detail-metric.receipt i{background:var(--wo-vm-green-soft);color:var(--wo-vm-green)}
.db2-vm-detail-metric.sales i{background:var(--wo-vm-blue-soft);color:var(--wo-vm-blue)}
.db2-vm-detail-metric.writeoff i{background:var(--wo-vm-orange-soft);color:var(--wo-vm-orange)}
.db2-vm-detail-metric span{font-size:12.5px;font-weight:700;color:#53627a;line-height:1.25}
.db2-vm-detail-metric strong{margin-top:5px;font-size:17px;font-weight:800;line-height:1.15;letter-spacing:-.015em;font-variant-numeric:tabular-nums}
.db2-vm-detail-metric small{
  display:inline-flex;width:max-content;max-width:100%;margin-top:6px;padding:4px 7px;border-radius:7px;
  background:#f3f6fa;color:#617189;font-size:11px;font-weight:650;line-height:1.2;white-space:normal;
}
.db2-vm-detail-metric.sales small{background:#eef5ff;color:#2860ae}
.db2-vm-detail-metric.writeoff small{background:#fff3eb;color:#b8572d}
.db2-vm-detail-metric.receipt small{background:#effaf4;color:#28734c}
.db2-vm-detail-metric em{position:absolute;right:9px;bottom:8px;color:#7a889d;font-size:10px;font-style:normal;font-weight:700}

.db2-vm-detail-footer{grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:13px 22px 14px}
.db2-vm-footer-note{min-width:0;display:flex;flex-direction:column;gap:3px}
.db2-vm-footer-note b{font-size:12px;color:#273750;font-weight:760}
.db2-vm-footer-note span{font-size:11px;color:#748198;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.db2-vm-order-lock{min-height:40px;border:1px solid #d9e3ef;background:#f7f9fc;color:#304563;border-radius:10px;padding:0 16px;font:inherit;font-size:12px;font-weight:760;cursor:pointer;white-space:nowrap}
.db2-vm-order-lock:hover:not(:disabled){background:#fff4f2;border-color:#f1c7c1;color:#b84538}
.db2-vm-order-lock.is-blocked{background:#fff3f1;border-color:#efc8c2;color:#b84236}
.db2-vm-order-lock.is-blocked:hover:not(:disabled){background:#effaf4;border-color:#c9e7d5;color:#247448}
.db2-vm-order-lock:disabled{opacity:.58;cursor:not-allowed}

.db2-wo-trend-backdrop{position:fixed;inset:0;z-index:140;background:rgba(18,31,53,.34);backdrop-filter:blur(2px);display:grid;place-items:center;padding:24px}
.db2-wo-trend-modal{width:min(920px,calc(100vw - 48px));max-height:calc(100vh - 48px);overflow:auto;background:#fff;border:1px solid #dfe6ef;border-radius:18px;box-shadow:0 24px 72px rgba(17,31,55,.24);color:var(--wo-vm-text)}
.db2-wo-trend-modal>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px 12px;border-bottom:1px solid #edf1f6}
.db2-wo-trend-modal>header small{display:block;color:#708097;font-size:12px;font-weight:650}
.db2-wo-trend-modal>header h3{margin:4px 0 0;font-size:21px;line-height:1.2;font-weight:820;letter-spacing:-.02em}
.db2-wo-trend-modal>header p{margin:6px 0 0;color:#7a889b;font-size:12px;font-weight:560}
.db2-wo-trend-modal>header button{width:34px;height:34px;border:0;border-radius:9px;background:#f5f7fa;color:#52627a;font-size:23px;cursor:pointer}
.db2-wo-trend-summary{display:flex;align-items:baseline;gap:12px;padding:16px 22px 4px}
.db2-wo-trend-summary span{color:#6e7d93;font-size:12px;font-weight:650}.db2-wo-trend-summary b{font-size:24px;font-weight:830;letter-spacing:-.02em}.db2-wo-trend-summary em{padding:4px 8px;border-radius:999px;font-size:12px;font-style:normal;font-weight:760;background:#f2f5f8;color:#66758c}.db2-wo-trend-summary em.good{background:#effaf4;color:#19814c}.db2-wo-trend-summary em.bad{background:#fff1f2;color:#cf3544}
.db2-wo-trend-chart{padding:6px 16px 2px}.db2-wo-trend-chart svg{display:block;width:100%;height:270px;overflow:visible}.db2-wo-trend-chart svg>line{stroke:#dce4ed;stroke-width:1}.db2-wo-trend-bar rect{fill:#f08a59;transition:opacity .14s ease,filter .14s ease}.db2-wo-trend-bar:hover rect{filter:brightness(.94);opacity:.88}.db2-wo-trend-bar text{fill:#7b899c;font-size:11px;font-weight:600}
.db2-wo-trend-modal>footer{padding:6px 22px 18px;color:#7a889c;font-size:11.5px;font-weight:550}

@media(max-width:1180px){
  .db2-vm-detail-metrics{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .db2-vm-detail-metrics{grid-template-columns:1fr;padding:10px 14px}
  .db2-vm-detail-metric:last-child{grid-column:auto}
  .db2-vm-detail-footer{grid-template-columns:1fr;gap:9px;padding:10px 14px}
  .db2-vm-order-lock{width:100%}
  .db2-wo-trend-backdrop{padding:8px}.db2-wo-trend-modal{width:100%;max-height:calc(100vh - 16px);border-radius:14px}.db2-wo-trend-chart svg{height:230px}
}

/* 2.30.0.3.0.7.2 — compact right-click movement sum */
.db2-vm-movement-row.is-calculated{background:rgba(34,197,94,.08);box-shadow:inset 3px 0 0 rgba(22,163,74,.68)}
.db2-vm-mini-sum{position:sticky;bottom:72px;z-index:8;margin:6px 14px 0 auto;width:max-content;max-width:calc(100% - 28px);min-height:32px;padding:4px 7px 4px 9px;border:1px solid rgba(15,23,42,.10);border-radius:10px;background:rgba(255,255,255,.96);box-shadow:0 7px 20px rgba(15,23,42,.10);display:flex;align-items:center;gap:9px;font-size:13px;color:#64748b;backdrop-filter:blur(8px)}
.db2-vm-mini-sum span{min-width:20px;height:20px;padding:0 6px;border-radius:7px;background:#f1f5f9;display:grid;place-items:center;font-weight:750;color:#475569}
.db2-vm-mini-sum b{font-size:13px;color:#334155;font-weight:750;white-space:nowrap}
.db2-vm-mini-sum strong{font-size:14px;color:#0f172a;font-weight:850;white-space:nowrap}
.db2-vm-mini-sum button{border:0;background:transparent;color:#94a3b8;font-size:18px;line-height:20px;width:22px;height:22px;border-radius:7px;cursor:pointer;padding:0}
.db2-vm-mini-sum button:hover{background:#f1f5f9;color:#334155}

/* === 2.31.0.111 — Director / draft-beer revisions ======================== */
.pour-dir-page{--pour-border:#dfe6ef;--pour-soft:#f6f8fb;--pour-text:#1f2f46;--pour-muted:#708097;--pour-blue:#2f6ecb;--pour-green:#24804e;--pour-red:#c23e49;--pour-amber:#9b6d14}
.pour-dir-toolbar{display:flex;align-items:center;gap:18px;justify-content:space-between;padding:15px 18px!important}.pour-dir-toolbar>div:first-child{min-width:230px}.pour-dir-toolbar h2{margin:0;color:var(--pour-text);font-size:19px}.pour-dir-toolbar p{margin:4px 0 0;color:var(--pour-muted);font-size:12px}
.pour-dir-mode-tabs{display:flex;align-items:center;gap:4px;padding:4px;background:#f3f6fa;border:1px solid #e2e8f0;border-radius:11px;margin-left:auto}.pour-dir-mode-tabs button{border:0;background:transparent;color:#66758d;border-radius:8px;padding:8px 12px;font:inherit;font-size:12px;font-weight:720;cursor:pointer}.pour-dir-mode-tabs button.is-active{background:#fff;color:#245ca9;box-shadow:0 1px 5px rgba(30,55,91,.10)}
.pour-dir-store-chips{margin-left:4px;max-width:48%;overflow-x:auto;flex-wrap:nowrap!important}.pour-dir-store-chips button{white-space:nowrap}
.pour-dir-journal{padding:0!important;overflow:hidden}.pour-dir-journal .sw-dir-table-head{padding:17px 18px 13px}.pour-dir-journal .sw-dir-table-head h3{margin:0;font-size:16px}.pour-dir-journal .sw-dir-table-head p{margin:4px 0 0;color:var(--pour-muted);font-size:11.5px}
.pour-dir-latest-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px;padding:0 18px 14px}.pour-dir-latest{min-height:76px;border:1px solid var(--pour-border);border-radius:12px;background:#fff;padding:10px 11px;display:flex;flex-direction:column;gap:3px}.pour-dir-latest span{font-size:11px;color:#67778f;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pour-dir-latest b{font-size:14px;color:var(--pour-text)}.pour-dir-latest small{font-size:10.5px;color:#8390a3}.pour-dir-latest.empty{background:#fafbfc}.pour-dir-latest.empty b{color:#a2adbb}
.pour-dir-journal-group{margin:0 18px 10px;border:1px solid var(--pour-border);border-radius:12px;overflow:hidden;background:#fff}.pour-dir-journal-group>summary{padding:11px 13px}.pour-dir-journal-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(125px,.45fr) auto auto;gap:12px;align-items:center;padding:10px 13px;border:0;border-top:1px solid #edf1f5;background:#fff;text-align:left;color:inherit;cursor:pointer}.pour-dir-journal-row:hover{background:#f9fbfd}.pour-dir-journal-row>span:first-child{min-width:0;display:flex;flex-direction:column;gap:3px}.pour-dir-journal-row>span:first-child b{font-size:12.5px;color:#24354d}.pour-dir-journal-row>span:first-child small{font-size:10.5px;color:#7b899d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pour-dir-row-metrics{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.pour-dir-row-metrics em{font-style:normal;font-weight:800;font-size:12px}.pour-dir-row-metrics small{font-size:10px;color:#7f8c9f}.pour-dir-journal-row code{font-family:inherit;font-size:10.5px;color:#62728a;background:#f3f6fa;border-radius:7px;padding:4px 6px;white-space:nowrap}
.pour-dir-settings{padding:0!important;overflow:hidden}.pour-dir-settings-head{display:grid;grid-template-columns:minmax(230px,1.2fr) minmax(150px,.65fr) minmax(150px,.65fr) auto;gap:10px;align-items:end;padding:16px 18px;border-bottom:1px solid #edf1f5}.pour-dir-settings-head label,.pour-dir-copy-row label,.pour-dir-bulk label,.pour-dir-form-grid label{display:flex;flex-direction:column;gap:5px;color:#697990;font-size:10.5px;font-weight:700}.pour-dir-settings-head select,.pour-dir-settings-head input,.pour-dir-copy-row select,.pour-dir-bulk input,.pour-dir-form-grid input{height:38px;border:1px solid #d7e0eb;border-radius:9px;background:#fff;color:#273750;padding:0 10px;font:inherit;font-size:12px;min-width:0}.pour-dir-settings-head .primary-btn{height:38px;white-space:nowrap}
.pour-dir-copy-row{display:flex;align-items:end;gap:9px;padding:11px 18px;border-bottom:1px solid #edf1f5;background:#fafbfd}.pour-dir-copy-row label{min-width:250px}.pour-dir-copy-note{font-size:10.5px;color:#7a889b;line-height:1.3;align-self:center;margin-left:4px}
.pour-dir-bulk{display:flex;align-items:end;gap:8px;padding:11px 18px;border-bottom:1px solid #edf1f5;background:#fff}.pour-dir-bulk>span{align-self:center;margin-right:4px;color:#49607d;font-size:11px;font-weight:750;white-space:nowrap}.pour-dir-bulk label{width:110px}.pour-dir-bulk .soft-btn{height:38px;white-space:nowrap}.pour-dir-bulk.is-empty{opacity:.56}
.pour-dir-grid-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px 8px}.pour-dir-grid-head>div{display:flex;flex-direction:column;gap:2px}.pour-dir-grid-head b{font-size:13px;color:#2b3d55}.pour-dir-grid-head small{font-size:10.5px;color:#7c899d}.pour-dir-grid-head span{font-size:10.5px;color:#758399}
.pour-dir-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:8px;padding:0 18px 18px}.pour-dir-product{position:relative;min-height:112px;border:1px solid var(--pour-border);border-radius:12px;background:#fff;display:flex;overflow:hidden;transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease}.pour-dir-product:hover{border-color:#c9d7e8;box-shadow:0 4px 13px rgba(31,53,82,.06)}.pour-dir-product.dragging{opacity:.42;transform:scale(.985)}.pour-dir-product.unconfigured{border-style:dashed;border-color:#ddb96a;background:#fffdf8}.pour-dir-product.hidden-item{opacity:.53;background:#f6f7f9}.pour-dir-select{position:absolute;right:8px;top:8px;z-index:2}.pour-dir-select input{width:16px;height:16px;accent-color:#2f6ecb}.pour-dir-product-main{width:100%;border:0;background:transparent;text-align:left;padding:11px 30px 10px 11px;color:inherit;cursor:pointer;display:flex;flex-direction:column;gap:5px}.pour-dir-product-main strong{font-size:12.5px;line-height:1.25;color:#24354d;min-height:30px}.pour-dir-product-main>small{font-size:9.5px;color:#8a96a7}.pour-dir-product-main>div{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto}.pour-dir-product-main>div span{padding:3px 6px;border-radius:999px;background:#f1f5f9;color:#62728a;font-size:9.5px;font-weight:650}.pour-dir-product .pour-dir-unconfigured,.pour-dir-product .pour-dir-hidden{align-self:flex-start;padding:3px 6px;border-radius:6px;font-size:9px;font-weight:750}.pour-dir-unconfigured{background:#fff0d0;color:#96680e}.pour-dir-hidden{background:#edf0f4;color:#69778b}
.pour-dir-modal-backdrop{position:fixed;inset:0;z-index:180;background:rgba(19,31,51,.34);backdrop-filter:blur(2px);display:grid;place-items:center;padding:20px}.pour-dir-modal{width:min(630px,calc(100vw - 40px));max-height:calc(100vh - 40px);overflow:auto;border:1px solid #dde5ee;border-radius:16px;background:#fff;box-shadow:0 22px 70px rgba(19,31,51,.25);padding:17px;color:#22344c}.pour-dir-modal-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:13px}.pour-dir-modal-head h3{margin:0;font-size:18px}.pour-dir-modal-head p{margin:4px 0 0;color:#7a889b;font-size:11px}.pour-dir-modal-head>button{width:33px;height:33px;border:0;border-radius:9px;background:#f2f5f8;color:#5f6f85;font-size:22px;cursor:pointer}.pour-dir-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pour-dir-form-grid label:first-child{grid-column:1/-1}.pour-dir-check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;padding:9px 10px;border:1px solid #e1e7ef;border-radius:9px}.pour-dir-check input{height:auto!important;width:17px}.pour-dir-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #edf1f5}
.pour-dir-detail-modal{width:min(820px,calc(100vw - 40px))}.pour-dir-detail-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.pour-dir-detail-summary span{padding:10px;border:1px solid #e1e7ef;border-radius:10px;background:#fafbfd;color:#6d7b90;font-size:10.5px}.pour-dir-detail-summary b{display:block;margin-top:4px;color:#26384f;font-size:13px}.pour-dir-detail-items{max-height:48vh;overflow:auto;border:1px solid #e1e7ef;border-radius:11px}.pour-dir-detail-items>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border-top:1px solid #edf1f5}.pour-dir-detail-items>div:first-child{border-top:0}.pour-dir-detail-items>div.is-bad{background:#fff7f7}.pour-dir-detail-items span{display:flex;flex-direction:column;gap:2px;min-width:0}.pour-dir-detail-items b{font-size:11.5px}.pour-dir-detail-items small{font-size:9.5px;color:#7b899c}.pour-dir-detail-items strong{font-size:12px;white-space:nowrap}.pour-dir-detail-items strong em{font-style:normal;margin-left:6px;color:#7b899c}.pour-dir-detail-items>div.is-bad strong em{color:var(--pour-red)}.pour-dir-adjustments{margin-top:10px;padding:10px 11px;border-radius:10px;background:#f4f8f5;border:1px solid #dce9df;font-size:11px;color:#496154}.pour-dir-adjustments.warning{background:#fff8e8;border-color:#eedbb1;color:#806018}.pour-dir-adjustments b{display:block;margin-bottom:3px}
@media(max-width:1120px){.pour-dir-toolbar{align-items:flex-start;flex-wrap:wrap}.pour-dir-mode-tabs{margin-left:0}.pour-dir-store-chips{max-width:100%;width:100%}.pour-dir-settings-head{grid-template-columns:1fr 1fr}.pour-dir-settings-head>label:first-child{grid-column:1/-1}.pour-dir-settings-head .primary-btn{width:100%}.pour-dir-copy-row,.pour-dir-bulk{flex-wrap:wrap}.pour-dir-product-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr))}}
@media(max-width:760px){.pour-dir-journal-row{grid-template-columns:minmax(0,1fr) auto}.pour-dir-journal-row .pour-dir-row-metrics{grid-column:1}.pour-dir-journal-row code{display:none}.pour-dir-latest-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.pour-dir-settings-head{grid-template-columns:1fr}.pour-dir-settings-head>label:first-child{grid-column:auto}.pour-dir-copy-row label{min-width:100%;width:100%}.pour-dir-bulk label{width:calc(50% - 4px)}.pour-dir-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pour-dir-form-grid,.pour-dir-detail-summary{grid-template-columns:1fr 1fr}.pour-dir-form-grid label:first-child{grid-column:1/-1}.pour-dir-modal-backdrop{padding:8px}.pour-dir-modal{width:100%;max-height:calc(100vh - 16px);padding:14px}}
/* === /2.31.0.111 — Director / draft-beer revisions ======================= */
/* 2.31.0.111 markup compatibility */
.pour-dir-config-head{padding:0!important;overflow:hidden;margin:0}.pour-dir-config-head .sw-dir-table-head{padding:15px 17px 10px}.pour-dir-config-head .sw-dir-table-head h3{margin:0;font-size:15px}.pour-dir-config-head .sw-dir-table-head p{margin:4px 0 0;color:#708097;font-size:11px}
.pour-dir-config-grid{display:grid;grid-template-columns:minmax(250px,1.4fr) minmax(130px,.55fr) minmax(130px,.55fr) auto;gap:9px;align-items:end;padding:10px 17px 13px;border-top:1px solid #edf1f5}.pour-dir-config-grid label{display:flex;flex-direction:column;gap:5px;color:#697990;font-size:10.5px;font-weight:700}.pour-dir-config-grid .input{height:38px;min-width:0}.pour-dir-config-grid .primary-btn{height:38px;white-space:nowrap}
.pour-dir-copy{display:flex;align-items:center;gap:8px;padding:10px 17px;border-top:1px solid #edf1f5;background:#fafbfd}.pour-dir-copy>span{font-size:10.5px;font-weight:720;color:#596a81;white-space:nowrap}.pour-dir-copy .input{height:35px;min-width:210px}.pour-dir-copy .soft-btn{height:35px}.pour-dir-copy small{font-size:9.5px;color:#8390a2;line-height:1.25}
.pour-dir-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:8px;margin-top:10px}.pour-dir-grid>.empty-state{grid-column:1/-1}.pour-dir-badges{position:absolute;left:8px;right:8px;bottom:7px;display:flex;align-items:center;gap:4px;pointer-events:none}.pour-dir-badges .badge{font-size:8.5px;padding:3px 5px}.pour-dir-grip{margin-left:auto;color:#9aa6b5;font-weight:900;font-size:13px;letter-spacing:-2px}.pour-dir-product-main{padding-bottom:31px}
.pour-dir-bulk{display:grid;grid-template-columns:minmax(170px,1fr) repeat(4,minmax(90px,.45fr)) auto;gap:8px;align-items:center;margin-top:10px;padding:10px 12px;border:1px solid #dfe6ef;border-radius:11px;background:#fff}.pour-dir-bulk>div{display:flex;flex-direction:column;gap:2px}.pour-dir-bulk>div b{font-size:11.5px;color:#30445e}.pour-dir-bulk>div small{font-size:9.5px;color:#8490a2}.pour-dir-bulk .input{height:36px}.pour-dir-bulk .primary-btn{height:36px;white-space:nowrap}
.pour-dir-modal .grid.two{display:grid;grid-template-columns:1fr 1fr;gap:9px}.pour-dir-modal .field-stack{display:flex;flex-direction:column;gap:5px}.pour-dir-modal .field-stack>span{font-size:10.5px;color:#697990;font-weight:700}.pour-dir-modal .toggle-line{display:flex;align-items:center;gap:8px;min-height:37px;padding:8px 9px;border:1px solid #e1e7ef;border-radius:9px;color:#56677f;font-size:11px}.pour-dir-modal .toggle-line input{width:16px;height:16px}.pour-dir-modal .action-row{display:flex;justify-content:flex-end;gap:8px;margin-top:13px;padding-top:11px;border-top:1px solid #edf1f5}
.pour-store-card small{font-size:10px;color:#8a958e;margin-top:1px}
@media(max-width:1120px){.pour-dir-config-grid{grid-template-columns:1fr 1fr}.pour-dir-config-grid label:first-child{grid-column:1/-1}.pour-dir-config-grid .primary-btn{width:100%}.pour-dir-copy{flex-wrap:wrap}.pour-dir-copy small{width:100%}.pour-dir-bulk{grid-template-columns:1fr 1fr 1fr}.pour-dir-bulk>div{grid-column:1/-1}.pour-dir-bulk .primary-btn{width:100%}}
@media(max-width:760px){.pour-dir-config-grid{grid-template-columns:1fr}.pour-dir-config-grid label:first-child{grid-column:auto}.pour-dir-copy .input{min-width:0;flex:1}.pour-dir-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pour-dir-bulk{grid-template-columns:1fr 1fr}.pour-dir-bulk>div,.pour-dir-bulk .primary-btn{grid-column:1/-1}.pour-dir-modal .grid.two{grid-template-columns:1fr}}

/* === 2.31.0.120 — revision settings: bulk MiniApp visibility + live drag === */
.pour-dir-bulk{grid-template-columns:minmax(170px,1fr) repeat(4,minmax(86px,.42fr)) auto auto auto}
.pour-dir-bulk .soft-btn,.pour-dir-bulk .primary-btn{height:36px;white-space:nowrap}
.pour-dir-product{will-change:transform}.pour-dir-product.dragging{opacity:.72;transform:scale(.975);box-shadow:0 10px 28px rgba(31,53,82,.16);border-color:#9bb9df;z-index:3}.pour-dir-product.drag-target{border-color:#2f6ecb;box-shadow:0 0 0 2px rgba(47,110,203,.12)}
.pour-dir-grip{cursor:grab}.pour-dir-product.dragging .pour-dir-grip{cursor:grabbing}
@media(max-width:1120px){.pour-dir-bulk{grid-template-columns:repeat(3,minmax(0,1fr))}.pour-dir-bulk>div{grid-column:1/-1}.pour-dir-bulk .soft-btn,.pour-dir-bulk .primary-btn{width:100%}}
@media(max-width:760px){.pour-dir-bulk{grid-template-columns:1fr 1fr}.pour-dir-bulk>div,.pour-dir-bulk .primary-btn{grid-column:1/-1}.pour-dir-bulk .soft-btn{width:100%}}
/* === /2.31.0.120 =========================================================== */

/* === 2.31.0.121 — revision hidden tab / stock guard / promotions ========= */
.pour-dir-settings-tabs{display:flex;align-items:center;gap:4px;padding:0 18px 10px}.pour-dir-settings-tabs button{border:1px solid #dfe6ef;background:#f7f9fc;color:#65758c;border-radius:10px;padding:8px 12px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}.pour-dir-settings-tabs button.is-active{background:#fff;color:#245ca9;border-color:#cfdbea;box-shadow:0 1px 5px rgba(30,55,91,.08)}.pour-dir-settings-tabs b{margin-left:4px;font-size:11px}
.pour-dir-product-main div span b{color:#24354d;font-weight:800}.pour-dir-promo-chip{background:#fff1cf!important;color:#8a5a00!important;border-radius:999px;padding:2px 6px!important;font-weight:800!important}.pour-dir-promo-toggle{grid-column:1/-1}.pour-dir-promo-fields{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:end;padding:10px;border:1px solid #eadfb8;border-radius:12px;background:#fffaf0}.pour-dir-promo-fields>small{grid-column:1/-1;color:#7c6a3c;font-size:11px;line-height:1.35}.pour-dir-promo-plus{align-self:center;font-size:22px;font-weight:850;color:#92712e;padding-bottom:8px}.toggle-line.is-disabled{opacity:.6}.pour-dir-grid.is-hidden-tab .pour-dir-product{background:#fafbfc}.pour-dir-grid.is-hidden-tab .pour-dir-grip{display:none}
.pour-dir-bulk button:disabled{opacity:.45;cursor:not-allowed}
/* === /2.31.0.121 ======================================================== */

/* === 2.31.0.154 — revision manual tiles / tare copy ====================== */
.pour-dir-manual-modal{width:min(760px,calc(100vw - 40px))}
.pour-dir-manual-tools{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(240px,1.2fr) auto;gap:9px;align-items:end}
.pour-dir-manual-tools .field-stack{min-width:0}.pour-dir-manual-tools .primary-btn{height:38px;white-space:nowrap}
.pour-dir-manual-hint{margin:8px 0 10px;color:#7b899c;font-size:10.5px;line-height:1.35}
.pour-dir-manual-results{border:1px solid #e1e7ef;border-radius:11px;max-height:48vh;overflow:auto;background:#fff}
.pour-dir-manual-row{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:9px 10px;border-top:1px solid #edf1f5}
.pour-dir-manual-row:first-child{border-top:0}.pour-dir-manual-row>span:first-child{min-width:0;display:flex;flex-direction:column;gap:2px}.pour-dir-manual-row b{font-size:11.5px;color:#283a52;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pour-dir-manual-row small{font-size:9.5px;color:#7f8d9f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pour-dir-manual-row .soft-btn{height:32px;white-space:nowrap}.pour-dir-manual-row .badge{white-space:nowrap}
.pour-dir-head-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:760px){.pour-dir-manual-tools{grid-template-columns:1fr}.pour-dir-manual-tools .primary-btn{width:100%}.pour-dir-manual-row{align-items:flex-start}.pour-dir-manual-row>span:first-child{max-width:68%}.pour-dir-copy .soft-btn{width:100%}}
/* === /2.31.0.154 ========================================================= */

/* 2.31.0.154 — expanded writeoff widget + document drill-down */
.db2-vm-writeoffs.is-expanded .db2-vm-body{flex:0 0 auto;overflow:visible}
.db2-vm-writeoffs.is-expanded .db2-vm-shell{overflow:hidden}
.db2-vm-writeoffs.is-expanded .db2-vm-list{overflow:visible}
.db2-vm-movement-row.is-openable{cursor:pointer;transition:background .12s ease,border-color .12s ease}
.db2-vm-movement-row.is-openable:hover{background:#f7faff}
.db2-vm-movement-row.is-openable:hover>div>b{color:#245fcb}
.db2-vm-doc-overlay{position:absolute;inset:0;z-index:12;background:rgba(246,249,253,.88);backdrop-filter:blur(2px);display:flex;align-items:stretch;justify-content:flex-end;padding:12px}
.db2-vm-doc-card{width:min(560px,100%);height:100%;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #dce5f0;border-radius:15px;box-shadow:0 18px 45px rgba(25,43,72,.18)}
.db2-vm-doc-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:16px 17px 13px;border-bottom:1px solid #e9eef5}
.db2-vm-doc-card>header>div{min-width:0}.db2-vm-doc-card>header small{display:block;color:#738198;font-size:10.5px;font-weight:700}.db2-vm-doc-card>header h4{margin:4px 0 0;color:#25344c;font-size:17px;line-height:1.2;font-weight:820;overflow-wrap:anywhere}.db2-vm-doc-card>header p{margin:5px 0 0;color:#8793a4;font-size:10.5px;line-height:1.35;overflow-wrap:anywhere}.db2-vm-doc-card>header button{width:32px;height:32px;flex:none;border:0;border-radius:9px;background:#f3f6fa;color:#607089;font-size:22px;cursor:pointer}
.db2-vm-doc-summary{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0;border-bottom:1px solid #e9eef5;background:#fafcff}.db2-vm-doc-summary>*{padding:10px 13px;border-right:1px solid #e9eef5;font-size:11px;font-style:normal;text-align:right;color:#34445c}.db2-vm-doc-summary>*:first-child{text-align:left}.db2-vm-doc-summary>*:last-child{border-right:0}.db2-vm-doc-summary strong{font-weight:820}
.db2-vm-doc-items{min-height:0;overflow:auto;padding:5px 13px 16px}.db2-vm-doc-item{display:grid;grid-template-columns:minmax(0,1fr) 110px 95px;gap:10px;align-items:center;min-height:48px;padding:7px 4px;border-bottom:1px solid #edf1f6}.db2-vm-doc-item>span{min-width:0}.db2-vm-doc-item b{display:block;color:#2b3a51;font-size:11.5px;line-height:1.3;overflow-wrap:anywhere}.db2-vm-doc-item small{display:block;margin-top:2px;color:#8b96a6;font-size:9.5px}.db2-vm-doc-item>strong,.db2-vm-doc-item>em{text-align:right;white-space:nowrap;font-size:11px;font-style:normal}.db2-vm-doc-item>strong.in{color:#19814c}.db2-vm-doc-item>strong.out{color:#c94747}.db2-vm-doc-item>em{color:#34445c;font-weight:760}
.db2-vm-doc-loading{display:grid;place-items:center;flex:1;color:#718097;font-size:12px}
@media(max-width:760px){.db2-vm-doc-overlay{padding:6px}.db2-vm-doc-item{grid-template-columns:minmax(0,1fr) 92px}.db2-vm-doc-item>em{display:none}}
