:root{--bg:#f4f6f8;--panel:#fff;--ink:#17212b;--muted:#687583;--line:#d9e0e7;--accent:#0f5f7f;--accent2:#0b455e;--warn:#fff3cd;--danger:#a11c1c;--shadow:0 8px 22px rgba(30,50,70,.08)}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font:inherit}.topbar{height:84px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:12px 24px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:14px}.brand img{width:152px;height:auto}.brand h1{font-size:18px;margin:0}.brand p{margin:3px 0 0;color:var(--muted);font-size:12px}.auction-switch{display:flex;gap:8px;align-items:end}.auction-switch label{font-size:11px;font-weight:700;color:var(--muted);display:flex;flex-direction:column;gap:5px}.auction-switch select{min-width:150px}
.layout{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 84px)}.sidebar{background:#12212b;padding:18px 12px;display:flex;flex-direction:column;gap:7px}.nav{border:0;background:transparent;color:#d6e0e7;text-align:left;padding:12px 14px;border-radius:8px;cursor:pointer;font-weight:650}.nav:hover,.nav.active{background:#1f3c4d;color:#fff}.content{padding:22px;min-width:0}.tab{display:none}.tab.active{display:block}.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}.section-head h2{margin:0 0 4px;font-size:23px}.section-head p{margin:0;color:var(--muted)}
.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;box-shadow:var(--shadow);margin-bottom:16px}.cards{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:14px;margin-bottom:16px}.metric{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px}.metric small{display:block;color:var(--muted);font-weight:700}.metric strong{font-size:25px;display:block;margin-top:7px}.flow{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.flow span{background:#eef3f6;border-radius:7px;padding:8px 10px;font-size:13px}.flow b{color:#8aa0ae}
.btn{border:1px solid transparent;border-radius:8px;padding:9px 13px;font-weight:700;cursor:pointer}.btn.primary{background:var(--accent);color:white}.btn.primary:hover{background:var(--accent2)}.btn.ghost{background:#fff;border-color:#bfcbd4;color:#21313e}.btn.danger{background:#fff;border-color:#e4bcbc;color:var(--danger)}.btn.small{padding:5px 8px;font-size:12px}.hidden{display:none!important}.status{padding:11px 14px;border-radius:8px;margin-bottom:14px;background:#e9f5ff;border:1px solid #b4d8f1}.status.error{background:#fdeaea;border-color:#efb8b8;color:#8c1f1f}.warning{background:var(--warn);border:1px solid #ecd37a;border-radius:9px;padding:12px;margin-bottom:14px}.muted{color:var(--muted);font-size:13px}
input,select,textarea{border:1px solid #bdc8d1;border-radius:7px;background:#fff;padding:9px 10px;color:var(--ink)}textarea{width:100%;resize:vertical;line-height:1.45}.upload-card{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.upload-card input{min-width:360px}.table-wrap{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:auto;max-height:64vh}.table-wrap.small{max-height:500px}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th,td{padding:8px 9px;border-bottom:1px solid #e5eaee;text-align:left}th{position:sticky;top:0;background:#eaf0f4;z-index:2;font-size:12px}tr:hover td{background:#fbfdff}.num{text-align:right}.bad{color:#9b1c1c;font-weight:700}.good{color:#17633a;font-weight:700}.fee-input,.bon-input{width:88px;padding:5px 7px}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.summary-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.summary-card h3{margin:0;background:#203b4b;color:#fff;padding:10px 12px;font-size:14px}.summary-row{display:flex;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #edf0f2}.summary-total{display:flex;justify-content:space-between;padding:9px 12px;background:#eef3f6;font-weight:800}.master-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.inline-form{display:grid;grid-template-columns:90px 1fr 1fr auto;gap:8px;margin-bottom:12px}.settings-card{display:flex;align-items:end;gap:12px}.settings-card label{display:flex;flex-direction:column;gap:6px;font-weight:700}.storage{margin-left:auto;color:var(--muted)}
.nota-toolbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.nota-toolbar label{display:flex;flex-direction:column;gap:5px;font-weight:700}.nota-toolbar select{min-width:220px}.nota-preview-wrap{display:flex;justify-content:center;padding:10px 0 30px}.note-page{width:105mm;height:148mm;background:#fff;box-shadow:0 12px 36px rgba(0,0,0,.18);position:relative;overflow:hidden;font-family:Arial,sans-serif;color:#111;padding:0}.note-watermark{position:absolute;width:54mm;opacity:.045;left:3mm;top:5mm}.note-head{position:absolute;right:2mm;top:1mm;width:39mm;border:1px solid #111;text-align:center}.note-head .name{font-size:5.5mm;font-weight:800;padding:3mm 1mm}.note-head .date{background:#b9b9b9;border-top:1px solid #111;padding:1.2mm;font-size:2.7mm}.unpaid-label{position:absolute;left:4mm;top:24mm;background:#9fb5dd;border:1px solid #111;border-radius:1.4mm;transform:rotate(-4deg);padding:1.4mm 4mm;font-size:3mm;font-weight:800}.unpaid-list{position:absolute;left:2mm;top:33mm;width:68mm}.unpaid-line{display:grid;grid-template-columns:1fr 20mm;height:6.7mm;margin-bottom:.9mm;gap:3mm}.unpaid-line span{border:1px solid #111;background:#d5d5d5;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:3.6mm}.unpaid-line:nth-child(even) span{background:#8f8b8b}.note-right{position:absolute;right:1.5mm;top:30mm;width:31mm}.note-big{height:18mm;background:#ffe39a;border:1px solid #111;display:flex;align-items:center;justify-content:center;font-size:7.5mm;margin-bottom:8mm}.sidebox{border:1px solid #111;margin-bottom:3mm;text-align:center}.sidebox b{display:block;background:#c5c5c5;padding:2mm;font-size:3.2mm}.sidebox span{display:block;padding:3mm 1mm;font-size:5.4mm}.note-bottom1{position:absolute;left:2mm;right:1.5mm;bottom:27mm;display:grid;grid-template-columns:1fr 1fr 1.28fr 1.15fr;gap:3mm}.mini-box,.bottom-box{border:1px solid #111;text-align:center}.mini-box b,.bottom-box b{display:block;background:#c5c5c5;padding:1.5mm .8mm;font-size:2.6mm}.mini-box span{display:block;padding:2mm .5mm;font-size:3.2mm;font-weight:800}.note-bottom2{position:absolute;left:2mm;right:1.5mm;bottom:2mm;display:grid;grid-template-columns:1fr 1.12fr 1.08fr;gap:3mm}.bottom-box span{display:block;padding:3mm .5mm;font-size:3.2mm;font-weight:800}
.dialog-form{min-width:370px;display:flex;flex-direction:column;gap:12px}.dialog-form h3{margin:0}.dialog-form label{display:flex;flex-direction:column;gap:5px;font-weight:700}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}dialog{border:0;border-radius:12px;box-shadow:0 18px 60px rgba(0,0,0,.25)}dialog::backdrop{background:rgba(10,20,30,.45)}
@media(max-width:1000px){.layout{grid-template-columns:180px 1fr}.cards{grid-template-columns:repeat(2,1fr)}.master-grid{grid-template-columns:1fr}.brand p{display:none}}@media(max-width:760px){.topbar{height:auto;align-items:flex-start;gap:10px;flex-direction:column}.layout{display:block}.sidebar{position:sticky;top:112px;z-index:10;flex-direction:row;overflow:auto;padding:8px}.nav{white-space:nowrap}.content{padding:12px}.cards{grid-template-columns:1fr 1fr}.section-head{align-items:flex-start}.upload-card input{min-width:0;width:100%}.nota-preview-wrap{justify-content:flex-start;overflow:auto}}

/* V1R2 - penyesuaian tampilan sesuai workflow Excel B-STORE */
.topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;position:sticky;}
.topbar-title{justify-self:start;font-size:21px;font-weight:800;letter-spacing:.2px;white-space:nowrap;color:#111b24}
.brand-center{justify-self:center;display:flex;align-items:center;justify-content:center}
.brand-center img{width:168px;height:auto;display:block}
.auction-switch{justify-self:end}

.summary-grid{align-items:stretch;grid-auto-rows:1fr}
.summary-card{display:flex;flex-direction:column;height:100%}
.summary-body{flex:1}
.summary-row.blank{visibility:hidden}
.summary-total-spacer{height:12px;background:#fff;border-top:1px solid #edf0f2}
.summary-total{margin-top:auto;border-top:1px solid #dfe6eb}

.bon-input{width:112px;text-align:right;font-variant-numeric:tabular-nums}
.inline-form{grid-template-columns:90px 1fr 1fr auto auto}
.mapping-actions{display:flex;gap:6px;align-items:center}

/* Nota A6 mengikuti susunan template PRINT Excel */
.note-page{width:105mm;height:148mm;background:#fff;box-shadow:0 12px 36px rgba(0,0,0,.18);position:relative;overflow:hidden;font-family:Arial,sans-serif;color:#111;padding:0}
.note-watermark{position:absolute;width:58mm;opacity:.055;left:7mm;top:5mm}
.note-head{position:absolute;left:65mm;right:auto;top:1mm;width:40mm;border:1px solid #111;text-align:center;background:#fff}
.note-head .name{height:9.5mm;font-size:5.2mm;font-weight:800;padding:2.2mm .8mm 1mm;display:flex;align-items:center;justify-content:center;line-height:1.05}
.note-head .date{height:4.2mm;background:#aaa6a6;border-top:1px solid #111;padding:.8mm .5mm;font-size:2.6mm;line-height:1}
.unpaid-label{position:absolute;left:11mm;top:26mm;background:#9fb5dd;border:1px solid #111;border-radius:1.4mm;transform:rotate(-4deg);padding:1.2mm 4mm;font-size:3mm;font-weight:800;z-index:2}
.unpaid-list{position:absolute;left:10mm;top:30mm;width:68mm}
.unpaid-line{display:grid;grid-template-columns:52mm 13mm;height:5.2mm;margin-bottom:1.25mm;gap:3mm}
.unpaid-line span{border:1px solid #111;background:#d5d5d5;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:3mm;line-height:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.unpaid-line:nth-child(even) span{background:#8f8b8b}
.note-right{position:absolute;left:81.5mm;right:auto;top:28mm;width:23.5mm}
.note-big{height:13mm;background:#ffe39a;border:1px solid #111;display:flex;align-items:center;justify-content:center;font-size:6mm;margin-bottom:8mm;white-space:nowrap}
.sidebox{height:13mm;border:1px solid #111;margin-bottom:5mm;text-align:center;background:#fff}
.sidebox b{height:5mm;display:flex;align-items:center;justify-content:center;background:#c5c5c5;padding:.5mm;font-size:2.9mm;font-weight:500}
.sidebox span{height:8mm;display:flex;align-items:center;justify-content:center;padding:.5mm;font-size:4.6mm;line-height:1;white-space:nowrap}
.note-icon-row{position:absolute;left:10mm;right:1mm;display:grid;align-items:end;justify-items:center;pointer-events:none}
.note-icon-row img{display:block;max-width:9mm;max-height:8mm;object-fit:contain}
.note-icon-row-1{top:103mm;height:8mm;grid-template-columns:18mm 17mm 24mm 26mm;gap:3mm}
.note-icon-row-1 img:nth-child(2){max-width:7mm;max-height:7mm}
.note-icon-row-2{top:124mm;height:8.5mm;grid-template-columns:28mm 32mm 30mm;gap:3mm}
.note-icon-row-2 img{max-width:9mm;max-height:8mm}
.note-bottom1{position:absolute;left:10mm;right:1mm;top:111mm;bottom:auto;height:13mm;display:grid;grid-template-columns:18mm 17mm 24mm 26mm;gap:3mm}
.note-bottom2{position:absolute;left:10mm;right:1mm;top:133mm;bottom:auto;height:14mm;display:grid;grid-template-columns:28mm 32mm 30mm;gap:3mm}
.mini-box,.bottom-box{height:100%;border:1px solid #111;text-align:center;background:#fff;overflow:hidden}
.mini-box b,.bottom-box b{height:5mm;display:flex;align-items:center;justify-content:center;background:#c5c5c5;padding:.3mm;font-size:2.4mm;line-height:1}
.mini-box span{height:7.8mm;display:flex;align-items:center;justify-content:center;padding:.3mm;font-size:2.9mm;font-weight:800;line-height:1;white-space:nowrap}
.bottom-box span{height:8.8mm;display:flex;align-items:center;justify-content:center;padding:.3mm;font-size:3mm;font-weight:800;line-height:1;white-space:nowrap}

@media(max-width:1000px){.topbar-title{font-size:17px}.brand-center img{width:145px}.inline-form{grid-template-columns:90px 1fr 1fr auto auto}}
@media(max-width:760px){.topbar{display:grid;grid-template-columns:1fr;justify-items:center;height:auto;gap:8px}.topbar-title,.brand-center,.auction-switch{justify-self:center}.auction-switch{align-items:center}.layout{min-height:calc(100vh - 150px)}.inline-form{grid-template-columns:1fr}.mapping-actions{min-width:120px}}

/* ============================================================
   V1R3 - Nota A6 mengikuti template Excel acuan + asset asli user
   ============================================================ */
.auction-switch{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:8px;
}
.auction-switch label{
  display:block;
  margin:0;
  padding:0;
  line-height:1;
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  white-space:nowrap;
}
.auction-switch select,.auction-switch .btn{align-self:center}

/* Ukuran halaman sebenarnya A6. Semua isi memakai margin internal seperti PRINT Excel. */
.note-page{
  width:105mm;
  height:148mm;
  padding:0;
  margin:0;
  position:relative;
  overflow:hidden;
  background:#fff;
  color:#111;
  font-family:Arial,Helvetica,sans-serif;
  box-shadow:0 12px 36px rgba(0,0,0,.18);
}
.note-top-band{
  position:absolute;left:4mm;right:4mm;top:6mm;height:10.5mm;
  background:rgba(198,198,198,.45);z-index:0;
}
.note-mid-band{
  position:absolute;left:4mm;right:4mm;top:101.5mm;height:17mm;
  background:rgba(198,198,198,.38);z-index:0;
}
.note-bottom-band{
  position:absolute;left:4mm;right:4mm;top:124mm;height:17.5mm;
  background:rgba(198,198,198,.30);z-index:0;
}
.note-watermark{
  position:absolute;
  left:7mm;top:17mm;width:91mm;height:91mm;
  object-fit:contain;
  opacity:.085;
  z-index:0;
  pointer-events:none;
}
.note-logo-box{
  position:absolute;
  left:4mm;top:3mm;width:42mm;height:15.5mm;
  border:1px solid #111;
  background:rgba(205,205,205,.82);
  display:flex;align-items:center;justify-content:center;
  z-index:3;
  overflow:hidden;
  clip-path:polygon(0 0,94% 0,100% 18%,100% 100%,0 100%);
}
.note-logo-box img{display:block;width:38.5mm;height:auto;max-height:12.8mm;object-fit:contain}
.note-head{
  position:absolute;
  left:60mm;top:2.5mm;width:41mm;height:14.5mm;
  border:1px solid #111;
  background:#fff;
  text-align:center;
  z-index:3;
}
.note-head .name{
  height:10mm;
  padding:.5mm 1mm .2mm;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:4.3mm;
  line-height:1;
  font-weight:400;
  letter-spacing:0;
}
.note-head .name.long{font-size:3.65mm}
.note-head .name.very-long{font-size:3.05mm}
.note-head .date{
  height:4.3mm;
  padding:.7mm .5mm .4mm;
  border-top:1px solid #111;
  background:#a9a9a9;
  font-size:2.35mm;
  line-height:1;
  font-weight:400;
}
.unpaid-label{
  position:absolute;
  left:5.3mm;top:22.5mm;
  width:23mm;height:6mm;
  padding:0;
  display:flex;align-items:center;justify-content:center;
  background:#9fb5dd;
  border:1px solid #111;
  border-radius:1mm;
  transform:rotate(-4deg);
  transform-origin:center;
  font-size:2.55mm;
  line-height:1;
  font-weight:700;
  z-index:5;
}
.unpaid-list{
  position:absolute;
  left:4mm;top:27mm;
  width:70.5mm;
  z-index:2;
}
.unpaid-line{
  display:grid;
  grid-template-columns:53.5mm 13.5mm;
  column-gap:3.5mm;
  height:5.5mm;
  margin-bottom:1.15mm;
}
.unpaid-line span{
  min-width:0;
  height:5.5mm;
  padding:.25mm .7mm;
  border:1px solid #111;
  background:#d7d7d7;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:2.9mm;
  line-height:1;
  font-weight:700;
}
.unpaid-line:nth-child(even) span{background:#777;color:#111}
.note-right{
  position:absolute;
  left:77mm;top:25mm;width:24mm;
  z-index:3;
}
.note-gross-wrap{position:relative;width:24mm;height:16mm;margin-bottom:6.5mm}
.note-money-icon{
  position:absolute;
  left:50%;top:-4.2mm;
  width:10.5mm;height:10.5mm;
  transform:translateX(-50%);
  object-fit:contain;
  z-index:4;
}
.note-big{
  position:absolute;left:0;right:0;bottom:0;
  height:13.2mm;
  margin:0;
  padding:2.4mm .5mm .4mm;
  border:1px solid #111;
  background:#ffe39a;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  white-space:nowrap;
  font-size:5.3mm;
  line-height:1;
  font-weight:400;
}
.sidebox{
  width:24mm;height:14.3mm;
  margin:0 0 4.2mm 0;
  border:1px solid #111;
  background:#fff;
  text-align:center;
  overflow:hidden;
}
.sidebox b{
  height:5.5mm;
  padding:.4mm;
  display:flex;align-items:center;justify-content:center;
  background:#bfbfbf;
  font-size:2.65mm;
  line-height:1;
  font-weight:700;
}
.sidebox span{
  height:8.6mm;
  padding:.5mm;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  white-space:nowrap;
  font-size:4.25mm;
  line-height:1;
  font-weight:700;
}
.note-icon-row{
  position:absolute;
  left:4mm;
  width:97mm;
  display:grid;
  align-items:end;
  justify-items:center;
  pointer-events:none;
  z-index:4;
}
.note-icon-row img{display:block;object-fit:contain}
.note-icon-row-1{
  top:98.3mm;height:8.7mm;
  grid-template-columns:18.5mm 18.5mm 25mm 29mm;
  column-gap:2mm;
}
.note-icon-row-1 img:nth-child(1),.note-icon-row-1 img:nth-child(3){width:8.2mm;height:8.2mm}
.note-icon-row-1 img:nth-child(2){width:7.8mm;height:7.8mm}
.note-icon-row-1 img:nth-child(4){width:8.1mm;height:8.1mm}
.note-bottom1{
  position:absolute;
  left:4mm;top:106mm;width:97mm;height:13.5mm;
  display:grid;
  grid-template-columns:18.5mm 18.5mm 25mm 29mm;
  column-gap:2mm;
  z-index:3;
}
.note-icon-row-2{
  top:119.2mm;height:8.5mm;
  grid-template-columns:29mm 33mm 31mm;
  column-gap:2mm;
}
.note-icon-row-2 img:nth-child(1){width:8.2mm;height:8.2mm}
.note-icon-row-2 img:nth-child(2){width:8.5mm;height:8.5mm}
.note-icon-row-2 img:nth-child(3){width:8.4mm;height:8.4mm}
.note-bottom2{
  position:absolute;
  left:4mm;top:127mm;width:97mm;height:14.5mm;
  display:grid;
  grid-template-columns:29mm 33mm 31mm;
  column-gap:2mm;
  z-index:3;
}
.mini-box,.bottom-box{
  height:100%;
  border:1px solid #111;
  background:#fff;
  text-align:center;
  overflow:hidden;
}
.mini-box b,.bottom-box b{
  height:5.2mm;
  padding:.25mm .25mm;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  white-space:nowrap;
  background:#bfbfbf;
  font-size:2.15mm;
  line-height:1;
  font-weight:700;
}
.mini-box span{
  height:8.1mm;
  padding:.4mm .2mm;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  white-space:nowrap;
  font-size:2.65mm;
  line-height:1;
  font-weight:700;
}
.bottom-box b{height:5.3mm;font-size:2.45mm}
.bottom-box span{
  height:9mm;
  padding:.5mm .25mm;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  white-space:nowrap;
  font-size:2.75mm;
  line-height:1;
  font-weight:700;
}

@media(max-width:760px){
  .auction-switch{align-items:center}
  .auction-switch label{display:block}
}
.note-page,.note-page *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
\n\n/* =========================\n   V1R5 - V1R3 layout retained, only spacing + separator fixes\n   ========================= */\n.auction-switch{align-items:center!important}\n.auction-switch label{display:flex!important;align-items:center!important;justify-content:center!important;height:38px!important;line-height:1!important;margin:0!important;padding:0!important}\n\n/* Keep V1R3 logo shape */\n.note-logo-box{\n  left:4mm!important;top:3mm!important;width:42mm!important;height:15.5mm!important;\n  background:rgba(205,205,205,.82)!important;\n  clip-path:polygon(0 0,94% 0,100% 18%,100% 100%,0 100%)!important;\n}\n.note-logo-box img{width:38.5mm!important;max-height:12.8mm!important}\n\n/* Raise badge slightly */\n.unpaid-label{top:21.6mm!important}\n\n/* Clear separation between header and value areas */\n.sidebox b,.mini-box b,.bottom-box b{border-bottom:1px solid #111!important}\n\n/* Preserve equal left/right margins and V1R3 widths */\n.note-icon-row-1{left:4mm!important;width:97mm!important;top:101.7mm!important}\n.note-bottom1{left:4mm!important;width:97mm!important;top:109.2mm!important}\n.note-icon-row-2{left:4mm!important;width:97mm!important;top:123.5mm!important}\n.note-bottom2{left:4mm!important;width:97mm!important;top:131.5mm!important}\n\n/* More vertical air so icons never touch boxes above */\n.note-icon-row-1{height:7.6mm!important}\n.note-icon-row-2{height:8mm!important}\n.note-bottom1{height:12.6mm!important}\n.note-bottom2{height:14mm!important}\n\n/* Slightly compact values so bottom remains inside A6 */\n.mini-box b{height:4.9mm!important}\n.mini-box span{height:7.7mm!important}\n.bottom-box b{height:5.1mm!important}\n.bottom-box span{height:8.9mm!important}\n

/* =========================
   V1R6 - only line + icon-spacing fixes
   ========================= */
.auction-switch{align-items:center!important}
.auction-switch label{display:flex!important;align-items:center!important;justify-content:center!important;height:38px!important;line-height:1!important;margin:0!important;padding:0!important}

/* Keep V1R3 / V1R5 base layout but add the missing black diagonal edge */
.note-logo-box{position:absolute!important;overflow:hidden!important}
.note-logo-box::after{
  content:"";
  position:absolute;
  right:-1.05mm;
  top:1.1mm;
  width:8.3mm;
  border-top:1px solid #111;
  transform:rotate(46deg);
  transform-origin:right center;
  pointer-events:none;
  z-index:6;
}

/* Make the separator line under every gray header clearly visible */
.note-head .date{
  border-top:1px solid #111!important;
  box-shadow:inset 0 1px 0 #111!important;
}
.sidebox b,.mini-box b,.bottom-box b{
  border-bottom:1px solid #111!important;
  box-shadow:inset 0 -1px 0 #111!important;
  box-sizing:border-box!important;
}

/* Raise badge slightly to avoid long unpaid names */
.unpaid-label{top:21.2mm!important}

/* Give icons more air so they do not touch the section above */
.note-icon-row-1{top:102.8mm!important;height:7.1mm!important}
.note-bottom1{top:110.6mm!important;height:12.2mm!important}
.note-icon-row-2{top:125.3mm!important;height:7.3mm!important}
.note-bottom2{top:133.2mm!important;height:13.2mm!important}

/* Keep contents fitting after shifting down */
.mini-box b{height:4.8mm!important}
.mini-box span{height:7.4mm!important}
.bottom-box b{height:5mm!important}
.bottom-box span{height:8.2mm!important}


/* =========================
   V1R7 - finalize missing black lines with consistent thickness
   ========================= */
/* keep all separator line thickness the same */
.note-head .date{
  border-top:1px solid #111 !important;
  border-bottom:1px solid #111 !important;
  box-shadow:none !important;
  box-sizing:border-box !important;
}
.sidebox b,
.mini-box b,
.bottom-box b{
  border-bottom:1px solid #111 !important;
  box-shadow:none !important;
  box-sizing:border-box !important;
}

/* explicit black line on the slanted edge of the logo box */
.note-logo-box::after{
  content:"";
  position:absolute;
  right:-0.25mm;
  top:1.05mm;
  width:4.6mm;
  height:0;
  border-top:1px solid #111;
  transform:rotate(48deg);
  transform-origin:right center;
  pointer-events:none;
  z-index:10;
}


/* =========================
   V1R8 - final fix for black diagonal line on the slanted logo edge
   ========================= */
.note-logo-box{
  overflow:visible !important;
}
.note-logo-box::after{
  content:"" !important;
  position:absolute !important;
  right:-1.55mm !important;
  top:0.85mm !important;
  width:7.2mm !important;
  height:1px !important;
  background:#111 !important;
  border:0 !important;
  transform:rotate(48deg) !important;
  transform-origin:right center !important;
  z-index:20 !important;
  pointer-events:none !important;
}


/* =========================
   V1R9 - definitive diagonal-border fix
   Root cause: clip-path clipped the pseudo-element line.
   Keep the same visual shape without clipping the outline.
   ========================= */
.note-logo-box{
  clip-path:none !important;
  overflow:visible !important;
}
/* cover the rectangular top-right corner so the box still looks chamfered */
.note-logo-box::before{
  content:"" !important;
  position:absolute !important;
  right:-1px !important;
  top:-1px !important;
  width:5.2mm !important;
  height:4.0mm !important;
  background:#fff !important;
  clip-path:polygon(35% 0,100% 0,100% 100%) !important;
  z-index:9 !important;
  pointer-events:none !important;
}
/* actual visible black diagonal edge */
.note-logo-box::after{
  content:"" !important;
  position:absolute !important;
  right:-0.15mm !important;
  top:0.0mm !important;
  width:5.8mm !important;
  height:1px !important;
  background:#111 !important;
  border:0 !important;
  transform:rotate(42deg) !important;
  transform-origin:right center !important;
  z-index:12 !important;
  pointer-events:none !important;
}


/* =========================
   V1R10 - exact SVG outline for the chamfered logo box
   No pseudo-element, no clip-path; the polygon itself owns the black border.
   ========================= */
.note-logo-box{
  clip-path:none !important;
  overflow:visible !important;
  background:transparent !important;
  border:0 !important;
  position:absolute !important;
}
.note-logo-box::before,
.note-logo-box::after{
  content:none !important;
  display:none !important;
}
.note-logo-frame{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  overflow:visible;
  z-index:1;
  pointer-events:none;
}
.note-logo-box img{
  position:relative;
  z-index:2;
}

/* ============================================================
   V1R12 - Multi-platform B-STORE + NINESTARS
   ============================================================ */
.master-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.master-title-row h2{margin:0}
.platform-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 9px;border-radius:999px;background:#e9f2f7;border:1px solid #b8cfdd;color:#17394c;font-size:11px;font-weight:800;letter-spacing:.2px}
.brand-center.ninestars img{width:176px;max-height:58px;object-fit:contain}
.platform-ninestars .platform-badge{background:#e8f4fb;border-color:#9dc3e6;color:#176386}

/* NINESTARS A6 template. Base geometry follows the proven B-STORE A6 layout;
   colors/assets follow the uploaded NINESTARS workbook. */
.ninestars-note .note-top-band{background:rgba(157,195,230,.75)!important;height:7mm!important}
.ninestars-note .note-mid-band,.ninestars-note .note-bottom-band{background:rgba(216,233,246,.55)!important}
.ninestars-note .note-watermark{left:12mm!important;top:19mm!important;width:80mm!important;height:73mm!important;opacity:.075!important;object-fit:contain}
.ninestars-note .nine-logo-box{
  left:4mm!important;top:3mm!important;width:42mm!important;height:15mm!important;
  background:#fff!important;border:1px solid #111!important;overflow:hidden!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:1.5mm!important;
  padding:1.1mm 1.5mm!important;clip-path:none!important;
}
.ninestars-note .nine-logo-box::before,.ninestars-note .nine-logo-box::after{content:none!important;display:none!important}
.ninestars-note .nine-logo-box img{position:static!important;z-index:auto!important;object-fit:contain!important}
.ninestars-note .nine-logo-box .nine-shell-mark{width:11.5mm!important;height:9.5mm!important;max-height:none!important;flex:0 0 auto}
.ninestars-note .nine-logo-box .nine-wordmark{width:27.2mm!important;height:auto!important;max-height:6.0mm!important;flex:1 1 auto;object-position:left center!important}
.ninestars-note .note-head .date{background:#9dc3e6!important}
.ninestars-note .unpaid-label{background:#f4c7a1!important}
.ninestars-note .nine-row-0 span{background:#fff!important}
.ninestars-note .nine-row-1 span{background:#9dc3e6!important}
.ninestars-note .nine-row-2 span{background:#fff!important}
.ninestars-note .nine-row-3 span{background:#9dc3e6!important}
.ninestars-note .note-big{background:#fff2cc!important}
.ninestars-note .sidebox b,.ninestars-note .mini-box b,.ninestars-note .bottom-box b{background:#9dc3e6!important}

@media(max-width:760px){
  .master-title-row{align-items:flex-start}
}


/* =========================
   V1R17 - Settings: PDF Tersimpan + Auction Number
   ========================= */
.settings-menu{display:flex;gap:8px;margin:0 0 16px;flex-wrap:wrap}
.settings-menu-btn{border:1px solid #bfcbd4;background:#fff;color:#21313e;border-radius:8px;padding:10px 16px;font-weight:700;cursor:pointer}
.settings-menu-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}
.settings-panel .card h3{margin-top:0}
.settings-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:14px 2px 2px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.settings-pagination .btn[disabled]{opacity:.45;cursor:not-allowed}
#auctionSettingsTable td:last-child,#auctionSettingsTable th:last-child,#pdfTable td:last-child,#pdfTable th:last-child{text-align:right}
@media(max-width:760px){.settings-pagination{justify-content:center}.settings-menu{justify-content:center}}

/* V1R21 - Template 2 HTML preview */
.nota-toolbar #notaTemplate{min-width:220px}
.template2-preview-shell{width:384px;height:576px;box-shadow:0 12px 36px rgba(0,0,0,.18);background:#fff;overflow:hidden}
.template2-preview-frame{display:block;width:384px;height:576px;border:0;margin:0;padding:0;background:transparent}
@media(max-width:760px){
  .template2-preview-shell{flex:0 0 384px}
}
