:root{--bg:#f3f6fb;--card:#fff;--text:#0f172a;--muted:#64748b;--line:#e2e8f0;--primary:#0057b8;--danger:#dc2626;--warning:#f59e0b;--shadow:0 18px 45px rgba(15,23,42,.08)}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}button,input,select{font-family:inherit}.app-shell{display:grid;grid-template-columns:280px 1fr;min-height:100vh}.sidebar{background:#071d38;color:#fff;padding:24px;display:flex;flex-direction:column;gap:28px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:14px}.brand-mark{width:48px;height:48px;border-radius:16px;background:#e8f1ff;color:#0057b8;display:grid;place-items:center;font-weight:900;font-size:24px}.brand h1{margin:0;font-size:20px}.brand p{margin:4px 0 0;color:#a8c4e8;font-size:13px}.nav{display:grid;gap:8px}.nav-btn{border:0;background:transparent;color:#cfe3ff;text-align:left;padding:13px 14px;border-radius:12px;cursor:pointer;font-size:15px}.nav-btn:hover,.nav-btn.active{background:rgba(255,255,255,.12);color:#fff}.nav-btn.hidden{display:none}.sidebar-note{margin-top:auto;padding:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:16px;display:grid;gap:6px;font-size:13px;color:#cfe3ff}.main{padding:28px}.topbar{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;gap:16px}.eyebrow{margin:0 0 6px;color:var(--primary);font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.topbar h2{margin:0;font-size:34px}.userbox{display:flex;align-items:center;gap:10px}.user-meta{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 14px;display:grid;gap:2px;text-align:right}.user-meta span{color:var(--muted);font-size:12px}.page{display:none}.page.active{display:block}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:22px}.stat-card,.panel{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow)}.stat-card{padding:24px;border-radius:20px}.stat-card span{color:var(--muted);font-weight:700;font-size:13px}.stat-card strong{display:block;margin:10px 0;font-size:38px}.stat-card small{color:var(--muted)}.stat-card.warn strong{color:var(--warning)}.panel{border-radius:24px;padding:24px;margin-bottom:22px}.panel-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:20px}.panel-head h3{margin:0 0 6px;font-size:22px}.panel-head p{margin:0;color:var(--muted);line-height:1.5}.btn{border:0;border-radius:12px;padding:12px 16px;cursor:pointer;font-weight:800;background:#e2e8f0;color:#0f172a}.btn.primary{background:var(--primary);color:#fff}.btn.ghost{background:#fff;border:1px solid var(--line)}.btn.danger{background:#fee2e2;color:var(--danger)}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}label{display:grid;gap:8px;color:#334155;font-weight:700;font-size:14px}input,select{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:12px 14px;font-size:15px;background:#fff;color:var(--text)}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.form-actions{display:flex;justify-content:flex-end}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:16px;margin-top:18px}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left;font-size:14px;vertical-align:top}th{background:#f8fafc;color:#334155}.status{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900}.status.ready{background:#dcfce7;color:#166534}.status.keluar{background:#e2e8f0;color:#334155}.age-badge{font-weight:900}.age-badge.old{color:var(--danger)}.age-badge.mid{color:var(--warning)}.filter-row{display:grid;grid-template-columns:220px 1fr;gap:14px;margin-bottom:18px}.barcode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.label-card{border:1px dashed #94a3b8;border-radius:14px;padding:12px;background:#fff;text-align:center}.label-card h4{margin:0 0 6px;font-size:13px;line-height:1.25}.label-card p{margin:2px 0;color:var(--muted);font-size:11px}.label-card svg{width:100%;max-width:260px;height:62px}.result-box{margin-top:20px;display:none;padding:16px;border-radius:16px;background:#f8fafc;border:1px solid var(--line)}.result-box.show{display:block}.toast{position:fixed;right:24px;bottom:24px;background:#0f172a;color:#fff;padding:14px 18px;border-radius:14px;box-shadow:var(--shadow);opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s ease;max-width:360px;font-weight:700}.toast.show{opacity:1;transform:translateY(0)}@media print{.sidebar,.topbar,.filter-row,#btnPrint,.panel-head,.toast{display:none!important}.app-shell{display:block}.main{padding:0}.panel{box-shadow:none;border:0;padding:0}.page{display:none!important}#cetakBarcode{display:block!important}.barcode-grid{display:grid;grid-template-columns:repeat(2,50mm);gap:4mm}.label-card{width:50mm;min-height:30mm;border:1px solid #000;border-radius:0;padding:2mm;page-break-inside:avoid}.label-card h4{font-size:9px}.label-card p{font-size:8px;color:#000}.label-card svg{height:16mm}}@media(max-width:1000px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.stats-grid,.barcode-grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.span-2,.span-3{grid-column:span 1}.filter-row{grid-template-columns:1fr}.topbar{flex-direction:column}.userbox{align-items:stretch;flex-wrap:wrap}.user-meta{text-align:left}}@media(max-width:640px){.stats-grid,.barcode-grid{grid-template-columns:1fr}.main{padding:18px}}


.btn-small{padding:8px 10px;font-size:12px;border-radius:9px}
small{color:#64748b}


.account-card{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  margin-bottom:20px;
}
.account-card>div{
  border:1px solid var(--line);
  border-radius:16px;
  background:#f8fafc;
  padding:16px;
  display:grid;
  gap:6px;
}
.muted-label{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

textarea{
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:12px 14px;
  font-size:15px;
  background:#fff;
  color:var(--text);
  resize:vertical;
  font-family:inherit;
}
.mini-pre{
  margin:0;
  max-width:260px;
  white-space:pre-wrap;
  font-size:12px;
  color:#334155;
}


/* Account visual refresh */
.top-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.account-chip{
  border:1px solid var(--line);
  background:#fff;
  border-radius:18px;
  padding:8px 12px;
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
  transition:.18s ease;
}
.account-chip:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(15,23,42,.09);
}
.account-avatar{
  width:42px;
  height:42px;
  border-radius:14px;
  background:#e6f0ff;
  color:#0057c2;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:20px;
  flex:0 0 auto;
}
.account-copy{
  display:grid;
  gap:2px;
  text-align:left;
  line-height:1.15;
}
.account-copy small{
  color:#64748b;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.account-copy strong{
  color:#0f172a;
  font-size:15px;
  font-weight:900;
}
.account-copy em{
  color:#64748b;
  font-size:12px;
  font-style:normal;
}
.userbox{display:none!important}

.profile-card{
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  margin-bottom:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  display:grid;
  grid-template-columns:auto 1fr minmax(260px, .7fr);
  gap:18px;
  align-items:center;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.profile-avatar{
  width:72px;
  height:72px;
  border-radius:22px;
  background:#e6f0ff;
  color:#0057c2;
  display:grid;
  place-items:center;
  font-size:34px;
  font-weight:900;
}
.profile-main h4{
  margin:4px 0 2px;
  font-size:26px;
  letter-spacing:.01em;
}
.profile-main p{
  margin:0;
  color:#64748b;
  font-weight:700;
}
.profile-role{
  border-left:1px solid var(--line);
  padding-left:18px;
  display:grid;
  gap:5px;
}
.profile-role strong{
  font-size:18px;
}
.profile-role small{
  color:#64748b;
}

.maker-checker-note{
  margin-top:10px;
  display:inline-block;
  padding:10px 12px;
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#1e3a8a;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
}

@media (max-width: 900px){
  .top-actions{justify-content:flex-start}
  .account-chip{min-width:100%}
  .profile-card{
    grid-template-columns:1fr;
  }
  .profile-role{
    border-left:0;
    padding-left:0;
    border-top:1px solid var(--line);
    padding-top:14px;
  }
}


/* Compact sidebar: Akun Saya removed from menu; account chip is the shortcut */
.target-helper{
  border:1px dashed #93c5fd;
  background:#eff6ff;
  color:#1e3a8a;
  border-radius:14px;
  padding:12px 14px;
  font-size:13px;
  line-height:1.5;
}
.target-helper strong{
  color:#0f3f96;
}


/* Hold / Release + inbound filter */
.stats-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.stat-card.hold strong{color:#f59e0b}
.status.hold{
  background:#fef3c7;
  color:#92400e;
}
.status.rusak{
  background:#fee2e2;
  color:#991b1b;
}
.panel-subhead{
  margin-top:26px;
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-end;
}
.panel-subhead h3{
  margin:0 0 6px;
  font-size:22px;
}
.panel-subhead p{
  margin:0;
  color:var(--muted);
}
.filter-inline{
  display:flex;
  gap:10px;
  align-items:center;
}
.filter-inline input{
  min-width:340px;
}
@media (max-width: 1100px){
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .panel-subhead{display:grid}
  .filter-inline{display:grid}
  .filter-inline input{min-width:0}
}


/* Sticky sidebar + compact fixed account chip */
html, body{
  min-height:100%;
}
.app-shell{
  align-items:stretch;
}
.sidebar{
  min-height:100vh !important;
  height:100vh !important;
  position:sticky;
  top:0;
  align-self:flex-start;
  overflow-y:auto;
  padding-bottom:22px;
}
.sidebar::-webkit-scrollbar{
  width:6px;
}
.sidebar::-webkit-scrollbar-thumb{
  background:rgba(148,163,184,.35);
  border-radius:999px;
}
.main{
  position:relative;
}
.topbar{
  min-height:76px;
  padding-right:560px;
}
.top-actions{
  position:fixed;
  top:18px;
  right:22px;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding:6px;
  border-radius:22px;
  background:rgba(241,245,249,.76);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 16px 36px rgba(15,23,42,.10);
}
.account-chip{
  min-width:236px;
  max-width:236px;
  border-radius:18px;
  padding:7px 10px;
  gap:9px;
  box-shadow:none;
}
.account-chip:hover{
  transform:none;
  box-shadow:0 8px 20px rgba(15,23,42,.08);
}
.account-avatar{
  width:36px;
  height:36px;
  border-radius:12px;
  font-size:18px;
}
.account-copy{
  min-width:0;
}
.account-copy small{
  font-size:10px;
  line-height:1;
}
.account-copy strong{
  font-size:14px;
  max-width:160px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.account-copy em{
  font-size:11px;
  max-width:160px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.account-clock{
  font-size:10.5px;
  color:#0f3f96;
  font-weight:800;
  max-width:170px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.top-actions .btn{
  min-height:44px;
  padding:10px 16px;
  border-radius:14px;
}

/* Make dashboard cards still comfortable after adding Hold card */
.stats-grid{
  gap:16px;
}
.stat-card{
  min-height:126px;
}

@media (max-width: 1280px){
  .topbar{
    padding-right:0;
    padding-top:92px;
  }
  .top-actions{
    left:calc(var(--sidebar-w, 300px) + 18px);
    right:18px;
    justify-content:flex-start;
    overflow-x:auto;
  }
}
@media (max-width: 900px){
  .sidebar{
    position:relative;
    height:auto!important;
    min-height:auto!important;
  }
  .topbar{
    padding-top:110px;
  }
  .top-actions{
    left:12px;
    right:12px;
    top:12px;
  }
  .account-chip{
    min-width:205px;
    max-width:205px;
  }
}


/* Clock fix v2 - make account chip safer when text is long */
.account-chip{
  min-width:250px;
  max-width:250px;
}
.account-copy strong,
.account-copy em,
.account-clock{
  max-width:180px;
}
@media (max-width: 900px){
  .account-chip{
    min-width:220px;
    max-width:220px;
  }
}


/* Clock separate v3: clock moved above Refresh/Logout, not inside account */
.top-actions{
  position:fixed;
  top:18px;
  right:22px;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  padding:8px;
  border-radius:24px;
  background:rgba(241,245,249,.78);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 16px 36px rgba(15,23,42,.10);
}
.action-stack{
  display:grid;
  gap:8px;
  align-items:center;
}
.action-buttons{
  display:flex;
  gap:10px;
  justify-content:flex-end;
}
.clock-card{
  border:1px solid #dbeafe;
  background:#ffffff;
  color:#0f3f96;
  border-radius:14px;
  padding:7px 12px;
  font-size:12px;
  font-weight:900;
  line-height:1.1;
  white-space:nowrap;
  min-width:292px;
  text-align:center;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}
.account-chip{
  min-width:245px;
  max-width:245px;
  padding:8px 11px;
}
.account-clock{
  display:none!important;
}
.topbar{
  padding-right:610px;
}

@media (max-width: 1280px){
  .topbar{
    padding-right:0;
    padding-top:112px;
  }
  .top-actions{
    left:calc(var(--sidebar-w, 300px) + 18px);
    right:18px;
    justify-content:flex-start;
    overflow-x:auto;
  }
}
@media (max-width: 900px){
  .topbar{
    padding-top:148px;
  }
  .top-actions{
    left:12px;
    right:12px;
    top:12px;
    align-items:flex-start;
  }
  .action-buttons{
    justify-content:flex-start;
  }
  .clock-card{
    min-width:250px;
    font-size:11px;
    text-align:left;
  }
  .account-chip{
    min-width:210px;
    max-width:210px;
  }
}


/* Account compact v4: clock top, account same height feel as Refresh/Logout */
.top-actions{
  display:grid !important;
  grid-template-columns:auto auto;
  grid-template-areas:
    "clock clock"
    "account buttons";
  align-items:center;
  justify-content:end;
  gap:8px 10px;
  padding:8px;
}
.account-chip{
  grid-area:account;
  min-width:220px !important;
  max-width:220px !important;
  min-height:52px;
  height:52px;
  padding:6px 10px !important;
  border-radius:16px !important;
}
.account-avatar{
  width:34px !important;
  height:34px !important;
  border-radius:12px !important;
  font-size:17px !important;
}
.account-copy small{
  font-size:9.5px !important;
  letter-spacing:.12em;
}
.account-copy strong{
  font-size:13.5px !important;
  line-height:1.05;
  max-width:148px !important;
}
.account-copy em{
  font-size:10.5px !important;
  line-height:1.05;
  max-width:148px !important;
}
.action-stack{
  display:contents !important;
}
.clock-card{
  grid-area:clock;
  justify-self:end;
  min-width:378px;
  padding:7px 12px;
  font-size:12px;
  border-radius:15px;
}
.action-buttons{
  grid-area:buttons;
  display:flex;
  gap:10px;
}
.action-buttons .btn{
  height:52px;
  min-height:52px;
  padding:0 20px;
  border-radius:16px;
}
.topbar{
  padding-right:570px;
}

@media (max-width: 1280px){
  .topbar{
    padding-right:0;
    padding-top:126px;
  }
  .top-actions{
    left:calc(var(--sidebar-w, 300px) + 18px);
    right:18px;
    justify-content:start;
  }
  .clock-card{
    justify-self:start;
  }
}
@media (max-width: 900px){
  .topbar{
    padding-top:178px;
  }
  .top-actions{
    grid-template-columns:1fr;
    grid-template-areas:
      "clock"
      "account"
      "buttons";
  }
  .clock-card{
    min-width:0;
    width:100%;
  }
  .account-chip{
    min-width:220px !important;
    max-width:220px !important;
  }
}


/* Barang masuk result + compact account retained */
.result-box{
  margin-top:18px;
  display:none;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#0f172a;
  border-radius:18px;
  padding:14px 16px;
  line-height:1.45;
}
.result-box.show{
  display:block;
}
.result-box small{
  color:#475569;
  word-break:break-word;
}


/* V10C Dashboard compact table */
.dashboard-compact-panel{padding:20px 20px 22px;border-radius:20px}
.dashboard-head{align-items:center;margin-bottom:12px}
.dashboard-head h3{font-size:22px;margin-bottom:4px}
.dashboard-head p{font-size:14px}
.dashboard-summary-line{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:8px 0 14px;color:#475569;font-size:13px;background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.dashboard-stock-wrap{margin-top:10px;border-radius:12px}
.dashboard-stock-table{min-width:680px}
.dashboard-stock-table th,.dashboard-stock-table td{padding:9px 11px;font-size:13px;line-height:1.25}
.dashboard-stock-table th{font-size:12px;text-transform:uppercase;letter-spacing:.02em}
.dashboard-stock-table .num{text-align:center;width:90px}
.dashboard-stock-table tbody tr:hover{background:#f8fafc}
.system-note-box{padding:14px 16px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:14px;color:#1e3a8a;line-height:1.45}
#systemSettings .result-box{margin-top:16px}

@media (max-width: 900px){
  .dashboard-head{display:grid;gap:12px}
  .dashboard-head .btn{width:100%}
}


/* ===== V10B Barang Masuk - form penerimaan ===== */
.panel-sheet{
  overflow:hidden;
}
.barang-masuk-head{
  align-items:center;
}
.barang-masuk-tip{
  padding:10px 14px;
  border-radius:14px;
  background:#eff6ff;
  border:1px dashed #93c5fd;
  color:#1d4ed8;
  font-size:13px;
  font-weight:700;
}
.barang-masuk-sheet{
  display:grid;
  gap:20px;
}
.sheet-top{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:start;
}
.sheet-left,
.sheet-right{
  display:grid;
  gap:14px;
}
.sheet-field{
  display:grid;
  gap:8px;
}
.sheet-field label{
  margin:0;
  font-size:14px;
  font-weight:800;
  color:#334155;
}
.sheet-field input,
.sheet-field select{
  min-height:46px;
}
.invoice-field{
  margin-top:118px;
}
.invoice-field input{
  max-width:420px;
}
.short-field input,
.short-field select,
.source-field select,
.company-field select{
  max-width:320px;
}
.source-list{
  display:grid;
  gap:4px;
  margin-top:-6px;
  color:#0f3f96;
  font-size:14px;
  font-weight:700;
}
.sheet-table-wrap{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:auto;
}
.sheet-table{
  width:100%;
  min-width:1020px;
  border-collapse:collapse;
  background:#fff;
}
.sheet-table th,
.sheet-table td{
  padding:10px;
  border:1px solid #d9e2ec;
  vertical-align:middle;
}
.sheet-table th{
  background:#f8fafc;
  font-size:13px;
  font-weight:900;
  color:#334155;
  white-space:nowrap;
}
.sheet-table td input,
.sheet-table td select{
  min-height:40px;
  padding:9px 10px;
  font-size:14px;
}
.sheet-table .row-number{
  text-align:center;
  font-weight:900;
  color:#0f172a;
}
.col-no{width:72px}
.col-density{width:120px}
.col-size{width:140px}
.col-thick{width:120px}
.col-qty{width:90px}
.col-item{width:340px}
.col-note{width:220px}
.col-act{width:110px}
.sheet-bottom-actions{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.sheet-bottom-actions .btn.primary{
  min-width:280px;
}
#inItemsBody .btn-row-delete{
  padding:9px 10px;
  white-space:nowrap;
}
@media (max-width: 1100px){
  .sheet-top{
    grid-template-columns:1fr;
    gap:18px;
  }
  .invoice-field{
    margin-top:0;
  }
  .invoice-field input,
  .short-field input,
  .short-field select,
  .source-field select,
  .company-field select{
    max-width:100%;
  }
  .sheet-bottom-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .sheet-bottom-actions .btn.primary{
    min-width:0;
  }
}

/* ===== V10D Compact Layout - Form Penerimaan Barang ===== */
:root{
  --sidebar-w:240px;
}
body{
  font-size:14px;
}
.app-shell{
  grid-template-columns:var(--sidebar-w) 1fr !important;
}
.sidebar{
  padding:18px 16px !important;
  gap:18px !important;
}
.brand{
  gap:10px !important;
}
.brand-mark{
  width:42px !important;
  height:42px !important;
  border-radius:14px !important;
  font-size:20px !important;
}
.brand h1{
  font-size:18px !important;
  line-height:1.1 !important;
}
.brand p{
  font-size:12px !important;
  margin-top:2px !important;
}
.nav{
  gap:4px !important;
}
.nav-btn{
  padding:9px 10px !important;
  border-radius:10px !important;
  font-size:14px !important;
  line-height:1.2 !important;
}
.sidebar-note{
  padding:12px !important;
  border-radius:14px !important;
  font-size:12px !important;
}
.main{
  padding:18px 22px !important;
}
.topbar{
  margin-bottom:16px !important;
  min-height:66px !important;
  padding-right:500px !important;
}
.eyebrow{
  font-size:11px !important;
  margin-bottom:4px !important;
}
.topbar h2{
  font-size:28px !important;
  line-height:1.08 !important;
}
.top-actions{
  top:12px !important;
  right:14px !important;
  gap:6px 8px !important;
  padding:6px !important;
  border-radius:18px !important;
}
.clock-card{
  min-width:330px !important;
  padding:6px 10px !important;
  border-radius:12px !important;
  font-size:11px !important;
}
.account-chip{
  min-width:198px !important;
  max-width:198px !important;
  height:46px !important;
  min-height:46px !important;
  padding:5px 8px !important;
  border-radius:14px !important;
  gap:8px !important;
}
.account-avatar{
  width:30px !important;
  height:30px !important;
  border-radius:10px !important;
  font-size:15px !important;
}
.account-copy small{
  font-size:8.5px !important;
}
.account-copy strong{
  font-size:12px !important;
  max-width:132px !important;
}
.account-copy em{
  font-size:9.5px !important;
  max-width:132px !important;
}
.action-buttons{
  gap:8px !important;
}
.action-buttons .btn{
  height:46px !important;
  min-height:46px !important;
  padding:0 16px !important;
  border-radius:14px !important;
  font-size:14px !important;
}
.panel{
  padding:18px !important;
  border-radius:18px !important;
  margin-bottom:16px !important;
}
.panel-head{
  margin-bottom:14px !important;
}
.panel-head h3{
  font-size:20px !important;
  margin-bottom:4px !important;
}
.panel-head p{
  font-size:13px !important;
  line-height:1.35 !important;
}
.btn{
  padding:10px 14px !important;
  border-radius:11px !important;
  font-size:14px !important;
}
label,
.sheet-field label{
  font-size:13px !important;
  gap:6px !important;
}
input,
select,
textarea{
  min-height:38px !important;
  padding:9px 12px !important;
  border-radius:10px !important;
  font-size:14px !important;
  outline:none !important;
}
input:focus,
select:focus,
textarea:focus{
  border-color:#0057b8 !important;
  box-shadow:0 0 0 3px rgba(0,87,184,.10) !important;
}

/* Barang Masuk: compact sheet layout */
.panel-sheet{
  padding:18px 22px 20px !important;
}
.barang-masuk-head{
  align-items:flex-start !important;
  gap:12px !important;
}
.barang-masuk-head p{
  max-width:760px;
}
.barang-masuk-tip{
  padding:7px 10px !important;
  border-radius:10px !important;
  font-size:12px !important;
  white-space:nowrap;
}
.barang-masuk-sheet{
  gap:14px !important;
}
.sheet-top{
  grid-template-columns:minmax(320px,.72fr) minmax(520px,1fr) !important;
  gap:22px !important;
  align-items:start !important;
}
.sheet-left,
.sheet-right{
  gap:10px !important;
}
.sheet-right{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px 14px !important;
}
.invoice-field{
  margin-top:74px !important;
}
.invoice-field input,
.short-field input,
.short-field select,
.source-field select,
.company-field select{
  max-width:100% !important;
}
.company-field select{
  border:1px solid #cbd5e1 !important;
  background:#fff !important;
  color:#0f172a !important;
}
.source-list{
  margin:0 !important;
  padding:4px 0 0 2px !important;
  gap:2px !important;
  font-size:12px !important;
  line-height:1.25 !important;
}
.sheet-table-wrap{
  margin-top:6px !important;
  border-radius:12px !important;
}
.sheet-table{
  min-width:920px !important;
}
.sheet-table th,
.sheet-table td{
  padding:6px 8px !important;
  font-size:12.5px !important;
}
.sheet-table th{
  font-size:12px !important;
}
.sheet-table td input,
.sheet-table td select{
  min-height:34px !important;
  padding:7px 8px !important;
  font-size:12.5px !important;
  border-radius:8px !important;
}
.col-no{width:58px !important}
.col-density{width:104px !important}
.col-size{width:118px !important}
.col-thick{width:100px !important}
.col-qty{width:78px !important}
.col-item{width:310px !important}
.col-note{width:190px !important}
.col-act{width:88px !important}
#inItemsBody .btn-row-delete{
  padding:7px 8px !important;
  font-size:12px !important;
}
.sheet-bottom-actions{
  margin-top:0 !important;
}
.sheet-bottom-actions .btn.primary{
  min-width:230px !important;
}
.result-box{
  padding:12px 14px !important;
  font-size:13px !important;
}
.table-wrap{border-radius:12px !important}
th,td{padding:9px 11px !important;font-size:13px !important}
.stats-grid{gap:12px !important}
.stat-card{padding:18px !important;min-height:106px !important;border-radius:16px !important}
.stat-card strong{font-size:32px !important;margin:6px 0 !important}
.stat-card span,.stat-card small{font-size:12px !important}

@media (max-width:1280px){
  .topbar{padding-right:0 !important;padding-top:104px !important}
  .top-actions{left:calc(var(--sidebar-w) + 14px) !important;right:14px !important;justify-content:flex-start !important}
  .sheet-top{grid-template-columns:1fr !important;gap:12px !important}
  .invoice-field{margin-top:0 !important}
  .sheet-right{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
@media (max-width:900px){
  .app-shell{grid-template-columns:1fr !important}
  .main{padding:14px !important}
  .topbar{padding-top:150px !important}
  .top-actions{left:10px !important;right:10px !important;top:10px !important}
  .clock-card{min-width:0 !important;width:100% !important}
  .account-chip{min-width:190px !important;max-width:190px !important}
  .sheet-right{grid-template-columns:1fr !important}
}


/* ===== V10D2 Fix Nama Perusahaan Dropdown ===== */
.source-list{display:none !important;}
.company-field{grid-column:auto !important;}
.company-field select,
.source-field select{
  width:100% !important;
  min-height:38px !important;
  border:1px solid #cbd5e1 !important;
  background-color:#fff !important;
  color:#0f172a !important;
  box-shadow:none !important;
}
.company-field select:focus,
.source-field select:focus{
  border-color:#0057b8 !important;
  box-shadow:0 0 0 3px rgba(0,87,184,.10) !important;
}
.sheet-right{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
@media (min-width:1281px){
  .sheet-right .company-field{grid-column:1 / 2 !important;}
  .sheet-right .short-field:nth-of-type(4){grid-column:1 / 2 !important;}
  .sheet-right .short-field:nth-of-type(5){grid-column:2 / 3 !important;}
}


/* ===== V10D3 Fix Dropdown Nama Perusahaan ===== */
.company-field select,
.source-field select,
.sheet-field select{
  appearance:auto !important;
  -webkit-appearance:auto !important;
  background:#fff !important;
  color:#0f172a !important;
}
.company-field select option,
.source-field select option,
.sheet-field select option{
  background:#fff !important;
  color:#0f172a !important;
  font-size:13px !important;
}
.company-field select:disabled{
  opacity:1 !important;
  background:#f8fafc !important;
  color:#64748b !important;
}


/* ===== V10E Print Label: table + checkbox + per-row print ===== */
.barcode-table-mode{
  display:block !important;
}
.barcode-table-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:14px;
  margin:10px 0 12px;
}
.barcode-toolbar-field{
  width:240px;
  font-size:12px !important;
  font-weight:800;
  color:#334155;
}
.barcode-toolbar-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.barcode-selected-count{
  padding:8px 10px;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#0f3f96;
  border-radius:10px;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.barcode-table-wrap{
  margin-top:0 !important;
  border-radius:12px !important;
}
.barcode-table{
  min-width:860px !important;
}
.barcode-table th,
.barcode-table td{
  padding:8px 10px !important;
  font-size:12.5px !important;
  line-height:1.25 !important;
  vertical-align:middle !important;
}
.barcode-table th{
  font-size:12px !important;
  text-transform:uppercase;
  letter-spacing:.02em;
  white-space:nowrap;
}
.barcode-table tbody tr:hover{
  background:#f8fafc;
}
.barcode-check-col{
  width:42px;
  text-align:center !important;
}
.barcode-check-col input{
  width:16px !important;
  height:16px !important;
  min-height:0 !important;
  padding:0 !important;
}
.barcode-table .num{
  text-align:center;
  width:70px;
}
.barcode-table small{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-size:11px;
}
#printArea{
  display:none;
}
@media print{
  body.printing-labels .app-shell{
    display:none !important;
  }
  body.printing-labels #printArea{
    display:block !important;
    padding:0 !important;
    margin:0 !important;
  }
  body.printing-labels .print-label-grid{
    display:grid !important;
    grid-template-columns:repeat(2,50mm) !important;
    gap:4mm !important;
    align-items:start !important;
  }
  body.printing-labels .print-label-card{
    width:50mm !important;
    min-height:30mm !important;
    border:1px solid #000 !important;
    border-radius:0 !important;
    padding:2mm !important;
    page-break-inside:avoid !important;
    break-inside:avoid !important;
    box-shadow:none !important;
    background:#fff !important;
    text-align:center !important;
  }
  body.printing-labels .print-label-card h4{
    font-size:9px !important;
    margin:0 0 1.5mm !important;
    line-height:1.15 !important;
    color:#000 !important;
  }
  body.printing-labels .print-label-card p{
    font-size:8px !important;
    color:#000 !important;
    margin:1mm 0 0 !important;
    line-height:1.1 !important;
  }
  body.printing-labels .print-label-card svg{
    width:46mm !important;
    height:16mm !important;
    max-width:46mm !important;
  }
}
@media (max-width:900px){
  .barcode-table-toolbar{
    display:grid;
    align-items:stretch;
  }
  .barcode-toolbar-field{
    width:100%;
  }
  .barcode-toolbar-actions{
    justify-content:flex-start;
  }
}

/* ===== V10F Riwayat Barang Masuk ===== */
.inbound-history-panel{
  margin-top:14px !important;
}
.inbound-history-head{
  align-items:flex-end !important;
}
.history-actions{
  display:flex;
  gap:10px;
  align-items:flex-end;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.history-search-label{
  min-width:300px;
  font-size:12.5px !important;
}
.history-search-label input{
  min-height:36px !important;
  font-size:13px !important;
}
.inbound-history-wrap{
  margin-top:8px !important;
  border-radius:12px !important;
}
.inbound-history-table{
  min-width:880px !important;
}
.inbound-history-table th,
.inbound-history-table td{
  padding:8px 10px !important;
  font-size:12.5px !important;
  vertical-align:middle !important;
}
.inbound-history-table th{
  font-size:12px !important;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.inbound-history-table .num{
  text-align:center;
  width:90px;
}
.in-history-main-row{
  cursor:pointer;
}
.in-history-main-row:hover{
  background:#f8fafc;
}
.in-history-detail-row td{
  padding:0 !important;
  background:#f8fafc;
}
.in-history-detail-box{
  padding:12px 14px 14px;
  border-top:1px solid #dbeafe;
  background:#f8fbff;
}
.in-history-detail-title{
  margin-bottom:8px;
  color:#334155;
  font-size:12.5px;
}
.in-history-detail-table{
  width:100%;
  min-width:760px !important;
  border-collapse:collapse;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
}
.in-history-detail-table th,
.in-history-detail-table td{
  padding:7px 9px !important;
  border-bottom:1px solid var(--line);
  font-size:12px !important;
}
.in-history-detail-table th{
  background:#eef5ff;
  color:#1e3a8a;
}
@media (max-width:900px){
  .inbound-history-head{display:grid !important;gap:12px !important;}
  .history-actions{display:grid;width:100%;justify-content:stretch;}
  .history-search-label{min-width:0;width:100%;}
}

/* ===== V10L Master Barang Grup + Stock ===== */
.master-summary-line{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin:8px 0 12px;
  color:#475569;
  font-size:13px;
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
}
.master-item-table{
  min-width:1080px !important;
}
.master-item-table th,
.master-item-table td{
  padding:8px 10px !important;
  font-size:12.5px !important;
  vertical-align:middle !important;
}
.master-item-table th{
  text-transform:uppercase;
  letter-spacing:.02em;
  font-size:12px !important;
}
.master-item-table .num{
  text-align:center;
  width:86px;
}
.item-group-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 8px;
  border-radius:999px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1e3a8a;
  font-weight:900;
  font-size:11.5px;
  white-space:nowrap;
}
.item-group-text{
  color:#1e3a8a !important;
  font-weight:800;
}
.barcode-filter-row{
  grid-template-columns:220px minmax(260px,1fr) !important;
}
@media (max-width:900px){
  .barcode-filter-row{
    grid-template-columns:1fr !important;
  }
  #masterBarang .panel-head{
    display:grid !important;
    gap:12px !important;
  }
  #btnDownloadItemsCsv{
    width:100%;
  }
}


/* ===== V10M Master Barang Edit Produk + Tambah Produk ===== */
.master-barang-head{
  align-items:flex-start !important;
}
.master-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.hidden{
  display:none !important;
}
.master-item-editor{
  margin:10px 0 14px;
  border:1px solid #bfdbfe;
  background:#f8fbff;
  border-radius:16px;
  padding:14px;
}
.master-editor-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}
.master-editor-head h4{
  margin:0 0 4px;
  font-size:18px;
}
.master-editor-head p{
  margin:0;
  color:#64748b;
  font-size:12.5px;
  line-height:1.4;
}
.master-item-form{
  gap:12px !important;
}
.locked-product-note{
  border:1px dashed #93c5fd;
  background:#eff6ff;
  color:#1e3a8a;
  border-radius:12px;
  padding:10px 12px;
  font-size:12.5px;
  line-height:1.45;
}
.locked-product-field.is-locked input{
  background:#f1f5f9 !important;
  color:#64748b !important;
  cursor:not-allowed;
}
.master-action-col,
.master-item-table .owner-master-action{
  width:120px;
  text-align:center !important;
}
.master-item-table .owner-master-action .btn{
  white-space:nowrap;
}
@media (max-width:900px){
  .master-actions{
    width:100%;
    display:grid;
  }
  .master-editor-head{
    display:grid;
  }
}

/* ===== V10N Master Barang Inline Edit + Age Report Fix ===== */
.master-item-edit-row{
  background:#f8fbff !important;
}
.master-item-edit-row td{
  padding:6px 8px !important;
}
.master-item-edit-row input,
.master-item-edit-row select{
  min-height:32px !important;
  padding:6px 8px !important;
  border-radius:8px !important;
  font-size:12.5px !important;
}
.master-item-edit-row .inline-item-code{
  min-width:130px;
  font-weight:800;
}
.master-item-edit-row .inline-item-name{
  min-width:260px;
}
.master-item-edit-row .inline-item-group{
  min-width:145px;
}
.master-item-edit-row .locked-cell{
  color:#64748b;
  background:#f1f5f9;
  font-weight:700;
}
.inline-edit-actions{
  display:flex;
  gap:6px;
  justify-content:center;
  align-items:center;
  min-width:135px;
}
.inline-edit-actions .btn{
  padding:7px 9px !important;
  font-size:12px !important;
}
.master-item-editor[hidden]{
  display:none !important;
}


/* ===== V10O Master Barang Filter Grup Dropdown ===== */
.master-filter-row{
  display:flex;
  align-items:flex-end;
  gap:12px;
  margin:8px 0 10px;
}
.master-group-filter-label{
  width:260px;
  max-width:100%;
  font-size:12.5px !important;
  font-weight:900 !important;
  color:#334155 !important;
}
.master-group-filter-label select{
  min-height:38px !important;
  font-size:13px !important;
  border-radius:10px !important;
}
#masterBarangSummary{
  margin-top:0 !important;
}
@media (max-width:900px){
  .master-filter-row{display:grid;}
  .master-group-filter-label{width:100%;}
}


/* ===== V10P Barang Keluar Multi Scan + Invoice Penjualan ===== */
.barang-keluar-panel{
  overflow:hidden;
}
.barang-keluar-tip{
  padding:7px 10px;
  border-radius:10px;
  background:#eff6ff;
  border:1px dashed #93c5fd;
  color:#1d4ed8;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.barang-keluar-form{
  display:grid;
  gap:14px;
}
.out-header-grid{
  display:grid;
  grid-template-columns:220px minmax(360px,1fr) 220px;
  gap:12px 14px;
  align-items:end;
}
.out-scan-box{
  border:1px solid #dbeafe;
  background:#f8fbff;
  border-radius:16px;
  padding:14px;
}
.out-scan-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}
.out-scan-head h4{
  margin:0 0 4px;
  font-size:17px;
}
.out-scan-head p{
  margin:0;
  color:#64748b;
  font-size:12.5px;
  line-height:1.35;
}
.out-count-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1e3a8a;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.out-scan-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:center;
}
.out-scan-row input{
  font-size:16px !important;
  font-weight:800;
  letter-spacing:.02em;
}
.out-scan-table-wrap{
  margin-top:0 !important;
  border-radius:12px !important;
}
.out-scan-table{
  min-width:1040px !important;
}
.out-scan-table th,
.out-scan-table td{
  padding:8px 10px !important;
  font-size:12.5px !important;
  vertical-align:middle !important;
}
.out-scan-table th{
  font-size:12px !important;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.out-scan-table tbody tr:hover{
  background:#f8fafc;
}
.out-submit-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.out-submit-row .btn.primary{
  min-width:260px;
}
@media (max-width:1280px){
  .out-header-grid{
    grid-template-columns:1fr 1fr;
  }
  .out-header-grid .span-2{
    grid-column:span 1;
  }
}
@media (max-width:900px){
  .barang-keluar-tip{
    white-space:normal;
  }
  .out-header-grid{
    grid-template-columns:1fr;
  }
  .out-scan-row{
    grid-template-columns:1fr;
  }
  .out-submit-row{
    display:grid;
  }
  .out-submit-row .btn.primary{
    min-width:0;
  }
}


/* ===== V10Q Dashboard Realtime Ready + Hold ===== */
.dashboard-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(220px,1fr));
  gap:14px;
  margin:0 0 16px;
}
.dashboard-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px 20px;
  box-shadow:var(--shadow);
}
.dashboard-card span{
  display:block;
  color:#64748b;
  font-size:13px;
  font-weight:900;
  margin-bottom:8px;
}
.dashboard-card strong{
  display:block;
  font-size:38px;
  line-height:1;
  color:#0f172a;
  letter-spacing:.04em;
}
.dashboard-card small{
  display:block;
  margin-top:10px;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}
.dashboard-card.hold-card strong{
  color:#f59e0b;
}
.dashboard-section-title{
  margin:14px 0 8px;
  color:#334155;
  font-weight:900;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.dashboard-hold-title{
  margin-top:18px;
}
.dashboard-hold-wrap{
  margin-bottom:4px;
}
.dashboard-sync-time{
  color:#64748b;
  font-size:12px;
  font-weight:700;
}
@media(max-width:900px){
  .dashboard-cards{grid-template-columns:1fr;}
}

/* ===== V10R Barang Keluar History ===== */
.out-history-panel{
  margin-top:16px !important;
}
.out-history-head{
  margin-bottom:12px !important;
}
.out-history-filter{
  display:grid;
  grid-template-columns:170px 170px 210px minmax(260px,1fr) auto;
  gap:10px;
  align-items:end;
  margin:8px 0 10px;
}
.out-history-filter label{
  font-size:12.5px !important;
  font-weight:900 !important;
}
.out-history-filter input,
.out-history-filter select{
  min-height:36px !important;
  font-size:13px !important;
  border-radius:10px !important;
}
.out-history-actions{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
}
.out-history-summary{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin:8px 0 10px;
  color:#475569;
  font-size:13px;
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:12px;
  padding:9px 11px;
}
.out-history-wrap{
  margin-top:8px !important;
}
.out-history-table{
  min-width:1120px !important;
}
.out-history-table th,
.out-history-table td{
  padding:8px 10px !important;
  font-size:12.5px !important;
  vertical-align:middle !important;
}
.out-history-table th{
  text-transform:uppercase;
  letter-spacing:.02em;
  font-size:12px !important;
}
@media(max-width:1200px){
  .out-history-filter{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .out-history-search-label,
  .out-history-actions{
    grid-column:span 2;
  }
  .out-history-actions{
    justify-content:flex-start;
  }
}
@media(max-width:700px){
  .out-history-filter{
    grid-template-columns:1fr;
  }
  .out-history-search-label,
  .out-history-actions{
    grid-column:span 1;
  }
}

/* ===== V10U Barang Masuk Confirmation Preview + Random Security ===== */
body.modal-open{
  overflow:hidden;
}
.confirm-modal[hidden]{
  display:none !important;
}
.confirm-modal{
  position:fixed;
  inset:0;
  z-index:5000;
  display:grid;
  place-items:center;
  padding:18px;
}
.confirm-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.52);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
.confirm-modal-card{
  position:relative;
  width:min(1120px,96vw);
  max-height:92vh;
  overflow:auto;
  background:#fff;
  border:1px solid #dbeafe;
  border-radius:22px;
  box-shadow:0 30px 90px rgba(15,23,42,.28);
  padding:18px;
}
.confirm-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px;
}
.confirm-modal-head h3{
  margin:0 0 5px;
  font-size:22px;
}
.confirm-modal-head p{
  margin:0;
  color:#64748b;
  font-size:13px;
  line-height:1.45;
}
.confirm-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.confirm-summary-grid>div{
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:14px;
  padding:10px 12px;
  display:grid;
  gap:3px;
}
.confirm-summary-grid span{
  color:#64748b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.confirm-summary-grid strong{
  color:#0f172a;
  font-size:13px;
  word-break:break-word;
}
.confirm-preview-table-wrap{
  margin-top:0 !important;
  border-radius:14px !important;
}
.confirm-preview-table{
  min-width:900px !important;
}
.confirm-preview-table th,
.confirm-preview-table td{
  padding:8px 10px !important;
  font-size:12.5px !important;
  vertical-align:middle !important;
}
.confirm-preview-table th{
  text-transform:uppercase;
  letter-spacing:.02em;
  font-size:12px !important;
}
.confirm-preview-table .num{
  text-align:center;
}
.confirm-security-box{
  margin-top:14px;
  border:1px dashed #93c5fd;
  background:#eff6ff;
  border-radius:16px;
  padding:12px;
  display:grid;
  grid-template-columns:190px 1fr;
  gap:14px;
  align-items:end;
}
.confirm-security-box>div{
  display:grid;
  gap:4px;
}
.confirm-security-box span{
  color:#1e3a8a;
  font-size:12px;
  font-weight:900;
}
.confirm-security-box strong{
  display:inline-grid;
  place-items:center;
  width:120px;
  min-height:46px;
  border-radius:14px;
  background:#0f172a;
  color:#fff;
  font-size:28px;
  letter-spacing:.14em;
}
.confirm-security-box label{
  color:#1e3a8a !important;
  font-size:13px !important;
  font-weight:900 !important;
}
.confirm-security-box input{
  background:#fff !important;
  font-weight:900;
  letter-spacing:.12em;
}
.confirm-modal-actions{
  margin-top:14px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.confirm-modal-actions .btn[disabled]{
  opacity:.52;
  cursor:not-allowed;
  filter:grayscale(.2);
}
@media (max-width:900px){
  .confirm-modal-card{padding:14px;border-radius:18px;}
  .confirm-modal-head{display:grid;}
  .confirm-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .confirm-security-box{grid-template-columns:1fr;}
  .confirm-modal-actions{display:grid;}
}
@media (max-width:560px){
  .confirm-summary-grid{grid-template-columns:1fr;}
}

/* ===== V10W Barang Masuk Grup Barang Manual ===== */
.inbound-group-field select{
  width:100% !important;
  min-height:38px !important;
  border:1px solid #cbd5e1 !important;
  background:#fff !important;
  color:#0f172a !important;
}
.inbound-group-field select:focus{
  border-color:#0057b8 !important;
  box-shadow:0 0 0 3px rgba(0,87,184,.10) !important;
}

/* ===== V10X Barang Masuk Aksesoris Mode ===== */
.in-accessory-row .in-row-accessory-name{
  background:#f8fafc !important;
  color:#0f172a !important;
  font-weight:800;
}
.in-row-accessory-warning{
  display:block;
  margin-top:4px;
  font-size:10.5px;
  color:#1e3a8a;
  font-weight:800;
  line-height:1.2;
}
.in-row-accessory-warning.is-warning{
  color:#b45309;
}
.col-accessory-product{width:150px !important;}
.col-accessory-type{width:170px !important;}
.col-accessory-name{width:330px !important;}
.in-accessory-row select,
.in-accessory-row input{
  min-height:34px !important;
  padding:7px 8px !important;
  font-size:12.5px !important;
  border-radius:8px !important;
}
.confirm-preview-table th,
.confirm-preview-table td{
  white-space:nowrap;
}


/* ===== V10Y Barang Masuk Template Kasur / Aksesoris ===== */
.inbound-template-switch{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:8px 0 14px;
  padding:10px 12px;
  border:1px solid #dbeafe;
  background:#f8fbff;
  border-radius:14px;
}
.template-switch-copy{
  display:grid;
  gap:2px;
  min-width:180px;
}
.template-switch-copy span{
  font-size:11px;
  font-weight:900;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.template-switch-copy strong{
  font-size:16px;
  color:#0f172a;
}
.template-switch-buttons{
  display:flex;
  gap:8px;
  align-items:center;
}
.template-switch-btn{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#334155;
  border-radius:12px;
  padding:9px 16px;
  font-weight:900;
  cursor:pointer;
}
.template-switch-btn.is-active{
  border-color:#0057b8;
  background:#0057b8;
  color:#fff;
}
#inTemplateHint{
  margin:0;
  color:#64748b;
  font-size:12.5px;
  line-height:1.35;
  flex:1;
  text-align:right;
}
.template-aksesoris-active .inbound-group-field select{
  border-color:#0057b8 !important;
  box-shadow:0 0 0 3px rgba(0,87,184,.10) !important;
}
.template-aksesoris-active .sheet-table-wrap{
  border-color:#bfdbfe !important;
}
.template-aksesoris-active .sheet-table th{
  background:#eef5ff !important;
  color:#1e3a8a !important;
}
@media (max-width:900px){
  .inbound-template-switch{
    display:grid;
  }
  .template-switch-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  #inTemplateHint{
    text-align:left;
  }
}


/* ===== V10Z Compact Template Switch - Barang Masuk ===== */
.inbound-template-switch{
  margin:4px 0 10px !important;
  padding:7px 10px !important;
  min-height:44px !important;
  border-radius:12px !important;
  gap:10px !important;
  align-items:center !important;
}
.template-switch-copy{
  min-width:116px !important;
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
}
.template-switch-copy span{
  font-size:10px !important;
  letter-spacing:.04em !important;
  white-space:nowrap !important;
}
.template-switch-copy strong{
  font-size:13px !important;
  line-height:1 !important;
  padding:4px 8px !important;
  border-radius:999px !important;
  background:#eff6ff !important;
  color:#1e3a8a !important;
  white-space:nowrap !important;
}
.template-switch-buttons{
  gap:6px !important;
  flex:0 0 auto !important;
}
.template-switch-btn{
  min-height:34px !important;
  padding:7px 14px !important;
  border-radius:10px !important;
  font-size:13px !important;
  line-height:1 !important;
}
#inTemplateHint{
  font-size:12px !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  max-width:720px !important;
}
.panel-sheet .panel-head{
  margin-bottom:8px !important;
}
.panel-sheet .barang-masuk-head h3{
  font-size:19px !important;
}
.panel-sheet .barang-masuk-head p{
  font-size:12.5px !important;
}
.barang-masuk-sheet{
  gap:10px !important;
}
.sheet-top{
  gap:16px !important;
}
.sheet-right{
  gap:8px 12px !important;
}
.sheet-field{
  gap:5px !important;
}
.invoice-field{
  margin-top:58px !important;
}
.sheet-table-wrap{
  margin-top:2px !important;
}
.sheet-bottom-actions{
  margin-top:-2px !important;
}
@media (max-width:1280px){
  .invoice-field{margin-top:0 !important;}
}
@media (max-width:900px){
  .inbound-template-switch{
    grid-template-columns:1fr !important;
    gap:7px !important;
  }
  .template-switch-copy{
    min-width:0 !important;
  }
  .template-switch-buttons{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
  }
  #inTemplateHint{
    white-space:normal !important;
    max-width:none !important;
  }
}

/* ===== V11A Master Barang Delete Setup ===== */
.master-item-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:150px;
}
.master-item-actions .btn{
  padding:7px 9px !important;
  font-size:12px !important;
  white-space:nowrap;
}
.master-item-actions .btn.danger{
  background:#fee2e2 !important;
  color:#b91c1c !important;
  border:1px solid #fecaca !important;
}
.master-item-actions .btn.danger:hover{
  background:#fecaca !important;
}
@media(max-width:900px){
  .master-item-actions{
    justify-content:flex-start;
  }
}


/* ===== V11B Master Barang Excel Valid / Accurate-style ===== */
.btn.warning{
  background:#fef3c7 !important;
  color:#92400e !important;
  border:1px solid #fcd34d !important;
}
.master-setup-note{
  margin:8px 0 10px;
  padding:10px 12px;
  border:1px dashed #f59e0b;
  background:#fffbeb;
  color:#92400e;
  border-radius:12px;
  font-size:12.5px;
  line-height:1.35;
}
.master-actions{
  max-width:720px;
}
.master-accurate-wrap{
  margin-top:10px !important;
}
.master-accurate-table{
  min-width:1380px !important;
}
.master-accurate-table th,
.master-accurate-table td{
  padding:7px 9px !important;
  font-size:12px !important;
  vertical-align:middle !important;
}
.master-accurate-table th{
  white-space:nowrap;
}
.master-accurate-table td:nth-child(4){
  min-width:360px;
  max-width:520px;
  white-space:normal;
  line-height:1.25;
}
.master-dim-cell{
  white-space:nowrap;
  color:#334155;
  font-weight:700;
}
.master-code-cell{
  white-space:nowrap;
  font-weight:900;
}
.master-kategori-cell{
  white-space:nowrap;
  color:#475569;
  font-weight:700;
}
.master-item-actions{
  min-width:150px;
  display:flex;
  gap:6px;
  justify-content:center;
  flex-wrap:wrap;
}
.master-item-actions .btn{
  padding:7px 9px !important;
  font-size:11.5px !important;
}
.master-item-edit-row .locked-cell{
  white-space:nowrap;
}
.master-item-edit-row .inline-item-name{
  min-width:330px;
}
@media(max-width:900px){
  .master-actions{
    max-width:none;
  }
}


/* ===== V11C Master Supplier Edit + Hapus Setup ===== */
.supplier-table{
  min-width:760px !important;
}
.supplier-table th,
.supplier-table td{
  vertical-align:middle !important;
}
.supplier-action-cell{
  width:170px;
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-start;
}
.supplier-edit-row{
  background:#f8fbff !important;
}
.supplier-edit-row input{
  min-height:32px !important;
  padding:6px 8px !important;
  border-radius:8px !important;
  font-size:12.5px !important;
}
.supplier-edit-row .inline-supplier-code{
  max-width:170px;
  font-weight:900;
}
.supplier-edit-row .inline-supplier-name{
  min-width:260px;
}
.owner-supplier-action.hidden{
  display:none !important;
}
@media(max-width:900px){
  .supplier-action-cell{
    width:auto;
    min-width:160px;
  }
}
