:root{--jpos-bg:#f4f6f9;--jpos-card:#fff;--jpos-text:#202938;--jpos-muted:#788495;--jpos-line:#e5e9ef;--jpos-primary:#1d3458;--jpos-primary-2:#27466f;--jpos-soft:#eef3f8;--jpos-success:#147a55;--jpos-warning:#a96813;--jpos-danger:#bd3b43;--jpos-sidebar:240px;--jpos-header:64px;--jpos-tabs:46px;--jpos-radius:13px;--jpos-shadow:0 7px 24px rgba(28,44,69,.055)}
html{font-size:14px} body.jpos-shell-body{background:var(--jpos-bg);color:var(--jpos-text);font-family:Roboto,Arial,sans-serif;overflow:hidden}.jpos-shell-body button,.jpos-shell-body input,.jpos-shell-body select,.jpos-shell-body textarea{font-size:1rem}.jpos-shell-body .form-control{border-color:#d9e0e8;border-radius:8px;height:40px;color:var(--jpos-text)}.jpos-shell-body textarea.form-control{height:auto}.jpos-shell-body .form-control:focus{border-color:#8fa5bd;box-shadow:0 0 0 2px rgba(40,73,112,.08)}
.jpos-logo{height:var(--jpos-header);width:var(--jpos-sidebar);background:#fff;border-bottom:1px solid var(--jpos-line);box-shadow:none!important;display:flex;align-items:center;padding:0 20px;z-index:1100}.jpos-logo a{width:100%;display:flex;align-items:baseline;text-decoration:none;letter-spacing:-1px}.jpos-brand-main{font-size:24px;font-weight:800;color:var(--jpos-primary)}.jpos-brand-pos{font-size:24px;font-weight:300;color:#8b98a8}.jpos-logo small{margin-left:auto;font-size:9px;letter-spacing:1.2px;color:#9aa5b2;font-weight:700}
.jpos-sidebar{top:var(--jpos-header);width:var(--jpos-sidebar);background:#fff!important;border-right:1px solid var(--jpos-line);padding:14px 12px 78px;overflow-y:auto;z-index:1050}.jpos-store-summary{display:flex;align-items:center;gap:10px;padding:10px 9px 13px;border-bottom:1px solid #edf0f4;margin-bottom:6px}.jpos-avatar-mini{width:34px;height:34px;border-radius:9px;background:var(--jpos-soft);display:flex;align-items:center;justify-content:center;color:var(--jpos-primary);font-size:18px}.jpos-store-summary strong{display:block;font-size:.92rem}.jpos-store-summary span{display:block;color:var(--jpos-muted);font-size:.76rem;margin-top:2px}.jpos-menu .br-menu-item{margin:2px 0}.jpos-menu .br-menu-link{border-radius:9px;padding:10px 11px;color:#667386;background:transparent}.jpos-menu .br-menu-link:hover{background:#f3f6f9;color:var(--jpos-text)}.jpos-menu .br-menu-link.active{background:var(--jpos-primary)!important;color:#fff}.jpos-menu .menu-item-icon{width:26px;text-align:center}.jpos-menu .menu-item-label{font-weight:500}.jpos-sidebar-foot{position:fixed;bottom:0;left:0;width:var(--jpos-sidebar);padding:11px 18px;background:#fff;border-top:1px solid var(--jpos-line);display:flex;justify-content:space-between;font-size:.72rem;color:#98a3b0}
.jpos-header{height:var(--jpos-header);left:var(--jpos-sidebar);box-shadow:none;border-bottom:1px solid var(--jpos-line);background:#fff;padding:0 18px;z-index:1040}.jpos-header-left,.jpos-header-right{height:100%;display:flex;align-items:center}.jpos-header-right{gap:9px}.jpos-icon-btn{width:38px;height:38px;border:0;background:transparent;border-radius:9px;color:#647386;font-size:22px;display:flex;align-items:center;justify-content:center;cursor:pointer}.jpos-icon-btn:hover{background:var(--jpos-soft)}.jpos-mobile-menu{display:none}.jpos-header-title{margin-left:7px}.jpos-header-title strong{display:block;font-size:1rem}.jpos-header-title span{display:block;font-size:.74rem;color:var(--jpos-muted)}.jpos-header-chip{height:34px;padding:0 10px;border-radius:9px;background:#f6f8fa;border:1px solid var(--jpos-line);display:flex;align-items:center;gap:6px;color:#657386;font-size:.8rem}.jpos-user{display:flex;align-items:center;gap:9px;margin-left:3px;padding-left:10px;border-left:1px solid var(--jpos-line)}.jpos-user-avatar{width:34px;height:34px;border-radius:50%;background:var(--jpos-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}.jpos-user strong{display:block;font-size:.83rem;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.jpos-user span{display:block;color:var(--jpos-muted);font-size:.7rem}
.jpos-main{margin-left:var(--jpos-sidebar);padding:0!important;min-height:100vh;height:100vh;overflow:hidden;background:var(--jpos-bg)}.jpos-tabs-shell{position:absolute;left:0;right:0;top:var(--jpos-header);height:var(--jpos-tabs);background:#fff;border-bottom:1px solid var(--jpos-line);z-index:20}.jpos-tabs-nav{height:100%;display:flex}.jpos-tabs-scroll{width:34px;flex:0 0 34px;border:0;background:#fff;color:#8793a2;cursor:pointer}.jpos-tabs-scroll:hover{background:#f7f8fa}.jpos-tabs{display:flex;flex:1;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.jpos-tabs::-webkit-scrollbar{display:none}.jpos-tab{height:var(--jpos-tabs);min-width:120px;max-width:220px;border:0;border-right:1px solid #edf0f3;background:#fbfcfd;color:#778293;display:flex;align-items:center;gap:7px;padding:0 10px;cursor:pointer;position:relative}.jpos-tab:hover{background:#f5f7f9}.jpos-tab.active{background:#fff;color:var(--jpos-text);font-weight:600}.jpos-tab.active:after{content:"";height:2px;left:0;right:0;bottom:0;background:var(--jpos-primary);position:absolute}.jpos-tab-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;text-align:left}.jpos-tab-close{width:20px;height:20px;border:0;background:transparent;border-radius:50%;color:#9ca6b1;display:flex;align-items:center;justify-content:center;padding:0}.jpos-tab-close:hover{background:#e9edf2;color:#4a5665}.jpos-workspace{position:absolute;left:0;right:0;top:calc(var(--jpos-header) + var(--jpos-tabs));bottom:0;overflow:auto}.jpos-tab-panel{display:none;min-height:100%;padding:18px}.jpos-tab-panel.active{display:block}
.jpos-page{max-width:1600px;margin:0 auto}.jpos-pagehead{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:16px}.jpos-pagehead h1{font-size:1.45rem;margin:2px 0 3px;font-weight:600;color:#1f2937}.jpos-pagehead p{margin:0;color:var(--jpos-muted);line-height:1.4}.jpos-eyebrow{text-transform:uppercase;letter-spacing:.08em;color:#8692a1;font-size:.7rem;font-weight:700}.jpos-page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.jpos-page .btn{border-radius:8px;height:40px;padding:0 13px;display:inline-flex;align-items:center;gap:7px;font-weight:500}.jpos-page .btn-primary{background:var(--jpos-primary);border-color:var(--jpos-primary)}.jpos-page .btn-primary:hover{background:var(--jpos-primary-2);border-color:var(--jpos-primary-2)}.jpos-page .btn-light{background:#fff;border:1px solid var(--jpos-line);color:#526173}.jpos-page .btn-danger{background:#fff2f3;border:1px solid #f2d0d3;color:var(--jpos-danger)}
.jpos-card{background:var(--jpos-card);border:1px solid var(--jpos-line);border-radius:var(--jpos-radius);box-shadow:var(--jpos-shadow);overflow:hidden}.jpos-card-head{padding:15px 16px;border-bottom:1px solid var(--jpos-line);display:flex;align-items:center;justify-content:space-between;gap:12px}.jpos-card-head h3{font-size:1rem;margin:0 0 3px}.jpos-card-head p{margin:0;color:var(--jpos-muted);font-size:.78rem}.jpos-card-body{padding:16px}.jpos-filterbar{padding:12px;display:flex;gap:8px;align-items:center;border-bottom:1px solid var(--jpos-line);background:#fcfdfe}.jpos-filterbar>.form-control{width:auto;min-width:135px}.jpos-search{position:relative;min-width:250px}.jpos-search>i{position:absolute;left:12px;top:50%;transform:translateY(-50%);z-index:2;color:#8995a3}.jpos-search .form-control{padding-left:34px;width:100%}.jpos-table-wrap{overflow:auto}.jpos-table{margin:0;white-space:nowrap}.jpos-table thead th{background:#fafbfc;border-top:0;border-bottom:1px solid var(--jpos-line);font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:#8190a1;padding:10px 12px;font-weight:600}.jpos-table tbody td{padding:11px 12px;border-color:#eef1f4;vertical-align:middle}.jpos-table tbody tr:hover{background:#fbfcfd}.jpos-table .jpos-link{font-weight:600;color:var(--jpos-primary);cursor:pointer}.jpos-sub{display:block;color:var(--jpos-muted);font-size:.76rem;margin-top:2px}.jpos-empty-cell{text-align:center!important;padding:28px!important;color:#8a96a5!important}.jpos-money{font-variant-numeric:tabular-nums;font-weight:600}.jpos-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:.7rem;font-weight:600;text-transform:capitalize}.jpos-badge.draft{background:#fff6e6;color:#9a6814}.jpos-badge.final,.jpos-badge.captured{background:#eaf8f1;color:#14734f}.jpos-badge.void{background:#fbecee;color:#a83941}.jpos-badge.unpaid{background:#f2f3f5;color:#687584}.jpos-badge.partial{background:#eef3fb;color:#355f91}.jpos-badge.paid{background:#eaf8f1;color:#14734f}.jpos-badge.overpaid{background:#f2ecfb;color:#69499e}
.jpos-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.jpos-metric{background:#fff;border:1px solid var(--jpos-line);border-radius:var(--jpos-radius);padding:14px 15px;box-shadow:var(--jpos-shadow)}.jpos-metric-top{display:flex;justify-content:space-between;align-items:center;color:var(--jpos-muted);font-size:.75rem}.jpos-metric-icon{width:30px;height:30px;border-radius:8px;background:var(--jpos-soft);display:flex;align-items:center;justify-content:center;color:var(--jpos-primary);font-size:17px}.jpos-metric-value{font-size:1.35rem;font-weight:700;margin-top:9px;letter-spacing:-.02em}.jpos-metric-note{font-size:.72rem;color:var(--jpos-muted);margin-top:4px}.jpos-skeleton-card{height:104px;border-radius:var(--jpos-radius);background:linear-gradient(100deg,#edf0f4 20%,#f7f8fa 40%,#edf0f4 60%);background-size:200% 100%;animation:jposShimmer 1.2s infinite}@keyframes jposShimmer{to{background-position-x:-200%}}
.jpos-list-stack{padding:8px 15px 14px}.jpos-list-row{display:flex;justify-content:space-between;align-items:center;padding:10px 1px;border-bottom:1px solid #eff2f5}.jpos-list-row:last-child{border-bottom:0}.jpos-list-row strong{text-transform:capitalize}.jpos-list-row span{color:var(--jpos-muted);font-size:.76rem}.jpos-state{padding:28px;min-height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;color:var(--jpos-muted)}.jpos-state strong{color:var(--jpos-text)}.jpos-state.compact{min-height:auto;padding:18px}.jpos-state.danger strong{color:var(--jpos-danger)}.jpos-spin{animation:jposSpin .8s linear infinite;font-size:22px}@keyframes jposSpin{to{transform:rotate(360deg)}}
.jpos-detail-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.7fr);gap:14px}.jpos-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:13px 16px;border-bottom:1px solid var(--jpos-line);background:#fbfcfd}.jpos-detail-summary span{display:block;color:var(--jpos-muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.04em}.jpos-detail-summary strong{display:block;margin-top:3px}.jpos-detail-total{padding:16px}.jpos-detail-total-row{display:flex;justify-content:space-between;padding:5px 0;color:#657386}.jpos-detail-total-row.grand{border-top:1px solid var(--jpos-line);padding-top:11px;margin-top:5px;color:var(--jpos-text);font-size:1.08rem;font-weight:700}.jpos-detail-actionbar{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--jpos-line);background:#fcfdfe;flex-wrap:wrap}.jpos-payment-card{padding:12px;border:1px solid var(--jpos-line);border-radius:10px;margin-bottom:8px}.jpos-payment-card:last-child{margin-bottom:0}.jpos-payment-line{display:flex;justify-content:space-between;gap:10px}.jpos-payment-card .meta{font-size:.73rem;color:var(--jpos-muted);margin-top:4px}.jpos-mobile-actions{display:none}.jpos-note{padding:10px 12px;border-radius:9px;background:#fff8e8;border:1px solid #f1dfb6;color:#8c681c;font-size:.78rem;line-height:1.45;margin-bottom:12px}
body.collapsed-menu .jpos-logo{width:60px;padding:0 12px}body.collapsed-menu .jpos-logo small,body.collapsed-menu .jpos-brand-pos{display:none}body.collapsed-menu .jpos-sidebar{width:60px;padding-left:8px;padding-right:8px}body.collapsed-menu .jpos-sidebar .menu-item-label,body.collapsed-menu .jpos-sidebar .sidebar-label,body.collapsed-menu .jpos-store-summary>div:last-child,body.collapsed-menu .jpos-sidebar-foot{display:none}body.collapsed-menu .jpos-store-summary{padding-left:4px}body.collapsed-menu .jpos-sidebar-foot{width:60px}body.collapsed-menu .jpos-header{left:60px}body.collapsed-menu .jpos-main{margin-left:60px}
.jpos-sidebar-backdrop{display:none}.jpos-auth-body{margin:0;min-height:100vh;background:#f4f6f9;display:flex;align-items:center;justify-content:center;padding:20px;font-family:Roboto,Arial,sans-serif}.jpos-auth-card{width:min(420px,100%);background:#fff;border:1px solid #e2e7ed;border-radius:16px;padding:28px;box-shadow:0 16px 45px rgba(31,43,61,.08);text-align:center}.jpos-auth-card .jpos-mark{width:52px;height:52px;border-radius:14px;background:var(--jpos-primary);color:#fff;display:flex;align-items:center;justify-content:center;margin:0 auto 15px;font-weight:800;font-size:20px}.jpos-auth-card h1{font-size:1.35rem}.jpos-auth-card p{color:#718093;line-height:1.55}.jpos-auth-card small{display:block;color:#93a0ae;line-height:1.5;margin-top:15px}
.swal2-popup{font-size:1rem!important;border-radius:14px!important}.swal2-confirm{background:var(--jpos-primary)!important}.jpos-swal-form{text-align:left}.jpos-swal-form label{display:block;font-size:.78rem;font-weight:600;margin:9px 0 4px}.jpos-swal-form input,.jpos-swal-form select,.jpos-swal-form textarea{width:100%;border:1px solid #d7dee7;border-radius:8px;padding:9px 10px;font:inherit}.jpos-swal-form textarea{min-height:75px}
@media(max-width:1199px){.jpos-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-detail-grid{grid-template-columns:1fr}}
@media(max-width:991px){html{font-size:16px}:root{--jpos-header:58px;--jpos-tabs:48px}.jpos-logo{display:none}.jpos-sidebar{position:fixed;left:-260px;top:0;width:250px;height:100vh;padding-top:16px;transition:left .2s ease;z-index:1200}.jpos-sidebar-foot{width:250px}.jpos-header{left:0;height:var(--jpos-header);padding:0 10px}.jpos-main{margin-left:0}.jpos-desktop-menu{display:none}.jpos-mobile-menu{display:flex}.jpos-header-title span,.jpos-header-chip{display:none}.jpos-user>div:last-child{display:none}.jpos-user{border-left:0;padding-left:0}.jpos-sidebar-backdrop{position:fixed;inset:0;background:rgba(20,29,42,.38);z-index:1150}.show-jpos-sidebar .jpos-sidebar{left:0}.show-jpos-sidebar .jpos-sidebar-backdrop{display:block}.jpos-tab-panel{padding:12px}.jpos-pagehead{align-items:flex-start;flex-direction:column;margin-bottom:12px}.jpos-page-actions{width:100%}.jpos-filterbar{align-items:stretch;flex-wrap:wrap}.jpos-filterbar>.form-control,.jpos-filterbar>.jpos-search{width:100%;min-width:0}.jpos-filterbar .btn{min-height:46px}.jpos-page .form-control,.jpos-page .btn{min-height:46px}.jpos-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-mobile-actions{display:flex;position:sticky;bottom:0;z-index:25;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-top:1px solid var(--jpos-line);margin:14px -12px -12px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:8px}.jpos-mobile-actions .btn{flex:1}.jpos-table{font-size:.9rem}}
@media(max-width:575px){.jpos-metric-grid{grid-template-columns:1fr 1fr;gap:8px}.jpos-metric{padding:12px}.jpos-metric-value{font-size:1.05rem}.jpos-pagehead h1{font-size:1.25rem}.jpos-tab{min-width:112px;max-width:175px}.jpos-tabs-scroll{display:none}.jpos-detail-summary{grid-template-columns:1fr 1fr}.jpos-detail-actionbar .btn{flex:1}.jpos-page-actions .btn{flex:1}}


/* =====================================================================
   JPOS UI PATCH v0.5.2
   - Desktop sidebar PUSH layout: tidak boleh menutupi workspace
   - Mobile sidebar DRAWER: overlay hanya di HP/tablet
   - Stable tab workspace
   ===================================================================== */

:root{
  --jpos-sidebar-expanded:238px;
  --jpos-sidebar-collapsed:64px;
}

/* Hindari flash/animasi posisi sebelum JS membaca state sidebar. */
body.jpos-shell-body:not(.jpos-ui-ready) .jpos-logo,
body.jpos-shell-body:not(.jpos-ui-ready) .jpos-sidebar,
body.jpos-shell-body:not(.jpos-ui-ready) .jpos-header,
body.jpos-shell-body:not(.jpos-ui-ready) .jpos-main{
  transition:none!important;
}

.jpos-logo,
.jpos-sidebar,
.jpos-header,
.jpos-main{
  transition:
    width .18s ease,
    left .18s ease,
    margin-left .18s ease,
    transform .18s ease;
}

/* Tab panel harus punya lebar penuh dan tidak tertimpa layout template. */
.jpos-workspace{
  width:100%;
  max-width:100%;
}
.jpos-tab-panel{
  width:100%;
  max-width:100%;
}
.jpos-tab-panel:not(.active){
  display:none!important;
}
.jpos-tab-panel.active{
  display:block!important;
}

/* Tab tetap compact tetapi judul tidak terpotong terlalu cepat. */
.jpos-tab{
  flex:0 0 auto;
}
.jpos-tab-close{
  flex:0 0 20px;
}

/* ========================= DESKTOP ========================= */
@media (min-width:992px){

  body.jpos-shell-body{
    --jpos-sidebar:var(--jpos-sidebar-expanded);
  }

  body.jpos-shell-body .jpos-logo{
    position:fixed!important;
    top:0!important;
    left:0!important;
    width:var(--jpos-sidebar-expanded)!important;
    height:var(--jpos-header)!important;
    margin:0!important;
  }

  body.jpos-shell-body .jpos-sidebar{
    position:fixed!important;
    top:var(--jpos-header)!important;
    left:0!important;
    bottom:0!important;
    width:var(--jpos-sidebar-expanded)!important;
    height:auto!important;
    min-height:0!important;
    transform:none!important;
    margin:0!important;
    box-shadow:none!important;
  }

  body.jpos-shell-body .jpos-sidebar-foot{
    width:var(--jpos-sidebar-expanded)!important;
  }

  body.jpos-shell-body .jpos-header{
    position:fixed!important;
    top:0!important;
    right:0!important;
    left:var(--jpos-sidebar-expanded)!important;
    width:auto!important;
    margin:0!important;
  }

  body.jpos-shell-body .jpos-main{
    position:fixed!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:var(--jpos-sidebar-expanded)!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
  }

  /* collapsed: seluruh workspace ikut bergeser, bukan sidebar overlay */
  body.jpos-shell-body.collapsed-menu{
    --jpos-sidebar:var(--jpos-sidebar-collapsed);
  }

  body.jpos-shell-body.collapsed-menu .jpos-logo{
    width:var(--jpos-sidebar-collapsed)!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }

  body.jpos-shell-body.collapsed-menu .jpos-sidebar{
    width:var(--jpos-sidebar-collapsed)!important;
  }

  body.jpos-shell-body.collapsed-menu .jpos-sidebar-foot{
    width:var(--jpos-sidebar-collapsed)!important;
  }

  body.jpos-shell-body.collapsed-menu .jpos-header{
    left:var(--jpos-sidebar-collapsed)!important;
  }

  body.jpos-shell-body.collapsed-menu .jpos-main{
    left:var(--jpos-sidebar-collapsed)!important;
    margin-left:0!important;
  }

  .jpos-sidebar-backdrop{
    display:none!important;
  }
}

/* ========================= MOBILE/TABLET ========================= */
@media (max-width:991px){

  body.jpos-shell-body{
    overflow:hidden;
  }

  body.jpos-shell-body .jpos-header{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:auto!important;
    margin:0!important;
  }

  body.jpos-shell-body .jpos-main{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
  }

  body.jpos-shell-body .jpos-sidebar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    bottom:0!important;
    width:min(86vw,280px)!important;
    height:100dvh!important;
    padding-top:18px!important;
    transform:translateX(-102%)!important;
    transition:transform .2s ease!important;
    z-index:1200!important;
    box-shadow:0 20px 55px rgba(20,29,42,.18)!important;
  }

  body.jpos-shell-body.show-jpos-sidebar .jpos-sidebar{
    transform:translateX(0)!important;
  }

  body.jpos-shell-body .jpos-sidebar-foot{
    width:min(86vw,280px)!important;
  }

  body.jpos-shell-body .jpos-sidebar-backdrop{
    position:fixed!important;
    inset:0!important;
    z-index:1150!important;
    background:rgba(20,29,42,.38)!important;
    opacity:0;
    visibility:hidden;
    display:block!important;
    transition:opacity .18s ease,visibility .18s ease;
  }

  body.jpos-shell-body.show-jpos-sidebar .jpos-sidebar-backdrop{
    opacity:1;
    visibility:visible;
  }

  /* Setelah pilih menu, drawer ditutup oleh JS dan halaman kembali penuh. */
  .jpos-tabs-shell,
  .jpos-workspace{
    left:0!important;
    right:0!important;
  }
}

/* Sedikit perapihan visual desktop besar */
@media (min-width:1200px){
  .jpos-tab-panel{
    padding:20px 22px;
  }
  .jpos-page{
    max-width:1680px;
  }
}

/* Form tidak boleh keluar card di layar sempit */
.jpos-card,
.jpos-filterbar,
.jpos-search,
.jpos-page-actions,
.jpos-table-wrap{
  min-width:0;
  max-width:100%;
}


/* =====================================================================
   JPOS UI PATCH v0.5.3
   RESPONSIVE DATE / FILTER CONTROLS
   ===================================================================== */

/* Browser native date control kadang membawa intrinsic minimum width.
   JPOS tidak mengizinkannya memaksa container melebar/pecah sembarangan. */
.jpos-shell-body input[type="date"].form-control{
  display:block;
  width:100%;
  min-width:0!important;
  max-width:100%;
  box-sizing:border-box;
  font-variant-numeric:tabular-nums;
}

/* Heading kiri diberi hak tumbuh; area action tidak boleh terjepit di desktop. */
.jpos-pagehead > .jpos-pagehead-copy{
  flex:1 1 auto;
  min-width:0;
}

/* Date actions memakai grid deterministik, bukan flex-wrap acak. */
.jpos-page-actions.jpos-date-actions{
  display:grid;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  width:auto;
  max-width:100%;
}

/* Dashboard: [tanggal] [refresh] */
.jpos-date-actions.is-single{
  grid-template-columns:minmax(180px,220px) max-content;
}

/* Report: [dari] [sampai] [tampilkan] */
.jpos-date-actions.is-range{
  grid-template-columns:
    minmax(180px,220px)
    minmax(180px,220px)
    max-content;
}

/* Semua child grid wajib boleh mengecil. */
.jpos-date-actions > *{
  min-width:0!important;
  margin:0!important;
}

/* Button selalu mengikuti tinggi form dan tidak pecah teks. */
.jpos-date-actions .btn{
  width:auto;
  white-space:nowrap;
  justify-content:center;
}

/* Filterbar yang memiliki date juga jangan membiarkan date mengambil
   intrinsic width browser. Search tetap menjadi bagian fleksibel. */
.jpos-filterbar .jpos-date-filter{
  flex:0 1 165px;
  width:165px!important;
  min-width:135px!important;
  max-width:190px!important;
}

/* --------------------------- TABLET --------------------------- */
@media (max-width:1199px){

  .jpos-pagehead{
    flex-wrap:wrap;
  }

  .jpos-page-actions.jpos-date-actions{
    width:100%;
    justify-content:start;
  }

  .jpos-date-actions.is-single{
    grid-template-columns:minmax(180px,240px) max-content;
  }

  .jpos-date-actions.is-range{
    grid-template-columns:
      minmax(170px,1fr)
      minmax(170px,1fr)
      max-content;
  }
}

/* ---------------------------- HP ----------------------------- */
@media (max-width:767px){

  .jpos-page-actions.jpos-date-actions{
    width:100%;
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px;
  }

  .jpos-date-actions > input[type="date"],
  .jpos-date-actions > .btn{
    width:100%!important;
    max-width:none!important;
  }

  .jpos-date-actions .btn{
    min-height:46px;
  }

  .jpos-filterbar .jpos-date-filter{
    flex:1 1 100%;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
}

/* Sangat sempit: hindari native date control mendorong viewport. */
@media (max-width:420px){
  .jpos-pagehead,
  .jpos-pagehead-copy,
  .jpos-page-actions,
  .jpos-date-actions{
    min-width:0!important;
    max-width:100%!important;
  }

  .jpos-shell-body input[type="date"].form-control{
    font-size:16px;
    padding-left:12px;
    padding-right:10px;
  }
}


/* =====================================================================
   JPOS SIDEBAR NAVIGATION v0.5.4
   Category + submenu + sub-submenu + persistent active path
   ===================================================================== */

:root{
  --jpos-menu-active:#193b67;
  --jpos-menu-active-2:#214d80;
  --jpos-menu-accent:#16a6a1;
  --jpos-menu-accent-soft:#e8f7f6;
  --jpos-menu-open:#eef4fb;
  --jpos-menu-hover:#f4f7fb;
  --jpos-menu-text:#58677a;
  --jpos-menu-dark:#233248;
}

/* Sidebar sedikit lebih terstruktur seperti aplikasi enterprise. */
.jpos-sidebar{
  padding-top:12px!important;
}

.jpos-sidebar-nav{
  padding:0 0 12px;
}

.jpos-menu-category{
  margin:0 0 10px;
}

.jpos-menu-category-title{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:28px;
  padding:7px 10px 5px;
  color:#9aa6b5;
  font-size:.67rem;
  line-height:1;
  font-weight:800;
  letter-spacing:.105em;
  text-transform:uppercase;
  user-select:none;
}

.jpos-menu-category-title:after{
  content:"";
  height:1px;
  flex:1;
  background:#edf1f5;
}

.jpos-menu-root{
  margin:0!important;
  padding:0!important;
}

/* Reset button menu agar sama dengan link. */
button.jpos-menu-toggle,
button.jpos-submenu-toggle{
  width:100%;
  border:0;
  font:inherit;
  text-align:left;
  cursor:pointer;
}

/* Top-level links & parent. */
.jpos-menu .br-menu-link{
  position:relative;
  min-height:44px;
  display:flex;
  align-items:center;
  gap:8px;
  border-radius:10px!important;
  padding:10px 11px!important;
  color:var(--jpos-menu-text)!important;
  background:transparent!important;
  transition:
    background-color .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

.jpos-menu .br-menu-link:hover{
  color:var(--jpos-menu-dark)!important;
  background:var(--jpos-menu-hover)!important;
}

.jpos-menu .br-menu-link .menu-item-icon{
  color:#718299;
  transition:color .16s ease;
}

/* Leaf utama aktif: warna jauh lebih tegas. */
.jpos-menu .br-menu-link.js-menu-tab.active{
  color:#fff!important;
  background:
    linear-gradient(135deg,var(--jpos-menu-active),var(--jpos-menu-active-2))!important;
  box-shadow:0 7px 18px rgba(25,59,103,.17);
}

.jpos-menu .br-menu-link.js-menu-tab.active:before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:0 4px 4px 0;
  background:#53ded5;
}

.jpos-menu .br-menu-link.js-menu-tab.active .menu-item-icon{
  color:#fff;
}

/* Parent yang jalurnya sedang aktif. */
.jpos-menu-toggle.active-path,
.jpos-submenu-toggle.active-path{
  color:var(--jpos-menu-active)!important;
  background:var(--jpos-menu-open)!important;
  font-weight:700!important;
}

.jpos-menu-toggle.active-path .menu-item-icon,
.jpos-submenu-toggle.active-path > .icon:first-child{
  color:var(--jpos-menu-accent)!important;
}

.jpos-menu-group.open > .jpos-menu-toggle{
  color:var(--jpos-menu-dark)!important;
  background:#f2f6fb!important;
}

/* Chevron */
.jpos-menu-chevron{
  margin-left:auto;
  flex:0 0 auto;
  color:#9aa6b5;
  font-size:.72rem;
  transition:transform .18s ease,color .18s ease;
}

.jpos-menu-group.open > [data-menu-toggle] > .jpos-menu-chevron{
  transform:rotate(180deg);
  color:var(--jpos-menu-active);
}

/* ================================================================
   SUBMENU LEVEL 1
   ================================================================ */
.jpos-submenu{
  list-style:none;
  margin:5px 0 4px 17px;
  padding:3px 0 3px 15px;
  border-left:1px solid #dce4ee;
}

.jpos-submenu[hidden]{
  display:none!important;
}

.jpos-submenu-item{
  position:relative;
  margin:2px 0;
}

.jpos-submenu-link{
  width:100%;
  min-height:39px;
  display:flex;
  align-items:center;
  gap:10px;
  position:relative;
  padding:8px 10px;
  border:0;
  border-radius:9px;
  text-decoration:none!important;
  color:#68778a;
  background:transparent;
  font-size:.87rem;
  font-weight:500;
  transition:
    background-color .16s ease,
    color .16s ease;
}

.jpos-submenu-link:hover{
  color:var(--jpos-menu-dark);
  background:var(--jpos-menu-hover);
}

.jpos-submenu-link > .icon:first-child{
  width:19px;
  flex:0 0 19px;
  text-align:center;
  color:#8190a3;
  font-size:1rem;
}

/* Leaf submenu aktif. */
.jpos-submenu-link.js-menu-tab.active{
  color:#fff!important;
  background:var(--jpos-menu-active)!important;
  font-weight:700;
  box-shadow:0 5px 14px rgba(25,59,103,.13);
}

.jpos-submenu-link.js-menu-tab.active:before{
  content:"";
  position:absolute;
  left:-16px;
  top:50%;
  width:15px;
  height:1px;
  background:var(--jpos-menu-accent);
}

.jpos-submenu-link.js-menu-tab.active:after{
  content:"";
  position:absolute;
  left:-19px;
  top:50%;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--jpos-menu-accent);
  transform:translateY(-50%);
  box-shadow:0 0 0 3px #fff;
}

.jpos-submenu-link.js-menu-tab.active > .icon:first-child{
  color:#fff;
}

/* ================================================================
   SUBMENU LEVEL 2
   ================================================================ */
.jpos-menu-group-level-2{
  margin-top:3px;
}

.jpos-submenu-toggle{
  color:#64748a;
}

.jpos-submenu-toggle.active-path,
.jpos-menu-group-level-2.open > .jpos-submenu-toggle{
  background:var(--jpos-menu-accent-soft)!important;
  color:#155a68!important;
}

.jpos-submenu-level-2{
  margin:3px 0 5px 14px;
  padding-left:13px;
  border-left:1px dashed #cdd9e6;
}

.jpos-submenu-link-level-2{
  min-height:36px;
  padding:7px 10px;
  font-size:.84rem;
}

.jpos-submenu-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  flex:0 0 6px;
  background:#a9b5c3;
  transition:
    transform .16s ease,
    background-color .16s ease;
}

.jpos-submenu-link-level-2.active .jpos-submenu-dot{
  background:#fff;
  transform:scale(1.25);
}

/* Active path parent memperoleh marker tipis di sisi kiri. */
.jpos-menu-group.active-path > .jpos-menu-toggle:before{
  content:"";
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width:3px;
  border-radius:0 3px 3px 0;
  background:var(--jpos-menu-accent);
}

.jpos-menu-group-level-2.active-path > .jpos-submenu-toggle:before{
  content:"";
  position:absolute;
  left:-16px;
  top:50%;
  width:14px;
  height:1px;
  background:var(--jpos-menu-accent);
}

/* ================================================================
   COLLAPSED DESKTOP
   ================================================================ */
@media (min-width:992px){

  body.jpos-shell-body.collapsed-menu .jpos-menu-category-title,
  body.jpos-shell-body.collapsed-menu .jpos-submenu,
  body.jpos-shell-body.collapsed-menu .jpos-menu-chevron{
    display:none!important;
  }

  body.jpos-shell-body.collapsed-menu .jpos-menu-category{
    margin-bottom:7px;
  }

  body.jpos-shell-body.collapsed-menu .jpos-menu-root{
    overflow:visible;
  }

  body.jpos-shell-body.collapsed-menu .jpos-menu .br-menu-link{
    width:46px;
    height:46px;
    min-height:46px;
    justify-content:center;
    padding:0!important;
    margin:0 auto;
  }

  body.jpos-shell-body.collapsed-menu .jpos-menu .menu-item-icon{
    width:auto;
    margin:0!important;
  }

  body.jpos-shell-body.collapsed-menu .jpos-menu-toggle.active-path{
    background:var(--jpos-menu-open)!important;
    color:var(--jpos-menu-active)!important;
  }

  body.jpos-shell-body.collapsed-menu .jpos-menu-toggle.active-path:after{
    content:"";
    position:absolute;
    right:-5px;
    top:50%;
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--jpos-menu-accent);
    transform:translateY(-50%);
  }
}

/* ================================================================
   MOBILE DRAWER
   ================================================================ */
@media (max-width:991px){

  .jpos-menu-category-title{
    padding-left:8px;
    padding-right:8px;
  }

  .jpos-menu .br-menu-link{
    min-height:48px;
  }

  .jpos-submenu-link{
    min-height:44px;
    font-size:.93rem;
  }

  .jpos-submenu-link-level-2{
    min-height:42px;
  }

  .jpos-sidebar-nav{
    padding-bottom:22px;
  }
}


/* =====================================================================
   JPOS VISUAL PATCH v0.5.5
   DARK SIDEBAR + DARK TAB BAR + STRONG ACTIVE HIGHLIGHT
   ===================================================================== */

:root{
  --jpos-dark-950:#142133;
  --jpos-dark-925:#17263a;
  --jpos-dark-900:#1b2c42;
  --jpos-dark-850:#203650;
  --jpos-dark-800:#27405d;

  --jpos-side-text:#c8d4e2;
  --jpos-side-muted:#7f92a8;
  --jpos-side-line:rgba(255,255,255,.08);

  --jpos-accent:#20aeb5;
  --jpos-accent-2:#26bec3;
  --jpos-accent-soft:rgba(32,174,181,.14);

  --jpos-tab-dark:#182a40;
  --jpos-tab-inactive:#20354e;
  --jpos-tab-hover:#29445f;
  --jpos-tab-active:#1e9fa8;
}

/* ================================================================
   BRAND / SIDEBAR DARK SURFACE
   ================================================================ */

body.jpos-shell-body .jpos-logo{
  background:var(--jpos-dark-950)!important;
  border-color:var(--jpos-side-line)!important;
}

body.jpos-shell-body .jpos-brand-main{
  color:#ffffff!important;
}

body.jpos-shell-body .jpos-brand-pos{
  color:var(--jpos-accent-2)!important;
}

body.jpos-shell-body .jpos-logo small{
  color:#8195aa!important;
}

body.jpos-shell-body .jpos-sidebar{
  background:
    linear-gradient(
      180deg,
      var(--jpos-dark-950) 0%,
      var(--jpos-dark-925) 42%,
      #17283c 100%
    )!important;
  border-right:1px solid rgba(255,255,255,.07)!important;
  box-shadow:10px 0 30px rgba(13,26,43,.055)!important;
}

/* Ringkasan Transaction V2 */
body.jpos-shell-body .jpos-store-summary{
  border-bottom-color:var(--jpos-side-line)!important;
}

body.jpos-shell-body .jpos-avatar-mini{
  background:rgba(255,255,255,.07)!important;
  color:var(--jpos-accent-2)!important;
}

body.jpos-shell-body .jpos-store-summary strong{
  color:#f4f8fc!important;
}

body.jpos-shell-body .jpos-store-summary span{
  color:#899db3!important;
}

/* footer sidebar */
body.jpos-shell-body .jpos-sidebar-foot{
  background:#132235!important;
  border-top-color:var(--jpos-side-line)!important;
  color:#71869e!important;
}

/* ================================================================
   CATEGORY LABELS
   ================================================================ */

body.jpos-shell-body .jpos-menu-category-title{
  color:#71869e!important;
}

body.jpos-shell-body .jpos-menu-category-title:after{
  background:rgba(255,255,255,.075)!important;
}

/* ================================================================
   TOP LEVEL MENU
   ================================================================ */

body.jpos-shell-body .jpos-menu .br-menu-link{
  color:var(--jpos-side-text)!important;
  background:transparent!important;
}

body.jpos-shell-body .jpos-menu .br-menu-link .menu-item-icon{
  color:#91a5bb!important;
}

body.jpos-shell-body .jpos-menu .br-menu-link:hover{
  color:#fff!important;
  background:rgba(255,255,255,.065)!important;
}

body.jpos-shell-body .jpos-menu .br-menu-link:hover .menu-item-icon{
  color:#d8e7f4!important;
}

/* Leaf aktif = highlight paling jelas */
body.jpos-shell-body .jpos-menu .br-menu-link.js-menu-tab.active{
  color:#fff!important;
  background:
    linear-gradient(
      135deg,
      var(--jpos-accent),
      #158d9b
    )!important;
  box-shadow:
    0 8px 18px rgba(0,0,0,.16),
    inset 0 0 0 1px rgba(255,255,255,.08)!important;
}

body.jpos-shell-body .jpos-menu .br-menu-link.js-menu-tab.active:before{
  background:#8bf4f0!important;
  width:4px!important;
}

body.jpos-shell-body .jpos-menu .br-menu-link.js-menu-tab.active .menu-item-icon{
  color:#fff!important;
}

/* ================================================================
   PARENT / ACTIVE PATH
   ================================================================ */

body.jpos-shell-body .jpos-menu-group.open > .jpos-menu-toggle{
  color:#e4edf6!important;
  background:rgba(255,255,255,.045)!important;
}

body.jpos-shell-body .jpos-menu-toggle.active-path{
  color:#fff!important;
  background:rgba(32,174,181,.13)!important;
  box-shadow:inset 3px 0 0 var(--jpos-accent)!important;
}

body.jpos-shell-body .jpos-menu-toggle.active-path .menu-item-icon{
  color:var(--jpos-accent-2)!important;
}

body.jpos-shell-body .jpos-menu-chevron{
  color:#788da5!important;
}

body.jpos-shell-body
.jpos-menu-group.open
> [data-menu-toggle]
> .jpos-menu-chevron{
  color:var(--jpos-accent-2)!important;
}

/* ================================================================
   SUBMENU LEVEL 1
   ================================================================ */

body.jpos-shell-body .jpos-submenu{
  border-left-color:rgba(137,162,188,.22)!important;
}

body.jpos-shell-body .jpos-submenu-link{
  color:#aab9ca!important;
  background:transparent!important;
}

body.jpos-shell-body .jpos-submenu-link > .icon:first-child{
  color:#788da5!important;
}

body.jpos-shell-body .jpos-submenu-link:hover{
  color:#fff!important;
  background:rgba(255,255,255,.055)!important;
}

/* Child aktif */
body.jpos-shell-body .jpos-submenu-link.js-menu-tab.active{
  color:#fff!important;
  background:
    linear-gradient(
      135deg,
      rgba(32,174,181,.95),
      rgba(23,138,153,.96)
    )!important;
  box-shadow:0 6px 15px rgba(0,0,0,.14)!important;
}

body.jpos-shell-body .jpos-submenu-link.js-menu-tab.active:before{
  background:#45d8d9!important;
}

body.jpos-shell-body .jpos-submenu-link.js-menu-tab.active:after{
  background:#4de0df!important;
  box-shadow:0 0 0 3px var(--jpos-dark-925)!important;
}

body.jpos-shell-body .jpos-submenu-link.js-menu-tab.active > .icon:first-child{
  color:#fff!important;
}

/* ================================================================
   SUB-SUBMENU / FINANCE TRANSACTION
   ================================================================ */

body.jpos-shell-body .jpos-submenu-toggle{
  color:#aab9ca!important;
}

body.jpos-shell-body .jpos-submenu-toggle.active-path,
body.jpos-shell-body
.jpos-menu-group-level-2.open
> .jpos-submenu-toggle{
  color:#dffafb!important;
  background:rgba(32,174,181,.12)!important;
  box-shadow:inset 2px 0 0 rgba(32,174,181,.75)!important;
}

body.jpos-shell-body .jpos-submenu-level-2{
  border-left-color:rgba(120,148,178,.25)!important;
}

body.jpos-shell-body .jpos-submenu-dot{
  background:#6f849a!important;
}

body.jpos-shell-body
.jpos-submenu-link-level-2.active
.jpos-submenu-dot{
  background:#fff!important;
}

/* ================================================================
   TAB BAR DARK
   ================================================================ */

body.jpos-shell-body .jpos-tabs-shell{
  background:var(--jpos-tab-dark)!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 2px 10px rgba(15,28,44,.08)!important;
}

body.jpos-shell-body .jpos-tabs-nav{
  background:var(--jpos-tab-dark)!important;
}

body.jpos-shell-body .jpos-tabs-scroll{
  background:#15263a!important;
  color:#8ca1b8!important;
  border-right:1px solid rgba(255,255,255,.055)!important;
}

body.jpos-shell-body .jpos-tabs-scroll:hover{
  background:#233d59!important;
  color:#fff!important;
}

body.jpos-shell-body .jpos-tabs{
  background:var(--jpos-tab-dark)!important;
}

/* Tab yang sudah dibuka tapi bukan aktif */
body.jpos-shell-body .jpos-tab{
  background:var(--jpos-tab-inactive)!important;
  color:#aebed0!important;
  border-right:1px solid rgba(255,255,255,.065)!important;
  border-bottom:0!important;
  font-weight:500;
}

body.jpos-shell-body .jpos-tab .icon{
  color:#8da4bb!important;
}

body.jpos-shell-body .jpos-tab:hover{
  background:var(--jpos-tab-hover)!important;
  color:#fff!important;
}

body.jpos-shell-body .jpos-tab:hover .icon{
  color:#fff!important;
}

/* TAB AKTIF:
   dibuat jauh paling jelas, bukan hanya underline tipis. */
body.jpos-shell-body .jpos-tab.active{
  background:
    linear-gradient(
      135deg,
      var(--jpos-tab-active),
      #168994
    )!important;
  color:#fff!important;
  font-weight:700!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(29,193,197,.18)!important;
}

body.jpos-shell-body .jpos-tab.active .icon{
  color:#fff!important;
}

body.jpos-shell-body .jpos-tab.active:after{
  height:3px!important;
  background:#86f3ef!important;
  box-shadow:0 -1px 7px rgba(86,224,222,.28)!important;
}

body.jpos-shell-body .jpos-tab-close{
  color:#8196ad!important;
}

body.jpos-shell-body .jpos-tab:hover .jpos-tab-close{
  color:#d5e1ed!important;
}

body.jpos-shell-body .jpos-tab.active .jpos-tab-close{
  color:rgba(255,255,255,.82)!important;
}

body.jpos-shell-body .jpos-tab-close:hover{
  background:rgba(255,255,255,.14)!important;
  color:#fff!important;
}

/* Supaya area konten tetap terang dan fokus kerja nyaman. */
body.jpos-shell-body .jpos-workspace{
  background:#f3f6fa!important;
}

/* ================================================================
   COLLAPSED DARK SIDEBAR
   ================================================================ */

@media (min-width:992px){

  body.jpos-shell-body.collapsed-menu .jpos-menu .br-menu-link{
    background:transparent!important;
  }

  body.jpos-shell-body.collapsed-menu
  .jpos-menu .br-menu-link.js-menu-tab.active{
    background:
      linear-gradient(
        135deg,
        var(--jpos-accent),
        #158b98
      )!important;
  }

  body.jpos-shell-body.collapsed-menu
  .jpos-menu-toggle.active-path{
    background:rgba(32,174,181,.13)!important;
  }

  body.jpos-shell-body.collapsed-menu
  .jpos-menu-toggle.active-path:after{
    background:#55e1de!important;
    box-shadow:0 0 0 3px var(--jpos-dark-950)!important;
  }
}

/* ================================================================
   MOBILE
   Sidebar tetap dark drawer + tabs dark horizontal
   ================================================================ */

@media (max-width:991px){

  body.jpos-shell-body .jpos-sidebar{
    background:
      linear-gradient(
        180deg,
        var(--jpos-dark-950),
        #172a40
      )!important;
  }

  body.jpos-shell-body .jpos-tabs-shell,
  body.jpos-shell-body .jpos-tabs,
  body.jpos-shell-body .jpos-tabs-nav{
    background:var(--jpos-tab-dark)!important;
  }

  body.jpos-shell-body .jpos-tab{
    min-width:118px;
  }

  body.jpos-shell-body .jpos-tab.active{
    box-shadow:
      inset 0 -3px 0 #7cf0ec!important;
  }
}


/* =====================================================================
   JPOS STEP 6 · TRANSACTION WORKSPACE v0.6.0
   Modern + familiar + mobile-first.
   ===================================================================== */

:root{
  --tx6-navy:#1b314c;
  --tx6-teal:#1fa7ad;
  --tx6-teal-dark:#168b94;
  --tx6-soft:#f4f7fb;
  --tx6-line:#dbe4ee;
  --tx6-text:#172033;
  --tx6-muted:#718096;
  --tx6-danger:#d84c4c;
  --tx6-warning:#d69228;
}

/* ----- Flow + shortcut ribbon ----- */
.tx6-pagehead{
  margin-bottom:12px;
}
.tx6-create-actions .btn{
  gap:8px;
}
.tx6-key{
  padding:2px 6px;
  border-radius:6px;
  background:rgba(24,49,76,.07);
  font-size:.72rem;
  font-weight:800;
}
.btn-primary .tx6-key{
  background:rgba(255,255,255,.15);
}

.tx6-flow-strip{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 10px;
  padding:10px 12px;
  border:1px solid var(--tx6-line);
  border-radius:13px;
  background:#fff;
}
.tx6-flow-strip > .icon{
  color:#a5b3c3;
}
.tx6-flow-step{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.tx6-flow-step strong,
.tx6-flow-step small{
  display:block;
}
.tx6-flow-step small{
  color:var(--tx6-muted);
  font-size:.76rem;
}
.tx6-flow-no{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex:0 0 28px;
  border-radius:50%;
  background:#eef3f8;
  color:#627489;
  font-weight:800;
}
.tx6-flow-step.active .tx6-flow-no{
  color:#fff;
  background:var(--tx6-teal);
}

.tx6-shortcuts{
  display:flex;
  gap:7px;
  margin-bottom:12px;
  overflow-x:auto;
  padding:0 0 3px;
  scrollbar-width:thin;
}
.tx6-shortcut{
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  height:34px;
  padding:0 9px;
  border:1px solid #dce5ee;
  border-radius:9px;
  background:#fff;
  color:#536579;
  font:inherit;
  font-size:.78rem;
  cursor:pointer;
}
.tx6-shortcut:hover{
  border-color:#b8cadb;
  color:#203a58;
}
.tx6-shortcut kbd{
  min-width:26px;
  padding:2px 5px;
  border:0;
  border-radius:5px;
  background:#eaf0f6;
  color:#27415e;
  font-family:inherit;
  font-size:.72rem;
  font-weight:800;
  box-shadow:none;
}
.tx6-shortcut.muted{
  opacity:.65;
}

/* ----- Transaction list ----- */
.tx6-list-card{
  overflow:hidden;
}
.tx6-list-card .jpos-filterbar{
  border-bottom:1px solid #e5ebf2;
}
.tx6-transaction-table tbody tr{
  cursor:pointer;
}
.tx6-transaction-table tbody tr:hover{
  background:#f8fbfd;
}

/* ----- Detail top ----- */
.tx6-detail-header-title{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.tx6-detail-header-title h1{
  margin:0;
}
.tx6-header-actions{
  display:flex;
  gap:7px;
  align-items:center;
  flex-wrap:wrap;
}
.tx6-status-pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
}

.tx6-context-note{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:12px;
  padding:10px 12px;
  border:1px solid #cfe6e5;
  border-radius:12px;
  background:#f0fbfa;
  color:#35666a;
}
.tx6-context-note i{
  margin-top:2px;
  color:var(--tx6-teal);
}

.tx6-info-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-bottom:12px;
}
.tx6-info-card{
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--tx6-line);
  border-radius:12px;
  background:#fff;
}
.tx6-info-card span{
  display:block;
  margin-bottom:3px;
  color:#7b8b9e;
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.tx6-info-card strong{
  display:block;
  color:#203148;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tx6-info-card small{
  display:block;
  margin-top:3px;
  color:#8090a3;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.tx6-detail-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:13px;
  align-items:start;
}
.tx6-detail-main,
.tx6-detail-side{
  min-width:0;
}
.tx6-detail-side{
  position:sticky;
  top:12px;
}

.tx6-card-head-actions{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

/* ----- Item rows ----- */
.tx6-items{
  display:flex;
  flex-direction:column;
}
.tx6-item{
  display:grid;
  grid-template-columns:minmax(180px,1fr) 78px 120px 115px 125px auto;
  gap:8px;
  align-items:center;
  min-height:60px;
  padding:9px 12px;
  border-top:1px solid #edf1f5;
}
.tx6-item:first-child{
  border-top:0;
}
.tx6-item:hover{
  background:#fafcfe;
}
.tx6-item-main{
  min-width:0;
}
.tx6-item-main strong{
  display:block;
  overflow:hidden;
  color:#22334a;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tx6-item-main small{
  display:block;
  margin-top:3px;
  color:#8392a4;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tx6-item-field{
  text-align:right;
}
.tx6-item-field span{
  display:block;
  color:#9aa6b4;
  font-size:.67rem;
  font-weight:700;
  text-transform:uppercase;
}
.tx6-item-field strong{
  display:block;
  margin-top:2px;
  color:#283a51;
}
.tx6-item-actions{
  display:flex;
  justify-content:flex-end;
  gap:5px;
}
.tx6-icon-btn{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid #dbe4ed;
  border-radius:9px;
  background:#fff;
  color:#50647a;
  cursor:pointer;
}
.tx6-icon-btn:hover{
  border-color:#b8c9d9;
  background:#f4f8fb;
}
.tx6-icon-btn.danger{
  color:#b54a4a;
}
.tx6-empty-items{
  padding:32px 18px;
  text-align:center;
  color:#8190a1;
}
.tx6-empty-items i{
  display:block;
  margin-bottom:7px;
  font-size:28px;
  color:#b1bfcc;
}

/* ----- Summary ----- */
.tx6-summary-total{
  padding:14px;
  border-radius:12px;
  background:linear-gradient(135deg,#1b314c,#244563);
  color:#fff;
}
.tx6-summary-total span{
  display:block;
  color:#a9bed0;
  font-size:.76rem;
}
.tx6-summary-total strong{
  display:block;
  margin-top:3px;
  font-size:1.65rem;
  line-height:1.1;
}
.tx6-summary-lines{
  padding:7px 0;
}
.tx6-summary-line{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:7px 0;
  border-bottom:1px dashed #e5ebf0;
}
.tx6-summary-line:last-child{
  border-bottom:0;
}
.tx6-summary-line span{
  color:#6f8092;
}
.tx6-summary-line strong{
  color:#25384e;
  text-align:right;
}
.tx6-summary-line.grand{
  margin-top:2px;
  padding-top:10px;
  font-size:1.02rem;
}
.tx6-final-button{
  width:100%;
  min-height:46px;
  margin-top:8px;
}
.tx6-step7-box{
  margin-top:9px;
  padding:9px 10px;
  border:1px dashed #ccd8e4;
  border-radius:10px;
  background:#f8fafc;
  color:#7a899a;
  font-size:.78rem;
}

/* ----- Custom global modal ----- */
.jpos-modal-root{
  position:fixed;
  inset:0;
  z-index:3000;
  display:none;
}
.jpos-modal-root.show{
  display:block;
}
.jpos-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(9,20,34,.52);
  backdrop-filter:blur(2px);
}
.jpos-modal-window{
  position:absolute;
  top:50%;
  left:50%;
  width:min(900px,calc(100vw - 28px));
  max-height:min(86vh,820px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transform:translate(-50%,-50%);
  border:1px solid rgba(255,255,255,.2);
  border-radius:17px;
  background:#fff;
  box-shadow:0 24px 70px rgba(8,22,39,.28);
}
.jpos-modal-window.sm{width:min(520px,calc(100vw - 28px))}
.jpos-modal-window.lg{width:min(1080px,calc(100vw - 28px))}
.jpos-modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:15px 16px 13px;
  border-bottom:1px solid #e3e9f0;
}
.jpos-modal-header h3{
  margin:0;
  color:#1e3047;
  font-size:1.12rem;
}
.jpos-modal-header p{
  margin:3px 0 0;
  color:#76879a;
  font-size:.81rem;
}
.jpos-modal-close{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  flex:0 0 36px;
  border:1px solid #dce4ed;
  border-radius:10px;
  background:#fff;
  color:#53677d;
  cursor:pointer;
}
.jpos-modal-body{
  min-height:0;
  flex:1 1 auto;
  overflow:auto;
  padding:14px 16px;
}
.jpos-modal-footer{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:11px 16px;
  border-top:1px solid #e3e9f0;
  background:#fafbfd;
}
.jpos-modal-searchbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  margin-bottom:12px;
}
.jpos-modal-searchbar.triple{
  grid-template-columns:minmax(0,1fr) 190px auto;
}
.jpos-modal-search{
  position:relative;
}
.jpos-modal-search > i{
  position:absolute;
  top:50%;
  left:12px;
  color:#95a4b4;
  transform:translateY(-50%);
}
.jpos-modal-search .form-control{
  padding-left:34px;
}
.jpos-modal-split{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);
  gap:12px;
  min-height:410px;
}
.jpos-modal-panel{
  min-width:0;
  border:1px solid #e2e8ef;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
.jpos-modal-panel-head{
  padding:10px 12px;
  border-bottom:1px solid #e6ebf1;
  background:#f8fafc;
}
.jpos-modal-panel-head strong{
  color:#31465f;
}
.jpos-modal-list{
  max-height:470px;
  overflow:auto;
}
.jpos-search-result{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:11px 12px;
  border:0;
  border-bottom:1px solid #edf1f5;
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.jpos-search-result:hover,
.jpos-search-result.active{
  background:#f0f8f8;
}
.jpos-search-result.active{
  box-shadow:inset 3px 0 0 var(--tx6-teal);
}
.jpos-search-result strong{
  display:block;
  color:#293c53;
}
.jpos-search-result small{
  display:block;
  margin-top:3px;
  color:#8191a3;
}
.jpos-search-result .price{
  flex:0 0 auto;
  color:#213b59;
  font-weight:800;
}
.jpos-modal-detail{
  padding:12px;
}
.jpos-modal-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.jpos-modal-detail-item{
  padding:9px 10px;
  border:1px solid #e5eaf0;
  border-radius:9px;
}
.jpos-modal-detail-item span{
  display:block;
  color:#8b98a7;
  font-size:.69rem;
  font-weight:700;
  text-transform:uppercase;
}
.jpos-modal-detail-item strong{
  display:block;
  margin-top:2px;
  color:#2b3f56;
}
.jpos-modal-detail-item.full{
  grid-column:1/-1;
}
.jpos-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.jpos-form-group{
  min-width:0;
}
.jpos-form-group.full{
  grid-column:1/-1;
}
.jpos-form-group label{
  display:block;
  margin-bottom:5px;
  color:#4d6177;
  font-size:.77rem;
  font-weight:700;
}
.jpos-form-group .form-control,
.jpos-form-group textarea{
  width:100%;
}
.jpos-form-group textarea{
  min-height:82px;
  resize:vertical;
}
.jpos-choice-chip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  padding:10px 11px;
  border:1px solid #bfe0df;
  border-radius:10px;
  background:#f0fbfa;
}
.jpos-choice-chip span{
  color:#3e686d;
}
.jpos-inline-tabs{
  display:flex;
  gap:5px;
  margin-bottom:11px;
  padding:4px;
  border-radius:10px;
  background:#edf2f7;
}
.jpos-inline-tab{
  flex:1;
  min-height:36px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#617285;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.jpos-inline-tab.active{
  background:#fff;
  color:#1b5260;
  box-shadow:0 2px 7px rgba(21,42,64,.08);
}
.tx6-package-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:9px;
  align-items:center;
  padding:10px 12px;
  border-bottom:1px solid #edf1f5;
}
.tx6-package-row:hover{
  background:#fafcfd;
}
.tx6-package-row .meta{
  min-width:0;
}
.tx6-package-row .meta strong,
.tx6-package-row .meta small{
  display:block;
}
.tx6-package-row .meta strong{
  overflow:hidden;
  color:#263a52;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tx6-package-row .meta small{
  margin-top:3px;
  color:#7d8d9f;
}
.tx6-package-row .amount{
  color:#253f5b;
  font-weight:800;
}
.tx6-modal-empty{
  padding:28px 16px;
  text-align:center;
  color:#8392a3;
}

/* mobile sticky action */
.tx6-mobile-actionbar{
  display:none;
}

/* ------------------------------------------------------------------ */
@media(max-width:991px){
  .tx6-info-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tx6-detail-layout{
    grid-template-columns:1fr;
  }
  .tx6-detail-side{
    position:static;
  }
  .tx6-item{
    grid-template-columns:minmax(140px,1fr) 64px 105px 105px auto;
  }
  .tx6-item-field.discount{
    display:none;
  }
  .jpos-modal-split{
    grid-template-columns:1fr;
  }
}

/* ------------------------------------------------------------------ */
@media(max-width:767px){
  .tx6-page{
    padding-bottom:76px;
  }
  .tx6-pagehead{
    gap:10px;
  }
  .tx6-create-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
  .tx6-create-actions .btn{
    width:100%;
    min-height:47px;
    justify-content:center;
  }

  .tx6-flow-strip{
    gap:6px;
    overflow-x:auto;
    padding:9px;
  }
  .tx6-flow-step{
    min-width:122px;
  }
  .tx6-flow-strip > .icon{
    flex:0 0 auto;
  }

  /* HP: shortcut berubah menjadi quick-action ribbon, tetap bisa tap. */
  .tx6-shortcuts{
    margin-left:-2px;
    margin-right:-2px;
  }
  .tx6-shortcut{
    height:40px;
    padding:0 10px;
    font-size:.83rem;
  }
  .tx6-shortcut kbd{
    display:none;
  }

  .tx6-filterbar{
    display:grid!important;
    grid-template-columns:1fr 1fr;
  }
  .tx6-filterbar .jpos-search{
    grid-column:1/-1;
  }
  .tx6-filterbar .js-tx-status{
    grid-column:1/-1;
  }
  .tx6-filterbar .jpos-date-filter{
    width:100%!important;
    max-width:none!important;
  }
  .tx6-filterbar .js-tx-refresh{
    grid-column:1/-1;
    width:100%;
  }

  /* Daftar transaksi menjadi kartu agar tidak perlu horizontal scroll. */
  .tx6-transaction-table thead{
    display:none;
  }
  .tx6-transaction-table,
  .tx6-transaction-table tbody,
  .tx6-transaction-table tr,
  .tx6-transaction-table td{
    display:block;
    width:100%;
  }
  .tx6-transaction-table tbody{
    padding:7px;
  }
  .tx6-transaction-table tr{
    margin:7px 0;
    overflow:hidden;
    border:1px solid #e0e7ef;
    border-radius:11px;
    background:#fff;
  }
  .tx6-transaction-table td{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:8px 10px!important;
    border:0!important;
    border-bottom:1px solid #eef2f5!important;
    text-align:right!important;
  }
  .tx6-transaction-table td:last-child{
    border-bottom:0!important;
  }
  .tx6-transaction-table td:before{
    content:attr(data-label);
    flex:0 0 88px;
    color:#8794a3;
    text-align:left;
    font-size:.72rem;
    font-weight:700;
    text-transform:uppercase;
  }

  .tx6-info-grid{
    grid-template-columns:1fr 1fr;
  }
  .tx6-info-card{
    padding:10px;
  }
  .tx6-info-card strong{
    font-size:.93rem;
  }

  .tx6-card-head-actions{
    width:100%;
  }
  .tx6-card-head-actions .btn{
    flex:1;
    min-height:44px;
  }

  .tx6-item{
    display:grid;
    grid-template-columns:1fr auto;
    gap:7px 10px;
    padding:12px;
  }
  .tx6-item-main{
    grid-column:1/-1;
    padding-bottom:6px;
    border-bottom:1px solid #eef2f5;
  }
  .tx6-item-field{
    text-align:left;
  }
  .tx6-item-field.discount{
    display:block;
  }
  .tx6-item-field.total{
    text-align:right;
  }
  .tx6-item-actions{
    grid-column:1/-1;
    justify-content:flex-end;
    padding-top:3px;
  }
  .tx6-item-actions .tx6-icon-btn{
    width:42px;
    height:42px;
  }

  .tx6-detail-side{
    margin-bottom:10px;
  }

  .tx6-mobile-actionbar{
    position:fixed;
    right:0;
    bottom:0;
    left:0;
    z-index:1050;
    display:flex;
    align-items:center;
    gap:9px;
    padding:9px 12px calc(9px + env(safe-area-inset-bottom));
    border-top:1px solid #dce5ed;
    background:rgba(255,255,255,.96);
    box-shadow:0 -8px 25px rgba(18,39,62,.09);
    backdrop-filter:blur(8px);
  }
  .tx6-mobile-total{
    min-width:0;
    flex:1;
  }
  .tx6-mobile-total span{
    display:block;
    color:#8391a0;
    font-size:.7rem;
  }
  .tx6-mobile-total strong{
    display:block;
    overflow:hidden;
    color:#1f334c;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:1.06rem;
  }
  .tx6-mobile-actionbar .btn{
    min-height:46px;
  }

  /* modal full-sheet feel on narrow screen */
  .jpos-modal-window,
  .jpos-modal-window.sm,
  .jpos-modal-window.lg{
    top:auto;
    right:0;
    bottom:0;
    left:0;
    width:100%;
    max-height:92dvh;
    transform:none;
    border-radius:18px 18px 0 0;
  }
  .jpos-modal-header{
    padding:14px;
  }
  .jpos-modal-body{
    padding:12px;
  }
  .jpos-modal-footer{
    position:sticky;
    bottom:0;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .jpos-modal-footer .btn{
    min-height:46px;
  }
  .jpos-modal-searchbar,
  .jpos-modal-searchbar.triple{
    grid-template-columns:1fr;
  }
  .jpos-modal-searchbar .btn{
    width:100%;
    min-height:44px;
  }
  .jpos-modal-split{
    min-height:0;
  }
  .jpos-modal-list{
    max-height:310px;
  }
  .jpos-modal-detail-grid,
  .jpos-form-grid{
    grid-template-columns:1fr;
  }
  .jpos-form-group.full,
  .jpos-modal-detail-item.full{
    grid-column:auto;
  }
  .tx6-package-row{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .tx6-package-row .btn{
    grid-column:1/-1;
    width:100%;
    min-height:42px;
  }
}

/* =========================================================
   STEP 9.3.3I — Void Payment, Refund & Total Cancellation
   ========================================================= */
.jpos-payment-status-badge.refund{background:#fff2df;color:#9a5b00}
.jpos-payment-detail-actions,.jpos-payment-history-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.jpos-payment-detail-actions{margin-top:14px;padding-top:14px;border-top:1px solid #e8eef3}
.jpos-payment-detail-actions .btn,.jpos-payment-history-actions .btn{min-height:34px}
.jpos-payment-history-card{margin-top:16px}
.jpos-payment-history-card .jpos-card-head p{margin:4px 0 0;color:#7a8a9b;font-size:.76rem}
.jpos-payment-flow-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:14px}
.jpos-payment-flow-guide>div{display:grid;gap:4px;padding:11px 12px;border:1px solid #dfe8ee;border-radius:10px;background:#f8fafc}
.jpos-payment-flow-guide b{font-size:.78rem;color:#25415c}
.jpos-payment-flow-guide span{font-size:.72rem;line-height:1.45;color:#6f8193}
.jpos-payment-history-table,.jpos-refund-history-table{min-width:950px}
.jpos-payment-history-table td,.jpos-refund-history-table td{vertical-align:top}
.jpos-payment-refund-heading{margin:18px 0 8px;padding-top:14px;border-top:1px solid #e4ebf1;color:#35516b;font-size:.82rem;font-weight:800}
.jpos-correction-form{display:grid;gap:8px}
.jpos-correction-form label{margin-top:4px;font-size:.76rem;font-weight:800;color:#4b6176}
.jpos-correction-form input,.jpos-correction-form select,.jpos-correction-form textarea{width:100%;box-sizing:border-box;min-height:42px;padding:9px 11px;border:1px solid #d6e0e8;border-radius:9px;background:#fff;color:#24384e;font:inherit}
.jpos-correction-form textarea{min-height:78px;resize:vertical}
.jpos-correction-form small{color:#7b8c9c;font-size:.7rem}
.jpos-correction-warning{display:grid;gap:4px;padding:11px 12px;border:1px solid #f1d39b;border-radius:10px;background:#fff8e9;color:#7b560d;line-height:1.45}
.jpos-correction-warning b{font-size:.8rem}.jpos-correction-warning span{font-size:.74rem}
.jpos-correction-actor{padding:8px 10px;border-radius:8px;background:#f1f6fa;color:#62778b;font-size:.74rem}
.jpos-correction-actor b{color:#28465f}
.jpos-confirm-check{display:flex!important;gap:8px;align-items:flex-start;margin-top:8px!important;padding:10px;border:1px solid #d8e4ec;border-radius:9px;background:#f7fafc;cursor:pointer}
.jpos-confirm-check input{width:17px!important;min-height:17px!important;margin-top:1px}.jpos-confirm-check span{font-size:.76rem;line-height:1.4;color:#36526a}
.jpos-cancellation-note{padding:11px 12px;margin-bottom:8px;border:1px solid #d8e4ec;border-radius:9px;background:#f5f9fc;color:#526c82;font-size:.78rem;line-height:1.5}
.swal2-radio label{display:flex!important;align-items:flex-start;gap:8px;text-align:left!important;line-height:1.35}
@media(max-width:767px){
  .jpos-payment-flow-guide{grid-template-columns:1fr}
  .jpos-payment-history-table,.jpos-refund-history-table{min-width:860px}
  .jpos-payment-history-actions .btn{min-height:40px;font-size:13px}
  .jpos-correction-form label{font-size:14px}.jpos-correction-form input,.jpos-correction-form select,.jpos-correction-form textarea{font-size:16px;min-height:46px}
  .jpos-correction-warning span,.jpos-correction-actor,.jpos-confirm-check span{font-size:14px}
}

@media(max-width:420px){
  .tx6-info-grid{
    grid-template-columns:1fr;
  }
}


/* =====================================================================
   STEP 6 UX TUNING v0.6.1
   ===================================================================== */
.tx6-legacy-layout{grid-template-columns:minmax(0,1fr) 310px;}
.tx6-legacy-card{overflow:visible;}
.tx6-legacy-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;}
.tx6-legacy-head .tx6-head-note{margin:0;color:#6f8298;font-size:.78rem;font-weight:700;text-align:right;}
.tx6-legacy-body{padding:12px 14px;}
.tx6-customer-grid{display:grid;grid-template-columns:minmax(0,1fr) 170px 150px;gap:10px;align-items:end;}
.tx6-item-toolbar{display:grid;grid-template-columns:180px minmax(0,1fr) 250px;gap:10px;align-items:end;}
.tx6-field-block{min-width:0;position:relative;}
.tx6-field-block label{display:block;margin-bottom:6px;color:#4e6279;font-size:.73rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;}
.tx6-legacy-input{min-height:38px;border-color:#cfd9e4;background:#fff;}
.tx6-inline-hint{display:block;margin-top:5px;color:#7c8ca0;font-size:.74rem;}
.tx6-inline-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.tx6-inline-actions .btn,.tx6-customer-booking-btn .btn{min-height:38px;}
.tx6-summary-card .jpos-card-body{padding:14px;}
.tx6-table-card-body{padding:0 0 14px;}
.tx6-legacy-table-wrap{padding:0 12px;}
.tx6-legacy-table thead th{white-space:nowrap;}
.tx6-legacy-table tbody td{vertical-align:middle;}
.tx6-table-input{min-width:0;min-height:32px;padding:.32rem .5rem;border-color:#cfd9e4;}
.tx6-name-input{min-width:220px;}
.tx6-item-name-cell strong{display:block;font-weight:800;color:#22364e;}
.tx6-source-badge{display:inline-flex;align-items:center;justify-content:center;min-width:64px;padding:4px 8px;border-radius:6px;background:#eaf3fb;color:#2b66a5;font-size:.72rem;font-weight:800;}
.tx6-qty-box{display:flex;align-items:center;gap:4px;min-width:110px;}
.tx6-qty-btn{width:28px;height:32px;display:grid;place-items:center;border:1px solid #cfd9e4;border-radius:6px;background:#fff;color:#2d4059;font-weight:800;cursor:pointer;}
.tx6-qty-btn:hover{background:#f3f7fb;}
.tx6-qty-input{text-align:center;max-width:56px;}
.tx6-total-cell{font-weight:800;color:#1e324c;white-space:nowrap;}
.tx6-footer-panels{display:flex;flex-wrap:wrap;gap:10px;margin:12px 12px 0;padding-top:10px;border-top:1px solid #e6edf4;}
.tx6-footer-chip{display:flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid #d8e2ec;border-radius:9px;background:#f8fbff;color:#587089;font-size:.79rem;}
.tx6-footer-chip i{color:#1d6e91;font-size:1rem;}
.tx6-footer-chip strong{color:#20364f;font-weight:800;}
.tx6-quick-results{position:absolute;top:100%;left:0;right:0;z-index:20;margin-top:5px;border:1px solid #d9e3ed;border-radius:10px;background:#fff;box-shadow:0 15px 35px rgba(15,32,52,.12);overflow:hidden;max-height:300px;overflow:auto;}
.tx6-quick-item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #edf2f6;background:#fff;text-align:left;cursor:pointer;}
.tx6-quick-item:hover{background:#f3fbfb;}
.tx6-quick-item:last-child{border-bottom:0;}
.tx6-quick-item-copy{min-width:0;}
.tx6-quick-item-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#243851;}
.tx6-quick-item-copy small{display:block;margin-top:3px;color:#7a8b9f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tx6-quick-item span{flex:0 0 auto;color:#1f3a58;font-weight:800;}
.tx6-quick-empty{padding:12px;color:#7b8b9e;font-size:.82rem;}

@media(max-width:1199px){
  .tx6-legacy-layout{grid-template-columns:1fr;}
}
@media(max-width:991px){
  .tx6-customer-grid{grid-template-columns:minmax(0,1fr) 180px;}
  .tx6-customer-booking-btn{grid-column:1/-1;}
  .tx6-item-toolbar{grid-template-columns:180px minmax(0,1fr);}
  .tx6-item-actions-block{grid-column:1/-1;}
}
@media(max-width:767px){
  .tx6-legacy-head{display:block;}
  .tx6-legacy-head .tx6-head-note{margin-top:4px;text-align:left;}
  .tx6-customer-grid,.tx6-item-toolbar,.tx6-inline-actions{grid-template-columns:1fr;}
  .tx6-legacy-table thead{display:none;}
  .tx6-legacy-table,.tx6-legacy-table tbody,.tx6-legacy-table tr,.tx6-legacy-table td{display:block;width:100%;}
  .tx6-legacy-table tbody{padding:8px;}
  .tx6-legacy-table tr{margin:8px 0;padding:8px;border:1px solid #dde6ee;border-radius:10px;background:#fff;}
  .tx6-legacy-table td{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0!important;border:0!important;border-bottom:1px dashed #ebf0f4!important;text-align:right!important;}
  .tx6-legacy-table td:last-child{border-bottom:0!important;}
  .tx6-legacy-table td::before{content:attr(data-label);flex:0 0 98px;color:#8393a6;text-align:left;font-size:.71rem;font-weight:800;text-transform:uppercase;}
  .tx6-legacy-table td:nth-child(1)::before{content:'No';}
  .tx6-legacy-table td:nth-child(2)::before{content:'Nama Item';}
  .tx6-legacy-table td:nth-child(3)::before{content:'Sumber';}
  .tx6-legacy-table td:nth-child(4)::before{content:'Qty';}
  .tx6-legacy-table td:nth-child(5)::before{content:'Harga';}
  .tx6-legacy-table td:nth-child(6)::before{content:'Potongan';}
  .tx6-legacy-table td:nth-child(7)::before{content:'Total';}
  .tx6-legacy-table td:nth-child(8)::before{content:'Aksi';}
  .tx6-name-input{min-width:0;width:100%;}
  .tx6-qty-box{justify-content:flex-end;}
  .tx6-footer-chip{width:100%;}
}


/* =====================================================================
   STEP 6 UX TUNING v0.6.2
   Keyboard-first search + compact editable item table
   ===================================================================== */

.tx6-legacy-table{table-layout:fixed;width:100%;}
.tx6-legacy-table .tx6-col-no{width:3%;}
.tx6-legacy-table .tx6-col-item{width:45%;}
.tx6-legacy-table .tx6-col-source{width:7%;}
.tx6-legacy-table .tx6-col-qty{width:8%;}
.tx6-legacy-table .tx6-col-price{width:11%;}
.tx6-legacy-table .tx6-col-discount{width:10%;}
.tx6-legacy-table .tx6-col-total{width:11%;}
.tx6-legacy-table .tx6-col-action{width:5%;}

.tx6-legacy-table thead th{
  padding:7px 8px!important;
  font-size:.72rem;
  line-height:1.15;
}
.tx6-legacy-table tbody td{
  padding:4px 8px!important;
  line-height:1.15;
}
.tx6-legacy-table tbody tr{
  height:40px;
}
.tx6-table-input{
  min-height:30px!important;
  height:30px!important;
  padding:3px 7px!important;
  line-height:1.05!important;
  font-size:.82rem!important;
}
.tx6-name-input{width:100%;min-width:0!important;}
.tx6-item-name-cell strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.84rem;
}
.tx6-qty-input{
  width:82px!important;
  max-width:82px!important;
  min-width:82px!important;
  text-align:center!important;
  font-variant-numeric:tabular-nums;
  -moz-appearance:textfield;
}
.tx6-qty-input::-webkit-inner-spin-button,
.tx6-qty-input::-webkit-outer-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.tx6-money-input{
  width:100%;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.tx6-total-cell{
  font-size:.84rem;
  font-variant-numeric:tabular-nums;
}
.tx6-source-badge{
  min-width:0!important;
  padding:3px 6px!important;
  font-size:.66rem!important;
}
.tx6-delete-icon{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  margin:auto;
  padding:0;
  border:1px solid #f0c7c7;
  border-radius:6px;
  background:#fff7f7;
  color:#d84b4b;
  cursor:pointer;
}
.tx6-delete-icon:hover{
  background:#ffeaea;
  border-color:#eaa6a6;
  color:#c83232;
}
.tx6-delete-icon .icon{font-size:.82rem;}

/* no +/- qty controls; native spinner is also removed */
.tx6-qty-box,.tx6-qty-btn{display:none!important;}

.tx6-search-choice.active,
.jpos-search-result.active,
.tx6-quick-item.active,
.tx6-package-row.active{
  background:#e7f8f8!important;
  box-shadow:inset 3px 0 0 #20aeb5!important;
  outline:none!important;
}
.tx6-search-choice.active strong,
.tx6-quick-item.active strong,
.tx6-package-row.active strong{
  color:#0d5960!important;
}

.tx6-package-row{
  width:100%;
  border:0;
  border-bottom:1px solid #edf1f5;
  border-radius:0;
  background:#fff;
  text-align:left;
  cursor:pointer;
  font:inherit;
}
.tx6-package-row .tx6-enter-hint{
  flex:0 0 auto;
  color:#8a9aac;
  font-size:.7rem;
  font-weight:700;
  white-space:nowrap;
}
.tx6-package-row:hover{background:#f5fbfb;}

.tx6-customer-main .tx6-quick-results{z-index:30;}

@media(max-width:767px){
  .tx6-legacy-table{table-layout:auto;}
  .tx6-legacy-table colgroup{display:none;}
  .tx6-legacy-table tbody tr{height:auto;}
  .tx6-qty-input{width:92px!important;max-width:92px!important;min-width:92px!important;}
  .tx6-delete-icon{width:38px;height:38px;margin-left:auto;}
}


/* =====================================================================
   STEP 6 UX v0.6.3 · MASTER CARD + KEYBOARD FLOW
   ===================================================================== */
.tx6-master-input-card{
  overflow:visible;
  margin-bottom:10px;
}
.tx6-master-input-body{
  padding:12px 14px 13px;
  overflow:visible;
}
.tx6-master-divider{
  height:1px;
  margin:11px -14px 10px;
  background:#e5ebf2;
}

/* Customer, WA dan tombol booking punya baseline field yang sama. */
.tx6-master-input-card .tx6-customer-grid{
  grid-template-columns:minmax(360px,1fr) 190px 190px;
  gap:10px;
  align-items:start;
}
.tx6-master-input-card .tx6-field-block label{
  min-height:15px;
  margin-bottom:6px;
  line-height:15px;
}
.tx6-master-input-card .tx6-legacy-input,
.tx6-master-input-card .tx6-customer-booking-btn .btn{
  height:40px;
  min-height:40px;
}
.tx6-master-input-card .tx6-customer-booking-btn .btn{
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:0;
  padding-bottom:0;
  white-space:nowrap;
}
.tx6-master-input-card .tx6-inline-hint{
  min-height:14px;
  margin-top:4px;
  line-height:14px;
}

/* Item row tetap satu garis dengan customer master card. */
.tx6-master-input-card .tx6-item-toolbar{
  grid-template-columns:180px minmax(0,1fr) 250px;
  gap:10px;
  align-items:start;
}
.tx6-master-input-card .tx6-inline-actions{
  height:40px;
}
.tx6-master-input-card .tx6-inline-actions .btn{
  height:40px;
  min-height:40px;
}

/* Fokus keyboard dibuat jelas tapi tidak berlebihan. */
.tx6-legacy-table .js-inline-item-qty:focus,
.tx6-legacy-table .js-inline-item-price:focus,
.tx6-legacy-table .js-inline-item-discount:focus{
  border-color:#1fa7ad!important;
  box-shadow:0 0 0 2px rgba(31,167,173,.12)!important;
  background:#fbffff!important;
}

@media(max-width:1199px){
  .tx6-master-input-card .tx6-customer-grid{
    grid-template-columns:minmax(0,1fr) 190px 180px;
  }
  .tx6-master-input-card .tx6-item-toolbar{
    grid-template-columns:170px minmax(0,1fr) 230px;
  }
}

@media(max-width:991px){
  .tx6-master-input-card .tx6-customer-grid{
    grid-template-columns:minmax(0,1fr) 190px;
  }
  .tx6-master-input-card .tx6-customer-booking-btn{
    grid-column:1/-1;
  }
  .tx6-master-input-card .tx6-customer-booking-btn .btn{
    width:100%;
  }
  .tx6-master-input-card .tx6-item-toolbar{
    grid-template-columns:170px minmax(0,1fr);
  }
  .tx6-master-input-card .tx6-item-actions-block{
    grid-column:1/-1;
  }
}

@media(max-width:767px){
  .tx6-master-input-body{
    padding:11px;
  }
  .tx6-master-divider{
    margin:10px -11px;
  }
  .tx6-master-input-card .tx6-customer-grid,
  .tx6-master-input-card .tx6-item-toolbar{
    grid-template-columns:1fr;
  }
  .tx6-master-input-card .tx6-customer-booking-btn,
  .tx6-master-input-card .tx6-item-actions-block{
    grid-column:auto;
  }
}


/* STEP 6 v0.6.4 — Harga Dasar READ ONLY */
.tx6-price-readonly,
.tx6-price-readonly[readonly]{
  background:#f5f8fb!important;
  color:#20364f!important;
  border-color:#d7e0e9!important;
  font-weight:800!important;
  cursor:default!important;
  box-shadow:none!important;
  user-select:text;
}
.tx6-price-readonly:focus{
  border-color:#d7e0e9!important;
  box-shadow:none!important;
  outline:none!important;
}


/* STEP 6.6 — Booking Customer Lock */
.tx6-booking-customer-locked[readonly]{
  background:#f2f6fa!important;
  border-color:#d4dee8!important;
  color:#30455e!important;
  cursor:not-allowed;
  box-shadow:inset 3px 0 0 #26aeb3;
}
.tx6-inline-hint.locked{
  color:#23737a!important;
  font-weight:700;
}


/* =====================================================================
   STEP 7 · PAYMENT ENGINE + MODAL UX v0.7.0
   ===================================================================== */
.tx7-payment-modal{width:min(590px,calc(100vw - 28px))!important;}
.tx7-payment-shell{display:flex;flex-direction:column;gap:13px;}
.tx7-final-success{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #bde4d9;border-radius:11px;background:#effbf7;color:#256755;}
.tx7-final-success>i{width:32px;height:32px;display:grid;place-items:center;flex:0 0 32px;border-radius:50%;background:#25a77e;color:#fff;}
.tx7-final-success strong,.tx7-final-success small{display:block}.tx7-final-success small{margin-top:2px;color:#5e8076;font-size:.76rem;}
.tx7-balance-hero{padding:15px;border-radius:14px;background:linear-gradient(135deg,#183451,#285575);color:#fff;box-shadow:0 10px 26px rgba(17,47,75,.12);}
.tx7-balance-hero>div:first-child span{display:block;color:#aac1d2;font-size:.75rem;text-transform:uppercase;font-weight:700;letter-spacing:.04em;}
.tx7-balance-hero>div:first-child strong{display:block;margin-top:3px;font-size:1.75rem;line-height:1.08;}
.tx7-balance-meta{display:flex;justify-content:space-between;gap:12px;margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.12);color:#c7d7e3;font-size:.78rem;}
.tx7-section-label{color:#536980;font-size:.73rem;font-weight:800;text-transform:uppercase;letter-spacing:.055em;}
.tx7-method-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.tx7-method{min-width:0;min-height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid #d9e3ec;border-radius:12px;background:#fff;color:#41566d;cursor:pointer;transition:.15s ease;font:inherit;}
.tx7-method:hover{border-color:#9fc7cf;background:#f6fbfb}.tx7-method.active{border-color:#1aa6ad;background:#edfafa;color:#125d65;box-shadow:inset 0 0 0 1px #1aa6ad;}
.tx7-method-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#edf2f7;color:#395a79;font-size:1.1rem}.tx7-method.active .tx7-method-icon{background:#1aa6ad;color:#fff;}
.tx7-method strong{font-size:.86rem}.tx7-method small{color:#8292a3;font-size:.68rem}.tx7-method.active small{color:#4f8388;}
.tx7-amount-card{padding:12px;border:1px solid #dce5ed;border-radius:12px;background:#fbfcfe;}
.tx7-amount-card>label,.tx7-method-detail label{display:block;margin-bottom:6px;color:#52667d;font-size:.76rem;font-weight:800;}
.tx7-money-input{display:flex;align-items:center;overflow:hidden;border:1px solid #cfdbe6;border-radius:10px;background:#fff;transition:border .15s,box-shadow .15s;}
.tx7-money-input:focus-within{border-color:#1aa6ad;box-shadow:0 0 0 3px rgba(26,166,173,.10);}
.tx7-money-input>span{padding:0 0 0 12px;color:#728397;font-weight:800;}
.tx7-money-input>input{width:100%;min-width:0;height:45px;border:0!important;outline:0!important;padding:0 12px 0 6px;background:transparent!important;color:#20354e;font:inherit;font-size:1.08rem;font-weight:800;box-shadow:none!important;}
.tx7-quick-amounts{display:flex;gap:6px;margin-top:8px}.tx7-quick-amounts button{min-height:30px;padding:0 10px;border:1px solid #dae4ed;border-radius:8px;background:#fff;color:#50667d;font:inherit;font-size:.75rem;font-weight:700;cursor:pointer;}
.tx7-method-detail{min-height:48px}.tx7-info-strip{display:flex;align-items:flex-start;gap:8px;padding:10px 11px;border:1px solid #d7e8ec;border-radius:10px;background:#f3fafb;color:#506e76;font-size:.78rem;line-height:1.45}.tx7-info-strip i{margin-top:2px;color:#1aa6ad;}
.tx7-change-hint{display:block;margin-top:6px;color:#49756b}.tx7-change-hint.danger{color:#c34b4b;}
.tx7-calculation{padding:10px 12px;border:1px solid #e0e7ee;border-radius:12px;background:#fff;}
.tx7-calculation>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;color:#64778c}.tx7-calculation>div+div{border-top:1px dashed #e6ebf0}.tx7-calculation strong{color:#233950;text-align:right}.tx7-calculation .grand{padding:9px 0;font-size:.96rem}.tx7-calculation .grand strong{font-size:1.1rem;color:#173f5b;}
.tx7-history{overflow:hidden;border:1px solid #e0e7ee;border-radius:11px}.tx7-history>.tx7-section-label{padding:9px 11px;background:#f7f9fc}.tx7-history-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border-top:1px solid #edf1f5}.tx7-history-row strong,.tx7-history-row small{display:block}.tx7-history-row small{margin-top:2px;color:#8492a2;font-size:.7rem;}
.tx7-notes-grid{display:grid;grid-template-columns:1fr;gap:9px}.tx7-notes-grid label small{font-weight:500;color:#8997a5;}
.tx7-submit{min-width:205px}.tx7-submit:disabled{opacity:.55;cursor:not-allowed;}
.tx7-pay-button{background:linear-gradient(135deg,#1ba7ad,#168b94)!important;border-color:#168b94!important;}
.tx7-paid-state{display:flex;align-items:center;gap:10px;margin-top:8px;padding:11px;border:1px solid #bee8d7;border-radius:10px;background:#effbf6;color:#27715b}.tx7-paid-state>i{font-size:1.4rem;color:#22a477}.tx7-paid-state strong,.tx7-paid-state small{display:block}.tx7-paid-state small{margin-top:2px;color:#66897d;font-size:.75rem;}
.tx7-method-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#edf2f7;color:#41576e;font-size:.74rem;font-weight:800;text-transform:capitalize}.tx7-method-badge.qris{background:#e8f8f7;color:#167078}.tx7-method-badge.cash{background:#edf9f1;color:#287346}.tx7-method-badge.transfer{background:#eef3fb;color:#365f91;}
@media(max-width:767px){
  .tx7-payment-modal{width:100%!important}.tx7-method-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.tx7-method{min-height:78px;padding:6px 2px}.tx7-method strong{font-size:.82rem}.tx7-balance-hero>div:first-child strong{font-size:1.55rem}.jpos-modal-footer .tx7-submit{flex:1;min-width:0}.jpos-modal-footer .js-tx7-later{flex:0 0 auto}.tx7-mobile-payment-bar .btn{min-width:120px}.tx7-payment-ledger thead{display:none}
}


/* =====================================================================
   JPOS STEP 7.1 · SIMPLE PAYMENT UX
   Frontend simplification only. Payment backend canonical rules unchanged.
   ===================================================================== */
.tx7-simple-modal{width:min(540px,calc(100vw - 28px))!important;}
.tx7-simple-shell{gap:12px;}
.tx7-simple-balance{
  padding:16px 18px;
  min-height:94px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.tx7-simple-balance>span{
  display:block;
  color:#b7cad9;
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.tx7-simple-balance>strong{
  display:block;
  margin-top:4px;
  color:#fff;
  font-size:1.8rem;
  line-height:1.05;
}
.tx7-simple-methods .tx7-method{
  min-height:72px;
}
.tx7-simple-methods .tx7-method small{
  margin-top:0;
}
.tx7-simple-amount{
  padding:12px;
}
.tx7-simple-summary{
  overflow:hidden;
  border:1px solid #dde6ee;
  border-radius:12px;
  background:#fff;
}
.tx7-simple-row{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 13px;
  color:#66798d;
}
.tx7-simple-row+ .tx7-simple-row{
  border-top:1px solid #edf1f5;
}
.tx7-simple-row strong{
  color:#233950;
  text-align:right;
  white-space:nowrap;
}
.tx7-simple-outstanding-row{
  background:#f8fafc;
  font-size:.94rem;
  font-weight:700;
}
.tx7-simple-outstanding-row strong{
  font-size:1.05rem;
  color:#193b5a;
}
.tx7-qris-fee-row strong{
  color:#9a671f;
}
.tx7-qris-total-row{
  background:#f1fbfa;
}
.tx7-qris-total-row strong{
  color:#12636a;
  font-size:1rem;
}
.tx7-simple-modal + *{}

@media(max-width:767px){
  .tx7-simple-modal{width:100%!important;}
  .tx7-simple-balance{min-height:90px;padding:15px 16px;}
  .tx7-simple-balance>strong{font-size:1.65rem;}
  .tx7-simple-methods{gap:7px;}
  .tx7-simple-methods .tx7-method{min-height:76px;}
  .tx7-simple-amount{padding:11px;}
  .tx7-simple-row{min-height:50px;padding:11px 12px;}
  .jpos-modal-footer .js-tx7-later{flex:0 0 auto;}
  .jpos-modal-footer .tx7-submit{flex:1;min-width:0;}
}


/* =====================================================================
   JPOS v0.7.2 — RESPONSIVE TRANSACTION LIST + ITEM TABLE
   Desktop tetap table-first, mobile menjadi compact work cards.
   ===================================================================== */

/* ---------- Tabs: active transaction lebih terbaca ---------- */
body.jpos-shell-body .jpos-tab{
  transition:background .15s ease,color .15s ease,min-width .15s ease;
}
body.jpos-shell-body .jpos-tab.active .jpos-tab-title{
  font-weight:800;
}

/* ---------- Transaction list desktop ---------- */
.tx6-list-card{
  border-radius:14px;
}
.tx6-transaction-table{
  table-layout:fixed;
  width:100%;
}
.tx6-transaction-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  padding:9px 11px;
  background:#f8fafc;
  color:#6f8195;
  font-size:.7rem;
  font-weight:800;
}
.tx6-transaction-table tbody td{
  padding:10px 11px;
}
.tx6-transaction-table tbody tr{
  transition:background .12s ease,box-shadow .12s ease;
}
.tx6-transaction-table tbody tr:hover{
  background:#f5fbfb;
  box-shadow:inset 3px 0 0 var(--jpos-accent,#20aeb5);
}
.tx72-list-main{width:25%;}
.tx72-list-customer{width:20%;}
.tx72-list-store{width:13%;}
.tx72-list-date{width:13%;}
.tx72-list-total{width:11%;}
.tx72-list-outstanding{width:10%;}
.tx72-list-status{width:8%;}
.tx72-list-title-row{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.tx72-list-number{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tx72-source-chip{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  padding:3px 7px;
  border-radius:999px;
  background:#eef4f8;
  color:#61758b;
  font-size:.68rem;
  font-weight:700;
  white-space:nowrap;
}
.tx72-mobile-status,.tx72-mobile-date{display:none;}
.tx72-list-total,.tx72-list-outstanding{font-weight:800;}
.tx72-list-outstanding{color:#31506f;}

/* ---------- Item table desktop: compact POS density ---------- */
.tx6-legacy-list-head{
  min-height:44px;
  padding:10px 12px!important;
}
.tx6-legacy-list-head h3{font-size:.92rem!important;}
.tx6-legacy-list-head .tx6-head-note{font-size:.7rem!important;}
.tx6-legacy-table-wrap{padding:0 10px!important;}
.tx6-legacy-table thead th{
  padding:7px 8px!important;
  font-size:.67rem!important;
}
.tx6-legacy-table tbody td{
  height:43px!important;
  padding:5px 8px!important;
}
.tx6-legacy-table .tx6-col-item{width:46%;}
.tx6-legacy-table .tx6-col-no{width:3%;}
.tx6-legacy-table .tx6-col-source{width:7%;}
.tx6-legacy-table .tx6-col-qty{width:7%;}
.tx6-legacy-table .tx6-col-price{width:11%;}
.tx6-legacy-table .tx6-col-discount{width:10%;}
.tx6-legacy-table .tx6-col-total{width:11%;}
.tx6-legacy-table .tx6-col-action{width:5%;}
.tx6-item-name-cell strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.84rem;
}
.tx72-readonly-value{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  color:#253951;
  font-weight:700;
}
.tx72-money-value{justify-content:flex-end;width:100%;white-space:nowrap;}
.tx72-item-price .tx72-readonly-value{
  padding:0 7px;
  border-radius:7px;
  background:#f3f6f9;
  color:#344b63;
}
.tx6-table-input{
  min-height:31px!important;
  height:31px!important;
  padding:.25rem .45rem!important;
  font-size:.8rem!important;
}
.tx6-qty-input{width:64px!important;max-width:64px!important;margin:auto;text-align:center;}
.tx6-money-input{min-width:88px;}
.tx6-delete-icon{width:29px!important;height:29px!important;border-radius:7px!important;}
.tx6-source-badge{padding:3px 7px!important;font-size:.64rem!important;min-width:0!important;}

/* footer info tidak terasa seperti tiga form besar */
.tx72-footer-meta{
  align-items:center;
  gap:7px!important;
  margin-top:9px!important;
  padding-top:9px!important;
}
.tx72-footer-meta .tx6-footer-chip{
  min-height:32px;
  padding:6px 9px;
  font-size:.72rem;
  background:#f7fafc;
}
.tx72-footer-meta .tx6-footer-chip span{color:#73859a;}
.tx72-meta-customer span{margin-left:3px;}

@media(max-width:991px){
  /* Tab bar tetap horizontal, tapi tab aktif diberi ruang lebih. */
  body.jpos-shell-body .jpos-tab{
    min-width:116px!important;
    max-width:155px!important;
    padding:0 9px!important;
  }
  body.jpos-shell-body .jpos-tab.active{
    min-width:150px!important;
    max-width:220px!important;
  }
  body.jpos-shell-body .jpos-tab.active .jpos-tab-title{
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

@media(max-width:767px){
  /* ================================================================
     LIST TRANSAKSI MOBILE — compact card, bukan table vertikal panjang.
     ================================================================ */
  .tx6-list-card{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  .tx6-list-card .tx6-filterbar{
    margin-bottom:10px;
    padding:10px!important;
    border:1px solid #e0e7ef!important;
    border-radius:13px;
    background:#fff!important;
  }
  .tx6-filterbar{
    gap:7px!important;
    grid-template-columns:1fr 1fr!important;
  }
  .tx6-filterbar .jpos-search,
  .tx6-filterbar .js-tx-status{grid-column:1/-1!important;}
  .tx6-filterbar .form-control,
  .tx6-filterbar .btn{min-height:42px!important;height:42px!important;}
  .tx6-filterbar .js-tx-refresh{
    grid-column:1/-1!important;
    min-height:40px!important;
    height:40px!important;
  }

  .tx6-list-card>.jpos-table-wrap{overflow:visible!important;}
  .tx6-transaction-table tbody{padding:0!important;}
  .tx6-transaction-table .tx72-list-row{
    position:relative;
    display:grid!important;
    grid-template-columns:1fr 1fr;
    gap:0;
    margin:0 0 9px!important;
    padding:11px 12px 10px!important;
    border:1px solid #dfe7ef!important;
    border-radius:13px!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(24,46,70,.035);
  }
  .tx6-transaction-table .tx72-list-row:active{
    transform:scale(.995);
    background:#f8fcfc!important;
  }
  .tx6-transaction-table .tx72-list-row td{
    display:block!important;
    width:auto!important;
    padding:0!important;
    border:0!important;
    text-align:left!important;
  }
  .tx6-transaction-table .tx72-list-row td:before{display:none!important;content:none!important;}

  .tx72-list-main{
    grid-column:1/-1;
    padding-bottom:8px!important;
    margin-bottom:8px;
    border-bottom:1px solid #edf1f5!important;
  }
  .tx72-list-title-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"number status" "source status";
    gap:3px 8px;
  }
  .tx72-list-number{
    grid-area:number;
    font-size:.91rem;
    color:#203a59!important;
  }
  .tx72-source-chip{
    grid-area:source;
    justify-self:start;
    padding:2px 7px;
    font-size:.66rem;
  }
  .tx72-mobile-status{display:block;grid-area:status;align-self:center;}
  .tx72-list-status{display:none!important;}

  .tx72-list-customer{
    grid-column:1/-1;
    min-height:35px;
    padding-bottom:7px!important;
  }
  .tx72-list-customer:before{
    content:'Customer'!important;
    display:block!important;
    margin-bottom:2px;
    color:#8997a7;
    font-size:.65rem;
    font-weight:800;
    text-transform:uppercase;
  }
  .tx72-list-customer strong{font-size:.86rem;color:#24364d;}
  .tx72-list-customer .jpos-sub{display:inline;margin-left:5px;font-size:.72rem;}

  .tx72-list-store,.tx72-list-date{
    padding:6px 0 7px!important;
    border-top:1px dashed #edf1f4!important;
    color:#334a62;
    font-size:.77rem;
  }
  .tx72-list-date{text-align:right!important;}
  .tx72-list-store:before,.tx72-list-date:before{
    display:block!important;
    margin-bottom:2px;
    color:#929ead;
    font-size:.62rem;
    font-weight:800;
    text-transform:uppercase;
  }
  .tx72-list-store:before{content:'Store'!important;}
  .tx72-list-date:before{content:'Tanggal'!important;}
  .tx72-desktop-date{display:none;}
  .tx72-mobile-date{display:block;font-size:.72rem;}

  .tx72-list-total,.tx72-list-outstanding{
    margin-top:2px;
    padding:8px 0 1px!important;
    border-top:1px solid #e7edf3!important;
  }
  .tx72-list-total:before,.tx72-list-outstanding:before{
    display:block!important;
    margin-bottom:1px;
    color:#8a98a8;
    font-size:.62rem;
    font-weight:800;
    text-transform:uppercase;
  }
  .tx72-list-total:before{content:'Total'!important;}
  .tx72-list-outstanding:before{content:'Sisa'!important;}
  .tx72-list-total{font-size:.96rem;}
  .tx72-list-outstanding{text-align:right!important;font-size:.96rem;color:#1d5263;}

  /* ================================================================
     ITEM TRANSAKSI MOBILE — 1 item = compact card.
     ================================================================ */
  .tx6-legacy-card{border-radius:13px!important;}
  .tx6-legacy-list-head{
    min-height:0;
    padding:10px 12px!important;
  }
  .tx6-legacy-list-head .tx6-head-note{display:none!important;}
  .tx6-table-card-body{padding:0 0 10px!important;}
  .tx6-legacy-table-wrap{padding:0 9px!important;overflow:visible!important;}
  .tx6-legacy-table tbody{padding:0!important;}
  .tx6-legacy-table .tx72-item-row{
    position:relative;
    display:grid!important;
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:8px 8px;
    margin:8px 0!important;
    padding:11px!important;
    border:1px solid #dfe7ef!important;
    border-radius:12px!important;
    background:#fff!important;
    box-shadow:0 3px 10px rgba(20,43,68,.025);
  }
  .tx6-legacy-table .tx72-item-row td{
    display:block!important;
    width:auto!important;
    height:auto!important;
    padding:0!important;
    border:0!important;
    text-align:left!important;
  }
  .tx6-legacy-table .tx72-item-row td::before{
    display:block!important;
    margin-bottom:4px;
    color:#8b98a8;
    font-size:.61rem;
    line-height:1;
    font-weight:800;
    text-transform:uppercase;
  }
  .tx72-item-no{display:none!important;}
  .tx72-item-name{grid-column:1/10;grid-row:1;}
  .tx72-item-name::before{display:none!important;}
  .tx72-item-name .tx6-item-name-cell strong{
    display:block;
    white-space:normal;
    font-size:.88rem;
    line-height:1.3;
  }
  .tx72-item-source{grid-column:10/12;grid-row:1;align-self:start;text-align:right!important;}
  .tx72-item-source::before{display:none!important;}
  .tx72-item-action{grid-column:12/13;grid-row:1;align-self:start;text-align:right!important;}
  .tx72-item-action::before{display:none!important;}
  .tx72-item-action:empty{display:none!important;}
  .tx72-item-qty{grid-column:1/4;grid-row:2;}
  .tx72-item-price{grid-column:4/8;grid-row:2;}
  .tx72-item-discount{grid-column:8/13;grid-row:2;}
  .tx72-item-qty::before{content:'Qty'!important;}
  .tx72-item-price::before{content:'Harga'!important;}
  .tx72-item-discount::before{content:'Potongan'!important;}
  .tx72-item-total{
    grid-column:1/13;
    grid-row:3;
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    padding-top:8px!important;
    border-top:1px dashed #e5ebf1!important;
    text-align:right!important;
    font-size:.94rem;
    font-weight:800;
  }
  .tx72-item-total::before{
    content:'Total'!important;
    display:block!important;
    margin:0!important;
    color:#66798e!important;
    font-size:.68rem!important;
  }
  .tx72-item-row .tx6-table-input{
    width:100%!important;
    max-width:none!important;
    min-height:38px!important;
    height:38px!important;
    font-size:.84rem!important;
  }
  .tx72-item-row .tx6-qty-input{text-align:center!important;}
  .tx72-readonly-value{
    width:100%;
    min-height:38px;
    display:flex;
    align-items:center;
    padding:0 8px;
    border:1px solid #e0e7ee;
    border-radius:8px;
    background:#f6f8fa;
    font-size:.82rem;
  }
  .tx72-money-value{justify-content:flex-end;}
  .tx72-item-action .tx6-delete-icon{
    width:32px!important;
    height:32px!important;
  }

  /* Footer metadata compact: store/sumber 2 kolom, tanggal penuh. */
  .tx72-footer-meta{
    display:grid!important;
    grid-template-columns:1fr 1fr;
    gap:7px!important;
    margin:8px 9px 0!important;
  }
  .tx72-footer-meta .tx6-footer-chip{
    width:auto!important;
    min-width:0;
    margin:0!important;
    padding:7px 8px!important;
    line-height:1.2;
  }
  .tx72-meta-customer,.tx72-meta-date{grid-column:1/-1;}
  .tx72-meta-customer{display:flex!important;flex-wrap:wrap;}
  .tx72-meta-customer span{width:100%;margin:2px 0 0 22px!important;}

  /* Final transaction: summary tetap ada, tetapi konten utama tidak dipenuhi form terkunci. */
  .tx6-detail-page .tx6-context-note{
    padding:8px 10px;
    font-size:.75rem;
  }
}

@media(max-width:430px){
  body.jpos-shell-body .jpos-tab{min-width:108px!important;max-width:140px!important;}
  body.jpos-shell-body .jpos-tab.active{min-width:145px!important;max-width:190px!important;}
  .tx72-list-store,.tx72-list-date{font-size:.72rem;}
  .tx72-item-price{grid-column:4/9;}
  .tx72-item-discount{grid-column:9/13;}
}


/* =====================================================================
   STEP 7.2 TABLE MODE · build v0.7.3
   Table-first on desktop AND mobile. Mobile uses horizontal swipe.
   Backend / transaction / payment engine are untouched.
   ===================================================================== */

/* Scroll container common behavior */
.tx6-list-card > .jpos-table-wrap,
.tx6-legacy-table-wrap{
  position:relative;
  overflow-x:auto!important;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
}

.tx6-list-card > .jpos-table-wrap::-webkit-scrollbar,
.tx6-legacy-table-wrap::-webkit-scrollbar{
  height:7px;
}
.tx6-list-card > .jpos-table-wrap::-webkit-scrollbar-thumb,
.tx6-legacy-table-wrap::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:#c6d2de;
}

/* Desktop stays compact and table-first. */
.tx6-transaction-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
.tx6-transaction-table thead th{
  white-space:nowrap;
}
.tx6-transaction-table tbody td{
  vertical-align:middle;
}

.tx6-legacy-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

/* =====================================================================
   MOBILE / NARROW — DO NOT TRANSFORM TABLES INTO CARDS.
   ===================================================================== */
@media(max-width:767px){
  /* ---------------- TRANSACTION LIST ---------------- */
  .tx6-list-card{
    overflow:hidden!important;
    border:1px solid #dfe7ef!important;
    border-radius:13px!important;
    background:#fff!important;
    box-shadow:none!important;
  }

  .tx6-list-card .tx6-filterbar{
    margin:0!important;
    border:0!important;
    border-bottom:1px solid #e4eaf1!important;
    border-radius:0!important;
  }

  .tx6-list-card > .jpos-table-wrap{
    width:100%;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:0!important;
    background:#fff;
  }

  .tx6-transaction-table{
    display:table!important;
    width:1060px!important;
    min-width:1060px!important;
    table-layout:fixed!important;
    margin:0!important;
    font-size:.82rem;
  }

  .tx6-transaction-table thead{
    display:table-header-group!important;
  }
  .tx6-transaction-table tbody{
    display:table-row-group!important;
    padding:0!important;
  }
  .tx6-transaction-table tr,
  .tx6-transaction-table .tx72-list-row{
    display:table-row!important;
    position:static!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    transform:none!important;
  }
  .tx6-transaction-table .tx72-list-row:hover,
  .tx6-transaction-table .tx72-list-row:active{
    transform:none!important;
    background:#f6fafc!important;
  }

  .tx6-transaction-table th,
  .tx6-transaction-table td,
  .tx6-transaction-table .tx72-list-row td{
    display:table-cell!important;
    width:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:9px 10px!important;
    border:0!important;
    border-bottom:1px solid #e8edf2!important;
    text-align:left!important;
    vertical-align:middle!important;
    white-space:nowrap;
  }
  .tx6-transaction-table th{
    padding-top:9px!important;
    padding-bottom:9px!important;
    background:#f7f9fb;
    color:#52657a;
    font-size:.69rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.025em;
  }
  .tx6-transaction-table td:before,
  .tx6-transaction-table .tx72-list-row td:before{
    display:none!important;
    content:none!important;
  }

  /* Explicit widths make swipe predictable and keep rows low. */
  .tx6-transaction-table th:nth-child(1),
  .tx6-transaction-table td:nth-child(1){width:235px!important;}
  .tx6-transaction-table th:nth-child(2),
  .tx6-transaction-table td:nth-child(2){width:185px!important;}
  .tx6-transaction-table th:nth-child(3),
  .tx6-transaction-table td:nth-child(3){width:145px!important;}
  .tx6-transaction-table th:nth-child(4),
  .tx6-transaction-table td:nth-child(4){width:145px!important;}
  .tx6-transaction-table th:nth-child(5),
  .tx6-transaction-table td:nth-child(5){width:135px!important;text-align:right!important;}
  .tx6-transaction-table th:nth-child(6),
  .tx6-transaction-table td:nth-child(6){width:135px!important;text-align:right!important;}
  .tx6-transaction-table th:nth-child(7),
  .tx6-transaction-table td:nth-child(7){width:80px!important;text-align:center!important;}

  .tx72-list-title-row{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    min-width:0;
  }
  .tx72-list-number{
    display:inline-block;
    max-width:165px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.8rem!important;
  }
  .tx72-source-chip{
    display:inline-flex!important;
    flex:0 0 auto;
    padding:2px 6px!important;
    font-size:.62rem!important;
  }
  .tx72-mobile-status{display:none!important;}
  .tx72-list-status{display:table-cell!important;}
  .tx72-list-customer{
    min-height:0!important;
    padding-bottom:9px!important;
  }
  .tx72-list-customer strong{
    display:block;
    max-width:160px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.78rem!important;
  }
  .tx72-list-customer .jpos-sub{
    display:block!important;
    margin:2px 0 0!important;
    font-size:.66rem!important;
  }
  .tx72-list-store,
  .tx72-list-date,
  .tx72-list-total,
  .tx72-list-outstanding{
    margin:0!important;
    padding:9px 10px!important;
    border-top:0!important;
    font-size:.78rem!important;
  }
  .tx72-desktop-date{display:inline!important;}
  .tx72-mobile-date{display:none!important;}

  /* ---------------- ITEM TABLE ---------------- */
  .tx6-legacy-card{
    overflow:hidden!important;
  }
  .tx6-table-card-body{
    padding:0 0 10px!important;
  }
  .tx6-legacy-table-wrap{
    width:100%;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:0!important;
    background:#fff;
  }

  .tx6-legacy-table{
    display:table!important;
    width:1120px!important;
    min-width:1120px!important;
    table-layout:fixed!important;
    margin:0!important;
    font-size:.8rem;
  }
  .tx6-legacy-table colgroup{
    display:table-column-group!important;
  }
  .tx6-legacy-table col{
    display:table-column!important;
  }
  .tx6-legacy-table thead{
    display:table-header-group!important;
  }
  .tx6-legacy-table tbody{
    display:table-row-group!important;
    padding:0!important;
  }
  .tx6-legacy-table tr,
  .tx6-legacy-table .tx72-item-row{
    display:table-row!important;
    position:static!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .tx6-legacy-table th,
  .tx6-legacy-table td,
  .tx6-legacy-table .tx72-item-row td{
    display:table-cell!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:7px 8px!important;
    border:0!important;
    border-bottom:1px solid #e7edf2!important;
    text-align:left!important;
    vertical-align:middle!important;
    white-space:nowrap;
  }
  .tx6-legacy-table th{
    padding-top:8px!important;
    padding-bottom:8px!important;
    background:#f7f9fb;
    color:#52657a;
    font-size:.68rem;
    font-weight:800;
    text-transform:uppercase;
  }
  .tx6-legacy-table td::before,
  .tx6-legacy-table .tx72-item-row td::before{
    display:none!important;
    content:none!important;
  }

  /* Keep item name dominant (>=45%). */
  .tx6-legacy-table .tx6-col-no{width:42px!important;}
  .tx6-legacy-table .tx6-col-item{width:505px!important;}
  .tx6-legacy-table .tx6-col-source{width:80px!important;}
  .tx6-legacy-table .tx6-col-qty{width:85px!important;}
  .tx6-legacy-table .tx6-col-price{width:125px!important;}
  .tx6-legacy-table .tx6-col-discount{width:120px!important;}
  .tx6-legacy-table .tx6-col-total{width:125px!important;}
  .tx6-legacy-table .tx6-col-action{width:38px!important;}

  .tx72-item-no,
  .tx72-item-name,
  .tx72-item-source,
  .tx72-item-qty,
  .tx72-item-price,
  .tx72-item-discount,
  .tx72-item-total,
  .tx72-item-action{
    display:table-cell!important;
    grid-column:auto!important;
    grid-row:auto!important;
  }
  .tx72-item-name .tx6-item-name-cell strong{
    display:block;
    max-width:480px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap!important;
    font-size:.8rem!important;
    line-height:1.2!important;
  }
  .tx72-item-source{text-align:center!important;}
  .tx72-item-total{text-align:right!important;font-size:.8rem!important;}
  .tx72-item-action{text-align:center!important;}
  .tx72-item-action:empty{display:table-cell!important;}

  .tx72-item-row .tx6-table-input{
    width:100%!important;
    max-width:none!important;
    min-height:32px!important;
    height:32px!important;
    padding:3px 6px!important;
    font-size:.78rem!important;
  }
  .tx72-readonly-value{
    width:100%!important;
    min-height:32px!important;
    height:32px!important;
    display:flex!important;
    align-items:center!important;
    padding:0 6px!important;
    border:1px solid #e0e7ee!important;
    border-radius:7px!important;
    background:#f6f8fa!important;
    font-size:.76rem!important;
  }
  .tx72-money-value{justify-content:flex-end!important;}
  .tx72-item-row .tx6-qty-input{
    width:100%!important;
    max-width:none!important;
    text-align:center!important;
  }
  .tx72-item-action .tx6-delete-icon{
    width:28px!important;
    height:28px!important;
  }

  /* Metadata remains compact below the scrollable table. */
  .tx72-footer-meta{
    margin:8px!important;
  }
}

@media(max-width:430px){
  /* Table widths stay fixed intentionally; user swipes horizontally. */
  .tx6-transaction-table{
    width:1060px!important;
    min-width:1060px!important;
  }
  .tx6-legacy-table{
    width:1120px!important;
    min-width:1120px!important;
  }
}


/* =====================================================================
   STEP 7.3.2 v0.7.6 · SEARCH ANCHOR + TAB RECOVERY UX
   ===================================================================== */
.tx6-search-anchor{
  position:relative;
  width:100%;
  min-width:0;
}

/* Suggestion list starts exactly at the lower border of its own input. */
.tx6-search-anchor > .tx6-quick-results{
  top:calc(100% - 1px)!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  margin-top:0!important;
  z-index:80!important;
  border-top-left-radius:0!important;
  border-top-right-radius:0!important;
  box-shadow:0 12px 28px rgba(15,32,52,.16)!important;
}

.tx6-search-anchor:has(> .tx6-quick-results:not([hidden])) > .tx6-legacy-input{
  position:relative;
  z-index:81;
  border-bottom-left-radius:0!important;
  border-bottom-right-radius:0!important;
  border-color:#9fcbd0!important;
}

.tx6-search-anchor > .tx6-quick-results:not([hidden]){
  border-color:#9fcbd0!important;
}

/* Customer hint stays below the input; dropdown overlays it instead of being pushed by it. */
.tx6-customer-main .tx6-inline-hint{
  position:relative;
  z-index:1;
}

.tx6-master-input-card,
.tx6-master-input-body,
.tx6-customer-grid,
.tx6-item-toolbar,
.tx6-customer-main,
.tx6-item-search-block{
  overflow:visible!important;
}

@media(max-width:767px){
  .tx6-search-anchor > .tx6-quick-results{
    max-height:min(42vh,320px)!important;
  }
}

/* =========================================================
   STEP 8.2 — FUND ALLOCATION / MONEY PURPOSE
   ========================================================= */
.jpos-funding-page .jpos-pagehead{align-items:flex-start;gap:14px}
.jpos-funding-searchbar{align-items:center}
.jpos-finance-note{display:flex;align-items:flex-start;gap:9px;margin-top:10px;padding:10px 12px;border:1px solid #dce7ef;border-radius:10px;background:#f7fafc;color:#53677e;line-height:1.45}
.jpos-finance-note .icon{font-size:18px;color:#20aeb5;margin-top:1px}
.jpos-fund-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 14px}
.jpos-fund-metric{min-width:0;background:#fff;border:1px solid #dde6ef;border-radius:12px;padding:12px 13px;box-shadow:0 5px 18px rgba(18,42,68,.035)}
.jpos-fund-metric span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#77899d;font-weight:700;margin-bottom:6px}
.jpos-fund-metric strong{display:block;font-size:18px;line-height:1.15;color:#1e334c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-fund-metric.is-free{border-color:#9ddbdc;background:#f4fbfb}
.jpos-fund-metric.is-free strong{color:#0c8086}
.jpos-fund-grid{align-items:start}
.jpos-section-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}
.jpos-section-title-row h2{font-size:17px;margin:2px 0 0;color:#1d3149}
.jpos-section-title-row .jpos-sub{margin-top:3px}
.jpos-inline-actions{display:flex;gap:5px;white-space:nowrap}
.jpos-fund-ob-table{min-width:860px}
.jpos-fund-pay-table{min-width:650px}
.jpos-funding-page tr.is-muted{opacity:.55}
.jpos-funding-page .jpos-badge.no_requirement,
.jpos-funding-page .jpos-badge.belum\ ada\ kebutuhan{background:#edf2f6;color:#5e7185}
.jpos-funding-page .jpos-badge.unfunded{background:#fff1ef;color:#bd4c43}
.jpos-funding-page .jpos-badge.partial{background:#fff7e7;color:#a46a00}
.jpos-funding-page .jpos-badge.funded{background:#e8f7ef;color:#267653}
.jpos-funding-page .btn:disabled{opacity:.48;cursor:not-allowed}

@media(max-width:1280px){
  .jpos-fund-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767.98px){
  .jpos-funding-page{font-size:16px}
  .jpos-funding-page .jpos-pagehead{display:block}
  .jpos-funding-page .jpos-pagehead-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
  .jpos-funding-page .jpos-pagehead-actions .btn{min-height:44px}
  .jpos-funding-searchbar{display:grid;grid-template-columns:1fr;gap:8px}
  .jpos-funding-searchbar .btn{width:100%;min-height:44px}
  .jpos-fund-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .jpos-fund-metric{padding:11px}
  .jpos-fund-metric span{font-size:10px}
  .jpos-fund-metric strong{font-size:16px}
  .jpos-section-title-row{flex-direction:column}
  .jpos-section-title-row .btn{width:100%;min-height:44px}
  .jpos-inline-actions .btn{min-height:38px;padding-left:10px;padding-right:10px}
}
@media(max-width:420px){
  .jpos-fund-metrics{grid-template-columns:1fr}
}

/* STEP 8.3 — Actual Expense / Reserve Consumption */
.jpos-expense-page .jpos-pagehead-actions{display:flex;gap:8px;flex-wrap:wrap}
.jpos-expense-grid{align-items:start}
.jpos-expense-table .btn-xs{min-height:32px;height:32px;padding:0 10px}
.jpos-expense-page .text-danger{color:#b83b45!important}
.jpos-expense-page tr.is-muted{opacity:.62}
.jpos-swal-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.jpos-swal-form input[type=file]{height:auto;min-height:42px;padding:8px 10px;background:#fff}
.jpos-expense-page .jpos-fund-metrics{margin-bottom:14px}
.jpos-expense-page .jpos-inline-actions{display:flex;gap:6px;align-items:center}

@media(max-width:767.98px){
  .jpos-expense-page{font-size:16px}
  .jpos-expense-page .jpos-pagehead-actions{width:100%}
  .jpos-expense-page .jpos-pagehead-actions .btn{flex:1;justify-content:center}
  .jpos-swal-grid-2{grid-template-columns:1fr}
  .jpos-expense-page .jpos-table-wrap{-webkit-overflow-scrolling:touch}
  .jpos-expense-page .jpos-table{min-width:900px}
  .jpos-expense-page .jpos-fund-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* STEP 8.5 periodic operations */
.jpos-period-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--jpos-border,#e7edf5)}
.jpos-period-toolbar label{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;color:#73839a;margin-bottom:6px}.jpos-period-toolbar input{min-width:180px}.jpos-period-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.jpos-op-summary{padding:14px 16px}.jpos-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.jpos-summary-tile{border:1px solid #dce6f1;border-radius:10px;padding:10px 12px;background:#fff}.jpos-summary-tile span{display:block;font-size:11px;color:#748399}.jpos-summary-tile strong{display:block;margin-top:3px;font-size:16px;color:#10243d}.jpos-row-warning{background:#fffaf2}
@media(max-width:900px){.jpos-period-toolbar{align-items:stretch;flex-direction:column}.jpos-period-toolbar input{width:100%;min-width:0}.jpos-period-actions{justify-content:flex-start}.jpos-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.jpos-summary-grid{grid-template-columns:1fr 1fr}.jpos-period-actions .btn{font-size:16px}.jpos-period-toolbar input{font-size:16px}}

/* STEP 8.6.1 — Payroll Adjustment Detail & History */
.jpos-payroll-adjustment-history{font-size:14px}
.jpos-adjustment-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.jpos-adjustment-summary-grid>div{border:1px solid #dce6f1;border-radius:10px;background:#fff;padding:10px 12px}
.jpos-adjustment-summary-grid span{display:block;font-size:11px;color:#748399;margin-bottom:3px}
.jpos-adjustment-summary-grid strong{display:block;font-size:16px;color:#10243d}
.jpos-adjustment-history-table{min-width:900px}
.jpos-adjustment-history-table td{vertical-align:top}
.jpos-adjustment-note{margin-top:12px;margin-bottom:0}
@media(max-width:700px){
  .jpos-payroll-adjustment-history{font-size:16px}
  .jpos-adjustment-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-adjustment-summary-grid span{font-size:12px}
  .jpos-adjustment-summary-grid strong{font-size:16px}
}
.jpos-payroll-adjustment-history .btn-danger-light{background:#fff2f3;border:1px solid #f2d0d3;color:#b4232d}

/* STEP 8.7 — Finance Control & Owner Report */
.jpos-report-strip{display:flex;align-items:center;gap:6px;min-height:34px;padding:8px 12px;margin:10px 0;border:1px solid #dce7f1;border-radius:9px;background:#f8fbfe;color:#5a6d82;font-size:12px}
.jpos-report-strip strong{color:#142b43;font-size:13px}
.jpos-health-pill{display:inline-flex;align-items:center;justify-content:center;min-width:78px;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.04em}
.jpos-health-pill.is-pass{background:#e9f8f0;color:#0a7a47}
.jpos-health-pill.is-warning{background:#fff4df;color:#9a5f00}
.jpos-health-pill.is-fail{background:#fdeaea;color:#b42318}
.jpos-report-mini{display:grid;gap:0}
.jpos-report-mini>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #e9eff5}
.jpos-report-mini>div:last-child{border-bottom:0}
.jpos-report-mini span{color:#617287;font-size:12px}
.jpos-report-mini strong{color:#142b43;text-align:right;font-size:13px}
.jpos-danger-text{color:#b42318!important}
.jpos-report-table td{vertical-align:middle}

@media (max-width: 767.98px){
  .jpos-report-strip{font-size:14px;flex-wrap:wrap}
  .jpos-report-strip strong{font-size:15px}
  .jpos-health-pill{font-size:12px;min-width:90px}
  .jpos-report-mini span,.jpos-report-mini strong{font-size:14px}
  .jpos-page[data-page-controller="reports"] .jpos-page-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .jpos-page[data-page-controller="reports"] .jpos-page-actions .form-control{grid-column:1/-1;width:100%;min-width:0}
  .jpos-page[data-page-controller="reports"] .jpos-page-actions .btn{width:100%}
  .jpos-page[data-page-controller="reports"] .jpos-table-wrap table{min-width:720px}
  .jpos-page[data-page-controller="reports"] .jpos-report-table{min-width:760px}
}

/* =========================================================
   STEP 8.9 — Finance Resolution & Owner Decision Center
   Operational UX — scoped only to Resolution page
   ========================================================= */
.jpos-resolution-workspace{max-width:1600px}
.jpos-resolution-workspace .jpos-resolution-pagehead{margin-bottom:12px;align-items:flex-start}
.jpos-resolution-pagehead .jpos-pagehead-copy{max-width:900px}
.jpos-resolution-pagehead h1{margin-top:3px}

.jpos-resolution-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #dce6ef;border-radius:12px;background:#fff;margin-bottom:12px}
.jpos-resolution-period-control{display:grid;grid-template-columns:190px minmax(260px,1fr);align-items:center;gap:4px 12px;min-width:0}
.jpos-resolution-period-control>span{font-size:.72rem;font-weight:800;color:#52677e;letter-spacing:.02em}
.jpos-resolution-period-control>input{grid-row:1/3;grid-column:1;width:190px;min-height:40px}
.jpos-resolution-period-caption{grid-column:2;display:flex;align-items:baseline;gap:8px;min-width:0;color:#78899b;font-size:.72rem;line-height:1.4}
.jpos-resolution-period-caption strong{color:#263c54;font-size:.88rem;white-space:nowrap}
.jpos-resolution-period-caption span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jpos-resolution-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}

.jpos-resolution-focus{display:flex;align-items:center;gap:12px;min-height:72px;padding:12px 14px;border:1px solid #dbe6ef;border-left:4px solid #2f7ed7;border-radius:12px;background:#fbfdff;margin-bottom:12px}
.jpos-resolution-focus.is-danger{border-left-color:#c85548;background:#fffafa}
.jpos-resolution-focus.is-warning{border-left-color:#d89516;background:#fffdf7}
.jpos-resolution-focus.is-info{border-left-color:#2996a0;background:#f9fdfd}
.jpos-resolution-focus.is-pass{border-left-color:#2f8a64;background:#f9fdfa}
.jpos-resolution-focus-icon{width:42px;height:42px;flex:0 0 42px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;background:#eaf3fd;color:#2f7ed7;font-size:1.18rem}
.jpos-resolution-focus.is-danger .jpos-resolution-focus-icon{background:#fdeeed;color:#b94e43}
.jpos-resolution-focus.is-warning .jpos-resolution-focus-icon{background:#fff1d7;color:#b9790d}
.jpos-resolution-focus.is-info .jpos-resolution-focus-icon{background:#e9f8f8;color:#18868d}
.jpos-resolution-focus.is-pass .jpos-resolution-focus-icon{background:#eaf7f0;color:#277a58}
.jpos-resolution-focus-copy{display:grid;gap:2px;min-width:0;flex:1}
.jpos-resolution-focus-copy small{font-size:.65rem;font-weight:900;letter-spacing:.08em;color:#7f8fa1}
.jpos-resolution-focus-copy strong{font-size:.96rem;color:#21364f;line-height:1.35}
.jpos-resolution-focus-copy span{font-size:.75rem;color:#687b90;line-height:1.45}
.jpos-resolution-focus-action{flex:0 0 auto}

.jpos-resolution-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.jpos-resolution-summary-card{display:flex;align-items:center;gap:12px;min-width:0;min-height:92px;padding:13px 14px;border:1px solid #dbe5ef;border-left:4px solid #3f8ee8;border-radius:12px;background:#fff;box-shadow:0 4px 16px rgba(33,54,79,.03)}
.jpos-resolution-summary-card.tone-blue{border-left-color:#3f8ee8}
.jpos-resolution-summary-card.tone-amber{border-left-color:#e4a433}
.jpos-resolution-summary-card.tone-teal{border-left-color:#20a2a3}
.jpos-resolution-summary-card.tone-navy{border-left-color:#274a70}
.jpos-resolution-summary-icon{width:42px;height:42px;flex:0 0 42px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;font-size:1.15rem;background:#edf5ff;color:#2f7ed7}
.jpos-resolution-summary-card.tone-amber .jpos-resolution-summary-icon{background:#fff5e3;color:#b87913}
.jpos-resolution-summary-card.tone-teal .jpos-resolution-summary-icon{background:#eaf8f7;color:#148687}
.jpos-resolution-summary-card.tone-navy .jpos-resolution-summary-icon{background:#edf2f7;color:#274a70}
.jpos-resolution-summary-card>div{min-width:0}
.jpos-resolution-summary-card>div small,.jpos-resolution-summary-card>div span{display:block;color:#74859a}
.jpos-resolution-summary-card>div small{font-size:.68rem;font-weight:800;letter-spacing:.01em}
.jpos-resolution-summary-card>div strong{display:block;margin:5px 0 2px;color:#20334b;font-size:1.25rem;line-height:1.1}
.jpos-resolution-summary-card>div span{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.jpos-resolution-overview-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:14px;align-items:start}
.jpos-resolution-workspace .jpos-card{border-radius:12px;border-color:#dce5ee;box-shadow:0 4px 16px rgba(33,54,79,.025)}
.jpos-resolution-signal-card,.jpos-resolution-context-card,.jpos-resolution-case-card{padding:0;overflow:hidden}
.jpos-resolution-section-head,.jpos-resolution-case-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid #e4ebf2;background:#fff}
.jpos-resolution-section-head h3,.jpos-resolution-case-head h3{font-size:1rem;margin:2px 0 3px;color:#22384f}
.jpos-resolution-section-head p,.jpos-resolution-case-head p{margin:0;color:#718398;font-size:.73rem;line-height:1.4}
.jpos-resolution-section-count,.jpos-resolution-result-count{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 9px;border-radius:999px;background:#f1f5f9;color:#52677e;font-size:.7rem;font-weight:800;white-space:nowrap}

.jpos-resolution-signal-list{display:grid;gap:10px;padding:12px;background:#f8fafc}
.jpos-resolution-signal{border:1px solid #dfe7ef;border-left:4px solid #7d91a8;border-radius:11px;padding:12px;background:#fff}
.jpos-resolution-signal.fail{border-left-color:#c85548}
.jpos-resolution-signal.warning{border-left-color:#d89516}
.jpos-resolution-signal.pass{border-left-color:#2f8a64}
.jpos-resolution-signal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;flex-wrap:wrap}
.jpos-resolution-signal-head>div{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.jpos-resolution-signal-source{display:inline-flex;align-items:center;gap:5px;color:#7a8b9d;font-size:.68rem;font-weight:700}
.jpos-resolution-signal>strong{display:block;font-size:.9rem;line-height:1.35;color:#18324d;margin-bottom:8px}
.jpos-resolution-signal-evidence,.jpos-resolution-signal-recommendation{display:grid;grid-template-columns:20px 1fr;gap:7px;align-items:flex-start;padding:8px 9px;border-radius:9px;font-size:.72rem;line-height:1.45}
.jpos-resolution-signal-evidence{background:#f7f9fc;color:#4e6278}
.jpos-resolution-signal-recommendation{margin-top:7px;background:#f2f8fd;color:#405e78}
.jpos-resolution-signal-evidence i,.jpos-resolution-signal-recommendation i{font-size:.95rem;margin-top:1px;color:#71869c}
.jpos-resolution-signal-evidence span,.jpos-resolution-signal-recommendation span{display:block}
.jpos-resolution-signal-evidence b,.jpos-resolution-signal-recommendation b{display:block;color:#30475f;font-size:.66rem;text-transform:uppercase;letter-spacing:.04em;margin-bottom:1px}
.jpos-resolution-signal-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}

.jpos-resolution-context-card .js-resolution-owner-summary{padding:13px 14px}
.jpos-resolution-owner{display:grid;gap:12px}
.jpos-resolution-health{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border:1px solid #e1e8ef;border-radius:10px;background:#f9fbfd}
.jpos-resolution-health>div{display:grid;gap:2px}
.jpos-resolution-health>div span{font-size:.68rem;color:#76889b;font-weight:700}
.jpos-resolution-health>div strong{font-size:1.35rem;line-height:1;color:#20364e}
.jpos-resolution-owner-headline{margin:0;padding:0 2px;color:#30475e;line-height:1.5;font-size:.78rem}
.jpos-resolution-context-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.jpos-resolution-context-grid>div{min-width:0;padding:9px 10px;border:1px solid #e4ebf2;border-radius:9px;background:#fff}
.jpos-resolution-context-grid>div.is-wide{grid-column:1/-1;background:#fffaf2;border-color:#efe2c9}
.jpos-resolution-context-grid span{display:block;color:#7a8b9d;font-size:.65rem;margin-bottom:3px}
.jpos-resolution-context-grid strong{display:block;color:#253b53;font-size:.82rem;line-height:1.3;overflow-wrap:anywhere}

.jpos-resolution-case-card{margin-top:14px}
.jpos-resolution-filterbar{display:grid;grid-template-columns:minmax(280px,1fr) 190px;gap:9px;padding:10px 12px;margin:0;border-bottom:1px solid #e5ebf1;background:#f8fafc}
.jpos-resolution-search{width:100%;max-width:none}
.jpos-resolution-status-filter{width:190px!important;max-width:190px}
.jpos-resolution-table-wrap{border:0;border-radius:0;overflow:auto}
.jpos-resolution-table{min-width:980px;margin-bottom:0}
.jpos-resolution-table td{vertical-align:middle}
.jpos-resolution-case-id{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:3px}
.jpos-resolution-action-progress{display:grid;gap:5px;min-width:145px}
.jpos-resolution-action-progress>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.jpos-resolution-action-progress strong{font-size:.73rem;color:#334b63}
.jpos-resolution-action-progress span{font-size:.65rem;color:#8291a2;white-space:nowrap}
.jpos-resolution-progress{display:block!important;height:5px!important;border-radius:999px!important;background:#e8edf2!important;overflow:hidden!important}
.jpos-resolution-progress i{display:block;height:100%;border-radius:inherit;background:#2d8d72}
.jpos-resolution-row-actions{justify-content:flex-end;flex-wrap:nowrap}

.jpos-resolution-safety-note{display:flex;align-items:flex-start;gap:9px;margin-top:12px;padding:10px 12px;border:1px solid #dfe7ef;border-radius:10px;background:#f9fbfd;color:#607388;font-size:.72rem;line-height:1.45}
.jpos-resolution-safety-note i{font-size:1rem;color:#405f7f;margin-top:1px}
.jpos-resolution-safety-note strong{color:#304a64}

/* Resolution case modal — lifecycle detail remains operational, not financial execution. */
.jpos-resolution-detail{font-size:14px}
.jpos-resolution-detail-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
.jpos-resolution-detail-head h3{font-size:17px;margin:8px 0 0;line-height:1.35}
.jpos-resolution-evidence{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.jpos-resolution-evidence>div{border:1px solid #dfe8f1;border-radius:9px;padding:10px;background:#f9fbfd}
.jpos-resolution-evidence span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#6b7d91;font-weight:700;margin-bottom:5px}
.jpos-resolution-evidence p{margin:0;line-height:1.5;color:#263c54}
.jpos-resolution-modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px}
.jpos-resolution-detail h4{font-size:13px;margin:16px 0 8px;text-transform:uppercase;letter-spacing:.03em;color:#52677e}

@media(max-width:1199px){
  .jpos-resolution-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-resolution-overview-grid{grid-template-columns:1fr}
  .jpos-resolution-toolbar{align-items:stretch;flex-direction:column}
  .jpos-resolution-toolbar-actions{justify-content:flex-start}
}
@media(max-width:767px){
  .jpos-resolution-workspace .jpos-resolution-pagehead{margin-bottom:10px}
  .jpos-resolution-pagehead h1{font-size:1.25rem}
  .jpos-resolution-toolbar{padding:10px}
  .jpos-resolution-period-control{grid-template-columns:1fr;gap:5px}
  .jpos-resolution-period-control>input{grid-row:auto;grid-column:auto;width:100%}
  .jpos-resolution-period-caption{grid-column:auto;display:grid;gap:1px}
  .jpos-resolution-period-caption span{white-space:normal}
  .jpos-resolution-toolbar-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .jpos-resolution-toolbar-actions .btn{width:100%;justify-content:center}
  .jpos-resolution-toolbar-actions .js-resolution-diagnostic{grid-column:1/-1}
  .jpos-resolution-focus{align-items:flex-start;padding:11px}
  .jpos-resolution-focus-action{width:100%;flex-basis:100%}
  .jpos-resolution-focus{flex-wrap:wrap}
  .jpos-resolution-focus-action .btn{width:100%;justify-content:center}
  .jpos-resolution-summary{grid-template-columns:1fr 1fr;gap:9px}
  .jpos-resolution-summary-card{min-height:94px;padding:11px 10px;gap:9px}
  .jpos-resolution-summary-icon{width:34px;height:34px;flex-basis:34px;font-size:1rem}
  .jpos-resolution-summary-card>div strong{font-size:1.05rem}
  .jpos-resolution-summary-card>div span{white-space:normal;line-height:1.35}
  .jpos-resolution-section-head,.jpos-resolution-case-head{padding:12px;flex-direction:column}
  .jpos-resolution-signal-list{padding:9px}
  .jpos-resolution-signal>strong{font-size:.95rem}
  .jpos-resolution-signal-evidence,.jpos-resolution-signal-recommendation{font-size:.78rem}
  .jpos-resolution-context-card .js-resolution-owner-summary{padding:10px}
  .jpos-resolution-filterbar{grid-template-columns:1fr;padding:9px}
  .jpos-resolution-status-filter{width:100%!important;max-width:none}
  .jpos-resolution-table-wrap{overflow:visible;padding:9px;background:#f8fafc}
  .jpos-resolution-table{min-width:0!important;width:100%;border-collapse:separate;border-spacing:0 9px}
  .jpos-resolution-table thead{display:none}
  .jpos-resolution-table tbody,.jpos-resolution-table tr,.jpos-resolution-table td{display:block;width:100%}
  .jpos-resolution-table tr{border:1px solid #dfe7ef;border-radius:11px;background:#fff;padding:4px 11px;box-shadow:0 3px 12px rgba(35,55,78,.03)}
  .jpos-resolution-table td{border:0!important;padding:8px 0!important;text-align:left!important;display:grid;grid-template-columns:118px minmax(0,1fr);gap:9px;align-items:start}
  .jpos-resolution-table td::before{content:attr(data-label);font-size:.65rem;text-transform:uppercase;letter-spacing:.04em;color:#8291a2;font-weight:800;padding-top:2px}
  .jpos-resolution-table td:first-child{padding-top:10px!important}
  .jpos-resolution-table td:last-child{padding-bottom:10px!important}
  .jpos-resolution-row-actions{justify-content:flex-start;flex-wrap:wrap}
  .jpos-resolution-row-actions .btn{min-height:38px}
  .jpos-resolution-detail{font-size:16px}
  .jpos-resolution-detail-head{flex-direction:column}
  .jpos-resolution-evidence{grid-template-columns:1fr}
  .jpos-resolution-modal-actions .btn{min-height:42px}
}
@media(max-width:480px){
  .jpos-resolution-summary{grid-template-columns:1fr}
  .jpos-resolution-summary-card{min-height:82px}
  .jpos-resolution-table td{grid-template-columns:1fr;gap:4px}
  .jpos-resolution-table td::before{padding-top:0}
  .jpos-resolution-context-grid{grid-template-columns:1fr}
  .jpos-resolution-context-grid>div.is-wide{grid-column:auto}
}
.jpos-badge.open,.jpos-badge.reviewing,.jpos-badge.decided,.jpos-badge.actioning,.jpos-badge.monitoring{background:#eef4fb;color:#315b82}
.jpos-badge.resolved{background:#e9f8f0;color:#087a47}
.jpos-badge.dismissed{background:#f1f3f5;color:#66717d}

/* STEP 9.1 — JPOS Local Auth + Role/Permission */
.jpos-login-card{max-width:440px;text-align:left}.jpos-login-card .jpos-mark{margin-left:0}.jpos-auth-form{display:grid;gap:9px;margin-top:18px}.jpos-auth-form label{font-size:12px;font-weight:700;color:#445166;margin:5px 0 0}.jpos-auth-form input,.jpos-auth-form select{width:100%;min-height:44px;border:1px solid #d8e0e8;border-radius:9px;padding:10px 12px;font:inherit;background:#fff;color:#182230;outline:none}.jpos-auth-form input:focus,.jpos-auth-form select:focus{border-color:#7896b8;box-shadow:0 0 0 3px rgba(37,82,130,.08)}.jpos-password-wrap{display:grid;grid-template-columns:1fr auto;gap:7px}.jpos-password-wrap button{border:1px solid #d8e0e8;background:#f7f9fb;border-radius:9px;padding:0 12px;font-weight:700;color:#42546a}.jpos-auth-bootstrap{margin-top:18px;padding:14px;border:1px dashed #cbd7e3;border-radius:10px;background:#f8fafc;display:grid;gap:7px}.jpos-auth-bootstrap strong{font-size:13px}.jpos-auth-bootstrap span{font-size:12px;color:#69798d;line-height:1.5}.jpos-permission-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.jpos-permission-module{border:1px solid #e0e7ee;border-radius:11px;overflow:hidden;background:#fff}.jpos-permission-module-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#f6f8fb;border-bottom:1px solid #e6edf3}.jpos-permission-module-head strong{font-size:12px;letter-spacing:.04em}.jpos-permission-module-head span{font-size:11px;color:#8492a5}.jpos-permission-row{padding:10px 12px;border-bottom:1px solid #edf1f5;display:grid;gap:4px}.jpos-permission-row:last-child{border-bottom:0}.jpos-permission-row>div{display:grid;gap:2px}.jpos-permission-row strong{font-size:12px}.jpos-permission-row code{font-size:11px;color:#486681;background:#f4f7fa;padding:2px 5px;border-radius:5px;width:max-content;max-width:100%;overflow-wrap:anywhere}.jpos-permission-row>span{font-size:11px;color:#7c8a9b}.jpos-permission-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.jpos-permission-check{display:flex;gap:9px;align-items:flex-start;border:1px solid #e1e7ee;border-radius:8px;padding:9px 10px;background:#fff;cursor:pointer}.jpos-permission-check input{width:16px!important;height:16px!important;min-height:0!important;margin-top:2px}.jpos-permission-check span{display:grid;gap:1px}.jpos-permission-check strong,.jpos-permission-check b{font-size:12px}.jpos-permission-check small{font-size:10px;color:#8491a2;overflow-wrap:anywhere}.jpos-role-permission-scroll{max-height:420px;overflow:auto;border:1px solid #e1e7ee;border-radius:10px;padding:10px;background:#f8fafc}.jpos-role-permission-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:12px}.jpos-role-permission-group>strong{grid-column:1/-1;font-size:11px;color:#51657b;letter-spacing:.05em;padding-top:4px}
@media(max-width:1199px){.jpos-permission-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.jpos-login-card{max-width:none}.jpos-auth-form label{font-size:14px}.jpos-permission-catalog,.jpos-permission-check-grid,.jpos-role-permission-group{grid-template-columns:1fr}.jpos-permission-module{min-width:0}.jpos-auth-bootstrap span{font-size:14px}}

/* STEP 9.2 — Shift Management */
.jpos-shift-page .jpos-shift-metrics{margin-top:0}
.jpos-shift-page .jpos-card-head .jpos-inline-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.jpos-shift-page .jpos-info-line.compact{margin-top:12px;margin-bottom:0}
.swal2-html-container .jpos-shift-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}
.swal2-html-container .jpos-shift-metrics .jpos-summary-tile{padding:10px 12px;text-align:left}
.swal2-html-container .jpos-shift-metrics .jpos-summary-tile strong{font-size:15px}
@media (max-width:767.98px){
  .jpos-shift-page{font-size:16px}
  .jpos-shift-page .jpos-page-actions{width:100%;display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
  .jpos-shift-page .jpos-page-actions .btn{flex:0 0 auto;min-height:42px}
  .jpos-shift-page .jpos-card-head{align-items:flex-start;gap:12px}
  .jpos-shift-page .jpos-card-head .jpos-inline-actions{width:100%;justify-content:flex-start}
  .swal2-html-container .jpos-shift-metrics{grid-template-columns:1fr 1fr}
}

/* =====================================================================
   STEP 9.3.3A — Production UI/UX Polish · Beranda Permission-Aware
   Scoped agar tidak mengubah business flow / halaman Finance lainnya.
   ===================================================================== */
.jpos-dashboard-v2{font-size:14px;}
.jpos-dashboard-v2 .is-hidden{display:none!important;}
.jpos-dashboard-hero{
  background:linear-gradient(135deg,#173154 0%,#244c73 62%,#247a7a 130%);
  color:#fff;border:0;border-radius:16px;padding:18px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  box-shadow:0 10px 28px rgba(21,49,84,.12);overflow:hidden;position:relative;
}
.jpos-dashboard-hero:after{content:"";position:absolute;right:-70px;top:-110px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.055);pointer-events:none;}
.jpos-dashboard-hero-main{min-width:0;position:relative;z-index:1;}
.jpos-dashboard-hero .jpos-eyebrow{color:rgba(255,255,255,.65);}
.jpos-dashboard-hero h1{font-size:1.5rem;margin:3px 0 4px;color:#fff;font-weight:700;letter-spacing:-.02em;}
.jpos-dashboard-hero p{margin:0;color:rgba(255,255,255,.78);}
.jpos-dashboard-context-chips{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:12px;}
.jpos-context-chip{display:inline-flex;align-items:center;gap:6px;min-height:31px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);font-size:.76rem;color:#fff;}
.jpos-context-chip.is-success{background:rgba(55,190,131,.2);border-color:rgba(114,225,174,.28);}
.jpos-context-chip.is-warning{background:rgba(245,178,76,.2);border-color:rgba(255,203,120,.3);}
.jpos-dashboard-hero-actions{display:flex;gap:8px;align-items:stretch;position:relative;z-index:1;flex:0 0 auto;}
.jpos-dashboard-datebox{margin:0;min-height:44px;display:flex;align-items:center;gap:9px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);border-radius:10px;padding:5px 10px;color:#fff;}
.jpos-dashboard-datebox>i{font-size:18px;}
.jpos-dashboard-datebox span{display:flex;flex-direction:column;gap:0;}
.jpos-dashboard-datebox small{font-size:.62rem;color:rgba(255,255,255,.67);line-height:1;}
.jpos-dashboard-datebox .form-control{background:transparent!important;border:0!important;color:#fff!important;height:24px!important;min-height:24px!important;padding:0!important;font-size:.79rem!important;box-shadow:none!important;}
.jpos-dashboard-datebox input::-webkit-calendar-picker-indicator{filter:invert(1);opacity:.75;cursor:pointer;}
.jpos-dashboard-hero .btn-light{background:#fff;border-color:#fff;color:#24415f;min-height:44px;box-shadow:none;}
.jpos-dashboard-hero .btn-light:hover{background:#f5f8fb;border-color:#f5f8fb;}
.jpos-dashboard-refresh.is-loading i{animation:jposSpin .9s linear infinite;}

.jpos-dashboard-priority{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin-top:13px;}
.jpos-dashboard-metric{position:relative;min-height:112px;padding:14px 15px;background:#fff;border:1px solid #e5e9ef;border-radius:14px;box-shadow:0 5px 20px rgba(28,44,69,.045);overflow:hidden;}
.jpos-dashboard-metric:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#8694a5;}
.jpos-dashboard-metric-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.74rem;font-weight:600;color:#657386;}
.jpos-dashboard-metric-icon{width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:#f1f4f7;color:#52677d;font-size:18px;flex:0 0 32px;}
.jpos-dashboard-metric-value{display:block;font-size:1.28rem;line-height:1.15;color:#1e2938;margin-top:10px;letter-spacing:-.025em;overflow-wrap:anywhere;}
.jpos-dashboard-metric small{display:block;color:#8692a1;font-size:.69rem;line-height:1.35;margin-top:5px;}
.jpos-dashboard-metric.tone-blue:before{background:#3985d0}.jpos-dashboard-metric.tone-blue .jpos-dashboard-metric-icon{background:#edf6ff;color:#3477bd}
.jpos-dashboard-metric.tone-green:before{background:#2ca46f}.jpos-dashboard-metric.tone-green .jpos-dashboard-metric-icon{background:#eaf8f1;color:#168159}
.jpos-dashboard-metric.tone-amber:before{background:#d7982e}.jpos-dashboard-metric.tone-amber .jpos-dashboard-metric-icon{background:#fff6e8;color:#aa6d11}
.jpos-dashboard-metric.tone-teal:before{background:#1f9b9a}.jpos-dashboard-metric.tone-teal .jpos-dashboard-metric-icon{background:#e8f8f7;color:#197c7b}
.jpos-dashboard-metric.tone-purple:before{background:#805fc0}.jpos-dashboard-metric.tone-purple .jpos-dashboard-metric-icon{background:#f2edfb;color:#6a4ca7}
.jpos-dashboard-metric.tone-slate:before{background:#758599}
.jpos-dashboard-skeleton{height:112px;border-radius:14px;background:linear-gradient(100deg,#edf0f4 20%,#f8f9fb 40%,#edf0f4 60%);background-size:200% 100%;animation:jposShimmer 1.2s infinite;}
.jpos-dashboard-empty,.jpos-dashboard-error{grid-column:1/-1;min-height:88px;background:#fff;border:1px dashed #dfe5eb;border-radius:14px;display:flex;align-items:center;justify-content:center;color:#7c8998;padding:16px;text-align:center;}
.jpos-dashboard-error{justify-content:flex-start;gap:10px;color:#9d3c44;background:#fff7f8;border-color:#f0d4d7;}
.jpos-dashboard-error>i{font-size:23px}.jpos-dashboard-error span{display:flex;flex-direction:column;flex:1}.jpos-dashboard-error small{color:#8a6d70}.jpos-dashboard-error .btn{margin-left:auto;}

.jpos-dashboard-two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}
.jpos-dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(310px,.9fr);gap:12px;align-items:start;}
.jpos-dashboard-panel{min-width:0;}
.jpos-dashboard-v2 .jpos-card-head h3{display:flex;align-items:center;gap:7px;}
.jpos-dashboard-v2 .jpos-card-head h3>i{color:#6a7e93;}
.jpos-dashboard-attention,.jpos-dashboard-actions,.jpos-dashboard-methods{padding:10px;}
.jpos-dashboard-attention{display:grid;gap:7px;}
.jpos-dashboard-attention-item{width:100%;border:1px solid #e8ecf1;background:#fff;border-radius:10px;display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:9px;padding:9px 10px;text-align:left;color:#344154;cursor:pointer;}
.jpos-dashboard-attention-item:hover{background:#fafbfd;border-color:#dce2e9;}
.jpos-dashboard-attention-item>span:nth-child(2){min-width:0;}.jpos-dashboard-attention-item strong,.jpos-dashboard-attention-item small{display:block;}.jpos-dashboard-attention-item strong{font-size:.82rem}.jpos-dashboard-attention-item small{font-size:.71rem;color:#7d8997;line-height:1.35;margin-top:2px}.jpos-dashboard-attention-item>i{color:#a0abb6;text-align:center;}
.jpos-dashboard-attention-icon{width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:#eef3f8;color:#486984;font-size:17px;}
.jpos-dashboard-attention-item.level-warning .jpos-dashboard-attention-icon{background:#fff4df;color:#a96b0d}.jpos-dashboard-attention-item.level-danger .jpos-dashboard-attention-icon{background:#fcedef;color:#aa3942}.jpos-dashboard-attention-item.level-info .jpos-dashboard-attention-icon{background:#eaf3fc;color:#3974ae}
.jpos-dashboard-ok{display:flex;align-items:center;gap:10px;min-height:62px;border:1px solid #dcefe6;background:#f5fbf8;border-radius:10px;padding:10px 12px;color:#1b7856;}.jpos-dashboard-ok>i{font-size:23px}.jpos-dashboard-ok span{display:flex;flex-direction:column}.jpos-dashboard-ok strong{font-size:.84rem}.jpos-dashboard-ok small{font-size:.71rem;color:#6f8d80;margin-top:2px}

.jpos-dashboard-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.jpos-dashboard-action{min-height:62px;border:1px solid #e7ebf0;background:#fff;border-radius:11px;display:grid;grid-template-columns:36px minmax(0,1fr) 16px;align-items:center;gap:9px;padding:9px 10px;text-align:left;color:#334155;cursor:pointer;}
.jpos-dashboard-action:hover{transform:translateY(-1px);box-shadow:0 5px 15px rgba(38,56,80,.06);border-color:#dce3ea;}
.jpos-dashboard-action-icon{width:34px;height:34px;border-radius:10px;background:#eef3f8;color:#496a87;display:flex;align-items:center;justify-content:center;font-size:18px;}
.jpos-dashboard-action strong,.jpos-dashboard-action small{display:block;}.jpos-dashboard-action strong{font-size:.8rem}.jpos-dashboard-action small{font-size:.68rem;color:#7e8b99;line-height:1.25;margin-top:2px}.jpos-dashboard-action>i{color:#a3adb8;text-align:center}
.jpos-dashboard-action.tone-primary .jpos-dashboard-action-icon{background:#e9f4f7;color:#1f7d87}.jpos-dashboard-action.tone-blue .jpos-dashboard-action-icon{background:#edf5fd;color:#3977b5}.jpos-dashboard-action.tone-green .jpos-dashboard-action-icon{background:#eaf8f1;color:#168159}.jpos-dashboard-action.tone-amber .jpos-dashboard-action-icon{background:#fff4df;color:#a96b0d}.jpos-dashboard-action.tone-teal .jpos-dashboard-action-icon{background:#e8f8f7;color:#197c7b}.jpos-dashboard-action.tone-purple .jpos-dashboard-action-icon{background:#f2edfb;color:#6a4ca7}

.jpos-dashboard-methods{display:grid;gap:7px;}
.jpos-dashboard-method{min-height:60px;border:1px solid #e8ecf1;border-radius:10px;padding:9px 10px;display:flex;align-items:center;gap:9px;background:#fff;}
.jpos-dashboard-method-icon{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#eff3f7;color:#53697f;font-size:18px;flex:0 0 34px;}.jpos-dashboard-method-icon.method-cash{background:#eaf8f1;color:#168159}.jpos-dashboard-method-icon.method-transfer{background:#edf5fd;color:#3977b5}.jpos-dashboard-method-icon.method-qris{background:#f2edfb;color:#6a4ca7}
.jpos-dashboard-method-copy{display:flex;flex-direction:column;min-width:0;flex:1}.jpos-dashboard-method-copy strong{font-size:.83rem}.jpos-dashboard-method-copy small{font-size:.7rem;color:#84909d;margin-top:2px}.jpos-dashboard-method-value{text-align:right;display:flex;flex-direction:column;min-width:0}.jpos-dashboard-method-value strong{font-size:.82rem}.jpos-dashboard-method-value small{font-size:.68rem;color:#8793a0;margin-top:2px}
.jpos-dashboard-recent-mobile-list{display:none;}
.jpos-dashboard-recent-mobile{width:100%;border:0;border-bottom:1px solid #edf0f3;background:#fff;padding:11px 12px;display:flex;flex-direction:column;text-align:left;color:#334155;gap:3px;}.jpos-dashboard-recent-mobile:last-child{border-bottom:0}.jpos-dashboard-recent-mobile-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.jpos-dashboard-recent-mobile>span:not(.jpos-dashboard-recent-mobile-top){font-weight:600}.jpos-dashboard-recent-mobile small{color:#7d8997}.jpos-dashboard-recent-mobile b{color:#20344d;font-size:.92rem;margin-top:2px}
.jpos-dashboard-security-note{display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:10px;background:#eef5f7;color:#55707a;font-size:.7rem;border:1px solid #deebee;}.jpos-dashboard-security-note>i{color:#39828c;font-size:16px}

/* Tablet landscape: workspace diberi ruang sedikit lebih besar tanpa mengubah behavior sidebar. */
@media (min-width:992px) and (max-width:1199px){
  body.jpos-shell-body{--jpos-sidebar-expanded:210px;}
  .jpos-dashboard-priority{grid-template-columns:repeat(2,minmax(0,1fr));}
  .jpos-dashboard-main-grid{grid-template-columns:minmax(0,1.45fr) minmax(270px,.8fr);}
}
@media (max-width:991px){
  .jpos-dashboard-v2{font-size:16px;}
  .jpos-dashboard-hero{align-items:flex-start;flex-direction:column;padding:15px;}
  .jpos-dashboard-hero-actions{width:100%;}.jpos-dashboard-datebox{flex:1;min-width:0}.jpos-dashboard-hero-actions>.btn{flex:0 0 auto;}
  .jpos-dashboard-priority{grid-template-columns:repeat(2,minmax(0,1fr));}
  .jpos-dashboard-main-grid{grid-template-columns:1fr;}
  .jpos-dashboard-main-grid .jpos-dashboard-method-card{order:-1;}
}
@media (max-width:767px){
  .jpos-dashboard-hero h1{font-size:1.28rem;}
  .jpos-dashboard-hero-actions{display:grid;grid-template-columns:1fr auto;}
  .jpos-dashboard-priority{grid-template-columns:1fr;gap:8px;}
  .jpos-dashboard-metric{min-height:100px;}
  .jpos-dashboard-two-col{grid-template-columns:1fr;}
  .jpos-dashboard-actions{grid-template-columns:1fr;}
  .jpos-dashboard-recent-desktop{display:none;}.jpos-dashboard-recent-mobile-list{display:block;}
  .jpos-dashboard-v2 .jpos-card-head{align-items:flex-start;}.jpos-dashboard-v2 .jpos-card-head .btn{min-height:40px;height:40px;padding:0 10px;}
  .jpos-dashboard-security-note{align-items:flex-start;font-size:.78rem;}
}
@media (max-width:430px){
  .jpos-dashboard-hero{border-radius:13px;padding:13px;}
  .jpos-dashboard-context-chips{gap:5px}.jpos-context-chip{font-size:.72rem;}
  .jpos-dashboard-hero-actions{grid-template-columns:1fr;}.jpos-dashboard-hero-actions>.btn{width:100%;justify-content:center;}
  .jpos-dashboard-datebox{width:100%;}
  .jpos-dashboard-metric-value{font-size:1.22rem;}
  .jpos-dashboard-method{align-items:flex-start;}.jpos-dashboard-method-value{max-width:44%;}
}

/* =====================================================================
   STEP 9.3.3B — Dashboard Spacing & Comfort Polish
   Fokus: breathing room, ritme visual, touch comfort, tanpa mengubah data,
   permission, flow transaksi, Finance, Shift, maupun Cutover.
   ===================================================================== */
.jpos-dashboard-v2{
  --jpos-dashboard-section-gap:20px;
  --jpos-dashboard-card-gap:16px;
  --jpos-dashboard-panel-radius:16px;
}

/* Hero diberi napas sedikit lebih besar agar header tidak terasa menempel. */
.jpos-dashboard-v2 .jpos-dashboard-hero{
  padding:22px 24px;
  gap:24px;
  border-radius:18px;
}
.jpos-dashboard-v2 .jpos-dashboard-context-chips{
  gap:8px;
  margin-top:14px;
}
.jpos-dashboard-v2 .jpos-context-chip{
  min-height:33px;
  padding:6px 10px;
}
.jpos-dashboard-v2 .jpos-dashboard-hero-actions{gap:10px;}
.jpos-dashboard-v2 .jpos-dashboard-datebox{padding:7px 12px;min-height:46px;}
.jpos-dashboard-v2 .jpos-dashboard-hero .btn-light{min-height:46px;}

/* Summary card adaptif: tetap 5 bila ruang cukup, otomatis turun bila sempit. */
.jpos-dashboard-v2 .jpos-dashboard-priority{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:var(--jpos-dashboard-card-gap);
  margin-top:var(--jpos-dashboard-section-gap);
}
.jpos-dashboard-v2 .jpos-dashboard-metric{
  min-height:126px;
  padding:18px 20px;
  border-radius:16px;
  box-shadow:0 7px 22px rgba(28,44,69,.055);
}
.jpos-dashboard-v2 .jpos-dashboard-metric:before{width:4px;}
.jpos-dashboard-v2 .jpos-dashboard-metric-head{
  gap:12px;
  font-size:.76rem;
  line-height:1.35;
}
.jpos-dashboard-v2 .jpos-dashboard-metric-icon{
  width:38px;
  height:38px;
  flex-basis:38px;
  border-radius:11px;
  font-size:20px;
}
.jpos-dashboard-v2 .jpos-dashboard-metric-value{
  margin-top:14px;
  font-size:1.34rem;
  line-height:1.12;
}
.jpos-dashboard-v2 .jpos-dashboard-metric small{
  margin-top:7px;
  font-size:.71rem;
  line-height:1.45;
}
.jpos-dashboard-v2 .jpos-dashboard-skeleton{height:126px;border-radius:16px;}

/* Antar section tidak lagi berdempetan. align-items:start mencegah panel kiri
   ikut memanjang kosong hanya karena panel kanan lebih tinggi. */
.jpos-dashboard-v2 .jpos-dashboard-two-col{
  gap:18px;
  margin-top:var(--jpos-dashboard-section-gap)!important;
  align-items:start;
}
.jpos-dashboard-v2 .jpos-dashboard-main-grid{
  gap:18px;
  margin-top:var(--jpos-dashboard-section-gap)!important;
}
.jpos-dashboard-v2 .jpos-dashboard-panel{
  border-radius:var(--jpos-dashboard-panel-radius);
  box-shadow:0 7px 22px rgba(28,44,69,.045);
}

/* Header section lebih lega dan hierarki judul/subjudul lebih jelas. */
.jpos-dashboard-v2 .jpos-card-head{
  padding:18px 20px;
  gap:16px;
}
.jpos-dashboard-v2 .jpos-card-head h3{
  gap:8px;
  margin-bottom:5px;
  line-height:1.3;
}
.jpos-dashboard-v2 .jpos-card-head p{
  line-height:1.45;
}

/* Perlu Perhatian */
.jpos-dashboard-v2 .jpos-dashboard-attention{
  padding:16px 18px 18px;
  gap:11px;
}
.jpos-dashboard-v2 .jpos-dashboard-attention-item{
  min-height:74px;
  grid-template-columns:42px minmax(0,1fr) 20px;
  gap:13px;
  padding:13px 15px;
  border-radius:12px;
}
.jpos-dashboard-v2 .jpos-dashboard-attention-icon{
  width:40px;
  height:40px;
  border-radius:11px;
  font-size:19px;
}
.jpos-dashboard-v2 .jpos-dashboard-attention-item strong{font-size:.84rem;line-height:1.35;}
.jpos-dashboard-v2 .jpos-dashboard-attention-item small{font-size:.72rem;line-height:1.45;margin-top:4px;}
.jpos-dashboard-v2 .jpos-dashboard-ok{
  min-height:74px;
  padding:14px 16px;
  gap:12px;
  border-radius:12px;
}

/* Aksi Cepat dibuat lebih nyaman disentuh dan tidak sesak. */
.jpos-dashboard-v2 .jpos-dashboard-actions{
  padding:16px 18px 18px;
  gap:11px;
}
.jpos-dashboard-v2 .jpos-dashboard-action{
  min-height:78px;
  grid-template-columns:44px minmax(0,1fr) 20px;
  gap:13px;
  padding:13px 15px;
  border-radius:12px;
}
.jpos-dashboard-v2 .jpos-dashboard-action-icon{
  width:42px;
  height:42px;
  border-radius:11px;
  font-size:20px;
}
.jpos-dashboard-v2 .jpos-dashboard-action strong{font-size:.82rem;line-height:1.35;}
.jpos-dashboard-v2 .jpos-dashboard-action small{font-size:.7rem;line-height:1.4;margin-top:4px;}

/* Metode pembayaran juga diberi ritme yang sama. */
.jpos-dashboard-v2 .jpos-dashboard-methods{
  padding:16px 18px 18px;
  gap:11px;
}
.jpos-dashboard-v2 .jpos-dashboard-method{
  min-height:72px;
  padding:13px 15px;
  gap:12px;
  border-radius:12px;
}
.jpos-dashboard-v2 .jpos-dashboard-method-icon{
  width:40px;
  height:40px;
  flex-basis:40px;
  border-radius:11px;
  font-size:19px;
}
.jpos-dashboard-v2 .jpos-dashboard-method-copy strong{font-size:.84rem;}
.jpos-dashboard-v2 .jpos-dashboard-method-copy small{margin-top:4px;line-height:1.4;}

/* List transaksi desktop jangan terasa berhimpitan dengan header card. */
.jpos-dashboard-v2 .jpos-dashboard-recent-desktop .jpos-table thead th{padding:12px 14px;}
.jpos-dashboard-v2 .jpos-dashboard-recent-desktop .jpos-table tbody td{padding:14px;}
.jpos-dashboard-v2 .jpos-dashboard-recent-mobile{padding:15px 16px;gap:5px;}

.jpos-dashboard-v2 .jpos-dashboard-security-note{
  margin-top:var(--jpos-dashboard-section-gap)!important;
  padding:12px 14px;
  gap:10px;
  border-radius:12px;
  line-height:1.45;
}

/* Tablet: ruang tetap lega, tetapi tidak boros. */
@media (min-width:992px) and (max-width:1199px){
  .jpos-dashboard-v2{
    --jpos-dashboard-section-gap:18px;
    --jpos-dashboard-card-gap:14px;
  }
  .jpos-dashboard-v2 .jpos-dashboard-priority{grid-template-columns:repeat(2,minmax(0,1fr));}
  .jpos-dashboard-v2 .jpos-dashboard-hero{padding:20px;}
}

/* <= 991 memakai font 16px sesuai baseline mobile/tablet JPOS. */
@media (max-width:991px){
  .jpos-dashboard-v2{
    --jpos-dashboard-section-gap:18px;
    --jpos-dashboard-card-gap:14px;
  }
  .jpos-dashboard-v2 .jpos-dashboard-hero{padding:18px;gap:18px;}
  .jpos-dashboard-v2 .jpos-dashboard-priority{gap:14px;}
  .jpos-dashboard-v2 .jpos-dashboard-metric{padding:17px 18px;min-height:120px;}
  .jpos-dashboard-v2 .jpos-card-head{padding:17px 18px;}
  .jpos-dashboard-v2 .jpos-dashboard-attention,
  .jpos-dashboard-v2 .jpos-dashboard-actions,
  .jpos-dashboard-v2 .jpos-dashboard-methods{padding:15px 16px 17px;}
}

@media (max-width:767px){
  .jpos-dashboard-v2{
    --jpos-dashboard-section-gap:16px;
    --jpos-dashboard-card-gap:12px;
  }
  .jpos-dashboard-v2 .jpos-dashboard-priority{grid-template-columns:1fr;gap:12px;}
  .jpos-dashboard-v2 .jpos-dashboard-two-col,
  .jpos-dashboard-v2 .jpos-dashboard-main-grid{gap:16px;}
  .jpos-dashboard-v2 .jpos-dashboard-metric{min-height:112px;padding:16px 17px;}
  .jpos-dashboard-v2 .jpos-dashboard-metric-icon{width:36px;height:36px;flex-basis:36px;}
  .jpos-dashboard-v2 .jpos-card-head{padding:16px;}
  .jpos-dashboard-v2 .jpos-dashboard-attention,
  .jpos-dashboard-v2 .jpos-dashboard-actions,
  .jpos-dashboard-v2 .jpos-dashboard-methods{padding:14px 14px 16px;gap:10px;}
  .jpos-dashboard-v2 .jpos-dashboard-attention-item,
  .jpos-dashboard-v2 .jpos-dashboard-action,
  .jpos-dashboard-v2 .jpos-dashboard-method{min-height:72px;padding:13px 14px;}
}

@media (max-width:430px){
  .jpos-dashboard-v2 .jpos-dashboard-hero{padding:16px;border-radius:15px;}
  .jpos-dashboard-v2 .jpos-dashboard-priority{margin-top:16px;}
  .jpos-dashboard-v2 .jpos-dashboard-metric{border-radius:14px;}
  .jpos-dashboard-v2 .jpos-dashboard-panel{border-radius:14px;}
}

/* =====================================================================
   STEP 9.3.3C — Shift Kasir UI/UX Comfort Polish
   Fokus: konsistensi visual dengan Beranda, spacing, hierarki operasional,
   responsive PC/tablet/HP. Tidak mengubah ShiftService, API, formula,
   permission, saldo, transaksi, Finance, maupun Cutover.
   ===================================================================== */
.jpos-shift-page{
  --jpos-shift-section-gap:20px;
  --jpos-shift-card-gap:16px;
  --jpos-shift-radius:16px;
}

/* Hero memakai bahasa visual yang sama dengan Beranda JPOS. */
.jpos-shift-page .jpos-shift-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:22px 24px;
  color:#fff;
  border-radius:18px;
  background:linear-gradient(135deg,#173154 0%,#244c73 62%,#247a7a 130%);
  box-shadow:0 10px 28px rgba(21,49,84,.12);
}
.jpos-shift-page .jpos-shift-hero:after{
  content:"";
  position:absolute;
  right:-70px;
  top:-110px;
  width:260px;
  height:260px;
  border-radius:50%;
  background:rgba(255,255,255,.055);
  pointer-events:none;
}
.jpos-shift-page .jpos-shift-hero-main{
  min-width:0;
  flex:1 1 auto;
  position:relative;
  z-index:1;
}
.jpos-shift-page .jpos-shift-hero .jpos-eyebrow{color:rgba(255,255,255,.66)}
.jpos-shift-page .jpos-shift-hero h1{
  margin:3px 0 5px;
  color:#fff;
  font-size:1.5rem;
  font-weight:700;
  letter-spacing:-.02em;
}
.jpos-shift-page .jpos-shift-hero p{
  margin:0;
  max-width:760px;
  color:rgba(255,255,255,.8);
  line-height:1.5;
}
.jpos-shift-page .jpos-shift-context-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.jpos-shift-page .jpos-shift-context-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:33px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-size:.76rem;
  line-height:1.25;
}
.jpos-shift-page .jpos-shift-context-chip.is-success{
  background:rgba(55,190,131,.2);
  border-color:rgba(114,225,174,.28);
}
.jpos-shift-page .jpos-shift-context-chip.is-warning{
  background:rgba(245,178,76,.2);
  border-color:rgba(255,203,120,.3);
}
.jpos-shift-page .jpos-shift-hero-actions{
  position:relative;
  z-index:1;
  flex:0 0 auto;
  display:flex;
  align-items:stretch;
  gap:10px;
}
.jpos-shift-page .jpos-shift-hero-actions .btn{
  min-height:46px;
  height:46px;
  padding:0 15px;
  justify-content:center;
  border-radius:10px;
  white-space:nowrap;
}
.jpos-shift-page .jpos-shift-hero-actions .btn-light{
  background:#fff;
  border-color:#fff;
  color:#24415f;
}
.jpos-shift-page .jpos-shift-hero-actions .btn-primary{
  background:#102b50;
  border-color:#102b50;
  color:#fff;
  box-shadow:0 5px 14px rgba(8,30,57,.18);
}

/* Petunjuk kas dipisahkan jelas dari hero dan tidak lagi menempel ke card. */
.jpos-shift-page .jpos-shift-guide{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin-top:16px;
  padding:14px 16px;
  border:1px solid #dce7f1;
  border-radius:14px;
  background:#f8fbfe;
  color:#536a81;
  line-height:1.5;
}
.jpos-shift-page .jpos-shift-guide>i{
  flex:0 0 auto;
  margin-top:1px;
  color:#2e698b;
  font-size:19px;
}
.jpos-shift-page .jpos-shift-guide strong{color:#1f3650}

.jpos-shift-page .jpos-shift-current-wrap{margin-top:var(--jpos-shift-section-gap)}
.jpos-shift-page .jpos-shift-panel{
  border-radius:var(--jpos-shift-radius);
  box-shadow:0 7px 22px rgba(28,44,69,.045);
}
.jpos-shift-page .jpos-shift-current-wrap + .jpos-shift-panel,
.jpos-shift-page .jpos-shift-panel + .jpos-shift-panel{
  margin-top:var(--jpos-shift-section-gap);
}

/* Shift aktif menjadi pusat kontrol utama, bukan sekadar table header. */
.jpos-shift-page .jpos-shift-active-card{
  border-color:#d7e7e5;
  box-shadow:0 8px 24px rgba(26,87,91,.07);
}
.jpos-shift-page .jpos-shift-active-head{
  padding:18px 20px;
  align-items:flex-start;
  gap:18px;
  background:linear-gradient(180deg,#fbfefd 0%,#fff 100%);
}
.jpos-shift-page .jpos-shift-active-head h3,
.jpos-shift-page .jpos-shift-panel>.jpos-card-head h3{
  display:flex;
  align-items:center;
  gap:8px;
  margin:2px 0 5px;
  color:#20364f;
  line-height:1.35;
}
.jpos-shift-page .jpos-shift-active-head h3>i{color:#168159}
.jpos-shift-page .jpos-shift-active-head p,
.jpos-shift-page .jpos-shift-panel>.jpos-card-head p{
  line-height:1.5;
}
.jpos-shift-page .jpos-shift-current-actions{
  gap:8px;
  justify-content:flex-end;
}
.jpos-shift-page .jpos-shift-current-actions .btn{
  min-height:42px;
  height:42px;
  padding:0 13px;
}

/* Ringkasan shift diberi ruang napas dan aksen warna yang mudah dipindai. */
.jpos-shift-page .jpos-shift-metrics{
  grid-template-columns:repeat(auto-fit,minmax(185px,1fr));
  gap:12px;
  margin:0;
  padding:18px 20px 0;
}
.jpos-shift-page .jpos-shift-metrics .jpos-summary-tile{
  position:relative;
  overflow:hidden;
  min-height:108px;
  padding:15px 16px;
  border:1px solid #e1e8ef;
  border-radius:13px;
  background:#fff;
  box-shadow:0 4px 14px rgba(28,44,69,.035);
}
.jpos-shift-page .jpos-shift-metrics .jpos-summary-tile:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:#8190a2;
}
.jpos-shift-page .jpos-shift-metrics .jpos-summary-tile>span{
  display:block;
  color:#748399;
  font-size:.72rem;
  line-height:1.35;
}
.jpos-shift-page .jpos-shift-metrics .jpos-summary-tile>strong{
  display:block;
  margin-top:8px;
  color:#1f2d3d;
  font-size:1.12rem;
  line-height:1.2;
  font-variant-numeric:tabular-nums;
}
.jpos-shift-page .jpos-shift-metrics .jpos-summary-tile>small{
  display:block;
  margin-top:6px;
  color:#8794a4;
  font-size:.69rem;
  line-height:1.4;
}
.jpos-shift-page .jpos-shift-metrics .tone-green:before{background:#2ca46f}
.jpos-shift-page .jpos-shift-metrics .tone-blue:before{background:#3985d0}
.jpos-shift-page .jpos-shift-metrics .tone-teal:before{background:#1f9b9a}
.jpos-shift-page .jpos-shift-metrics .tone-amber:before{background:#d7982e}
.jpos-shift-page .jpos-shift-metrics .tone-slate:before{background:#758599}

.jpos-shift-page .jpos-shift-formula{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:16px 20px 20px!important;
  padding:11px 13px;
  border:1px solid #e3eaf1;
  border-radius:11px;
  background:#fafcfe;
  color:#617287;
  font-size:.75rem;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.jpos-shift-page .jpos-shift-formula>i{color:#58728d;font-size:17px;margin-top:1px}

/* Empty state lebih compact dan informatif. */
.jpos-shift-page .jpos-shift-empty-card{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:104px;
  padding:18px 20px;
}
.jpos-shift-page .jpos-shift-empty-icon{
  width:46px;
  height:46px;
  flex:0 0 46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  background:#eef5fb;
  color:#44719b;
  font-size:23px;
}
.jpos-shift-page .jpos-shift-empty-card strong{
  display:block;
  margin-bottom:4px;
  color:#263a52;
  font-size:.92rem;
}
.jpos-shift-page .jpos-shift-empty-card span{
  display:block;
  color:#788799;
  line-height:1.45;
}

/* Panel table mengikuti ritme card Beranda. */
.jpos-shift-page .jpos-shift-panel>.jpos-card-head{
  padding:18px 20px;
  gap:16px;
}
.jpos-shift-page .jpos-shift-panel>.jpos-card-head h3>i{color:#55738f}
.jpos-shift-page .jpos-shift-open-table{min-width:920px}
.jpos-shift-page .jpos-shift-history-table{min-width:1180px}
.jpos-shift-page .jpos-shift-table-wrap{border-top:0}
.jpos-shift-page .jpos-shift-table thead th{
  padding:12px 15px;
  background:#fbfcfd;
  color:#748397;
}
.jpos-shift-page .jpos-shift-table tbody td{
  padding:14px 15px;
  line-height:1.4;
}
.jpos-shift-page .jpos-shift-table tbody tr:last-child td{border-bottom:0}
.jpos-shift-page .jpos-shift-table .jpos-inline-actions{gap:7px}
.jpos-shift-page .jpos-shift-table .btn-xs{
  min-height:36px;
  height:36px;
  padding:0 11px;
}
.jpos-shift-page .jpos-health-pill{white-space:nowrap}

/* Modal shift tetap compact tetapi tidak sesak. */
.swal2-html-container .jpos-shift-metrics{
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
  gap:10px;
  margin:0 0 16px;
}
.swal2-html-container .jpos-shift-metrics .jpos-summary-tile{
  padding:11px 12px;
  border-radius:10px;
  text-align:left;
}

/* Tablet / viewport sedang. */
@media(max-width:1199px){
  .jpos-shift-page .jpos-shift-hero{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .jpos-shift-page .jpos-shift-hero-actions{
    width:100%;
  }
  .jpos-shift-page .jpos-shift-hero-actions .btn{flex:1 1 0}
  .jpos-shift-page .jpos-shift-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Tablet kecil / HP landscape. */
@media(max-width:991px){
  .jpos-shift-page{font-size:16px}
  .jpos-shift-page .jpos-shift-hero{
    padding:19px 18px;
    gap:18px;
    border-radius:16px;
  }
  .jpos-shift-page .jpos-shift-hero h1{font-size:1.4rem}
  .jpos-shift-page .jpos-shift-hero-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .jpos-shift-page .jpos-shift-hero-actions .btn{width:100%;min-width:0;padding:0 10px}
  .jpos-shift-page .jpos-shift-guide{margin-top:14px;padding:13px 14px}
  .jpos-shift-page .jpos-shift-current-wrap{margin-top:16px}
  .jpos-shift-page .jpos-shift-current-wrap + .jpos-shift-panel,
  .jpos-shift-page .jpos-shift-panel + .jpos-shift-panel{margin-top:16px}
  .jpos-shift-page .jpos-shift-active-head{flex-direction:column;padding:16px}
  .jpos-shift-page .jpos-shift-current-actions{width:100%;justify-content:flex-start}
  .jpos-shift-page .jpos-shift-current-actions .btn{flex:1 1 auto;justify-content:center}
  .jpos-shift-page .jpos-shift-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px 16px 0}
  .jpos-shift-page .jpos-shift-metrics .jpos-summary-tile{min-height:104px}
  .jpos-shift-page .jpos-shift-formula{margin:14px 16px 16px!important}
  .jpos-shift-page .jpos-shift-panel>.jpos-card-head{padding:16px}
}

/* HP: table berubah menjadi card list agar tidak harus scroll horizontal. */
@media(max-width:767px){
  .jpos-shift-page{--jpos-shift-section-gap:16px}
  .jpos-shift-page .jpos-shift-hero{padding:17px 15px}
  .jpos-shift-page .jpos-shift-hero p{font-size:.9rem}
  .jpos-shift-page .jpos-shift-context-chip{font-size:.78rem}
  .jpos-shift-page .jpos-shift-hero-actions{grid-template-columns:1fr 1fr}
  .jpos-shift-page .jpos-shift-hero-actions .js-shift-open{grid-column:1/-1}
  .jpos-shift-page .jpos-shift-guide{font-size:.9rem}
  .jpos-shift-page .jpos-shift-current-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .jpos-shift-page .jpos-shift-current-actions .js-shift-close{grid-column:1/-1}
  .jpos-shift-page .jpos-shift-metrics{grid-template-columns:1fr 1fr;gap:9px;padding:14px 14px 0}
  .jpos-shift-page .jpos-shift-metrics .jpos-summary-tile{min-height:100px;padding:13px 14px}
  .jpos-shift-page .jpos-shift-metrics .jpos-summary-tile>span{font-size:.76rem}
  .jpos-shift-page .jpos-shift-metrics .jpos-summary-tile>strong{font-size:1.08rem}
  .jpos-shift-page .jpos-shift-metrics .jpos-summary-tile>small{font-size:.75rem}
  .jpos-shift-page .jpos-shift-formula{margin:12px 14px 14px!important;font-size:.82rem}
  .jpos-shift-page .jpos-shift-empty-card{padding:16px;align-items:flex-start}

  .jpos-shift-page .jpos-shift-table-wrap{
    overflow:visible;
    padding:0 12px 12px;
  }
  .jpos-shift-page .jpos-shift-table{
    display:block;
    width:100%;
    min-width:0!important;
    white-space:normal;
    background:transparent;
  }
  .jpos-shift-page .jpos-shift-table thead{display:none}
  .jpos-shift-page .jpos-shift-table tbody{
    display:grid;
    gap:12px;
    width:100%;
  }
  .jpos-shift-page .jpos-shift-table tbody tr{
    display:block;
    width:100%;
    padding:4px 13px;
    border:1px solid #e1e8ef;
    border-radius:13px;
    background:#fff;
    box-shadow:0 3px 12px rgba(28,44,69,.035);
  }
  .jpos-shift-page .jpos-shift-table tbody td{
    display:grid;
    grid-template-columns:118px minmax(0,1fr);
    align-items:start;
    gap:12px;
    width:100%;
    padding:10px 0!important;
    border:0;
    border-bottom:1px solid #edf1f5;
    text-align:left!important;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .jpos-shift-page .jpos-shift-table tbody td:last-child{border-bottom:0}
  .jpos-shift-page .jpos-shift-table tbody td:before{
    content:attr(data-label);
    color:#7b899a;
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.035em;
    line-height:1.35;
    text-transform:uppercase;
  }
  .jpos-shift-page .jpos-shift-table tbody td.jpos-empty-cell{
    display:block;
    padding:22px 8px!important;
    text-align:center!important;
  }
  .jpos-shift-page .jpos-shift-table tbody td.jpos-empty-cell:before{display:none}
  .jpos-shift-page .jpos-shift-table .jpos-inline-actions{display:flex;flex-wrap:wrap;justify-content:flex-start}
  .jpos-shift-page .jpos-shift-table .btn-xs{min-height:42px;height:42px}
}

@media(max-width:430px){
  .jpos-shift-page .jpos-shift-hero-actions{grid-template-columns:1fr}
  .jpos-shift-page .jpos-shift-hero-actions .js-shift-open{grid-column:auto}
  .jpos-shift-page .jpos-shift-current-actions{grid-template-columns:1fr}
  .jpos-shift-page .jpos-shift-current-actions .js-shift-close{grid-column:auto}
  .jpos-shift-page .jpos-shift-metrics{grid-template-columns:1fr}
  .jpos-shift-page .jpos-shift-table tbody td{grid-template-columns:100px minmax(0,1fr);gap:10px}
}

/* =====================================================================
   JPOS STEP 9.3.3D — Transaction Workspace Operational UX Polish
   Scope: daftar/home Transaksi + contextual shortcut spacing only.
   Tidak mengubah Transaction / Payment / Finance business logic.
   ===================================================================== */
.jpos-tx-workspace{
  --jpos-tx-gap:18px;
  --jpos-tx-radius:14px;
  display:flex;
  flex-direction:column;
  gap:var(--jpos-tx-gap);
}
.jpos-tx-workspace .jpos-pagehead{margin-bottom:0!important;}
.jpos-tx-home-head{
  align-items:flex-end;
  padding-bottom:2px;
}
.jpos-tx-home-head .jpos-pagehead-copy p{
  max-width:760px;
  margin-bottom:0;
}
.jpos-tx-primary-actions{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.jpos-tx-primary-actions .btn{
  min-height:40px;
  padding-left:13px;
  padding-right:13px;
}

/* Mode utama: Hari Ini / Belum Selesai / Riwayat */
.jpos-tx-modebar{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.jpos-tx-mode{
  min-width:0;
  min-height:68px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  padding:11px 13px;
  border:1px solid #dfe7ef;
  border-radius:13px;
  background:#fff;
  color:#31465d;
  font:inherit;
  text-align:left;
  cursor:pointer;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease;
}
.jpos-tx-mode:hover{
  border-color:#bcd5df;
  box-shadow:0 5px 16px rgba(27,49,76,.055);
}
.jpos-tx-mode:active{transform:translateY(1px);}
.jpos-tx-mode.is-active{
  border-color:#33b8bd;
  background:linear-gradient(180deg,#f6ffff 0%,#eefbfb 100%);
  box-shadow:inset 3px 0 0 #21aeb4;
}
.jpos-tx-mode-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#e9f8f9;
  color:#15939b;
  font-size:1.15rem;
}
.jpos-tx-mode-icon.tone-amber{background:#fff4df;color:#bf7b18;}
.jpos-tx-mode-icon.tone-slate{background:#edf3f8;color:#5e7389;}
.jpos-tx-mode strong,
.jpos-tx-mode small{display:block;}
.jpos-tx-mode strong{color:#21364d;font-size:.88rem;line-height:1.25;}
.jpos-tx-mode small{margin-top:3px;color:#7b8b9d;font-size:.72rem;line-height:1.25;}
.jpos-tx-mode-count{
  min-width:30px;
  height:28px;
  display:grid;
  place-items:center;
  padding:0 7px;
  border-radius:999px;
  background:#edf4f8;
  color:#314c67;
  font-size:.76rem;
}
.jpos-tx-mode.is-active .jpos-tx-mode-count{background:#d9f3f1;color:#087a7d;}
.jpos-tx-mode-arrow{color:#9aaaba;font-size:1rem;}

/* Card daftar dibuat lega, tanpa stepper / ribbon shortcut berulang. */
.jpos-tx-list-card{
  overflow:hidden;
  border-radius:var(--jpos-tx-radius)!important;
}
.jpos-tx-list-head{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:15px 17px 13px;
  border-bottom:1px solid #e7edf3;
  background:#fff;
}
.jpos-tx-list-head h3{margin:0;color:#20334b;font-size:1rem;}
.jpos-tx-list-head p{margin:4px 0 0;color:#78899c;font-size:.76rem;}
.jpos-tx-period-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  max-width:52%;
  padding:7px 10px;
  border:1px solid #dfe8ef;
  border-radius:10px;
  background:#f8fafc;
  color:#50667d;
  font-size:.73rem;
  font-weight:700;
  line-height:1.25;
  text-align:right;
}

.jpos-tx-filterbar{
  display:grid!important;
  grid-template-columns:minmax(260px,1.45fr) minmax(145px,.5fr) minmax(120px,.38fr) auto auto;
  align-items:end;
  gap:10px!important;
  padding:13px 16px!important;
  border-bottom:1px solid #e7edf3!important;
  background:#fbfcfd;
}
.jpos-tx-search{align-self:end;}
.jpos-tx-shift-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 8px;
  border:1px solid #dce8ef;
  border-radius:999px;
  background:#f5f9fb;
  color:#456077;
  font-size:.72rem;
  font-weight:800;
  white-space:nowrap;
}
.jpos-tx-shift-badge i{color:#2d9ca4;}
.jpos-tx-filter-field,
.jpos-tx-date-field{min-width:0;}
.jpos-tx-filter-field label,
.jpos-tx-date-field label{
  display:block;
  margin:0 0 5px;
  color:#63768a;
  font-size:.68rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.025em;
}
.jpos-tx-history-dates{
  display:grid;
  grid-template-columns:repeat(2,minmax(165px,1fr));
  gap:9px;
  min-width:350px;
}
.jpos-tx-history-dates[hidden],
.jpos-tx-filter-field[hidden]{display:none!important;}
.jpos-tx-date-field small{
  display:block;
  min-height:14px;
  margin-top:4px;
  color:#8493a3;
  font-size:.64rem;
  line-height:1.2;
}
.jpos-tx-filterbar .form-control{
  min-height:40px;
  height:40px;
  border-radius:9px;
}
.jpos-tx-refresh{
  min-height:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding-left:12px;
  padding-right:12px;
  white-space:nowrap;
}
.jpos-tx-loading-note{
  padding:8px 16px;
  border-bottom:1px solid #edf1f4;
  background:#f9fbfd;
  color:#76879a;
  font-size:.72rem;
}

/* Tanggal operasional selalu tampil dalam format Indonesia. */
.jpos-tx-workspace .tx72-list-main{width:20%;}
.jpos-tx-workspace .tx72-list-customer{width:16%;}
.jpos-tx-workspace .tx72-list-store{width:10%;}
.jpos-tx-workspace .tx72-list-date{width:14%;white-space:normal;line-height:1.28;}
.jpos-tx-workspace .jpos-tx-shift-cell{width:7%;white-space:nowrap;}
.jpos-tx-workspace .tx72-list-total{width:9%;}
.jpos-tx-workspace .tx72-list-outstanding{width:9%;}
.jpos-tx-workspace .tx72-list-status{width:8%;}
.jpos-tx-workspace .tx72-source-chip{background:#edf7f8;color:#35727a;}
.jpos-tx-workspace .jpos-badge.draft{white-space:nowrap;}

/* Shortcut pada detail transaksi saja; tidak perlu mengulang F6/F7 di list. */
.tx6-shortcuts-detail{
  margin-bottom:14px!important;
  padding:0 1px 2px!important;
}
.tx6-shortcuts-detail .tx6-shortcut{
  min-height:36px;
}

@media(max-width:1199px){
  .jpos-tx-filterbar{
    grid-template-columns:minmax(220px,1fr) minmax(145px,.52fr) minmax(120px,.4fr);
  }
  .jpos-tx-history-dates{grid-column:1/3;min-width:0;}
  .jpos-tx-refresh{grid-column:3;grid-row:2;}
}

@media(max-width:991px){
  .jpos-tx-workspace{--jpos-tx-gap:16px;}
  .jpos-tx-home-head{align-items:stretch;}
  .jpos-tx-primary-actions{width:100%;}
  .jpos-tx-primary-actions .btn{flex:1 1 190px;min-height:44px;}
  .jpos-tx-modebar{gap:9px;}
  .jpos-tx-mode{grid-template-columns:38px minmax(0,1fr) auto;min-height:64px;padding:10px;gap:9px;}
  .jpos-tx-mode-icon{width:36px;height:36px;}
  .jpos-tx-filterbar{grid-template-columns:minmax(0,1fr) minmax(145px,.45fr) minmax(120px,.38fr);}
}

@media(max-width:767px){
  .jpos-tx-workspace{
    --jpos-tx-gap:14px;
    font-size:16px;
    padding-bottom:76px;
  }
  .jpos-tx-home-head .jpos-pagehead-copy p{font-size:.88rem;line-height:1.42;}
  .jpos-tx-primary-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;}
  .jpos-tx-primary-actions .btn{width:100%;min-width:0;min-height:48px;padding:8px 10px;}
  .jpos-tx-primary-actions .tx6-key{display:none;}

  .jpos-tx-modebar{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
  .jpos-tx-mode{
    min-height:68px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    padding:8px 5px;
    text-align:center;
    box-shadow:none!important;
  }
  .jpos-tx-mode.is-active{box-shadow:inset 0 -3px 0 #21aeb4!important;}
  .jpos-tx-mode-icon{width:30px;height:30px;border-radius:9px;font-size:1rem;}
  .jpos-tx-mode strong{font-size:.82rem;line-height:1.15;}
  .jpos-tx-mode small,.jpos-tx-mode-arrow{display:none;}
  .jpos-tx-mode-count{
    position:absolute;
    margin:0 0 42px 62px;
    min-width:24px;
    height:22px;
    padding:0 5px;
    font-size:.68rem;
    box-shadow:0 0 0 2px #fff;
  }

  .jpos-tx-list-head{min-height:0;align-items:flex-start;padding:13px 12px 11px;}
  .jpos-tx-list-head h3{font-size:1rem;}
  .jpos-tx-list-head p{font-size:.78rem;line-height:1.35;}
  .jpos-tx-period-chip{max-width:46%;padding:6px 8px;font-size:.7rem;}

  .jpos-tx-list-card .jpos-tx-filterbar{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:9px!important;
    padding:11px!important;
  }
  .jpos-tx-filterbar .jpos-tx-search{grid-column:1/-1!important;}
  .jpos-tx-filterbar .js-tx-status-wrap{grid-column:1!important;}
  .jpos-tx-filterbar .js-tx-shift-wrap{grid-column:2!important;}
  .jpos-tx-filterbar .jpos-tx-history-dates{grid-column:1/-1!important;grid-template-columns:1fr 1fr;gap:8px;}
  .jpos-tx-filterbar .jpos-tx-refresh{grid-column:1/-1!important;grid-row:auto!important;width:100%;min-height:46px!important;height:46px!important;}
  .jpos-tx-filterbar .form-control{min-height:46px!important;height:46px!important;font-size:16px!important;}
  .jpos-tx-filter-field label,.jpos-tx-date-field label{font-size:.72rem;}
  .jpos-tx-date-field small{font-size:.68rem;}

  /* Canonical JPOS tetap TABLE-FIRST di HP dengan swipe horizontal. */
  .jpos-tx-workspace .tx6-transaction-table{
    width:1360px!important;
    min-width:1360px!important;
    font-size:.86rem!important;
  }
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(1),
  .jpos-tx-workspace .tx6-transaction-table td:nth-child(1){width:220px!important;}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(2),
  .jpos-tx-workspace .tx6-transaction-table td:nth-child(2){width:180px!important;}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(3),
  .jpos-tx-workspace .tx6-transaction-table td:nth-child(3){width:125px!important;}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(4),
  .jpos-tx-workspace .tx6-transaction-table td:nth-child(4){width:210px!important;white-space:normal!important;}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(5),
  .jpos-tx-workspace .tx6-transaction-table td:nth-child(5){width:125px!important;}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(6),
  .jpos-tx-workspace .tx6-transaction-table td:nth-child(6){width:100px!important;text-align:center!important;}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(7),
  .jpos-tx-workspace .tx6-transaction-table td:nth-child(7){width:140px!important;}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(8),
  .jpos-tx-workspace .tx6-transaction-table td:nth-child(8),
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(9),
  .jpos-tx-workspace .tx6-transaction-table td:nth-child(9){width:125px!important;text-align:right!important;}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(10),
  .jpos-tx-workspace .tx6-transaction-table td:nth-child(10){width:105px!important;}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(11),
  .jpos-tx-workspace .tx6-transaction-table td:nth-child(11){width:105px!important;}
  .jpos-tx-workspace .tx72-desktop-date{display:inline!important;}
  .jpos-tx-workspace .tx72-mobile-date{display:none!important;}
}

@media(max-width:430px){
  .jpos-tx-primary-actions{grid-template-columns:1fr;}
  .jpos-tx-list-head{display:block;}
  .jpos-tx-period-chip{max-width:100%;margin-top:9px;text-align:left;}
  .jpos-tx-filterbar .js-tx-status-wrap,
  .jpos-tx-filterbar .js-tx-shift-wrap{grid-column:1/-1!important;}
  .jpos-tx-filterbar .jpos-tx-history-dates{grid-template-columns:1fr!important;}
  .jpos-tx-mode{min-height:72px;}
  .jpos-tx-mode strong{font-size:.78rem;}
}


/* ==========================================================================\n   STEP 9.3.3E — Booking Workspace Operational UX Polish\n   ========================================================================== */

/* Helper label hari di bawah date picker Riwayat dihilangkan karena period chip sudah cukup. */
.jpos-tx-date-field > small.js-tx-date-from-label,
.jpos-tx-date-field > small.js-tx-date-to-label{display:none!important;}

.jpos-booking-workspace{
  --jpos-booking-gap:18px;
  display:flex;
  flex-direction:column;
  gap:var(--jpos-booking-gap);
}
.jpos-booking-pagehead{margin-bottom:0!important;}
.jpos-booking-card{overflow:hidden;border-radius:14px!important;}
.jpos-booking-card-head{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px 14px;
  border-bottom:1px solid #e7edf3;
  background:#fff;
}
.jpos-booking-card-head h3{margin:0;color:#20334b;font-size:1rem;}
.jpos-booking-card-head p{margin:4px 0 0;color:#78899c;font-size:.76rem;line-height:1.4;}
.jpos-booking-count{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:6px 11px;
  border-radius:999px;
  background:#e9f8f7;
  color:#147f80;
  font-size:.75rem;
  font-weight:800;
}
.jpos-booking-filterbar{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) auto;
  gap:10px!important;
  padding:13px 16px!important;
  border-bottom:1px solid #e7edf3!important;
  background:#fbfcfd;
}
.jpos-booking-filterbar .form-control{min-height:42px;height:42px;border-radius:9px;}
.jpos-booking-filterbar .btn{min-height:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;}
.jpos-booking-loading{padding:8px 16px;border-bottom:1px solid #edf1f4;background:#f9fbfd;color:#74869a;font-size:.72rem;}
.jpos-booking-table td{vertical-align:middle;}
.jpos-booking-table .jpos-booking-number{color:#1c4163;white-space:nowrap;}
.jpos-booking-table .btn{white-space:nowrap;min-height:36px;}
.jpos-booking-modal-searchbar{grid-template-columns:1fr!important;}

@media(max-width:767px){
  .jpos-booking-workspace{--jpos-booking-gap:14px;font-size:16px;padding-bottom:76px;}
  .jpos-booking-pagehead .jpos-pagehead-copy p{font-size:.88rem;line-height:1.42;}
  .jpos-booking-card-head{align-items:flex-start;padding:14px 12px 12px;}
  .jpos-booking-card-head h3{font-size:1rem;}
  .jpos-booking-card-head p{font-size:.8rem;}
  .jpos-booking-count{font-size:.72rem;min-height:32px;padding:5px 9px;}
  .jpos-booking-filterbar{grid-template-columns:1fr!important;padding:11px!important;gap:9px!important;}
  .jpos-booking-filterbar .form-control,
  .jpos-booking-filterbar .btn{min-height:46px!important;height:46px!important;font-size:16px!important;}
  .jpos-booking-filterbar .btn{width:100%;}

  /* Booking mengikuti canonical JPOS: table-first + horizontal swipe pada HP. */
  .jpos-booking-table{width:1120px!important;min-width:1120px!important;font-size:.86rem!important;}
  .jpos-booking-table th:nth-child(1),.jpos-booking-table td:nth-child(1){width:150px!important;}
  .jpos-booking-table th:nth-child(2),.jpos-booking-table td:nth-child(2){width:190px!important;}
  .jpos-booking-table th:nth-child(3),.jpos-booking-table td:nth-child(3){width:270px!important;}
  .jpos-booking-table th:nth-child(4),.jpos-booking-table td:nth-child(4){width:220px!important;}
  .jpos-booking-table th:nth-child(5),.jpos-booking-table td:nth-child(5){width:160px!important;}
  .jpos-booking-table th:nth-child(6),.jpos-booking-table td:nth-child(6){width:130px!important;}
}

@media(max-width:430px){
  .jpos-booking-card-head{display:block;}
  .jpos-booking-count{margin-top:10px;}
}


/* ==========================================================================
   STEP 9.3.3F — Piutang Operational UX Polish
   ========================================================================== */
.jpos-receivable-workspace{
  --jpos-rec-gap:18px;
  display:flex;
  flex-direction:column;
  gap:var(--jpos-rec-gap);
}
.jpos-receivable-pagehead{margin-bottom:0!important;}
.jpos-receivable-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.jpos-receivable-summary-loading{
  grid-column:1/-1;
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e1e8ef;
  border-radius:14px;
  background:#fff;
  color:#708297;
  font-size:.78rem;
}
.jpos-receivable-summary-card{
  position:relative;
  min-height:108px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:16px 17px;
  border:1px solid #e1e8ef;
  border-left:4px solid #7b8ea4;
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 14px rgba(24,53,82,.045);
  overflow:hidden;
}
.jpos-receivable-summary-card.tone-blue{border-left-color:#3f8ee8;}
.jpos-receivable-summary-card.tone-amber{border-left-color:#e4a433;}
.jpos-receivable-summary-card.tone-teal{border-left-color:#20a2a3;}
.jpos-receivable-summary-card.tone-navy{border-left-color:#274a70;}
.jpos-receivable-summary-icon{
  flex:0 0 38px;
  width:38px;height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:#f0f5f9;
  color:#365a7e;
  font-size:1.1rem;
}
.jpos-receivable-summary-card.tone-blue .jpos-receivable-summary-icon{background:#edf5ff;color:#2f7ed7;}
.jpos-receivable-summary-card.tone-amber .jpos-receivable-summary-icon{background:#fff5e3;color:#b87913;}
.jpos-receivable-summary-card.tone-teal .jpos-receivable-summary-icon{background:#eaf8f7;color:#148687;}
.jpos-receivable-summary-card.tone-navy .jpos-receivable-summary-icon{background:#edf2f7;color:#274a70;}
.jpos-receivable-summary-card > div small,.jpos-receivable-summary-card > div span{display:block;color:#74859a;}
.jpos-receivable-summary-card > div small{font-size:.68rem;font-weight:800;letter-spacing:.01em;}
.jpos-receivable-summary-card > div strong{display:block;margin:5px 0 2px;color:#20334b;font-size:1.25rem;line-height:1.1;}
.jpos-receivable-summary-card > div span{font-size:.68rem;}
.jpos-receivable-summary-icon > i{line-height:1;}
.jpos-receivable-card{overflow:hidden;border-radius:14px!important;}
.jpos-receivable-card-head{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px 14px;
  border-bottom:1px solid #e7edf3;
  background:#fff;
}
.jpos-receivable-card-head h3{margin:0;color:#20334b;font-size:1rem;}
.jpos-receivable-card-head p{margin:4px 0 0;color:#78899c;font-size:.76rem;line-height:1.4;}
.jpos-receivable-result-count{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:6px 11px;
  border-radius:999px;
  background:#edf5f8;
  color:#365a72;
  font-size:.75rem;
  font-weight:800;
}
.jpos-receivable-statusbar{
  display:flex;
  gap:8px;
  padding:11px 16px;
  border-bottom:1px solid #e7edf3;
  background:#fbfcfd;
  overflow:auto;
}
.jpos-receivable-status{
  appearance:none;
  border:1px solid #dce5ed;
  background:#fff;
  color:#53687f;
  min-height:38px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:10px;
  font:inherit;
  font-size:.76rem;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
}
.jpos-receivable-status b{
  min-width:23px;
  height:23px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 6px;
  border-radius:999px;
  background:#edf2f6;
  color:#50677f;
  font-size:.68rem;
}
.jpos-receivable-status.active{border-color:#2aa9ad;background:#eefafa;color:#157c80;box-shadow:0 0 0 1px rgba(42,169,173,.08);}
.jpos-receivable-status.active b{background:#d8f3f1;color:#157c80;}
.jpos-receivable-filterbar{
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) auto;
  gap:10px!important;
  padding:13px 16px!important;
  border-bottom:1px solid #e7edf3!important;
  background:#fff;
}
.jpos-receivable-filterbar .form-control{min-height:42px;height:42px;border-radius:9px;}
.jpos-receivable-filterbar .btn{min-height:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;}
.jpos-receivable-loading{padding:8px 16px;border-bottom:1px solid #edf1f4;background:#f9fbfd;color:#74869a;font-size:.72rem;}
.jpos-receivable-table td{vertical-align:middle;}
.jpos-receivable-customer{color:#20334b;}
.jpos-receivable-txlink{
  border:0;background:none;padding:0;color:#245179;font:inherit;font-weight:800;cursor:pointer;text-align:left;
}
.jpos-receivable-txlink:hover{text-decoration:underline;}
.jpos-receivable-txtext{color:#29445f;}
.jpos-receivable-outstanding{font-weight:900!important;color:#b76f0a;}
.jpos-receivable-badge{
  display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 9px;border-radius:999px;font-size:.67rem;font-weight:800;white-space:nowrap;
}
.jpos-receivable-badge.unpaid{background:#fff3df;color:#a8660d;}
.jpos-receivable-badge.partial{background:#e8f7f6;color:#147f80;}
.jpos-receivable-actions .btn{min-height:36px;white-space:nowrap;}

@media(max-width:1180px){
  .jpos-receivable-summary{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media(max-width:767px){
  .jpos-receivable-workspace{--jpos-rec-gap:14px;font-size:16px;padding-bottom:76px;}
  .jpos-receivable-pagehead .jpos-pagehead-copy p{font-size:.88rem;line-height:1.42;}
  .jpos-receivable-summary{grid-template-columns:1fr 1fr;gap:10px;}
  .jpos-receivable-summary-card{min-height:100px;padding:13px 12px;gap:10px;}
  .jpos-receivable-summary-icon{width:34px;height:34px;flex-basis:34px;}
  .jpos-receivable-summary-card strong{font-size:1.06rem;}
  .jpos-receivable-summary-card small{font-size:.7rem;}
  .jpos-receivable-card-head{align-items:flex-start;padding:14px 12px 12px;}
  .jpos-receivable-card-head h3{font-size:1rem;}
  .jpos-receivable-card-head p{font-size:.8rem;}
  .jpos-receivable-result-count{font-size:.72rem;min-height:32px;padding:5px 9px;}
  .jpos-receivable-statusbar{padding:10px 11px;gap:7px;}
  .jpos-receivable-status{min-height:42px;font-size:.78rem;padding:7px 11px;}
  .jpos-receivable-filterbar{grid-template-columns:1fr!important;padding:11px!important;gap:9px!important;}
  .jpos-receivable-filterbar .form-control,.jpos-receivable-filterbar .btn{min-height:46px!important;height:46px!important;font-size:16px!important;}
  .jpos-receivable-filterbar .btn{width:100%;}

  /* Piutang dibuat card-like pada HP agar customer, sisa dan aksi langsung terbaca. */
  .jpos-receivable-table-wrap{overflow:visible!important;}
  .jpos-receivable-table,.jpos-receivable-table tbody,.jpos-receivable-table tr,.jpos-receivable-table td{display:block!important;width:100%!important;}
  .jpos-receivable-table thead{display:none!important;}
  .jpos-receivable-table{min-width:0!important;margin:0!important;background:#f6f8fa;}
  .jpos-receivable-table tbody{padding:10px!important;}
  .jpos-receivable-table .jpos-receivable-row{
    position:relative;
    margin:0 0 11px;
    padding:13px 13px 12px;
    border:1px solid #dfe7ee!important;
    border-radius:13px;
    background:#fff;
    box-shadow:0 3px 10px rgba(25,51,75,.045);
  }
  .jpos-receivable-table .jpos-receivable-row:last-child{margin-bottom:0;}
  .jpos-receivable-table .jpos-receivable-row td{
    min-height:0!important;
    padding:6px 0!important;
    border:0!important;
    text-align:left!important;
    font-size:.9rem!important;
  }
  .jpos-receivable-table .jpos-receivable-row td[data-label]:before{
    content:attr(data-label);
    display:block;
    margin-bottom:2px;
    color:#8190a1;
    font-size:.68rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.025em;
  }
  .jpos-receivable-table .jpos-receivable-row td[data-label="Customer"]{padding-top:0!important;padding-right:96px!important;}
  .jpos-receivable-table .jpos-receivable-row td[data-label="Status"]{position:absolute;right:12px;top:12px;width:auto!important;padding:0!important;}
  .jpos-receivable-table .jpos-receivable-row td[data-label="Status"]:before{display:none!important;}
  .jpos-receivable-table .jpos-receivable-row td[data-label="Total"],
  .jpos-receivable-table .jpos-receivable-row td[data-label="Terbayar"]{
    display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:12px;
  }
  .jpos-receivable-table .jpos-receivable-row td[data-label="Total"]:before,
  .jpos-receivable-table .jpos-receivable-row td[data-label="Terbayar"]:before{margin:0;}
  .jpos-receivable-table .jpos-receivable-row td[data-label="Sisa"]{
    margin-top:4px;padding:10px 11px!important;border-radius:10px!important;background:#fff6e8;text-align:right!important;font-size:1.08rem!important;
  }
  .jpos-receivable-table .jpos-receivable-row td[data-label="Sisa"]:before{text-align:left;float:left;margin-top:3px;}
  .jpos-receivable-actions{padding-top:10px!important;}
  .jpos-receivable-actions .btn{width:100%;min-height:46px!important;font-size:16px!important;}
  .jpos-receivable-table .jpos-empty-cell{display:table-cell!important;padding:24px 14px!important;text-align:center!important;}
}

@media(max-width:430px){
  .jpos-receivable-summary{grid-template-columns:1fr;}
  .jpos-receivable-summary-card{min-height:86px;}
  .jpos-receivable-card-head{display:block;}
  .jpos-receivable-result-count{margin-top:10px;}
}


/* ==========================================================================
   STEP 9.3.3F.1 — Paid Transaction Revision Guard + Piutang icon polish
   ========================================================================== */

/* Piutang summary icon dibuat lebih terbaca pada desktop/tablet tanpa
   mengubah density card. */
.jpos-receivable-summary-icon{
  width:48px;
  height:48px;
  flex-basis:48px;
  border-radius:13px;
  font-size:1.38rem;
}
.jpos-receivable-actions-group{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.jpos-receivable-actions-group .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

/* Transaction Final correction path. */
.tx-revision-mode-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 8px;
  border-radius:999px;
  background:#fff2dc;
  color:#a96509;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.02em;
  white-space:nowrap;
}
.tx-revision-guard-note{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border:1px solid #f0d7ad;
  border-left:4px solid #dfa03a;
  border-radius:12px;
  background:#fffaf1;
  color:#42556b;
}
.tx-revision-guard-icon{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:#fff0d6;
  color:#ad6e0d;
  font-size:1.2rem;
}
.tx-revision-guard-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.tx-revision-guard-copy strong{color:#273b52;font-size:.88rem;}
.tx-revision-guard-copy span{color:#50647a;font-size:.78rem;line-height:1.4;}
.tx-revision-guard-copy small{color:#7a8797;font-size:.7rem;line-height:1.35;}
.tx-revision-locked-field{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:7px 10px;
  border:1px solid #dfe6ed;
  border-radius:8px;
  background:#f6f8fa;
  color:#7b8998;
  font-size:.75rem;
  font-weight:700;
}
.jpos-revision-confirm{color:#455b72;}
.jpos-revision-confirm-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin-bottom:12px;
}
.jpos-revision-confirm-grid>div{
  padding:10px 11px;
  border:1px solid #e1e8ef;
  border-radius:10px;
  background:#f8fafc;
}
.jpos-revision-confirm-grid span{
  display:block;
  margin-bottom:3px;
  color:#7a8999;
  font-size:.75rem;
}
.jpos-revision-confirm-grid strong{
  display:block;
  color:#23394f;
  font-size:1rem;
}
.jpos-revision-confirm p{
  margin:8px 0 0;
  line-height:1.45;
}
.tx-revision-mobile-bar{
  border-top-color:#efd6aa!important;
  background:#fffaf2!important;
}

@media(max-width:767px){
  .jpos-receivable-summary-icon{
    width:42px;
    height:42px;
    flex-basis:42px;
    border-radius:12px;
    font-size:1.22rem;
  }
  .jpos-receivable-actions-group{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
    gap:8px;
  }
  .jpos-receivable-actions-group .btn{
    width:100%;
    min-height:46px!important;
    font-size:16px!important;
  }
  .tx-revision-guard-note{
    grid-template-columns:auto minmax(0,1fr);
    align-items:start;
    padding:13px;
  }
  .tx-revision-guard-note .js-revision-exit{
    grid-column:1/-1;
    width:100%;
    min-height:46px;
    font-size:16px;
  }
  .tx-revision-guard-copy strong{font-size:1rem;}
  .tx-revision-guard-copy span{font-size:.9rem;}
  .tx-revision-guard-copy small{font-size:.82rem;}
  .jpos-revision-confirm-grid{grid-template-columns:1fr 1fr;}
}

@media(max-width:430px){
  .jpos-revision-confirm-grid{grid-template-columns:1fr;}
}

/* ============================================================
   STEP 9.3.3F.2 — Audit Log Operational UX Polish
   Scoped only to .jpos-audit-page / detail modal components.
   ============================================================ */
.jpos-audit-page{display:flex;flex-direction:column;gap:18px}
.jpos-audit-page .jpos-pagehead{margin-bottom:0}
.jpos-audit-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.jpos-audit-metric{min-height:112px;background:#fff;border:1px solid var(--jpos-line);border-left:4px solid #3d8ef7;border-radius:14px;box-shadow:var(--jpos-shadow);padding:18px;display:flex;align-items:center;gap:15px}
.jpos-audit-metric.is-amber{border-left-color:#e5a11b}.jpos-audit-metric.is-teal{border-left-color:#18a0a5}
.jpos-audit-metric-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;flex:0 0 48px;background:#eaf3ff;color:#2e79ca;font-size:1.45rem}
.jpos-audit-metric.is-amber .jpos-audit-metric-icon{background:#fff4dd;color:#b5790d}.jpos-audit-metric.is-teal .jpos-audit-metric-icon{background:#e7f7f7;color:#148b90}
.jpos-audit-metric>div{min-width:0;display:flex;flex-direction:column}.jpos-audit-metric small{color:#6f7d8f;font-weight:700}.jpos-audit-metric strong{font-size:1.55rem;line-height:1.15;margin:5px 0 3px;color:#1d2b3f}.jpos-audit-metric span:last-child{color:#8490a0;font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-audit-card{overflow:visible}.jpos-audit-card-head{padding:17px 18px}.jpos-audit-filters{display:grid;grid-template-columns:minmax(300px,1fr) minmax(160px,.28fr) minmax(170px,.3fr) minmax(165px,.28fr) minmax(165px,.28fr);gap:10px;padding:14px 16px;border-bottom:1px solid var(--jpos-line);background:#fbfcfd;align-items:end}
.jpos-audit-filters label{display:block;margin:0 0 5px;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.035em;color:#657487}.jpos-audit-filters .form-control{min-height:42px}
.jpos-audit-search{align-self:end}.jpos-audit-select-wrap,.jpos-audit-date-wrap{min-width:0}.jpos-audit-date-wrap small{display:block;color:#8390a0;font-size:.7rem;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-audit-table{white-space:normal}.jpos-audit-table th:nth-child(1){min-width:220px}.jpos-audit-table th:nth-child(2){min-width:120px}.jpos-audit-table th:nth-child(3){min-width:220px}.jpos-audit-table th:nth-child(4){min-width:210px}.jpos-audit-table th:nth-child(5){min-width:300px}.jpos-audit-table tbody td{padding:14px 12px}.jpos-audit-row{cursor:pointer}.jpos-audit-row:focus{outline:2px solid rgba(22,159,166,.35);outline-offset:-2px;background:#fbfeff}
.jpos-audit-action{display:flex;align-items:center;gap:10px}.jpos-audit-action>i{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#eef4fb;color:#4d739c;font-size:1rem;flex:0 0 34px}.jpos-audit-action>span{display:flex;flex-direction:column;min-width:0}.jpos-audit-action strong{color:#223248}.jpos-audit-action small{font-size:.72rem;color:#8591a0;margin-top:2px}.jpos-audit-action.is-teal>i{background:#e6f7f6;color:#0f8f93}.jpos-audit-action.is-amber>i{background:#fff3de;color:#ad7411}.jpos-audit-action.is-green>i{background:#e9f8ef;color:#157c56}.jpos-audit-action.is-blue>i{background:#eaf3ff;color:#327dcc}.jpos-audit-action.is-slate>i{background:#eef1f5;color:#5f7185}.jpos-audit-reason{display:block;line-height:1.45;color:#536275;max-width:520px}

.jpos-audit-detail{display:flex;flex-direction:column;gap:14px}.jpos-audit-detail-hero{display:flex;align-items:center;gap:14px;padding:17px 18px;border:1px solid #dfe7ef;border-radius:14px;background:#f8fbfe}.jpos-audit-detail-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:14px;background:#eaf3ff;color:#397dbf;font-size:1.55rem;flex:0 0 52px}.jpos-audit-detail-hero.is-teal .jpos-audit-detail-icon{background:#e6f7f6;color:#0f8f93}.jpos-audit-detail-hero.is-amber .jpos-audit-detail-icon{background:#fff3de;color:#ad7411}.jpos-audit-detail-hero.is-green .jpos-audit-detail-icon{background:#e9f8ef;color:#157c56}.jpos-audit-detail-hero>div:nth-child(2){min-width:0}.jpos-audit-detail-hero small{font-size:.72rem;font-weight:700;color:#758397;text-transform:uppercase;letter-spacing:.04em}.jpos-audit-detail-hero h3{font-size:1.18rem;margin:2px 0 3px;color:#1d2c40}.jpos-audit-detail-hero p{margin:0;color:#647388}.jpos-audit-detail-time{margin-left:auto;text-align:right;font-weight:700;color:#33465d}.jpos-audit-detail-time span{display:block;font-size:.76rem;font-weight:500;color:#7b899a;margin-top:3px}
.jpos-audit-reason-box{border-left:4px solid #e5a11b;background:#fffaf0;border-radius:11px;padding:13px 15px}.jpos-audit-reason-box span{font-size:.7rem;color:#9b6f1c;font-weight:800;letter-spacing:.04em}.jpos-audit-reason-box p{margin:4px 0 0;line-height:1.5;color:#3c4d61}
.jpos-audit-tabs{display:flex;gap:6px;padding:5px;background:#f2f5f8;border:1px solid var(--jpos-line);border-radius:11px;overflow:auto}.jpos-audit-tabs button{border:0;background:transparent;border-radius:8px;padding:9px 13px;font-weight:700;color:#68778a;white-space:nowrap;cursor:pointer}.jpos-audit-tabs button.is-active{background:#fff;color:#183455;box-shadow:0 2px 8px rgba(31,54,80,.08)}.jpos-audit-tabpane{display:none}.jpos-audit-tabpane.is-active{display:block}
.jpos-audit-change-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.jpos-audit-change-card{border:1px solid #e1e7ee;border-radius:12px;background:#fff;overflow:hidden}.jpos-audit-change-title{padding:11px 13px;border-bottom:1px solid #edf0f4;background:#fbfcfd;display:flex;justify-content:space-between;gap:10px}.jpos-audit-change-title span{font-size:.76rem;color:#748296}.jpos-audit-change-title strong{font-size:.82rem;color:#26394f;text-align:right}.jpos-audit-change-values{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;padding:13px}.jpos-audit-change-values>div{min-width:0;border-radius:10px;padding:10px;background:#f6f8fa}.jpos-audit-change-values>div:last-child{background:#edf9f7}.jpos-audit-change-values small{display:block;color:#7c8998;font-size:.7rem;margin-bottom:4px}.jpos-audit-change-values>i{color:#9ca8b5}.jpos-audit-null{color:#9da8b4}
.jpos-audit-empty{display:flex;align-items:center;gap:12px;padding:18px;border:1px dashed #d6dde6;border-radius:12px;color:#5c6d80}.jpos-audit-empty>i{font-size:1.6rem;color:#7d91a8}.jpos-audit-empty span{display:block;font-size:.78rem;color:#8793a1;margin-top:2px}
.jpos-audit-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px}.jpos-audit-compare section,.jpos-audit-meta{border:1px solid #e1e6ec;border-radius:12px;background:#fff;overflow:hidden}.jpos-audit-compare h4,.jpos-audit-meta h4{margin:0;padding:11px 13px;background:#f7f9fb;border-bottom:1px solid #e5e9ef;font-size:.82rem}.jpos-audit-compare pre,.jpos-audit-meta pre{margin:0;padding:13px;max-height:420px;overflow:auto;background:#172334;color:#dbe7f3;font-size:.76rem;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.jpos-audit-tech-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.jpos-audit-tech-grid>div{border:1px solid #e2e7ed;border-radius:10px;padding:11px 12px;background:#fbfcfd;min-width:0}.jpos-audit-tech-grid span{display:block;color:#758397;font-size:.7rem;text-transform:uppercase;font-weight:700;margin-bottom:4px}.jpos-audit-tech-grid code{display:block;color:#26394f;white-space:normal;word-break:break-all}.jpos-audit-raw{margin-top:12px;border:1px solid #e2e7ed;border-radius:11px;background:#fff;overflow:hidden}.jpos-audit-raw>summary{cursor:pointer;padding:12px 14px;font-weight:700;color:#31465d;background:#f8fafc}.jpos-audit-raw .jpos-audit-compare,.jpos-audit-raw .jpos-audit-meta{margin:12px}.jpos-audit-raw .jpos-audit-meta{margin-top:0}

@media(max-width:1199px){.jpos-audit-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.jpos-audit-filters{grid-template-columns:minmax(280px,1fr) repeat(2,minmax(150px,.4fr));}.jpos-audit-search{grid-column:1/-1}.jpos-audit-date-wrap{min-width:160px}}
@media(max-width:767px){
  .jpos-audit-page{gap:14px}.jpos-audit-summary{grid-template-columns:1fr;gap:10px}.jpos-audit-metric{min-height:94px;padding:14px}.jpos-audit-metric-icon{width:44px;height:44px;flex-basis:44px}.jpos-audit-metric strong{font-size:1.35rem}
  .jpos-audit-filters{grid-template-columns:1fr;padding:12px;gap:10px}.jpos-audit-search{grid-column:auto}.jpos-audit-filters .form-control{min-height:46px}
  .jpos-audit-table-wrap{overflow:visible}.jpos-audit-table,.jpos-audit-table tbody,.jpos-audit-table tr,.jpos-audit-table td{display:block;width:100%}.jpos-audit-table thead{display:none}.jpos-audit-table tbody{padding:10px}.jpos-audit-table tbody tr{border:1px solid #e1e7ed;border-radius:12px;margin-bottom:10px;background:#fff;overflow:hidden}.jpos-audit-table tbody td{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;padding:10px 12px;border:0;border-bottom:1px solid #eef1f4;align-items:start}.jpos-audit-table tbody td:last-child{border-bottom:0}.jpos-audit-table tbody td::before{content:attr(data-label);font-size:.72rem;font-weight:800;color:#7b8898;text-transform:uppercase;letter-spacing:.03em}.jpos-audit-table tbody td.text-right{text-align:left!important}.jpos-audit-table .js-audit-detail-button{width:100%;min-height:44px}.jpos-audit-reason{max-width:none}.jpos-audit-action>i{width:38px;height:38px;flex-basis:38px}
  .jpos-audit-detail-hero{align-items:flex-start;flex-wrap:wrap;padding:14px}.jpos-audit-detail-time{width:100%;margin-left:66px;text-align:left}.jpos-audit-change-list,.jpos-audit-compare,.jpos-audit-tech-grid{grid-template-columns:1fr}.jpos-audit-change-values{grid-template-columns:1fr}.jpos-audit-change-values>i{transform:rotate(90deg);justify-self:center}.jpos-audit-tabs button{min-height:44px}.jpos-audit-compare pre,.jpos-audit-meta pre{font-size:.82rem}
}

/* STEP 9.3.3F.2.1 — structured before/after + permission-aware summary */
.jpos-audit-summary{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.jpos-audit-compare-structured{border:1px solid #e1e7ee;border-radius:12px;background:#fff;overflow:hidden}
.jpos-audit-compare-head,.jpos-audit-compare-row{display:grid;grid-template-columns:minmax(190px,.85fr) repeat(2,minmax(180px,1fr));gap:0;align-items:stretch}
.jpos-audit-compare-head{background:#f5f8fb;border-bottom:1px solid #dfe6ed;color:#6e7c8e;font-size:.72rem;text-transform:uppercase;font-weight:800;letter-spacing:.035em}
.jpos-audit-compare-head span,.jpos-audit-compare-row>div{padding:11px 13px;border-right:1px solid #edf1f4;min-width:0}
.jpos-audit-compare-head span:last-child,.jpos-audit-compare-row>div:last-child{border-right:0}
.jpos-audit-compare-row{border-bottom:1px solid #edf1f4}.jpos-audit-compare-row:last-child{border-bottom:0}
.jpos-audit-compare-row>div:nth-child(2){background:#fbfcfd}.jpos-audit-compare-row>div:nth-child(3){background:#f0faf8}
.jpos-audit-compare-row small{display:block;color:#8290a1;font-size:.69rem;margin-bottom:3px}.jpos-audit-compare-row strong{color:#26394f;word-break:break-word}
@media(max-width:767px){
  .jpos-audit-summary{grid-template-columns:1fr}
  .jpos-audit-compare-head{display:none}.jpos-audit-compare-row{display:block;padding:0}.jpos-audit-compare-row>div{border-right:0;border-bottom:1px solid #edf1f4;padding:11px 13px}.jpos-audit-compare-row>div:last-child{border-bottom:0}.jpos-audit-compare-row>div:nth-child(2)::before{content:'Sebelum';display:block;color:#7d8a9a;font-size:.7rem;font-weight:800;text-transform:uppercase;margin-bottom:4px}.jpos-audit-compare-row>div:nth-child(3)::before{content:'Sesudah';display:block;color:#4b8178;font-size:.7rem;font-weight:800;text-transform:uppercase;margin-bottom:4px}
}

/* ==========================================================================
   STEP 9.3.3F.3 — Pembayaran Operational UX Polish
   UI/read-only reporting only. Payment engine, routing, capture and void untouched.
   ========================================================================== */
.jpos-payment-workspace{
  --jpos-pay-gap:18px;
  display:flex;
  flex-direction:column;
  gap:var(--jpos-pay-gap);
}
.jpos-payment-pagehead{margin-bottom:0!important;}
.jpos-payment-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.jpos-payment-summary-loading{
  grid-column:1/-1;
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e1e8ef;
  border-radius:14px;
  background:#fff;
  color:#708297;
  font-size:.78rem;
}
.jpos-payment-summary-card{
  min-height:108px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:16px 17px;
  border:1px solid #e1e8ef;
  border-left:4px solid #7b8ea4;
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 14px rgba(24,53,82,.045);
}
.jpos-payment-summary-card.tone-blue{border-left-color:#3f8ee8;}
.jpos-payment-summary-card.tone-green{border-left-color:#35a36f;}
.jpos-payment-summary-card.tone-teal{border-left-color:#20a2a3;}
.jpos-payment-summary-card.tone-navy{border-left-color:#274a70;}
.jpos-payment-summary-icon{
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:13px;
  background:#f0f5f9;
  color:#365a7e;
  font-size:1.3rem;
}
.jpos-payment-summary-card.tone-blue .jpos-payment-summary-icon{background:#edf5ff;color:#2f7ed7;}
.jpos-payment-summary-card.tone-green .jpos-payment-summary-icon{background:#edf8f2;color:#26784f;}
.jpos-payment-summary-card.tone-teal .jpos-payment-summary-icon{background:#eaf8f7;color:#148687;}
.jpos-payment-summary-card.tone-navy .jpos-payment-summary-icon{background:#edf2f7;color:#274a70;}
.jpos-payment-summary-card > div small,.jpos-payment-summary-card > div span{display:block;color:#74859a;}
.jpos-payment-summary-card > div small{font-size:.68rem;font-weight:800;letter-spacing:.01em;}
.jpos-payment-summary-card > div strong{display:block;margin:5px 0 2px;color:#20334b;font-size:1.25rem;line-height:1.1;}
.jpos-payment-summary-card > div span{font-size:.68rem;line-height:1.35;}

.jpos-payment-card{overflow:hidden;border-radius:14px!important;}
.jpos-payment-card-head{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px 14px;
  border-bottom:1px solid #e7edf3;
  background:#fff;
}
.jpos-payment-card-head h3{margin:0;color:#20334b;font-size:1rem;}
.jpos-payment-card-head p{margin:4px 0 0;color:#78899c;font-size:.76rem;line-height:1.4;}
.jpos-payment-head-meta{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
.jpos-payment-result-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:6px 11px;
  border-radius:999px;
  background:#edf5f8;
  color:#365a72;
  font-size:.75rem;
  font-weight:800;
  white-space:nowrap;
}
.jpos-payment-period-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:6px 10px;
  border:1px solid #dfe8ef;
  border-radius:10px;
  background:#f8fafc;
  color:#50667d;
  font-size:.72rem;
  font-weight:700;
  white-space:nowrap;
}
.jpos-payment-filterbar{
  display:grid!important;
  grid-template-columns:minmax(260px,1.4fr) minmax(135px,.48fr) minmax(135px,.48fr) minmax(330px,.95fr) auto;
  align-items:end;
  gap:10px!important;
  padding:13px 16px!important;
  border-bottom:1px solid #e7edf3!important;
  background:#fbfcfd;
}
.jpos-payment-search{align-self:end;min-width:0;}
.jpos-payment-filter-field,.jpos-payment-date-field{min-width:0;}
.jpos-payment-filter-field label,.jpos-payment-date-field label{
  display:block;
  margin:0 0 5px;
  color:#63768a;
  font-size:.68rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.025em;
}
.jpos-payment-history-dates{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:9px;min-width:0;}
.jpos-payment-filterbar .form-control{min-height:40px;height:40px;border-radius:9px;}
.jpos-payment-refresh{
  min-height:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding-left:12px;
  padding-right:12px;
  white-space:nowrap;
}
.jpos-payment-loading{padding:8px 16px;border-bottom:1px solid #edf1f4;background:#f9fbfd;color:#76879a;font-size:.72rem;}
.jpos-payment-table td{vertical-align:middle;}
.jpos-payment-number{color:#20334b;}
.jpos-payment-txlink{border:0;background:none;padding:0;color:#245179;font:inherit;font-weight:800;cursor:pointer;text-align:left;}
.jpos-payment-txlink:hover{text-decoration:underline;}
.jpos-payment-txtext{color:#29445f;}
.jpos-payment-gross{font-weight:900!important;color:#177a64;}
.jpos-payment-status-badge{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 9px;border-radius:999px;font-size:.67rem;font-weight:800;white-space:nowrap;}
.jpos-payment-status-badge.captured{background:#eaf8f1;color:#23734f;}
.jpos-payment-status-badge.void{background:#fff0f1;color:#a33d48;}
.jpos-payment-actions .btn{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;}

.jpos-payment-detail{color:#455b72;}
.jpos-payment-detail-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px;padding:13px 14px;border:1px solid #dfe7ee;border-radius:12px;background:#f8fafc;}
.jpos-payment-detail-hero small,.jpos-payment-detail-hero strong,.jpos-payment-detail-hero span{display:block;}
.jpos-payment-detail-hero small{color:#7a8999;font-size:.7rem;font-weight:800;text-transform:uppercase;}
.jpos-payment-detail-hero strong{margin-top:3px;color:#23394f;font-size:1.05rem;}
.jpos-payment-detail-hero span{margin-top:3px;color:#718195;font-size:.75rem;}
.jpos-payment-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.jpos-payment-detail-item{min-height:72px;padding:10px 11px;border:1px solid #e1e8ef;border-radius:10px;background:#fff;}
.jpos-payment-detail-item>span{display:block;margin-bottom:4px;color:#7a8999;font-size:.69rem;font-weight:800;text-transform:uppercase;letter-spacing:.02em;}
.jpos-payment-detail-item>strong{display:block;color:#23394f;font-size:.9rem;overflow-wrap:anywhere;}
.jpos-payment-detail-item>small{display:block;margin-top:3px;color:#8492a2;font-size:.67rem;line-height:1.35;}
.jpos-payment-detail-note{display:flex;align-items:flex-start;gap:8px;margin-top:11px;padding:10px 11px;border:1px solid #d8e9ec;border-radius:10px;background:#f3fafb;color:#516f77;font-size:.74rem;line-height:1.45;}
.jpos-payment-detail-note i{margin-top:2px;color:#1aa6ad;}

@media(max-width:1240px){
  .jpos-payment-summary{grid-template-columns:repeat(2,minmax(0,1fr));}
  .jpos-payment-filterbar{grid-template-columns:minmax(240px,1fr) minmax(135px,.45fr) minmax(135px,.45fr) auto;}
  .jpos-payment-history-dates{grid-column:1/4;}
  .jpos-payment-refresh{grid-column:4;grid-row:2;}
}
@media(max-width:767px){
  .jpos-payment-workspace{--jpos-pay-gap:14px;font-size:16px;padding-bottom:76px;}
  .jpos-payment-pagehead .jpos-pagehead-copy p{font-size:.88rem;line-height:1.42;}
  .jpos-payment-summary{grid-template-columns:1fr 1fr;gap:10px;}
  .jpos-payment-summary-card{min-height:100px;padding:13px 12px;gap:10px;}
  .jpos-payment-summary-icon{width:42px;height:42px;flex-basis:42px;border-radius:12px;font-size:1.15rem;}
  .jpos-payment-summary-card strong{font-size:1.02rem;}
  .jpos-payment-summary-card small{font-size:.7rem;}
  .jpos-payment-card-head{align-items:flex-start;padding:14px 12px 12px;flex-direction:column;}
  .jpos-payment-card-head h3{font-size:1rem;}
  .jpos-payment-card-head p{font-size:.8rem;}
  .jpos-payment-head-meta{width:100%;justify-content:flex-start;}
  .jpos-payment-result-count,.jpos-payment-period-chip{font-size:.7rem;}
  .jpos-payment-filterbar{grid-template-columns:1fr 1fr!important;padding:11px!important;gap:9px!important;}
  .jpos-payment-search{grid-column:1/-1!important;}
  .jpos-payment-filter-field{grid-column:auto!important;}
  .jpos-payment-history-dates{grid-column:1/-1!important;grid-template-columns:1fr 1fr!important;gap:8px;}
  .jpos-payment-refresh{grid-column:1/-1!important;grid-row:auto!important;width:100%;}
  .jpos-payment-filterbar .form-control,.jpos-payment-filterbar .btn{min-height:46px!important;height:46px!important;font-size:16px!important;}
  .jpos-payment-filter-field label,.jpos-payment-date-field label{font-size:.72rem;}

  .jpos-payment-table-wrap{overflow:visible!important;}
  .jpos-payment-table,.jpos-payment-table tbody,.jpos-payment-table tr,.jpos-payment-table td{display:block!important;width:100%!important;}
  .jpos-payment-table thead{display:none!important;}
  .jpos-payment-table{min-width:0!important;margin:0!important;background:#f6f8fa;}
  .jpos-payment-table tbody{padding:10px!important;display:block!important;}
  .jpos-payment-table .jpos-payment-row{position:relative;margin:0 0 11px;padding:13px;border:1px solid #dfe7ee!important;border-radius:13px;background:#fff;box-shadow:0 3px 10px rgba(25,51,75,.045);}
  .jpos-payment-table .jpos-payment-row:last-child{margin-bottom:0;}
  .jpos-payment-table .jpos-payment-row td{min-height:0!important;padding:6px 0!important;border:0!important;text-align:left!important;font-size:.9rem!important;}
  .jpos-payment-table .jpos-payment-row td[data-label]:before{content:attr(data-label);display:block;margin-bottom:2px;color:#8190a1;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.025em;}
  .jpos-payment-table .jpos-payment-row td[data-label="Pembayaran"]{padding-top:0!important;padding-right:92px!important;}
  .jpos-payment-table .jpos-payment-row td[data-label="Status"]{position:absolute;right:12px;top:12px;width:auto!important;padding:0!important;}
  .jpos-payment-table .jpos-payment-row td[data-label="Status"]:before{display:none!important;}
  .jpos-payment-table .jpos-payment-row td[data-label="Ke Tagihan"]{display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:12px;}
  .jpos-payment-table .jpos-payment-row td[data-label="Ke Tagihan"]:before{margin:0;}
  .jpos-payment-table .jpos-payment-row td[data-label="Uang Diterima"]{margin-top:4px;padding:10px 11px!important;border-radius:10px!important;background:#eff9f5;text-align:right!important;font-size:1.08rem!important;}
  .jpos-payment-table .jpos-payment-row td[data-label="Uang Diterima"]:before{text-align:left;float:left;margin-top:3px;}
  .jpos-payment-actions{padding-top:10px!important;}
  .jpos-payment-actions .btn{width:100%;min-height:46px!important;font-size:16px!important;}
  .jpos-payment-table .jpos-empty-cell{display:table-cell!important;padding:24px 14px!important;text-align:center!important;}
  .jpos-payment-detail-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:430px){
  .jpos-payment-summary{grid-template-columns:1fr;}
  .jpos-payment-summary-card{min-height:86px;}
  .jpos-payment-filterbar{grid-template-columns:1fr!important;}
  .jpos-payment-filter-field,.jpos-payment-history-dates{grid-column:1!important;}
  .jpos-payment-history-dates{grid-template-columns:1fr!important;}
  .jpos-payment-detail-grid{grid-template-columns:1fr;}
}

/* ===== REPORTS — OPERATIONAL READABILITY UX ONLY ===== */
.jpos-page[data-page-controller="reports"]{--report-blue:#3182f6;--report-teal:#16a6a1;--report-green:#27a66c;--report-amber:#d99a17;--report-red:#d45b5b;--report-navy:#254b72;display:block}
.jpos-page[data-page-controller="reports"] .jpos-report-header-shell{margin-bottom:14px;border:1px solid #dfe7ef;border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(24,52,82,.035);overflow:hidden}
.jpos-page[data-page-controller="reports"] .jpos-report-pagehead{display:grid;grid-template-columns:minmax(0,1fr) minmax(500px,620px);align-items:center;gap:28px;margin:0;padding:16px 18px}
.jpos-page[data-page-controller="reports"] .jpos-report-pagehead .jpos-pagehead-copy{max-width:720px;min-width:0}
.jpos-page[data-page-controller="reports"] .jpos-report-pagehead .jpos-pagehead-copy h1{margin-top:3px;margin-bottom:4px}
.jpos-page[data-page-controller="reports"] .jpos-report-pagehead .jpos-pagehead-copy p{max-width:680px;margin-bottom:0}
.jpos-page[data-page-controller="reports"] .jpos-report-actions{width:100%;display:grid;grid-template-columns:minmax(140px,1fr) 100px minmax(180px,1.15fr);gap:8px;align-items:end}
.jpos-page[data-page-controller="reports"] .jpos-report-actions .jpos-report-period-control{grid-column:1/-1;display:block;margin:0}
.jpos-page[data-page-controller="reports"] .jpos-report-actions .jpos-report-period-control>span{display:block;margin:0 0 5px;color:#6f8195;font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.jpos-page[data-page-controller="reports"] .jpos-report-actions .jpos-report-period-control .form-control{width:100%;min-width:0;height:38px}
.jpos-page[data-page-controller="reports"] .jpos-report-actions .btn{min-height:38px;justify-content:center;white-space:nowrap}
.jpos-page[data-page-controller="reports"] .jpos-report-actions .js-open-resolution-center{grid-column:auto}
.jpos-page[data-page-controller="reports"] .jpos-report-actions .js-report-diagnostic{grid-column:1/-1}

.jpos-report-periodbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:10px 18px;border:0;border-top:1px solid #e7edf3;border-radius:0;background:#f8fbfe}
.jpos-report-periodbar-main{display:flex;align-items:center;gap:10px;min-width:0}
.jpos-report-period-dot{width:9px;height:9px;flex:0 0 auto;border-radius:50%;background:var(--report-teal);box-shadow:0 0 0 4px rgba(22,166,161,.10)}
.jpos-report-periodbar-main small{display:block;margin-bottom:2px;color:#7c8da0;font-size:9px;font-weight:800;letter-spacing:.07em}
.jpos-page[data-page-controller="reports"] .jpos-report-strip{display:block;min-height:0;margin:0;padding:0;border:0;background:transparent;color:#6b7d90;font-size:11px}
.jpos-page[data-page-controller="reports"] .jpos-report-strip strong{color:#17314b;font-size:13px}
.jpos-report-periodbar-note{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;color:#8291a1;font-size:10px;text-align:right}

.jpos-report-section{margin-top:16px;padding:16px;border:1px solid #e1e8f0;border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(24,52,82,.035)}
.jpos-report-overview-section{margin-top:0}
.jpos-report-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.jpos-report-section-head h2{margin:2px 0 3px;color:#1c3148;font-size:16px;line-height:1.2;font-weight:750}
.jpos-report-section-head p{max-width:820px;margin:0;color:#74859a;font-size:11px;line-height:1.5}
.jpos-report-section-badge,.jpos-report-attention-count{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;background:#eef6ff;color:#3975ad;font-size:10px;font-weight:800;white-space:nowrap}
.jpos-report-attention-count{background:#fff5df;color:#9c6b08}
.jpos-report-attention-count.is-clear{background:#ebf8f1;color:#277b50}

.jpos-report-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.jpos-report-kpi{position:relative;display:flex;align-items:center;gap:12px;min-height:105px;padding:14px;border:1px solid #e1e8f0;border-radius:12px;background:#fff;overflow:hidden}
.jpos-report-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#94a7ba}
.jpos-report-kpi.is-sales:before{background:var(--report-blue)}
.jpos-report-kpi.is-cashin:before{background:var(--report-teal)}
.jpos-report-kpi.is-cost:before{background:var(--report-amber)}
.jpos-report-kpi.is-result:before{background:var(--report-green)}
.jpos-report-kpi.is-refund:before{background:var(--report-red)}
.jpos-report-kpi.is-ledger:before{background:var(--report-navy)}
.jpos-report-kpi-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border-radius:11px;background:#eef5fd;color:#3478bd;font-size:21px}
.jpos-report-kpi.is-cashin .jpos-report-kpi-icon{background:#e8f7f5;color:#12948f}
.jpos-report-kpi.is-cost .jpos-report-kpi-icon{background:#fff5e3;color:#c8890b}
.jpos-report-kpi.is-result .jpos-report-kpi-icon{background:#eaf7ef;color:#249260}
.jpos-report-kpi.is-refund .jpos-report-kpi-icon{background:#fceeee;color:#c65050}
.jpos-report-kpi.is-ledger .jpos-report-kpi-icon{background:#eef3f8;color:#315b83}
.jpos-report-kpi-copy{min-width:0}
.jpos-report-kpi-copy>span{display:block;color:#697b8f;font-size:10px;font-weight:700}
.jpos-report-kpi-copy>strong{display:block;margin:4px 0 3px;color:#1b3047;font-size:19px;line-height:1.15;letter-spacing:-.02em}
.jpos-report-kpi-copy>small{display:block;color:#8291a1;font-size:9.5px;line-height:1.4}
.jpos-report-kpi-copy>small b{color:#52667c}

.jpos-report-readout{display:flex;align-items:flex-start;gap:12px;margin-top:11px;padding:12px 14px;border:1px solid #dce9f5;border-radius:11px;background:#f7fbff}
.jpos-report-readout.is-warning{border-color:#f0dfb7;background:#fffaf0}
.jpos-report-readout-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:#e7f2ff;color:#3478bd;font-size:17px}
.jpos-report-readout.is-warning .jpos-report-readout-icon{background:#fff0ce;color:#bd7f08}
.jpos-report-readout small{display:block;color:#7890a6;font-size:9px;font-weight:800;letter-spacing:.07em}
.jpos-report-readout strong{display:block;margin:2px 0 3px;color:#20364d;font-size:12px;line-height:1.4}
.jpos-report-readout p{margin:0;color:#6f8195;font-size:10.5px;line-height:1.5}

.jpos-report-attention-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.jpos-report-attention-card{position:relative;padding:13px 14px;border:1px solid #e2e9f0;border-radius:11px;background:#fff;overflow:hidden}
.jpos-report-attention-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#d8a63b}
.jpos-report-attention-card.is-fail:before{background:#d45b5b}
.jpos-report-attention-card.is-pass:before{background:#45a873}
.jpos-report-attention-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.jpos-report-attention-head small{color:#8a98a8;font-size:9px;text-align:right}
.jpos-report-attention-card h3{margin:8px 0 9px;color:#20354b;font-size:13px}
.jpos-report-attention-evidence,.jpos-report-attention-action{padding:8px 9px;border-radius:8px;background:#f7f9fb}
.jpos-report-attention-action{margin-top:7px;background:#f5faf8}
.jpos-report-attention-evidence span,.jpos-report-attention-action span{display:block;margin-bottom:2px;color:#8493a3;font-size:8.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.jpos-report-attention-evidence p,.jpos-report-attention-action p{margin:0;color:#56697d;font-size:10px;line-height:1.45}
.jpos-report-attention-card .btn{margin-top:9px}
.jpos-report-attention-empty{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:18px;border:1px dashed #bcdcca;border-radius:11px;background:#f5fbf7;color:#2f7a51}
.jpos-report-attention-empty>i{font-size:26px}
.jpos-report-attention-empty strong,.jpos-report-attention-empty span{display:block}
.jpos-report-attention-empty strong{font-size:12px}
.jpos-report-attention-empty span{margin-top:2px;color:#6f8d7c;font-size:10px}

.jpos-report-context-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.jpos-report-context-card{padding:0;overflow:hidden;box-shadow:none}
.jpos-report-context-card .jpos-card-head{padding:13px 14px;border-bottom:1px solid #edf1f5}
.jpos-report-context-card .jpos-card-head h3{font-size:13px}
.jpos-report-context-card .jpos-card-head p{font-size:9.5px}
.jpos-report-context-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 32px;border-radius:9px;background:#eef5fb;color:#365f87;font-size:16px}
.jpos-report-context-card>.js-intelligence-score,.jpos-report-context-card>.js-intelligence-collection,.jpos-report-context-card>.js-intelligence-liquidity{padding:0 14px 8px}
.jpos-report-score-head,.jpos-report-highlight-value{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:12px 0 8px}
.jpos-report-score-head>strong{color:#17314b;font-size:25px;line-height:1}
.jpos-report-score-head>strong small{font-size:11px;color:#8090a1}
.jpos-report-score-head>span{padding:4px 8px;border-radius:999px;background:#eef6ff;color:#3877b4;font-size:9px;font-weight:800}
.jpos-report-highlight-value>span{color:#6c7f92;font-size:10px;font-weight:700}
.jpos-report-highlight-value>strong{color:#1c344c;font-size:22px;line-height:1}
.jpos-report-highlight-value.is-danger>strong{color:#c95050}
.jpos-page[data-page-controller="reports"] .jpos-report-mini>div{padding:8px 0}
.jpos-page[data-page-controller="reports"] .jpos-report-mini span{font-size:10px}
.jpos-page[data-page-controller="reports"] .jpos-report-mini strong{font-size:11px}

.jpos-report-comparison-layout{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.75fr);gap:10px}
.jpos-report-comparison-card,.jpos-report-trend-card{box-shadow:none}
.jpos-report-comparison-list{padding:0 14px 8px}
.jpos-report-comparison-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #edf1f5}
.jpos-report-comparison-list>div:last-child{border-bottom:0}
.jpos-report-comparison-list span{color:#66798d;font-size:10px}
.jpos-report-comparison-list strong{font-size:11px;color:#4d6074}
.jpos-report-comparison-list strong.is-up{color:#21875a}
.jpos-report-comparison-list strong.is-down{color:#c14e4e}
.jpos-report-trend-table{min-width:720px}

.jpos-report-money-layout{display:grid;grid-template-columns:1fr;gap:10px}
.jpos-report-accounts-card{box-shadow:none}
.jpos-report-account-total-wrap{text-align:right}
.jpos-report-account-total-wrap small{display:block;color:#8493a2;font-size:9px;text-transform:uppercase;font-weight:800}
.jpos-report-account-total-wrap strong{display:block;margin-top:2px;color:#1b334b;font-size:16px}
.jpos-report-obligation-stack{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.jpos-report-small-summary{box-shadow:none}
.jpos-report-small-summary .jpos-card-head{padding-bottom:9px}
.jpos-report-small-summary .jpos-card-head>i{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:8px;background:#eef5fb;color:#365f87;font-size:15px}
.jpos-report-small-summary .js-report-obligation-summary,.jpos-report-small-summary .js-report-payroll-summary,.jpos-report-small-summary .js-report-budget-summary{padding:0 14px 7px}
.jpos-report-account-table{min-width:680px}

.jpos-report-detail-section{background:#fbfcfd}
.jpos-report-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.jpos-report-detail-card{border:1px solid #e0e7ee;border-radius:10px;background:#fff;overflow:hidden}
.jpos-report-detail-card summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;cursor:pointer;list-style:none}
.jpos-report-detail-card summary::-webkit-details-marker{display:none}
.jpos-report-detail-card summary>span{display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:9px;min-width:0}
.jpos-report-detail-card summary>span>i{grid-row:1/3;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:#eef4fa;color:#3b668f;font-size:14px}
.jpos-report-detail-card summary strong{grid-column:2;color:#263c52;font-size:11px}
.jpos-report-detail-card summary small{grid-column:2;margin-top:2px;color:#8593a2;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-report-detail-card summary>i{color:#8a99a8;font-size:12px;transition:transform .18s ease}
.jpos-report-detail-card[open] summary>i{transform:rotate(90deg)}
.jpos-report-detail-card[open] summary{border-bottom:1px solid #edf1f5}
.jpos-report-detail-body{padding:0 10px 8px}
.jpos-report-health-detail{grid-column:1/-1}

.jpos-report-canonical-note{margin-top:12px;border:1px solid #e2e8ef;border-radius:10px;background:#f9fbfd;overflow:hidden}
.jpos-report-canonical-note>summary{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;list-style:none;color:#607489;font-size:10px;font-weight:700}
.jpos-report-canonical-note>summary::-webkit-details-marker{display:none}
.jpos-report-canonical-note>summary>i:last-child{margin-left:auto;transition:transform .18s ease}
.jpos-report-canonical-note[open]>summary>i:last-child{transform:rotate(90deg)}
.jpos-report-canonical-body{padding:0 12px 12px;color:#677b8f;font-size:10px;line-height:1.55}
.jpos-report-canonical-body p{margin:7px 0 0}
.jpos-report-canonical-body .js-report-interpretation p{margin:7px 0 0}
.jpos-report-canonical-safety{padding:8px 10px;border-radius:8px;background:#eef5fb;color:#526d87}
.jpos-report-canonical-safety i{margin-right:5px}

@media(max-width:1199px){
  .jpos-page[data-page-controller="reports"] .jpos-report-pagehead{grid-template-columns:minmax(0,1fr) minmax(390px,470px);gap:18px}
  .jpos-page[data-page-controller="reports"] .jpos-report-actions{width:100%;grid-template-columns:minmax(135px,1fr) 92px minmax(170px,1.15fr)}
  .jpos-report-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-report-attention-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-report-context-grid{grid-template-columns:1fr}
  .jpos-report-comparison-layout{grid-template-columns:1fr}
  .jpos-report-obligation-stack{grid-template-columns:1fr 1fr 1fr}
}

@media(max-width:767px){
  .jpos-page[data-page-controller="reports"] .jpos-report-pagehead{display:block;padding:14px}
  .jpos-page[data-page-controller="reports"] .jpos-report-actions{width:100%;margin-top:13px;grid-template-columns:1fr 1fr}
  .jpos-page[data-page-controller="reports"] .jpos-report-actions .jpos-report-period-control{grid-column:1/-1}
  .jpos-page[data-page-controller="reports"] .jpos-report-actions .js-open-resolution-center{grid-column:1/-1}
  .jpos-report-periodbar{align-items:flex-start;flex-direction:column;gap:6px}
  .jpos-report-periodbar-note{text-align:left}
  .jpos-report-section{padding:12px;border-radius:12px}
  .jpos-report-section-head{display:block}
  .jpos-report-section-badge,.jpos-report-attention-count{margin-top:8px}
  .jpos-report-attention-grid{grid-template-columns:1fr}
  .jpos-report-obligation-stack{grid-template-columns:1fr}
  .jpos-report-detail-grid{grid-template-columns:1fr}
  .jpos-report-health-detail{grid-column:auto}
}

@media(max-width:575px){
  .jpos-report-kpi-grid{grid-template-columns:1fr 1fr;gap:8px}
  .jpos-report-kpi{display:block;min-height:126px;padding:11px}
  .jpos-report-kpi-icon{width:34px;height:34px;flex-basis:34px;margin-bottom:8px;font-size:17px}
  .jpos-report-kpi-copy>strong{font-size:15px}
  .jpos-report-kpi-copy>small{font-size:8.5px}
  .jpos-report-readout{padding:10px}
  .jpos-report-readout strong{font-size:11px}
  .jpos-report-attention-card{padding:11px}
  .jpos-report-detail-card summary small{white-space:normal}
  .jpos-report-account-total-wrap strong{font-size:13px}
  .jpos-report-trend-card .jpos-table-wrap,.jpos-report-accounts-card .jpos-table-wrap{overflow:visible}
  .jpos-report-trend-table,.jpos-report-account-table{min-width:0;width:100%;border-collapse:separate;border-spacing:0 8px}
  .jpos-report-trend-table thead,.jpos-report-account-table thead{display:none}
  .jpos-report-trend-table tbody,.jpos-report-account-table tbody{display:block}
  .jpos-report-trend-table tr,.jpos-report-account-table tr{display:grid;padding:10px;border:1px solid #e3eaf1;border-radius:10px;background:#fff}
  .jpos-report-trend-table tr{grid-template-columns:1fr 1fr}
  .jpos-report-account-table tr{grid-template-columns:1fr 1fr}
  .jpos-report-trend-table td,.jpos-report-account-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:4px 0!important;border:0!important;text-align:right!important;font-size:10px}
  .jpos-report-trend-table td:before,.jpos-report-account-table td:before{content:attr(data-label);color:#8291a0;font-size:8.5px;font-weight:700;text-transform:uppercase;text-align:left}
  .jpos-report-trend-table td:first-child,.jpos-report-account-table td:first-child{grid-column:1/-1;padding-bottom:7px!important;margin-bottom:4px;border-bottom:1px solid #edf1f5!important}
  .jpos-report-trend-table td:first-child:before,.jpos-report-account-table td:first-child:before{display:none}
  .jpos-report-account-table td:first-child{display:block;text-align:left!important}
}

@media print{
  body.jpos-print-report .jpos-sidebar,body.jpos-print-report .jpos-sidebar-backdrop,body.jpos-print-report .jpos-header,body.jpos-print-report .jpos-tabs-shell{display:none!important}
  body.jpos-print-report .jpos-main{margin:0!important;padding:0!important}
  body.jpos-print-report .jpos-workspace{padding:0!important}
  body.jpos-print-report .jpos-tab-panel{display:none!important}
  body.jpos-print-report .jpos-tab-panel.is-print-target{display:block!important;position:static!important}
  body.jpos-print-report .jpos-report-actions,body.jpos-print-report .js-open-resolution-center,body.jpos-print-report .js-report-diagnostic,body.jpos-print-report .js-payment-bridge-reconcile{display:none!important}
  body.jpos-print-report .jpos-report-section{break-inside:avoid;box-shadow:none}
  body.jpos-print-report .jpos-report-detail-card:not([open]){display:none}
  body.jpos-print-report .jpos-report-pagehead{margin-bottom:10px}
}

/* =========================================================
   JPOS FINANCE CANONICAL PAGE CHROME v1
   Scope: Reports + Resolution only
   Rule: Page Header -> Filter Toolbar -> Active Context -> Content
   ========================================================= */
.jpos-page[data-page-controller="reports"],
.jpos-page[data-page-controller="resolution"]{
  --finance-chrome-line:#dfe7ef;
  --finance-chrome-soft:#f8fbfe;
  --finance-chrome-text:#1f3349;
  --finance-chrome-muted:#728499;
  --finance-chrome-accent:#17a7a4;
}

.jpos-page[data-page-controller="reports"] .jpos-finance-pagehead,
.jpos-page[data-page-controller="resolution"] .jpos-finance-pagehead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin:0 0 12px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.jpos-page[data-page-controller="reports"] .jpos-finance-pagehead .jpos-pagehead-copy,
.jpos-page[data-page-controller="resolution"] .jpos-finance-pagehead .jpos-pagehead-copy{
  max-width:920px;
  min-width:0;
}
.jpos-page[data-page-controller="reports"] .jpos-finance-pagehead h1,
.jpos-page[data-page-controller="resolution"] .jpos-finance-pagehead h1{
  margin:3px 0 4px;
  color:#1f2937;
  font-size:1.45rem;
  font-weight:600;
  line-height:1.2;
}
.jpos-page[data-page-controller="reports"] .jpos-finance-pagehead p,
.jpos-page[data-page-controller="resolution"] .jpos-finance-pagehead p{
  max-width:850px;
  margin:0;
  color:var(--finance-chrome-muted);
  font-size:.82rem;
  line-height:1.45;
}

.jpos-page[data-page-controller="reports"] .jpos-finance-toolbar,
.jpos-page[data-page-controller="resolution"] .jpos-finance-toolbar{
  display:grid;
  grid-template-columns:minmax(190px,240px) minmax(0,1fr);
  align-items:end;
  gap:12px;
  margin:0 0 8px;
  padding:11px 12px;
  border:1px solid var(--finance-chrome-line);
  border-radius:12px;
  background:#fff;
  box-shadow:none;
  overflow:visible;
}
.jpos-finance-filter-field{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:auto auto!important;
  gap:5px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.jpos-finance-filter-field>span{
  display:block!important;
  grid-column:auto!important;
  grid-row:auto!important;
  margin:0!important;
  color:#6f8195!important;
  font-size:9px!important;
  font-weight:800!important;
  letter-spacing:.07em!important;
  line-height:1.2!important;
  text-transform:uppercase!important;
}
.jpos-finance-filter-field>.form-control{
  grid-column:auto!important;
  grid-row:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:40px!important;
  height:40px!important;
}
.jpos-finance-toolbar-actions,
.jpos-page[data-page-controller="reports"] .jpos-report-actions,
.jpos-page[data-page-controller="resolution"] .jpos-resolution-toolbar-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  width:auto!important;
  margin:0!important;
  flex-wrap:wrap!important;
  grid-template-columns:none!important;
}
.jpos-finance-toolbar-actions .btn,
.jpos-page[data-page-controller="reports"] .jpos-report-actions .btn,
.jpos-page[data-page-controller="resolution"] .jpos-resolution-toolbar-actions .btn{
  width:auto!important;
  min-height:40px!important;
  height:40px!important;
  justify-content:center!important;
  white-space:nowrap!important;
}
.jpos-page[data-page-controller="reports"] .jpos-report-actions .js-report-refresh{min-width:138px}
.jpos-page[data-page-controller="reports"] .jpos-report-actions .js-report-print{min-width:92px}
.jpos-page[data-page-controller="reports"] .jpos-report-actions .js-open-resolution-center{min-width:190px;grid-column:auto!important}
.jpos-page[data-page-controller="resolution"] .jpos-resolution-toolbar-actions .js-resolution-sync{min-width:142px}
.jpos-page[data-page-controller="resolution"] .jpos-resolution-toolbar-actions .js-resolution-refresh{min-width:105px}

.jpos-finance-contextstrip,
.jpos-page[data-page-controller="reports"] .jpos-report-periodbar,
.jpos-page[data-page-controller="resolution"] .jpos-resolution-periodbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:48px;
  margin:0 0 14px;
  padding:8px 12px;
  border:1px solid var(--finance-chrome-line);
  border-radius:10px;
  background:var(--finance-chrome-soft);
  box-shadow:none;
}
.jpos-finance-context-main,
.jpos-report-periodbar-main{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.jpos-finance-context-dot,
.jpos-report-period-dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:var(--finance-chrome-accent);
  box-shadow:0 0 0 4px rgba(23,167,164,.10);
}
.jpos-finance-context-main small,
.jpos-report-periodbar-main small{
  display:block;
  margin:0 0 2px;
  color:#7c8da0;
  font-size:8.5px;
  font-weight:800;
  letter-spacing:.07em;
  line-height:1.2;
}
.jpos-finance-context-label,
.jpos-page[data-page-controller="reports"] .jpos-report-strip,
.jpos-page[data-page-controller="resolution"] .jpos-resolution-period-caption{
  display:flex!important;
  align-items:baseline!important;
  gap:5px!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#6b7d90!important;
  font-size:11px!important;
  line-height:1.35!important;
}
.jpos-finance-context-label strong,
.jpos-page[data-page-controller="reports"] .jpos-report-strip strong{
  color:#17314b;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.jpos-finance-context-label span,
.jpos-page[data-page-controller="reports"] .jpos-report-strip span{
  color:#6b7d90;
  font-size:10.5px;
  white-space:normal;
}
.jpos-finance-context-note,
.jpos-report-periodbar-note{
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
  color:#8291a1;
  font-size:9.5px;
  line-height:1.35;
  text-align:right;
}

/* Resolution-only: diagnostic is deliberately tertiary, not a primary toolbar action. */
.jpos-page[data-page-controller="resolution"] .jpos-resolution-safety-note{
  align-items:center;
}
.jpos-page[data-page-controller="resolution"] .jpos-resolution-safety-note>div{
  flex:1;
  min-width:0;
}
.jpos-page[data-page-controller="resolution"] .jpos-resolution-safety-note .js-resolution-diagnostic{
  flex:0 0 auto;
  min-height:34px;
  height:34px;
  padding:0 10px;
  font-size:.72rem;
  white-space:nowrap;
}

/* Content begins after the canonical context strip with identical rhythm. */
.jpos-page[data-page-controller="reports"] .jpos-report-overview-section{margin-top:0}
.jpos-page[data-page-controller="resolution"] .jpos-resolution-focus{margin-top:0}

@media(max-width:991px){
  .jpos-page[data-page-controller="reports"] .jpos-finance-toolbar,
  .jpos-page[data-page-controller="resolution"] .jpos-finance-toolbar{
    grid-template-columns:minmax(180px,220px) minmax(0,1fr);
  }
  .jpos-finance-contextstrip,
  .jpos-page[data-page-controller="reports"] .jpos-report-periodbar,
  .jpos-page[data-page-controller="resolution"] .jpos-resolution-periodbar{
    align-items:flex-start;
  }
}

@media(max-width:767px){
  .jpos-page[data-page-controller="reports"] .jpos-finance-pagehead,
  .jpos-page[data-page-controller="resolution"] .jpos-finance-pagehead{
    display:block;
    margin-bottom:10px;
    padding:0;
  }
  .jpos-page[data-page-controller="reports"] .jpos-finance-pagehead h1,
  .jpos-page[data-page-controller="resolution"] .jpos-finance-pagehead h1{font-size:1.25rem}
  .jpos-page[data-page-controller="reports"] .jpos-finance-pagehead p,
  .jpos-page[data-page-controller="resolution"] .jpos-finance-pagehead p{font-size:.8rem}

  .jpos-page[data-page-controller="reports"] .jpos-finance-toolbar,
  .jpos-page[data-page-controller="resolution"] .jpos-finance-toolbar{
    grid-template-columns:1fr;
    gap:9px;
    padding:10px;
  }
  .jpos-finance-toolbar-actions,
  .jpos-page[data-page-controller="reports"] .jpos-report-actions,
  .jpos-page[data-page-controller="resolution"] .jpos-resolution-toolbar-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
  }
  .jpos-finance-toolbar-actions .btn,
  .jpos-page[data-page-controller="reports"] .jpos-report-actions .btn,
  .jpos-page[data-page-controller="resolution"] .jpos-resolution-toolbar-actions .btn{
    width:100%!important;
    min-width:0!important;
    min-height:44px!important;
    height:44px!important;
  }
  .jpos-page[data-page-controller="reports"] .jpos-report-actions .js-report-refresh{grid-column:1/2}
  .jpos-page[data-page-controller="reports"] .jpos-report-actions .js-report-print{grid-column:2/3}
  .jpos-page[data-page-controller="reports"] .jpos-report-actions .js-open-resolution-center{grid-column:1/-1!important}

  .jpos-finance-contextstrip,
  .jpos-page[data-page-controller="reports"] .jpos-report-periodbar,
  .jpos-page[data-page-controller="resolution"] .jpos-resolution-periodbar{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    margin-bottom:12px;
  }
  .jpos-finance-context-note,
  .jpos-report-periodbar-note{text-align:left}

  .jpos-page[data-page-controller="resolution"] .jpos-resolution-safety-note{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .jpos-page[data-page-controller="resolution"] .jpos-resolution-safety-note .js-resolution-diagnostic{
    width:100%;
    justify-content:center;
  }
}

@media print{
  body.jpos-print-report .jpos-report-toolbar,
  body.jpos-print-report .jpos-report-actions{display:none!important}
  body.jpos-print-report .jpos-report-periodbar{margin-bottom:10px!important}
}


/* ========================================================================== 
   FINANCE V2 · PERPINDAHAN & SETTLEMENT — Operational UX only
   Scoped strictly to data-page-controller="movements".
   ========================================================================== */
.jpos-page[data-page-controller="movements"]{
  --mv-blue:#3182f6;
  --mv-teal:#16a6a1;
  --mv-green:#2aa66c;
  --mv-amber:#d99a17;
  --mv-red:#d45b5b;
  --mv-navy:#294f75;
  display:block;
}

.jpos-page[data-page-controller="movements"] .jpos-finance-pagehead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin:0 0 12px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.jpos-page[data-page-controller="movements"] .jpos-finance-pagehead .jpos-pagehead-copy{max-width:920px;min-width:0}
.jpos-page[data-page-controller="movements"] .jpos-finance-pagehead h1{
  margin:3px 0 4px;
  color:#1f2937;
  font-size:1.45rem;
  font-weight:600;
  line-height:1.2;
}
.jpos-page[data-page-controller="movements"] .jpos-finance-pagehead p{
  max-width:850px;
  margin:0;
  color:#728499;
  font-size:.82rem;
  line-height:1.45;
}

.jpos-page[data-page-controller="movements"] .jpos-movement-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  align-items:center;
  gap:14px;
  margin:0 0 8px;
  padding:11px 12px;
  border:1px solid #dfe7ef;
  border-radius:12px;
  background:#fff;
  box-shadow:none;
}
.jpos-movement-toolbar-copy{min-width:0}
.jpos-movement-toolbar-copy>strong{display:block;margin:2px 0;color:#20354b;font-size:12px;line-height:1.25}
.jpos-movement-toolbar-copy>small{display:block;color:#7a8b9e;font-size:9.5px;line-height:1.4}
.jpos-page[data-page-controller="movements"] .jpos-movement-toolbar-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  width:auto!important;
  margin:0!important;
}
.jpos-page[data-page-controller="movements"] .jpos-movement-toolbar-actions .btn{
  width:auto!important;
  min-height:40px!important;
  height:40px!important;
  justify-content:center!important;
  white-space:nowrap!important;
}
.jpos-page[data-page-controller="movements"] .jpos-movement-toolbar-actions .js-mv-new{min-width:142px}

.jpos-page[data-page-controller="movements"] .jpos-movement-contextstrip{margin-bottom:14px}

.jpos-movement-overview,
.jpos-page[data-page-controller="movements"] .jpos-movement-section{
  margin-top:14px;
  padding:15px;
  border:1px solid #e1e8f0;
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 16px rgba(24,52,82,.035);
}
.jpos-movement-overview{margin-top:0}
.jpos-page[data-page-controller="movements"] .jpos-movement-section{overflow:hidden}

.jpos-movement-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:13px;
}
.jpos-movement-section-head h2{margin:2px 0 3px;color:#1c3148;font-size:16px;line-height:1.2;font-weight:750}
.jpos-movement-section-head p{max-width:820px;margin:0;color:#74859a;font-size:10.5px;line-height:1.5}
.jpos-movement-section-badge{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  background:#eef6ff;
  color:#3975ad;
  font-size:9.5px;
  font-weight:800;
  white-space:nowrap;
}
.jpos-movement-section-badge.is-warning{background:#fff4dc;color:#9a6808}
.jpos-movement-section-meta{text-align:right;flex:0 0 auto}
.jpos-movement-section-meta small{display:block;color:#8493a2;font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.jpos-movement-section-meta strong{display:block;margin-top:2px;color:#1b334b;font-size:15px}

.jpos-movement-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.jpos-movement-summary-card{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:100px;
  padding:13px 14px;
  border:1px solid #e1e8f0;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
.jpos-movement-summary-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#94a7ba}
.jpos-movement-summary-card.is-balance:before{background:var(--mv-blue)}
.jpos-movement-summary-card.is-reserved:before{background:var(--mv-amber)}
.jpos-movement-summary-card.is-free:before{background:var(--mv-green)}
.jpos-movement-summary-card.is-account:before{background:var(--mv-navy)}
.jpos-movement-summary-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
  border-radius:11px!important;
  background:#eef5fd!important;
  color:#3478bd!important;
  font-size:20px!important;
  line-height:1!important;
}
.jpos-movement-summary-card.is-reserved .jpos-movement-summary-icon{background:#fff5e3!important;color:#c8890b!important}
.jpos-movement-summary-card.is-free .jpos-movement-summary-icon{background:#eaf7ef!important;color:#249260!important}
.jpos-movement-summary-card.is-account .jpos-movement-summary-icon{background:#eef3f8!important;color:#315b83!important}
.jpos-movement-summary-card>div{min-width:0}
.jpos-movement-summary-card>div>small{display:block;color:#697b8f;font-size:9px;font-weight:750}
.jpos-movement-summary-card>div>strong{display:block;margin:4px 0 3px;color:#1b3047;font-size:18px;line-height:1.15;letter-spacing:-.02em}
.jpos-movement-summary-card>div>span{display:block;color:#8291a1;font-size:8.8px;line-height:1.4}

.jpos-movement-readout{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin-top:10px;
  padding:11px 13px;
  border:1px solid #dce9f5;
  border-radius:11px;
  background:#f7fbff;
}
.jpos-movement-readout.is-good{border-color:#cfe8db;background:#f5fbf7}
.jpos-movement-readout.is-warning{border-color:#f0dfb7;background:#fffaf0}
.jpos-movement-readout.is-danger{border-color:#efcdcd;background:#fff8f8}
.jpos-movement-readout-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:9px;
  background:#e7f2ff;
  color:#3478bd;
  font-size:17px;
}
.jpos-movement-readout.is-good .jpos-movement-readout-icon{background:#e7f6ed;color:#2d9161}
.jpos-movement-readout.is-warning .jpos-movement-readout-icon{background:#fff0ce;color:#bd7f08}
.jpos-movement-readout.is-danger .jpos-movement-readout-icon{background:#fbeaea;color:#c65353}
.jpos-movement-readout small{display:block;color:#7890a6;font-size:8.5px;font-weight:800;letter-spacing:.07em}
.jpos-movement-readout strong{display:block;margin:2px 0 3px;color:#20364d;font-size:11.5px;line-height:1.4}
.jpos-movement-readout p{margin:0;color:#6f8195;font-size:10px;line-height:1.5}

.jpos-page[data-page-controller="movements"] .jpos-movement-account-table{min-width:1020px}
.jpos-page[data-page-controller="movements"] .jpos-movement-history-table{min-width:1040px}
.jpos-page[data-page-controller="movements"] .jpos-movement-account-table td,
.jpos-page[data-page-controller="movements"] .jpos-movement-history-table td{vertical-align:middle}
.jpos-page[data-page-controller="movements"] .jpos-movement-account-table tr.is-negative td[data-label="Saldo"],
.jpos-page[data-page-controller="movements"] .jpos-movement-account-table tr.is-negative td[data-label="Dana Bebas"]{color:#c44f4f}
.jpos-page[data-page-controller="movements"] .jpos-movement-account-table .jpos-health-pill{min-width:58px;justify-content:center}
.jpos-movement-helper{display:flex;align-items:flex-start;gap:7px;margin-top:9px;padding:8px 10px;border-radius:8px;background:#f8fafc;color:#7b8b9c;font-size:9.5px;line-height:1.45}
.jpos-movement-helper>i{margin-top:1px;color:#4e7da7}

.jpos-movement-route-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.jpos-movement-route-card{
  position:relative;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 16px;
  align-items:center;
  gap:10px;
  min-height:86px;
  padding:11px 12px;
  border:1px solid #e2e9f0;
  border-radius:11px;
  background:#fff;
  overflow:hidden;
}
.jpos-movement-route-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#2fa76f}
.jpos-movement-route-card.is-invalid:before{background:#d45b5b}
.jpos-movement-route-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:#edf6fb;color:#2d7daa;font-size:18px}
.jpos-movement-route-copy{min-width:0}
.jpos-movement-route-top{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:4px}
.jpos-movement-route-top>span:first-child{color:#697b8f;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.jpos-movement-route-copy>strong{display:block;color:#20354b;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-movement-route-copy>small{display:block;margin-top:3px;color:#8291a1;font-size:9px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-movement-route-arrow{color:#a3afba;font-size:11px}
.jpos-movement-route-empty{grid-column:1/-1;display:flex;align-items:center;gap:9px;padding:15px;border:1px dashed #e0c88c;border-radius:10px;background:#fffaf0;color:#8e6a18}
.jpos-movement-route-empty>i{font-size:20px}
.jpos-movement-route-empty>strong{font-size:11px}
.jpos-movement-route-empty>span{font-size:9.5px;color:#8b7c5d}

.jpos-movement-history-filters{
  display:grid;
  grid-template-columns:minmax(240px,1.65fr) minmax(140px,.8fr) minmax(130px,.7fr) minmax(145px,.75fr) minmax(145px,.75fr);
  gap:8px;
  padding:10px;
  margin-bottom:8px;
  border:1px solid #e4eaf0;
  border-radius:10px;
  background:#f9fbfd;
}
.jpos-movement-history-filters>label{display:grid;gap:5px;margin:0;min-width:0}
.jpos-movement-history-filters>label>span{color:#73859a;font-size:8.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.jpos-movement-history-filters .form-control{width:100%;min-width:0;height:38px;font-size:11px}
.jpos-movement-search-field>div{position:relative}
.jpos-movement-search-field>div>i{position:absolute;left:11px;top:50%;z-index:2;transform:translateY(-50%);color:#8092a5;font-size:13px;pointer-events:none}
.jpos-movement-search-field input{padding-left:32px!important}
.jpos-movement-history-context{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:0 2px;color:#7b8b9c;font-size:9.5px;line-height:1.4}
.jpos-movement-history-context .btn{flex:0 0 auto}

@media(max-width:1199px){
  .jpos-movement-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-movement-route-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-movement-history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-movement-search-field{grid-column:1/-1}
}

@media(max-width:991px){
  .jpos-page[data-page-controller="movements"] .jpos-movement-toolbar{grid-template-columns:1fr;align-items:start}
  .jpos-page[data-page-controller="movements"] .jpos-movement-toolbar-actions{justify-content:flex-start!important}
  .jpos-movement-route-grid{grid-template-columns:1fr}
}

@media(max-width:767px){
  .jpos-page[data-page-controller="movements"] .jpos-finance-pagehead{display:block;margin-bottom:10px;padding:0}
  .jpos-page[data-page-controller="movements"] .jpos-finance-pagehead h1{font-size:1.25rem}
  .jpos-page[data-page-controller="movements"] .jpos-finance-pagehead p{font-size:.8rem}

  .jpos-page[data-page-controller="movements"] .jpos-movement-toolbar{gap:9px;padding:10px}
  .jpos-page[data-page-controller="movements"] .jpos-movement-toolbar-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  .jpos-page[data-page-controller="movements"] .jpos-movement-toolbar-actions .btn{width:100%!important;min-width:0!important;min-height:44px!important;height:44px!important}
  .jpos-page[data-page-controller="movements"] .jpos-movement-toolbar-actions .js-mv-new{grid-column:1/-1}

  .jpos-movement-overview,
  .jpos-page[data-page-controller="movements"] .jpos-movement-section{padding:12px;border-radius:12px}
  .jpos-movement-section-head{display:block}
  .jpos-movement-section-badge,.jpos-movement-section-meta{display:inline-flex;margin-top:8px;text-align:left}
  .jpos-movement-section-meta{align-items:baseline;gap:6px}

  .jpos-movement-summary-grid{grid-template-columns:1fr 1fr;gap:8px}
  .jpos-movement-summary-card{display:block;min-height:132px;padding:11px}
  .jpos-movement-summary-icon{width:34px!important;height:34px!important;flex-basis:34px!important;margin-bottom:8px;font-size:16px!important}
  .jpos-movement-summary-card>div>strong{font-size:15px}
  .jpos-movement-summary-card>div>span{font-size:8.4px}
  .jpos-movement-readout{padding:10px}

  .jpos-movement-history-filters{grid-template-columns:1fr;padding:9px}
  .jpos-movement-search-field{grid-column:auto}
  .jpos-movement-history-filters .form-control{height:42px;font-size:12px}
  .jpos-movement-history-context{align-items:flex-start;flex-direction:column}

  .jpos-page[data-page-controller="movements"] .jpos-movement-account-section .jpos-table-wrap,
  .jpos-page[data-page-controller="movements"] .jpos-movement-history-section .jpos-table-wrap{overflow:visible}
  .jpos-page[data-page-controller="movements"] .jpos-movement-account-table,
  .jpos-page[data-page-controller="movements"] .jpos-movement-history-table{min-width:0;width:100%;border-collapse:separate;border-spacing:0 8px}
  .jpos-page[data-page-controller="movements"] .jpos-movement-account-table thead,
  .jpos-page[data-page-controller="movements"] .jpos-movement-history-table thead{display:none}
  .jpos-page[data-page-controller="movements"] .jpos-movement-account-table tbody,
  .jpos-page[data-page-controller="movements"] .jpos-movement-history-table tbody{display:block}
  .jpos-page[data-page-controller="movements"] .jpos-movement-account-table tr,
  .jpos-page[data-page-controller="movements"] .jpos-movement-history-table tr{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;padding:10px;border:1px solid #e3eaf1;border-radius:10px;background:#fff}
  .jpos-page[data-page-controller="movements"] .jpos-movement-account-table td,
  .jpos-page[data-page-controller="movements"] .jpos-movement-history-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:5px 0!important;border:0!important;text-align:right!important;font-size:10px}
  .jpos-page[data-page-controller="movements"] .jpos-movement-account-table td:before,
  .jpos-page[data-page-controller="movements"] .jpos-movement-history-table td:before{content:attr(data-label);color:#8291a0;font-size:8px;font-weight:700;text-transform:uppercase;text-align:left}
  .jpos-page[data-page-controller="movements"] .jpos-movement-account-table td:first-child,
  .jpos-page[data-page-controller="movements"] .jpos-movement-history-table td:first-child{grid-column:1/-1;display:block;padding-bottom:7px!important;margin-bottom:3px;border-bottom:1px solid #edf1f5!important;text-align:left!important}
  .jpos-page[data-page-controller="movements"] .jpos-movement-account-table td:first-child:before,
  .jpos-page[data-page-controller="movements"] .jpos-movement-history-table td:first-child:before{display:none}
  .jpos-page[data-page-controller="movements"] .jpos-movement-account-table td:last-child,
  .jpos-page[data-page-controller="movements"] .jpos-movement-history-table td:last-child{grid-column:1/-1;justify-content:flex-end;padding-top:7px!important;margin-top:3px;border-top:1px solid #edf1f5!important}
  .jpos-page[data-page-controller="movements"] .jpos-movement-account-table .jpos-empty-cell,
  .jpos-page[data-page-controller="movements"] .jpos-movement-history-table .jpos-empty-cell{grid-column:1/-1!important;display:block!important;text-align:center!important;border:0!important;margin:0!important}
  .jpos-page[data-page-controller="movements"] .jpos-movement-account-table .jpos-empty-cell:before,
  .jpos-page[data-page-controller="movements"] .jpos-movement-history-table .jpos-empty-cell:before{display:none!important}

  .jpos-movement-route-card{grid-template-columns:36px minmax(0,1fr);min-height:82px}
  .jpos-movement-route-arrow{display:none}
  .jpos-movement-route-copy>small{white-space:normal}
}

@media(max-width:420px){
  .jpos-movement-summary-grid{grid-template-columns:1fr}
  .jpos-movement-summary-card{display:flex;min-height:92px}
  .jpos-movement-summary-icon{margin-bottom:0}
  .jpos-page[data-page-controller="movements"] .jpos-movement-toolbar-actions{grid-template-columns:1fr!important}
  .jpos-page[data-page-controller="movements"] .jpos-movement-toolbar-actions .js-mv-new{grid-column:auto}
}

/* =========================================================
   STEP 9.3.3G — Payroll Operational UX Polish
   Scope: .jpos-payroll-page only. Payroll/Finance engine unchanged.
   ========================================================= */
.jpos-payroll-page{font-size:14px;padding-bottom:28px}
.jpos-payroll-page .jpos-pagehead{margin-bottom:16px}
.jpos-payroll-page .jpos-pagehead h1{margin-bottom:5px}
.jpos-payroll-page .jpos-pagehead p{max-width:900px;line-height:1.5}
.jpos-payroll-pagehead-actions{display:flex;gap:8px;flex-wrap:wrap}

.jpos-payroll-control-card{padding:0;overflow:hidden;margin-bottom:16px}
.jpos-payroll-control-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:16px 18px 14px;border-bottom:1px solid #e3eaf1;background:#fff}
.jpos-payroll-period-picker{display:grid;grid-template-columns:minmax(180px,230px) auto;align-items:end;column-gap:12px;row-gap:4px}
.jpos-payroll-period-picker label,.jpos-payroll-state-label{grid-column:1/-1;font-size:10px;font-weight:800;letter-spacing:.08em;color:#708198}
.jpos-payroll-period-picker .form-control{width:100%;min-height:42px}
.jpos-payroll-period-picker>span{align-self:center;font-size:13px;font-weight:700;color:#28435e}
.jpos-payroll-period-state{text-align:right;display:grid;gap:4px}
.jpos-payroll-period-state strong{font-size:15px;color:#173451}

.jpos-payroll-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:0 18px;border-bottom:1px solid #e3eaf1;background:#f8fafc}
.jpos-payroll-flow-step{position:relative;display:flex;align-items:center;gap:9px;min-height:70px;padding:12px 16px 12px 0;color:#77879a}
.jpos-payroll-flow-step:not(:last-child):after{content:"";position:absolute;right:10px;top:50%;width:18px;height:1px;background:#d7e1eb}
.jpos-payroll-flow-step>span{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#edf2f7;color:#6b7d90;font-weight:800;flex:0 0 28px}
.jpos-payroll-flow-step div{min-width:0}
.jpos-payroll-flow-step strong{display:block;font-size:12px;color:#445a71;line-height:1.25}
.jpos-payroll-flow-step small{display:block;margin-top:2px;font-size:10px;line-height:1.3;color:#8290a2}
.jpos-payroll-flow-step.is-current>span{background:#d9f4f4;color:#087d82;box-shadow:0 0 0 3px #edfafa}
.jpos-payroll-flow-step.is-current strong{color:#0d6f74}
.jpos-payroll-flow-step.is-complete>span{background:#e7f7ef;color:#0a7a47}
.jpos-payroll-flow-step.is-complete>span:before{content:"✓";font-size:14px}
.jpos-payroll-flow-step.is-complete>span{font-size:0}
.jpos-payroll-flow-step.is-complete strong{color:#345f4f}

.jpos-payroll-next{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 18px;background:#fff}
.jpos-payroll-next-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:#e9f7f8;color:#0a8a91;font-size:24px}
.jpos-payroll-next-copy{display:grid;gap:2px;min-width:0}
.jpos-payroll-next-copy>span{font-size:10px;font-weight:800;letter-spacing:.08em;color:#74869a}
.jpos-payroll-next-copy strong{font-size:14px;color:#1c354e}
.jpos-payroll-next-copy small{font-size:11px;color:#6d7e91;line-height:1.4}
.jpos-payroll-next .btn{min-width:150px;min-height:40px}
.jpos-payroll-secondary-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;padding:10px 18px;border-top:1px solid #edf1f5;background:#fafbfd}
.jpos-payroll-secondary-actions .btn{min-height:34px;padding:6px 11px;font-size:12px}

.jpos-payroll-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:12px}
.jpos-payroll-metric{position:relative;display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;min-height:108px;padding:15px;border:1px solid #dfe7ef;border-left:4px solid #8aa0b8;border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(25,52,79,.04)}
.jpos-payroll-metric-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:11px;background:#eef3f8;color:#45617e;font-size:21px}
.jpos-payroll-metric>div>span{display:block;font-size:10px;font-weight:700;color:#66798f;line-height:1.35}
.jpos-payroll-metric strong{display:block;margin:5px 0 2px;font-size:17px;color:#172d44;line-height:1.2;overflow-wrap:anywhere}
.jpos-payroll-metric small{display:block;font-size:10px;color:#8391a1;line-height:1.35}
.jpos-payroll-metric.is-blue{border-left-color:#408be8}.jpos-payroll-metric.is-blue .jpos-payroll-metric-icon{background:#eaf3ff;color:#2878d1}
.jpos-payroll-metric.is-navy{border-left-color:#214e77}.jpos-payroll-metric.is-navy .jpos-payroll-metric-icon{background:#edf3f8;color:#214e77}
.jpos-payroll-metric.is-green{border-left-color:#2aa56e}.jpos-payroll-metric.is-green .jpos-payroll-metric-icon{background:#e9f8f0;color:#16875a}
.jpos-payroll-metric.is-amber{border-left-color:#e6a11c}.jpos-payroll-metric.is-amber .jpos-payroll-metric-icon{background:#fff4df;color:#b57808}
.jpos-payroll-metric.is-teal{border-left-color:#1b9ea3}.jpos-payroll-metric.is-teal .jpos-payroll-metric-icon{background:#e8f7f7;color:#14878c}
.jpos-payroll-metric.is-red{border-left-color:#d75b5b}.jpos-payroll-metric.is-red .jpos-payroll-metric-icon{background:#fdeeee;color:#b83f3f}

.jpos-payroll-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}
.jpos-payroll-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 13px;border:1px solid #e1e8ef;border-radius:10px;background:#f9fbfd}
.jpos-payroll-breakdown span{font-size:11px;color:#65788e}
.jpos-payroll-breakdown strong{font-size:13px;color:#203b55;text-align:right}

.jpos-payroll-attention-card,.jpos-payroll-period-card,.jpos-payroll-master-card{margin-bottom:16px;overflow:hidden}
.jpos-payroll-section-head{padding:15px 16px;margin:0;border-bottom:1px solid #e4ebf2}
.jpos-payroll-section-head h2{margin:2px 0 3px;font-size:15px}
.jpos-payroll-section-head p{margin:0;color:#718196;font-size:11px;line-height:1.45}
.jpos-payroll-attention-list{display:grid;gap:8px;padding:12px 16px 16px}
.jpos-payroll-attention-item{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;padding:11px 12px;border:1px solid #e0e8ef;border-radius:10px;background:#fff}
.jpos-payroll-attention-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;background:#eef4fa;color:#52708e;font-size:18px}
.jpos-payroll-attention-item strong{display:block;font-size:12px;color:#233a51}
.jpos-payroll-attention-item small{display:block;margin-top:3px;font-size:11px;color:#708095;line-height:1.4}
.jpos-payroll-attention-item.is-warning{background:#fffcf5;border-color:#f2dfb8}.jpos-payroll-attention-item.is-warning .jpos-payroll-attention-icon{background:#fff2d8;color:#a96a00}
.jpos-payroll-attention-item.is-danger{background:#fff8f8;border-color:#f0d4d4}.jpos-payroll-attention-item.is-danger .jpos-payroll-attention-icon{background:#fde9e9;color:#bc4545}
.jpos-payroll-attention-item.is-success{background:#f7fcf9;border-color:#d7eadf}.jpos-payroll-attention-item.is-success .jpos-payroll-attention-icon{background:#e8f7ee;color:#1b8155}
.jpos-payroll-attention-item.is-info .jpos-payroll-attention-icon{background:#eaf4fd;color:#3477ad}
.jpos-payroll-attention-empty{padding:14px;color:#7a8999;text-align:center}

.jpos-payroll-period-card .jpos-table-wrap,.jpos-payroll-master-card .jpos-table-wrap{margin:0}
.jpos-payroll-table{min-width:1180px}
.jpos-payroll-master-table{min-width:980px}
.jpos-payroll-table td{vertical-align:top}
.jpos-payroll-table td,.jpos-payroll-table th{padding-top:10px;padding-bottom:10px}
.jpos-payroll-table .jpos-sub{margin-top:3px}
.jpos-payroll-outstanding{color:#b96d00}
.jpos-payroll-master-body[hidden]{display:none!important}
.jpos-payroll-master-body{border-top:0}
.jpos-payroll-master-card .jpos-inline-actions{align-items:center}

@media(max-width:1200px){
  .jpos-payroll-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .jpos-payroll-control-head{align-items:stretch;flex-direction:column}
  .jpos-payroll-period-state{text-align:left}
  .jpos-payroll-flow{grid-template-columns:1fr;gap:0;padding:8px 16px}
  .jpos-payroll-flow-step{min-height:50px;padding:8px 0}
  .jpos-payroll-flow-step:not(:last-child):after{left:14px;right:auto;top:auto;bottom:-5px;width:1px;height:10px}
  .jpos-payroll-next{grid-template-columns:auto 1fr}
  .jpos-payroll-next .btn{grid-column:1/-1;width:100%}
  .jpos-payroll-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767.98px){
  .jpos-payroll-page{font-size:16px;padding-bottom:22px}
  .jpos-payroll-page .jpos-pagehead{gap:12px}
  .jpos-payroll-pagehead-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .jpos-payroll-pagehead-actions .btn{width:100%;min-height:44px;font-size:15px}
  .jpos-payroll-control-head{padding:14px}
  .jpos-payroll-period-picker{grid-template-columns:1fr}
  .jpos-payroll-period-picker label{grid-column:auto}
  .jpos-payroll-period-picker .form-control{font-size:16px;min-height:46px}
  .jpos-payroll-period-picker>span{font-size:14px}
  .jpos-payroll-period-state strong{font-size:16px}
  .jpos-payroll-flow{padding:8px 14px}
  .jpos-payroll-flow-step strong{font-size:15px}
  .jpos-payroll-flow-step small{font-size:13px}
  .jpos-payroll-next{padding:14px}
  .jpos-payroll-next-copy>span{font-size:12px}
  .jpos-payroll-next-copy strong{font-size:16px}
  .jpos-payroll-next-copy small{font-size:14px}
  .jpos-payroll-next .btn{min-height:46px;font-size:16px}
  .jpos-payroll-secondary-actions{justify-content:flex-start;padding:10px 14px}
  .jpos-payroll-secondary-actions .btn{flex:1 1 calc(50% - 8px);min-height:42px;font-size:14px}
  .jpos-payroll-summary-grid{grid-template-columns:1fr;gap:10px}
  .jpos-payroll-metric{min-height:94px;padding:14px}
  .jpos-payroll-metric-icon{width:46px;height:46px;font-size:23px}
  .jpos-payroll-metric>div>span{font-size:13px}
  .jpos-payroll-metric strong{font-size:20px}
  .jpos-payroll-metric small{font-size:13px}
  .jpos-payroll-breakdown{grid-template-columns:1fr}
  .jpos-payroll-breakdown>div{padding:12px 14px}
  .jpos-payroll-breakdown span,.jpos-payroll-breakdown strong{font-size:14px}
  .jpos-payroll-section-head{padding:14px}
  .jpos-payroll-section-head h2{font-size:17px}
  .jpos-payroll-section-head p{font-size:14px}
  .jpos-payroll-attention-list{padding:10px 14px 14px}
  .jpos-payroll-attention-item{padding:12px}
  .jpos-payroll-attention-item strong{font-size:15px}
  .jpos-payroll-attention-item small{font-size:14px}
  .jpos-payroll-table{min-width:1180px}
  .jpos-payroll-master-table{min-width:980px}
  .jpos-payroll-page .jpos-table-wrap{-webkit-overflow-scrolling:touch}
}
@media(max-width:430px){
  .jpos-payroll-pagehead-actions{grid-template-columns:1fr}
  .jpos-payroll-next{grid-template-columns:1fr}
  .jpos-payroll-next-icon{display:none}
  .jpos-payroll-secondary-actions .btn{flex-basis:100%}
}

/* =========================================================
   STEP 9.3.3H — Draft ownership, actor identity & receipt PDF
   ========================================================= */
.jpos-tx-workspace .tx72-list-main{width:18%}
.jpos-tx-workspace .tx72-list-customer{width:14%}
.jpos-tx-workspace .tx72-list-store{width:9%}
.jpos-tx-workspace .tx72-list-date{width:12%}
.jpos-tx-workspace .jpos-tx-actor-cell{width:14%}
.jpos-tx-workspace .tx72-list-total{width:8%}
.jpos-tx-workspace .tx72-list-outstanding{width:8%}
.jpos-tx-workspace .tx72-list-status{width:7%}
.jpos-tx-workspace .jpos-tx-action-cell{width:10%}

.jpos-tx-actor{display:grid;gap:2px;min-width:120px;line-height:1.25}
.jpos-tx-actor strong{color:#243b52;font-size:.78rem;font-weight:800;overflow-wrap:anywhere}
.jpos-tx-actor span{color:#78899a;font-size:.66rem;overflow-wrap:anywhere}
.jpos-tx-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.jpos-tx-row-actions .btn,.jpos-tx-action-cell>.btn{min-height:34px;padding:6px 9px;white-space:nowrap;font-size:.72rem}
.jpos-tx-stale-badge{display:inline-flex;align-items:center;min-height:20px;padding:2px 6px;border-radius:999px;background:#fff0d2;color:#9a6200;font-size:.58rem;font-weight:900;letter-spacing:.035em;white-space:nowrap}
.jpos-tx-workspace .is-stale-draft{background:#fffcf5}
.jpos-tx-workspace .is-stale-draft td:first-child{box-shadow:inset 3px 0 0 #e7a52c}
.tx72-meta-actor{max-width:100%;overflow-wrap:anywhere}

.jpos-receipt-actions{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;align-items:center}
.jpos-receipt-success-icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:18px;background:#e5f7ef;color:#16815a;font-size:28px}
.jpos-receipt-success-copy{display:grid;gap:4px}
.jpos-receipt-success-copy strong{color:#173451;font-size:1.05rem}
.jpos-receipt-success-copy span{color:#64778a;font-size:.82rem}
.jpos-receipt-info-grid{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}
.jpos-receipt-info-grid>div{display:grid;gap:3px;padding:11px 12px;border:1px solid #e0e8ef;border-radius:10px;background:#f8fafc}
.jpos-receipt-info-grid>div.full{grid-column:1/-1}
.jpos-receipt-info-grid span{color:#7d8b9a;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.jpos-receipt-info-grid strong{color:#263d54;font-size:.82rem;line-height:1.4}
.jpos-receipt-note{grid-column:1/-1;display:flex;gap:9px;align-items:flex-start;padding:10px 12px;border:1px solid #cae6e7;border-radius:10px;background:#eff9f9;color:#456b70;font-size:.76rem;line-height:1.45}
.jpos-receipt-note i{flex:0 0 auto;color:#16969b;font-size:18px}
.jpos-modal-footer .js-receipt-send[disabled]{opacity:.48;cursor:not-allowed}

@media(max-width:767px){
  .jpos-tx-workspace .tx6-transaction-table{width:1540px!important;min-width:1540px!important}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(1),.jpos-tx-workspace .tx6-transaction-table td:nth-child(1){width:235px!important}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(2),.jpos-tx-workspace .tx6-transaction-table td:nth-child(2){width:180px!important}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(3),.jpos-tx-workspace .tx6-transaction-table td:nth-child(3){width:130px!important}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(4),.jpos-tx-workspace .tx6-transaction-table td:nth-child(4){width:220px!important;white-space:normal!important}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(5),.jpos-tx-workspace .tx6-transaction-table td:nth-child(5){width:185px!important;text-align:left!important;white-space:normal!important}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(6),.jpos-tx-workspace .tx6-transaction-table td:nth-child(6){width:125px!important;text-align:right!important}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(7),.jpos-tx-workspace .tx6-transaction-table td:nth-child(7){width:125px!important;text-align:right!important}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(8),.jpos-tx-workspace .tx6-transaction-table td:nth-child(8){width:120px!important;text-align:center!important}
  .jpos-tx-workspace .tx6-transaction-table th:nth-child(9),.jpos-tx-workspace .tx6-transaction-table td:nth-child(9){width:220px!important}
  .jpos-tx-row-actions{flex-wrap:nowrap}
  .jpos-tx-row-actions .btn,.jpos-tx-action-cell>.btn{min-height:42px;font-size:14px}
  .jpos-tx-actor strong{font-size:14px}.jpos-tx-actor span{font-size:12px}
  .jpos-receipt-actions{grid-template-columns:48px minmax(0,1fr);font-size:16px}
  .jpos-receipt-success-icon{width:48px;height:48px;border-radius:15px;font-size:24px}
  .jpos-receipt-success-copy strong{font-size:17px}.jpos-receipt-success-copy span{font-size:14px}
  .jpos-receipt-info-grid{grid-template-columns:1fr}
  .jpos-receipt-info-grid>div.full{grid-column:auto}
  .jpos-receipt-info-grid span{font-size:12px}.jpos-receipt-info-grid strong{font-size:15px}
  .jpos-receipt-note{font-size:14px}
  .jpos-modal-footer .js-receipt-print,.jpos-modal-footer .js-receipt-send{flex:1 1 calc(50% - 8px);min-height:46px;font-size:15px}
}

/* =========================================================
   STEP 9.3.3J — Master Kebutuhan Dana & Reserve Settlement
   Desktop 14px / mobile 16px mengikuti root typography canonical.
   ========================================================= */
.jpos-fr-guide{overflow:hidden}
.jpos-fr-flow{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);gap:14px;align-items:center}
.jpos-fr-flow>div{display:grid;grid-template-columns:34px minmax(0,1fr);column-gap:10px;row-gap:2px;align-items:center;padding:14px;border:1px solid #e1e9f0;border-radius:12px;background:#f8fbfd}
.jpos-fr-flow>div>span{grid-row:1/3;display:flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;background:#e3f4f4;color:#158b91;font-weight:900}
.jpos-fr-flow strong{color:#1d3852}.jpos-fr-flow small{color:#708398;line-height:1.35}
.jpos-fr-flow>i{color:#8ca0b4;font-size:20px}
.jpos-fr-filterbar,.jpos-stepj-queue-filter,.jpos-expense-queue-filter{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.jpos-fr-filterbar select,.jpos-stepj-queue-filter select{width:auto;min-width:170px}
.jpos-fr-table td,.jpos-funding-queue-table td,.jpos-exp-queue-table td,.jpos-reserve-settlement-table td{vertical-align:middle}
.jpos-fr-table .jpos-inline-actions,.jpos-movement-account-table .jpos-inline-actions{flex-wrap:wrap}
.jpos-location-cell{min-width:170px}.jpos-location-line{display:block;color:#536a80;font-size:.78rem;line-height:1.45}.jpos-location-line+ .jpos-location-line{margin-top:3px}.jpos-location-line.is-hub{color:#147c6a}.jpos-location-line.is-hub strong{color:#116c5c}
.jpos-stepj-master-note{margin-top:12px}.jpos-link-button{border:0;background:transparent;padding:0;color:#168a91;font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}
.jpos-stepj-control-card .jpos-fund-metrics,.jpos-expense-queue-card .jpos-fund-metrics{margin:12px 0}
.jpos-reserve-settlement-section{border-color:#cae7e4;background:linear-gradient(180deg,#fbfefe 0%,#fff 100%)}
.jpos-reserve-settlement-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px}
.jpos-reserve-settlement-summary>div{display:grid;gap:3px;padding:12px 14px;border:1px solid #deebe9;border-radius:11px;background:#f5fbfa}
.jpos-reserve-settlement-summary small{text-transform:uppercase;letter-spacing:.04em;color:#718a8a;font-size:.68rem;font-weight:800}.jpos-reserve-settlement-summary strong{color:#173d3a;font-size:1.05rem}
.jpos-hub-pill{margin-left:7px;vertical-align:middle}.jpos-confirm-check{display:flex!important;gap:9px!important;align-items:flex-start!important;padding:11px 12px;border:1px solid #f0d3a6;border-radius:9px;background:#fff9ef;color:#785420}.jpos-confirm-check input{width:auto!important;margin-top:3px}
.jpos-swal-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.jpos-swal-inline .btn{min-height:40px}
.jpos-stepj-control-card .jpos-health-pill.is-good,.jpos-fr-table .jpos-health-pill.is-good{background:#e5f7ef;color:#157453}.jpos-stepj-control-card .jpos-health-pill.is-warning,.jpos-exp-queue-table .jpos-health-pill.is-warning{background:#fff2d7;color:#8c5c05}

@media(max-width:991px){
  .jpos-fr-flow{grid-template-columns:1fr}.jpos-fr-flow>i{transform:rotate(90deg);justify-self:center}
  .jpos-fr-filterbar select,.jpos-stepj-queue-filter select{min-width:0;flex:1 1 180px}
}
@media(max-width:767px){
  .jpos-fr-filterbar,.jpos-stepj-queue-filter,.jpos-expense-queue-filter{display:grid;grid-template-columns:1fr;gap:8px}
  .jpos-fr-filterbar select,.jpos-stepj-queue-filter select,.jpos-stepj-queue-filter .btn,.jpos-expense-queue-filter .btn{width:100%}
  .jpos-reserve-settlement-summary{grid-template-columns:1fr}
  .jpos-fr-table,.jpos-funding-queue-table,.jpos-exp-queue-table,.jpos-reserve-settlement-table{width:100%!important;min-width:0!important}
  .jpos-fr-table thead,.jpos-funding-queue-table thead,.jpos-exp-queue-table thead,.jpos-reserve-settlement-table thead{display:none}
  .jpos-fr-table tbody,.jpos-funding-queue-table tbody,.jpos-exp-queue-table tbody,.jpos-reserve-settlement-table tbody{display:grid;gap:10px}
  .jpos-fr-table tr,.jpos-funding-queue-table tr,.jpos-exp-queue-table tr,.jpos-reserve-settlement-table tr{display:grid!important;grid-template-columns:1fr;border:1px solid #e1e9ef!important;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 3px 12px rgba(26,55,80,.035)}
  .jpos-fr-table td,.jpos-funding-queue-table td,.jpos-exp-queue-table td,.jpos-reserve-settlement-table td{display:grid!important;grid-template-columns:128px minmax(0,1fr);gap:10px;align-items:start;width:100%!important;padding:10px 12px!important;border:0!important;border-bottom:1px solid #edf2f5!important;text-align:left!important;font-size:15px!important;white-space:normal!important}
  .jpos-fr-table td:last-child,.jpos-funding-queue-table td:last-child,.jpos-exp-queue-table td:last-child,.jpos-reserve-settlement-table td:last-child{border-bottom:0!important}
  .jpos-fr-table td::before,.jpos-funding-queue-table td::before,.jpos-exp-queue-table td::before,.jpos-reserve-settlement-table td::before{content:attr(data-label);color:#7a8da0;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.035em}
  .jpos-fr-table .jpos-empty-cell,.jpos-funding-queue-table .jpos-empty-cell,.jpos-exp-queue-table .jpos-empty-cell,.jpos-reserve-settlement-table .jpos-empty-cell{display:block!important;text-align:center!important}
  .jpos-fr-table .jpos-empty-cell::before,.jpos-funding-queue-table .jpos-empty-cell::before,.jpos-exp-queue-table .jpos-empty-cell::before,.jpos-reserve-settlement-table .jpos-empty-cell::before{display:none}
  .jpos-location-line{font-size:14px}.jpos-fr-table .jpos-inline-actions,.jpos-reserve-settlement-table .btn,.jpos-exp-queue-table .btn{width:100%}.jpos-fr-table .jpos-inline-actions .btn{flex:1 1 100%;min-height:42px;font-size:14px}
  .jpos-swal-inline{grid-template-columns:1fr}.jpos-swal-inline .btn{width:100%}
}

/* =========================================================
   STEP 9.3.3J2 — Dana & Alokasi Control Center UX
   Halaman ini menjadi monitoring/control center, bukan input rutin.
   ========================================================= */
.jpos-funding-page{--fund-gap:#b06a00;--fund-gap-bg:#fff8e8;--fund-transfer:#117d83;--fund-transfer-bg:#edfafa;--fund-safe:#177250;--fund-safe-bg:#edf9f3;--fund-ink:#1c344d}
.jpos-funding-page .jpos-pagehead-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.jpos-funding-howto{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:12px;padding:11px 14px;border:1px solid #dfe8ef;border-radius:12px;background:#fff}
.jpos-funding-howto>div{display:flex;align-items:center;gap:10px;min-width:0}
.jpos-funding-howto>i{color:#91a3b4;text-align:center;font-size:18px}
.jpos-funding-howto-no{display:flex;flex:0 0 30px;width:30px;height:30px;align-items:center;justify-content:center;border-radius:50%;background:#e7f6f6;color:#14868c;font-weight:900}
.jpos-funding-howto strong,.jpos-funding-howto small{display:block}.jpos-funding-howto strong{color:var(--fund-ink);font-size:.82rem}.jpos-funding-howto small{margin-top:2px;color:#718399;font-size:.72rem;line-height:1.35}
.jpos-funding-control-head{margin-bottom:12px}
.jpos-funding-action-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:4px 0 16px}
.jpos-funding-action-card{position:relative;display:grid;gap:5px;min-width:0;padding:13px 14px;border:1px solid #dfe7ee;border-radius:12px;background:#fff;text-align:left;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.jpos-funding-action-card:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(31,56,78,.07)}
.jpos-funding-action-card.is-active{box-shadow:0 0 0 2px rgba(24,145,151,.14)}
.jpos-funding-action-card>span{display:flex;align-items:center;gap:7px;color:#667b90;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.025em}
.jpos-funding-action-card>span i{font-size:17px}.jpos-funding-action-card>strong{color:var(--fund-ink);font-size:1.15rem;line-height:1.2}.jpos-funding-action-card>small{color:#75879a;font-size:.72rem;line-height:1.35}
.jpos-funding-action-card.is-attention{background:var(--fund-gap-bg)}.jpos-funding-action-card.is-attention>span,.jpos-funding-action-card.is-attention>strong{color:var(--fund-gap)}.jpos-funding-action-card.is-attention.is-active{border-color:#e4bc73}
.jpos-funding-action-card.is-transfer{background:var(--fund-transfer-bg)}.jpos-funding-action-card.is-transfer>span,.jpos-funding-action-card.is-transfer>strong{color:var(--fund-transfer)}.jpos-funding-action-card.is-transfer.is-active{border-color:#86cccc}
.jpos-funding-action-card.is-safe{background:var(--fund-safe-bg)}.jpos-funding-action-card.is-safe>span,.jpos-funding-action-card.is-safe>strong{color:var(--fund-safe)}.jpos-funding-action-card.is-safe.is-active{border-color:#8bcdb1}
.jpos-funding-action-card.is-total{background:#f7f9fb}.jpos-funding-action-card.is-total.is-active{border-color:#a9b8c7}
.jpos-funding-list-head{display:flex;align-items:end;justify-content:space-between;gap:12px;padding-top:2px}.jpos-funding-list-head h3{margin:0;color:var(--fund-ink);font-size:1rem}.jpos-funding-list-head p{margin:3px 0 0}
.jpos-funding-queue-wrap{margin-top:10px;border-top:1px solid #e7edf2}
.jpos-funding-queue-table th:nth-child(1){width:22%}.jpos-funding-queue-table th:nth-child(2){width:21%}.jpos-funding-queue-table th:nth-child(3){width:20%}.jpos-funding-queue-table th:nth-child(4){width:19%}.jpos-funding-queue-table th:nth-child(5){width:11%}.jpos-funding-queue-table th:nth-child(6){width:7%}
.jpos-origin-tag{display:inline-flex;margin-top:5px;padding:3px 7px;border-radius:999px;background:#f1f5f8;color:#6c8093;font-size:.66rem;font-weight:800}
.jpos-funding-money-stack{display:grid;gap:4px;min-width:142px}.jpos-funding-money-stack>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.jpos-funding-money-stack span{color:#7a8c9e;font-size:.68rem}.jpos-funding-money-stack strong{color:#243c54;font-size:.78rem;white-space:nowrap}.jpos-funding-money-stack .is-gap span,.jpos-funding-money-stack .is-gap strong{color:#b15f17}.jpos-funding-money-stack .is-ok strong{color:#2f7c61}
.jpos-location-line{display:grid;gap:1px}.jpos-location-line small{color:inherit;font-size:.72rem}.jpos-location-line.is-hub{padding-left:8px;border-left:2px solid #55b89c}
.jpos-health-pill.is-transfer{background:#e9f8f8;color:#117b82}
.jpos-funding-find-card{padding:0!important;overflow:hidden}.jpos-funding-find-card>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;cursor:pointer;list-style:none}.jpos-funding-find-card>summary::-webkit-details-marker{display:none}.jpos-funding-find-card>summary>span{display:flex;align-items:center;gap:8px;color:#2b455d;font-weight:800}.jpos-funding-find-card>summary>small{color:#778a9d}.jpos-funding-find-card[open]>summary{border-bottom:1px solid #e6edf2;background:#f9fbfc}.jpos-funding-find-body{padding:12px 14px}
.jpos-funding-detail{display:grid;gap:12px;margin-top:12px;scroll-margin-top:78px}.jpos-funding-detail[hidden]{display:none!important}.jpos-funding-detail-head .jpos-fund-metrics{margin:13px 0}.jpos-funding-detail-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid #e7edf2}.jpos-funding-detail-actions .jpos-badge{margin-left:auto}
.jpos-fund-metric.is-gap{border-color:#efd2a3;background:#fff9ed}.jpos-fund-metric.is-gap strong{color:#a86000}
.jpos-stepj-master-note{margin-top:12px}

@media(max-width:1199px){
  .jpos-funding-action-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:991px){
  .jpos-funding-howto{grid-template-columns:1fr}.jpos-funding-howto>i{transform:rotate(90deg)}
  .jpos-funding-page .jpos-pagehead-actions{justify-content:flex-start}
  .jpos-funding-control-head{align-items:flex-start}
}
@media(max-width:767px){
  .jpos-funding-page{font-size:16px}
  .jpos-funding-page .jpos-pagehead-actions{display:grid;grid-template-columns:1fr;width:100%;margin-top:10px}.jpos-funding-page .jpos-pagehead-actions .btn{width:100%;min-height:44px}
  .jpos-funding-howto{padding:12px}.jpos-funding-howto strong{font-size:15px}.jpos-funding-howto small{font-size:13px}
  .jpos-funding-action-cards{grid-template-columns:1fr}.jpos-funding-action-card{min-height:92px;padding:14px}.jpos-funding-action-card>span{font-size:12px}.jpos-funding-action-card>strong{font-size:20px}.jpos-funding-action-card>small{font-size:13px}
  .jpos-funding-control-head{display:grid;grid-template-columns:1fr}.jpos-funding-control-head .btn{width:100%;min-height:44px}
  .jpos-funding-list-head h3{font-size:17px}.jpos-funding-list-head .jpos-sub{font-size:14px}
  .jpos-funding-queue-table td{grid-template-columns:116px minmax(0,1fr)!important}.jpos-funding-queue-table td[data-label="Pendanaan"]{display:block!important}.jpos-funding-queue-table td[data-label="Pendanaan"]::before{display:block;margin-bottom:7px}.jpos-funding-money-stack{min-width:0}.jpos-funding-money-stack span{font-size:12px}.jpos-funding-money-stack strong{font-size:14px}
  .jpos-origin-tag{font-size:12px}.jpos-location-line small{font-size:13px}.jpos-funding-queue-table .btn{width:100%;min-height:42px;font-size:14px}
  .jpos-funding-find-card>summary{display:grid;grid-template-columns:1fr;gap:4px}.jpos-funding-find-card>summary>small{padding-left:26px;font-size:13px}
  .jpos-funding-detail-actions{display:grid;grid-template-columns:1fr}.jpos-funding-detail-actions .btn{width:100%;min-height:44px}.jpos-funding-detail-actions .jpos-badge{margin-left:0;justify-self:start}
}

/* =========================================================
   STEP 9.3.3J3 — Dana & Alokasi UI polish
   Merapikan hierarchy, spacing, action placement dan responsivitas.
   Canonical: desktop 14px / mobile 16px tetap mengikuti root JPOS.
   ========================================================= */
.jpos-funding-page{
  min-width:0;
  overflow-x:hidden;
}
.jpos-funding-page > *{min-width:0}
.jpos-funding-page .jpos-pagehead > div:first-child{min-width:0}
.jpos-funding-page .jpos-pagehead p{max-width:820px}
.jpos-funding-page .jpos-funding-page-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
}
.jpos-funding-page .jpos-funding-page-actions .btn{
  height:40px;
  min-width:0;
  max-width:100%;
  justify-content:center;
  white-space:nowrap;
}

.jpos-funding-howto{
  margin:0 0 14px;
  padding:12px 14px;
  border-color:#dce6ed;
  border-radius:13px;
  box-shadow:0 3px 12px rgba(31,56,78,.025);
}
.jpos-funding-howto>div{
  padding:1px 2px;
}
.jpos-funding-howto-no{
  flex-basis:32px;
  width:32px;
  height:32px;
}
.jpos-funding-howto strong{font-size:.8rem;line-height:1.25}
.jpos-funding-howto small{font-size:.7rem;line-height:1.35}

.jpos-stepj-control-card{
  border-color:#dce5ec;
  border-radius:14px;
  box-shadow:0 5px 18px rgba(28,54,77,.035);
  overflow:hidden;
}
.jpos-funding-control-section{
  padding:16px 16px 15px;
  background:linear-gradient(180deg,#ffffff 0%,#fcfdfe 100%);
}
.jpos-funding-control-head{
  margin:0 0 13px;
  min-width:0;
}
.jpos-funding-control-head>div{min-width:0}
.jpos-funding-control-head h2{
  margin:3px 0 2px;
  font-size:1.08rem;
  line-height:1.25;
}
.jpos-funding-control-head .jpos-sub{
  max-width:780px;
  margin-top:4px;
  line-height:1.4;
}

.jpos-funding-action-cards{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:0;
}
.jpos-funding-action-card{
  min-height:82px;
  padding:12px 13px;
  gap:4px;
  border-radius:11px;
  overflow:hidden;
}
.jpos-funding-action-card>span{
  min-width:0;
  white-space:normal;
  line-height:1.25;
}
.jpos-funding-action-card>strong{
  margin-top:1px;
  font-size:1.08rem;
}
.jpos-funding-action-card>small{
  min-width:0;
  white-space:normal;
  line-height:1.3;
}

.jpos-funding-list-section{
  min-width:0;
  border-top:1px solid #e5ecf1;
  background:#fff;
}
.jpos-funding-list-head{
  display:block;
  padding:14px 16px 9px;
}
.jpos-funding-list-head h3{
  margin:2px 0 1px;
  font-size:1rem;
  line-height:1.3;
}
.jpos-funding-list-head .jpos-sub{margin-top:3px}

.jpos-funding-page .jpos-stepj-queue-filter{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 155px 155px;
  gap:8px;
  align-items:center;
  padding:0 16px 12px;
  border:0;
  background:#fff;
}
.jpos-funding-page .jpos-stepj-queue-filter .jpos-search{
  width:100%;
  min-width:0;
}
.jpos-funding-page .jpos-stepj-queue-filter .form-control{
  width:100%;
  min-width:0;
  height:40px;
}

.jpos-funding-queue-wrap{
  margin:0 16px 16px;
  border:1px solid #e3eaf0;
  border-radius:11px;
  overflow:auto;
  background:#fff;
}
.jpos-funding-queue-table{
  width:100%;
  table-layout:fixed;
}
.jpos-funding-queue-table thead th{
  padding:10px 11px;
  background:#f8fafb;
  color:#718397;
}
.jpos-funding-queue-table tbody td{
  padding:11px;
  white-space:normal;
  overflow-wrap:anywhere;
}
.jpos-funding-queue-table .jpos-empty-cell{
  padding:30px 16px!important;
  line-height:1.45;
  color:#8392a1!important;
}
.jpos-funding-money-stack{min-width:0}
.jpos-funding-money-stack>div{min-width:0}
.jpos-location-cell{min-width:0}
.jpos-location-line{min-width:0;overflow-wrap:anywhere}
.jpos-funding-queue-table .btn{
  height:36px;
  min-height:36px;
  padding:0 10px;
  justify-content:center;
  white-space:nowrap;
}

.jpos-funding-find-card{
  margin-top:12px;
  border-radius:12px;
  box-shadow:none;
}
.jpos-funding-find-card>summary{
  min-width:0;
  padding:12px 14px;
}
.jpos-funding-find-card>summary>span,
.jpos-funding-find-card>summary>small{min-width:0}
.jpos-funding-find-card>summary>small{text-align:right}
.jpos-funding-find-body{padding:12px 14px 14px}

.jpos-funding-page .jpos-finance-note{
  border-radius:11px;
}

@media(max-width:1199px){
  .jpos-funding-action-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-funding-page .jpos-stepj-queue-filter{grid-template-columns:minmax(220px,1fr) 150px 150px}
}

@media(max-width:991px){
  .jpos-funding-page{overflow-x:hidden}
  .jpos-funding-page .jpos-funding-page-actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin-top:10px;
  }
  .jpos-funding-page .jpos-funding-page-actions .btn{
    width:100%;
    height:auto;
    min-height:44px;
    padding:9px 10px;
    white-space:normal;
    line-height:1.25;
    text-align:center;
  }
  .jpos-funding-howto{grid-template-columns:1fr;gap:7px}
  .jpos-funding-howto>i{transform:rotate(90deg);justify-self:center;line-height:1}
  .jpos-funding-page .jpos-stepj-queue-filter{
    grid-template-columns:minmax(0,1fr) 150px 150px;
  }
}

@media(max-width:767px){
  .jpos-funding-page{font-size:16px}
  .jpos-funding-page .jpos-funding-page-actions{
    grid-template-columns:1fr 1fr;
  }
  .jpos-funding-page .jpos-funding-page-actions .js-open-funding-rules{
    grid-column:1/-1;
  }
  .jpos-funding-howto{
    padding:11px 12px;
    margin-bottom:10px;
  }
  .jpos-funding-howto>div{align-items:flex-start}
  .jpos-funding-howto strong{font-size:15px}
  .jpos-funding-howto small{font-size:13px}

  .jpos-funding-control-section{padding:13px 12px 12px}
  .jpos-funding-control-head{margin-bottom:10px}
  .jpos-funding-control-head h2{font-size:18px}
  .jpos-funding-control-head .jpos-sub{font-size:13px}
  .jpos-funding-action-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .jpos-funding-action-card{
    min-height:90px;
    padding:12px;
  }
  .jpos-funding-action-card>span{font-size:12px}
  .jpos-funding-action-card>strong{font-size:19px}
  .jpos-funding-action-card>small{font-size:12px}

  .jpos-funding-list-head{padding:13px 12px 8px}
  .jpos-funding-list-head h3{font-size:17px}
  .jpos-funding-list-head .jpos-sub{font-size:13px}
  .jpos-funding-page .jpos-stepj-queue-filter{
    grid-template-columns:1fr;
    padding:0 12px 12px;
    gap:8px;
  }
  .jpos-funding-page .jpos-stepj-queue-filter .form-control{
    height:auto;
    min-height:46px;
    font-size:16px;
  }
  .jpos-funding-queue-wrap{
    margin:0 12px 12px;
    border:0;
    border-radius:0;
    overflow:visible;
  }
  .jpos-funding-queue-table{
    width:100%!important;
    min-width:0!important;
    table-layout:auto;
  }
  .jpos-funding-queue-table tbody{width:100%}
  .jpos-funding-queue-table tr{width:100%;min-width:0}
  .jpos-funding-queue-table td{
    min-width:0!important;
    overflow-wrap:anywhere;
  }
  .jpos-funding-queue-table td[data-label="Pendanaan"]{display:block!important}
  .jpos-funding-queue-table .btn{
    width:100%;
    height:auto;
    min-height:44px;
    font-size:14px;
  }
  .jpos-funding-find-card>summary{
    grid-template-columns:1fr;
    gap:5px;
    padding:12px;
  }
  .jpos-funding-find-card>summary>small{
    padding-left:26px;
    text-align:left;
    font-size:12px;
    line-height:1.35;
  }
}

@media(max-width:575px){
  .jpos-funding-page .jpos-funding-page-actions{grid-template-columns:1fr}
  .jpos-funding-page .jpos-funding-page-actions .js-open-funding-rules{grid-column:auto}
  .jpos-funding-action-cards{grid-template-columns:1fr}
  .jpos-funding-action-card{min-height:84px}
  .jpos-funding-control-section,
  .jpos-funding-list-head{padding-left:10px;padding-right:10px}
  .jpos-funding-page .jpos-stepj-queue-filter{padding-left:10px;padding-right:10px}
  .jpos-funding-queue-wrap{margin-left:10px;margin-right:10px}
}

/* =========================================================
   STEP 9.3.3J4 — Pengeluaran Control Center UX
   Queue-first setelah Master Kebutuhan Dana.
   Desktop 14px / mobile 16px mengikuti canonical root JPOS.
   ========================================================= */
.jpos-expense-page{
  --exp-ready:#16735a;
  --exp-ready-bg:#edf9f4;
  --exp-wait:#a56500;
  --exp-wait-bg:#fff8e9;
  --exp-reserve:#117d83;
  --exp-reserve-bg:#edfafa;
  --exp-ink:#1c344d;
  min-width:0;
  overflow-x:hidden;
}
.jpos-expense-page>*{min-width:0}
.jpos-expense-page .jpos-pagehead>div:first-child{min-width:0}
.jpos-expense-page .jpos-pagehead p{max-width:880px}
.jpos-expense-page .jpos-expense-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.jpos-expense-page .jpos-expense-page-actions .btn{height:40px;min-width:0;justify-content:center;white-space:nowrap}

.jpos-expense-howto{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1fr);gap:10px;align-items:center;margin:0 0 14px;padding:12px 14px;border:1px solid #dce6ed;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(31,56,78,.025)}
.jpos-expense-howto>div{display:flex;align-items:center;gap:10px;min-width:0;padding:1px 2px}
.jpos-expense-howto>i{color:#91a3b4;text-align:center;font-size:18px}
.jpos-expense-howto-no{display:flex;flex:0 0 32px;width:32px;height:32px;align-items:center;justify-content:center;border-radius:50%;background:#e7f6f6;color:#14868c;font-weight:900}
.jpos-expense-howto strong,.jpos-expense-howto small{display:block}.jpos-expense-howto strong{color:var(--exp-ink);font-size:.8rem;line-height:1.25}.jpos-expense-howto small{margin-top:2px;color:#718399;font-size:.7rem;line-height:1.35}

.jpos-expense-control-card{padding:0!important;border-color:#dce5ec;border-radius:14px;box-shadow:0 5px 18px rgba(28,54,77,.035);overflow:hidden}
.jpos-expense-control-section{padding:16px 16px 15px;background:linear-gradient(180deg,#fff 0%,#fcfdfe 100%)}
.jpos-expense-control-head{margin:0 0 13px}.jpos-expense-control-head h2{margin:3px 0 2px;font-size:1.08rem;line-height:1.25}.jpos-expense-control-head .jpos-sub{max-width:800px;margin-top:4px;line-height:1.4}
.jpos-expense-action-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}
.jpos-expense-action-card{display:grid;gap:4px;min-width:0;min-height:82px;padding:12px 13px;border:1px solid #dfe7ee;border-radius:11px;background:#fff;text-align:left;cursor:pointer;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.jpos-expense-action-card:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(31,56,78,.07)}
.jpos-expense-action-card.is-active{box-shadow:0 0 0 2px rgba(24,145,151,.14)}
.jpos-expense-action-card>span{display:flex;align-items:center;gap:7px;min-width:0;color:#667b90;font-size:.7rem;font-weight:900;text-transform:uppercase;letter-spacing:.025em;line-height:1.25;white-space:normal}
.jpos-expense-action-card>span i{font-size:17px}.jpos-expense-action-card>strong{margin-top:1px;color:var(--exp-ink);font-size:1.08rem;line-height:1.2}.jpos-expense-action-card>small{min-width:0;color:#75879a;font-size:.7rem;line-height:1.3;white-space:normal}
.jpos-expense-action-card.is-ready{background:var(--exp-ready-bg)}.jpos-expense-action-card.is-ready>span,.jpos-expense-action-card.is-ready>strong{color:var(--exp-ready)}.jpos-expense-action-card.is-ready.is-active{border-color:#8bcdb1}
.jpos-expense-action-card.is-waiting{background:var(--exp-wait-bg)}.jpos-expense-action-card.is-waiting>span,.jpos-expense-action-card.is-waiting>strong{color:var(--exp-wait)}.jpos-expense-action-card.is-waiting.is-active{border-color:#e4bc73}
.jpos-expense-action-card.is-reserve{background:var(--exp-reserve-bg)}.jpos-expense-action-card.is-reserve>span,.jpos-expense-action-card.is-reserve>strong{color:var(--exp-reserve)}.jpos-expense-action-card.is-reserve.is-active{border-color:#86cccc}
.jpos-expense-action-card.is-total{background:#f7f9fb}.jpos-expense-action-card.is-total.is-active{border-color:#a9b8c7}

.jpos-expense-list-section{min-width:0;border-top:1px solid #e5ecf1;background:#fff}
.jpos-expense-list-head{padding:14px 16px 9px}.jpos-expense-list-head h3{margin:2px 0 1px;color:var(--exp-ink);font-size:1rem;line-height:1.3}.jpos-expense-list-head .jpos-sub{margin-top:3px}
.jpos-expense-page .jpos-expense-queue-filter{display:grid;grid-template-columns:minmax(260px,1fr) 155px 155px 165px;gap:8px;align-items:center;padding:0 16px 12px;margin:0}
.jpos-expense-page .jpos-expense-queue-filter select{width:100%;min-width:0}
.jpos-expense-queue-wrap{margin:0;border-top:1px solid #e7edf2}
.jpos-exp-queue-table{width:100%;table-layout:fixed}
.jpos-exp-queue-table th:nth-child(1){width:22%}.jpos-exp-queue-table th:nth-child(2){width:22%}.jpos-exp-queue-table th:nth-child(3){width:18%}.jpos-exp-queue-table th:nth-child(4){width:17%}.jpos-exp-queue-table th:nth-child(5){width:10%}.jpos-exp-queue-table th:nth-child(6){width:11%}
.jpos-exp-queue-table td{vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
.jpos-expense-money-stack{display:grid;gap:4px;min-width:130px}.jpos-expense-money-stack>div{display:flex;align-items:center;justify-content:space-between;gap:9px}.jpos-expense-money-stack span{color:#7a8c9e;font-size:.68rem}.jpos-expense-money-stack strong{color:#243c54;font-size:.78rem;white-space:nowrap}.jpos-expense-money-stack .is-ready span,.jpos-expense-money-stack .is-ready strong{color:#16735a}.jpos-expense-money-stack .is-gap span,.jpos-expense-money-stack .is-gap strong{color:#a65f00}
.jpos-expense-row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.jpos-expense-row-actions .btn{min-height:34px;white-space:nowrap}
.jpos-expense-page .jpos-health-pill.is-partial{background:#edf6fb;color:#286c90}
.jpos-expense-control-note{display:flex;gap:9px;align-items:flex-start;margin:0;padding:11px 16px;border-top:1px solid #e7edf2;background:#f8fafc;color:#5f7488;font-size:.75rem;line-height:1.45}.jpos-expense-control-note i{flex:0 0 auto;color:#168f95;font-size:18px}.jpos-expense-control-note b{color:#314a61}

.jpos-expense-find-card{padding:0!important;overflow:hidden}.jpos-expense-find-card>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;cursor:pointer;list-style:none}.jpos-expense-find-card>summary::-webkit-details-marker{display:none}.jpos-expense-find-card>summary>span{display:flex;align-items:center;gap:8px;color:#2b455d;font-weight:800}.jpos-expense-find-card>summary>small{color:#778a9d}.jpos-expense-find-card[open]>summary{border-bottom:1px solid #e6edf2;background:#f9fbfc}.jpos-expense-find-body{padding:12px 14px}.jpos-expense-searchbar{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:8px;margin:0 0 10px}.jpos-expense-searchbar .btn{min-height:40px}
.jpos-expense-detail{display:grid;gap:12px;margin-top:12px;scroll-margin-top:78px}.jpos-expense-detail[hidden]{display:none!important}.jpos-expense-detail-head{padding:15px 16px}.jpos-expense-detail-head .jpos-section-title-row{align-items:flex-start}.jpos-expense-detail-head .jpos-inline-actions{flex-wrap:wrap;justify-content:flex-end}.jpos-expense-detail-head .jpos-fund-metrics{margin:13px 0 0}.jpos-expense-page .jpos-fund-metric.is-gap{border-color:#efd2a3;background:#fff9ed}.jpos-expense-page .jpos-fund-metric.is-gap strong{color:#a86000}
.jpos-expense-grid{align-items:start}.jpos-expense-grid>.jpos-card{min-width:0}.jpos-exp-obligation-table,.jpos-exp-account-table{width:100%;table-layout:auto}.jpos-expense-table{width:100%}

.jpos-expense-pay-form{display:grid;gap:8px}.jpos-expense-pay-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:3px}.jpos-expense-pay-context>div{display:grid;gap:3px;padding:10px 11px;border:1px solid #dfe8ee;border-radius:10px;background:#f8fafc;min-width:0}.jpos-expense-pay-context span{color:#74879a;font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.035em}.jpos-expense-pay-context strong{color:#223b52;font-size:.82rem;line-height:1.35;overflow-wrap:anywhere}.jpos-expense-pay-context small{color:#718398;font-size:.72rem;line-height:1.3;overflow-wrap:anywhere}
.jpos-expense-funding-note{display:flex;gap:8px;align-items:flex-start;padding:9px 10px;border:1px solid #dce6ed;border-radius:9px;background:#f8fafc;color:#5d7286;font-size:.74rem;line-height:1.42}.jpos-expense-funding-note i{flex:0 0 auto;margin-top:1px;font-size:17px}.jpos-expense-funding-note.is-good{border-color:#bfe4d4;background:#f0faf5;color:#2a7058}.jpos-expense-funding-note.is-warning{border-color:#efd5a9;background:#fff9ee;color:#825c1f}

@media(max-width:1199px){
  .jpos-expense-action-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-expense-page .jpos-expense-queue-filter{grid-template-columns:minmax(220px,1fr) repeat(3,minmax(140px,170px))}
}
@media(max-width:991px){
  .jpos-expense-howto{grid-template-columns:1fr}.jpos-expense-howto>i{transform:rotate(90deg);justify-self:center}
  .jpos-expense-page .jpos-expense-page-actions{justify-content:flex-start}
  .jpos-expense-page .jpos-expense-queue-filter{grid-template-columns:1fr 1fr}.jpos-expense-page .jpos-expense-queue-filter .jpos-search{grid-column:1/-1}
  .jpos-expense-grid{grid-template-columns:1fr}
}
@media(max-width:767px){
  .jpos-expense-page{font-size:16px}
  .jpos-expense-page .jpos-expense-page-actions{display:grid;grid-template-columns:1fr;width:100%;margin-top:10px}.jpos-expense-page .jpos-expense-page-actions .btn{width:100%;min-height:44px;font-size:14px}
  .jpos-expense-howto{padding:12px}.jpos-expense-howto strong{font-size:15px}.jpos-expense-howto small{font-size:13px}
  .jpos-expense-control-section{padding:14px 12px}.jpos-expense-control-head h2{font-size:17px}.jpos-expense-control-head .jpos-sub{font-size:14px}
  .jpos-expense-action-cards{grid-template-columns:1fr}.jpos-expense-action-card{min-height:90px;padding:14px}.jpos-expense-action-card>span{font-size:12px}.jpos-expense-action-card>strong{font-size:20px}.jpos-expense-action-card>small{font-size:13px}
  .jpos-expense-list-head{padding:13px 12px 8px}.jpos-expense-list-head h3{font-size:17px}.jpos-expense-list-head .jpos-sub{font-size:14px}
  .jpos-expense-page .jpos-expense-queue-filter{display:grid;grid-template-columns:1fr;gap:8px;padding:0 12px 12px}.jpos-expense-page .jpos-expense-queue-filter .jpos-search{grid-column:auto}.jpos-expense-page .jpos-expense-queue-filter select{width:100%;font-size:16px}
  .jpos-exp-queue-table,.jpos-exp-obligation-table,.jpos-exp-account-table,.jpos-expense-table{width:100%!important;min-width:0!important;table-layout:auto!important}
  .jpos-exp-queue-table thead,.jpos-exp-obligation-table thead,.jpos-exp-account-table thead,.jpos-expense-table thead{display:none}
  .jpos-exp-queue-table tbody,.jpos-exp-obligation-table tbody,.jpos-exp-account-table tbody,.jpos-expense-table tbody{display:grid;gap:10px;padding:10px 12px}
  .jpos-exp-queue-table tr,.jpos-exp-obligation-table tr,.jpos-exp-account-table tr,.jpos-expense-table tr{display:grid!important;grid-template-columns:1fr;border:1px solid #e1e9ef!important;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 3px 12px rgba(26,55,80,.035)}
  .jpos-exp-queue-table td,.jpos-exp-obligation-table td,.jpos-exp-account-table td,.jpos-expense-table td{display:grid!important;grid-template-columns:112px minmax(0,1fr);gap:10px;align-items:start;width:100%!important;padding:10px 12px!important;border:0!important;border-bottom:1px solid #edf2f5!important;text-align:left!important;font-size:15px!important;white-space:normal!important;overflow-wrap:anywhere}
  .jpos-exp-queue-table td:last-child,.jpos-exp-obligation-table td:last-child,.jpos-exp-account-table td:last-child,.jpos-expense-table td:last-child{border-bottom:0!important}
  .jpos-exp-queue-table td::before,.jpos-exp-obligation-table td::before,.jpos-exp-account-table td::before,.jpos-expense-table td::before{content:attr(data-label);color:#7a8da0;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.035em}
  .jpos-exp-queue-table .jpos-empty-cell,.jpos-exp-obligation-table .jpos-empty-cell,.jpos-exp-account-table .jpos-empty-cell,.jpos-expense-table .jpos-empty-cell{display:block!important;text-align:center!important}.jpos-exp-queue-table .jpos-empty-cell::before,.jpos-exp-obligation-table .jpos-empty-cell::before,.jpos-exp-account-table .jpos-empty-cell::before,.jpos-expense-table .jpos-empty-cell::before{display:none}
  .jpos-expense-money-stack{min-width:0}.jpos-expense-money-stack span{font-size:12px}.jpos-expense-money-stack strong{font-size:14px}.jpos-expense-row-actions{display:grid;grid-template-columns:1fr;width:100%}.jpos-expense-row-actions .btn{width:100%;min-height:42px;font-size:14px}
  .jpos-expense-control-note{padding:11px 12px;font-size:14px}
  .jpos-expense-find-card>summary{display:grid;grid-template-columns:1fr;gap:4px}.jpos-expense-find-card>summary>small{padding-left:26px;font-size:13px}.jpos-expense-find-body{padding:12px}.jpos-expense-searchbar{grid-template-columns:1fr}.jpos-expense-searchbar .btn{width:100%;min-height:44px}
  .jpos-expense-detail-head{padding:13px 12px}.jpos-expense-detail-head .jpos-section-title-row{display:grid;grid-template-columns:1fr}.jpos-expense-detail-head .jpos-inline-actions{display:grid;grid-template-columns:1fr;width:100%;margin-top:8px}.jpos-expense-detail-head .jpos-inline-actions .btn{width:100%;min-height:44px}
  .jpos-expense-page .jpos-fund-metrics{grid-template-columns:1fr 1fr!important}.jpos-expense-page .jpos-fund-metric{min-width:0}
  .jpos-expense-pay-context{grid-template-columns:1fr}.jpos-expense-pay-context span{font-size:12px}.jpos-expense-pay-context strong{font-size:15px}.jpos-expense-pay-context small{font-size:13px}.jpos-expense-funding-note{font-size:14px}
}
@media(max-width:430px){
  .jpos-expense-page .jpos-fund-metrics{grid-template-columns:1fr!important}
}

/* =========================================================
   STEP 9.3.3J5 — Master Kebutuhan Dana UI Polish
   Visual only: no workflow, permission, API, or finance logic changes.
   Canonical typography: desktop 14px / mobile 16px.
   ========================================================= */
.jpos-funding-rules-page{
  min-width:0;
  overflow-x:hidden;
}
.jpos-funding-rules-page > *{min-width:0}
.jpos-funding-rules-page .jpos-pagehead{
  align-items:flex-start;
  gap:16px;
  margin-bottom:14px;
}
.jpos-funding-rules-page .jpos-pagehead>div:first-child{
  min-width:0;
  max-width:900px;
}
.jpos-funding-rules-page .jpos-pagehead h1{
  margin-top:3px;
  line-height:1.25;
}
.jpos-funding-rules-page .jpos-pagehead p{
  max-width:820px;
  line-height:1.45;
}
.jpos-funding-rules-page .jpos-pagehead-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.jpos-funding-rules-page .jpos-pagehead-actions .btn{
  height:40px;
  min-width:0;
  white-space:nowrap;
  justify-content:center;
}

/* Guide dibuat ringkas agar fungsi halaman langsung terbaca tanpa memakan tinggi layar. */
.jpos-funding-rules-page .jpos-fr-guide{
  margin-bottom:12px;
  padding:11px 12px;
  border-color:#dce6ed;
  border-radius:13px;
  box-shadow:0 3px 12px rgba(31,56,78,.025);
  background:linear-gradient(180deg,#ffffff 0%,#fbfdfe 100%);
}
.jpos-funding-rules-page .jpos-fr-flow{
  gap:9px;
}
.jpos-funding-rules-page .jpos-fr-flow>div{
  min-width:0;
  grid-template-columns:30px minmax(0,1fr);
  column-gap:9px;
  padding:10px 11px;
  border-color:#e3eaf0;
  border-radius:10px;
  background:#fff;
}
.jpos-funding-rules-page .jpos-fr-flow>div>span{
  width:30px;
  height:30px;
  font-size:.76rem;
}
.jpos-funding-rules-page .jpos-fr-flow strong{
  min-width:0;
  color:#1e354d;
  font-size:.79rem;
  line-height:1.25;
  white-space:normal;
}
.jpos-funding-rules-page .jpos-fr-flow small{
  min-width:0;
  color:#74869a;
  font-size:.68rem;
  line-height:1.35;
  white-space:normal;
}
.jpos-funding-rules-page .jpos-fr-flow>i{
  color:#9aabba;
  font-size:17px;
}

/* Filter menjadi toolbar yang bersih dan konsisten dengan Control Center lain. */
.jpos-funding-rules-page .jpos-card:has(.jpos-fr-filterbar){
  margin-bottom:10px;
  border-radius:12px;
  box-shadow:0 3px 12px rgba(28,54,77,.025);
}
.jpos-funding-rules-page .jpos-fr-filterbar{
  display:grid;
  grid-template-columns:minmax(280px,1fr) 170px 150px;
  gap:8px;
  align-items:center;
  padding:11px 12px;
  border-bottom:0;
  background:#fff;
}
.jpos-funding-rules-page .jpos-fr-filterbar .jpos-search{
  width:100%;
  min-width:0;
}
.jpos-funding-rules-page .jpos-fr-filterbar .form-control{
  width:100%;
  min-width:0;
  height:40px;
}

/* Ringkasan rule khusus halaman ini: 4 card satu baris di desktop. */
.jpos-funding-rules-page .jpos-fund-metrics{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin:0 0 12px;
}
.jpos-funding-rules-page .jpos-fund-metric{
  position:relative;
  min-height:76px;
  padding:11px 13px;
  border-radius:11px;
  border-color:#dfe7ee;
  box-shadow:0 4px 14px rgba(24,49,72,.03);
  overflow:hidden;
}
.jpos-funding-rules-page .jpos-fund-metric::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:#b9dfe1;
}
.jpos-funding-rules-page .jpos-fund-metric span{
  margin-bottom:5px;
  font-size:.68rem;
  line-height:1.25;
}
.jpos-funding-rules-page .jpos-fund-metric strong{
  font-size:1.18rem;
  line-height:1.15;
  color:#1d334b;
}

/* Daftar rule dibentuk sebagai satu working card yang tegas. */
.jpos-funding-rules-page .jpos-card:has(.jpos-fr-table){
  border-color:#dce5ec;
  border-radius:14px;
  box-shadow:0 5px 18px rgba(28,54,77,.035);
}
.jpos-funding-rules-page .jpos-card:has(.jpos-fr-table) .jpos-section-title-row{
  margin:0;
  padding:14px 15px 11px;
  align-items:center;
  border-bottom:1px solid #e7edf2;
  background:linear-gradient(180deg,#fff 0%,#fcfdfe 100%);
}
.jpos-funding-rules-page .jpos-section-title-row>div{
  min-width:0;
}
.jpos-funding-rules-page .jpos-section-title-row h2{
  margin:2px 0 1px;
  font-size:1.03rem;
  line-height:1.28;
}
.jpos-funding-rules-page .jpos-section-title-row .jpos-sub{
  max-width:850px;
  margin-top:3px;
  line-height:1.4;
}
.jpos-funding-rules-page .js-fr-count{
  flex:0 0 auto;
  background:#f1f5f8;
  color:#607387;
  border:1px solid #dfe7ed;
}
.jpos-funding-rules-page .jpos-table-wrap{
  width:100%;
  overflow:auto;
  background:#fff;
}
.jpos-funding-rules-page .jpos-fr-table{
  width:100%;
  min-width:1080px;
  table-layout:fixed;
  white-space:normal;
}
.jpos-funding-rules-page .jpos-fr-table th,
.jpos-funding-rules-page .jpos-fr-table td{
  min-width:0;
  overflow-wrap:anywhere;
}
.jpos-funding-rules-page .jpos-fr-table th{
  padding:10px 11px;
  background:#f8fafb;
  color:#738598;
}
.jpos-funding-rules-page .jpos-fr-table td{
  padding:11px;
  line-height:1.4;
}
.jpos-funding-rules-page .jpos-fr-table th:nth-child(1){width:18%}
.jpos-funding-rules-page .jpos-fr-table th:nth-child(2){width:18%}
.jpos-funding-rules-page .jpos-fr-table th:nth-child(3){width:11%}
.jpos-funding-rules-page .jpos-fr-table th:nth-child(4){width:12%}
.jpos-funding-rules-page .jpos-fr-table th:nth-child(5){width:12%}
.jpos-funding-rules-page .jpos-fr-table th:nth-child(6){width:12%}
.jpos-funding-rules-page .jpos-fr-table th:nth-child(7){width:8%}
.jpos-funding-rules-page .jpos-fr-table th:nth-child(8){width:19%}
.jpos-funding-rules-page .jpos-fr-table td strong{
  color:#26394e;
}
.jpos-funding-rules-page .jpos-fr-table .jpos-sub{
  margin-top:3px;
  line-height:1.35;
  white-space:normal;
}
.jpos-funding-rules-page .jpos-fr-table tr.is-muted{
  opacity:.68;
  background:#fbfcfd;
}
.jpos-funding-rules-page .jpos-fr-table .jpos-inline-actions{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  align-items:center;
  white-space:normal;
}
.jpos-funding-rules-page .jpos-fr-table .jpos-inline-actions .btn{
  min-height:34px;
  height:34px;
  padding:0 9px;
  font-size:.72rem;
  white-space:nowrap;
}
.jpos-funding-rules-page .jpos-fr-table .jpos-empty-cell{
  padding:34px 16px!important;
  line-height:1.45;
}
.jpos-funding-rules-page .jpos-finance-note{
  margin-top:10px;
  border-radius:11px;
  background:#f8fbfd;
}
.jpos-funding-rules-page .jpos-finance-note code{
  padding:1px 4px;
  border-radius:4px;
  background:#eef4f7;
  color:#50687d;
  font-size:.9em;
}

/* Modal Master Kebutuhan Dana: polish visual saja, struktur input dan aksi tetap sama. */
.swal2-popup:has(#frMName){
  border-radius:17px!important;
  box-shadow:0 24px 70px rgba(20,38,58,.18)!important;
}
.swal2-popup:has(#frMName) .swal2-title{
  padding-top:18px!important;
  color:#27394d!important;
  font-size:1.42rem!important;
  line-height:1.25!important;
}
.swal2-popup:has(#frMName) .swal2-html-container{
  margin:12px 20px 0!important;
  overflow-x:hidden!important;
}
.swal2-popup:has(#frMName) .jpos-swal-form{
  min-width:0;
}
.swal2-popup:has(#frMName) .jpos-swal-form label{
  display:block;
  margin:10px 0 5px;
  color:#4e6072;
  font-size:.75rem;
  font-weight:800;
  line-height:1.25;
}
.swal2-popup:has(#frMName) .jpos-swal-form label:first-child{
  margin-top:0;
}
.swal2-popup:has(#frMName) .jpos-swal-form input,
.swal2-popup:has(#frMName) .jpos-swal-form select,
.swal2-popup:has(#frMName) .jpos-swal-form textarea{
  width:100%;
  min-width:0;
  border-color:#d7e1e9;
  border-radius:9px;
  background:#fff;
  color:#25384b;
  box-shadow:none;
}
.swal2-popup:has(#frMName) .jpos-swal-form input,
.swal2-popup:has(#frMName) .jpos-swal-form select{
  min-height:42px;
  padding:8px 10px;
}
.swal2-popup:has(#frMName) .jpos-swal-form textarea{
  min-height:76px;
  padding:9px 10px;
  line-height:1.4;
  resize:vertical;
}
.swal2-popup:has(#frMName) .jpos-swal-form input:focus,
.swal2-popup:has(#frMName) .jpos-swal-form select:focus,
.swal2-popup:has(#frMName) .jpos-swal-form textarea:focus{
  border-color:#66c4c8;
  box-shadow:0 0 0 3px rgba(32,174,181,.10);
  outline:0;
}
.swal2-popup:has(#frMName) .jpos-swal-inline{
  gap:7px;
}
.swal2-popup:has(#frMName) .jpos-swal-inline .btn{
  min-width:72px;
  min-height:42px;
  height:42px;
  justify-content:center;
}
.swal2-popup:has(#frMName) .jpos-swal-grid-2{
  gap:10px;
}
.swal2-popup:has(#frMName) .jpos-swal-form>.jpos-sub{
  margin-top:10px;
  padding:8px 10px;
  border-radius:8px;
  background:#f7fafc;
  line-height:1.4;
}
.swal2-popup:has(#frMName) .swal2-actions{
  gap:8px!important;
  margin-top:16px!important;
  padding-bottom:4px!important;
}
.swal2-popup:has(#frMName) .swal2-actions button{
  min-height:42px;
  border-radius:8px!important;
}

@media(max-width:1199px){
  .jpos-funding-rules-page .jpos-fund-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
  .jpos-funding-rules-page .jpos-fr-filterbar{grid-template-columns:minmax(220px,1fr) 160px 145px}
}

@media(max-width:991px){
  .jpos-funding-rules-page .jpos-pagehead-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:2px;
  }
  .jpos-funding-rules-page .jpos-pagehead-actions .btn{
    width:100%;
    min-height:44px;
    height:auto;
  }
  .jpos-funding-rules-page .jpos-fr-flow{
    grid-template-columns:1fr;
    gap:6px;
  }
  .jpos-funding-rules-page .jpos-fr-flow>i{
    transform:rotate(90deg);
    justify-self:center;
    line-height:1;
  }
  .jpos-funding-rules-page .jpos-fr-filterbar{
    grid-template-columns:minmax(0,1fr) 160px 150px;
  }
  .jpos-funding-rules-page .jpos-fund-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:767px){
  .jpos-funding-rules-page{font-size:16px}
  .jpos-funding-rules-page .jpos-pagehead{
    margin-bottom:10px;
    gap:10px;
  }
  .jpos-funding-rules-page .jpos-pagehead h1{font-size:1.25rem}
  .jpos-funding-rules-page .jpos-pagehead p{font-size:.86rem}
  .jpos-funding-rules-page .jpos-pagehead-actions{
    grid-template-columns:1fr;
  }
  .jpos-funding-rules-page .jpos-fr-guide{
    margin-bottom:9px;
    padding:9px 10px;
  }
  .jpos-funding-rules-page .jpos-fr-flow>div{
    padding:10px;
  }
  .jpos-funding-rules-page .jpos-fr-flow strong{font-size:15px}
  .jpos-funding-rules-page .jpos-fr-flow small{font-size:13px}
  .jpos-funding-rules-page .jpos-fr-filterbar{
    grid-template-columns:1fr;
    padding:10px;
  }
  .jpos-funding-rules-page .jpos-fr-filterbar .form-control{
    min-height:46px;
    height:auto;
    font-size:16px;
  }
  .jpos-funding-rules-page .jpos-fund-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-bottom:9px;
  }
  .jpos-funding-rules-page .jpos-fund-metric{
    min-height:82px;
    padding:11px;
  }
  .jpos-funding-rules-page .jpos-fund-metric span{font-size:12px}
  .jpos-funding-rules-page .jpos-fund-metric strong{font-size:18px}
  .jpos-funding-rules-page .jpos-card:has(.jpos-fr-table) .jpos-section-title-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    padding:12px 10px 10px;
  }
  .jpos-funding-rules-page .jpos-section-title-row h2{font-size:17px}
  .jpos-funding-rules-page .jpos-section-title-row .jpos-sub{
    grid-column:1/-1;
    font-size:13px;
  }
  .jpos-funding-rules-page .jpos-table-wrap{
    overflow:visible;
    padding:0 10px 10px;
  }
  .jpos-funding-rules-page .jpos-fr-table{
    width:100%!important;
    min-width:0!important;
    table-layout:auto;
  }
  .jpos-funding-rules-page .jpos-fr-table tbody{
    width:100%;
    gap:9px;
    padding-top:2px;
  }
  .jpos-funding-rules-page .jpos-fr-table tr{
    width:100%;
    min-width:0;
    border-radius:11px;
  }
  .jpos-funding-rules-page .jpos-fr-table td{
    grid-template-columns:112px minmax(0,1fr)!important;
    gap:9px!important;
    padding:9px 10px!important;
    font-size:14px!important;
  }
  .jpos-funding-rules-page .jpos-fr-table td::before{
    font-size:11px!important;
  }
  .jpos-funding-rules-page .jpos-fr-table .jpos-inline-actions{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
  .jpos-funding-rules-page .jpos-fr-table .jpos-inline-actions .btn{
    width:100%;
    min-height:42px;
    height:auto;
    justify-content:center;
    font-size:14px;
  }
  .jpos-funding-rules-page .jpos-finance-note{
    margin-top:9px;
    font-size:14px;
  }

  .swal2-popup:has(#frMName){
    width:calc(100% - 18px)!important;
    max-width:680px!important;
    margin:9px!important;
    border-radius:14px!important;
  }
  .swal2-popup:has(#frMName) .swal2-title{
    padding:15px 12px 0!important;
    font-size:1.2rem!important;
  }
  .swal2-popup:has(#frMName) .swal2-html-container{
    margin:10px 12px 0!important;
  }
  .swal2-popup:has(#frMName) .jpos-swal-form label{
    font-size:13px;
  }
  .swal2-popup:has(#frMName) .jpos-swal-form input,
  .swal2-popup:has(#frMName) .jpos-swal-form select,
  .swal2-popup:has(#frMName) .jpos-swal-form textarea{
    font-size:16px;
  }
  .swal2-popup:has(#frMName) .jpos-swal-grid-2{
    grid-template-columns:1fr;
  }
  .swal2-popup:has(#frMName) .swal2-actions{
    width:calc(100% - 24px)!important;
    display:grid!important;
    grid-template-columns:1fr 1fr;
  }
  .swal2-popup:has(#frMName) .swal2-actions button{
    width:100%;
    margin:0!important;
    min-height:46px;
  }
}

@media(max-width:480px){
  .jpos-funding-rules-page .jpos-fund-metrics{grid-template-columns:1fr 1fr}
  .jpos-funding-rules-page .jpos-fund-metric{min-height:78px}
  .jpos-funding-rules-page .jpos-fr-table td{
    grid-template-columns:98px minmax(0,1fr)!important;
  }
  .swal2-popup:has(#frMName) .swal2-actions{
    grid-template-columns:1fr;
  }
}

/* ================================================================
   STEP 9.3.3J6 — Finance sidebar menu polish
   Visual grouping only. Tidak mengubah route/permission/engine.
   ================================================================ */
body.jpos-shell-body .jpos-finance-subgroup{
  list-style:none;
  margin:8px 2px 9px 0;
  padding:6px 5px 5px;
  border:1px solid rgba(117,151,180,.16);
  border-radius:11px;
  background:rgba(255,255,255,.025);
}
body.jpos-shell-body .jpos-finance-subgroup-label{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:24px;
  padding:1px 7px 5px;
  color:#748aa2;
  font-size:.64rem;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.09em;
  text-transform:uppercase;
  user-select:none;
}
body.jpos-shell-body .jpos-finance-subgroup-label .icon{
  width:14px;
  flex:0 0 14px;
  text-align:center;
  color:#36b9bd;
  font-size:.78rem;
}
body.jpos-shell-body .jpos-finance-subgroup-list{
  list-style:none;
  margin:0;
  padding:0;
}
body.jpos-shell-body .jpos-finance-subgroup .jpos-submenu-item{
  margin:1px 0;
}
body.jpos-shell-body .jpos-finance-subgroup .jpos-submenu-link-level-2{
  min-height:34px;
  padding:6px 8px;
  border-radius:8px;
}
body.jpos-shell-body .jpos-finance-subgroup .jpos-submenu-link-level-2:hover{
  background:rgba(255,255,255,.05)!important;
}
body.jpos-shell-body .jpos-finance-subgroup .jpos-submenu-link-level-2.active{
  background:linear-gradient(135deg,rgba(32,174,181,.94),rgba(23,138,153,.96))!important;
}
body.jpos-shell-body .jpos-finance-after-subgroup{
  margin-top:8px;
  padding-top:7px;
  border-top:1px solid rgba(117,151,180,.13);
}

@media (max-width:991px){
  body.jpos-shell-body .jpos-finance-subgroup{
    margin-top:7px;
    padding:6px 5px;
  }
  body.jpos-shell-body .jpos-finance-subgroup-label{
    font-size:.68rem;
  }
  body.jpos-shell-body .jpos-finance-subgroup .jpos-submenu-link-level-2{
    min-height:39px;
    padding:8px 9px;
  }
}

/* ============================================================
   STEP 9.3.3K — Financial Health & AI Accountant
   Scoped UI: Kesehatan & Keputusan
   ============================================================ */
.jpos-health-k-workspace{display:flex;flex-direction:column;gap:14px;min-width:0}
.jpos-health-k-pagehead{align-items:flex-start;gap:18px}
.jpos-health-k-pagehead .jpos-pagehead-copy{max-width:880px}
.jpos-health-k-page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-left:auto}
.jpos-health-k-toolbar{display:grid;grid-template-columns:minmax(220px,280px) minmax(300px,1fr) auto;gap:12px;align-items:end;padding:14px 16px}
.jpos-health-k-period-control{margin:0}
.jpos-health-k-scope-note{display:flex;align-items:center;gap:10px;min-height:42px;padding:8px 12px;border:1px solid #dbe5ef;border-radius:10px;background:#f7fafc;color:#35516d}
.jpos-health-k-scope-note>i{font-size:18px;color:#237b8f}.jpos-health-k-scope-note div{display:flex;flex-direction:column;gap:1px}.jpos-health-k-scope-note strong{font-size:.9rem;color:#18324c}.jpos-health-k-scope-note span{font-size:.78rem;color:#6d8195}
.jpos-health-k-ai-status{display:flex;flex-direction:column;align-items:flex-end;gap:3px;white-space:nowrap}.jpos-health-k-ai-status small{font-size:.72rem;color:#8191a3}

.jpos-health-k-hero{display:flex;justify-content:space-between;align-items:stretch;gap:18px;padding:20px;border:1px solid #dce6f0;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(26,53,81,.05)}
.jpos-health-k-hero.is-pass{border-left:5px solid #2f9d76}.jpos-health-k-hero.is-warning{border-left:5px solid #d69b24}.jpos-health-k-hero.is-fail{border-left:5px solid #c85d61}
.jpos-health-k-hero-main{display:flex;align-items:center;gap:20px;min-width:0;flex:1}.jpos-health-k-score{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;align-items:end;column-gap:4px;min-width:110px;padding-right:20px;border-right:1px solid #e4ebf2}.jpos-health-k-score span{grid-column:1/3;font-size:.68rem;font-weight:800;letter-spacing:.08em;color:#758aa0}.jpos-health-k-score strong{font-size:2.7rem;line-height:1;color:#17314e}.jpos-health-k-score small{font-size:.8rem;color:#8495a7;padding-bottom:4px}
.jpos-health-k-verdict{min-width:0}.jpos-health-k-verdict h2{font-size:1.08rem;line-height:1.45;margin:8px 0 5px;color:#172f49}.jpos-health-k-verdict p{margin:0;color:#74879a;font-size:.8rem}
.jpos-health-k-trust{min-width:250px;display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:11px;background:#f6f9fc;border:1px solid #e1e9f1}.jpos-health-k-trust>i{font-size:24px}.jpos-health-k-trust.is-pass>i{color:#278b68}.jpos-health-k-trust.is-warning>i{color:#c88916}.jpos-health-k-trust.is-fail>i{color:#b95056}.jpos-health-k-trust div{display:flex;flex-direction:column;gap:2px}.jpos-health-k-trust small{font-size:.65rem;font-weight:800;letter-spacing:.08em;color:#7a8ea1}.jpos-health-k-trust strong{font-size:.85rem;color:#18324c}.jpos-health-k-trust span{font-size:.73rem;color:#7b8c9e}

.jpos-health-k-section{min-width:0}.jpos-health-k-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:10px}.jpos-health-k-section-head.compact{margin-bottom:12px}.jpos-health-k-section-head h2{font-size:1rem;margin:2px 0 3px;color:#18324c}.jpos-health-k-section-head p{margin:0;font-size:.78rem;color:#74879a}.jpos-health-k-section-badge{padding:6px 10px;border-radius:999px;background:#f1f5f8;border:1px solid #dfe7ee;color:#566d84;font-size:.72rem;font-weight:700;white-space:nowrap}.jpos-health-k-section-badge.is-pass{background:#eef9f4;color:#267457;border-color:#cde9dc}.jpos-health-k-section-badge.is-warning{background:#fff8e9;color:#9a6816;border-color:#efdcae}.jpos-health-k-section-badge.is-fail{background:#fff0f1;color:#9d4249;border-color:#efced1}
.jpos-health-k-dimensions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.jpos-health-k-dimension{padding:13px 14px;border-radius:11px;border:1px solid #dde7ef;background:#fff;min-width:0}.jpos-health-k-dimension.is-pass{border-top:3px solid #45a67f}.jpos-health-k-dimension.is-warning{border-top:3px solid #d9a036}.jpos-health-k-dimension.is-fail{border-top:3px solid #c95d64}.jpos-health-k-dimension-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.jpos-health-k-dimension-top strong{font-size:.82rem;color:#213a54}.jpos-health-k-dimension-top span{font-weight:800;font-size:.78rem;color:#597089;white-space:nowrap}.jpos-health-k-meter{height:5px;border-radius:999px;background:#edf2f6;overflow:hidden;margin:9px 0}.jpos-health-k-meter i{display:block;height:100%;border-radius:999px;background:#3f8296}.jpos-health-k-dimension.is-pass .jpos-health-k-meter i{background:#3b9b75}.jpos-health-k-dimension.is-warning .jpos-health-k-meter i{background:#d39b31}.jpos-health-k-dimension.is-fail .jpos-health-k-meter i{background:#c85860}.jpos-health-k-dimension p{font-size:.74rem;line-height:1.45;color:#75889a;margin:0}

.jpos-health-k-two-col{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);gap:12px;min-width:0}.jpos-health-k-money-card,.jpos-health-k-priority-card,.jpos-health-k-account-card,.jpos-health-k-ai-card,.jpos-health-k-case-card{padding:16px;min-width:0}
.jpos-health-k-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;position:relative}.jpos-health-k-flow-arrow{display:none}.jpos-health-k-flow-item{border:1px solid #e0e8ef;border-radius:9px;padding:10px 11px;background:#f9fbfc;min-width:0}.jpos-health-k-flow-item span{display:block;font-size:.68rem;font-weight:700;color:#73879a;text-transform:uppercase;letter-spacing:.035em}.jpos-health-k-flow-item strong{display:block;font-size:.95rem;color:#18324c;margin:4px 0}.jpos-health-k-flow-item small{display:block;font-size:.69rem;color:#8a99a8;line-height:1.35}.jpos-health-k-flow-item.is-free{background:#eef9fa;border-color:#b8dfe3}.jpos-health-k-flow-item.is-free strong{color:#087f8f}
.jpos-health-k-native-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-top:10px;border:1px solid #dfe7ef;border-radius:9px;overflow:hidden;background:#dfe7ef}.jpos-health-k-native-strip>div{background:#fff;padding:9px 11px}.jpos-health-k-native-strip span{display:block;font-size:.68rem;color:#778a9d}.jpos-health-k-native-strip strong{font-size:.82rem;color:#18324c}
.jpos-health-k-priority-card{max-height:560px;overflow:auto}.jpos-health-k-priority{display:grid;grid-template-columns:28px 1fr;gap:9px;padding:11px 0;border-bottom:1px solid #edf1f5}.jpos-health-k-priority:last-child{border-bottom:0}.jpos-health-k-priority-no{display:flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;background:#edf3f7;color:#587088;font-weight:800;font-size:.73rem}.jpos-health-k-priority-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.jpos-health-k-priority-head strong{font-size:.82rem;color:#18324c}.jpos-health-k-priority p{font-size:.75rem;color:#71869a;line-height:1.4;margin:5px 0}.jpos-health-k-priority-rec{display:flex;gap:6px;align-items:flex-start;padding:7px 9px;border-radius:7px;background:#f7fafc;color:#4e667e;font-size:.73rem;margin-bottom:7px}.jpos-health-k-priority-rec i{color:#c38a24;margin-top:1px}

.jpos-health-k-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.jpos-health-k-account{border:1px solid #dee7ef;border-radius:11px;padding:12px;background:#fff}.jpos-health-k-account.is-pass{border-left:4px solid #47a580}.jpos-health-k-account.is-warning{border-left:4px solid #d5a13e}.jpos-health-k-account.is-fail{border-left:4px solid #c75c63}.jpos-health-k-account-head,.jpos-health-k-account-foot{display:flex;justify-content:space-between;align-items:center;gap:8px}.jpos-health-k-account-head>div{min-width:0}.jpos-health-k-account-head strong{display:block;font-size:.84rem;color:#17314d}.jpos-health-k-account-head span:not(.jpos-health-pill){display:block;font-size:.7rem;color:#8796a5;margin-top:2px}.jpos-health-k-account-values{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:11px 0}.jpos-health-k-account-values>div{padding:8px;background:#f7fafc;border-radius:7px}.jpos-health-k-account-values span{display:block;font-size:.66rem;color:#7b8d9e}.jpos-health-k-account-values strong{display:block;margin-top:3px;font-size:.8rem;color:#1b344e}.jpos-health-k-account-foot{border-top:1px solid #edf1f4;padding-top:9px}.jpos-health-k-account-foot>span{font-size:.7rem;color:#8494a4}

.jpos-health-k-ai-card{border:1px solid #c9dce7;background:linear-gradient(180deg,#fbfdff 0%,#fff 45%)}.jpos-health-k-ai-head{display:grid;grid-template-columns:46px 1fr auto;gap:12px;align-items:center;padding-bottom:13px;border-bottom:1px solid #e5edf3}.jpos-health-k-ai-avatar{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:#173d5b;color:#fff;font-size:22px}.jpos-health-k-ai-copy h2{font-size:1rem;margin:2px 0;color:#18324c}.jpos-health-k-ai-copy p{font-size:.76rem;color:#74879a;margin:0}.jpos-health-k-ai-result{padding:13px 0}.jpos-health-k-ai-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;min-height:115px;color:#8292a2}.jpos-health-k-ai-empty i{font-size:26px;color:#62869d}.jpos-health-k-ai-empty strong{color:#455f77}.jpos-health-k-ai-empty span{font-size:.76rem}
.jpos-health-k-ai-verdict{padding:13px 14px;border:1px solid #dbe5ed;border-radius:10px;background:#f8fbfd}.jpos-health-k-ai-verdict>div{display:flex;align-items:center;gap:8px}.jpos-health-k-ai-verdict small{font-size:.7rem;color:#8494a4}.jpos-health-k-ai-verdict h3{font-size:.93rem;line-height:1.5;margin:8px 0 5px;color:#1b344e}.jpos-health-k-ai-verdict p{font-size:.77rem;color:#657b90;line-height:1.5;margin:0}.jpos-health-k-ai-block{margin-top:13px}.jpos-health-k-ai-block>h4{font-size:.82rem;color:#213a54;margin:0 0 7px}.jpos-health-k-ai-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.jpos-health-k-ai-list article{display:grid;grid-template-columns:auto 1fr;gap:8px;padding:10px;border:1px solid #e1e8ef;border-radius:9px}.jpos-health-k-ai-list article strong{font-size:.79rem;color:#1d3650}.jpos-health-k-ai-list article p{font-size:.73rem;line-height:1.42;color:#718599;margin:4px 0 6px}.jpos-health-k-ai-priority{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#173f5d;color:#fff;font-size:.72rem;font-weight:800}.jpos-health-k-evidence{border:0;background:#edf4f7;border-radius:999px;color:#3c657c;font-size:.65rem;padding:3px 7px;margin:2px 3px 0 0;cursor:pointer}.jpos-health-k-evidence:hover{background:#dfeef2}.jpos-health-k-ai-owner-message{display:flex;gap:10px;align-items:flex-start;margin-top:13px;padding:12px 14px;border-radius:10px;background:#173f5d;color:#fff}.jpos-health-k-ai-owner-message i{font-size:20px}.jpos-health-k-ai-owner-message small{display:block;font-size:.63rem;font-weight:800;letter-spacing:.08em;opacity:.72}.jpos-health-k-ai-owner-message strong{display:block;font-size:.82rem;line-height:1.5;margin-top:3px}.jpos-health-k-ai-uncertain{margin-top:10px;padding:10px 12px;border:1px dashed #d6e0e8;border-radius:9px;color:#64798d}.jpos-health-k-ai-uncertain strong{font-size:.74rem}.jpos-health-k-ai-uncertain ul{font-size:.72rem;margin:5px 0 0;padding-left:18px}.jpos-health-k-ai-chat{border-top:1px solid #e5edf3;padding-top:12px}.jpos-health-k-quick-prompts{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.jpos-health-k-chat-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:stretch}.jpos-health-k-chat-row textarea{resize:vertical;min-height:54px}.jpos-health-k-cash-sim{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;padding:10px 12px;border:1px solid #e0e8ef;border-radius:9px;background:#f8fafc}.jpos-health-k-cash-sim>div:first-child strong{display:block;font-size:.78rem;color:#203a54}.jpos-health-k-cash-sim>div:first-child span{display:block;font-size:.69rem;color:#8494a4}.jpos-health-k-cash-controls{display:flex;align-items:center;gap:6px}.jpos-health-k-cash-controls>span{font-weight:800;color:#64788c}.jpos-health-k-cash-controls input{width:160px;text-align:right}.jpos-health-k-evidence-json{max-height:260px;overflow:auto;white-space:pre-wrap;background:#f5f7f9;padding:10px;border-radius:8px;font-size:.72rem}
.jpos-health-k-case-card{overflow:hidden}.jpos-health-k-case-filter{margin:4px 0 10px}.jpos-health-k-safety-note{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #dce6ee;border-radius:10px;background:#f7fafc;color:#61778b;font-size:.73rem}.jpos-health-k-safety-note>i{font-size:17px;color:#3f7188}.jpos-health-k-safety-note>div{flex:1}.jpos-health-k-sim-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin:10px 0}.jpos-health-k-sim-grid>div{padding:8px;border:1px solid #e1e8ef;border-radius:8px}.jpos-health-k-sim-grid span{display:block;font-size:.68rem;color:#75889b}.jpos-health-k-sim-grid strong{display:block;font-size:.8rem;color:#1b344e;margin-top:2px}

@media(max-width:1199px){.jpos-health-k-dimensions{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-health-k-two-col{grid-template-columns:1fr}.jpos-health-k-priority-card{max-height:none}.jpos-health-k-toolbar{grid-template-columns:220px 1fr}.jpos-health-k-ai-status{grid-column:1/-1;align-items:flex-start;flex-direction:row}}
@media(max-width:991px){.jpos-health-k-page-actions{width:100%;margin-left:0}.jpos-health-k-page-actions .btn{flex:1}.jpos-health-k-toolbar{grid-template-columns:1fr}.jpos-health-k-scope-note{min-width:0}.jpos-health-k-hero{flex-direction:column;padding:16px}.jpos-health-k-trust{min-width:0}.jpos-health-k-account-grid{grid-template-columns:1fr}.jpos-health-k-ai-head{grid-template-columns:42px 1fr}.jpos-health-k-ai-head>.btn{grid-column:1/-1;width:100%}.jpos-health-k-ai-list{grid-template-columns:1fr}}
@media(max-width:767px){.jpos-health-k-workspace{gap:10px}.jpos-health-k-pagehead{gap:10px}.jpos-health-k-page-actions{display:grid;grid-template-columns:1fr 1fr}.jpos-health-k-hero-main{align-items:flex-start;gap:12px}.jpos-health-k-score{min-width:82px;padding-right:11px}.jpos-health-k-score strong{font-size:2.15rem}.jpos-health-k-verdict h2{font-size:.95rem}.jpos-health-k-dimensions{grid-template-columns:1fr}.jpos-health-k-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-health-k-native-strip{grid-template-columns:1fr}.jpos-health-k-account-values{grid-template-columns:1fr}.jpos-health-k-account-foot{align-items:flex-start;flex-direction:column}.jpos-health-k-account-foot .btn{width:100%}.jpos-health-k-chat-row{grid-template-columns:1fr}.jpos-health-k-chat-row .btn{width:100%}.jpos-health-k-cash-sim{align-items:stretch;flex-direction:column}.jpos-health-k-cash-controls{display:grid;grid-template-columns:auto 1fr}.jpos-health-k-cash-controls input{width:100%}.jpos-health-k-cash-controls .btn{grid-column:1/-1;width:100%}.jpos-health-k-section-head{flex-direction:column}.jpos-health-k-section-badge{white-space:normal}.jpos-health-k-safety-note{align-items:flex-start;flex-wrap:wrap}.jpos-health-k-safety-note .btn{width:100%}}

/* ================================================================
   STEP 9.3.3K2 — Master Kebutuhan Dana batch input + grouped list
   UX: live source search, multi-row input, grouped master table.
   ================================================================ */
.jpos-funding-rules-page .jpos-fr-filterbar{
  grid-template-columns:minmax(0,1fr)!important;
}
.jpos-funding-rules-page .jpos-fr-list-head{
  gap:14px;
  align-items:center!important;
}
.jpos-funding-rules-page .jpos-fr-list-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}
.jpos-funding-rules-page .jpos-fr-list-tools .form-control{
  width:auto;
  min-width:155px;
  height:38px;
}
.jpos-funding-rules-page .jpos-fr-list-tools .js-fr-count{
  min-width:auto;
  white-space:nowrap;
}
.jpos-funding-rules-page .jpos-fund-metric strong small{
  display:block;
  margin-top:3px;
  color:#718498;
  font-size:.68rem;
  font-weight:700;
}
.jpos-funding-rules-page .jpos-fr-group-table{
  min-width:930px;
}
.jpos-funding-rules-page .jpos-fr-group-table th:nth-child(1){width:13%}
.jpos-funding-rules-page .jpos-fr-group-table th:nth-child(2){width:31%}
.jpos-funding-rules-page .jpos-fr-group-table th:nth-child(3){width:17%}
.jpos-funding-rules-page .jpos-fr-group-table th:nth-child(4){width:21%}
.jpos-funding-rules-page .jpos-fr-group-table th:nth-child(5){width:9%}
.jpos-funding-rules-page .jpos-fr-group-table th:nth-child(6){width:9%}
.jpos-funding-rules-page .jpos-fr-group-table .js-fr-detail{
  min-width:82px;
  justify-content:center;
}

/* Batch modal */
.swal2-popup:has(#frMRows){
  border-radius:17px!important;
  box-shadow:0 24px 70px rgba(20,38,58,.18)!important;
}
.swal2-popup:has(#frMRows) .swal2-title{
  padding-top:18px!important;
  color:#27394d!important;
  font-size:1.38rem!important;
  line-height:1.25!important;
}
.swal2-popup:has(#frMRows) .swal2-html-container{
  margin:12px 20px 0!important;
  overflow-x:hidden!important;
}
.swal2-popup:has(#frMRows) .jpos-swal-form label{
  display:block;
  margin:9px 0 5px;
  color:#4e6072;
  font-size:.75rem;
  font-weight:800;
  line-height:1.25;
}
.swal2-popup:has(#frMRows) input,
.swal2-popup:has(#frMRows) select,
.swal2-popup:has(#frMRows) textarea{
  width:100%;
  min-width:0;
  border:1px solid #d7e1e9;
  border-radius:9px;
  background:#fff;
  color:#25384b;
  box-shadow:none;
}
.swal2-popup:has(#frMRows) input,
.swal2-popup:has(#frMRows) select{
  min-height:40px;
  padding:7px 9px;
}
.swal2-popup:has(#frMRows) textarea{
  min-height:68px;
  padding:9px 10px;
  resize:vertical;
}
.swal2-popup:has(#frMRows) input:focus,
.swal2-popup:has(#frMRows) select:focus,
.swal2-popup:has(#frMRows) textarea:focus{
  border-color:#62c1c6;
  box-shadow:0 0 0 3px rgba(32,174,181,.10);
  outline:0;
}
.jpos-frm-source-grid{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:10px;
  align-items:end;
}
.jpos-fr-live-search{
  position:relative;
}
.jpos-fr-live-search>i{
  position:absolute;
  left:11px;
  top:50%;
  transform:translateY(-50%);
  color:#8294a6;
  pointer-events:none;
}
.jpos-fr-live-search>input{
  padding-left:34px!important;
}
.jpos-frm-source-summary{
  margin-top:7px;
  padding:9px 11px;
  border:1px solid #dfe8ee;
  border-radius:9px;
  background:#f8fbfd;
  color:#607487;
  font-size:.75rem;
  line-height:1.4;
}
.jpos-frm-source-summary b{color:#243a50}
.jpos-frm-editor-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:14px 0 7px;
}
.jpos-frm-editor-head>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.jpos-frm-editor-head strong{color:#24384d;font-size:.9rem}
.jpos-frm-editor-head small{color:#75889a;font-size:.72rem}
.jpos-frm-editor-head .btn{min-height:38px;white-space:nowrap}
.jpos-frm-table-wrap{
  width:100%;
  overflow:auto;
  border:1px solid #dfe7ed;
  border-radius:11px;
  background:#fff;
}
.jpos-frm-table{
  width:100%;
  min-width:870px;
  margin:0!important;
  table-layout:fixed;
}
.jpos-frm-table th{
  padding:8px 8px!important;
  background:#f7fafc;
  color:#718497;
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.jpos-frm-table td{
  padding:7px!important;
  vertical-align:middle!important;
}
.jpos-frm-table th:nth-child(1){width:28%}
.jpos-frm-table th:nth-child(2){width:18%}
.jpos-frm-table th:nth-child(3){width:20%}
.jpos-frm-table th:nth-child(4){width:22%}
.jpos-frm-table th:nth-child(5){width:12%}
.jpos-frm-table input,
.jpos-frm-table select{
  min-height:38px!important;
  height:38px!important;
  margin:0!important;
  font-size:.78rem!important;
}
.jpos-frm-row-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.jpos-frm-row-actions .btn{
  min-width:30px;
  width:30px;
  height:34px;
  padding:0;
  justify-content:center;
}
.jpos-frm-priority-note{
  margin-top:8px!important;
  margin-bottom:2px!important;
  border-radius:9px!important;
  font-size:.74rem;
}
.jpos-frm-batch-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
  padding:10px 12px;
  border:1px solid #d7e8ea;
  border-radius:10px;
  background:#f4fbfb;
}
.jpos-frm-batch-summary span{color:#607487;font-size:.76rem}
.jpos-frm-batch-summary strong{color:#0d6f75;font-size:1rem}
.swal2-popup:has(#frMRows) .swal2-actions{
  gap:8px!important;
  margin-top:16px!important;
}
.swal2-popup:has(#frMRows) .swal2-actions button{
  min-height:42px;
  border-radius:8px!important;
}

/* Detail modal per Paket/Item */
.swal2-popup:has(.jpos-fr-detail-modal){
  border-radius:17px!important;
  box-shadow:0 24px 70px rgba(20,38,58,.18)!important;
}
.swal2-popup:has(.jpos-fr-detail-modal) .swal2-html-container{
  margin:12px 18px 0!important;
}
.jpos-fr-detail-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:10px;
  margin-bottom:11px;
}
.jpos-fr-detail-head>div{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:11px 12px;
  border:1px solid #dfe7ed;
  border-radius:10px;
  background:#f9fbfc;
}
.jpos-fr-detail-head span{
  color:#76899b;
  font-size:.68rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.jpos-fr-detail-head strong{color:#23384e;font-size:1rem}
.jpos-fr-detail-head small{color:#7a8da0;font-size:.72rem}
.jpos-fr-detail-table{
  min-width:980px;
  table-layout:fixed;
}
.jpos-fr-detail-table th,.jpos-fr-detail-table td{
  white-space:normal!important;
  overflow-wrap:anywhere;
}
.jpos-fr-detail-table th:nth-child(1){width:16%}
.jpos-fr-detail-table th:nth-child(2){width:11%}
.jpos-fr-detail-table th:nth-child(3){width:13%}
.jpos-fr-detail-table th:nth-child(4){width:14%}
.jpos-fr-detail-table th:nth-child(5){width:8%}
.jpos-fr-detail-table th:nth-child(6){width:15%}
.jpos-fr-detail-table th:nth-child(7){width:8%}
.jpos-fr-detail-table th:nth-child(8){width:15%}
.jpos-fr-detail-table .jpos-inline-actions{display:flex;gap:4px;flex-wrap:wrap}
.jpos-fr-detail-table .jpos-inline-actions .btn{min-height:32px;font-size:.68rem;padding:0 7px}

@media(max-width:991px){
  .jpos-funding-rules-page .jpos-fr-list-head{
    display:grid!important;
    grid-template-columns:1fr;
  }
  .jpos-funding-rules-page .jpos-fr-list-tools{
    justify-content:flex-start;
  }
  .jpos-funding-rules-page .jpos-fr-list-tools .form-control{
    flex:1 1 170px;
  }
  .jpos-frm-source-grid{grid-template-columns:1fr}
  .jpos-fr-detail-head{grid-template-columns:1fr 1fr}
}

@media(max-width:767px){
  .jpos-funding-rules-page .jpos-fr-list-tools{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
  .jpos-funding-rules-page .jpos-fr-list-tools .form-control{
    width:100%;
    min-width:0;
    min-height:46px;
    font-size:16px;
  }
  .jpos-funding-rules-page .jpos-fr-list-tools .js-fr-count{
    grid-column:1/-1;
    justify-self:start;
  }
  .jpos-funding-rules-page .jpos-fr-group-table{min-width:0!important}
  .jpos-funding-rules-page .jpos-fr-group-table .js-fr-detail{
    width:100%;
    min-height:42px;
    justify-content:center;
  }
  .swal2-popup:has(#frMRows){
    width:calc(100% - 16px)!important;
    max-width:none!important;
    margin:8px!important;
    border-radius:14px!important;
  }
  .swal2-popup:has(#frMRows) .swal2-title{
    padding:14px 10px 0!important;
    font-size:1.18rem!important;
  }
  .swal2-popup:has(#frMRows) .swal2-html-container{
    margin:9px 10px 0!important;
  }
  .swal2-popup:has(#frMRows) input,
  .swal2-popup:has(#frMRows) select,
  .swal2-popup:has(#frMRows) textarea{
    font-size:16px!important;
  }
  .jpos-frm-editor-head{
    align-items:stretch;
    flex-direction:column;
  }
  .jpos-frm-editor-head .btn{width:100%;min-height:44px;justify-content:center}
  .jpos-frm-table-wrap{overflow:visible;border:0;background:transparent}
  .jpos-frm-table{min-width:0!important;table-layout:auto}
  .jpos-frm-table thead{display:none}
  .jpos-frm-table tbody{display:grid;gap:9px}
  .jpos-frm-table tr{
    display:grid!important;
    grid-template-columns:1fr;
    border:1px solid #dfe7ed!important;
    border-radius:10px;
    background:#fff;
    overflow:hidden;
  }
  .jpos-frm-table td{
    display:grid!important;
    grid-template-columns:105px minmax(0,1fr)!important;
    gap:8px;
    align-items:center;
    padding:8px!important;
    border-bottom:1px solid #edf2f5!important;
  }
  .jpos-frm-table td:last-child{border-bottom:0!important}
  .jpos-frm-table td::before{
    content:attr(data-label);
    color:#75889a;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
  }
  .jpos-frm-table input,.jpos-frm-table select{font-size:16px!important;min-height:44px!important;height:auto!important}
  .jpos-frm-row-actions{justify-content:flex-start}
  .jpos-frm-row-actions .btn{width:42px;height:42px}
  .jpos-frm-batch-summary{align-items:flex-start;flex-direction:column}
  .swal2-popup:has(#frMRows) .swal2-actions{
    width:calc(100% - 20px)!important;
    display:grid!important;
    grid-template-columns:1fr 1fr;
  }
  .swal2-popup:has(#frMRows) .swal2-actions button{width:100%;margin:0!important;min-height:46px}

  .swal2-popup:has(.jpos-fr-detail-modal){
    width:calc(100% - 16px)!important;
    max-width:none!important;
    margin:8px!important;
  }
  .swal2-popup:has(.jpos-fr-detail-modal) .swal2-html-container{margin:8px 10px 0!important}
  .jpos-fr-detail-head{grid-template-columns:1fr}
  .jpos-fr-detail-table{min-width:0!important;table-layout:auto}
  .jpos-fr-detail-table thead{display:none}
  .jpos-fr-detail-table tbody{display:grid;gap:9px}
  .jpos-fr-detail-table tr{
    display:grid!important;
    grid-template-columns:1fr;
    border:1px solid #dfe7ed!important;
    border-radius:10px;
    overflow:hidden;
  }
  .jpos-fr-detail-table td{
    display:grid!important;
    grid-template-columns:105px minmax(0,1fr)!important;
    gap:8px;
    align-items:start;
    padding:8px!important;
    border-bottom:1px solid #edf2f5!important;
  }
  .jpos-fr-detail-table td:last-child{border-bottom:0!important}
  .jpos-fr-detail-table td::before{
    content:attr(data-label);
    color:#75889a;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
  }
  .jpos-fr-detail-table .jpos-inline-actions{display:grid;grid-template-columns:1fr;width:100%}
  .jpos-fr-detail-table .jpos-inline-actions .btn{width:100%;min-height:42px;justify-content:center;font-size:14px}
}

@media(max-width:480px){
  .jpos-funding-rules-page .jpos-fr-list-tools{grid-template-columns:1fr}
  .jpos-funding-rules-page .jpos-fr-list-tools .js-fr-count{grid-column:auto}
  .jpos-frm-table td,.jpos-fr-detail-table td{grid-template-columns:92px minmax(0,1fr)!important}
  .swal2-popup:has(#frMRows) .swal2-actions{grid-template-columns:1fr}
}

/* ============================================================
   STEP 9.3.3L1 — JANJI TRANSAKSI KASIR
   ============================================================ */
.transaction-promise-card{margin-top:10px;overflow:hidden;border-color:#d8e5ed;box-shadow:0 8px 22px rgba(33,60,82,.045)}
.transaction-promise-card.is-focus-pulse{animation:promiseFocusPulse 1.1s ease}
@keyframes promiseFocusPulse{0%,100%{box-shadow:0 8px 22px rgba(33,60,82,.045)}35%{box-shadow:0 0 0 4px rgba(25,158,174,.15),0 10px 26px rgba(33,60,82,.08)}}
.transaction-promise-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.transaction-promise-head h3{display:flex;align-items:center;gap:8px;margin-top:3px}
.transaction-promise-head p{margin:3px 0 0;color:#667a8c;line-height:1.35}
.promise-state-badge{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 11px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}
.promise-state-badge.tone-danger{background:#fff0f0;color:#b62f2f;border:1px solid #f3cccc}
.promise-state-badge.tone-warning,.promise-state-badge.tone-amber{background:#fff8e6;color:#9a6b00;border:1px solid #eedca9}
.promise-state-badge.tone-primary{background:#eef5ff;color:#315f99;border:1px solid #d4e3f5}
.promise-state-badge.tone-success{background:#edf9f1;color:#287245;border:1px solid #cce9d7}
.promise-state-badge.tone-slate{background:#f3f6f8;color:#5f7281;border:1px solid #dfe7ed}
.promise-active-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.65fr);gap:12px}
.promise-main-date,.promise-meta{padding:11px 13px;border:1px solid #e1e9ef;border-radius:12px;background:#fbfcfd;display:flex;flex-direction:column;gap:4px}
.promise-main-date>span,.promise-meta>span{font-size:11px;letter-spacing:.04em;text-transform:uppercase;font-weight:900;color:#74889a}
.promise-main-date>strong{font-size:18px;line-height:1.25;color:#243746}
.promise-meta>strong{font-size:14px;color:#243746}
.promise-main-date>small,.promise-meta>small{font-size:12px;color:#6f8190}
.promise-empty-state{border:1px dashed #cedae3;border-radius:12px;padding:11px 13px;background:#fbfcfd}
.promise-empty-state div{display:flex;flex-direction:column;gap:4px}.promise-empty-state strong{font-size:14px}.promise-empty-state span{color:#6d7f8e}
.promise-card-footer{display:flex;justify-content:flex-end;align-items:center;margin-top:9px}.promise-actions{justify-content:flex-end;flex-wrap:wrap}
.promise-history{margin-top:12px;border-top:1px solid #edf1f4;padding-top:10px}.promise-history summary{cursor:pointer;color:#506778;font-weight:800;user-select:none}
.promise-history-list{margin-top:10px;display:grid;gap:8px}.promise-history-row{display:grid;grid-template-columns:10px minmax(0,1fr);gap:9px;align-items:start}
.promise-history-dot{width:8px;height:8px;border-radius:50%;background:#9cafbd;margin-top:5px}.promise-history-row div{display:flex;flex-direction:column;gap:2px}.promise-history-row strong{font-size:12px}.promise-history-row small{font-size:11px;color:#7b8c99}.promise-history-row p{margin:2px 0 0;font-size:12px;color:#526877}
.promise-modal-form{display:grid;gap:10px}.promise-modal-context{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #e0e8ee;border-radius:10px;background:#f8fafb}.promise-modal-context strong{font-size:14px}.promise-modal-context span{font-size:12px;color:#667a8c}
.promise-quick-dates{display:flex;flex-wrap:wrap;gap:7px}.promise-quick-chip{border:1px solid #ccd8e1;background:#fff;border-radius:9px;padding:7px 11px;font-weight:800;color:#40596b;cursor:pointer}.promise-quick-chip:hover{background:#f2f6f9}
.promise-date-time-grid{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:10px}.promise-date-time-grid>div{display:grid;gap:5px}.promise-modal-help{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border-radius:10px;background:#f4f8fb;color:#5a6f7f;font-size:12px}.promise-modal-help i{margin-top:1px}
.promise-list-badge{display:inline-flex;align-items:center;gap:5px;min-height:26px;padding:4px 8px;border-radius:8px;font-size:11px;font-weight:900;white-space:nowrap;border:1px solid #dce5eb;background:#f8fafb;color:#526978}.promise-list-badge.is-today{background:#fff5df;color:#8c6100;border-color:#efdaa8}.promise-list-badge.is-tomorrow{background:#f8f1dc;color:#7f660d;border-color:#e6d7a8}.promise-list-badge.is-overdue{background:#ffeded;color:#b12f2f;border-color:#f0c7c7}.promise-list-badge.is-completed{background:#edf8f1;color:#2a7547;border-color:#cde7d7}.promise-list-badge.is-upcoming{background:#eef5fb;color:#486a84;border-color:#d7e4ed}
.jpos-tx-promise-cell{min-width:142px}.promise-shift-warning ul{margin:10px 0 0;padding-left:20px;display:grid;gap:7px}.promise-shift-warning li{line-height:1.3}.promise-shift-warning small{color:#687d8c}

@media(max-width:991px){
  .promise-active-grid{grid-template-columns:1fr}.promise-card-footer{justify-content:stretch}.promise-card-footer>.btn,.promise-card-footer .promise-actions{width:100%}.promise-actions .btn{flex:1 1 130px}
  .promise-date-time-grid{grid-template-columns:1fr 130px}.promise-list-badge{font-size:13px;white-space:normal}
}
@media(max-width:600px){
  .transaction-promise-head{flex-direction:column}.promise-state-badge{align-self:flex-start}.promise-main-date>strong{font-size:17px}
  .promise-date-time-grid{grid-template-columns:1fr}.promise-quick-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.promise-quick-chip{min-height:42px}.promise-modal-context{align-items:flex-start;flex-direction:column}
  .promise-actions{display:grid!important;grid-template-columns:1fr;width:100%}.promise-actions .btn{width:100%}
}
.tx-promise-header-btn{display:inline-flex;align-items:center;gap:7px;max-width:280px;white-space:nowrap}
@media(max-width:600px){.tx-promise-header-btn{max-width:100%;white-space:normal}}

/* STEP 9.3.3L1.1 — posisi Janji tepat di bawah List Item + monitor pendek */
.tx6-detail-main>.transaction-promise-card{width:100%}
.tx6-detail-main>.transaction-promise-card .jpos-card-head{padding-top:12px;padding-bottom:10px}
.tx6-detail-main>.transaction-promise-card .jpos-card-body{padding-top:10px;padding-bottom:11px}
@media(max-height:800px) and (min-width:992px){
  .tx6-detail-main>.transaction-promise-card .transaction-promise-head p{display:none}
  .tx6-detail-main>.transaction-promise-card .promise-history{margin-top:8px;padding-top:8px}
}
@media(max-width:991px){
  .tx6-detail-main>.transaction-promise-card{margin-top:10px}
}

/* ============================================================
   STEP 9.3.3L2 — PRODUKSI & DEADLINE EDITOR
   ============================================================ */
.jpos-production-page,.jpos-production-rules-page{max-width:1600px}
.jpos-production-head{align-items:center}
.jpos-production-guide{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr);gap:8px;align-items:center;background:#fff;border:1px solid var(--jpos-line);border-radius:13px;padding:10px 12px;margin-bottom:12px;box-shadow:var(--jpos-shadow)}
.jpos-production-guide>div{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;min-width:0}
.jpos-production-guide>div>span{grid-row:1/3;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eaf7f8;color:#147a84;font-weight:900}
.jpos-production-guide strong{font-size:.83rem;color:#253746}.jpos-production-guide small{font-size:.72rem;color:#758797;line-height:1.3}.jpos-production-guide>i{text-align:center;color:#9aabb7}
.jpos-production-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.jpos-production-metric{border:1px solid var(--jpos-line);border-radius:12px;background:#fff;padding:12px 13px;display:flex;flex-direction:column;gap:5px;min-height:92px;box-shadow:var(--jpos-shadow)}
.jpos-production-metric>span{display:flex;align-items:center;gap:7px;font-size:.71rem;text-transform:uppercase;letter-spacing:.035em;font-weight:900;color:#64788a}.jpos-production-metric>strong{font-size:1.45rem;line-height:1;color:#203447}.jpos-production-metric>small{font-size:.72rem;color:#7b8c9a}.jpos-production-metric.tone-danger{background:#fff8f8;border-color:#efd6d7}.jpos-production-metric.tone-danger>span,.jpos-production-metric.tone-danger>strong{color:#af3c43}.jpos-production-metric.tone-amber{background:#fffaf0;border-color:#eadcb8}.jpos-production-metric.tone-amber>span,.jpos-production-metric.tone-amber>strong{color:#986a13}.jpos-production-metric.tone-blue{background:#f4fafc;border-color:#d3e7ec}.jpos-production-metric.tone-blue>span,.jpos-production-metric.tone-blue>strong{color:#247181}.jpos-production-workspace{overflow:visible}
.jpos-production-list-head{align-items:flex-start;flex-wrap:wrap}.jpos-production-switch{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid #dfe6ec;border-radius:10px;background:#f6f8fa}.jpos-production-switch button{border:0;background:transparent;border-radius:7px;min-height:32px;padding:0 10px;font-size:.76rem;font-weight:800;color:#65798a;cursor:pointer}.jpos-production-switch button.active{background:#fff;color:#173c58;box-shadow:0 1px 5px rgba(27,55,76,.09)}
.jpos-production-filters{display:grid;grid-template-columns:minmax(260px,1fr) 190px;gap:8px;padding:10px 12px;background:#fbfcfd;border-bottom:1px solid var(--jpos-line)}.jpos-search-field{position:relative;margin:0}.jpos-search-field>i{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#8a9aa7;z-index:2}.jpos-search-field>.form-control{padding-left:34px;width:100%}
.jpos-production-list{display:grid}.jpos-production-task{display:grid;grid-template-columns:130px minmax(240px,1.25fr) minmax(180px,.75fr) minmax(170px,.75fr) auto;gap:12px;align-items:center;padding:12px;border-bottom:1px solid #edf1f4;background:#fff}.jpos-production-task:last-child{border-bottom:0}.jpos-production-task:hover{background:#fcfdfe}.jpos-production-task.is-overdue{box-shadow:inset 3px 0 #c6464e}.jpos-production-task.is-risk{box-shadow:inset 3px 0 #c88c24}.jpos-production-task-type{display:flex;align-items:center;gap:7px;font-size:.74rem;font-weight:900;color:#566c7d}.jpos-production-task-type i{font-size:17px}.jpos-production-task.promise .jpos-production-task-type{color:#6a5b9b}.jpos-production-task-main,.jpos-production-task-due{display:flex;min-width:0;flex-direction:column;gap:3px}.jpos-production-task-main strong{font-size:.9rem}.jpos-production-task-main span,.jpos-production-task-main small,.jpos-production-task-due small{font-size:.72rem;color:#758797;white-space:normal}.jpos-production-task-progress{min-width:0;display:flex;flex-direction:column;gap:5px}.jpos-production-task-progress>span,.transaction-production-progress{height:7px;border-radius:999px;background:#e9eef2;overflow:hidden;display:block}.jpos-production-task-progress>span>i,.transaction-production-progress>i{display:block;height:100%;border-radius:inherit;background:#2b8290}.jpos-production-task-progress small{font-size:.7rem;color:#728594}.jpos-production-task-due>b{font-size:.82rem}.jpos-production-deadline{display:inline-flex;width:max-content;max-width:100%;border-radius:7px;padding:5px 8px;background:#f2f6f8;color:#536b7b;font-size:.75rem;font-weight:900}.jpos-production-deadline.is-danger{background:#fff0f0;color:#b53b43}.jpos-production-deadline.is-warning{background:#fff7e5;color:#936515}.jpos-production-deadline.is-muted{color:#7b8b98}
.jpos-production-note,.jpos-production-rule-info{display:flex;align-items:flex-start;gap:9px;margin-top:10px;padding:10px 12px;border:1px solid #dce6ec;border-radius:11px;background:#f7fafc;color:#617787;font-size:.75rem;line-height:1.4}.jpos-production-rule-info{margin:0 0 12px}.jpos-production-rule-info code{background:#eaf0f4;border-radius:4px;padding:1px 4px;color:#435d70}
.jpos-production-detail-modal{width:min(1080px,94vw);max-height:90vh;overflow:auto}.jpos-production-detail-body{padding:14px}.jpos-production-detail-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}.jpos-production-detail-overview>div{display:flex;flex-direction:column;gap:4px;padding:10px 11px;border:1px solid #e1e8ee;border-radius:10px;background:#fafcfd}.jpos-production-detail-overview span,.transaction-production-grid>div>span{font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;color:#748898;font-weight:900}.jpos-production-detail-overview strong{font-size:.83rem}.jpos-production-detail-actions{display:flex;justify-content:flex-end;margin-bottom:10px}
.jpos-production-work-item{border:1px solid #dfe7ed;border-radius:12px;overflow:hidden;background:#fff;margin-top:10px}.jpos-production-work-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.55fr);gap:14px;padding:12px 14px;background:#fafcfd;border-bottom:1px solid #e6ecf1}.jpos-production-work-head h3{margin:2px 0 3px;font-size:1rem}.jpos-production-work-head p{margin:0;color:#748797;font-size:.74rem}.jpos-production-work-pic>label{display:block;font-size:.68rem;text-transform:uppercase;font-weight:900;color:#788b99;margin-bottom:5px}.jpos-production-work-pic>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.jpos-production-work-progress{display:grid;grid-template-columns:minmax(0,1fr) 46px auto;align-items:center;gap:8px;padding:9px 14px;border-bottom:1px solid #edf1f4}.jpos-production-work-progress>span{height:8px;border-radius:999px;background:#e9eef2;overflow:hidden}.jpos-production-work-progress>span>i{height:100%;display:block;background:#278492;border-radius:999px}.jpos-production-work-progress>b{text-align:right}.jpos-production-work-progress small{font-size:.72rem}.jpos-production-work-progress .is-danger{color:#b43a42}
.jpos-production-timeline{padding:8px 14px 12px}.jpos-production-stage{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;position:relative;padding:9px 0}.jpos-production-stage:not(:last-child):before{content:"";position:absolute;left:13px;top:31px;bottom:-9px;width:2px;background:#e1e8ed}.jpos-production-stage-marker{position:relative;z-index:1;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#edf2f5;color:#718696}.jpos-production-stage.is-done .jpos-production-stage-marker{background:#e9f7ef;color:#247448}.jpos-production-stage.is-overdue .jpos-production-stage-marker{background:#fff0f0;color:#ba3d45}.jpos-production-stage.is-today .jpos-production-stage-marker,.jpos-production-stage.is-due .jpos-production-stage-marker{background:#fff5df;color:#95650f}.jpos-production-stage.is-hold .jpos-production-stage-marker{background:#fff0e7;color:#a35618}.jpos-production-stage-copy{display:flex;flex-direction:column;gap:3px}.jpos-production-stage-copy>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.jpos-production-stage-copy strong{font-size:.84rem}.jpos-production-stage-copy small{font-size:.71rem;color:#758896}.jpos-production-stage-copy small.is-danger{color:#b13e45}.jpos-production-stage-status{display:inline-flex;padding:2px 6px;border-radius:6px;background:#f0f4f6;color:#5d7383;font-size:.67rem;font-weight:900}.jpos-production-stage-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.jpos-production-rule-filter{display:grid;grid-template-columns:minmax(240px,1fr) 180px 170px 42px;gap:7px;padding:11px;border-bottom:1px solid var(--jpos-line)}.jpos-production-rule-table td{vertical-align:middle}.jpos-production-rule-table td:nth-child(2){white-space:normal;min-width:220px}.jpos-production-rule-table .jpos-row-actions{display:flex;gap:5px;align-items:center}.jpos-production-rule-modal{width:min(920px,94vw);max-height:90vh;overflow:auto}.jpos-production-rule-modal form{padding:14px;display:grid;gap:12px}.jpos-production-rule-source-search{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto;gap:5px 7px}.jpos-production-rule-source-search>span{grid-column:1/-1}.jpos-production-stage-editor{border:1px solid #e0e7ec;border-radius:11px;overflow:hidden}.jpos-production-stage-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;background:#f8fafb;border-bottom:1px solid #e5ebef}.jpos-production-stage-editor-head>div{display:flex;flex-direction:column;gap:2px}.jpos-production-stage-editor-head small{color:#738696;font-size:.71rem}.js-production-stage-rows{display:grid}.jpos-production-stage-edit-row{display:grid;grid-template-columns:minmax(180px,1fr) 115px 115px 114px;gap:7px;align-items:end;padding:9px 10px;border-bottom:1px solid #edf1f4}.jpos-production-stage-edit-row:last-child{border-bottom:0}.jpos-production-stage-edit-row label{margin:0}.jpos-production-stage-edit-row label small{display:block;font-size:.67rem;text-transform:uppercase;color:#758797;font-weight:900;margin-bottom:4px}.jpos-production-stage-edit-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.transaction-production-card{margin-top:10px;border-color:#d6e4e8}.transaction-production-head h3{display:flex;gap:7px;align-items:center}.jpos-production-state{display:inline-flex;padding:5px 9px;border-radius:999px;background:#edf5f6;color:#356d75;font-size:.71rem;font-weight:900;white-space:nowrap}.transaction-production-grid{display:grid;grid-template-columns:1.15fr .75fr .8fr;gap:9px}.transaction-production-grid>div{display:flex;flex-direction:column;gap:4px;border:1px solid #e2e9ee;border-radius:10px;padding:9px 11px;background:#fbfcfd}.transaction-production-grid strong{font-size:.84rem}.transaction-production-grid small{font-size:.71rem;color:#748796}.transaction-production-progress{margin-top:2px}

@media(max-width:1200px){
  .jpos-production-task{grid-template-columns:110px minmax(210px,1fr) minmax(150px,.7fr) auto}.jpos-production-task-progress{grid-column:2/4}.jpos-production-task-due{grid-column:3}.jpos-production-task>.btn{grid-column:4;grid-row:1/3}
  .jpos-production-detail-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:991px){
  .jpos-production-guide{grid-template-columns:1fr;gap:5px}.jpos-production-guide>i{transform:rotate(90deg)}
  .jpos-production-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-production-filters{grid-template-columns:1fr 180px}
  .jpos-production-task{display:grid;grid-template-columns:1fr auto;gap:8px 10px;padding:12px}.jpos-production-task-type{grid-column:1}.jpos-production-task-main{grid-column:1}.jpos-production-task-progress{grid-column:1}.jpos-production-task-due{grid-column:1}.jpos-production-task>.btn{grid-column:2;grid-row:1/5;align-self:center;min-height:42px}
  .jpos-production-work-head{grid-template-columns:1fr}.jpos-production-work-pic>div{grid-template-columns:1fr auto}.jpos-production-stage{grid-template-columns:28px minmax(0,1fr)}.jpos-production-stage-actions{grid-column:2;justify-content:flex-start}.jpos-production-stage-actions .btn{min-height:40px}
  .jpos-production-rule-filter{grid-template-columns:minmax(0,1fr) 160px 150px 42px}.jpos-production-rule-table thead{display:none}.jpos-production-rule-table,.jpos-production-rule-table tbody,.jpos-production-rule-table tr,.jpos-production-rule-table td{display:block;width:100%}.jpos-production-rule-table tr{border-bottom:1px solid #e9eef2;padding:8px}.jpos-production-rule-table td{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px;border:0!important;padding:6px!important;white-space:normal!important}.jpos-production-rule-table td:before{content:attr(data-label);font-size:.68rem;font-weight:900;text-transform:uppercase;color:#758797}.jpos-production-rule-table .jpos-row-actions{flex-wrap:wrap}
  .jpos-production-stage-edit-row{grid-template-columns:minmax(0,1fr) 100px 100px;align-items:end}.jpos-production-stage-edit-actions{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}
  .transaction-production-grid{grid-template-columns:1fr}.transaction-production-card .promise-card-footer>.btn{width:100%;justify-content:center}
}
@media(max-width:600px){
  .jpos-production-summary{grid-template-columns:1fr 1fr}.jpos-production-metric{min-height:88px;padding:10px}.jpos-production-metric>strong{font-size:1.3rem}
  .jpos-production-list-head{display:grid}.jpos-production-switch{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-production-switch button{min-height:40px}.jpos-production-filters{grid-template-columns:1fr}.jpos-production-filters select{width:100%}
  .jpos-production-task{grid-template-columns:1fr}.jpos-production-task>*{grid-column:1!important;grid-row:auto!important}.jpos-production-task>.btn{width:100%;justify-content:center}
  .jpos-production-detail-overview{grid-template-columns:1fr}.jpos-production-detail-body{padding:10px}.jpos-production-work-head{padding:10px}.jpos-production-work-pic>div{grid-template-columns:1fr}.jpos-production-work-pic .btn{width:100%;justify-content:center}.jpos-production-work-progress{grid-template-columns:minmax(0,1fr) 42px}.jpos-production-work-progress small{grid-column:1/-1}.jpos-production-timeline{padding:7px 10px 10px}.jpos-production-stage-actions{display:grid;grid-template-columns:1fr;width:100%}.jpos-production-stage-actions .btn{width:100%;justify-content:center}
  .jpos-production-rule-filter{grid-template-columns:1fr}.jpos-production-rule-filter>.btn{width:100%;justify-content:center}.jpos-production-rule-source-search{grid-template-columns:1fr}.jpos-production-rule-source-search>span{grid-column:auto}.jpos-production-stage-editor-head{align-items:flex-start;flex-direction:column}.jpos-production-stage-editor-head>.btn{width:100%;justify-content:center}.jpos-production-stage-edit-row{grid-template-columns:1fr 1fr}.jpos-production-stage-edit-row>.js-pr-stage-name{grid-column:1/-1}.jpos-production-stage-edit-actions{grid-column:1/-1}.jpos-production-rule-modal form{padding:10px}
}
.jpos-production-start-notice{display:flex;align-items:flex-start;gap:10px;margin:0 0 10px;padding:10px 12px;border:1px solid #eadbb5;border-radius:10px;background:#fffaf0;color:#6f5a28}.jpos-production-start-notice>i{font-size:19px;margin-top:1px}.jpos-production-start-notice>div{display:flex;flex-direction:column;gap:3px}.jpos-production-start-notice strong{font-size:.82rem}.jpos-production-start-notice span{font-size:.73rem;line-height:1.4}.jpos-production-detail-actions{gap:7px;flex-wrap:wrap}
@media(max-width:600px){.jpos-production-detail-actions{display:grid;grid-template-columns:1fr}.jpos-production-detail-actions .btn{width:100%;justify-content:center;min-height:42px}}

/* STEP 9.3.3L2 — Janji Customer vs SLA Produksi */
.promise-sla-advice{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid #d9e5ea;border-radius:10px;background:#f4f9fa;color:#405d67}
.promise-sla-advice>i{font-size:18px;margin-top:1px;color:#278492}
.promise-sla-advice>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.promise-sla-advice b{font-size:.78rem;color:#24434b}
.promise-sla-advice span{font-size:.7rem;line-height:1.4;color:#647b84}
@media(max-width:600px){.promise-sla-advice{padding:10px}.promise-sla-advice b{font-size:14px}.promise-sla-advice span{font-size:12px}}


/* STEP 9.3.3L2.1 — Master Pengerjaan modal UI polish */
.jpos-production-rule-overlay{
  position:fixed;
  inset:0;
  z-index:3200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(9,20,34,.56);
  backdrop-filter:blur(2px);
}
.jpos-production-rule-overlay[hidden]{display:none!important}
.jpos-production-rule-dialog{
  width:min(980px,calc(100vw - 36px));
  max-height:min(92vh,900px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.34);
  border-radius:18px;
  background:#fff;
  box-shadow:0 28px 80px rgba(8,22,39,.32);
}
.jpos-production-rule-dialog-head{
  flex:0 0 auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:17px 18px 14px;
  border-bottom:1px solid #e4eaf0;
  background:#fff;
}
.jpos-production-rule-dialog-head h2{margin:2px 0 3px;color:#1e3047;font-size:1.2rem;line-height:1.2}
.jpos-production-rule-dialog-head p{margin:0;max-width:720px;color:#738596;font-size:.76rem;line-height:1.45}
.jpos-production-rule-form{
  min-height:0;
  overflow:auto;
  display:grid;
  gap:11px;
  padding:14px 16px 0;
  background:#f7f9fb;
}
.jpos-production-rule-section{
  padding:12px;
  border:1px solid #e0e7ed;
  border-radius:13px;
  background:#fff;
}
.jpos-production-rule-section.is-stage{padding:0;overflow:hidden}
.jpos-production-rule-section.is-note{padding:11px 12px}
.jpos-production-rule-section label{min-width:0;margin:0}
.jpos-production-rule-section label>span,
.jpos-production-rule-section.is-note label>span{
  display:block;
  margin:0 0 5px;
  color:#506477;
  font-size:.7rem;
  font-weight:900;
}
.jpos-production-rule-section-title{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-bottom:10px;
}
.jpos-production-rule-section-title.compact{margin:0;min-width:0}
.jpos-production-rule-section-title>div{display:flex;min-width:0;flex-direction:column;gap:2px}
.jpos-production-rule-section-title strong{color:#24384a;font-size:.82rem}
.jpos-production-rule-section-title small{color:#788a99;font-size:.7rem;line-height:1.4}
.jpos-production-rule-step{
  width:27px;
  height:27px;
  flex:0 0 27px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e8f7f8;
  color:#157985;
  font-size:.72rem;
  font-weight:900;
}
.jpos-production-rule-source-grid{
  display:grid;
  grid-template-columns:minmax(190px,.42fr) minmax(0,1fr);
  gap:10px;
  align-items:start;
}
.jpos-production-rule-source-search{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:5px 7px!important;
}
.jpos-production-rule-source-search>span{grid-column:1/-1!important}
.jpos-production-rule-sla-grid{
  display:grid;
  grid-template-columns:minmax(150px,.55fr) minmax(150px,.55fr) minmax(260px,1fr);
  gap:10px;
  align-items:start;
}
.jpos-production-rule-number{display:flex;align-items:stretch;min-width:0}
.jpos-production-rule-number .form-control{border-radius:9px 0 0 9px}
.jpos-production-rule-number b{
  min-width:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 9px;
  border:1px solid #d8e1e8;
  border-left:0;
  border-radius:0 9px 9px 0;
  background:#f4f7f9;
  color:#607486;
  font-size:.72rem;
}
.jpos-production-rule-section .jpos-sub{display:block;margin-top:5px;color:#7b8d9c;font-size:.67rem;line-height:1.35}
.jpos-production-rule-dialog .jpos-production-stage-editor{margin:0;border:0;border-radius:0}
.jpos-production-rule-dialog .jpos-production-stage-editor-head{padding:11px 12px;background:#fbfcfd}
.jpos-production-rule-dialog .jpos-production-stage-edit-row{background:#fff}
.jpos-production-rule-dialog .jpos-production-stage-edit-row:hover{background:#fbfdfe}
.jpos-production-rule-dialog textarea.form-control{min-height:76px;resize:vertical}
.jpos-production-rule-dialog-actions{
  position:sticky;
  bottom:0;
  z-index:3;
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin:0 -16px;
  padding:12px 16px;
  border-top:1px solid #e1e8ee;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);
}
.jpos-production-rule-dialog-actions .btn{min-height:38px}

@media(max-width:900px){
  .jpos-production-rule-dialog{width:min(760px,calc(100vw - 24px));max-height:94vh}
  .jpos-production-rule-source-grid{grid-template-columns:1fr}
  .jpos-production-rule-sla-grid{grid-template-columns:1fr 1fr}
  .jpos-production-rule-sla-grid>label:last-child{grid-column:1/-1}
}
@media(max-width:600px){
  .jpos-production-rule-overlay{padding:0;align-items:flex-end}
  .jpos-production-rule-dialog{
    width:100%;
    max-width:none;
    max-height:96vh;
    border-radius:16px 16px 0 0;
  }
  .jpos-production-rule-dialog-head{padding:14px 14px 11px;gap:10px}
  .jpos-production-rule-dialog-head h2{font-size:1.08rem}
  .jpos-production-rule-dialog-head p{font-size:.72rem}
  .jpos-production-rule-form{gap:9px;padding:10px 10px 0}
  .jpos-production-rule-section{padding:10px}
  .jpos-production-rule-source-grid,
  .jpos-production-rule-sla-grid{grid-template-columns:1fr}
  .jpos-production-rule-sla-grid>label:last-child{grid-column:auto}
  .jpos-production-rule-source-search{grid-template-columns:1fr!important}
  .jpos-production-rule-source-search>span{grid-column:auto!important}
  .jpos-production-rule-dialog .jpos-production-stage-editor-head{align-items:stretch}
  .jpos-production-rule-dialog .jpos-production-stage-editor-head>.btn{width:100%;justify-content:center}
  .jpos-production-rule-dialog-actions{
    margin:0 -10px;
    padding:10px;
    display:grid;
    grid-template-columns:.7fr 1.3fr;
  }
  .jpos-production-rule-dialog-actions .btn{width:100%;justify-content:center;min-height:44px}
}

/* STEP 9.3.3M1 — Pengeluaran Langsung + Approval */
.jpos-direct-expense-card{padding:0!important;overflow:hidden;margin-bottom:12px}
.jpos-direct-expense-head{padding:15px 16px 11px;align-items:flex-start;border-bottom:1px solid #e7edf2;background:linear-gradient(180deg,#fff,#fbfcfd)}
.jpos-direct-expense-head h2{margin:2px 0 2px;font-size:1.08rem;color:#20384f}.jpos-direct-expense-head .jpos-sub{margin:0;max-width:850px;line-height:1.45}
.jpos-direct-expense-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px 16px}
.jpos-direct-expense-metrics>div{display:grid;gap:3px;min-width:0;padding:12px 13px;border:1px solid #e0e8ee;border-radius:10px;background:#fff}
.jpos-direct-expense-metrics span{font-size:.67rem;font-weight:900;text-transform:uppercase;letter-spacing:.035em;color:#72869a}
.jpos-direct-expense-metrics strong{font-size:1.08rem;color:#213a52}.jpos-direct-expense-metrics small{font-size:.72rem;color:#788b9e;line-height:1.35}
.jpos-direct-expense-filter{display:grid;grid-template-columns:minmax(260px,1fr) 190px auto;gap:8px;padding:0 16px 12px;margin:0}
.jpos-direct-expense-filter .btn{min-height:40px}.jpos-direct-expense-wrap{border-top:1px solid #e7edf2}
.jpos-direct-expense-table{width:100%;table-layout:fixed}.jpos-direct-expense-table th:nth-child(1){width:13%}.jpos-direct-expense-table th:nth-child(2){width:22%}.jpos-direct-expense-table th:nth-child(3){width:17%}.jpos-direct-expense-table th:nth-child(4){width:11%}.jpos-direct-expense-table th:nth-child(5){width:10%}.jpos-direct-expense-table th:nth-child(6){width:12%}.jpos-direct-expense-table th:nth-child(7){width:10%}.jpos-direct-expense-table th:nth-child(8){width:5%}
.jpos-direct-expense-table td{vertical-align:middle;white-space:normal;overflow-wrap:anywhere}.jpos-direct-expense-table td strong{display:block;color:#243d55}.jpos-direct-expense-table .jpos-sub{display:block;margin-top:2px}
.jpos-direct-expense-form{display:grid;gap:8px}.jpos-direct-expense-info,.jpos-direct-confirm-note{display:flex;gap:9px;align-items:flex-start;padding:10px 11px;border:1px solid #cfe5e8;border-radius:9px;background:#f2fbfb;color:#426677;font-size:.76rem;line-height:1.45}.jpos-direct-expense-info i,.jpos-direct-confirm-note i{font-size:18px;color:#16949b;flex:0 0 auto}
.jpos-direct-detail{display:grid;gap:12px}.jpos-direct-detail-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:8px;border-bottom:1px solid #e7edf2}.jpos-direct-detail-status>strong{color:#263f57;font-size:.82rem}
.jpos-direct-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.jpos-direct-detail-grid>div{display:grid;gap:3px;padding:10px 11px;border:1px solid #e1e9ef;border-radius:9px;background:#fafcfd;min-width:0}.jpos-direct-detail-grid span,.jpos-direct-evidence>span{font-size:.67rem;font-weight:900;text-transform:uppercase;letter-spacing:.035em;color:#75899c}.jpos-direct-detail-grid strong{font-size:.84rem;color:#263f57;overflow-wrap:anywhere}.jpos-direct-detail-grid small{font-size:.72rem;color:#75889b;line-height:1.35;overflow-wrap:anywhere}
.jpos-direct-evidence{display:grid;gap:7px;padding:10px 11px;border:1px solid #e1e9ef;border-radius:9px;background:#fff}.jpos-direct-evidence>div{display:flex;gap:6px;flex-wrap:wrap}.jpos-direct-detail-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;padding-top:3px}.jpos-direct-detail-actions .btn{min-height:38px}
@media(max-width:991px){.jpos-direct-expense-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-direct-expense-filter{grid-template-columns:1fr 190px auto}}
@media(max-width:767px){.jpos-direct-expense-card{font-size:16px}.jpos-direct-expense-head{padding:13px 12px}.jpos-direct-expense-head.jpos-section-title-row{display:grid;grid-template-columns:1fr;gap:10px}.jpos-direct-expense-head .jpos-inline-actions{width:100%}.jpos-direct-expense-head .btn{width:100%;min-height:44px;font-size:14px}.jpos-direct-expense-metrics{grid-template-columns:1fr 1fr;padding:10px 12px}.jpos-direct-expense-metrics span{font-size:11px}.jpos-direct-expense-metrics strong{font-size:18px}.jpos-direct-expense-metrics small{font-size:12px}.jpos-direct-expense-filter{grid-template-columns:1fr;padding:0 12px 12px}.jpos-direct-expense-filter select,.jpos-direct-expense-filter .btn{width:100%;font-size:16px;min-height:44px}.jpos-direct-expense-table{width:100%!important;min-width:0!important;table-layout:auto!important}.jpos-direct-expense-table thead{display:none}.jpos-direct-expense-table tbody{display:grid;gap:10px;padding:10px 12px}.jpos-direct-expense-table tr{display:grid!important;grid-template-columns:1fr;border:1px solid #e1e9ef!important;border-radius:12px;background:#fff;overflow:hidden}.jpos-direct-expense-table td{display:grid!important;grid-template-columns:112px minmax(0,1fr);gap:10px;width:100%!important;padding:10px 12px!important;border:0!important;border-bottom:1px solid #edf2f5!important;text-align:left!important;font-size:15px!important}.jpos-direct-expense-table td:last-child{border-bottom:0!important}.jpos-direct-expense-table td::before{content:attr(data-label);color:#7a8da0;font-size:12px;font-weight:900;text-transform:uppercase}.jpos-direct-expense-table .jpos-empty-cell{display:block!important;text-align:center!important}.jpos-direct-expense-table .jpos-empty-cell::before{display:none}.jpos-direct-detail-grid{grid-template-columns:1fr}.jpos-direct-detail-actions{display:grid;grid-template-columns:1fr}.jpos-direct-detail-actions .btn{width:100%;min-height:44px}.jpos-direct-expense-info,.jpos-direct-confirm-note{font-size:14px}}
@media(max-width:420px){.jpos-direct-expense-metrics{grid-template-columns:1fr}}

/* ============================================================
   STEP 9.3.3M1.1 — MASTER PENGERJAAN CATEGORY + TIMELINE POLISH
   ============================================================ */
.jpos-production-rule-filter{
  grid-template-columns:minmax(260px,1fr) 155px 170px 190px 150px 42px;
  align-items:center;
}
.jpos-production-rule-classification{color:#60788c!important;font-weight:700}

/* Overlay harus selalu memenuhi viewport. Rule legacy .jpos-production-rule-modal
   tidak boleh membatasi ukuran backdrop. */
.jpos-production-rule-overlay{
  width:100vw!important;
  max-width:none!important;
  height:100vh!important;
  max-height:none!important;
  overflow:hidden!important;
}

/* Timeline tahap mengikuti jumlah baris; scroll hanya terjadi pada form/modal. */
.jpos-production-rule-section.is-stage{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
.jpos-production-rule-dialog .jpos-production-stage-editor{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
.jpos-production-rule-dialog .js-production-stage-rows{
  display:grid;
  grid-auto-rows:auto;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
.jpos-production-rule-dialog .jpos-production-stage-edit-row{min-height:0;height:auto}

@media(max-width:1280px){
  .jpos-production-rule-filter{
    grid-template-columns:minmax(240px,1fr) repeat(2,minmax(145px,.55fr)) repeat(2,minmax(145px,.55fr)) 42px;
  }
}
@media(max-width:1050px){
  .jpos-production-rule-filter{
    grid-template-columns:minmax(0,1fr) repeat(2,minmax(150px,.42fr));
  }
  .jpos-production-rule-filter .js-production-rule-category,
  .jpos-production-rule-filter .js-production-rule-subcategory,
  .jpos-production-rule-filter .js-production-rule-status{min-width:0}
  .jpos-production-rule-filter>.js-production-rule-refresh{width:42px;justify-self:end}
}
@media(max-width:720px){
  .jpos-production-rule-filter{grid-template-columns:1fr 1fr}
  .jpos-production-rule-filter .jpos-search-field{grid-column:1/-1}
  .jpos-production-rule-filter>.js-production-rule-refresh{width:100%;justify-self:stretch}
}
@media(max-width:600px){
  .jpos-production-rule-filter{grid-template-columns:1fr}
  .jpos-production-rule-filter .jpos-search-field{grid-column:auto}
  .jpos-production-rule-filter>.js-production-rule-refresh{width:100%}
  .jpos-production-rule-section.is-stage,
  .jpos-production-rule-dialog .jpos-production-stage-editor,
  .jpos-production-rule-dialog .js-production-stage-rows{overflow:visible!important}
}

/* ============================================================
   STEP 9.3.3M1.2 — PRODUCTION STAGE AUTO HEIGHT HOTFIX
   Timeline Tahap wajib tumbuh mengikuti seluruh baris.
   ============================================================ */
.jpos-production-rule-dialog .jpos-production-rule-form{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:11px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.jpos-production-rule-dialog .jpos-production-rule-form > .jpos-production-rule-section{
  flex:0 0 auto!important;
  width:100%!important;
  min-height:min-content!important;
  height:auto!important;
  position:relative!important;
}
.jpos-production-rule-dialog .jpos-production-rule-section.is-stage{
  display:block!important;
  height:auto!important;
  min-height:min-content!important;
  max-height:none!important;
  overflow:visible!important;
}
.jpos-production-rule-dialog .jpos-production-stage-editor{
  display:block!important;
  height:auto!important;
  min-height:min-content!important;
  max-height:none!important;
  overflow:visible!important;
}
.jpos-production-rule-dialog .js-production-stage-rows{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  height:auto!important;
  min-height:min-content!important;
  max-height:none!important;
  overflow:visible!important;
}
.jpos-production-rule-dialog .jpos-production-stage-edit-row{
  flex:0 0 auto!important;
  height:auto!important;
  min-height:0!important;
  position:relative!important;
}
.jpos-production-rule-dialog .jpos-production-rule-section.is-note{
  flex:0 0 auto!important;
  position:relative!important;
  z-index:1!important;
  height:auto!important;
  margin-top:0!important;
  clear:both!important;
}
.jpos-production-rule-dialog .jpos-production-rule-dialog-actions{
  flex:0 0 auto!important;
}

@media(max-width:600px){
  .jpos-production-rule-dialog .jpos-production-rule-form{gap:9px!important}
}

/* STEP 9.3.3M1.3 — Aturan Pengerjaan berbasis Kategori */
.jpos-production-rule-filter.is-category-rule{
  grid-template-columns:minmax(280px,1fr) 190px 170px 42px;
}
.jpos-production-rule-table.is-category-rule td:nth-child(2){min-width:210px}
.jpos-production-rule-table.is-category-rule td:nth-child(3){min-width:145px}
.jpos-production-category-scope{
  display:grid;
  grid-template-columns:180px minmax(220px,1fr) minmax(260px,1.3fr);
  gap:10px;
}
.jpos-production-category-scope>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:10px 11px;
  border:1px solid #e1e8ed;
  border-radius:10px;
  background:#fbfcfd;
}
.jpos-production-category-scope span{
  font-size:.67rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#778a9a;
  font-weight:900;
}
.jpos-production-category-scope strong{
  color:#20374d;
  font-size:.88rem;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.jpos-production-category-scope small{
  color:#718597;
  font-size:.7rem;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.jpos-production-rule-active{
  margin-top:9px!important;
  display:flex!important;
  align-items:center;
  gap:8px;
  color:#304a61;
  font-weight:800;
}
.jpos-production-rule-active input{width:16px;height:16px;flex:0 0 auto}
.jpos-flex-spacer{flex:1 1 auto}
@media(max-width:991px){
  .jpos-production-rule-filter.is-category-rule{grid-template-columns:minmax(0,1fr) 170px 150px 42px}
  .jpos-production-category-scope{grid-template-columns:1fr 1fr}
  .jpos-production-category-scope>div:last-child{grid-column:1/-1}
}
@media(max-width:767px){
  .jpos-production-rule-filter.is-category-rule{grid-template-columns:1fr 1fr}
  .jpos-production-rule-filter.is-category-rule .jpos-search-field{grid-column:1/-1}
  .jpos-production-rule-filter.is-category-rule>.js-production-rule-refresh{width:100%}
  .jpos-production-category-scope{grid-template-columns:1fr}
  .jpos-production-category-scope>div:last-child{grid-column:auto}
  .jpos-production-rule-dialog-actions .jpos-flex-spacer{display:none}
}
@media(max-width:520px){
  .jpos-production-rule-filter.is-category-rule{grid-template-columns:1fr}
  .jpos-production-rule-filter.is-category-rule .jpos-search-field{grid-column:auto}
}

/* STEP 9.3.3M1.4 — Compact Role Permission Modal
   Visual-only: merapatkan modal Tambah/Edit Role agar lebih banyak permission terlihat dalam satu view. */
.swal2-popup:has(#acRoleCode){
  max-width:calc(100vw - 24px)!important;
  padding:16px 18px 14px!important;
}
.swal2-popup:has(#acRoleCode) .swal2-title{
  margin:0 0 8px!important;
  padding:0!important;
  font-size:22px!important;
  line-height:1.2!important;
}
.swal2-popup:has(#acRoleCode) .swal2-html-container{
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
.swal2-popup:has(#acRoleCode) .jpos-role-form{
  display:grid;
  gap:8px;
}
.swal2-popup:has(#acRoleCode) .jpos-role-meta-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px 10px;
}
.swal2-popup:has(#acRoleCode) .jpos-role-meta-grid>div{
  min-width:0;
}
.swal2-popup:has(#acRoleCode) .jpos-role-meta-grid>.is-wide{
  grid-column:1/-1;
}
.swal2-popup:has(#acRoleCode) .jpos-role-form label{
  font-size:10px;
  margin:0 0 3px;
  line-height:1.2;
}
.swal2-popup:has(#acRoleCode) .jpos-role-meta-grid input,
.swal2-popup:has(#acRoleCode) .jpos-role-meta-grid textarea{
  min-height:34px;
  padding:6px 9px;
  border-radius:7px;
  font-size:12px;
}
.swal2-popup:has(#acRoleCode) .jpos-role-meta-grid textarea{
  min-height:48px;
  max-height:64px;
  resize:vertical;
}
.swal2-popup:has(#acRoleCode) .jpos-role-permission-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:1px;
}
.swal2-popup:has(#acRoleCode) .jpos-role-permission-title label{
  margin:0;
  font-size:11px;
}
.swal2-popup:has(#acRoleCode) .jpos-role-permission-title small{
  font-size:9px;
  color:#8491a2;
}
.swal2-popup:has(#acRoleCode) .jpos-role-permission-scroll{
  max-height:52vh;
  overflow:auto;
  padding:7px;
  border-radius:8px;
  background:#f8fafc;
  scrollbar-gutter:stable;
}
.swal2-popup:has(#acRoleCode) .jpos-role-permission-modules{
  column-count:2;
  column-gap:8px;
}
.swal2-popup:has(#acRoleCode) .jpos-role-permission-group{
  display:inline-block;
  width:100%;
  margin:0 0 7px;
  padding:6px;
  border:1px solid #e1e7ee;
  border-radius:7px;
  background:#fff;
  break-inside:avoid;
  -webkit-column-break-inside:avoid;
}
.swal2-popup:has(#acRoleCode) .jpos-role-permission-group>strong{
  display:block;
  padding:0 2px 4px;
  margin:0 0 2px;
  border-bottom:1px solid #eef2f6;
  font-size:9px;
  line-height:1.2;
  color:#53677d;
  letter-spacing:.05em;
}
.swal2-popup:has(#acRoleCode) .jpos-role-permission-items{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:2px 5px;
  padding-top:2px;
}
.swal2-popup:has(#acRoleCode) .jpos-permission-check{
  display:grid;
  grid-template-columns:14px minmax(0,1fr);
  align-items:center;
  gap:5px;
  min-width:0;
  min-height:28px;
  padding:3px 4px;
  border:0;
  border-radius:5px;
  background:transparent;
}
.swal2-popup:has(#acRoleCode) .jpos-permission-check:hover{
  background:#f2f7fb;
}
.swal2-popup:has(#acRoleCode) .jpos-permission-check input{
  width:14px!important;
  height:14px!important;
  margin:0!important;
}
.swal2-popup:has(#acRoleCode) .jpos-permission-check span{
  display:block;
  min-width:0;
}
.swal2-popup:has(#acRoleCode) .jpos-permission-check b{
  display:block;
  font-size:10px;
  line-height:1.15;
  font-weight:650;
  color:#26384d;
}
.swal2-popup:has(#acRoleCode) .jpos-permission-check small{
  display:none;
}
.swal2-popup:has(#acRoleCode) .swal2-actions{
  margin:10px 0 0!important;
  gap:7px!important;
}
.swal2-popup:has(#acRoleCode) .swal2-actions button{
  min-height:34px;
  padding:7px 13px!important;
  font-size:11px!important;
}
@media(max-width:900px){
  .swal2-popup:has(#acRoleCode) .jpos-role-permission-modules{column-count:1}
  .swal2-popup:has(#acRoleCode) .jpos-role-permission-items{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .swal2-popup:has(#acRoleCode){padding:12px 10px 10px!important}
  .swal2-popup:has(#acRoleCode) .swal2-title{font-size:20px!important}
  .swal2-popup:has(#acRoleCode) .jpos-role-meta-grid{grid-template-columns:1fr}
  .swal2-popup:has(#acRoleCode) .jpos-role-meta-grid>.is-wide{grid-column:auto}
  .swal2-popup:has(#acRoleCode) .jpos-role-permission-scroll{max-height:54vh;padding:6px}
  .swal2-popup:has(#acRoleCode) .jpos-role-permission-items{grid-template-columns:1fr}
  .swal2-popup:has(#acRoleCode) .jpos-permission-check{min-height:32px}
  .swal2-popup:has(#acRoleCode) .jpos-permission-check b{font-size:13px}
}

/* STEP 9.3.3M1.5 — Aturan Pengerjaan per Store + Kategori */
.jpos-production-rule-filter.is-category-rule{
  grid-template-columns:minmax(260px,1fr) 190px 180px 170px 42px;
}
.jpos-production-rule-table.is-store-scoped td:first-child{min-width:155px}
.jpos-production-category-scope.is-store-scoped{
  grid-template-columns:170px 170px minmax(210px,1fr) minmax(260px,1.25fr);
}
@media(max-width:1100px){
  .jpos-production-rule-filter.is-category-rule{grid-template-columns:minmax(220px,1fr) 165px 165px 145px 42px}
  .jpos-production-category-scope.is-store-scoped{grid-template-columns:1fr 1fr}
}
@media(max-width:767px){
  .jpos-production-rule-filter.is-category-rule{grid-template-columns:1fr 1fr}
  .jpos-production-rule-filter.is-category-rule .jpos-search-field{grid-column:1/-1}
  .jpos-production-rule-filter.is-category-rule>.js-production-rule-refresh{width:100%}
  .jpos-production-category-scope.is-store-scoped{grid-template-columns:1fr}
}
@media(max-width:520px){
  .jpos-production-rule-filter.is-category-rule{grid-template-columns:1fr}
  .jpos-production-rule-filter.is-category-rule .jpos-search-field{grid-column:auto}
}

/* ============================================================
 * STEP 9.3.3M1.6 — Production Detail Modal UI Polish
 * Visual-only. Production/Deadline logic remains unchanged.
 * ============================================================ */
.js-production-detail-modal{
  position:fixed!important;
  inset:0!important;
  z-index:4600!important;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  overflow:auto;
  background:rgba(9,22,37,.58)!important;
  backdrop-filter:blur(3px);
}
.js-production-detail-modal[hidden]{display:none!important}

.jpos-production-detail-modal{
  width:min(980px,calc(100vw - 40px))!important;
  max-height:min(90vh,900px)!important;
  display:flex;
  flex-direction:column;
  overflow:hidden!important;
  margin:auto;
  border:1px solid rgba(221,230,237,.95);
  border-radius:18px;
  background:#fff;
  box-shadow:0 28px 90px rgba(4,19,35,.30);
}
.jpos-production-detail-modal>.jpos-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex:0 0 auto;
  padding:15px 17px 13px;
  border-bottom:1px solid #e3eaf0;
  background:#fff;
}
.jpos-production-detail-modal>.jpos-modal-head>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.jpos-production-detail-modal>.jpos-modal-head .jpos-eyebrow{
  color:#778b9b;
  font-size:.66rem;
  line-height:1.2;
  letter-spacing:.055em;
}
.jpos-production-detail-modal>.jpos-modal-head h2{
  margin:0;
  color:#1b3148;
  font-size:1.08rem;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.jpos-production-detail-modal>.jpos-modal-head .jpos-modal-close{
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #dbe4eb;
  border-radius:10px;
  background:#fff;
  color:#526a7e;
  font-size:1.25rem;
  line-height:1;
  cursor:pointer;
}
.jpos-production-detail-modal>.jpos-modal-head .jpos-modal-close:hover{
  background:#f4f7f9;
  color:#233c53;
}

.jpos-production-detail-modal>.js-production-detail-body{
  min-height:0;
  flex:1 1 auto;
  overflow:auto;
  padding:14px 16px 18px!important;
  background:#f5f8fa;
  overscroll-behavior:contain;
}
.jpos-production-detail-modal .jpos-production-detail-overview{
  display:grid;
  grid-template-columns:1.25fr .9fr 1fr 1fr;
  gap:8px;
  margin:0 0 10px;
}
.jpos-production-detail-modal .jpos-production-detail-overview>div{
  min-width:0;
  padding:9px 11px;
  border:1px solid #dfe7ed;
  border-radius:11px;
  background:#fff;
  box-shadow:0 1px 0 rgba(14,37,58,.02);
}
.jpos-production-detail-modal .jpos-production-detail-overview span{
  margin-bottom:1px;
  color:#788b9b;
  font-size:.64rem;
  line-height:1.2;
}
.jpos-production-detail-modal .jpos-production-detail-overview strong{
  color:#1f3347;
  font-size:.81rem;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.jpos-production-detail-modal .jpos-production-start-notice{
  margin:0 0 10px;
  padding:9px 11px;
  border-color:#ead8ad;
  border-radius:11px;
  background:#fff9ec;
}
.jpos-production-detail-modal .jpos-production-start-notice>i{
  flex:0 0 26px;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  margin:0;
  border-radius:8px;
  background:#fff1cf;
  color:#96630e;
  font-size:.96rem;
}
.jpos-production-detail-modal .jpos-production-start-notice strong{font-size:.77rem}
.jpos-production-detail-modal .jpos-production-start-notice span{font-size:.69rem;line-height:1.4}

.jpos-production-detail-modal .jpos-production-detail-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  margin:0 0 10px;
}
.jpos-production-detail-modal .jpos-production-detail-actions .btn{
  min-height:36px;
  padding:7px 11px;
}

.jpos-production-detail-modal .jpos-production-work-item{
  margin:0 0 11px;
  overflow:hidden;
  border:1px solid #dce5ec;
  border-radius:14px;
  background:#fff;
  box-shadow:0 3px 12px rgba(21,50,73,.035);
}
.jpos-production-detail-modal .jpos-production-work-item:last-child{margin-bottom:0}
.jpos-production-detail-modal .jpos-production-work-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,380px);
  align-items:end;
  gap:14px;
  padding:12px 13px 11px;
  background:#fff;
  border-bottom:1px solid #e7edf2;
}
.jpos-production-detail-modal .jpos-production-work-head .jpos-eyebrow{
  color:#788b9b;
  font-size:.63rem;
}
.jpos-production-detail-modal .jpos-production-work-head h3{
  margin:3px 0 2px;
  color:#203449;
  font-size:.92rem;
  line-height:1.25;
}
.jpos-production-detail-modal .jpos-production-work-head p{
  margin:0;
  color:#6f8394;
  font-size:.69rem;
}
.jpos-production-detail-modal .jpos-production-work-pic>label{
  margin:0 0 4px;
  color:#738797;
  font-size:.62rem;
}
.jpos-production-detail-modal .jpos-production-work-pic>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px;
  align-items:center;
}
.jpos-production-detail-modal .jpos-production-work-pic .form-control{
  min-height:36px;
  height:36px;
  font-size:.77rem;
}
.jpos-production-detail-modal .jpos-production-work-pic .btn{
  min-height:36px;
  white-space:nowrap;
}

.jpos-production-detail-modal .jpos-production-work-progress{
  display:grid;
  grid-template-columns:minmax(0,1fr) 42px auto;
  gap:8px;
  align-items:center;
  padding:8px 13px;
  background:#fbfcfd;
  border-bottom:1px solid #e8eef2;
}
.jpos-production-detail-modal .jpos-production-work-progress>span{height:7px}
.jpos-production-detail-modal .jpos-production-work-progress>b{
  color:#334a5e;
  font-size:.75rem;
}
.jpos-production-detail-modal .jpos-production-work-progress small{
  color:#9b4b4f;
  font-size:.68rem;
}

.jpos-production-detail-modal .jpos-production-timeline{
  padding:4px 13px 7px;
  background:#fff;
}
.jpos-production-detail-modal .jpos-production-stage{
  grid-template-columns:26px minmax(0,1fr) auto;
  gap:9px;
  min-height:54px;
  padding:9px 0;
  border-bottom:1px dashed #e9eef2;
}
.jpos-production-detail-modal .jpos-production-stage:last-child{border-bottom:0}
.jpos-production-detail-modal .jpos-production-stage:not(:last-child):before{
  left:12px;
  top:32px;
  bottom:-10px;
  background:#dce6ec;
}
.jpos-production-detail-modal .jpos-production-stage-marker{
  width:26px;
  height:26px;
  font-size:.72rem;
}
.jpos-production-detail-modal .jpos-production-stage-copy{
  min-width:0;
  justify-content:center;
  gap:2px;
}
.jpos-production-detail-modal .jpos-production-stage-copy>div{gap:6px}
.jpos-production-detail-modal .jpos-production-stage-copy strong{
  color:#23384c;
  font-size:.79rem;
}
.jpos-production-detail-modal .jpos-production-stage-copy small{
  color:#728697;
  font-size:.67rem;
  line-height:1.35;
}
.jpos-production-detail-modal .jpos-production-stage-status{
  padding:2px 6px;
  font-size:.61rem;
}
.jpos-production-detail-modal .jpos-production-stage-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  flex-wrap:nowrap;
}
.jpos-production-detail-modal .jpos-production-stage-actions .btn{
  min-width:0;
  min-height:34px;
  padding:6px 9px;
  white-space:nowrap;
}
.jpos-production-detail-modal .jpos-production-stage-actions .btn-success{
  border-color:#25855f;
  background:#25855f;
  color:#fff;
}
.jpos-production-detail-modal .jpos-production-stage-actions .btn-success:hover{
  border-color:#1e7150;
  background:#1e7150;
}

@media(max-width:900px){
  .jpos-production-detail-modal .jpos-production-detail-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-production-detail-modal .jpos-production-work-head{grid-template-columns:1fr}
}

@media(max-width:600px){
  .js-production-detail-modal{
    align-items:flex-end;
    padding:0;
  }
  .jpos-production-detail-modal{
    width:100%!important;
    max-height:93dvh!important;
    margin:0;
    border-width:1px 0 0;
    border-radius:18px 18px 0 0;
  }
  .jpos-production-detail-modal>.jpos-modal-head{
    position:sticky;
    top:0;
    z-index:4;
    padding:13px 14px 11px;
  }
  .jpos-production-detail-modal>.jpos-modal-head h2{font-size:1rem}
  .jpos-production-detail-modal>.js-production-detail-body{padding:10px 10px 18px!important}
  .jpos-production-detail-modal .jpos-production-detail-overview{grid-template-columns:1fr 1fr;gap:6px}
  .jpos-production-detail-modal .jpos-production-detail-overview>div{padding:8px 9px}
  .jpos-production-detail-modal .jpos-production-detail-overview strong{font-size:.78rem}
  .jpos-production-detail-modal .jpos-production-detail-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .jpos-production-detail-modal .jpos-production-detail-actions .btn{width:100%;justify-content:center;min-height:42px}
  .jpos-production-detail-modal .jpos-production-work-head{padding:11px 10px 10px;gap:9px}
  .jpos-production-detail-modal .jpos-production-work-pic>div{grid-template-columns:1fr}
  .jpos-production-detail-modal .jpos-production-work-pic .form-control,
  .jpos-production-detail-modal .jpos-production-work-pic .btn{width:100%;min-height:42px;height:auto}
  .jpos-production-detail-modal .jpos-production-work-progress{grid-template-columns:minmax(0,1fr) 40px;padding:8px 10px}
  .jpos-production-detail-modal .jpos-production-work-progress small{grid-column:1/-1}
  .jpos-production-detail-modal .jpos-production-timeline{padding:3px 10px 8px}
  .jpos-production-detail-modal .jpos-production-stage{
    grid-template-columns:25px minmax(0,1fr);
    gap:8px;
    padding:10px 0;
  }
  .jpos-production-detail-modal .jpos-production-stage-actions{
    grid-column:2;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    margin-top:5px;
  }
  .jpos-production-detail-modal .jpos-production-stage-actions .btn{
    width:100%;
    min-height:40px;
    justify-content:center;
  }
}

@media(max-width:390px){
  .jpos-production-detail-modal .jpos-production-detail-overview{grid-template-columns:1fr}
  .jpos-production-detail-modal .jpos-production-stage-actions{grid-template-columns:1fr}
}


/* STEP 9.3.3M1.7.1 — Tim Produksi / package responsibility */
.jpos-production-team-page,.jpos-production-page{font-size:14px}
.jpos-production-team-principle{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;margin-bottom:16px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:14px;color:#1e3a8a}
.jpos-production-team-principle>i{font-size:26px;line-height:1}
.jpos-production-team-principle div{display:flex;flex-direction:column;gap:3px}.jpos-production-team-principle strong{font-size:14px}.jpos-production-team-principle span{color:#475569;line-height:1.55}
.jpos-production-team-card{margin-bottom:16px}.jpos-production-team-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:16px 18px 18px}.jpos-production-team-filters label{display:flex;flex-direction:column;gap:6px;min-width:0}.jpos-production-team-filters label>span{font-weight:700;color:#475569;font-size:12px}.jpos-production-team-filters .form-control{width:100%;min-height:42px}
.jpos-production-team-package-head{align-items:center}.jpos-production-team-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:4px 18px 18px}.jpos-production-team-package{position:relative;display:flex;gap:10px;align-items:center;min-height:66px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;transition:.18s ease;margin:0}.jpos-production-team-package:hover{border-color:#93c5fd;background:#f8fbff}.jpos-production-team-package.is-selected{border-color:#60a5fa;background:#eff6ff;box-shadow:0 0 0 1px rgba(59,130,246,.08)}.jpos-production-team-package input{position:absolute;opacity:0;pointer-events:none}.jpos-production-team-checkmark{width:28px;height:28px;border:1px solid #cbd5e1;border-radius:8px;display:grid;place-items:center;flex:0 0 auto;color:transparent;background:#fff}.jpos-production-team-package.is-selected .jpos-production-team-checkmark{background:#2563eb;border-color:#2563eb;color:#fff}.jpos-production-team-package-copy{display:flex;flex-direction:column;min-width:0;gap:3px;flex:1}.jpos-production-team-package-copy strong{color:#0f172a;line-height:1.3}.jpos-production-team-package-copy small{color:#64748b;line-height:1.35;white-space:normal}.jpos-production-team-package .jpos-badge{flex:0 0 auto}
.jpos-production-team-savebar{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #e2e8f0;padding:14px 18px;background:#f8fafc;border-radius:0 0 12px 12px}.jpos-production-team-savebar>span{display:flex;align-items:center;gap:7px;color:#64748b}.jpos-production-team-missing{display:flex;gap:14px;align-items:flex-start;padding:16px 18px}.jpos-production-team-missing>div:first-child{display:flex;gap:10px;flex:1}.jpos-production-team-missing>div:first-child>i{font-size:22px;color:#d97706}.jpos-production-team-missing>div span{display:flex;flex-direction:column;gap:3px}.jpos-production-team-missing-list{display:flex;flex-wrap:wrap;gap:6px;max-width:42%}.jpos-production-team-missing-list>span{display:inline-flex!important;padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px}
.jpos-production-work-team{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:230px;max-width:46%}.jpos-production-work-team>label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#64748b;margin:0}.jpos-production-team-chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.jpos-production-team-chips>span{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:12px;font-weight:700}.jpos-production-team-empty{display:flex;align-items:flex-start;gap:8px;padding:8px 10px;border-radius:10px;background:#fff7ed;color:#9a3412;text-align:left}.jpos-production-team-empty>span{display:flex;flex-direction:column;gap:1px}.jpos-production-team-empty small{color:#9a3412;font-weight:400}
@media(max-width:1200px){.jpos-production-team-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.jpos-production-team-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.jpos-production-team-page,.jpos-production-page{font-size:16px}.jpos-production-team-principle{padding:14px}.jpos-production-team-filters{grid-template-columns:1fr;padding:14px}.jpos-production-team-filters label>span{font-size:14px}.jpos-production-team-filters .form-control{min-height:46px;font-size:16px}.jpos-production-team-items{grid-template-columns:1fr;padding:4px 14px 14px}.jpos-production-team-package{min-height:72px}.jpos-production-team-savebar{position:sticky;bottom:0;z-index:5;flex-direction:column;align-items:stretch;padding:12px 14px}.jpos-production-team-savebar .btn{width:100%;min-height:46px}.jpos-production-team-missing{flex-direction:column}.jpos-production-team-missing-list{max-width:100%}.jpos-production-work-head{align-items:flex-start!important}.jpos-production-work-team{align-items:flex-start;min-width:100%;max-width:100%}.jpos-production-team-chips{justify-content:flex-start}}

/* =====================================================================
   STEP 9.3.3M1.7.1 — Sidebar footer scroll safety
   Footer harus mengikuti akhir konten menu, bukan fixed overlay.
   ===================================================================== */
body.jpos-shell-body .jpos-sidebar{
  display:flex!important;
  flex-direction:column!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-bottom:14px!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
body.jpos-shell-body .jpos-sidebar-nav{
  flex:0 0 auto;
  width:100%;
}
body.jpos-shell-body .jpos-sidebar-foot{
  position:static!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  width:auto!important;
  flex:0 0 auto;
  margin:10px -12px -14px!important;
  padding:11px 18px calc(11px + env(safe-area-inset-bottom))!important;
}
@media (max-width:991px){
  body.jpos-shell-body .jpos-sidebar{
    padding-bottom:14px!important;
  }
  body.jpos-shell-body .jpos-sidebar-foot{
    width:auto!important;
    margin-top:auto!important;
  }
}


/* ============================================================
   STEP 9.3.3M1.8.1 — Tim Produksi canonical Paket
   Filter: User > Store > Sumber > Kategori > Subkategori (opsional).
   Klik Kategori langsung menampilkan semua Paket dalam kategori.
   ============================================================ */
.jpos-production-team-filters{grid-template-columns:repeat(5,minmax(0,1fr))}
.jpos-production-team-filters label>span small{font-weight:500;color:#94a3b8}
.jpos-production-team-items{display:block;padding:2px 18px 16px}
.jpos-production-team-subgroup{padding:0 0 12px}
.jpos-production-team-subgroup[hidden]{display:none!important}
.jpos-production-team-subgroup+.jpos-production-team-subgroup{padding-top:10px;border-top:1px solid #eef2f7}
.jpos-production-team-subgroup-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 2px 7px;color:#475569}
.jpos-production-team-subgroup-head strong{font-size:12px;text-transform:uppercase;letter-spacing:.035em;color:#334155}
.jpos-production-team-subgroup-head span{font-size:11px;color:#94a3b8}
.jpos-production-team-package-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.jpos-production-team-package{min-height:46px;padding:7px 9px;gap:8px;border-radius:9px}
.jpos-production-team-checkmark{width:21px;height:21px;border-radius:6px;font-size:10px}
.jpos-production-team-package-copy{gap:1px}
.jpos-production-team-package-copy strong{font-size:13px;line-height:1.22}
.jpos-production-team-package-copy small{font-size:10.5px;line-height:1.2}
.jpos-production-team-package .jpos-badge{font-size:10px;padding:3px 6px}
@media(max-width:1300px){.jpos-production-team-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.jpos-production-team-package-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:920px){.jpos-production-team-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-production-team-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.jpos-production-team-filters{grid-template-columns:1fr}.jpos-production-team-items{padding:2px 14px 14px}.jpos-production-team-package-grid{grid-template-columns:1fr}.jpos-production-team-package{min-height:50px;padding:9px 10px}.jpos-production-team-subgroup-head strong{font-size:14px}.jpos-production-team-subgroup-head span{font-size:13px}.jpos-production-team-package-copy strong{font-size:16px}.jpos-production-team-package-copy small{font-size:13px}.jpos-production-team-package .jpos-badge{font-size:12px}}

/* ============================================================
 * STEP 9.3.3M1.8 — Tugas & Deadline sebagai Production Work Queue
 * Desktop 14px / HP 16px. Satu row = satu pekerjaan produksi.
 * ============================================================ */
.jpos-production-page{font-size:14px}
.jpos-production-page .jpos-production-summary{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-bottom:10px;
}
.jpos-production-page .jpos-production-metric{
  min-height:72px;
  padding:10px 12px;
  gap:3px;
  box-shadow:none;
}
.jpos-production-page .jpos-production-metric>strong{font-size:1.25rem}
.jpos-production-page .jpos-production-metric>small{font-size:.69rem}
.jpos-production-workspace{overflow:hidden}
.jpos-production-list-head{align-items:center}
.jpos-production-list-head h3{margin-bottom:3px}
.jpos-production-list-head p{margin:0}
.jpos-production-kind-switch{
  display:flex;
  align-items:center;
  gap:4px;
  padding:3px;
  border:1px solid #dfe6ec;
  border-radius:10px;
  background:#f6f8fa;
}
.jpos-production-kind-switch button,
.jpos-production-status-switch button{
  border:0;
  background:transparent;
  border-radius:7px;
  min-height:34px;
  padding:0 11px;
  font-size:.76rem;
  font-weight:800;
  color:#65798a;
  cursor:pointer;
  white-space:nowrap;
}
.jpos-production-kind-switch button{display:inline-flex;align-items:center;gap:6px}
.jpos-production-kind-switch button.active,
.jpos-production-status-switch button.active{
  background:#fff;
  color:#173c58;
  box-shadow:0 1px 5px rgba(27,55,76,.10);
}
.jpos-production-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  background:#fbfcfd;
  border-bottom:1px solid var(--jpos-line);
}
.jpos-production-status-switch{
  display:flex;
  align-items:center;
  gap:3px;
  padding:3px;
  border:1px solid #e0e7ed;
  border-radius:10px;
  background:#f5f8fa;
  overflow:auto;
  scrollbar-width:none;
}
.jpos-production-status-switch::-webkit-scrollbar{display:none}
.jpos-production-status-switch[hidden]{display:none!important}
.jpos-production-queue-head,
.jpos-production-queue-row{
  display:grid;
  grid-template-columns:minmax(330px,2fr) minmax(185px,1fr) minmax(160px,.85fr) 115px;
  gap:14px;
  align-items:center;
}
.jpos-production-queue-head{
  padding:8px 14px;
  border-bottom:1px solid #e8edf1;
  background:#f8fafb;
  color:#667b8c;
  font-size:.68rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.jpos-production-queue-head.promise-head{grid-template-columns:minmax(360px,1.7fr) minmax(210px,.8fr) 115px}
.jpos-production-queue-row{
  position:relative;
  min-height:78px;
  padding:11px 14px;
  border-bottom:1px solid #edf1f4;
  background:#fff;
}
.jpos-production-queue-row:last-child{border-bottom:0}
.jpos-production-queue-row:hover{background:#fcfdfe}
.jpos-production-queue-row.is-overdue:before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:#cf4552;
}
.jpos-production-queue-row.is-unassigned{background:#fffdf8}
.jpos-production-service,
.jpos-production-status-cell,
.jpos-production-deadline-cell{min-width:0}
.jpos-production-service{display:flex;flex-direction:column;gap:5px}
.jpos-production-service>strong{
  color:#172d42;
  font-size:.9rem;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.jpos-production-path{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px;
  color:#5f7384;
  font-size:.75rem;
  line-height:1.45;
}
.jpos-production-path i{font-style:normal;color:#9aabb8}
.jpos-production-path b{color:#22394e;font-weight:800}
.jpos-production-status-cell{display:flex;flex-direction:column;gap:4px}
.jpos-production-status-cell>div{display:flex;align-items:center;gap:7px;min-width:0}
.jpos-production-status-cell strong{font-size:.82rem;color:#263b4f;overflow-wrap:anywhere}
.jpos-production-status-cell small,
.jpos-production-deadline-cell small{font-size:.7rem;color:#718493;line-height:1.35}
.jpos-production-status-dot{
  width:10px;height:10px;border-radius:50%;flex:0 0 10px;
  background:#b7c1c9;
  box-shadow:0 0 0 3px rgba(183,193,201,.16);
}
.jpos-production-status-dot.tone-working{background:#ee7a42;box-shadow:0 0 0 3px rgba(238,122,66,.14)}
.jpos-production-status-dot.tone-hold{background:#d39a28;box-shadow:0 0 0 3px rgba(211,154,40,.14)}
.jpos-production-status-dot.tone-done{background:#2c936f;box-shadow:0 0 0 3px rgba(44,147,111,.14)}
.jpos-production-status-dot.tone-not-started{background:#a49bc7;box-shadow:0 0 0 3px rgba(164,155,199,.15)}
.jpos-production-unassigned-note{color:#a36016!important;font-weight:750}
.jpos-production-deadline-cell{display:flex;flex-direction:column;gap:4px}
.jpos-production-deadline-cell>strong{
  width:max-content;
  max-width:100%;
  padding:4px 7px;
  border-radius:7px;
  background:#f1f5f7;
  color:#3f596c;
  font-size:.76rem;
  line-height:1.2;
  font-weight:900;
}
.jpos-production-deadline-cell>strong.tone-danger{background:#fff0f0;color:#b43a45}
.jpos-production-deadline-cell>strong.tone-warning{background:#fff7e4;color:#936414}
.jpos-production-deadline-cell>strong.tone-done{background:#edf8f3;color:#257657}
.jpos-production-deadline-cell>strong.tone-muted{color:#7b8b98}
/* M1.8.10 — satu cell memperlihatkan Target Tahap + Deadline Client agar sama dengan acuan Daily Digest. */
.jpos-production-deadline-cell.dual-deadline{gap:7px}
.jpos-production-deadline-part{
  display:grid;
  grid-template-columns:minmax(86px,auto) minmax(0,1fr);
  align-items:center;
  gap:3px 7px;
  min-width:0;
}
.jpos-production-deadline-part + .jpos-production-deadline-part{
  padding-top:7px;
  border-top:1px dashed #dfe7ed;
}
.jpos-production-deadline-part>span{
  grid-column:1/-1;
  color:#7b8d9b;
  font-size:.62rem;
  font-weight:900;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.jpos-production-deadline-part>strong{
  width:max-content;
  max-width:100%;
  padding:4px 7px;
  border-radius:7px;
  background:#f1f5f7;
  color:#3f596c;
  font-size:.72rem;
  line-height:1.2;
  font-weight:900;
  white-space:normal;
}
.jpos-production-deadline-part>strong.tone-danger{background:#fff0f0;color:#b43a45}
.jpos-production-deadline-part>strong.tone-warning{background:#fff7e4;color:#936414}
.jpos-production-deadline-part>strong.tone-done{background:#edf8f3;color:#257657}
.jpos-production-deadline-part>strong.tone-muted{color:#7b8b98}
.jpos-production-deadline-part>small{min-width:0;overflow-wrap:anywhere}
.jpos-production-action{display:flex;justify-content:flex-end}
.jpos-production-action .btn{min-width:98px;justify-content:center}
.jpos-production-queue-row.promise{grid-template-columns:minmax(360px,1.7fr) minmax(210px,.8fr) 115px}
.jpos-production-detail-modal .jpos-production-work-item.is-focus{
  border-color:#6ea9d1;
  box-shadow:0 0 0 2px rgba(71,143,191,.12),0 6px 20px rgba(21,50,73,.06);
}

@media(max-width:1100px){
  .jpos-production-toolbar{grid-template-columns:1fr}
  .jpos-production-status-switch{justify-self:start;max-width:100%}
  .jpos-production-queue-head,
  .jpos-production-queue-row{grid-template-columns:minmax(280px,1.6fr) minmax(170px,.9fr) minmax(150px,.75fr) 105px;gap:10px}
}
@media(max-width:820px){
  .jpos-production-page .jpos-production-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .jpos-production-queue-head{display:none}
  .jpos-production-queue-row,
  .jpos-production-queue-row.promise{
    grid-template-columns:minmax(0,1fr) auto;
    gap:9px 12px;
    padding:12px;
  }
  .jpos-production-service{grid-column:1/-1}
  .jpos-production-status-cell{grid-column:1}
  .jpos-production-deadline-cell{grid-column:1}
  .jpos-production-action{grid-column:2;grid-row:2/4;align-self:center}
}
@media(max-width:767px){
  .jpos-production-page{font-size:16px}
  .jpos-production-page .jpos-pagehead{gap:10px}
  .jpos-production-page .jpos-production-summary{grid-template-columns:1fr 1fr 1fr;gap:6px}
  .jpos-production-page .jpos-production-metric{min-height:72px;padding:9px}
  .jpos-production-page .jpos-production-metric>span{font-size:.7rem}
  .jpos-production-page .jpos-production-metric>strong{font-size:1.22rem}
  .jpos-production-page .jpos-production-metric>small{font-size:.69rem}
  .jpos-production-list-head{display:grid;gap:10px}
  .jpos-production-kind-switch{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .jpos-production-kind-switch button{min-height:42px;justify-content:center;font-size:.9rem}
  .jpos-production-toolbar{padding:10px;gap:8px}
  .jpos-production-toolbar .form-control{min-height:46px;font-size:16px}
  .jpos-production-status-switch{width:100%;justify-self:stretch}
  .jpos-production-status-switch button{min-height:40px;padding:0 10px;font-size:.83rem}
  .jpos-production-service>strong{font-size:1rem}
  .jpos-production-path{font-size:.86rem;gap:3px 5px}
  .jpos-production-status-cell strong{font-size:.92rem}
  .jpos-production-status-cell small,.jpos-production-deadline-cell small{font-size:.82rem}
  .jpos-production-deadline-cell>strong{font-size:.86rem;padding:5px 8px}
  .jpos-production-deadline-part>span{font-size:.72rem}
  .jpos-production-deadline-part>strong{font-size:.84rem;padding:5px 8px}
  .jpos-production-action .btn{min-width:110px;min-height:44px;font-size:.9rem}
}
@media(max-width:520px){
  .jpos-production-page .jpos-production-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .jpos-production-page .jpos-production-metric>small{display:none}
  .jpos-production-page .jpos-production-metric{min-height:61px}
  .jpos-production-queue-row,
  .jpos-production-queue-row.promise{grid-template-columns:1fr;padding:12px 11px}
  .jpos-production-service,.jpos-production-status-cell,.jpos-production-deadline-cell,.jpos-production-action{grid-column:1!important;grid-row:auto!important}
  .jpos-production-action{justify-content:stretch;margin-top:2px}
  .jpos-production-action .btn{width:100%}
}

/* ============================================================
   STEP 9.3.3M1.8.3 — Pengguna & Akses Compact Disclosure UX
   Visual/interaction polish only. RBAC/API semantics unchanged.
   ============================================================ */
.jpos-access-page{font-size:14px}
.jpos-access-pagehead{margin-bottom:0}
.jpos-access-pagehead .jpos-pagehead-copy p{max-width:720px}
.jpos-access-summary{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:58px;
  padding:8px 10px;
  border:1px solid #dde6ee;
  border-radius:12px;
  background:#fff;
  box-shadow:0 6px 22px rgba(29,53,78,.035);
}
.jpos-access-summary-main{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:220px;
  padding:3px 12px 3px 4px;
  margin-right:auto;
}
.jpos-access-summary-main>span:last-child{display:grid;gap:1px}
.jpos-access-summary-main strong{font-size:13px;line-height:1.2;color:#20364d}
.jpos-access-summary-main small{font-size:10px;line-height:1.3;color:#7a8a9c}
.jpos-access-summary-icon{
  width:34px;height:34px;border-radius:10px;display:grid;place-items:center;
  background:#edf7f8;color:#1096a3;font-size:17px;flex:0 0 auto;
}
.jpos-access-summary-chip{
  min-height:36px;
  display:flex;align-items:center;gap:6px;
  padding:6px 10px;
  border:1px solid #e3eaf0;border-radius:9px;background:#f9fbfc;
  color:#53667a;font-size:11px;white-space:nowrap;
}
.jpos-access-summary-chip b{font-size:13px;color:#263b50}
.jpos-access-summary-chip.is-safe{color:#087c64;background:#f1fbf7;border-color:#d6eee5}
.jpos-access-summary-chip.is-safe i{font-size:14px}
.jpos-access-card-head{gap:14px}
.jpos-access-head-tools{display:flex;align-items:center;justify-content:flex-end;margin-left:auto;min-width:300px}
.jpos-access-search{
  width:min(360px,100%);height:36px;display:flex;align-items:center;gap:7px;
  margin:0!important;padding:0 10px;border:1px solid #dce5ed;border-radius:9px;background:#fff;color:#75869a;
}
.jpos-access-search input{
  width:100%;height:34px;min-height:0!important;padding:0!important;border:0!important;outline:0!important;
  box-shadow:none!important;background:transparent!important;font-size:12px!important;color:#25384b;
}
.jpos-access-table-wrap{overflow-x:auto}
.jpos-access-user-table{min-width:760px;margin-bottom:0}
.jpos-access-user-table th{font-size:10px;letter-spacing:.03em;color:#66788b;padding-top:9px;padding-bottom:9px}
.jpos-access-user-table td{padding-top:9px;padding-bottom:9px;vertical-align:middle}
.jpos-access-user-table td:first-child{min-width:190px}
.jpos-access-user-table td:nth-child(2){min-width:150px}
.jpos-access-user-table td:nth-child(3){min-width:130px}
.jpos-access-user-row .jpos-sub{font-size:10px;margin-top:2px}
.jpos-access-role-badges{display:flex;flex-wrap:wrap;gap:3px}
.jpos-access-row-actions{justify-content:flex-end;white-space:nowrap}
.jpos-access-row-actions .btn{min-height:30px}
.jpos-access-user-detail-row>td{padding:0!important;background:#f8fafc!important;border-top:0!important}
.jpos-access-user-detail{
  display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) auto;gap:8px;
  padding:10px 12px 11px 24px;border-top:1px dashed #dce5ed;border-bottom:1px solid #e7edf2;
}
.jpos-access-user-detail>div{display:grid;gap:2px;align-content:start;min-width:0}
.jpos-access-user-detail span{font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:#8795a5}
.jpos-access-user-detail strong{font-size:11px;line-height:1.35;color:#405267;overflow-wrap:anywhere}
.jpos-access-user-detail .is-warning strong{color:#a76800}
.jpos-access-user-detail-actions{display:flex!important;align-items:center;justify-content:flex-end}
.jpos-access-disclosure{padding:0!important;overflow:hidden}
.jpos-access-disclosure>summary,.jpos-access-technical>summary{list-style:none;cursor:pointer}
.jpos-access-disclosure>summary::-webkit-details-marker,.jpos-access-technical>summary::-webkit-details-marker,.jpos-permission-module-disclosure>summary::-webkit-details-marker{display:none}
.jpos-access-disclosure-summary{
  min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:10px 14px;user-select:none;
}
.jpos-access-disclosure-summary:hover{background:#fafcfd}
.jpos-access-disclosure-copy{display:flex;align-items:center;gap:10px;min-width:0}
.jpos-access-disclosure-copy>span:last-child{display:grid;gap:2px;min-width:0}
.jpos-access-disclosure-copy strong{font-size:13px;color:#24384d}
.jpos-access-disclosure-copy small{font-size:10px;color:#7b8a9c;white-space:normal}
.jpos-access-disclosure-icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#f0f5f9;color:#516d88;font-size:16px;flex:0 0 auto}
.jpos-access-disclosure-action{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:#567087;white-space:nowrap}
.jpos-access-disclosure-action .is-open{display:none}
.jpos-access-disclosure[open] .jpos-access-disclosure-action .is-closed{display:none}
.jpos-access-disclosure[open] .jpos-access-disclosure-action .is-open{display:inline}
.jpos-access-disclosure[open] .jpos-access-disclosure-action i{transform:rotate(180deg)}
.jpos-access-disclosure-action i,.jpos-access-technical>summary>i:last-child,.jpos-permission-module-head i{transition:transform .18s ease}
.jpos-access-disclosure-body{border-top:1px solid #e5ebf0;padding:12px 14px 14px;background:#fbfcfd}
.jpos-access-role-head,.jpos-access-permission-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:8px}
.jpos-access-role-head h3,.jpos-access-permission-head h3{font-size:14px;margin:1px 0 2px}
.jpos-access-role-head p,.jpos-access-permission-head p{font-size:10px;margin:0;color:#7a8a9b}
.jpos-access-role-table-wrap{border:1px solid #e2e9ef;border-radius:9px;background:#fff;margin-bottom:13px}
.jpos-access-role-table{min-width:540px;margin-bottom:0}
.jpos-access-role-table th,.jpos-access-role-table td{padding:8px 10px}
.jpos-access-role-table .jpos-sub{font-size:9px}
.jpos-permission-catalog-compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.jpos-permission-module-disclosure{overflow:hidden}
.jpos-permission-module-disclosure .jpos-permission-module-head{
  min-height:38px;cursor:pointer;border-bottom:0;padding:8px 10px;
}
.jpos-permission-module-disclosure .jpos-permission-module-head:hover{background:#f2f6f9}
.jpos-permission-module-disclosure .jpos-permission-module-head span{display:flex;align-items:center;gap:5px}
.jpos-permission-module-disclosure[open] .jpos-permission-module-head{border-bottom:1px solid #e6edf3}
.jpos-permission-module-disclosure[open] .jpos-permission-module-head i{transform:rotate(180deg)}
.jpos-permission-module-body{background:#fff}
.jpos-permission-catalog-compact .jpos-permission-row{padding:7px 9px;gap:3px}
.jpos-permission-catalog-compact .jpos-permission-row strong{font-size:11px}
.jpos-permission-catalog-compact .jpos-permission-row code{font-size:9px}
.jpos-permission-catalog-compact .jpos-permission-row>span{font-size:9px}
.jpos-access-technical{border:1px solid #e2e9ef;border-radius:10px;background:#f8fafc;overflow:hidden}
.jpos-access-technical>summary{min-height:46px;display:flex;align-items:center;gap:9px;padding:8px 12px;color:#53697f}
.jpos-access-technical>summary>i:first-child{font-size:15px;color:#71869a}
.jpos-access-technical>summary>span{display:grid;gap:1px;flex:1}
.jpos-access-technical>summary strong{font-size:11px;color:#42586e}
.jpos-access-technical>summary small{font-size:9px;color:#8795a5}
.jpos-access-technical[open]>summary>i:last-child{transform:rotate(180deg)}
.jpos-access-technical-body{padding:0 12px 12px;border-top:1px solid #e4eaf0}
.jpos-access-technical-body .jpos-info-line{margin:10px 0 8px}

@media(max-width:1199px){
  .jpos-permission-catalog-compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-access-user-detail{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-access-user-detail-actions{justify-content:flex-start}
}
@media(max-width:767px){
  .jpos-access-page{font-size:16px}
  .jpos-access-pagehead .jpos-pagehead-copy p{font-size:14px}
  .jpos-access-summary{align-items:stretch;flex-wrap:wrap;padding:8px}
  .jpos-access-summary-main{width:100%;margin-right:0;padding-right:4px}
  .jpos-access-summary-main strong{font-size:15px}
  .jpos-access-summary-main small{font-size:12px}
  .jpos-access-summary-chip{flex:1 1 auto;justify-content:center;font-size:12px}
  .jpos-access-card-head{align-items:stretch}
  .jpos-access-head-tools{width:100%;min-width:0;margin-left:0}
  .jpos-access-search{width:100%;height:42px}
  .jpos-access-search input{height:40px;font-size:16px!important}
  .jpos-access-user-table{min-width:0;width:100%}
  .jpos-access-user-table thead{display:none}
  .jpos-access-user-table tbody,.jpos-access-user-table tr,.jpos-access-user-table td{display:block;width:100%}
  .jpos-access-user-row{padding:10px 11px;border-bottom:1px solid #e7edf2}
  .jpos-access-user-row td{display:grid!important;grid-template-columns:92px minmax(0,1fr);gap:8px;padding:4px 0!important;border:0!important;min-width:0!important;font-size:14px}
  .jpos-access-user-row td:before{content:attr(data-label);font-size:11px;font-weight:700;color:#7b8b9d;text-transform:uppercase;letter-spacing:.03em}
  .jpos-access-user-row td:first-child strong{font-size:16px}
  .jpos-access-user-row .jpos-sub{font-size:12px}
  .jpos-access-row-actions{justify-content:flex-start}
  .jpos-access-row-actions .btn{font-size:14px;min-height:36px}
  .jpos-access-user-detail-row td{display:block!important;padding:0!important}
  .jpos-access-user-detail{grid-template-columns:1fr;padding:10px 12px 12px 22px}
  .jpos-access-user-detail span{font-size:10px}
  .jpos-access-user-detail strong{font-size:14px}
  .jpos-access-disclosure-summary{min-height:68px;padding:10px 12px}
  .jpos-access-disclosure-copy strong{font-size:15px}
  .jpos-access-disclosure-copy small{font-size:12px}
  .jpos-access-disclosure-action{font-size:13px}
  .jpos-access-disclosure-body{padding:12px 10px}
  .jpos-access-role-head,.jpos-access-permission-head{align-items:flex-start;flex-direction:column}
  .jpos-access-role-head h3,.jpos-access-permission-head h3{font-size:16px}
  .jpos-access-role-head p,.jpos-access-permission-head p{font-size:12px}
  .jpos-permission-catalog-compact{grid-template-columns:1fr}
  .jpos-permission-module-disclosure .jpos-permission-module-head{min-height:44px}
  .jpos-permission-module-disclosure .jpos-permission-module-head strong{font-size:13px}
  .jpos-permission-module-disclosure .jpos-permission-module-head span{font-size:12px}
  .jpos-permission-catalog-compact .jpos-permission-row strong{font-size:14px}
  .jpos-permission-catalog-compact .jpos-permission-row code,.jpos-permission-catalog-compact .jpos-permission-row>span{font-size:11px}
  .jpos-access-technical>summary{min-height:54px}
  .jpos-access-technical>summary strong{font-size:14px}
  .jpos-access-technical>summary small{font-size:12px}
}

/* =====================================================================
   STEP 9.3.3M1.8.5 — Production Hold UX / strict active-stage actions
   - Hanya tahap aktif yang mempunyai aksi.
   - Future stage terlihat sebagai locked/waiting, bukan actionable.
   - Tahan tidak pernah menghentikan deadline.
   ===================================================================== */
.jpos-production-detail-modal .jpos-production-stage.is-current-stage{
  border-radius:10px;
  background:#fbfdff;
}
.jpos-production-detail-modal .jpos-production-stage.is-locked-stage:not(.is-done){
  opacity:.72;
}
.jpos-production-current-stage{
  display:inline-flex;
  align-items:center;
  padding:2px 6px;
  border-radius:999px;
  background:#e7f5ff;
  color:#0969a9;
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.04em;
}
.jpos-production-stage-blocked{
  display:flex!important;
  align-items:center;
  gap:5px;
  color:#7b8b97!important;
}
.jpos-production-hold-note{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin-top:4px;
  padding:7px 9px;
  border:1px solid #f1d7b6;
  border-radius:9px;
  background:#fff8ed;
  color:#8a4f12;
}
.jpos-production-hold-note strong{
  color:#8a4f12!important;
  font-size:.69rem!important;
}
.jpos-production-hold-note span{
  color:#8a6240;
  font-size:.64rem;
  line-height:1.35;
}
.jpos-production-stage.is-hold .jpos-production-stage-status{
  background:#fff0df;
  color:#9b5715;
}
@media(max-width:767px){
  .jpos-production-current-stage{font-size:.68rem}
  .jpos-production-hold-note strong{font-size:.82rem!important}
  .jpos-production-hold-note span{font-size:.76rem}
}

/* =====================================================================
   STEP 9.3.3M1.8.6 — Production Stage Delegation / automatic handoff
   - Tim Produksi = assignment per Paket.
   - Setiap tahap = Tim Produksi Paket atau User JPOS Tertentu.
   - Tugas/alert mengikuti pelaksana tahap aktif.
   ===================================================================== */
.jpos-production-stage-delegation-guide{
  display:flex;align-items:flex-start;gap:8px;padding:8px 11px;
  border-bottom:1px solid #e7edf2;background:#f8fbfd;color:#607486;
  font-size:.72rem;line-height:1.45;
}
.jpos-production-stage-delegation-guide i{margin-top:1px;color:#27829b;font-size:1rem}
.jpos-production-stage-edit-row{display:block!important;padding:0!important}
.jpos-production-stage-edit-main{
  display:grid;grid-template-columns:minmax(180px,1fr) 115px 115px 114px;
  gap:7px;align-items:end;padding:9px 10px;
}
.jpos-production-stage-delegation{
  display:grid;grid-template-columns:260px minmax(0,1fr);gap:9px 12px;
  padding:8px 10px 10px;border-top:1px dashed #e5ebef;background:#fbfcfd;
}
.jpos-production-stage-executor-mode{margin:0}
.jpos-production-stage-executor-mode>span,
.jpos-production-stage-executor-users-head strong{display:block;font-size:.67rem;text-transform:uppercase;color:#607589;font-weight:900;margin-bottom:4px}
.jpos-production-stage-executor-hint{
  display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 9px;
  border:1px solid #dce9f1;border-radius:8px;background:#f3f9fc;color:#5e7487;font-size:.7rem;
}
.jpos-production-stage-executor-hint[hidden],.jpos-production-stage-executor-users[hidden]{display:none!important}
.jpos-production-stage-executor-users{grid-column:1/-1;border:1px solid #dde6ec;border-radius:9px;background:#fff;overflow:hidden}
.jpos-production-stage-executor-users-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;background:#f7fafc;border-bottom:1px solid #e7edf2}
.jpos-production-stage-executor-users-head strong{margin:0;color:#435b70}
.jpos-production-stage-executor-users-head small{font-size:.67rem;color:#7a8c9c}
.jpos-production-executor-user-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.jpos-production-executor-user{
  display:flex!important;align-items:center;gap:8px;margin:0!important;padding:7px 9px;
  border-right:1px solid #eef2f5;border-bottom:1px solid #eef2f5;cursor:pointer;min-width:0;
}
.jpos-production-executor-user input{width:16px;height:16px;flex:0 0 auto;margin:0}
.jpos-production-executor-user>span{display:flex;flex-direction:column;min-width:0}
.jpos-production-executor-user b{font-size:.72rem;color:#273d50;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-production-executor-user small{font-size:.62rem!important;color:#7b8d9d!important;text-transform:none!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-production-executor-empty{padding:9px;color:#8a5c17;background:#fff9ed;font-size:.7rem}
.jpos-production-stage-executor{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:3px;
  font-size:.66rem;color:#63798b;
}
.jpos-production-stage-executor>span{font-weight:800;color:#718495}
.jpos-production-stage-executor>strong{font-size:.68rem!important;color:#2f536d!important}
.jpos-production-stage-executor.is-empty>strong{color:#a46118!important}
.jpos-production-executor-inline{display:flex!important;align-items:center;gap:4px;color:#60788b!important}

@media(max-width:1199px){
  .jpos-production-stage-edit-main{grid-template-columns:minmax(0,1fr) 105px 105px}
  .jpos-production-stage-edit-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .jpos-production-stage-delegation{grid-template-columns:230px minmax(0,1fr)}
  .jpos-production-executor-user-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
  .jpos-production-rules-page,.jpos-production-page,.jpos-production-team-page{font-size:16px}
  .jpos-production-stage-edit-main{grid-template-columns:1fr 1fr;padding:10px}
  .jpos-production-stage-edit-main>.js-pr-stage-name{grid-column:1/-1;font-size:16px!important}
  .jpos-production-stage-edit-main input,.jpos-production-stage-edit-main select,.jpos-production-stage-executor-mode select{font-size:16px!important;min-height:42px}
  .jpos-production-stage-delegation{grid-template-columns:1fr;padding:9px 10px}
  .jpos-production-stage-executor-users{grid-column:auto}
  .jpos-production-executor-user-grid{grid-template-columns:1fr}
  .jpos-production-stage-delegation-guide{font-size:13px}
  .jpos-production-stage-executor-hint,.jpos-production-executor-empty{font-size:13px}
  .jpos-production-stage-executor-users-head{align-items:flex-start;flex-direction:column}
  .jpos-production-stage-executor-users-head strong{font-size:12px}
  .jpos-production-stage-executor-users-head small{font-size:11px}
  .jpos-production-executor-user{padding:10px}
  .jpos-production-executor-user b{font-size:14px}.jpos-production-executor-user small{font-size:11px!important}
  .jpos-production-stage-executor{font-size:12px}.jpos-production-stage-executor>strong{font-size:12px!important}
}
\n\n/* ============================================================\n   STEP 9.3.3M1.8.7 — Aturan Pengerjaan Responsive Table + Fixed H-Scroll\n   Tetap format table pada HP. Kolom hemat + Aksi sticky kanan.\n   ============================================================ */\n.jpos-production-rule-table-shell{position:relative;min-width:0}\n.jpos-production-rule-table-wrap{overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}\n.jpos-production-rule-table{width:100%!important;min-width:860px!important;table-layout:fixed!important;white-space:normal!important}\n.jpos-production-rule-table thead{display:table-header-group!important}\n.jpos-production-rule-table tbody{display:table-row-group!important}\n.jpos-production-rule-table tr{display:table-row!important;width:auto!important;padding:0!important}\n.jpos-production-rule-table th,.jpos-production-rule-table td{display:table-cell!important;width:auto!important;white-space:normal!important;vertical-align:middle!important;padding:10px 11px!important}\n.jpos-production-rule-table td:before{display:none!important;content:none!important}\n.jpos-production-rule-table th:nth-child(1),.jpos-production-rule-table td:nth-child(1){width:180px!important;min-width:180px!important}\n.jpos-production-rule-table th:nth-child(2),.jpos-production-rule-table td:nth-child(2){width:auto!important;min-width:290px!important}\n.jpos-production-rule-table th:nth-child(3),.jpos-production-rule-table td:nth-child(3){width:230px!important;min-width:230px!important}\n.jpos-production-rule-table th:nth-child(4),.jpos-production-rule-table td:nth-child(4){width:125px!important;min-width:125px!important}\n.jpos-production-rule-table th:nth-child(5),.jpos-production-rule-table td:nth-child(5){width:96px!important;min-width:96px!important}\n.jpos-production-rule-table .jpos-production-rule-classification{line-height:1.35;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}\n.jpos-production-rule-coverage{display:block;margin-top:4px;color:#607486;font-size:.73rem;line-height:1.3}\n.jpos-production-rule-work-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px}\n.jpos-production-rule-work-summary>span{min-width:0}\n.jpos-production-rule-work-summary>span+span{padding-left:9px;border-left:1px solid #e7edf1}\n.jpos-production-rule-status-stack{display:flex;flex-wrap:wrap;gap:4px}\n.jpos-production-rule-action-col{position:sticky!important;right:0!important;z-index:4;background:#fff!important;box-shadow:-9px 0 12px -12px rgba(30,51,70,.55)}\n.jpos-production-rule-table thead .jpos-production-rule-action-col{z-index:6;background:#fafbfc!important}\n.jpos-production-rule-table tbody tr:hover .jpos-production-rule-action-col{background:#fbfcfd!important}\n.jpos-production-rule-action-col .jpos-row-actions{justify-content:center}\n.jpos-production-rule-action-col .btn{min-width:72px;justify-content:center}\n.jpos-production-rule-fixed-scroll{position:fixed;bottom:0;height:18px;overflow-x:auto;overflow-y:hidden;z-index:1100;background:rgba(247,250,252,.97);border:1px solid #d9e2e8;border-bottom:0;border-radius:8px 8px 0 0;box-shadow:0 -5px 16px rgba(26,46,63,.09);scrollbar-color:#718798 #e8eef2;scrollbar-width:auto}\n.jpos-production-rule-fixed-scroll[hidden]{display:none!important}\n.jpos-production-rule-fixed-scroll-inner{height:1px;min-width:100%}\n.jpos-production-rule-fixed-scroll::-webkit-scrollbar{height:14px}\n.jpos-production-rule-fixed-scroll::-webkit-scrollbar-track{background:#e8eef2;border-radius:7px}\n.jpos-production-rule-fixed-scroll::-webkit-scrollbar-thumb{background:#718798;border:3px solid #e8eef2;border-radius:999px}\n.jpos-production-rule-fixed-scroll::-webkit-scrollbar-thumb:hover{background:#526b7f}\n@media(max-width:1100px){\n  .jpos-production-rule-table{min-width:820px!important}\n  .jpos-production-rule-table th:nth-child(1),.jpos-production-rule-table td:nth-child(1){width:160px!important;min-width:160px!important}\n  .jpos-production-rule-table th:nth-child(2),.jpos-production-rule-table td:nth-child(2){min-width:270px!important}\n  .jpos-production-rule-table th:nth-child(3),.jpos-production-rule-table td:nth-child(3){width:215px!important;min-width:215px!important}\n}\n@media(max-width:991px){\n  .jpos-production-rule-table{font-size:14px!important;min-width:790px!important}\n  .jpos-production-rule-table th,.jpos-production-rule-table td{padding:9px 10px!important}\n  .jpos-production-rule-action-col .btn{min-height:40px!important}\n}\n@media(max-width:600px){\n  .jpos-production-rules-page{font-size:16px}\n  .jpos-production-rule-table{font-size:14px!important;min-width:760px!important}\n  .jpos-production-rule-table th:nth-child(1),.jpos-production-rule-table td:nth-child(1){width:145px!important;min-width:145px!important}\n  .jpos-production-rule-table th:nth-child(2),.jpos-production-rule-table td:nth-child(2){min-width:250px!important}\n  .jpos-production-rule-table th:nth-child(3),.jpos-production-rule-table td:nth-child(3){width:200px!important;min-width:200px!important}\n  .jpos-production-rule-table th:nth-child(4),.jpos-production-rule-table td:nth-child(4){width:110px!important;min-width:110px!important}\n  .jpos-production-rule-table th:nth-child(5),.jpos-production-rule-table td:nth-child(5){width:88px!important;min-width:88px!important}\n  .jpos-production-rule-work-summary{grid-template-columns:1fr;gap:4px}\n  .jpos-production-rule-work-summary>span+span{padding-left:0;border-left:0}\n  .jpos-production-rule-action-col .btn{min-width:66px!important;padding:0 9px!important}\n  .jpos-production-rule-fixed-scroll{height:20px;padding-bottom:env(safe-area-inset-bottom);box-sizing:content-box}\n}\n
/* =====================================================================
   STEP 9.3.3M1.8.11 — Production Readiness Gate / Dependency Pause
   - Dependency client/admin bukan keterlambatan tim produksi.
   - Gate hanya menahan stage/work item terkait.
   - Desktop 14px, mobile 16px; action tetap touch friendly.
   ===================================================================== */
.jpos-production-page .jpos-production-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.jpos-production-metric.tone-waiting{background:#f7f5ff;border-color:#ded8f2}
.jpos-production-metric.tone-waiting>span,.jpos-production-metric.tone-waiting>strong{color:#6558a6}
.jpos-production-status-dot.tone-waiting{background:#8b7bc8;box-shadow:0 0 0 4px rgba(139,123,200,.12)}
.jpos-production-deadline-cell strong.tone-waiting{background:#f0edfb;color:#6657a6;border-color:#ddd6f2}
.jpos-production-queue-row.is-waiting-confirmation{background:#fbfaff}
.jpos-production-queue-row.is-waiting-confirmation:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#8b7bc8}
.jpos-production-queue-row{position:relative}
.jpos-production-baseline-date{color:#8a98a5!important;font-style:italic}

.jpos-production-readiness-card{
  display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:flex-start;
  margin-top:7px;padding:9px 10px;border:1px solid #ddd8f0;border-radius:10px;background:#f8f6ff;
}
.jpos-production-readiness-icon{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:#e9e4fa;color:#6758a7;font-size:1rem}
.jpos-production-readiness-card>div:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.jpos-production-readiness-card span{font-size:14px;font-weight:900;letter-spacing:.04em;color:#786ca8}
.jpos-production-readiness-card strong{font-size:14px!important;color:#413774!important}
.jpos-production-readiness-card small{font-size:14px!important;color:#6e6884!important;line-height:1.4}
.jpos-production-readiness-card.is-ready{border-color:#cfe5d9;background:#f4fbf7}
.jpos-production-readiness-card.is-ready .jpos-production-readiness-icon{background:#dff3e7;color:#28754b}
.jpos-production-readiness-card.is-ready span,.jpos-production-readiness-card.is-ready strong{color:#28754b!important}
.jpos-production-stage.is-readiness-waiting .jpos-production-stage-marker{background:#eeeafb;color:#6758a7}
.jpos-production-stage.is-readiness-waiting .jpos-production-stage-status{background:#eeeafb;color:#6758a7}

.jpos-production-stage-gate{padding:9px 10px 11px;border-top:1px dashed #ded8eb;background:#fbfaff}
.jpos-production-stage-gate-toggle{display:flex!important;align-items:flex-start;gap:9px;margin:0!important;cursor:pointer}
.jpos-production-stage-gate-toggle input{width:18px;height:18px;flex:0 0 auto;margin:2px 0 0}
.jpos-production-stage-gate-toggle>span{display:flex;flex-direction:column;gap:2px}
.jpos-production-stage-gate-toggle b{font-size:14px;color:#443b6d}
.jpos-production-stage-gate-toggle small{font-size:14px!important;line-height:1.4;color:#776f8d!important;text-transform:none!important;font-weight:500!important;margin:0!important}
.jpos-production-stage-gate-fields{display:grid;grid-template-columns:240px minmax(0,1fr);gap:9px;margin:9px 0 0 27px;padding:9px;border:1px solid #e1dcef;border-radius:9px;background:#fff}
.jpos-production-stage-gate-fields[hidden]{display:none!important}
.jpos-production-stage-gate-fields label{margin:0!important}
.jpos-production-stage-gate-fields label>span{display:block;font-size:14px;text-transform:uppercase;color:#6d638f;font-weight:900;margin-bottom:4px}
.jpos-production-stage-gate-fields small{display:block;margin-top:3px;font-size:14px;color:#85809a}
.jpos-readiness-fire{display:flex;flex-direction:column;gap:5px;padding:10px;border:1px solid #ddd6f2;border-radius:10px;background:#f8f6ff;margin-bottom:10px}
.jpos-readiness-fire b{color:#514586}.jpos-readiness-fire span{font-size:14px;line-height:1.45;color:#625d74}

@media(max-width:1100px){
  .jpos-production-page .jpos-production-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-production-stage-gate-fields{grid-template-columns:1fr}
}
@media(max-width:767px){
  .jpos-production-page,.jpos-production-rules-page{font-size:16px}
  .jpos-production-page .jpos-production-summary{grid-template-columns:1fr 1fr}
  .jpos-production-stage-gate{padding:10px}
  .jpos-production-stage-gate-toggle b{font-size:16px}
  .jpos-production-stage-gate-toggle small{font-size:16px!important}
  .jpos-production-stage-gate-fields{grid-template-columns:1fr;margin-left:0;padding:10px}
  .jpos-production-stage-gate-fields select,.jpos-production-stage-gate-fields input{font-size:16px!important;min-height:44px}
  .jpos-production-stage-gate-fields label>span,.jpos-production-stage-gate-fields small,.jpos-readiness-fire span{font-size:16px!important}
  .jpos-production-readiness-card span,.jpos-production-readiness-card strong,.jpos-production-readiness-card small{font-size:16px!important}
  .jpos-production-stage-actions .js-production-readiness-confirm,.jpos-production-stage-actions .js-production-readiness-waive{min-height:44px}
}

/* M1.8.11 — mandatory cashier/admin dependency follow-up banner */
.jpos-production-readiness-alert{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;margin:0 0 14px;padding:12px 14px;border:1px solid #ddd6f2;border-radius:12px;background:#f8f6ff;color:#514586}
.jpos-production-readiness-alert[hidden]{display:none!important}
.jpos-production-readiness-alert-icon{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#e9e4fa;color:#6758a7;font-size:1.1rem}
.jpos-production-readiness-alert>div:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}
.jpos-production-readiness-alert strong{font-size:14px;line-height:1.35;color:#413774}
.jpos-production-readiness-alert span{font-size:14px;line-height:1.45;color:#625d74}
@media(max-width:720px){
  .jpos-production-readiness-alert{grid-template-columns:auto minmax(0,1fr);padding:13px;gap:10px}
  .jpos-production-readiness-alert .btn{grid-column:1/-1;width:100%;min-height:44px;font-size:16px}
  .jpos-production-readiness-alert strong,.jpos-production-readiness-alert span{font-size:16px}
}

/* ============================================================
   STEP 9.3.3M1.8.13 — Tugas & Deadline Card Board Micro UI Tweak
   Desktop/tablet landscape: max 3 columns. Tablet portrait/HP: 1 column.
   Visual-only work queue redesign; production/readiness logic unchanged.
   ============================================================ */
.jpos-production-page{font-size:14px}
.jpos-production-page .jpos-production-summary{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.jpos-production-page .jpos-production-metric{
  min-height:78px;
  padding:12px 14px;
  border-radius:12px;
}
.jpos-production-page .jpos-production-metric>span{font-size:13px;line-height:1.25}
.jpos-production-page .jpos-production-metric>strong{font-size:24px;line-height:1.05}
.jpos-production-page .jpos-production-metric>small{font-size:12px;line-height:1.35}
.jpos-production-metric.tone-watch{background:#edf4f9;border-color:#cfdee9}
.jpos-production-metric.tone-watch>span,.jpos-production-metric.tone-watch>strong{color:#476884}

.jpos-production-workspace{overflow:visible}
.jpos-production-list{display:block;background:#f7f9fb}
.jpos-production-priority-board{padding:18px 18px 24px;display:flex;flex-direction:column;gap:26px}
.jpos-production-priority-section{min-width:0}
.jpos-production-section-title{
  display:grid;
  grid-template-columns:auto minmax(40px,1fr) auto;
  align-items:center;
  gap:10px;
  margin:0 4px 12px;
  color:#253b4d;
}
.jpos-production-section-title>div{display:flex;align-items:center;gap:7px;min-width:0}
.jpos-production-section-title>div>i{font-size:18px}
.jpos-production-section-title strong{
  font-size:18px;
  font-weight:900;
  line-height:1.2;
  letter-spacing:.015em;
  white-space:nowrap;
}
.jpos-production-section-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:26px;
  height:24px;
  padding:0 7px;
  border-radius:999px;
  background:#e8eef3;
  color:#526a7e;
  font-size:12px;
  font-weight:900;
}
.jpos-production-section-line{height:1px;background:#526777;opacity:.78}
.jpos-production-section-title>small{font-size:12px;color:#768997;white-space:nowrap}
.jpos-production-priority-section.tone-overdue .jpos-production-section-title>div>i{color:#d54a56}
.jpos-production-priority-section.tone-today .jpos-production-section-title>div>i{color:#e7942d}
.jpos-production-priority-section.tone-h1 .jpos-production-section-title>div>i{color:#557b9d}
.jpos-production-priority-section.tone-watch .jpos-production-section-title>div>i{color:#7392ad}
.jpos-production-priority-section.tone-waiting .jpos-production-section-title>div>i{color:#7769b5}
.jpos-production-priority-section.tone-completed .jpos-production-section-title>div>i{color:#27845f}

.jpos-production-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(260px,1fr));
  gap:14px;
  align-items:stretch;
}
.jpos-production-section-empty{
  min-height:66px;
  display:flex;
  align-items:center;
  padding:0 16px;
  border:1px dashed #d6e0e7;
  border-radius:12px;
  background:#fff;
  color:#7d8e9a;
  font-size:14px;
}

.jpos-production-focus-card{
  --prod-card-bg:#385066;
  --prod-card-text:#fff;
  --prod-card-muted:#d8e2e9;
  --prod-card-line:rgba(255,255,255,.18);
  --prod-card-button:#159ca5;
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:190px;
  overflow:hidden;
  border:1px solid rgba(24,48,70,.18);
  border-radius:12px;
  background:var(--prod-card-bg);
  color:var(--prod-card-text);
  box-shadow:0 5px 16px rgba(19,43,63,.09);
  transition:transform .14s ease,box-shadow .14s ease;
}
.jpos-production-focus-card:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(19,43,63,.14)}
.jpos-production-focus-card.tone-overdue{--prod-card-bg:#17334f;--prod-card-muted:#d5e2eb;--prod-card-line:rgba(255,255,255,.20)}
.jpos-production-focus-card.tone-today{--prod-card-bg:#374b60;--prod-card-muted:#dce4ea;--prod-card-line:rgba(255,255,255,.19)}
.jpos-production-focus-card.tone-h1{--prod-card-bg:#657e98;--prod-card-muted:#edf3f7;--prod-card-line:rgba(255,255,255,.24)}
.jpos-production-focus-card.tone-watch{--prod-card-bg:#9fb2c5;--prod-card-text:#173149;--prod-card-muted:#314e65;--prod-card-line:rgba(26,55,78,.18);--prod-card-button:#137f89}
.jpos-production-focus-card.tone-waiting{--prod-card-bg:#5c567e;--prod-card-muted:#ebe8fa;--prod-card-line:rgba(255,255,255,.21);--prod-card-button:#20a8ad}
.jpos-production-focus-card.tone-future{--prod-card-bg:#fff;--prod-card-text:#1c3449;--prod-card-muted:#647b8c;--prod-card-line:#dfe7ed;--prod-card-button:#193b61;border-color:#d9e3ea}
.jpos-production-focus-card.tone-completed{--prod-card-bg:#edf7f2;--prod-card-text:#173d30;--prod-card-muted:#537667;--prod-card-line:#cfe3d9;--prod-card-button:#27845f;border-color:#cde2d7}
.jpos-production-focus-card.is-unassigned{box-shadow:inset 0 0 0 2px #f1bd60,0 5px 16px rgba(19,43,63,.09)}

.jpos-production-focus-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:start;
  padding:14px 14px 10px;
}
.jpos-production-focus-client{display:flex;flex-direction:column;gap:4px;min-width:0}
.jpos-production-focus-client>strong{
  color:inherit;
  font-size:17px;
  line-height:1.2;
  font-weight:900;
  overflow-wrap:anywhere;
}
.jpos-production-focus-client>span{
  color:var(--prod-card-muted);
  font-size:13px;
  line-height:1.35;
  font-weight:650;
  overflow-wrap:anywhere;
}
.jpos-production-focus-client>span i{font-style:normal;opacity:.65;margin:0 2px}
.jpos-production-focus-attention{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:start;
  max-width:155px;
  min-height:27px;
  padding:5px 8px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:8px;
  background:rgba(255,255,255,.12);
  color:inherit;
  font-size:11px;
  line-height:1.15;
  font-weight:950;
  text-align:center;
  text-transform:uppercase;
}
.jpos-production-focus-card.tone-watch .jpos-production-focus-attention,
.jpos-production-focus-card.tone-future .jpos-production-focus-attention,
.jpos-production-focus-card.tone-completed .jpos-production-focus-attention{border-color:rgba(24,55,78,.16);background:rgba(255,255,255,.38)}
.jpos-production-focus-attention.tone-danger{background:#fff0f0;color:#bd3543;border-color:#ffd3d6}
.jpos-production-focus-attention.tone-warning{background:#fff3cf;color:#8b5c0a;border-color:#f4dda0}
.jpos-production-focus-attention.tone-waiting{background:#eeeaff;color:#5d51a1;border-color:#d7d0f2}
.jpos-production-focus-attention.tone-done{background:#e8f7ef;color:#257357;border-color:#cbe9da}

.jpos-production-focus-dates{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  border-top:1px solid var(--prod-card-line);
  border-bottom:1px solid var(--prod-card-line);
}
.jpos-production-focus-dates>div{display:flex;flex-direction:column;gap:3px;min-width:0;padding:9px 14px}
.jpos-production-focus-dates>div+div{border-left:1px solid var(--prod-card-line)}
.jpos-production-focus-dates span{
  color:var(--prod-card-muted);
  font-size:10px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.04em;
}
.jpos-production-focus-dates strong{
  color:inherit;
  font-size:12px;
  line-height:1.35;
  font-weight:800;
  overflow-wrap:anywhere;
}
.jpos-production-focus-dates small{color:var(--prod-card-muted);font-size:10px;line-height:1.25}

.jpos-production-focus-footer{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:end;
  padding:11px 14px 13px;
  flex:1;
}
.jpos-production-focus-status{display:flex;flex-direction:column;gap:4px;min-width:0}
.jpos-production-focus-status>div{display:flex;align-items:center;gap:8px;min-width:0}
.jpos-production-focus-status>div>strong{font-size:21px;line-height:1.2;font-weight:900;color:inherit;overflow-wrap:anywhere}
.jpos-production-focus-status>small{font-size:11px;line-height:1.35;color:var(--prod-card-muted);overflow-wrap:anywhere}
.jpos-production-focus-pic i,.jpos-production-focus-unassigned i{margin-right:3px}
.jpos-production-focus-pic{order:4}
.jpos-production-focus-unassigned{order:5}
.jpos-production-focus-unassigned{color:#ffe5aa!important;font-weight:850}
.jpos-production-focus-target{margin-top:1px;order:3}
.jpos-production-focus-target b{color:inherit;font-weight:900}
.jpos-production-focus-action{display:flex;align-items:flex-end;justify-content:flex-end}
.jpos-production-focus-action .btn{
  min-width:92px;
  min-height:36px;
  padding:7px 11px;
  border-color:transparent!important;
  border-radius:9px;
  background:var(--prod-card-button)!important;
  color:#fff!important;
  font-size:12px;
  font-weight:900;
  box-shadow:none!important;
  white-space:nowrap;
}
.jpos-production-focus-action .btn:hover{filter:brightness(.96)}

/* Status dot tetap mengikuti status pekerjaan, tetapi dibuat lebih terang agar kontras di card. */
.jpos-production-focus-card .jpos-production-status-dot{
  width:11px;height:11px;flex-basis:11px;
  border:2px solid rgba(255,255,255,.72);
  box-shadow:0 0 0 3px rgba(255,255,255,.13);
}
.jpos-production-focus-card .jpos-production-status-dot.tone-working{background:#ff963f}
.jpos-production-focus-card .jpos-production-status-dot.tone-hold{background:#ffd45f}
.jpos-production-focus-card .jpos-production-status-dot.tone-done{background:#61d5a8}
.jpos-production-focus-card .jpos-production-status-dot.tone-not-started{background:#cabfff}
.jpos-production-focus-card .jpos-production-status-dot.tone-waiting{background:#63e0df}
.jpos-production-focus-card.tone-watch .jpos-production-status-dot,
.jpos-production-focus-card.tone-future .jpos-production-status-dot,
.jpos-production-focus-card.tone-completed .jpos-production-status-dot{border-color:rgba(255,255,255,.9);box-shadow:0 0 0 3px rgba(24,55,78,.12)}

@media(max-width:1100px){
  .jpos-production-section-title>small{display:none}
  .jpos-production-card-grid{gap:11px}
  .jpos-production-focus-head{padding:12px 12px 9px}
  .jpos-production-focus-dates>div{padding:8px 12px}
  .jpos-production-focus-footer{padding:10px 12px 12px}
  .jpos-production-focus-client>strong{font-size:16px}
  .jpos-production-focus-client>span{font-size:12px}
}

/* Tablet portrait dan semua layar di bawahnya langsung 1 kolom — tidak ada layout 2 kolom. */
@media(max-width:900px){
  .jpos-production-page .jpos-production-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-production-priority-board{padding:16px 14px 22px;gap:24px}
  .jpos-production-card-grid{grid-template-columns:1fr;gap:12px}
  .jpos-production-focus-card{min-height:0}
  .jpos-production-section-title{grid-template-columns:auto minmax(30px,1fr);gap:9px;margin-bottom:10px}
  .jpos-production-section-title>small{display:none}
}

@media(max-width:767px){
  .jpos-production-page{font-size:16px}
  .jpos-production-page .jpos-production-summary{gap:8px}
  .jpos-production-page .jpos-production-metric{min-height:82px;padding:11px 12px}
  .jpos-production-page .jpos-production-metric>span{font-size:14px}
  .jpos-production-page .jpos-production-metric>strong{font-size:25px}
  .jpos-production-page .jpos-production-metric>small{font-size:13px;display:block}
  .jpos-production-section-title strong{font-size:20px}
  .jpos-production-section-count{height:26px;min-width:28px;font-size:13px}
  .jpos-production-section-empty{font-size:16px}
  .jpos-production-focus-card{border-radius:14px}
  .jpos-production-focus-head{padding:15px 15px 11px;gap:10px}
  .jpos-production-focus-client>strong{font-size:19px}
  .jpos-production-focus-client>span{font-size:15px;line-height:1.4}
  .jpos-production-focus-attention{max-width:175px;min-height:30px;font-size:13px;padding:6px 9px}
  .jpos-production-focus-dates>div{padding:10px 15px}
  .jpos-production-focus-dates span{font-size:12px}
  .jpos-production-focus-dates strong{font-size:15px}
  .jpos-production-focus-dates small{font-size:13px}
  .jpos-production-focus-footer{padding:12px 15px 15px;gap:12px}
  .jpos-production-focus-status>div>strong{font-size:24px}
  .jpos-production-focus-status>small{font-size:14px;line-height:1.42}
  .jpos-production-focus-action .btn{min-width:112px;min-height:44px;padding:9px 13px;font-size:15px}
}

@media(max-width:520px){
  .jpos-production-priority-board{padding:14px 10px 20px}
  .jpos-production-section-title strong{font-size:18px;white-space:normal}
  .jpos-production-focus-head{grid-template-columns:1fr}
  .jpos-production-focus-attention{justify-self:start;max-width:100%}
  .jpos-production-focus-dates{grid-template-columns:1fr}
  .jpos-production-focus-dates>div+div{border-left:0;border-top:1px solid var(--prod-card-line)}
  .jpos-production-focus-footer{grid-template-columns:1fr}
  .jpos-production-focus-action{justify-content:stretch}
  .jpos-production-focus-action .btn{width:100%}
}
/* M1.8.13 micro UI tweak — status lebih besar, target di atas PIC. */
.jpos-production-page .jpos-production-list-head p{font-size:14px;line-height:1.45;color:#667b8c}
.jpos-production-page .jpos-production-kind-switch button,
.jpos-production-page .jpos-production-status-switch button{font-size:14px;min-height:38px;padding:0 12px}
.jpos-production-page .jpos-production-toolbar .form-control{font-size:14px;min-height:42px}
.jpos-production-page .jpos-search-field>i{font-size:17px}
@media(max-width:767px){
  .jpos-production-page .jpos-production-list-head p{font-size:16px}
  .jpos-production-page .jpos-production-kind-switch button,
  .jpos-production-page .jpos-production-status-switch button{font-size:16px;min-height:44px}
  .jpos-production-page .jpos-production-toolbar .form-control{font-size:16px;min-height:48px}
}

/* ============================================================
   JPOS M1.8.16 — CALENDAR STEP 2
   CAL-2 Read-only Legacy Projection + Month View
   ============================================================ */
.jpos-calendar-foundation{font-size:14px}
.jpos-calendar-pagehead{gap:14px}
.jpos-calendar-head-actions{display:flex;align-items:center;justify-content:flex-end}
.jpos-calendar-readonly-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid #d8e1ea;border-radius:999px;background:#f7f9fb;color:#536476;font-size:12px;font-weight:800;letter-spacing:.035em}
.jpos-calendar-foundation-note{display:flex;align-items:flex-start;gap:12px;margin:0 0 14px;padding:13px 14px;border:1px solid #dce7f0;border-radius:12px;background:#f7fafc;color:#39516a}
.jpos-calendar-foundation-note strong{display:block;margin-bottom:3px;color:#263c54}
.jpos-calendar-foundation-note span{display:block;color:#687b8d;line-height:1.45}
.jpos-calendar-foundation-note code{font-size:12px;color:#465f77}
.jpos-calendar-foundation-icon{display:flex;align-items:center;justify-content:center;flex:0 0 34px;height:34px;border-radius:9px;background:#e9f1f7;color:#416b8c;font-size:18px}
.jpos-calendar-shell-card{overflow:visible}
.jpos-calendar-toolbar{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;align-items:center;gap:12px;padding:13px 14px;border-bottom:1px solid var(--jpos-line);background:#fff}
.jpos-calendar-nav-group,.jpos-calendar-view-group{display:flex;align-items:center;gap:6px}
.jpos-calendar-toolbar .btn{min-height:38px;padding:7px 11px}
.jpos-calendar-toolbar .btn.active{background:#eef3f8;border-color:#dbe4ec;color:#314f70}
.jpos-calendar-toolbar .btn[disabled]{opacity:.48;cursor:not-allowed}
.jpos-calendar-current-period{text-align:center;font-size:17px;font-weight:800;color:#27384d;text-transform:capitalize}
.jpos-calendar-filter-shell{display:grid;grid-template-columns:repeat(3,minmax(150px,220px)) minmax(160px,1fr);gap:10px;align-items:end;padding:12px 14px;border-bottom:1px solid var(--jpos-line);background:#fcfdfe}
.jpos-calendar-filter-field label{display:block;margin:0 0 5px;color:#697a8c;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.jpos-calendar-filter-field .form-control{height:40px;font-size:14px}
.jpos-calendar-history-shell{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:40px;margin:0;color:#68798a;font-weight:600;cursor:pointer}
.jpos-calendar-history-shell input{width:17px;height:17px}
.jpos-calendar-resultbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;border-bottom:1px solid #edf1f4;background:#fff;color:#6b7e90;font-size:12px}
.jpos-calendar-legend{display:flex;align-items:center;gap:14px;white-space:nowrap}
.jpos-calendar-legend span{display:inline-flex;align-items:center;gap:6px}
.jpos-calendar-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#2f9aa6}
.jpos-calendar-dot.history{background:#a6b0bb}
.jpos-calendar-stage-shell{position:relative;min-height:480px;background:#fff}
.jpos-calendar-loading{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;gap:9px;background:rgba(255,255,255,.78);backdrop-filter:blur(1px);color:#415b74;font-size:14px}
.jpos-calendar-loading[hidden]{display:none}
.jpos-calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid #e9edf2;background:#fafbfd}
.jpos-calendar-weekdays span{padding:9px 8px;border-right:1px solid #edf1f4;text-align:center;color:#748598;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.jpos-calendar-weekdays span:last-child{border-right:0}
.jpos-calendar-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:minmax(136px,1fr)}
.jpos-calendar-day{min-width:0;padding:7px;border-right:1px solid #edf1f4;border-bottom:1px solid #edf1f4;background:#fff}
.jpos-calendar-day:nth-child(7n){border-right:0}
.jpos-calendar-day.is-outside{background:#fafbfc}
.jpos-calendar-day.is-outside .jpos-calendar-day-head>span{color:#b2bdc7}
.jpos-calendar-day.is-today{background:#f7fbfc;box-shadow:inset 0 0 0 1px #b9dce0}
.jpos-calendar-day-head{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:25px;margin-bottom:5px}
.jpos-calendar-day-head>span{display:flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;color:#53687c;font-size:12px;font-weight:800}
.jpos-calendar-day.is-today .jpos-calendar-day-head>span{background:#2497a2;color:#fff}
.jpos-calendar-day-head>b{padding:2px 5px;border-radius:999px;background:#e7f5f6;color:#237e86;font-size:9px;letter-spacing:.02em}
.jpos-calendar-day-events{display:flex;flex-direction:column;gap:4px;max-height:142px;overflow:auto;padding-right:1px}
.jpos-calendar-event{position:relative;display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0;padding:5px 6px 5px 8px;border:0;border-left:3px solid var(--calendar-event-color,#64748b);border-radius:5px;background:color-mix(in srgb,var(--calendar-event-color,#64748b) 9%,#fff);color:#26394b;text-align:left;cursor:pointer;box-shadow:none}
.jpos-calendar-event:hover,.jpos-calendar-event:focus{outline:0;background:color-mix(in srgb,var(--calendar-event-color,#64748b) 15%,#fff);box-shadow:0 0 0 1px color-mix(in srgb,var(--calendar-event-color,#64748b) 28%,transparent)}
.jpos-calendar-event.is-history{filter:saturate(.48);opacity:.72}
.jpos-calendar-event.is-past:not(.is-history){opacity:.78}
.jpos-calendar-event.is-keep{border-left-color:#1f2937;background:#eef1f4}
.jpos-calendar-event-main{display:block;min-width:0}
.jpos-calendar-event-main strong{display:block;overflow:hidden;color:#24384c;font-size:10px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.jpos-calendar-event-main small{display:block;overflow:hidden;margin-top:2px;color:#6a7d8f;font-size:9px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.jpos-calendar-event-time{font-variant-numeric:tabular-nums}
.jpos-calendar-event-meta{display:flex;align-items:center;flex-wrap:wrap;gap:3px;margin-top:4px}
.jpos-calendar-event-meta>small{overflow:hidden;max-width:100%;color:#7a8998;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.jpos-calendar-status{display:inline-flex;align-items:center;justify-content:center;padding:2px 5px;border-radius:999px;background:#edf1f5;color:#516375;font-size:8px;font-style:normal;font-weight:800;line-height:1.2;text-transform:uppercase}
.jpos-calendar-status.status-pending{background:#fff3cd;color:#856404}
.jpos-calendar-status.status-confirmed{background:#e8eefc;color:#3658a7}
.jpos-calendar-status.status-booked{background:#def4e8;color:#24754a}
.jpos-calendar-status.status-hold{background:#e9edf2;color:#334155}
.jpos-calendar-status.status-session{background:#e3f5f7;color:#247b83}
.jpos-calendar-status.status-done{background:#e5f2ef;color:#30746a}
.jpos-calendar-status.status-cancelled,.jpos-calendar-status.status-delete{background:#f6e6e7;color:#9a4348}
.jpos-calendar-urgent,.jpos-calendar-promo{display:inline-flex;align-items:center;padding:2px 5px;border-radius:999px;font-size:8px;font-weight:900;line-height:1.2}
.jpos-calendar-urgent{background:#e94b50;color:#fff}
.jpos-calendar-promo{background:#e5efff;color:#356bb2}
.jpos-calendar-agenda{display:none}
.jpos-calendar-step2-footnote{display:flex;align-items:center;gap:8px;margin-top:10px;color:#718294;font-size:12px}
.jpos-calendar-detail-readonly{font-size:14px}
.jpos-calendar-detail-lock{display:inline-flex;align-items:center;gap:6px;margin-bottom:12px;padding:5px 9px;border-radius:999px;background:#eef3f6;color:#52687b;font-size:11px;font-weight:800}
.jpos-calendar-detail-readonly dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}
.jpos-calendar-detail-readonly dl>div{padding:10px 11px;border:1px solid #e4e9ee;border-radius:9px;background:#fafbfd}
.jpos-calendar-detail-readonly dl>div.wide{grid-column:1/-1}
.jpos-calendar-detail-readonly dt{margin-bottom:4px;color:#78899a;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.jpos-calendar-detail-readonly dd{margin:0;color:#30465b;line-height:1.4;word-break:break-word}
.jpos-calendar-detail-readonly dd small{color:#8996a3}

@media(max-width:991px){
  .jpos-calendar-foundation{font-size:16px}
  .jpos-calendar-toolbar{grid-template-columns:1fr auto;gap:10px}
  .jpos-calendar-current-period{grid-column:1/-1;grid-row:1;text-align:left;font-size:18px}
  .jpos-calendar-nav-group{grid-column:1;grid-row:2}
  .jpos-calendar-view-group{grid-column:2;grid-row:2;justify-content:flex-end}
  .jpos-calendar-filter-shell{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-calendar-filter-field .form-control{height:46px;font-size:16px}
  .jpos-calendar-history-shell{justify-content:flex-start;min-height:46px}
  .jpos-calendar-month-grid{grid-auto-rows:minmax(130px,1fr)}
  .jpos-calendar-event-main strong{font-size:10px}
}
@media(max-width:767px){
  .jpos-calendar-foundation{font-size:16px}
  .jpos-calendar-pagehead{align-items:flex-start}
  .jpos-calendar-toolbar{display:flex;flex-direction:column;align-items:stretch}
  .jpos-calendar-current-period{order:-1;text-align:left;font-size:20px}
  .jpos-calendar-nav-group,.jpos-calendar-view-group{width:100%}
  .jpos-calendar-nav-group .btn,.jpos-calendar-view-group .btn{flex:1;min-height:46px;font-size:16px}
  .jpos-calendar-filter-shell{grid-template-columns:1fr}
  .jpos-calendar-filter-field label{font-size:13px}
  .jpos-calendar-filter-field .form-control{height:48px;font-size:16px}
  .jpos-calendar-resultbar{align-items:flex-start;flex-direction:column;font-size:14px}
  .jpos-calendar-legend{font-size:13px}
  .jpos-calendar-desktop{display:none}
  .jpos-calendar-stage-shell{min-height:300px}
  .jpos-calendar-agenda{display:block;padding:10px;background:#f7f9fb}
  .jpos-calendar-agenda-day{margin-bottom:10px;border:1px solid #e1e7ed;border-radius:11px;background:#fff;overflow:hidden}
  .jpos-calendar-agenda-day.is-today{border-color:#afd7dc;box-shadow:0 0 0 1px #d8eef0}
  .jpos-calendar-agenda-day>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 11px;border-bottom:1px solid #edf1f4;background:#fbfcfd}
  .jpos-calendar-agenda-day>header strong{font-size:16px;text-transform:capitalize}
  .jpos-calendar-agenda-day>header span{color:#78899a;font-size:14px}
  .jpos-calendar-agenda-day>div{display:flex;flex-direction:column;gap:7px;padding:9px}
  .jpos-calendar-event{padding:9px 10px 9px 12px;border-left-width:4px;border-radius:8px}
  .jpos-calendar-event-main strong{font-size:16px;white-space:normal}
  .jpos-calendar-event-main small{font-size:14px;white-space:normal}
  .jpos-calendar-event-meta{gap:5px;margin-top:6px}
  .jpos-calendar-status,.jpos-calendar-urgent,.jpos-calendar-promo{padding:4px 7px;font-size:12px}
  .jpos-calendar-agenda-empty{display:flex;min-height:220px;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center;color:#76889a}
  .jpos-calendar-agenda-empty i{margin-bottom:8px;font-size:34px}
  .jpos-calendar-agenda-empty strong{margin-bottom:5px;color:#344b62;font-size:18px}
  .jpos-calendar-agenda-empty span{font-size:16px}
  .jpos-calendar-readonly-badge{font-size:13px}
  .jpos-calendar-foundation-note{font-size:16px}
  .jpos-calendar-foundation-note code{font-size:14px}
  .jpos-calendar-step2-footnote{font-size:14px}
  .jpos-calendar-detail-readonly{font-size:16px}
  .jpos-calendar-detail-readonly dl{grid-template-columns:1fr}
  .jpos-calendar-detail-readonly dl>div.wide{grid-column:auto}
  .jpos-calendar-detail-readonly dt{font-size:12px}
}

/* ============================================================
   JPOS M1.8.17 — CALENDAR STEP 3
   Read-only Month / Week / Day + responsive calendar UX
   ============================================================ */
.jpos-calendar-step3 .jpos-calendar-view-panel[hidden]{display:none!important}
.jpos-calendar-step3 .jpos-calendar-view-group .btn{min-width:68px}
.jpos-calendar-step3 .jpos-calendar-view-group .btn.active{background:#e7f4f5;border-color:#afd9dd;color:#1d7680;box-shadow:inset 0 0 0 1px rgba(36,151,162,.06)}
.jpos-calendar-step3 .jpos-calendar-stage-shell{overflow:hidden}

.jpos-calendar-step3 .jpos-calendar-week-panel{width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.jpos-calendar-step3 .jpos-calendar-week-grid{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));min-width:1050px;border-bottom:1px solid #edf1f4;background:#fff}
.jpos-calendar-step3 .jpos-calendar-week-day{min-width:0;min-height:520px;border-right:1px solid #edf1f4;background:#fff}
.jpos-calendar-step3 .jpos-calendar-week-day:last-child{border-right:0}
.jpos-calendar-step3 .jpos-calendar-week-day.is-today{background:#f7fbfc;box-shadow:inset 0 0 0 1px #b9dce0}
.jpos-calendar-step3 .jpos-calendar-week-day>header{display:flex;align-items:center;gap:7px;min-height:56px;padding:8px;border-bottom:1px solid #edf1f4;background:#fafbfd}
.jpos-calendar-step3 .jpos-calendar-week-day.is-today>header{background:#eff9fa}
.jpos-calendar-step3 .jpos-calendar-week-day>header>div{display:flex;min-width:0;flex:1;flex-direction:column;gap:1px}
.jpos-calendar-step3 .jpos-calendar-week-day>header span{color:#78899a;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.jpos-calendar-step3 .jpos-calendar-week-day>header strong{overflow:hidden;color:#2d4358;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.jpos-calendar-step3 .jpos-calendar-week-day>header>b{padding:2px 5px;border-radius:999px;background:#e4f4f5;color:#217f87;font-size:8px;white-space:nowrap}
.jpos-calendar-step3 .jpos-calendar-week-day>header>em{display:flex;align-items:center;justify-content:center;flex:0 0 22px;height:22px;border-radius:50%;background:#edf1f5;color:#647688;font-size:10px;font-style:normal;font-weight:800}
.jpos-calendar-step3 .jpos-calendar-week-events{display:flex;flex-direction:column;gap:6px;max-height:600px;overflow:auto;padding:7px}
.jpos-calendar-step3 .jpos-calendar-week-empty{display:flex;min-height:74px;align-items:center;justify-content:center;padding:8px;color:#a1adba;font-size:11px;text-align:center}
.jpos-calendar-step3 .jpos-calendar-event.is-week{padding:7px 7px 7px 9px;border-left-width:3px;border-radius:7px}
.jpos-calendar-step3 .jpos-calendar-event.is-week .jpos-calendar-event-main strong{font-size:11px;white-space:normal}
.jpos-calendar-step3 .jpos-calendar-event.is-week .jpos-calendar-event-main small{font-size:9px;white-space:normal}
.jpos-calendar-step3 .jpos-calendar-event.is-week .jpos-calendar-status,
.jpos-calendar-step3 .jpos-calendar-event.is-week .jpos-calendar-urgent,
.jpos-calendar-step3 .jpos-calendar-event.is-week .jpos-calendar-promo{font-size:8px}

.jpos-calendar-step3 .jpos-calendar-day-view{padding:14px;background:#f8fafc}
.jpos-calendar-step3 .jpos-calendar-day-focus{overflow:hidden;border:1px solid #dfe7ee;border-radius:12px;background:#fff}
.jpos-calendar-step3 .jpos-calendar-day-focus.is-today{border-color:#acd5da;box-shadow:0 0 0 1px #d7edef}
.jpos-calendar-step3 .jpos-calendar-day-focus>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid #e8edf2;background:#fbfcfd}
.jpos-calendar-step3 .jpos-calendar-day-focus>header>div:first-child{display:flex;min-width:0;flex-direction:column;gap:2px}
.jpos-calendar-step3 .jpos-calendar-day-focus>header span{color:#75889a;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.jpos-calendar-step3 .jpos-calendar-day-focus>header strong{color:#273d53;font-size:18px;text-transform:capitalize}
.jpos-calendar-step3 .jpos-calendar-day-focus-count{display:flex;align-items:center;gap:8px;white-space:nowrap}
.jpos-calendar-step3 .jpos-calendar-day-focus-count b{padding:4px 7px;border-radius:999px;background:#e5f5f6;color:#217e87;font-size:10px}
.jpos-calendar-step3 .jpos-calendar-day-focus-count em{color:#718395;font-size:12px;font-style:normal;font-weight:700}
.jpos-calendar-step3 .jpos-calendar-day-focus-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px}
.jpos-calendar-step3 .jpos-calendar-day-focus-events>.jpos-calendar-agenda-empty{grid-column:1/-1}
.jpos-calendar-step3 .jpos-calendar-event.is-day{min-height:82px;padding:11px 12px 10px 14px;border-left-width:4px;border-radius:9px}
.jpos-calendar-step3 .jpos-calendar-event.is-day .jpos-calendar-event-main strong{font-size:14px;white-space:normal}
.jpos-calendar-step3 .jpos-calendar-event.is-day .jpos-calendar-event-main small{margin-top:4px;font-size:12px;white-space:normal}
.jpos-calendar-step3 .jpos-calendar-event.is-day .jpos-calendar-event-meta{gap:5px;margin-top:8px}
.jpos-calendar-step3 .jpos-calendar-event.is-day .jpos-calendar-status,
.jpos-calendar-step3 .jpos-calendar-event.is-day .jpos-calendar-urgent,
.jpos-calendar-step3 .jpos-calendar-event.is-day .jpos-calendar-promo{padding:3px 6px;font-size:10px}
.jpos-calendar-step3 .jpos-calendar-event.is-day .jpos-calendar-event-meta>small{font-size:10px}

@media(max-width:1199px){
  .jpos-calendar-step3 .jpos-calendar-day-focus-events{grid-template-columns:1fr}
}
@media(max-width:991px) and (min-width:768px){
  .jpos-calendar-step3 .jpos-calendar-week-grid{min-width:980px}
  .jpos-calendar-step3 .jpos-calendar-week-day{min-height:470px}
  .jpos-calendar-step3 .jpos-calendar-day-focus>header strong{font-size:17px}
  .jpos-calendar-step3 .jpos-calendar-event.is-day .jpos-calendar-event-main strong{font-size:15px}
  .jpos-calendar-step3 .jpos-calendar-event.is-day .jpos-calendar-event-main small{font-size:13px}
}
@media(max-width:767px){
  .jpos-calendar-step3 .jpos-calendar-stage-shell{overflow:visible}
  .jpos-calendar-step3 .jpos-calendar-view-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .jpos-calendar-step3 .jpos-calendar-view-group .btn{width:100%;min-width:0}
  .jpos-calendar-step3 .jpos-calendar-event.is-agenda .jpos-calendar-event-main strong{font-size:16px;white-space:normal}
  .jpos-calendar-step3 .jpos-calendar-event.is-agenda .jpos-calendar-event-main small{font-size:14px;white-space:normal}
  .jpos-calendar-step3 .jpos-calendar-event.is-agenda .jpos-calendar-event-meta>small{font-size:13px;white-space:normal}
  .jpos-calendar-step3 .jpos-calendar-step3-footnote{font-size:14px}
}

/* ============================================================
   JPOS M1.8.18 — CALENDAR STEP 4
   Week / Day UX polish + read-only Booking Detail Workspace
   ============================================================ */
.jpos-calendar-step4 .jpos-calendar-view-panel[hidden]{display:none!important}
.jpos-calendar-step4 .jpos-calendar-view-group .btn{min-width:72px}
.jpos-calendar-step4 .jpos-calendar-view-group .btn.active{background:#e7f4f5;border-color:#afd9dd;color:#1d7680;box-shadow:inset 0 0 0 1px rgba(36,151,162,.06)}
.jpos-calendar-step4 .jpos-calendar-stage-shell{overflow:hidden}

/* WEEK — tujuh kolom yang benar-benar terbaca di desktop. */
.jpos-calendar-step4 .jpos-calendar-week-panel{width:100%;overflow-x:auto;overscroll-behavior-inline:contain;background:#f7f9fb}
.jpos-calendar-step4 .jpos-calendar-week-grid{display:grid;grid-template-columns:repeat(7,minmax(160px,1fr));min-width:1120px;border-bottom:1px solid #e5ebf0;background:#fff}
.jpos-calendar-step4 .jpos-calendar-week-day{min-width:0;min-height:390px;border-right:1px solid #e7edf2;background:#fff}
.jpos-calendar-step4 .jpos-calendar-week-day:last-child{border-right:0}
.jpos-calendar-step4 .jpos-calendar-week-day.is-today{background:#f7fbfc;box-shadow:inset 0 0 0 1px #b9dce0}
.jpos-calendar-step4 .jpos-calendar-week-day-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:72px;padding:10px 9px;border-bottom:1px solid #e8edf2;background:#fafbfd}
.jpos-calendar-step4 .jpos-calendar-week-day.is-today .jpos-calendar-week-day-head{background:#eef9fa}
.jpos-calendar-step4 .jpos-calendar-week-date{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;align-items:center;column-gap:6px;min-width:0}
.jpos-calendar-step4 .jpos-calendar-week-date>span{grid-column:1/-1;color:#728598;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.jpos-calendar-step4 .jpos-calendar-week-date>strong{color:#253b51;font-size:23px;line-height:1;font-weight:800}
.jpos-calendar-step4 .jpos-calendar-week-date>small{align-self:end;padding-bottom:1px;color:#76899b;font-size:12px;font-weight:700;text-transform:capitalize}
.jpos-calendar-step4 .jpos-calendar-week-summary{display:flex;min-width:0;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.jpos-calendar-step4 .jpos-calendar-week-summary>b{display:inline-flex;padding:3px 6px;border-radius:999px;background:#dff2f4;color:#1e7a83;font-size:10px;white-space:nowrap}
.jpos-calendar-step4 .jpos-calendar-week-summary>em{color:#7d8d9d;font-size:11px;font-style:normal;font-weight:700;white-space:nowrap}
.jpos-calendar-step4 .jpos-calendar-week-events{display:flex;max-height:520px;flex-direction:column;gap:7px;overflow:auto;padding:8px}
.jpos-calendar-step4 .jpos-calendar-week-empty{display:flex;min-height:110px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:12px;color:#9aa8b5;font-size:12px;text-align:center}
.jpos-calendar-step4 .jpos-calendar-week-empty i{font-size:20px;color:#b0bbc5}
.jpos-calendar-step4 .jpos-calendar-event.is-week{padding:9px 9px 8px 11px;border-left-width:4px;border-radius:8px}
.jpos-calendar-step4 .jpos-calendar-event.is-week .jpos-calendar-event-main strong{font-size:13px;line-height:1.35;white-space:normal}
.jpos-calendar-step4 .jpos-calendar-event.is-week .jpos-calendar-event-main small{margin-top:3px;font-size:11px;line-height:1.35;white-space:normal}
.jpos-calendar-step4 .jpos-calendar-event.is-week .jpos-calendar-event-meta{gap:4px;margin-top:6px}
.jpos-calendar-step4 .jpos-calendar-event.is-week .jpos-calendar-status,
.jpos-calendar-step4 .jpos-calendar-event.is-week .jpos-calendar-urgent,
.jpos-calendar-step4 .jpos-calendar-event.is-week .jpos-calendar-promo{padding:3px 5px;font-size:9px}

/* DAY — timeline vertikal; jam tidak lagi bercampur di dalam kartu. */
.jpos-calendar-step4 .jpos-calendar-day-view{padding:14px;background:#f7f9fb}
.jpos-calendar-step4 .jpos-calendar-day-focus{overflow:hidden;border:1px solid #dfe7ee;border-radius:13px;background:#fff}
.jpos-calendar-step4 .jpos-calendar-day-focus.is-today{border-color:#acd5da;box-shadow:0 0 0 1px #d7edef}
.jpos-calendar-step4 .jpos-calendar-day-focus>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border-bottom:1px solid #e8edf2;background:#fbfcfd}
.jpos-calendar-step4 .jpos-calendar-day-focus>header>div:first-child{display:flex;min-width:0;flex-direction:column;gap:2px}
.jpos-calendar-step4 .jpos-calendar-day-focus>header span{color:#75889a;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.jpos-calendar-step4 .jpos-calendar-day-focus>header strong{color:#273d53;font-size:19px;line-height:1.25;text-transform:capitalize}
.jpos-calendar-step4 .jpos-calendar-day-focus-count{display:flex;align-items:center;gap:8px;white-space:nowrap}
.jpos-calendar-step4 .jpos-calendar-day-focus-count b{padding:4px 8px;border-radius:999px;background:#e5f5f6;color:#217e87;font-size:10px}
.jpos-calendar-step4 .jpos-calendar-day-focus-count em{color:#718395;font-size:13px;font-style:normal;font-weight:700}
.jpos-calendar-step4 .jpos-calendar-day-timeline{padding:6px 16px 14px}
.jpos-calendar-step4 .jpos-calendar-day-timeline-row{display:grid;grid-template-columns:92px 20px minmax(0,1fr);align-items:stretch;min-height:96px}
.jpos-calendar-step4 .jpos-calendar-day-time{display:flex;flex-direction:column;align-items:flex-end;gap:2px;padding:16px 12px 12px 0;text-align:right}
.jpos-calendar-step4 .jpos-calendar-day-time strong{color:#2a4158;font-size:15px;font-variant-numeric:tabular-nums}
.jpos-calendar-step4 .jpos-calendar-day-time span{color:#8a99a8;font-size:11px;white-space:nowrap}
.jpos-calendar-step4 .jpos-calendar-day-marker{position:relative;display:flex;justify-content:center}
.jpos-calendar-step4 .jpos-calendar-day-marker:before{content:"";position:absolute;top:0;bottom:0;width:2px;background:#e4eaf0}
.jpos-calendar-step4 .jpos-calendar-day-timeline-row:first-child .jpos-calendar-day-marker:before{top:22px}
.jpos-calendar-step4 .jpos-calendar-day-timeline-row:last-child .jpos-calendar-day-marker:before{bottom:calc(100% - 23px)}
.jpos-calendar-step4 .jpos-calendar-day-marker i{position:relative;z-index:1;width:10px;height:10px;margin-top:20px;border:2px solid #fff;border-radius:50%;background:#2c98a3;box-shadow:0 0 0 2px #bfe0e3}
.jpos-calendar-step4 .jpos-calendar-day-event-wrap{min-width:0;padding:8px 0 8px 10px}
.jpos-calendar-step4 .jpos-calendar-event.is-day{min-height:78px;padding:12px 14px;border-left-width:4px;border-radius:10px}
.jpos-calendar-step4 .jpos-calendar-event.is-day .jpos-calendar-event-main strong{font-size:14px;line-height:1.35;white-space:normal}
.jpos-calendar-step4 .jpos-calendar-event.is-day .jpos-calendar-event-main small{margin-top:4px;font-size:13px;line-height:1.4;white-space:normal}
.jpos-calendar-step4 .jpos-calendar-event.is-day .jpos-calendar-event-meta{gap:5px;margin-top:8px}
.jpos-calendar-step4 .jpos-calendar-event.is-day .jpos-calendar-status,
.jpos-calendar-step4 .jpos-calendar-event.is-day .jpos-calendar-urgent,
.jpos-calendar-step4 .jpos-calendar-event.is-day .jpos-calendar-promo{padding:3px 7px;font-size:10px}
.jpos-calendar-step4 .jpos-calendar-event.is-day .jpos-calendar-event-meta>small{font-size:11px}

/* DETAIL WORKSPACE — drawer kanan agar konteks kalender tetap terlihat. */
.jpos-calendar-detail-overlay[hidden],.jpos-calendar-detail-drawer[hidden]{display:none!important}
.jpos-calendar-detail-overlay{position:fixed;inset:0;z-index:1200;background:rgba(18,31,45,.34);opacity:0;transition:opacity .18s ease}
.jpos-calendar-detail-overlay.is-open{opacity:1}
.jpos-calendar-detail-drawer{position:fixed;top:0;right:0;z-index:1210;display:flex;width:min(580px,94vw);height:100vh;flex-direction:column;background:#f7f9fb;box-shadow:-16px 0 38px rgba(25,43,61,.18);transform:translateX(102%);transition:transform .18s ease}
.jpos-calendar-detail-drawer.is-open{transform:translateX(0)}
.jpos-calendar-detail-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px 15px;border-bottom:1px solid #dfe6ec;background:#fff}
.jpos-calendar-detail-drawer-head>div{min-width:0}
.jpos-calendar-detail-drawer-head h2{margin:2px 0 2px;color:#253b51;font-size:22px}
.jpos-calendar-detail-drawer-head p{margin:0;color:#77899a;font-size:13px}
.jpos-calendar-detail-close{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;padding:0;border-radius:9px}
.jpos-calendar-detail-drawer-body{flex:1;overflow:auto;padding:14px}
.jpos-calendar-detail-drawer-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 14px;border-top:1px solid #dfe6ec;background:#fff}
.jpos-calendar-detail-drawer-foot .btn{min-height:42px}
.jpos-calendar-detail-loading{display:flex;min-height:240px;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#718395;text-align:center}
.jpos-calendar-detail-loading i{font-size:28px}
.jpos-calendar-detail-loading strong{color:#3d556c;font-size:15px}
.jpos-calendar-detail-loading span{font-size:12px}
.jpos-calendar-detail-drawer .jpos-calendar-detail-lock{display:flex;align-items:center;gap:7px;margin:0 0 10px;padding:8px 10px;border:1px solid #dce5ed;border-radius:9px;background:#fff;color:#607487;font-size:11px;font-weight:800;letter-spacing:.035em}
.jpos-calendar-detail-section{margin-bottom:10px;padding:13px;border:1px solid #e0e7ed;border-radius:11px;background:#fff}
.jpos-calendar-detail-section:last-child{margin-bottom:0}
.jpos-calendar-detail-section-title{display:flex;align-items:center;gap:7px;margin-bottom:10px;color:#6c7f91;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.jpos-calendar-detail-section-title i{color:#2c919b;font-size:16px}
.jpos-calendar-detail-customer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.jpos-calendar-detail-customer>div{display:flex;min-width:0;flex-direction:column;gap:2px}
.jpos-calendar-detail-customer strong{color:#263c52;font-size:17px}
.jpos-calendar-detail-customer span{color:#687d90;font-size:13px}
.jpos-calendar-detail-chip{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}
.jpos-calendar-detail-chip.is-dark{background:#e7ebef;color:#33465a}
.jpos-calendar-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.jpos-calendar-detail-grid>div{display:flex;min-width:0;min-height:66px;flex-direction:column;gap:3px;padding:9px 10px;border:1px solid #e6ebf0;border-radius:9px;background:#fafbfd}
.jpos-calendar-detail-grid.compact>div{min-height:60px}
.jpos-calendar-detail-grid>div.wide{grid-column:1/-1}
.jpos-calendar-detail-grid span{color:#7a8a99;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.jpos-calendar-detail-grid strong{overflow-wrap:anywhere;color:#344b61;font-size:13px;line-height:1.4}
.jpos-calendar-detail-grid small{color:#9a6b36;font-size:11px;line-height:1.35}
.jpos-calendar-detail-service{display:flex;flex-direction:column;gap:3px;margin-bottom:9px;padding:0 2px}
.jpos-calendar-detail-service>strong{color:#253c53;font-size:16px}
.jpos-calendar-detail-service>span{color:#657b8f;font-size:13px}
.jpos-calendar-detail-service>b{color:#405d76;font-size:14px}
.jpos-calendar-detail-statusline{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:9px}
.jpos-calendar-detail-statusline .jpos-calendar-status,.jpos-calendar-detail-statusline .jpos-calendar-promo{padding:4px 8px;font-size:10px}
.jpos-calendar-detail-note{min-height:54px;padding:10px 11px;border:1px solid #e6ebf0;border-radius:9px;background:#fafbfd;color:#3f556b;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.jpos-calendar-detail-note>span{color:#91a0ae}
.jpos-calendar-step4-footnote{font-size:12px}

@media(max-width:1199px){
  .jpos-calendar-step4 .jpos-calendar-week-grid{min-width:1085px}
}
@media(max-width:991px) and (min-width:768px){
  .jpos-calendar-step4 .jpos-calendar-week-grid{min-width:1050px}
  .jpos-calendar-step4 .jpos-calendar-day-timeline-row{grid-template-columns:86px 18px minmax(0,1fr)}
}
@media(max-width:767px){
  .jpos-calendar-step4 .jpos-calendar-stage-shell{overflow:visible}
  .jpos-calendar-step4 .jpos-calendar-view-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .jpos-calendar-step4 .jpos-calendar-view-group .btn{width:100%;min-width:0}
  .jpos-calendar-step4 .jpos-calendar-event.is-agenda .jpos-calendar-event-main strong{font-size:16px;white-space:normal}
  .jpos-calendar-step4 .jpos-calendar-event.is-agenda .jpos-calendar-event-main small{font-size:14px;white-space:normal}
  .jpos-calendar-step4 .jpos-calendar-event.is-agenda .jpos-calendar-event-meta>small{font-size:13px;white-space:normal}
  .jpos-calendar-step4 .jpos-calendar-step4-footnote{font-size:14px}
  .jpos-calendar-detail-drawer{width:100vw;max-width:none}
  .jpos-calendar-detail-drawer-head{padding:16px}
  .jpos-calendar-detail-drawer-head h2{font-size:21px}
  .jpos-calendar-detail-drawer-head p{font-size:14px}
  .jpos-calendar-detail-drawer-body{padding:10px;font-size:16px}
  .jpos-calendar-detail-drawer-foot{padding:10px}
  .jpos-calendar-detail-drawer-foot .btn{min-height:48px;font-size:16px}
  .jpos-calendar-detail-section{padding:12px}
  .jpos-calendar-detail-section-title{font-size:12px}
  .jpos-calendar-detail-customer{align-items:flex-start;flex-direction:column}
  .jpos-calendar-detail-customer strong{font-size:18px}
  .jpos-calendar-detail-customer span{font-size:16px}
  .jpos-calendar-detail-grid{grid-template-columns:1fr}
  .jpos-calendar-detail-grid>div.wide{grid-column:auto}
  .jpos-calendar-detail-grid span{font-size:12px}
  .jpos-calendar-detail-grid strong{font-size:16px}
  .jpos-calendar-detail-grid small{font-size:14px}
  .jpos-calendar-detail-service>strong{font-size:18px}
  .jpos-calendar-detail-service>span,.jpos-calendar-detail-service>b{font-size:16px}
  .jpos-calendar-detail-note{font-size:16px}
  .jpos-calendar-detail-statusline .jpos-calendar-status,.jpos-calendar-detail-statusline .jpos-calendar-promo{font-size:12px}
}

/* ============================================================
   JPOS M1.8.19 — CALENDAR STEP 5
   Canonical Availability Engine Inspector (READ ONLY)
   ============================================================ */
.jpos-calendar-step5 .jpos-calendar-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.jpos-calendar-step5 .jpos-calendar-head-actions .js-calendar-availability-open{min-height:40px;white-space:nowrap}

.jpos-calendar-availability-overlay[hidden],.jpos-calendar-availability-drawer[hidden]{display:none!important}
.jpos-calendar-availability-overlay{position:fixed;inset:0;z-index:1220;background:rgba(18,34,49,.48);opacity:0;transition:opacity .18s ease}
.jpos-calendar-availability-overlay.is-open{opacity:1}
.jpos-calendar-availability-drawer{position:fixed;top:0;right:0;z-index:1230;display:flex;width:min(640px,96vw);height:100vh;flex-direction:column;background:#f7f9fb;box-shadow:-16px 0 38px rgba(25,43,61,.2);transform:translateX(102%);transition:transform .18s ease}
.jpos-calendar-availability-drawer.is-open{transform:translateX(0)}
.jpos-calendar-availability-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px 15px;border-bottom:1px solid #dfe6ec;background:#fff}
.jpos-calendar-availability-head>div{min-width:0}
.jpos-calendar-availability-head h2{margin:2px 0 3px;color:#253b51;font-size:22px;line-height:1.15}
.jpos-calendar-availability-head p{margin:0;color:#75889a;font-size:13px;line-height:1.45}
.jpos-calendar-availability-head>.btn{flex:0 0 auto;min-width:42px;min-height:42px;padding:0}
.jpos-calendar-availability-body{flex:1;overflow:auto;padding:14px}
.jpos-calendar-availability-foot{display:flex;align-items:center;justify-content:flex-end;padding:12px 14px;border-top:1px solid #dfe6ec;background:#fff}
.jpos-calendar-availability-foot .btn{min-height:42px}
.jpos-calendar-availability-lock{display:flex;align-items:center;gap:7px;margin-bottom:10px;padding:8px 10px;border:1px solid #dce5ed;border-radius:9px;background:#fff;color:#607487;font-size:11px;font-weight:800;letter-spacing:.035em}

.jpos-calendar-availability-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px;border:1px solid #dfe6ec;border-radius:12px;background:#fff}
.jpos-calendar-availability-form label{display:flex;min-width:0;flex-direction:column;gap:5px;margin:0}
.jpos-calendar-availability-form label>span{color:#687c8f;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.jpos-calendar-availability-form label>small{min-height:16px;color:#778b9d;font-size:11px;line-height:1.35}
.jpos-calendar-availability-form .wide{grid-column:1/-1}
.jpos-calendar-availability-form select,.jpos-calendar-availability-form input{min-height:42px;font-size:14px}
.jpos-calendar-availability-form .btn.wide{min-height:44px;justify-content:center}

.jpos-calendar-availability-result{display:grid;gap:10px;margin-top:10px}
.jpos-calendar-availability-empty,.jpos-calendar-availability-loading,.jpos-calendar-availability-error,.jpos-calendar-availability-no-slot{display:flex;min-height:140px;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:20px;border:1px dashed #d8e2ea;border-radius:12px;background:#fff;text-align:center;color:#718497}
.jpos-calendar-availability-empty>i,.jpos-calendar-availability-loading>i,.jpos-calendar-availability-error>i{font-size:28px}
.jpos-calendar-availability-empty strong,.jpos-calendar-availability-loading strong,.jpos-calendar-availability-error strong,.jpos-calendar-availability-no-slot strong{color:#2f465c;font-size:14px}
.jpos-calendar-availability-empty span,.jpos-calendar-availability-loading span,.jpos-calendar-availability-error span,.jpos-calendar-availability-no-slot span{max-width:460px;font-size:12px;line-height:1.5}
.jpos-calendar-availability-error{border-color:#efcfd4;background:#fffafb;color:#a84c59}

.jpos-calendar-availability-summary{overflow:hidden;border:1px solid #dfe6ec;border-radius:12px;background:#fff}
.jpos-calendar-availability-summary-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border-bottom:1px solid #e6edf2}
.jpos-calendar-availability-summary-head>div:first-child{display:flex;min-width:0;flex-direction:column;gap:2px}
.jpos-calendar-availability-summary-head span{color:#6e8295;font-size:11px;font-weight:700}
.jpos-calendar-availability-summary-head strong{overflow:hidden;color:#263e55;font-size:16px;text-overflow:ellipsis;white-space:nowrap}
.jpos-calendar-availability-summary-head small{color:#718598;font-size:12px}
.jpos-calendar-availability-count{display:flex;min-width:92px;align-items:flex-end;justify-content:center;flex-direction:column;padding:8px 10px;border-radius:10px;background:#eef9f5}
.jpos-calendar-availability-count b{color:#16805e;font-size:24px;line-height:1}
.jpos-calendar-availability-count span{margin-top:3px;color:#4d776a;font-size:10px;text-transform:uppercase;letter-spacing:.03em}
.jpos-calendar-availability-rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:0}
.jpos-calendar-availability-rule-grid>div{display:flex;min-width:0;flex-direction:column;gap:3px;padding:11px 13px;border-right:1px solid #edf1f4;border-bottom:1px solid #edf1f4}
.jpos-calendar-availability-rule-grid>div:nth-child(2n){border-right:0}
.jpos-calendar-availability-rule-grid>div:nth-last-child(-n+2){border-bottom:0}
.jpos-calendar-availability-rule-grid span{color:#798c9d;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.jpos-calendar-availability-rule-grid strong{color:#2d455b;font-size:13px;line-height:1.3}
.jpos-calendar-availability-rule-grid small{color:#75889a;font-size:11px;line-height:1.4}

.jpos-calendar-availability-warning{display:flex;align-items:flex-start;gap:8px;padding:9px 11px;border:1px solid #efdba7;border-radius:10px;background:#fffaf0;color:#80622c;font-size:12px;line-height:1.45}
.jpos-calendar-availability-warning i{margin-top:1px;font-size:16px}
.jpos-calendar-availability-section{padding:12px;border:1px solid #dfe6ec;border-radius:12px;background:#fff}
.jpos-calendar-availability-section.is-danger{border-color:#efd1d5;background:#fffafb}
.jpos-calendar-availability-section h3{display:flex;align-items:center;gap:7px;margin:0 0 10px;color:#334b61;font-size:13px}
.jpos-calendar-availability-closure{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #f2e0e3}
.jpos-calendar-availability-closure:first-of-type{border-top:0}
.jpos-calendar-availability-closure strong{color:#9f4250;font-size:12px;white-space:nowrap}
.jpos-calendar-availability-closure span{color:#805963;font-size:12px;line-height:1.4;text-align:right}
.jpos-calendar-availability-slot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.jpos-calendar-availability-slot{display:flex;align-items:baseline;justify-content:center;gap:3px;padding:10px 7px;border:1px solid #d6e9e1;border-radius:9px;background:#f2fbf7;color:#216f58;text-align:center}
.jpos-calendar-availability-slot strong{font-size:13px}
.jpos-calendar-availability-slot small{font-size:10px;color:#5d897a}
.jpos-calendar-availability-no-slot{min-height:92px;grid-column:1/-1}

.jpos-calendar-availability-blocked{overflow:hidden;border:1px solid #dfe6ec;border-radius:12px;background:#fff}
.jpos-calendar-availability-blocked>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;cursor:pointer;list-style:none;color:#53697d;font-size:12px;font-weight:800}
.jpos-calendar-availability-blocked>summary::-webkit-details-marker{display:none}
.jpos-calendar-availability-blocked>summary span{color:#8293a2;font-size:11px;font-weight:600}
.jpos-calendar-availability-blocked>div{max-height:300px;overflow:auto;border-top:1px solid #e7edf2}
.jpos-calendar-availability-blocked article{display:grid;grid-template-columns:92px minmax(0,1fr);gap:9px;padding:9px 11px;border-bottom:1px solid #edf1f4}
.jpos-calendar-availability-blocked article:last-child{border-bottom:0}
.jpos-calendar-availability-blocked article b{color:#51677b;font-size:11px}
.jpos-calendar-availability-blocked article span{color:#75889a;font-size:11px;line-height:1.4}

@media(max-width:760px){
  .jpos-calendar-step5 .jpos-calendar-pagehead{gap:10px}
  .jpos-calendar-step5 .jpos-calendar-head-actions{width:100%}
  .jpos-calendar-step5 .jpos-calendar-head-actions .js-calendar-availability-open{flex:1;min-height:48px;font-size:16px}
  .jpos-calendar-step5 .jpos-calendar-readonly-badge{min-height:48px}
  .jpos-calendar-availability-drawer{width:100vw;max-width:none;font-size:16px}
  .jpos-calendar-availability-head{padding:16px}
  .jpos-calendar-availability-head h2{font-size:21px}
  .jpos-calendar-availability-head p{font-size:14px}
  .jpos-calendar-availability-body{padding:10px}
  .jpos-calendar-availability-lock{font-size:13px}
  .jpos-calendar-availability-form{grid-template-columns:1fr;gap:9px;padding:10px}
  .jpos-calendar-availability-form .wide{grid-column:auto}
  .jpos-calendar-availability-form label>span{font-size:13px}
  .jpos-calendar-availability-form label>small{font-size:13px}
  .jpos-calendar-availability-form select,.jpos-calendar-availability-form input,.jpos-calendar-availability-form .btn.wide{min-height:48px;font-size:16px}
  .jpos-calendar-availability-summary-head{align-items:flex-start;padding:12px}
  .jpos-calendar-availability-summary-head span{font-size:13px}
  .jpos-calendar-availability-summary-head strong{font-size:17px;white-space:normal}
  .jpos-calendar-availability-summary-head small{font-size:14px}
  .jpos-calendar-availability-count{min-width:86px}
  .jpos-calendar-availability-rule-grid{grid-template-columns:1fr}
  .jpos-calendar-availability-rule-grid>div,.jpos-calendar-availability-rule-grid>div:nth-child(2n),.jpos-calendar-availability-rule-grid>div:nth-last-child(-n+2){border-right:0;border-bottom:1px solid #edf1f4;padding:11px 12px}
  .jpos-calendar-availability-rule-grid>div:last-child{border-bottom:0}
  .jpos-calendar-availability-rule-grid span{font-size:12px}
  .jpos-calendar-availability-rule-grid strong{font-size:15px}
  .jpos-calendar-availability-rule-grid small{font-size:13px}
  .jpos-calendar-availability-warning,.jpos-calendar-availability-section h3{font-size:14px}
  .jpos-calendar-availability-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-calendar-availability-slot{min-height:48px}
  .jpos-calendar-availability-slot strong{font-size:16px}
  .jpos-calendar-availability-slot small{font-size:13px}
  .jpos-calendar-availability-blocked>summary{min-height:48px;font-size:14px}
  .jpos-calendar-availability-blocked>summary span{font-size:13px}
  .jpos-calendar-availability-blocked article{grid-template-columns:105px minmax(0,1fr);padding:10px 11px}
  .jpos-calendar-availability-blocked article b,.jpos-calendar-availability-blocked article span{font-size:14px}
  .jpos-calendar-availability-closure{flex-direction:column;gap:3px}
  .jpos-calendar-availability-closure strong,.jpos-calendar-availability-closure span{font-size:14px;text-align:left}
  .jpos-calendar-availability-foot{padding:10px}
  .jpos-calendar-availability-foot .btn{min-height:48px;font-size:16px}
}

/* ============================================================
   JPOS M1.8.21 — CALENDAR STEP 7
   JPOS-native Booking commands + history workspace
   ============================================================ */
.jpos-calendar-readonly-badge.is-step7{background:#eef6f7;border-color:#cfe3e5;color:#365d63}
.jpos-calendar-detail-drawer .jpos-calendar-detail-lock.is-native{background:#eef8f5;border-color:#cce9df;color:#2d6658}
.jpos-calendar-native-control{display:grid;gap:10px}
.jpos-calendar-native-banner{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #dce5ed;border-radius:11px;background:#fff}
.jpos-calendar-native-banner>i{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#eef3f6;color:#567086;font-size:17px}
.jpos-calendar-native-banner>div{display:grid;gap:2px;min-width:0}
.jpos-calendar-native-banner strong{color:#274057;font-size:13px}
.jpos-calendar-native-banner span{color:#6b7f91;font-size:12px;line-height:1.45}
.jpos-calendar-native-banner>b{padding:5px 7px;border-radius:7px;background:#f4f7f9;color:#486074;font-size:11px;white-space:nowrap}
.jpos-calendar-native-banner.is-native{border-color:#cae8dc;background:#f5fbf8}
.jpos-calendar-native-banner.is-native>i{background:#daf1e8;color:#2f6d5c}
.jpos-calendar-native-banner.is-shadow{border-color:#d8e3ef;background:#f7faff}
.jpos-calendar-native-banner.is-shadow>i{background:#e7f0fa;color:#3d668f}
.jpos-calendar-native-banner.is-warning{border-color:#f0d6a8;background:#fff9ef}
.jpos-calendar-native-banner.is-warning>i{background:#fff0cf;color:#8a641c}
.jpos-calendar-native-banner.is-muted{grid-template-columns:28px minmax(0,1fr);background:#f8fafb}
.jpos-calendar-native-warning{display:flex;gap:8px;align-items:flex-start;padding:9px 10px;border-radius:9px;background:#f6f8fa;color:#607486;font-size:12px;line-height:1.5}
.jpos-calendar-native-warning i{margin-top:2px}
.jpos-calendar-native-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.jpos-calendar-native-meta>span{display:grid;gap:2px;padding:9px 10px;border:1px solid #e1e8ee;border-radius:9px;background:#fff;min-width:0}
.jpos-calendar-native-meta small{color:#7a8c9c;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.jpos-calendar-native-meta strong{color:#2b4258;font-size:13px;overflow-wrap:anywhere}
.jpos-calendar-native-actions{display:flex;flex-wrap:wrap;gap:7px;padding-top:2px}
.jpos-calendar-native-actions .btn{min-height:40px}
.jpos-calendar-native-note-editor{display:grid;gap:7px;padding:11px;border:1px solid #e0e7ed;border-radius:10px;background:#fff}
.jpos-calendar-native-note-editor label{display:grid;gap:5px;margin:0}
.jpos-calendar-native-note-editor label>span{color:#5f7386;font-size:11px;font-weight:800;text-transform:uppercase}
.jpos-calendar-native-note-editor textarea{resize:vertical;min-height:84px;line-height:1.5}
.jpos-calendar-native-note-editor .btn{justify-self:end;min-height:40px}
.jpos-calendar-native-history{border:1px solid #e1e8ed;border-radius:10px;background:#fff;overflow:hidden}
.jpos-calendar-native-history>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;cursor:pointer;list-style:none;color:#40596f;font-size:12px;font-weight:800}
.jpos-calendar-native-history>summary::-webkit-details-marker{display:none}
.jpos-calendar-native-history>summary>span{display:flex;align-items:center;gap:7px}
.jpos-calendar-native-history>summary>b{display:grid;place-items:center;min-width:24px;height:22px;padding:0 6px;border-radius:999px;background:#eef3f6;color:#536c80;font-size:10px}
.jpos-calendar-native-timeline{display:grid;padding:0 11px 11px}
.jpos-calendar-native-timeline article{position:relative;display:grid;grid-template-columns:14px minmax(0,1fr);gap:8px;padding:8px 0}
.jpos-calendar-native-timeline article:not(:last-child):before{content:"";position:absolute;left:6px;top:21px;bottom:-7px;width:1px;background:#dce5eb}
.jpos-calendar-native-timeline-dot{position:relative;z-index:1;width:9px;height:9px;margin-top:4px;border:2px solid #fff;border-radius:50%;background:#4b8994;box-shadow:0 0 0 1px #b9ced3}
.jpos-calendar-native-timeline article>div{display:grid;gap:2px;min-width:0}
.jpos-calendar-native-timeline strong{color:#2c455b;font-size:12px}
.jpos-calendar-native-timeline small{color:#8293a2;font-size:10px}
.jpos-calendar-native-timeline p{margin:3px 0 0;color:#617689;font-size:11px;line-height:1.45}
.jpos-calendar-note-history{display:grid;padding:0 11px 11px;gap:7px}
.jpos-calendar-note-history article{padding:9px 10px;border-radius:8px;background:#f7f9fb}
.jpos-calendar-note-history article>div{display:flex;justify-content:space-between;gap:10px;align-items:center}
.jpos-calendar-note-history strong{color:#425b70;font-size:11px}
.jpos-calendar-note-history small{color:#8797a5;font-size:10px}
.jpos-calendar-note-history p{margin:5px 0 0;color:#5f7385;font-size:11px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.jpos-calendar-native-empty{padding:10px 11px;border-radius:8px;background:#f7f9fb;color:#708496;font-size:12px}

@media(max-width:600px){
  .jpos-calendar-step7{font-size:16px}
  .jpos-calendar-native-banner{grid-template-columns:34px minmax(0,1fr);padding:12px}
  .jpos-calendar-native-banner>i{width:34px;height:34px;font-size:19px}
  .jpos-calendar-native-banner>b{grid-column:2/3;justify-self:start;font-size:12px}
  .jpos-calendar-native-banner strong{font-size:15px}
  .jpos-calendar-native-banner span,.jpos-calendar-native-warning{font-size:14px}
  .jpos-calendar-native-meta{grid-template-columns:1fr}
  .jpos-calendar-native-meta small{font-size:12px}
  .jpos-calendar-native-meta strong{font-size:15px}
  .jpos-calendar-native-actions{display:grid;grid-template-columns:1fr}
  .jpos-calendar-native-actions .btn,.jpos-calendar-native-note-editor .btn{width:100%;min-height:48px;font-size:16px}
  .jpos-calendar-native-note-editor label>span{font-size:13px}
  .jpos-calendar-native-note-editor textarea{font-size:16px;min-height:110px}
  .jpos-calendar-native-history>summary{min-height:46px;font-size:14px}
  .jpos-calendar-native-timeline strong{font-size:14px}
  .jpos-calendar-native-timeline small,.jpos-calendar-native-timeline p,.jpos-calendar-note-history strong,.jpos-calendar-note-history small,.jpos-calendar-note-history p,.jpos-calendar-native-empty{font-size:13px}
}

/* ==========================================================
   CALENDAR STEP 8 — CREATE / RESCHEDULE / KEEP
   ========================================================== */
.jpos-calendar-create-overlay,.jpos-calendar-reschedule-overlay{position:fixed;inset:0;background:rgba(15,23,42,.48);z-index:1058;opacity:0;transition:opacity .18s ease}.jpos-calendar-create-overlay.is-open,.jpos-calendar-reschedule-overlay.is-open{opacity:1}
.jpos-calendar-create-drawer,.jpos-calendar-reschedule-drawer{position:fixed;z-index:1059;top:0;right:0;width:min(680px,96vw);height:100dvh;background:#f8fafc;border-left:1px solid #dbe3ee;box-shadow:-16px 0 42px rgba(15,23,42,.18);transform:translateX(102%);transition:transform .2s ease;display:flex;flex-direction:column;font-size:14px}.jpos-calendar-create-drawer.is-open,.jpos-calendar-reschedule-drawer.is-open{transform:translateX(0)}
.jpos-calendar-create-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 16px;background:#fff;border-bottom:1px solid #e2e8f0}.jpos-calendar-create-head h2{margin:2px 0 4px;font-size:22px;line-height:1.2;color:#12233f}.jpos-calendar-create-head p{margin:0;color:#64748b;line-height:1.45}.jpos-calendar-create-body{padding:16px 18px 24px;overflow:auto;flex:1}.jpos-calendar-create-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:12px 18px;background:#fff;border-top:1px solid #e2e8f0}
.jpos-calendar-write-banner{display:flex;gap:11px;align-items:flex-start;padding:12px 13px;margin-bottom:14px;border:1px solid #c7e9df;background:#effaf6;border-radius:11px;color:#145c4a}.jpos-calendar-write-banner>i{font-size:20px;margin-top:1px}.jpos-calendar-write-banner div{display:grid;gap:2px}.jpos-calendar-write-banner strong{font-size:12px;letter-spacing:.04em}.jpos-calendar-write-banner span{color:#3b675c;line-height:1.4}
.jpos-calendar-create-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.jpos-calendar-create-form>label{display:grid;gap:6px;margin:0}.jpos-calendar-create-form>label>span,.jpos-calendar-create-field-title>span{font-size:11px;letter-spacing:.045em;text-transform:uppercase;font-weight:800;color:#64748b}.jpos-calendar-create-form .wide{grid-column:1/-1}.jpos-calendar-create-form small{color:#718096}.jpos-calendar-create-form textarea{resize:vertical;min-height:76px}.jpos-calendar-create-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:9px!important;padding:10px 12px;border:1px solid #dfe6ef;border-radius:9px;background:#fff}.jpos-calendar-create-check input{width:17px;height:17px;margin:0}.jpos-calendar-create-check span{font-size:14px!important;text-transform:none!important;letter-spacing:0!important;color:#334155!important}
.jpos-calendar-create-slot-shell{border:1px solid #dfe6ef;border-radius:11px;background:#fff;padding:12px}.jpos-calendar-create-field-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.jpos-calendar-create-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.jpos-calendar-create-slots>span{grid-column:1/-1;color:#64748b;padding:8px 2px}.jpos-calendar-create-slot{appearance:none;border:1px solid #cfe4dd;background:#f3fbf8;border-radius:9px;padding:10px 8px;display:flex;align-items:baseline;justify-content:center;gap:4px;cursor:pointer;color:#145c4a;transition:.15s ease}.jpos-calendar-create-slot:hover{border-color:#22a88a;box-shadow:0 4px 12px rgba(15,118,110,.08)}.jpos-calendar-create-slot.is-selected{background:#173b66;color:#fff;border-color:#173b66;box-shadow:0 0 0 2px rgba(23,59,102,.12)}.jpos-calendar-create-slot strong{font-size:14px}.jpos-calendar-create-slot small{color:inherit;opacity:.76}.jpos-calendar-create-no-slot{grid-column:1/-1;border:1px dashed #d8dee8;border-radius:9px;padding:12px;color:#64748b;text-align:center;background:#f8fafc}
.jpos-calendar-create-customer{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px;border:1px solid #e0e7ef;border-radius:11px;background:#fff}.jpos-calendar-create-customer>label{display:grid;gap:6px}.jpos-calendar-create-customer .wide{grid-column:1/-1;position:relative}.jpos-calendar-customer-results{position:absolute;left:0;right:0;top:100%;margin-top:4px;z-index:3;max-height:220px;overflow:auto;background:#fff;border:1px solid #dbe3ed;border-radius:9px;box-shadow:0 12px 28px rgba(15,23,42,.14);padding:5px}.jpos-calendar-customer-results button{width:100%;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:7px;display:grid;gap:2px;cursor:pointer}.jpos-calendar-customer-results button:hover{background:#f1f5f9}.jpos-calendar-customer-results button strong{color:#172b4d}.jpos-calendar-customer-results button span,.jpos-calendar-customer-results .empty{font-size:12px;color:#64748b}.jpos-calendar-customer-results .empty{display:block;padding:10px}
.jpos-calendar-create-summary{margin-top:12px}.jpos-calendar-hold-reason-field b,.jpos-calendar-reschedule-drawer label b{color:#b42318}
.jpos-calendar-native-actions .js-calendar-reschedule-open{border-color:#cbd5e1;background:#fff;color:#243b5a}

@media(max-width:700px){.jpos-calendar-create-drawer,.jpos-calendar-reschedule-drawer{width:100vw;font-size:16px}.jpos-calendar-create-head{padding:16px}.jpos-calendar-create-head h2{font-size:21px}.jpos-calendar-create-body{padding:12px 12px 20px}.jpos-calendar-create-form{grid-template-columns:1fr;gap:11px}.jpos-calendar-create-form .wide,.jpos-calendar-create-customer .wide{grid-column:1}.jpos-calendar-create-customer{grid-template-columns:1fr}.jpos-calendar-create-form>label>span,.jpos-calendar-create-field-title>span{font-size:12px}.jpos-calendar-create-check span{font-size:16px!important}.jpos-calendar-create-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-calendar-create-slot{padding:12px 8px}.jpos-calendar-create-slot strong{font-size:16px}.jpos-calendar-create-foot{padding:10px 12px}.jpos-calendar-create-foot .btn{flex:1 1 44%;min-height:44px}.jpos-calendar-head-actions{gap:6px}.jpos-calendar-head-actions .btn{min-height:42px}}

/* ============================================================
   CALENDAR STEP 9 — FILE / FOTO REQUEST
   ============================================================ */
.jpos-calendar-files-section{display:grid;gap:10px}
.jpos-calendar-files-title{justify-content:space-between;margin-bottom:0}
.jpos-calendar-files-title>div{display:flex;align-items:center;gap:7px}
.jpos-calendar-files-title .btn{min-height:36px;padding:7px 10px;font-size:12px;text-transform:none;letter-spacing:0}
.jpos-calendar-files-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.jpos-calendar-files-summary>span{display:grid;gap:1px;padding:9px 10px;border:1px solid #e1e8ee;border-radius:9px;background:#f9fbfc}
.jpos-calendar-files-summary b{color:#274057;font-size:16px;line-height:1.1}
.jpos-calendar-files-summary small{color:#748899;font-size:10px;font-weight:700}
.jpos-calendar-files-block{display:grid;gap:8px}
.jpos-calendar-files-block-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:0 2px}
.jpos-calendar-files-block-head strong{color:#334d63;font-size:12px}
.jpos-calendar-files-block-head small{color:#8293a2;font-size:10px;text-align:right}
.jpos-calendar-file-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.jpos-calendar-file-card{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:9px;align-items:center;min-width:0;padding:8px;border:1px solid #e0e7ed;border-radius:10px;background:#fff}
.jpos-calendar-file-card.is-legacy{grid-template-columns:52px minmax(0,1fr) auto;background:#fafbfc;border-style:dashed}
.jpos-calendar-file-thumb{display:grid;place-items:center;width:64px;height:58px;padding:0;border:0;border-radius:8px;overflow:hidden;background:#eef3f6;color:#587084;cursor:pointer}
.jpos-calendar-file-card.is-legacy .jpos-calendar-file-thumb{width:52px;height:50px;cursor:default}
.jpos-calendar-file-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.jpos-calendar-file-thumb i{font-size:22px}
.jpos-calendar-file-info{display:grid;gap:2px;min-width:0}
.jpos-calendar-file-info strong{overflow:hidden;color:#2b4258;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.jpos-calendar-file-info span{color:#64798b;font-size:10px}
.jpos-calendar-file-info small{color:#8998a5;font-size:9px}
.jpos-calendar-file-info p{margin:3px 0 0;color:#536b7e;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.jpos-calendar-file-actions{display:flex;gap:4px;align-items:center}
.jpos-calendar-file-actions .btn{display:grid;place-items:center;width:34px;min-width:34px;height:34px;padding:0}
.jpos-calendar-file-source{align-self:start;padding:3px 5px;border-radius:999px;background:#eef2f6;color:#6a7d8e;font-size:8px;font-weight:900;letter-spacing:.04em}
.jpos-calendar-legacy-drive{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 10px;border:1px solid #dce5ed;border-radius:9px;background:#f8fbfd;color:#324e66;text-decoration:none}
.jpos-calendar-legacy-drive>i:first-child{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#eef4f7;color:#4c7185}
.jpos-calendar-legacy-drive span{display:grid;gap:1px;min-width:0}
.jpos-calendar-legacy-drive b{font-size:11px}
.jpos-calendar-legacy-drive small{color:#7b8e9e;font-size:10px;overflow-wrap:anywhere}
.jpos-calendar-legacy-note{padding:8px 10px;border-radius:8px;background:#f7f9fb;color:#607486;font-size:11px;line-height:1.45}
.jpos-calendar-file-history{display:grid;padding:0 11px 11px}
.jpos-calendar-file-history article{display:grid;grid-template-columns:20px minmax(0,1fr);gap:7px;padding:8px 0;border-bottom:1px solid #edf1f4}
.jpos-calendar-file-history article:last-child{border-bottom:0}
.jpos-calendar-file-history article>i{margin-top:2px;color:#578493}
.jpos-calendar-file-history article>div{display:grid;gap:2px}
.jpos-calendar-file-history strong{color:#344f65;font-size:11px}
.jpos-calendar-file-history small{color:#8796a3;font-size:9px}
.jpos-calendar-file-history p{margin:2px 0 0;color:#627789;font-size:10px;line-height:1.4}
.jpos-calendar-detail-loading.is-compact{min-height:70px}
.jpos-calendar-file-upload-form input[type=file]{display:block;width:100%;padding:9px;border:1px solid #d9e2e9;border-radius:8px;background:#fff}

@media(max-width:900px){
  .jpos-calendar-file-list{grid-template-columns:1fr}
}
@media(max-width:640px){
  .jpos-calendar-files-title{align-items:flex-start}
  .jpos-calendar-files-title .btn{min-height:44px;font-size:15px}
  .jpos-calendar-files-summary{grid-template-columns:1fr 1fr 1fr}
  .jpos-calendar-files-summary b{font-size:18px}
  .jpos-calendar-files-summary small{font-size:11px}
  .jpos-calendar-files-block-head{align-items:flex-start;flex-direction:column;gap:2px}
  .jpos-calendar-files-block-head strong{font-size:15px}
  .jpos-calendar-files-block-head small{font-size:12px;text-align:left}
  .jpos-calendar-file-card{grid-template-columns:72px minmax(0,1fr);padding:10px}
  .jpos-calendar-file-card.is-legacy{grid-template-columns:58px minmax(0,1fr)}
  .jpos-calendar-file-thumb{width:72px;height:68px}
  .jpos-calendar-file-card.is-legacy .jpos-calendar-file-thumb{width:58px;height:56px}
  .jpos-calendar-file-info strong{font-size:16px}
  .jpos-calendar-file-info span,.jpos-calendar-file-info p{font-size:13px}
  .jpos-calendar-file-info small{font-size:12px}
  .jpos-calendar-file-actions{grid-column:1/-1;justify-content:flex-end}
  .jpos-calendar-file-actions .btn{width:44px;min-width:44px;height:44px;font-size:16px}
  .jpos-calendar-file-source{position:absolute;right:8px;top:8px;font-size:10px}
  .jpos-calendar-legacy-drive{grid-template-columns:36px minmax(0,1fr) auto;padding:11px}
  .jpos-calendar-legacy-drive>i:first-child{width:36px;height:36px}
  .jpos-calendar-legacy-drive b{font-size:14px}
  .jpos-calendar-legacy-drive small,.jpos-calendar-legacy-note{font-size:13px}
  .jpos-calendar-file-history strong{font-size:14px}
  .jpos-calendar-file-history small,.jpos-calendar-file-history p{font-size:12px}
}

/* ============================================================
   JPOS Calendar STEP 10 — WhatsApp / Customer Communication
   ============================================================ */
.jpos-calendar-communication-section{display:grid;gap:10px}
.jpos-calendar-communication-title{justify-content:space-between;margin-bottom:0}
.jpos-calendar-communication-title>div{display:flex;align-items:center;gap:7px}
.jpos-calendar-communication-badge{padding:4px 7px;border-radius:999px;background:#eaf6f1;color:#26705c;font-size:9px;letter-spacing:.05em}
.jpos-calendar-comm-summary{display:grid;grid-template-columns:1.4fr repeat(3,minmax(0,.7fr));gap:7px}
.jpos-calendar-comm-summary>span{display:grid;gap:2px;min-width:0;padding:9px 10px;border:1px solid #e1e8ee;border-radius:9px;background:#f9fbfc}
.jpos-calendar-comm-summary small{color:#7a8d9d;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.jpos-calendar-comm-summary strong{overflow:hidden;color:#294359;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.jpos-calendar-comm-composer{display:grid;gap:9px;padding:11px;border:1px solid #dce6ed;border-radius:11px;background:#fff}
.jpos-calendar-comm-templates{display:flex;gap:6px;flex-wrap:wrap}
.jpos-calendar-comm-templates .btn{min-height:32px;padding:6px 9px;font-size:11px;text-transform:none;letter-spacing:0}
.jpos-calendar-comm-composer label{display:grid;gap:5px;margin:0}
.jpos-calendar-comm-composer label>span{color:#5a7084;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.jpos-calendar-comm-composer textarea{resize:vertical;min-height:86px;font-size:14px;line-height:1.5}
.jpos-calendar-comm-selected-wrap{min-height:34px;padding:7px 9px;border:1px dashed #d8e1e8;border-radius:9px;background:#f9fbfc;color:#7b8c9a;font-size:10px}
.jpos-calendar-comm-selected{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:8px;align-items:center}
.jpos-calendar-comm-selected>i{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#eaf3f6;color:#456d80;font-size:17px}
.jpos-calendar-comm-selected>div{display:grid;gap:1px;min-width:0}
.jpos-calendar-comm-selected strong{overflow:hidden;color:#314c62;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.jpos-calendar-comm-selected small{color:#8494a2;font-size:9px}
.jpos-calendar-comm-selected .btn{display:grid;place-items:center;width:30px;min-width:30px;height:30px;padding:0}
.jpos-calendar-comm-compose-actions{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center}
.jpos-calendar-comm-compose-actions .btn{min-height:38px;padding:7px 11px;text-transform:none;letter-spacing:0}
.jpos-calendar-comm-compose-actions small{color:#8695a2;font-size:9px;line-height:1.35}
.jpos-calendar-comm-history-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:2px 1px 0}
.jpos-calendar-comm-history-head strong{color:#334d63;font-size:12px}
.jpos-calendar-comm-history-head small{color:#8696a4;font-size:9px}
.jpos-calendar-comm-history{display:grid;gap:8px;max-height:460px;overflow:auto;padding:9px;border:1px solid #e1e8ed;border-radius:11px;background:#f4f7f9;scrollbar-width:thin}
.jpos-calendar-comm-bubble{display:grid;gap:6px;width:min(88%,440px);padding:9px 10px;border:1px solid #dfe7ec;border-radius:11px;background:#fff;box-shadow:0 1px 1px rgba(30,50,68,.03)}
.jpos-calendar-comm-bubble.is-out{justify-self:end;border-bottom-right-radius:4px;background:#eef8f4;border-color:#d4eade}
.jpos-calendar-comm-bubble.is-in{justify-self:start;border-bottom-left-radius:4px}
.jpos-calendar-comm-bubble.is-legacy{border-style:dashed}
.jpos-calendar-comm-bubble-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.jpos-calendar-comm-bubble-head strong{color:#334e63;font-size:10px}
.jpos-calendar-comm-bubble p{margin:0;color:#243c51;font-size:12px;line-height:1.52;overflow-wrap:anywhere}
.jpos-calendar-comm-bubble footer{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#8393a0;font-size:9px}
.jpos-calendar-comm-bubble footer small{white-space:nowrap}
.jpos-calendar-comm-status,.jpos-calendar-comm-source{padding:3px 6px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.03em;white-space:nowrap}
.jpos-calendar-comm-status.is-sent{background:#dff4e9;color:#257158}
.jpos-calendar-comm-status.is-failed{background:#fde9e7;color:#ad4038}
.jpos-calendar-comm-status.is-queued,.jpos-calendar-comm-status.is-sending{background:#fff2cf;color:#8a6718}
.jpos-calendar-comm-source{background:#edf1f4;color:#758594}
.jpos-calendar-comm-media{display:flex;align-items:center;gap:7px;max-width:100%;padding:7px;border:1px solid #dce5eb;border-radius:9px;background:#fff;color:#35536a;text-align:left;text-decoration:none;cursor:pointer}
.jpos-calendar-comm-media.is-image{display:grid;gap:5px;padding:5px}
.jpos-calendar-comm-media.is-image img{display:block;width:100%;max-height:190px;object-fit:cover;border-radius:7px}
.jpos-calendar-comm-media span{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.jpos-calendar-comm-media b{margin-left:auto;padding:2px 5px;border-radius:999px;background:#eef2f5;color:#758695;font-size:7px}
.jpos-calendar-comm-error{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:7px;align-items:center;padding:7px 8px;border-radius:8px;background:#fff0ee;color:#9c4139;font-size:10px}
.jpos-calendar-comm-error .btn{min-height:28px;padding:4px 8px;font-size:9px;text-transform:none;letter-spacing:0}

@media(max-width:767px){
  .jpos-calendar-comm-summary{grid-template-columns:1fr 1fr}
  .jpos-calendar-comm-summary>span:first-child{grid-column:1/-1}
  .jpos-calendar-comm-summary small{font-size:11px}.jpos-calendar-comm-summary strong{font-size:15px}
  .jpos-calendar-comm-templates .btn{min-height:42px;font-size:14px}
  .jpos-calendar-comm-composer label>span{font-size:12px}.jpos-calendar-comm-composer textarea{min-height:110px;font-size:16px}
  .jpos-calendar-comm-selected-wrap{font-size:13px}.jpos-calendar-comm-selected strong{font-size:14px}.jpos-calendar-comm-selected small{font-size:12px}
  .jpos-calendar-comm-compose-actions{grid-template-columns:1fr 1fr}.jpos-calendar-comm-compose-actions small{grid-column:1/-1;grid-row:2;font-size:12px}.jpos-calendar-comm-compose-actions .btn{min-height:46px;font-size:14px}
  .jpos-calendar-comm-history-head{align-items:flex-start;flex-direction:column;gap:2px}.jpos-calendar-comm-history-head strong{font-size:15px}.jpos-calendar-comm-history-head small{font-size:12px}
  .jpos-calendar-comm-history{max-height:520px;padding:8px}.jpos-calendar-comm-bubble{width:94%;padding:10px}.jpos-calendar-comm-bubble-head strong{font-size:13px}.jpos-calendar-comm-bubble p{font-size:15px}.jpos-calendar-comm-bubble footer{font-size:11px}.jpos-calendar-comm-status,.jpos-calendar-comm-source{font-size:10px}.jpos-calendar-comm-media span{font-size:13px}.jpos-calendar-comm-error{font-size:13px}.jpos-calendar-comm-error .btn{min-height:38px;font-size:12px}
}

/* ============================================================
   JPOS Calendar STEP 11 — Survey + Reminder WhatsApp
   ============================================================ */
.jpos-calendar-survey-section{display:grid;gap:10px}
.jpos-calendar-survey-step{padding:4px 7px;border-radius:999px;background:#eef2ff;color:#4055a5;font-size:9px;letter-spacing:.05em}
.jpos-calendar-survey-summary{display:grid;grid-template-columns:1.15fr .8fr 1.25fr;gap:7px}
.jpos-calendar-survey-summary>div{display:grid;gap:2px;min-width:0;padding:9px 10px;border:1px solid #e1e8ee;border-radius:9px;background:#f9fbfc}
.jpos-calendar-survey-summary span{color:#7a8d9d;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.jpos-calendar-survey-summary strong{overflow:hidden;color:#294359;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.jpos-calendar-survey-state.is-submitted,.jpos-calendar-survey-state.is-legacy_submitted{background:#edf9f3;border-color:#d4eadf}
.jpos-calendar-survey-state.is-sent,.jpos-calendar-survey-state.is-legacy_sent{background:#f3f7ff;border-color:#dce4f5}
.jpos-calendar-survey-actions{display:grid;grid-template-columns:auto auto 1fr;gap:8px;align-items:center;padding:10px;border:1px solid #dfe7ee;border-radius:10px;background:#fff}
.jpos-calendar-survey-actions .btn{min-height:38px;padding:7px 11px;text-transform:none;letter-spacing:0}
.jpos-calendar-survey-actions small{color:#80909e;font-size:10px;line-height:1.4}
.jpos-calendar-survey-block{display:grid;gap:7px;padding:10px;border:1px solid #dfe7ee;border-radius:10px;background:#fff}
.jpos-calendar-survey-block>strong{color:#334d63;font-size:11px}
.jpos-calendar-survey-block.is-legacy{border-style:dashed;background:#fafbfc}
.jpos-calendar-survey-response{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.jpos-calendar-survey-response>div{display:grid;gap:2px;padding:8px;border-radius:8px;background:#f5f8fa}
.jpos-calendar-survey-response span{color:#7b8d9b;font-size:9px;text-transform:uppercase;font-weight:800}
.jpos-calendar-survey-response strong{color:#2f4b61;font-size:13px}
.jpos-calendar-survey-response blockquote{grid-column:1/-1;margin:0;padding:9px 10px;border-left:3px solid #5f8796;border-radius:0 8px 8px 0;background:#f6f9fb;color:#496276;font-size:11px;line-height:1.5}
.jpos-calendar-survey-response>small{grid-column:1/-1;color:#8796a4;font-size:9px;font-weight:800}
.jpos-calendar-survey-legacy-log{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px dashed #d9e1e7;border-radius:9px;background:#fafbfc;color:#6c7f8e;font-size:10px}
.jpos-calendar-survey-legacy-log b{color:#536b7e}
.jpos-calendar-survey-history{display:grid;padding:0 11px 11px}
.jpos-calendar-survey-history article{display:grid;grid-template-columns:20px minmax(0,1fr);gap:7px;padding:8px 0;border-bottom:1px solid #edf1f4}
.jpos-calendar-survey-history article:last-child{border-bottom:0}
.jpos-calendar-survey-history article>i{margin-top:2px;color:#587f94}
.jpos-calendar-survey-history article>div{display:grid;gap:2px}
.jpos-calendar-survey-history strong{color:#344f65;font-size:11px}
.jpos-calendar-survey-history small{color:#8796a3;font-size:9px}
.jpos-calendar-survey-history p{margin:2px 0 0;color:#9a4941;font-size:10px;line-height:1.4}
@media(max-width:767px){
  .jpos-calendar-survey-summary{grid-template-columns:1fr 1fr}.jpos-calendar-survey-summary>div:last-child{grid-column:1/-1}
  .jpos-calendar-survey-summary span{font-size:11px}.jpos-calendar-survey-summary strong{font-size:15px}
  .jpos-calendar-survey-actions{grid-template-columns:1fr 1fr}.jpos-calendar-survey-actions small{grid-column:1/-1;font-size:12px}.jpos-calendar-survey-actions .btn{min-height:46px;font-size:14px}
  .jpos-calendar-survey-block>strong{font-size:14px}.jpos-calendar-survey-response span{font-size:11px}.jpos-calendar-survey-response strong{font-size:16px}.jpos-calendar-survey-response blockquote{font-size:14px}.jpos-calendar-survey-response>small{font-size:11px}
  .jpos-calendar-survey-legacy-log{align-items:flex-start;flex-direction:column;font-size:12px}.jpos-calendar-survey-history strong{font-size:14px}.jpos-calendar-survey-history small,.jpos-calendar-survey-history p{font-size:12px}
}

/* ============================================================
   JPOS Calendar STEP 12A/B — RBAC + Jadwal Tim
   ============================================================ */
.jpos-calendar-access-mode{display:flex;align-items:center;gap:10px;margin:10px 0 0;padding:10px 12px;border:1px solid #dbe6ec;border-radius:11px;background:#f8fbfc;color:#3d586c}
.jpos-calendar-access-mode[hidden]{display:none!important}
.jpos-calendar-access-mode>i{display:grid;place-items:center;width:32px;min-width:32px;height:32px;border-radius:9px;background:#e8f3f6;color:#2796a4;font-size:18px}
.jpos-calendar-access-mode>div{display:grid;gap:2px;min-width:0}
.jpos-calendar-access-mode strong{font-size:12px;color:#263f52}
.jpos-calendar-access-mode span{font-size:10px;color:#718493;line-height:1.4}
.jpos-calendar-access-mode.is-team{border-color:#cce6e7;background:#f1fbfa}
.jpos-calendar-access-mode.is-team>i{background:#dff4f1;color:#168b8f}
.jpos-calendar-access-mode.is-team strong{color:#17747a}
@media(max-width:767px){
  .jpos-calendar-access-mode{padding:11px 12px}
  .jpos-calendar-access-mode strong{font-size:15px}
  .jpos-calendar-access-mode span{font-size:13px}
}


/* ============================================================
   CALENDAR UI FIX — CLEAN TOP + STICKY PAGE HEADER
   - Banner status STEP/access mode dihapus dari view Kalender.
   - Header Kalender + action tetap terlihat saat workspace scroll.
   ============================================================ */
.jpos-calendar-pagehead{
  position:sticky;
  top:0;
  z-index:60;
  margin-bottom:12px;
  padding:10px 0 12px;
  background:rgba(247,249,251,.97);
  border-bottom:1px solid #dde5ec;
  box-shadow:0 8px 18px -18px rgba(20,42,61,.55);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.jpos-calendar-pagehead .jpos-pagehead-copy{min-width:0}
.jpos-calendar-pagehead .jpos-pagehead-copy p{max-width:920px}

@media(max-width:767px){
  .jpos-calendar-pagehead{
    gap:8px;
    padding:9px 0 10px;
  }
  .jpos-calendar-pagehead .jpos-pagehead-copy p{
    font-size:14px;
    line-height:1.35;
  }
  .jpos-calendar-head-actions{
    width:100%;
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:2px;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  .jpos-calendar-head-actions .btn,
  .jpos-calendar-head-actions .jpos-calendar-readonly-badge{
    flex:0 0 auto!important;
    white-space:nowrap;
  }
}

/* ========================================================================== 
   MASTER M1.1 — JAM OPERASIONAL STORE
   ========================================================================== */
.jpos-operating-hours-page{font-size:14px}
.jpos-operating-hours-pagehead .jpos-pagehead-copy{min-width:0;max-width:900px}
.jpos-operating-hours-pagehead .jpos-pagehead-copy p{max-width:880px}
.jpos-operating-hours-principle{display:flex;gap:13px;align-items:flex-start;padding:15px 17px;margin-bottom:16px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:14px;color:#1e3a8a}
.jpos-operating-hours-principle>i{font-size:25px;line-height:1;flex:0 0 auto}
.jpos-operating-hours-principle>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.jpos-operating-hours-principle strong{font-size:14px}
.jpos-operating-hours-principle span{color:#475569;line-height:1.5}
.jpos-operating-hours-store-card,.jpos-operating-hours-card{margin-bottom:16px}
.jpos-operating-hours-store-row{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:18px;align-items:end;padding:16px 18px}
.jpos-operating-hours-store-row>label{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0}
.jpos-operating-hours-store-row>label>span{font-size:12px;font-weight:800;color:#475569;text-transform:uppercase;letter-spacing:.035em}
.jpos-operating-hours-store-row .form-control{min-height:43px;width:100%}
.jpos-operating-hours-store-meta{display:flex;flex-direction:column;gap:2px;min-width:0;padding:8px 0}
.jpos-operating-hours-store-meta strong{font-size:14px;color:#0f172a}
.jpos-operating-hours-store-meta span{font-size:12px;color:#64748b}
.jpos-operating-hours-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.jpos-operating-hours-table{margin:0;min-width:1080px}
.jpos-operating-hours-table thead th{white-space:nowrap;vertical-align:middle}
.jpos-operating-hours-table tbody td{vertical-align:middle}
.jpos-operating-hours-table .form-control{height:40px;min-width:112px;padding:7px 9px;font-size:14px}
.jpos-operating-hours-table tr.is-closed td{background:#f8fafc}
.jpos-operating-hours-table tr.is-closed .js-oh-time{opacity:.5}
.jpos-oh-day{display:inline-flex;align-items:center;min-width:72px;color:#0f172a}
.jpos-oh-time-pair{display:grid;grid-template-columns:minmax(105px,1fr) auto minmax(105px,1fr);align-items:center;gap:7px;min-width:248px}
.jpos-oh-time-pair>span{color:#94a3b8;font-weight:700}
.jpos-oh-switch{display:inline-flex;align-items:center;gap:8px;margin:0;cursor:pointer;white-space:nowrap}
.jpos-oh-switch input{position:absolute;opacity:0;pointer-events:none}
.jpos-oh-switch-ui{position:relative;width:38px;height:22px;border-radius:999px;background:#cbd5e1;transition:.18s ease;box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)}
.jpos-oh-switch-ui:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.22);transition:.18s ease}
.jpos-oh-switch input:checked+.jpos-oh-switch-ui{background:#16a34a}
.jpos-oh-switch input:checked+.jpos-oh-switch-ui:after{transform:translateX(16px)}
.jpos-oh-switch input:disabled+.jpos-oh-switch-ui{opacity:.55;cursor:not-allowed}
.js-oh-status-text{font-size:11px;letter-spacing:.03em;min-width:42px}
.js-oh-status-text.is-open{color:#15803d}.js-oh-status-text.is-closed{color:#64748b}
.jpos-operating-hours-savebar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 18px;border-top:1px solid #e2e8f0;background:#f8fafc;border-radius:0 0 12px 12px}
.jpos-operating-hours-save-note{display:flex;align-items:center;gap:7px;min-width:0;color:#64748b}
.jpos-operating-hours-save-note i{font-size:18px;flex:0 0 auto}
.jpos-operating-hours-save.is-dirty:not(:disabled){box-shadow:0 5px 15px rgba(37,99,235,.18)}
@media(max-width:900px){
  .jpos-operating-hours-store-row{grid-template-columns:1fr;gap:8px;align-items:start}
  .jpos-operating-hours-store-meta{padding:2px 0 0}
}
@media(max-width:767px){
  .jpos-operating-hours-page{font-size:16px}
  .jpos-operating-hours-principle{padding:14px;gap:10px}
  .jpos-operating-hours-principle strong{font-size:16px}
  .jpos-operating-hours-principle span{font-size:14px}
  .jpos-operating-hours-store-row{padding:14px}
  .jpos-operating-hours-store-row>label>span{font-size:14px}
  .jpos-operating-hours-store-row .form-control{min-height:46px;font-size:16px}
  .jpos-operating-hours-store-meta strong{font-size:16px}
  .jpos-operating-hours-store-meta span{font-size:14px}
  .jpos-operating-hours-table-wrap{overflow:visible}
  .jpos-operating-hours-table{min-width:0;width:100%;display:block}
  .jpos-operating-hours-table thead{display:none}
  .jpos-operating-hours-table tbody{display:grid;gap:10px;padding:0 12px 12px}
  .jpos-operating-hours-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:11px 12px;padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
  .jpos-operating-hours-table tbody tr.is-closed{background:#f8fafc}
  .jpos-operating-hours-table tbody td{display:flex;flex-direction:column;gap:5px;padding:0!important;border:0!important;min-width:0;background:transparent!important}
  .jpos-operating-hours-table tbody td:before{content:attr(data-label);font-size:12px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.025em}
  .jpos-operating-hours-table tbody td:first-child,.jpos-operating-hours-table tbody td:nth-child(2){grid-column:auto}
  .jpos-operating-hours-table tbody td:nth-child(5),.jpos-operating-hours-table tbody td:nth-child(6){grid-column:1/-1}
  .jpos-oh-day{font-size:18px;min-height:31px;align-items:center}
  .jpos-oh-switch{min-height:31px}
  .js-oh-status-text{font-size:13px}
  .jpos-operating-hours-table .form-control{height:46px;min-width:0;width:100%;font-size:16px}
  .jpos-oh-time-pair{min-width:0;grid-template-columns:1fr auto 1fr;gap:6px}
  .jpos-operating-hours-savebar{position:sticky;bottom:0;z-index:15;flex-direction:column;align-items:stretch;padding:11px 12px calc(11px + env(safe-area-inset-bottom));box-shadow:0 -8px 20px rgba(15,23,42,.08)}
  .jpos-operating-hours-save-note{font-size:14px}
  .jpos-operating-hours-savebar .btn{width:100%;min-height:46px;font-size:16px}
}
@media(max-width:420px){
  .jpos-operating-hours-table tbody tr{grid-template-columns:1fr}
  .jpos-operating-hours-table tbody td:nth-child(5),.jpos-operating-hours-table tbody td:nth-child(6){grid-column:auto}
}

/* ========================================================================== 
   MASTER M1.2 — STORE · UI/UX BLUEPRINT V2 (TABLE FIRST + MODAL)
   ========================================================================== */
.jpos-store-master-page{font-size:14px}
.jpos-store-pagehead .jpos-pagehead-copy{min-width:0;max-width:880px}
.jpos-store-toolbar{display:grid;grid-template-columns:180px 180px minmax(260px,1fr);gap:8px;align-items:end;margin:0 0 10px;padding:8px;border:1px solid #dbe5f0;border-radius:10px;background:#f8fafc}
.jpos-store-filter-field{display:flex;flex-direction:column;gap:4px;margin:0;min-width:0}.jpos-store-filter-field>span{font-size:10px;font-weight:800;letter-spacing:.04em;color:#64748b;text-transform:uppercase}.jpos-store-toolbar .form-control{height:36px;min-height:36px;font-size:14px;padding-top:6px;padding-bottom:6px}
.jpos-store-search{position:relative}.jpos-store-search>i{position:absolute;left:11px;top:50%;transform:translateY(-50%);font-size:16px;color:#94a3b8;pointer-events:none}.jpos-store-search .form-control{padding-left:33px}
.jpos-store-table-shell{border:1px solid #dbe5f0;border-radius:10px;background:#fff;overflow:hidden}.jpos-store-table-scroll{overflow:auto;max-width:100%}
.jpos-store-master-table{width:100%;min-width:540px;border-collapse:separate;border-spacing:0;table-layout:fixed}.jpos-store-master-table thead th{position:sticky;top:0;z-index:2;background:#f8fafc;border-bottom:1px solid #dbe5f0;padding:7px 9px;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#64748b;text-align:left;white-space:nowrap}.jpos-store-master-table tbody td{padding:7px 9px;border-bottom:1px solid #eef2f7;vertical-align:middle;font-size:13px;color:#334155;transition:background-color .12s ease,color .12s ease}.jpos-store-master-table tbody tr:last-child td{border-bottom:0}.jpos-store-master-table tbody tr.js-store-master-row{cursor:pointer;outline:0}.jpos-store-master-table tbody tr.js-store-master-row:hover:not(.is-inactive) td{background:#f8fafc}.jpos-store-master-table tbody tr.js-store-master-row.is-selected td{background:#eaf8fb}.jpos-store-master-table tbody tr.js-store-master-row.is-inactive td{background:#eef2f6;color:#8793a4}.jpos-store-master-table tbody tr.js-store-master-row.is-inactive td:first-child{box-shadow:inset 4px 0 0 #c3ccd8}.jpos-store-master-table tbody tr.js-store-master-row.is-inactive td.sm-col-name strong{color:#667386}.jpos-store-master-table tbody tr.js-store-master-row.is-inactive td.sm-col-name small{color:#98a3b2}.jpos-store-master-table tbody tr.js-store-master-row.is-inactive .sm-type-pill{background:#e2e7ed;color:#7d8898}.jpos-store-master-table tbody tr.js-store-master-row.is-inactive:hover td{background:#e8edf2}.jpos-store-master-table tbody tr.js-store-master-row.is-inactive.is-selected td{background:#e3edf1}.jpos-store-master-table tbody tr.js-store-master-row:focus-visible td{box-shadow:inset 0 0 0 2px #0ea5b7}
.jpos-store-master-table .sm-col-name{width:48%}.jpos-store-master-table .sm-col-type{width:18%}.jpos-store-master-table .sm-col-service{width:34%}.jpos-store-master-table td.sm-col-name strong{display:block;font-size:13px;color:#0f172a;line-height:1.25}.jpos-store-master-table td.sm-col-name small{display:block;margin-top:1px;font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sm-type-pill{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border-radius:6px;background:#eef2f7;color:#475569;font-size:11px;font-weight:800}
.jpos-store-table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 9px;border-top:1px solid #dbe5f0;background:#f8fafc;font-size:11px;color:#64748b}.jpos-store-table-footer .js-store-table-count{font-weight:800;color:#334155}.jpos-store-table-hint{text-align:right}
.sm-modal-window{width:min(960px,calc(100vw - 34px));max-height:calc(100dvh - 34px)}.sm-modal-window .jpos-modal-header{padding:12px 14px}.sm-modal-window .jpos-modal-body{padding:0;overflow:auto}.sm-modal-window .jpos-modal-footer{position:sticky;bottom:0;z-index:4;padding:9px 12px;background:#f8fafc;border-top:1px solid #dbe5f0;display:flex;align-items:center;justify-content:space-between;gap:10px}.sm-modal-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 12px;background:#f8fafc;border-bottom:1px solid #e2e8f0;color:#64748b;font-size:11px}.sm-modal-meta b.is-on{color:#15803d}.sm-modal-meta b.is-off{color:#64748b}.sm-create-note{display:flex;gap:8px;align-items:flex-start;margin:10px 12px 0;padding:9px 10px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#475569;font-size:12px}.sm-create-note>i{font-size:18px;color:#2563eb;flex:0 0 auto}.sm-form-section{padding:11px 12px;border-bottom:1px solid #e2e8f0}.sm-form-section:last-child{border-bottom:0}.sm-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.sm-section-title>span{font-size:11px;font-weight:900;color:#334155;letter-spacing:.04em}.sm-section-title>small{font-size:10px;color:#8190a5;text-align:right}.sm-grid-2,.sm-grid-3{display:grid;gap:8px}.sm-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm-span-2{grid-column:span 2}.sm-span-3{grid-column:1/-1}.sm-field{display:flex;flex-direction:column;gap:4px;margin:0;min-width:0}.sm-field>span{font-size:10px;font-weight:800;color:#536176}.sm-field>span>b{color:#dc2626}.sm-field>small{font-size:10px;line-height:1.3;color:#8190a5}.sm-modal-window .form-control{min-height:36px;height:36px;font-size:14px;padding:6px 9px}.sm-modal-window textarea.form-control{height:auto;min-height:62px;resize:vertical}.sm-color-field{display:grid;grid-template-columns:42px minmax(0,1fr);gap:6px;align-items:center}.sm-color-field input[type=color]{width:42px;height:36px;padding:3px;border:1px solid #d6dee9;border-radius:7px;background:#fff}.sm-public-switches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:8px}.sm-switch-field{display:flex;align-items:flex-start;gap:7px;margin:0;padding:8px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;cursor:pointer}.sm-switch-field input{margin-top:2px}.sm-switch-field>span{display:flex;flex-direction:column;gap:1px;min-width:0}.sm-switch-field b{font-size:12px;color:#0f172a}.sm-switch-field small{font-size:10px;line-height:1.3;color:#7c8798}.sm-readiness-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.sm-readiness-card{display:flex;align-items:center;gap:7px;min-width:0;padding:7px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.sm-readiness-card>i{font-size:18px;flex:0 0 auto}.sm-readiness-card>span{display:flex;flex-direction:column;min-width:0}.sm-readiness-card small{font-size:9px;line-height:1.2;color:#64748b}.sm-readiness-card b{font-size:14px;color:#0f172a}.sm-readiness-card.is-ok>i{color:#16a34a}.sm-readiness-card.is-warn>i{color:#f59e0b}.sm-modal-footer-left,.sm-modal-footer-right{display:flex;align-items:center;gap:7px}.sm-modal-footer-right{margin-left:auto}.sm-dirty-note{font-size:10px;color:#7c8798;margin-right:3px}
@media(max-width:900px){.jpos-store-toolbar{grid-template-columns:150px 150px minmax(220px,1fr)}.sm-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-span-3{grid-column:1/-1}.sm-readiness-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sm-public-switches{grid-template-columns:1fr}}
@media(max-width:767px){.jpos-store-master-page{font-size:16px}.jpos-store-toolbar{grid-template-columns:1fr 1fr;padding:8px;gap:7px}.jpos-store-search-field{grid-column:1/-1}.jpos-store-filter-field>span{font-size:12px}.jpos-store-toolbar .form-control{height:44px;min-height:44px;font-size:16px}.jpos-store-master-table{min-width:520px}.jpos-store-master-table thead th{font-size:11px;padding:8px}.jpos-store-master-table tbody td{font-size:14px;padding:9px 8px}.jpos-store-master-table td.sm-col-name strong{font-size:15px}.jpos-store-master-table td.sm-col-name small{font-size:12px}.jpos-store-table-footer{font-size:12px;padding:7px 8px}.sm-modal-window{width:100vw;max-width:none;height:100dvh;max-height:none;border-radius:0}.sm-modal-window .jpos-modal-header{position:sticky;top:0;z-index:5;padding:12px}.sm-modal-window .jpos-modal-body{flex:1}.sm-modal-window .jpos-modal-footer{padding:9px 10px calc(9px + env(safe-area-inset-bottom));flex-direction:column;align-items:stretch}.sm-grid-2,.sm-grid-3{grid-template-columns:1fr}.sm-span-2,.sm-span-3{grid-column:auto}.sm-field>span{font-size:13px}.sm-field>small,.sm-section-title>small{font-size:12px}.sm-modal-window .form-control{min-height:46px;height:46px;font-size:16px}.sm-modal-window textarea.form-control{height:auto;min-height:86px}.sm-color-field input[type=color]{height:46px}.sm-public-switches{grid-template-columns:1fr}.sm-switch-field{padding:10px}.sm-switch-field b{font-size:15px}.sm-switch-field small{font-size:12px}.sm-readiness-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-readiness-card small{font-size:11px}.sm-readiness-card b{font-size:17px}.sm-modal-footer-left,.sm-modal-footer-right{width:100%}.sm-modal-footer-right{display:grid;grid-template-columns:1fr 1fr}.sm-modal-footer-right .sm-dirty-note{grid-column:1/-1}.sm-modal-footer-right .btn{min-height:44px;font-size:16px}.sm-modal-footer-left .btn{width:100%;min-height:44px;font-size:16px}}
@media(max-width:420px){.jpos-store-toolbar{grid-template-columns:1fr}.jpos-store-search-field{grid-column:auto}.sm-readiness-grid{grid-template-columns:1fr}}

/* ========================================================================== 
   MASTER M1.3 — KATEGORI + STORE CATEGORY
   ========================================================================== */
.jpos-category-master-page{font-size:14px}
.jpos-category-master-pagehead .jpos-pagehead-copy{min-width:0;max-width:980px}
.jpos-category-master-principle{display:flex;gap:13px;align-items:flex-start;padding:15px 17px;margin-bottom:14px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:14px;color:#1e3a8a}
.jpos-category-master-principle>i{font-size:25px;line-height:1;flex:0 0 auto}.jpos-category-master-principle>div{display:flex;flex-direction:column;gap:3px;min-width:0}.jpos-category-master-principle strong{font-size:14px}.jpos-category-master-principle span{color:#475569;line-height:1.5}
.jpos-category-master-modebar{display:flex;gap:7px;padding:6px;margin:0 0 14px;border:1px solid #dbe5f0;background:#f8fafc;border-radius:12px;width:max-content;max-width:100%}.jpos-category-master-modebar button{appearance:none;border:0;background:transparent;color:#475569;border-radius:9px;padding:9px 13px;display:inline-flex;align-items:center;gap:7px;font-weight:800;font-size:13px;cursor:pointer}.jpos-category-master-modebar button i{font-size:18px}.jpos-category-master-modebar button.is-active{background:#fff;color:#0f172a;box-shadow:0 1px 4px rgba(15,23,42,.11)}
.jpos-category-master-layout{display:grid;grid-template-columns:minmax(285px,350px) minmax(0,1fr);gap:16px;align-items:start}.jpos-category-list-card,.jpos-category-detail-card{min-width:0;margin-bottom:16px}
.jpos-category-search-wrap{position:relative;padding:0 12px 10px}.jpos-category-search-wrap>i{position:absolute;left:25px;top:50%;transform:translateY(-68%);color:#94a3b8;font-size:17px;pointer-events:none}.jpos-category-search-wrap .form-control{padding-left:36px;min-height:40px}.jpos-category-search-wrap.is-compact{padding:0;min-width:230px}.jpos-category-search-wrap.is-compact>i{left:12px;transform:translateY(-50%)}
.jpos-category-list{display:flex;flex-direction:column;padding:0 12px 12px;gap:8px}.jpos-category-list-item{appearance:none;border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:11px;text-align:left;display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:9px;align-items:center;cursor:pointer;transition:.16s ease;color:#0f172a}.jpos-category-list-item:hover{border-color:#94a3b8;background:#f8fafc}.jpos-category-list-item.active{border-color:#0ea5b7;background:#ecfeff;box-shadow:0 0 0 1px rgba(14,165,183,.08)}.jpos-category-list-dot{width:9px;height:38px;border-radius:999px;background:var(--category-dot,#999);display:block}.jpos-category-list-main{display:flex;flex-direction:column;gap:3px;min-width:0}.jpos-category-list-main strong{font-size:14px;line-height:1.25}.jpos-category-list-main small{font-size:11px;color:#64748b;overflow-wrap:anywhere}.jpos-category-list-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px;white-space:nowrap}.jpos-category-list-side small{font-size:10px;color:#64748b}.jpos-category-status,.jpos-category-status-badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.03em;white-space:nowrap}.jpos-category-status.is-on,.jpos-category-status-badge.is-on{background:#dcfce7;color:#15803d}.jpos-category-status.is-off,.jpos-category-status-badge.is-off{background:#e2e8f0;color:#64748b}
.jpos-category-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid #e2e8f0}.jpos-category-detail-head h3{margin:2px 0 2px;font-size:17px;color:#0f172a}.jpos-category-detail-head>div:first-child>span:last-child{font-size:12px;color:#64748b}.jpos-category-status-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.jpos-category-section{padding:18px;border-bottom:1px solid #e2e8f0}.jpos-category-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.jpos-category-section-title h4{margin:2px 0 0;font-size:16px;color:#0f172a}.jpos-category-lock-note,.jpos-category-extension-note{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#64748b;text-align:right}.jpos-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.jpos-category-span-2{grid-column:span 2}.jpos-category-span-3{grid-column:1/-1}.jpos-category-master-page .jpos-field{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0}.jpos-category-master-page .jpos-field>span{font-size:12px;font-weight:800;color:#475569;text-transform:uppercase;letter-spacing:.025em}.jpos-category-master-page .jpos-field>span>b{color:#dc2626}.jpos-category-master-page .form-control{min-height:43px;font-size:14px}.jpos-category-master-page textarea.form-control{resize:vertical;min-height:80px}.jpos-category-master-page input[readonly]{background:#f8fafc;color:#64748b}.jpos-field-help{font-size:11px;color:#64748b;line-height:1.35}.jpos-category-unit-field{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.jpos-category-unit-field>span{font-size:12px;color:#64748b}.jpos-category-color-field{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px;align-items:center}.jpos-category-color-field input[type=color]{width:52px;height:43px;border:1px solid #d6dee9;border-radius:8px;background:#fff;padding:4px;cursor:pointer}
.jpos-category-break-defaults{display:grid;grid-template-columns:auto repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}.jpos-category-break-title{display:flex;align-items:center;padding:0 8px 0 0;font-size:12px;font-weight:800;color:#475569;text-transform:uppercase;letter-spacing:.025em}.jpos-category-public-switches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.jpos-category-toggle{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:start;border:1px solid #e2e8f0;border-radius:12px;padding:12px;margin:0;background:#fff;cursor:pointer}.jpos-category-toggle input{position:absolute;opacity:0;pointer-events:none}.jpos-category-toggle-ui{position:relative;width:38px;height:22px;border-radius:999px;background:#cbd5e1;transition:.18s ease;margin-top:1px}.jpos-category-toggle-ui:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.22);transition:.18s ease}.jpos-category-toggle input:checked+.jpos-category-toggle-ui{background:#16a34a}.jpos-category-toggle input:checked+.jpos-category-toggle-ui:after{transform:translateX(16px)}.jpos-category-toggle input:disabled+.jpos-category-toggle-ui{opacity:.5}.jpos-category-toggle>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}.jpos-category-toggle b{font-size:13px;color:#0f172a}.jpos-category-toggle small{font-size:11px;line-height:1.4;color:#64748b}
.jpos-category-readiness{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.jpos-category-readiness-card{display:flex;align-items:center;gap:9px;border:1px solid #e2e8f0;border-radius:11px;padding:10px;background:#fff;min-width:0}.jpos-category-readiness-card>i{font-size:22px;flex:0 0 auto}.jpos-category-readiness-card>span{display:flex;flex-direction:column;min-width:0}.jpos-category-readiness-card small{font-size:10px;line-height:1.25;color:#64748b}.jpos-category-readiness-card b{font-size:17px;color:#0f172a}.jpos-category-readiness-card.is-ok>i{color:#16a34a}.jpos-category-readiness-card.is-warn>i{color:#f59e0b}.jpos-category-savebar,.jpos-store-category-savebar{position:sticky;bottom:0;z-index:14;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 18px;border-top:1px solid #e2e8f0;background:#f8fafc;border-radius:0 0 12px 12px;box-shadow:0 -4px 12px rgba(15,23,42,.04)}.jpos-category-save-note,.jpos-store-category-save-note{display:flex;align-items:center;gap:7px;min-width:0;color:#64748b}.jpos-category-save-note i,.jpos-store-category-save-note i{font-size:18px;flex:0 0 auto}.jpos-category-save.is-dirty:not(:disabled),.jpos-store-category-save.is-dirty:not(:disabled){box-shadow:0 5px 15px rgba(37,99,235,.18)}
.jpos-store-category-store-card{margin-bottom:14px}.jpos-store-category-store-row{display:grid;grid-template-columns:minmax(260px,365px) minmax(0,1fr);gap:16px;align-items:center;padding:16px}.jpos-store-category-store-row>label{display:flex;flex-direction:column;gap:6px;margin:0}.jpos-store-category-store-row>label>span{font-size:12px;font-weight:800;color:#475569;text-transform:uppercase}.jpos-store-category-meta{display:flex;flex-direction:column;gap:2px;min-width:0}.jpos-store-category-meta strong{font-size:15px;color:#0f172a}.jpos-store-category-meta span{font-size:12px;color:#64748b}.jpos-store-category-card{min-width:0}.jpos-store-category-head{align-items:center;gap:16px}.jpos-store-category-head h3{margin-bottom:2px}.jpos-store-category-head p{margin:0;color:#64748b;font-size:12px;line-height:1.45}.jpos-store-category-table-wrap{overflow:auto;max-width:100%;border-top:1px solid #e2e8f0}.jpos-store-category-table{min-width:1120px;margin:0}.jpos-store-category-table th{position:sticky;top:0;background:#f8fafc;z-index:2;white-space:nowrap;font-size:11px;color:#475569;text-transform:uppercase;letter-spacing:.02em}.jpos-store-category-table td{vertical-align:middle}.jpos-store-category-name{display:flex;align-items:center;gap:9px;min-width:210px}.jpos-store-category-name-dot{display:block;width:8px;height:34px;border-radius:999px;background:var(--sc-dot,#999);flex:0 0 auto}.jpos-store-category-name>span{display:flex;flex-direction:column;gap:2px}.jpos-store-category-name strong{font-size:13px;color:#0f172a}.jpos-store-category-name small{font-size:10px;color:#64748b}.jpos-store-category-table .form-control{min-height:38px;height:38px;font-size:13px;padding-top:6px;padding-bottom:6px}.jpos-store-category-table input[type=number]{min-width:90px}.jpos-store-category-table select{min-width:145px}.jpos-store-category-color{display:grid;grid-template-columns:38px 98px;gap:6px;align-items:center}.jpos-store-category-color input[type=color]{width:38px;height:38px;padding:3px;border:1px solid #d6dee9;border-radius:7px;background:#fff}.jpos-store-category-switch{display:inline-flex;align-items:center;gap:7px;cursor:pointer;white-space:nowrap}.jpos-store-category-switch input{position:absolute;opacity:0}.jpos-store-category-switch-ui{position:relative;width:36px;height:20px;border-radius:999px;background:#cbd5e1;transition:.18s ease}.jpos-store-category-switch-ui:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;transition:.18s ease}.jpos-store-category-switch input:checked+.jpos-store-category-switch-ui{background:#16a34a}.jpos-store-category-switch input:checked+.jpos-store-category-switch-ui:after{transform:translateX(16px)}.jpos-store-category-effective{display:block;margin-top:3px;font-size:10px;color:#64748b;white-space:nowrap}
@media(max-width:1180px){.jpos-category-master-layout{grid-template-columns:minmax(250px,310px) minmax(0,1fr)}.jpos-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-category-span-3{grid-column:1/-1}.jpos-category-readiness{grid-template-columns:repeat(3,minmax(0,1fr))}.jpos-category-public-switches{grid-template-columns:1fr}.jpos-category-break-defaults{grid-template-columns:1fr 1fr}.jpos-category-break-title{grid-column:1/-1}}
@media(max-width:900px){.jpos-category-master-layout{grid-template-columns:1fr}.jpos-category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-store-category-store-row{grid-template-columns:1fr}.jpos-store-category-head{flex-direction:column;align-items:stretch}.jpos-category-search-wrap.is-compact{min-width:0}}
@media(max-width:767px){
  .jpos-category-master-page{font-size:16px}.jpos-category-master-principle{padding:14px;gap:10px}.jpos-category-master-principle strong{font-size:16px}.jpos-category-master-principle span{font-size:14px}.jpos-category-master-modebar{width:100%;display:grid;grid-template-columns:1fr 1fr}.jpos-category-master-modebar button{justify-content:center;min-height:46px;font-size:14px}
  .jpos-category-list{grid-template-columns:1fr;padding:0 10px 10px}.jpos-category-list-item{padding:13px}.jpos-category-list-main strong{font-size:16px}.jpos-category-list-main small,.jpos-category-list-side small{font-size:12px}.jpos-category-status,.jpos-category-status-badge{font-size:12px}.jpos-category-search-wrap{padding-left:10px;padding-right:10px}.jpos-category-search-wrap .form-control{min-height:46px;font-size:16px}.jpos-category-search-wrap>i{left:23px}
  .jpos-category-detail-head{flex-direction:column;align-items:stretch;padding:14px 12px}.jpos-category-detail-head h3{font-size:18px}.jpos-category-status-actions{justify-content:flex-start}.jpos-category-section{padding:14px 12px}.jpos-category-section-title{flex-direction:column;gap:5px}.jpos-category-section-title h4{font-size:18px}.jpos-category-lock-note,.jpos-category-extension-note{font-size:13px;text-align:left}.jpos-category-grid{grid-template-columns:1fr}.jpos-category-span-2,.jpos-category-span-3{grid-column:auto}.jpos-category-master-page .jpos-field>span{font-size:14px}.jpos-category-master-page .form-control{min-height:46px;font-size:16px}.jpos-category-master-page textarea.form-control{min-height:90px}.jpos-field-help{font-size:13px}.jpos-category-color-field input[type=color]{height:46px}.jpos-category-break-defaults,.jpos-category-public-switches{grid-template-columns:1fr}.jpos-category-break-title{grid-column:auto;font-size:14px}.jpos-category-toggle{padding:13px}.jpos-category-toggle b{font-size:15px}.jpos-category-toggle small{font-size:13px}.jpos-category-readiness{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-category-readiness-card small{font-size:12px}.jpos-category-readiness-card b{font-size:18px}.jpos-category-savebar,.jpos-store-category-savebar{flex-direction:column;align-items:stretch;padding:11px 12px calc(11px + env(safe-area-inset-bottom));box-shadow:0 -8px 20px rgba(15,23,42,.08)}.jpos-category-save-note,.jpos-store-category-save-note{font-size:14px}.jpos-category-savebar .btn,.jpos-store-category-savebar .btn{width:100%;min-height:46px;font-size:16px}
  .jpos-store-category-store-row{padding:14px 12px}.jpos-store-category-store-row>label>span{font-size:14px}.jpos-store-category-store-row .form-control{min-height:46px;font-size:16px}.jpos-store-category-meta strong{font-size:16px}.jpos-store-category-meta span,.jpos-store-category-head p{font-size:14px}.jpos-store-category-table-wrap{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.jpos-store-category-table{min-width:1100px}.jpos-store-category-table th{font-size:12px}.jpos-store-category-table .form-control{font-size:16px;min-height:44px;height:44px}.jpos-store-category-name strong{font-size:15px}.jpos-store-category-name small,.jpos-store-category-effective{font-size:12px}
}
@media(max-width:420px){.jpos-category-readiness{grid-template-columns:1fr}}
/* M1.3 runtime class aliases used by JS renderer */
.jpos-sc-name{display:flex;align-items:center;gap:9px;min-width:210px}.jpos-sc-dot{display:block;width:8px;height:34px;border-radius:999px;background:var(--sc-dot,#999);flex:0 0 auto}.jpos-sc-name>span{display:flex;flex-direction:column;gap:2px}.jpos-sc-name strong{font-size:13px;color:#0f172a}.jpos-sc-name small{font-size:10px;color:#64748b}.jpos-sc-duration{display:flex;flex-direction:column;gap:3px}.jpos-sc-duration small{font-size:10px;color:#64748b;white-space:nowrap}.jpos-store-category-table tr.is-off{background:#f8fafc}.jpos-store-category-table tr.is-off .jpos-sc-name{opacity:.72}
@media(max-width:767px){.jpos-sc-name strong{font-size:15px}.jpos-sc-name small,.jpos-sc-duration small{font-size:12px}}

/* MASTER M1.4 — Subkategori */
.jpos-subcategory-master-page{font-size:14px}
.jpos-subcategory-filter-card{display:grid;grid-template-columns:minmax(220px,320px) minmax(220px,360px) minmax(0,1fr);gap:18px;align-items:end;padding:16px;margin-bottom:16px}
.jpos-subcategory-filter-card .jpos-field{margin:0;display:flex;flex-direction:column;gap:6px}
.jpos-subcategory-filter-card .jpos-field>span{font-size:12px;font-weight:800;color:#475569;text-transform:uppercase}
.jpos-subcategory-category-meta{display:flex;flex-direction:column;gap:3px;min-width:0;padding-bottom:3px}
.jpos-subcategory-category-meta strong{font-size:15px;color:#0f172a}
.jpos-subcategory-category-meta span{font-size:12px;color:#64748b}
.jpos-subcategory-master-page .form-control{font-size:14px;min-height:43px}
.jpos-subcategory-master-page textarea.form-control{resize:vertical;min-height:82px}
.jpos-subcategory-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.jpos-subcategory-master-page .jpos-money-field{min-height:43px}
.jpos-subcategory-master-page .jpos-money-field .form-control{min-height:41px}
@media(max-width:900px){
  .jpos-subcategory-filter-card{grid-template-columns:1fr}
  .jpos-subcategory-rules{grid-template-columns:1fr}
}
@media(max-width:767px){
  .jpos-subcategory-master-page{font-size:16px}
  .jpos-subcategory-filter-card{padding:14px 12px;gap:10px}
  .jpos-subcategory-filter-card .jpos-field>span{font-size:14px}
  .jpos-subcategory-category-meta strong{font-size:16px}
  .jpos-subcategory-category-meta span{font-size:14px}
  .jpos-subcategory-master-page .form-control{font-size:16px;min-height:46px}
  .jpos-subcategory-master-page textarea.form-control{min-height:90px}
}

/* MASTER M1.5 — Paket / Layanan */
.jpos-package-master-page{font-size:14px}
.jpos-package-filter-card{display:grid;grid-template-columns:minmax(180px,250px) minmax(180px,260px) minmax(200px,300px) minmax(0,1fr);gap:14px;align-items:end;padding:16px;margin-bottom:16px}
.jpos-package-filter-card .jpos-field{margin:0;display:flex;flex-direction:column;gap:6px}
.jpos-package-filter-card .jpos-field>span{font-size:12px;font-weight:800;color:#475569;text-transform:uppercase}
.jpos-package-context-meta{display:flex;flex-direction:column;gap:3px;min-width:0;padding-bottom:3px}
.jpos-package-context-meta strong{font-size:15px;color:#0f172a}
.jpos-package-context-meta span{font-size:12px;color:#64748b}
.jpos-package-master-page .form-control{font-size:14px;min-height:43px}
.jpos-package-master-page textarea.form-control{resize:vertical}
.jpos-package-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.jpos-package-option-card{border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#f8fafc;display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);gap:12px;align-items:center}
.jpos-package-option-card .jpos-field{margin:0}
.jpos-package-canonical-info{margin-top:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.jpos-package-canonical-info>div{border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;background:#fff;display:flex;flex-direction:column;gap:3px}
.jpos-package-canonical-info small{font-size:11px;text-transform:uppercase;font-weight:800;color:#64748b}
.jpos-package-canonical-info b{font-size:13px;color:#0f172a;word-break:break-word}
@media(max-width:1100px){
  .jpos-package-filter-card{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-package-option-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
  .jpos-package-canonical-info{grid-template-columns:1fr}
}
@media(max-width:767px){
  .jpos-package-master-page{font-size:16px}
  .jpos-package-filter-card{grid-template-columns:1fr;padding:14px 12px}
  .jpos-package-filter-card .jpos-field>span{font-size:14px}
  .jpos-package-context-meta strong{font-size:16px}
  .jpos-package-context-meta span{font-size:14px}
  .jpos-package-master-page .form-control{font-size:16px;min-height:46px}
  .jpos-package-option-card{grid-template-columns:1fr}
}

/* MASTER M1.6 — Master Item */
.jpos-item-master-page{font-size:14px}
.jpos-item-filter-card{display:grid;grid-template-columns:minmax(230px,360px) minmax(0,1fr);gap:18px;align-items:end;padding:16px;margin-bottom:16px}
.jpos-item-filter-card .jpos-field{margin:0;display:flex;flex-direction:column;gap:6px}
.jpos-item-filter-card .jpos-field>span{font-size:12px;font-weight:800;color:#475569;text-transform:uppercase}
.jpos-item-category-meta{display:flex;flex-direction:column;gap:3px;padding-bottom:3px}
.jpos-item-category-meta strong{font-size:15px;color:#0f172a}
.jpos-item-category-meta span{font-size:12px;color:#64748b}
.jpos-item-master-page .form-control{font-size:14px;min-height:43px}
.jpos-item-media-note{display:flex;flex-direction:column;gap:4px;border-left:1px solid #e2e8f0;padding-left:14px}
.jpos-item-media-note small{font-size:11px;text-transform:uppercase;font-weight:800;color:#64748b}
.jpos-item-media-note b{font-size:13px;color:#0f172a}
@media(max-width:900px){
 .jpos-item-filter-card{grid-template-columns:1fr}
}
@media(max-width:767px){
 .jpos-item-master-page{font-size:16px}
 .jpos-item-filter-card{padding:14px 12px}
 .jpos-item-filter-card .jpos-field>span{font-size:14px}
 .jpos-item-category-meta strong{font-size:16px}
 .jpos-item-category-meta span{font-size:14px}
 .jpos-item-master-page .form-control{font-size:16px;min-height:46px}
 .jpos-item-media-note{border-left:0;border-top:1px solid #e2e8f0;padding-left:0;padding-top:10px}
}

/* ==========================================================================
   MASTER M1.6.1 — MASTER ITEM + STORE
   Compact table-first UI + responsive modal.
   ========================================================================== */
.jpos-item-master-page{font-size:14px}
.jpos-item-pagehead{margin-bottom:10px}
.jpos-item-pagehead .jpos-pagehead-copy p{margin-bottom:0}
.jpos-item-toolbar{
  display:grid;
  grid-template-columns:minmax(170px,240px) minmax(150px,210px) minmax(150px,210px) minmax(240px,1fr);
  gap:8px;
  align-items:end;
  margin-bottom:8px;
}
.jpos-item-filter-field{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin:0;
  min-width:0;
}
.jpos-item-filter-field>span{
  color:#66788b;
  font-size:11px;
  font-weight:800;
  line-height:1.1;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.jpos-item-toolbar .form-control{
  min-height:36px;
  height:36px;
  padding:6px 9px;
  font-size:14px;
}
.jpos-item-search{position:relative}
.jpos-item-search>i{
  position:absolute;
  left:10px;
  top:50%;
  z-index:1;
  color:#8190a0;
  transform:translateY(-50%);
}
.jpos-item-search .form-control{padding-left:31px}
.jpos-item-table-shell{
  overflow:hidden;
  border:1px solid #dfe6ee;
  border-radius:8px;
  background:#fff;
}
.jpos-item-table-scroll{
  overflow:auto;
  max-height:calc(100dvh - 245px);
  min-height:280px;
}
.jpos-item-master-table{
  width:100%;
  min-width:690px;
  margin:0;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  color:#26394f;
  font-size:14px;
}
.jpos-item-master-table thead th{
  position:sticky;
  top:0;
  z-index:3;
  height:34px;
  padding:5px 8px;
  border-bottom:1px solid #ccd6e0;
  background:#f3f6f9;
  color:#53667a;
  font-size:11px;
  font-weight:800;
  line-height:1.15;
  text-transform:uppercase;
  letter-spacing:.025em;
  white-space:nowrap;
}
.jpos-item-master-table tbody tr{
  height:37px;
  outline:0;
  cursor:default;
}
.jpos-item-master-table tbody td{
  height:37px;
  padding:4px 8px;
  border-bottom:1px solid #edf1f5;
  background:#fff;
  vertical-align:middle;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.jpos-item-master-table tbody tr:hover td{background:#f7fbff}
.jpos-item-master-table tbody tr.is-selected td{
  background:#eaf4ff;
  box-shadow:inset 0 1px #b7d6f5,inset 0 -1px #b7d6f5;
}
.jpos-item-master-table tbody tr.is-inactive td{
  background:#f1f3f5;
  color:#7d8996;
}
.jpos-item-master-table tbody tr.is-inactive:hover td{background:#e9edf0}
.jpos-item-master-table tbody tr.is-unavailable td{
  background:#f7f8fa;
  color:#84909c;
}
.jpos-item-master-table tbody tr.is-stockout td{
  background:#fff2f2;
}
.jpos-item-master-table .im-col-name{width:40%}
.jpos-item-master-table .im-col-category{width:17%}
.jpos-item-master-table .im-col-price{width:17%}
.jpos-item-master-table .im-col-unit{width:12%}
.jpos-item-master-table .im-col-store{width:14%}
.jpos-item-master-page.is-store-specific .im-col-store{display:none}
.jpos-item-master-page.is-store-specific .im-col-name{width:49%}
.jpos-item-master-page.is-store-specific .im-col-category{width:19%}
.jpos-item-master-page.is-store-specific .im-col-price{width:19%}
.jpos-item-master-page.is-store-specific .im-col-unit{width:13%}
.im-row-dot{
  display:inline-block;
  width:7px;
  height:7px;
  margin-right:7px;
  border-radius:50%;
  background:#27ae60;
  vertical-align:1px;
}
.is-inactive .im-row-dot{background:#a8b0b8}
.is-unavailable .im-row-dot{background:#c6ccd2}
.is-stockout .im-row-dot{background:#d64545}
.im-item-name{font-weight:650}
.im-category-text{
  color:#657589;
  font-size:12px;
  font-weight:750;
}
.im-store-count{
  color:#68798a;
  font-size:12px;
  font-weight:700;
}
.jpos-item-table-footer{
  min-height:32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:5px 8px;
  border-top:1px solid #dfe6ee;
  background:#fafbfd;
  color:#6f7f90;
  font-size:11px;
}
.jpos-item-table-hint{white-space:nowrap}

/* Item master modal */
.im-modal-window{
  width:min(1040px,calc(100vw - 24px))!important;
  max-height:min(92dvh,900px)!important;
  border-radius:12px!important;
}
.im-modal-window .jpos-modal-header{
  padding:11px 14px 9px;
}
.im-modal-window .jpos-modal-body{
  padding:10px 14px 12px;
}
.im-modal-window .jpos-modal-footer{
  position:sticky;
  bottom:0;
  z-index:3;
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 14px;
  background:#fbfcfd;
}
.im-modal-footer-left,.im-modal-footer-right{
  display:flex;
  align-items:center;
  gap:7px;
}
.im-modal-footer-right{margin-left:auto}
.im-dirty-note{
  margin-right:4px;
  color:#768697;
  font-size:11px;
}
.im-modal-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin:-2px 0 8px;
  color:#738293;
  font-size:11px;
}
.im-modal-meta b{
  padding:2px 6px;
  border-radius:999px;
  background:#eef2f5;
  color:#657383;
  font-size:10px;
}
.im-modal-meta b.is-on{background:#e9f8ef;color:#21834b}
.im-form-section{
  margin:0 0 9px;
  padding:9px 10px 10px;
  border:1px solid #e1e7ed;
  border-radius:8px;
  background:#fff;
}
.im-section-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin:0 0 7px;
}
.im-section-title>span{
  color:#5f7082;
  font-size:10px;
  font-weight:850;
  line-height:1;
  letter-spacing:.05em;
}
.im-section-title>small{
  color:#8a98a7;
  font-size:10px;
}
.im-grid-3{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:7px 9px;
}
.im-grid-2{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(150px,1fr);
  gap:7px 9px;
}
.im-span-2{grid-column:span 1}
.im-field{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
  margin:0;
}
.im-field>span{
  color:#56677a;
  font-size:11px;
  font-weight:750;
}
.im-field>small{
  color:#8a98a6;
  font-size:10px;
  line-height:1.2;
}
.im-field .form-control,
.im-modal-window .form-control{
  min-height:35px;
  height:35px;
  padding:5px 8px;
  border-radius:6px;
  font-size:14px;
}
.im-field textarea.form-control,
.im-modal-window textarea.form-control{
  height:auto;
  min-height:62px;
  resize:vertical;
}
.im-field-full{
  margin-top:7px;
}
.im-store-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 8px;
  overflow:hidden;
  border:1px solid #e4e9ee;
  border-radius:6px;
}
.im-store-row{
  min-height:35px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:0;
  padding:5px 8px;
  border-bottom:1px solid #edf1f4;
  cursor:pointer;
}
.im-store-row:nth-last-child(-n+2){border-bottom:0}
.im-store-row.is-inactive{
  background:#f2f4f6;
  color:#89939e;
}
.im-store-name{
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
}
.im-store-name strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
}
.im-store-name small{
  padding:1px 5px;
  border-radius:999px;
  background:#e2e6ea;
  font-size:9px;
  font-weight:800;
}
.im-store-row input{
  width:17px;
  height:17px;
  flex:0 0 17px;
}
.im-empty-mini{
  padding:8px;
  color:#8795a3;
  font-size:11px;
}
.im-rule-grid{
  grid-template-columns:1fr 1fr 1fr;
}
.im-switch-field{
  min-height:35px;
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:5px 8px;
  border:1px solid #e2e7ec;
  border-radius:6px;
  background:#fafbfd;
}
.im-switch-field input{
  width:17px;
  height:17px;
  flex:0 0 17px;
}
.im-switch-field span{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.im-switch-field b{
  color:#536579;
  font-size:11px;
}
.im-switch-field small{
  color:#8b98a6;
  font-size:9px;
  line-height:1.15;
}
.im-public-switches{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-top:7px;
}
.im-readiness-section{margin-bottom:0}
.im-readiness-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}
.im-readiness-grid>div{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:6px 8px;
  border:1px solid #e4e9ee;
  border-radius:6px;
  background:#fafbfd;
}
.im-readiness-grid small{
  color:#7a8999;
  font-size:10px;
}
.im-readiness-grid b{
  color:#2d4056;
  font-size:14px;
}

@media(max-width:1024px){
  .jpos-item-toolbar{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .im-grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .im-grid-3 .im-span-2{grid-column:span 1}
  .im-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:767px){
  .jpos-item-master-page{font-size:16px}
  .jpos-item-pagehead{
    gap:8px;
    margin-bottom:8px;
  }
  .jpos-item-toolbar{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }
  .jpos-item-search-field{grid-column:1/-1}
  .jpos-item-filter-field>span{font-size:12px}
  .jpos-item-toolbar .form-control{
    min-height:42px;
    height:42px;
    font-size:16px;
  }
  .jpos-item-table-scroll{
    max-height:calc(100dvh - 300px);
    min-height:240px;
  }
  .jpos-item-master-table{
    min-width:640px;
    font-size:16px;
  }
  .jpos-item-master-table thead th{
    height:39px;
    padding:6px 8px;
    font-size:12px;
  }
  .jpos-item-master-table tbody tr,
  .jpos-item-master-table tbody td{
    height:43px;
  }
  .jpos-item-master-table tbody td{
    padding:5px 8px;
  }
  .im-category-text,.im-store-count{font-size:13px}
  .jpos-item-table-footer{
    min-height:36px;
    font-size:12px;
  }
  .jpos-item-table-hint{display:none}

  .im-modal-window{
    width:100%!important;
    max-height:96dvh!important;
    border-radius:14px 14px 0 0!important;
  }
  .im-modal-window .jpos-modal-header{
    padding:10px 12px;
  }
  .im-modal-window .jpos-modal-body{
    padding:8px;
  }
  .im-modal-window .jpos-modal-footer{
    padding:8px calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
    flex-wrap:wrap;
  }
  .im-modal-footer-left,.im-modal-footer-right{
    width:100%;
  }
  .im-modal-footer-right{
    margin-left:0;
    justify-content:flex-end;
  }
  .im-dirty-note{display:none}
  .im-form-section{
    margin-bottom:7px;
    padding:8px;
  }
  .im-grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }
  .im-grid-2{
    grid-template-columns:1fr;
    gap:6px;
  }
  .im-rule-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .im-rule-grid .im-field{grid-column:1/-1}
  .im-field>span{font-size:13px}
  .im-field>small{font-size:11px}
  .im-field .form-control,
  .im-modal-window .form-control{
    min-height:43px;
    height:43px;
    font-size:16px;
  }
  .im-field textarea.form-control,
  .im-modal-window textarea.form-control{
    height:auto;
    min-height:72px;
  }
  .im-store-list{
    grid-template-columns:1fr;
  }
  .im-store-row{
    min-height:42px;
  }
  .im-store-row:nth-last-child(-n+2){border-bottom:1px solid #edf1f4}
  .im-store-row:last-child{border-bottom:0}
  .im-store-name strong{font-size:14px}
  .im-switch-field{
    min-height:42px;
  }
  .im-switch-field b{font-size:13px}
  .im-switch-field small{font-size:11px}
  .im-public-switches{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .im-readiness-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:420px){
  .jpos-item-toolbar{grid-template-columns:1fr}
  .jpos-item-search-field{grid-column:auto}
  .im-grid-3,.im-rule-grid,.im-public-switches{grid-template-columns:1fr}
  .im-modal-footer-left,.im-modal-footer-right{gap:5px}
  .im-modal-footer-right .btn{flex:1}
}


/* ========================================================================== 
   MASTER M1.7 — RELASI KATALOG / ADD-ON
   Follows JPOS MASTER DATA UI/UX BLUEPRINT V1
   ========================================================================== */
.jpos-cr-page{font-size:14px}
.jpos-cr-pagehead{margin-bottom:10px}
.jpos-cr-principle{display:flex;gap:10px;align-items:flex-start;margin:0 0 10px;padding:9px 12px;border:1px solid #dbe4ee;border-radius:9px;background:#f8fafc;color:#334155}
.jpos-cr-principle i{font-size:20px;line-height:1.1;color:#64748b}
.jpos-cr-principle div{display:flex;flex-direction:column;gap:2px}
.jpos-cr-principle strong{font-size:13px}
.jpos-cr-principle span{font-size:12px;color:#64748b}
.jpos-cr-filterbar{display:grid;grid-template-columns:minmax(150px,1.15fr) minmax(145px,1fr) minmax(155px,1.1fr) minmax(145px,.9fr) minmax(125px,.78fr) minmax(190px,1.3fr);gap:8px;align-items:end;padding:10px;margin-bottom:10px}
.jpos-cr-filterbar label{margin:0;display:flex;flex-direction:column;gap:3px;min-width:0}
.jpos-cr-filterbar label>span{font-size:11px;line-height:1.15;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.02em}
.jpos-cr-filterbar .form-control{font-size:14px;min-height:36px;height:36px;padding-top:5px;padding-bottom:5px}
.jpos-cr-table-card{padding:0;overflow:hidden}
.jpos-cr-table-meta{min-height:34px;padding:7px 10px;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff}
.jpos-cr-table-meta>span{font-weight:700;font-size:12px;color:#334155}
.jpos-cr-table-meta>small{font-size:11px;color:#94a3b8}
.jpos-cr-table-wrap{max-height:calc(100vh - 310px);overflow:auto;background:#fff}
.jpos-cr-table{width:100%;min-width:860px;border-collapse:separate;border-spacing:0;table-layout:fixed}
.jpos-cr-table thead th{position:sticky;top:0;z-index:3;height:34px;padding:5px 8px;background:#f1f5f9;border-bottom:1px solid #cbd5e1;color:#475569;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.025em;white-space:nowrap}
.jpos-cr-table thead th:nth-child(1){width:28%}
.jpos-cr-table thead th:nth-child(2){width:27%}
.jpos-cr-table thead th:nth-child(3){width:15%}
.jpos-cr-table thead th:nth-child(4){width:8%}
.jpos-cr-table thead th:nth-child(5){width:22%}
.jpos-cr-table tbody tr{height:38px;cursor:pointer;transition:background .08s ease,box-shadow .08s ease}
.jpos-cr-table tbody td{padding:4px 8px;border-bottom:1px solid #edf1f5;color:#334155;font-size:13px;vertical-align:middle;overflow:hidden;text-overflow:ellipsis}
.jpos-cr-table tbody tr:hover{background:#f8fafc}
.jpos-cr-table tbody tr.is-selected{box-shadow:inset 3px 0 0 #3b82f6;background:#eff6ff}
.jpos-cr-table tbody tr.is-inactive{background:#f3f4f6;color:#7c8798}
.jpos-cr-table tbody tr.is-inactive td{color:#7c8798}
.jpos-cr-table tbody tr.is-not-available{background:#fff1f2}
.jpos-cr-table tbody tr.is-not-effective{background:#fffbeb}
.jpos-cr-table tbody tr.is-included{box-shadow:inset 3px 0 0 #22c55e}
.cr-col-package strong,.cr-col-item strong{display:block;font-size:13px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cr-col-package small,.cr-col-item small{display:block;margin-top:2px;font-size:10.5px;line-height:1.05;color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cr-col-type span{font-size:11px;font-weight:800;letter-spacing:.02em}
.cr-store-count,.cr-store-state{font-size:10.5px;font-weight:800}
.cr-store-state.is-ok{color:#15803d}.cr-store-state.is-ready{color:#a16207}.cr-store-state.is-off{color:#64748b}

/* Modal M1.7 */
.jpos-modal-window.cr-master-modal .jpos-modal-body{padding:12px 14px}
.jpos-modal-window.cr-master-modal .jpos-modal-footer{padding:9px 12px}
.cr-modal{display:flex;flex-direction:column;gap:10px}
.cr-modal-section{border:1px solid #e2e8f0;border-radius:9px;background:#fff;padding:10px}
.cr-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;padding-bottom:6px;border-bottom:1px solid #eef2f7}
.cr-section-title>span{font-size:11px;font-weight:900;letter-spacing:.035em;color:#475569}
.cr-section-title>small{font-size:10.5px;color:#94a3b8}
.cr-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cr-field{display:flex;flex-direction:column;gap:3px;margin:0;min-width:0}
.cr-field>span{font-size:11px;font-weight:800;color:#475569}
.cr-field>small{font-size:10.5px;color:#94a3b8}
.cr-field .form-control{font-size:14px;min-height:36px;padding-top:5px;padding-bottom:5px}
.cr-span-2{grid-column:span 2}.cr-span-3{grid-column:span 3}
.cr-search-select{position:relative}
.cr-suggestions{position:absolute;left:0;right:0;top:calc(100% + 3px);z-index:20;display:none;max-height:260px;overflow:auto;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.13)}
.cr-suggestions.show{display:block}
.cr-suggestions button{width:100%;border:0;border-bottom:1px solid #f1f5f9;background:#fff;text-align:left;padding:7px 9px;display:flex;flex-direction:column;gap:2px;cursor:pointer}
.cr-suggestions button:hover{background:#f8fafc}
.cr-suggestions button.is-context-off{background:#fafafa;color:#64748b}
.cr-suggestions button strong{font-size:12px;color:#0f172a}
.cr-suggestions button small{font-size:10.5px;color:#64748b}
.cr-suggest-empty,.cr-context-empty{padding:10px;color:#94a3b8;font-size:12px;text-align:center}
.cr-required-note{display:flex;gap:7px;align-items:flex-start;margin-top:8px;padding:7px 8px;border-radius:7px;background:#f8fafc;color:#64748b;font-size:11px}
.cr-context-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.cr-context-row{min-height:45px;padding:6px 8px;border:1px solid #e5e7eb;border-radius:7px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f8fafc}
.cr-context-row>span{display:flex;flex-direction:column;gap:1px;min-width:0}
.cr-context-row>span:last-child{text-align:right;align-items:flex-end}
.cr-context-row strong{font-size:12px;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.cr-context-row b{font-size:10px;color:#64748b}
.cr-context-row small{font-size:9.5px;color:#94a3b8}
.cr-context-row.is-ok{background:#f0fdf4;border-color:#bbf7d0}.cr-context-row.is-ok b{color:#15803d}
.cr-context-row.is-ready{background:#fffbeb;border-color:#fde68a}.cr-context-row.is-ready b{color:#a16207}
.cr-context-row.is-off{background:#f8fafc;border-color:#e5e7eb}
.cr-context-row:has(small:first-child){opacity:.82}
.cr-readiness{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.cr-readiness-card{padding:7px;border:1px solid #e5e7eb;border-radius:7px;background:#f8fafc;display:flex;flex-direction:column;gap:2px}
.cr-readiness-card small{font-size:9.5px;text-transform:uppercase;font-weight:800;color:#64748b}
.cr-readiness-card b{font-size:12px;color:#334155}.cr-readiness-card.is-ok{background:#f0fdf4;border-color:#bbf7d0}.cr-readiness-card.is-warn{background:#fff7ed;border-color:#fed7aa}
.cr-modal-footer-left,.cr-modal-footer-right{display:flex;align-items:center;gap:8px}
.cr-modal-footer-right{margin-left:auto}.cr-dirty-note{font-size:10.5px;color:#94a3b8;margin-right:4px}

@media(max-width:1180px){
  .jpos-cr-filterbar{grid-template-columns:repeat(3,minmax(0,1fr))}
  .jpos-cr-search{grid-column:span 1}
  .cr-context-list{grid-template-columns:1fr}
  .cr-readiness{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767px){
  .jpos-cr-page{font-size:16px}
  .jpos-cr-principle{padding:8px 9px}.jpos-cr-principle strong{font-size:14px}.jpos-cr-principle span{font-size:12px}
  .jpos-cr-filterbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px}
  .jpos-cr-filterbar label>span{font-size:12px}.jpos-cr-filterbar .form-control{font-size:16px;min-height:42px;height:42px}
  .jpos-cr-search{grid-column:span 2}
  .jpos-cr-table-wrap{max-height:calc(100vh - 360px)}
  .jpos-cr-table{min-width:820px}
  .jpos-cr-table tbody tr{height:44px}
  .jpos-cr-table tbody td{font-size:14px}
  .cr-col-package strong,.cr-col-item strong{font-size:14px}.cr-col-package small,.cr-col-item small{font-size:11px}
  .jpos-modal-window.cr-master-modal{width:100vw!important;max-width:none!important;height:100vh;max-height:100vh;border-radius:0;margin:0}
  .jpos-modal-window.cr-master-modal .jpos-modal-header{position:sticky;top:0;z-index:7}
  .jpos-modal-window.cr-master-modal .jpos-modal-body{padding:9px;overflow:auto}
  .jpos-modal-window.cr-master-modal .jpos-modal-footer{position:sticky;bottom:0;z-index:7;display:flex;flex-wrap:wrap;gap:7px}
  .cr-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .cr-span-3{grid-column:span 2}.cr-span-2{grid-column:span 2}
  .cr-field .form-control{font-size:16px;min-height:44px}
  .cr-readiness{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cr-modal-footer-right{width:100%;margin-left:0;justify-content:flex-end}.cr-dirty-note{margin-right:auto}
}
@media(max-width:420px){
  .jpos-cr-filterbar{grid-template-columns:1fr}.jpos-cr-search{grid-column:span 1}
  .cr-form-grid{grid-template-columns:1fr}.cr-span-2,.cr-span-3{grid-column:span 1}
  .cr-readiness{grid-template-columns:1fr 1fr}
}

/* ============================================================
   M1.7.1 — FIRE / SWEETALERT LAYER FIX
   Custom JPOS modal uses z-index:3000.
   All Swal.fire confirmation/error layers MUST render above it.
   ============================================================ */
.swal2-container{
  z-index:7000!important;
}


/* ========================================================================== */
/* MASTER M1.8 — MEDIA & PORTFOLIO                                            */
/* ========================================================================== */
.jpos-media-page{font-size:14px}
.jpos-media-filterbar{display:grid;grid-template-columns:minmax(170px,230px) minmax(150px,200px) minmax(160px,220px) minmax(145px,190px) minmax(220px,1fr);gap:10px;padding:10px 12px;margin-bottom:10px;align-items:end}
.jpos-media-filterbar label{margin:0;display:flex;flex-direction:column;gap:4px;min-width:0}
.jpos-media-filterbar label>span{font-size:11px;line-height:1.1;text-transform:uppercase;font-weight:800;color:#64748b}
.jpos-media-filterbar .form-control{min-height:36px;height:36px;font-size:14px;padding-top:5px;padding-bottom:5px}
.jpos-media-table-card{padding:0;overflow:hidden}
.jpos-media-table-meta{height:34px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e8f0;font-weight:700}
.jpos-media-table-meta small{font-weight:500;color:#64748b}
.jpos-media-table-wrap{overflow:auto;max-height:calc(100vh - 315px);min-height:220px}
.jpos-media-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;margin:0}
.jpos-media-table thead th{position:sticky;top:0;z-index:2;height:34px;padding:5px 8px;background:#f8fafc;border-bottom:1px solid #cbd5e1;font-size:11px;text-transform:uppercase;letter-spacing:.02em;color:#475569;text-align:left}
.jpos-media-table tbody td{height:42px;padding:3px 8px;border-bottom:1px solid #e8edf3;vertical-align:middle;line-height:1.12;background:#fff}
.jpos-media-table tbody tr{cursor:default;outline:none}
.jpos-media-table tbody tr.is-selected td{background:#eaf7fb!important}
.jpos-media-table tbody tr.is-inactive td{background:#f4f6f8;color:#7b8794}
.jpos-media-table tbody tr.is-file-missing td{background:#fff0f0}
.jpos-media-table tbody tr:hover td{box-shadow:inset 0 1px rgba(35,157,173,.12),inset 0 -1px rgba(35,157,173,.12)}
.mm-col-thumb{width:56px;text-align:center!important}.mm-col-usage{width:150px}.mm-col-title{width:34%}.mm-col-links{width:auto}
.mm-col-title strong,.mm-col-links strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:#172033}
.mm-col-title small,.mm-col-links small{display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:#8491a3}
.mm-col-usage span{font-size:11px;font-weight:800;color:#52647a}
.mm-thumb{display:inline-flex;width:36px;height:36px;border-radius:6px;overflow:hidden;background:#edf2f7;border:1px solid #dce4ed;align-items:center;justify-content:center;vertical-align:middle}
.mm-thumb img{width:100%;height:100%;object-fit:cover;display:block}.mm-thumb-missing{font-size:20px;color:#b75c5c}

.jpos-modal-window.xl{width:min(1080px,calc(100vw - 34px));max-width:1080px}
.mm-modal{display:flex;flex-direction:column;gap:10px}
.mm-preview-section{display:grid;grid-template-columns:minmax(280px,42%) minmax(0,1fr);gap:12px;align-items:stretch}
.mm-preview-box{min-height:230px;max-height:360px;background:#0f172a;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center;border:1px solid #d7dee8}
.mm-preview-image{width:100%;height:100%;max-height:360px;object-fit:contain;display:block;background:#0f172a}
.mm-preview-placeholder{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;color:#93a4b8;font-size:14px}.mm-preview-placeholder i{font-size:42px}
.mm-preview-side{border:1px solid #e0e7ef;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:10px;background:#f9fbfd}
.mm-file-info{display:flex;flex-direction:column;gap:4px;min-width:0}.mm-file-info b{font-size:14px;word-break:break-word}.mm-file-info span{font-size:12px;color:#6c7b8e}.mm-file-picker{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#4a5a70}.mm-file-picker input{font-weight:400;width:100%}
.mm-section{border:1px solid #dfe6ee;border-radius:10px;padding:10px;background:#fff}.mm-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.mm-section-head b{font-size:12px;text-transform:uppercase;letter-spacing:.02em;color:#334155}.mm-section-head small{font-size:10px;color:#8a98aa}
.mm-grid{display:grid;gap:9px}.mm-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.mm-span-2{grid-column:span 2}.mm-span-3{grid-column:1/-1}.mm-field{display:flex;flex-direction:column;gap:4px;margin:0}.mm-field>span{font-size:11px;font-weight:800;color:#52647a}.mm-field .form-control{font-size:14px;min-height:38px}.mm-field textarea.form-control{height:auto;resize:vertical}
.mm-link-add{display:grid;grid-template-columns:minmax(180px,230px) minmax(0,1fr);gap:9px;margin-bottom:8px}.mm-entity-search{position:relative}.mm-entity-results{position:absolute;left:0;right:0;top:calc(100% + 3px);z-index:25;max-height:240px;overflow:auto;border:1px solid #ccd6e2;background:#fff;border-radius:8px;box-shadow:0 10px 24px rgba(15,23,42,.12)}.mm-entity-results button{display:flex;width:100%;border:0;border-bottom:1px solid #edf1f5;background:#fff;padding:8px 10px;text-align:left;flex-direction:column;gap:2px}.mm-entity-results button:hover{background:#eef9fb}.mm-entity-results strong{font-size:12px}.mm-entity-results small{font-size:10px;color:#76869a}.mm-entity-empty{padding:10px;font-size:12px;color:#748398}
.mm-links{display:flex;flex-direction:column;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.mm-link-row{min-height:42px;display:grid;grid-template-columns:minmax(0,1fr) 100px 95px 32px;gap:8px;align-items:center;padding:4px 7px;border-bottom:1px solid #edf1f5}.mm-link-row:last-child{border-bottom:0}.mm-link-main{min-width:0;display:flex;flex-direction:column;gap:1px}.mm-link-main strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mm-link-main small{font-size:9px;color:#8190a2}.mm-link-order{display:grid;grid-template-columns:auto 1fr;gap:4px;align-items:center;margin:0}.mm-link-order span{font-size:9px;color:#7a899b}.mm-link-order input{height:30px!important;min-height:30px!important;padding:2px 5px}.mm-link-primary{margin:0;font-size:11px;display:flex;gap:5px;align-items:center}.mm-link-remove{border:0;background:transparent;color:#a55;padding:5px}.mm-link-empty{padding:12px;color:#8190a2;font-size:12px}
.mm-store-context{display:flex;gap:6px;flex-wrap:wrap}.mm-store-context span{display:inline-flex;padding:4px 8px;border-radius:999px;background:#edf7f8;color:#176170;font-size:11px;font-weight:700}.mm-store-context .is-muted{background:#f2f4f7;color:#7a8797}
.mm-switches{display:flex;gap:18px;flex-wrap:wrap}.mm-switches label{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:700}
.mm-footer-left,.mm-footer-right{display:flex;align-items:center;gap:8px}.mm-footer-right{margin-left:auto}.mm-dirty-note{font-size:10px;color:#8795a7;margin-right:4px}

@media(max-width:1050px){.jpos-media-filterbar{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-media-search{grid-column:1/-1}.mm-preview-section{grid-template-columns:1fr 1fr}.mm-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.mm-span-2{grid-column:span 2}.mm-span-3{grid-column:1/-1}}
@media(max-width:767px){.jpos-media-page{font-size:16px}.jpos-media-filterbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:9px}.jpos-media-filterbar label>span{font-size:12px}.jpos-media-filterbar .form-control{font-size:16px;min-height:42px;height:42px}.jpos-media-table-wrap{max-height:calc(100vh - 340px)}.jpos-media-table{min-width:760px}.jpos-media-table thead th{height:38px;font-size:12px}.jpos-media-table tbody td{height:46px;font-size:16px}.mm-thumb{width:40px;height:40px}.mm-col-title strong,.mm-col-links strong{font-size:14px}.mm-col-title small,.mm-col-links small{font-size:11px}.jpos-modal-window.xl{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.jpos-modal-window.xl .jpos-modal-header,.jpos-modal-window.xl .jpos-modal-footer{position:sticky;z-index:5}.jpos-modal-window.xl .jpos-modal-header{top:0}.jpos-modal-window.xl .jpos-modal-footer{bottom:0}.mm-preview-section{grid-template-columns:1fr}.mm-preview-box{min-height:210px;max-height:300px}.mm-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.mm-span-2{grid-column:1/-1}.mm-span-3{grid-column:1/-1}.mm-field .form-control{font-size:16px;min-height:44px}.mm-link-add{grid-template-columns:1fr}.mm-link-row{grid-template-columns:minmax(0,1fr) 88px 82px 30px}.mm-footer-right{gap:6px}.mm-dirty-note{display:none}}
@media(max-width:440px){.jpos-media-filterbar{grid-template-columns:1fr}.jpos-media-search{grid-column:auto}.mm-grid-3{grid-template-columns:1fr}.mm-span-2,.mm-span-3{grid-column:auto}.mm-link-row{grid-template-columns:minmax(0,1fr) 75px 30px}.mm-link-primary{grid-column:1/3}.mm-footer-left{flex:0 0 auto}.mm-footer-right{margin-left:auto}.jpos-modal-footer{padding-left:8px!important;padding-right:8px!important}}

/* ==========================================================================
   MASTER M1.8.1 — PUSAT MEDIA + MULTI-USAGE / ENTITY ROLE
   Extends M1.8 layout without changing the global Master UI/UX blueprint.
   ========================================================================== */
.jpos-media-principle{
  display:flex;align-items:flex-start;gap:10px;padding:9px 12px;margin-bottom:10px;
  border:1px solid #cfe4ee;background:#f6fbfd
}
.jpos-media-principle>i{font-size:20px;color:#21879a;margin-top:1px}
.jpos-media-principle>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.jpos-media-principle strong{font-size:12px;color:#17334a}
.jpos-media-principle span{font-size:11px;color:#5f7386}

.mm-role-list{display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-width:0}
.mm-role-chip{
  display:inline-flex;align-items:center;min-height:20px;padding:2px 6px;border-radius:999px;
  background:#edf7f8;color:#176170;font-size:10px;font-weight:800;white-space:nowrap
}
.mm-role-more,.mm-role-empty{font-size:10px;color:#8391a2}
.mm-role-empty{font-style:italic}

.mm-usage-builder{
  display:grid;
  grid-template-columns:minmax(160px,220px) minmax(180px,260px) minmax(0,1fr);
  gap:8px;
  align-items:end;
  padding:9px;
  border:1px solid #e1e8f0;
  border-radius:9px;
  background:#f9fbfd;
  margin-bottom:8px
}
.mm-span-search{grid-column:span 1}
.mm-span-selected{grid-column:span 2}
.mm-span-roles{grid-column:1/-1}
.mm-selected-entity{
  min-height:38px;border:1px solid #dce4ed;border-radius:7px;background:#fff;padding:7px 9px;
  display:flex;flex-direction:column;justify-content:center;gap:1px
}
.mm-selected-entity strong{font-size:12px;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-selected-entity small{font-size:10px;color:#7b899a}
.mm-selected-entity .is-muted{font-size:11px;color:#8b98a8}

.mm-role-checks{display:flex;flex-wrap:wrap;gap:6px}
.mm-role-check{
  display:inline-flex;align-items:center;gap:5px;margin:0;padding:5px 8px;
  border:1px solid #dce4ed;border-radius:7px;background:#fff;font-size:11px;font-weight:700;color:#405267
}
.mm-role-check:has(input:checked){background:#eaf8fa;border-color:#8fd1da;color:#176170}
.mm-role-check input{margin:0}

.mm-primary-builder{display:flex;align-items:center;gap:6px;margin:0;min-height:38px;font-size:11px;font-weight:700;color:#4b5c70}
.mm-builder-action{display:flex;justify-content:flex-end}
.mm-builder-action .btn{min-height:38px}

.mm-usages{
  display:flex;flex-direction:column;
  border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;background:#fff
}
.mm-usage-row{
  min-height:44px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 120px 92px 88px 32px;
  gap:7px;align-items:center;padding:4px 7px;border-bottom:1px solid #edf1f5
}
.mm-usage-row:last-child{border-bottom:0}
.mm-usage-main{display:flex;flex-direction:column;gap:1px;min-width:0}
.mm-usage-main strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-usage-main small{font-size:9px;color:#8190a2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-usage-role{display:flex;align-items:center}
.mm-usage-order{display:grid;grid-template-columns:auto 1fr;gap:4px;align-items:center;margin:0}
.mm-usage-order span{font-size:9px;color:#7a899b}
.mm-usage-order input{height:30px!important;min-height:30px!important;padding:2px 5px}
.mm-usage-primary{margin:0;font-size:11px;display:flex;gap:5px;align-items:center}

@media(max-width:1050px){
  .mm-usage-builder{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mm-span-search,.mm-span-selected{grid-column:1/-1}
  .mm-span-roles{grid-column:1/-1}
  .mm-usage-row{grid-template-columns:minmax(0,1fr) 110px 86px 82px 30px}
}

@media(max-width:767px){
  .jpos-media-principle strong{font-size:14px}
  .jpos-media-principle span{font-size:12px}
  .mm-role-chip{font-size:11px;min-height:22px}
  .mm-usage-builder{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mm-span-search,.mm-span-selected,.mm-span-roles{grid-column:1/-1}
  .mm-role-check{font-size:12px}
  .mm-usage-row{
    grid-template-columns:minmax(0,1fr) 105px 82px 30px;
    min-height:48px
  }
  .mm-usage-primary{grid-column:1/3}
}

@media(max-width:440px){
  .mm-usage-builder{grid-template-columns:1fr}
  .mm-span-search,.mm-span-selected,.mm-span-roles{grid-column:auto}
  .mm-builder-action{justify-content:stretch}
  .mm-builder-action .btn{width:100%}
  .mm-usage-row{grid-template-columns:minmax(0,1fr) 78px 30px}
  .mm-usage-role{grid-column:1/2}
  .mm-usage-order{grid-column:2/3}
  .mm-usage-primary{grid-column:1/3}
}


/* ==========================================================================
   MASTER M1.8.2 — PUSAT MEDIA AI ASSIST + PENGATURAN SISTEM
   ========================================================================== */
.mm-section-head-ai>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.mm-ai-assist-btn{flex:0 0 auto;min-height:32px;padding:5px 10px;font-size:12px;font-weight:800}
.mm-ai-help{display:flex;align-items:flex-start;gap:7px;margin-top:8px;padding:7px 9px;border-radius:7px;background:#f7fafc;color:#607286;font-size:11px;line-height:1.35}
.mm-ai-help i{font-size:17px;line-height:1;color:#4b8192;margin-top:1px}
.mm-ai-review{display:flex;flex-direction:column;gap:8px;font-size:13px}
.mm-ai-review>p{margin:0 0 2px;color:#52647a}
.mm-ai-review>label{display:flex;align-items:flex-start;gap:8px;margin:0;padding:8px;border:1px solid #e1e7ef;border-radius:8px;background:#fff;cursor:pointer}
.mm-ai-review>label>input{margin-top:3px;flex:0 0 auto}
.mm-ai-review>label>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.mm-ai-review b{font-size:11px;text-transform:uppercase;color:#506176}
.mm-ai-review em{font-style:normal;color:#172033;line-height:1.4;word-break:break-word}
.mm-ai-review>small{display:block;padding:7px 8px;border-radius:7px;background:#f8fafc;color:#78879a;line-height:1.35}

.jpos-system-settings-page{font-size:14px}
.jpos-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}
.jpos-settings-card{padding:0;overflow:hidden}
.jpos-settings-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid #e3e9f0;background:#fbfcfd}
.jpos-settings-card-head>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.jpos-settings-card-head b{font-size:13px;color:#26384b}
.jpos-settings-card-head small{font-size:10px;color:#7b8999;line-height:1.3}
.jpos-settings-status{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:800;background:#f1f4f7;color:#6c7b8c;white-space:nowrap}
.jpos-settings-status[data-ready="1"]{background:#edf8f3;color:#267052}
.jpos-settings-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:11px 12px}
.jpos-settings-field{display:flex;flex-direction:column;gap:4px;margin:0;min-width:0}
.jpos-settings-field>span{font-size:11px;font-weight:800;color:#52647a}
.jpos-settings-field>.form-control{font-size:14px;min-height:38px}
.jpos-settings-field>small{font-size:10px;color:#8795a6}
.jpos-settings-span-2{grid-column:1/-1}
.jpos-settings-secret-field{grid-column:1/-1}
.jpos-secret-current{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px;padding:5px 8px;border:1px solid #e1e7ee;border-radius:7px;background:#f8fafc}
.jpos-secret-current b{font-size:12px;letter-spacing:.02em;color:#33485d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jpos-secret-current small{font-size:10px;color:#8795a6;white-space:nowrap}
.jpos-settings-inline-check{display:flex;align-items:flex-start;gap:6px;margin:2px 0 0;font-size:10px;color:#66778a;line-height:1.3}
.jpos-settings-inline-check input{margin-top:2px}
.jpos-settings-actions{display:flex;justify-content:flex-end;gap:7px;padding:9px 12px;border-top:1px solid #e6ebf1;background:#fbfcfd}
.jpos-settings-actions .btn{min-height:34px}
.jpos-settings-note{display:flex;align-items:flex-start;gap:10px;padding:9px 12px}
.jpos-settings-note>i{font-size:20px;color:#567186;margin-top:1px}
.jpos-settings-note>div{display:flex;flex-direction:column;gap:2px}
.jpos-settings-note b{font-size:12px;color:#34495d}
.jpos-settings-note span{font-size:11px;color:#718195;line-height:1.35}
.settings-test-result{display:grid;grid-template-columns:90px minmax(0,1fr);gap:6px 10px;text-align:left;font-size:13px}
.settings-test-result b{color:#657589}.settings-test-result span{color:#172033;word-break:break-word}

@media(max-width:900px){
  .jpos-settings-grid{grid-template-columns:1fr}
}
@media(max-width:767px){
  .jpos-system-settings-page{font-size:16px}
  .mm-section-head-ai{align-items:flex-start;flex-direction:column}
  .mm-ai-assist-btn{width:100%;min-height:40px;font-size:14px}
  .mm-ai-help{font-size:12px}
  .mm-ai-review{font-size:14px}
  .jpos-settings-form-grid{grid-template-columns:1fr;padding:10px}
  .jpos-settings-span-2,.jpos-settings-secret-field{grid-column:auto}
  .jpos-settings-field>span{font-size:12px}
  .jpos-settings-field>.form-control{font-size:16px;min-height:44px}
  .jpos-settings-card-head{padding:10px}
  .jpos-settings-card-head b{font-size:15px}.jpos-settings-card-head small{font-size:12px}
  .jpos-settings-status{font-size:11px}
  .jpos-settings-actions{padding:9px 10px}.jpos-settings-actions .btn{width:100%;min-height:42px;font-size:15px}
  .jpos-settings-note b{font-size:14px}.jpos-settings-note span{font-size:12px}
  .jpos-secret-current{min-height:36px}.jpos-secret-current b{font-size:14px}.jpos-secret-current small{font-size:11px}
}
.jpos-settings-toggle-field{justify-content:flex-start}
.jpos-settings-toggle{display:flex;align-items:center;gap:7px;min-height:38px;padding:6px 8px;border:1px solid #e1e7ee;border-radius:7px;background:#f8fafc}
.jpos-settings-toggle b{font-size:12px;color:#34495d}.jpos-settings-toggle input{margin:0}
@media(max-width:767px){.jpos-settings-toggle{min-height:44px}.jpos-settings-toggle b{font-size:14px}}

/* ============================================================
   M1.8.3 — Pengaturan Sistem · Multi Group WhatsApp
   ============================================================ */
.jpos-settings-groups-card{margin-bottom:10px;padding:0;overflow:hidden}
.jpos-settings-groups-card .jpos-settings-card-head{align-items:center}
.jpos-settings-group-summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 10px;align-items:center;padding:9px 12px;border-bottom:1px solid #e8edf2;background:#fff}
.jpos-settings-group-summary>span{font-size:10px;font-weight:800;color:#718196;text-transform:uppercase;letter-spacing:.04em}
.jpos-settings-group-summary>b{font-size:12px;color:#2c4056;overflow-wrap:anywhere}
.jpos-settings-group-summary>small{grid-column:1/-1;font-size:10px;color:#8795a5;line-height:1.35}
.jpos-settings-group-scroll{overflow:auto;max-width:100%;border-bottom:1px solid #e7ecf1;scrollbar-gutter:stable}
.jpos-settings-group-table{width:100%;min-width:760px;border-collapse:collapse;font-size:14px}
.jpos-settings-group-table th{height:32px;padding:5px 8px;text-align:left;font-size:10px;font-weight:850;color:#65768a;background:#f7f9fb;border-bottom:1px solid #dde5ec;white-space:nowrap}
.jpos-settings-group-table td{height:37px;padding:5px 8px;border-bottom:1px solid #edf1f4;color:#3c4d60;vertical-align:middle}
.jpos-settings-group-table tbody tr{cursor:pointer;background:#fff}
.jpos-settings-group-table tbody tr:hover{background:#f6f9fc}
.jpos-settings-group-table tbody tr.is-inactive{background:#f3f4f6;color:#8a949e}
.jpos-settings-group-table tbody tr.is-inactive td{color:#89939d}
.jpos-settings-group-table code{font-size:11px;color:#51657b;background:#edf2f6;border-radius:4px;padding:2px 5px}
.jpos-settings-group-id{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:11px;overflow-wrap:anywhere}
.jpos-settings-table-empty{text-align:center!important;color:#8795a5!important;padding:14px!important}
.jpos-settings-badge{display:inline-flex;align-items:center;min-height:21px;padding:2px 7px;border-radius:999px;font-size:9px;font-weight:850;white-space:nowrap;background:#eef2f6;color:#6c7a89}
.jpos-settings-badge.is-default{background:#edf2ff;color:#3f5bb5}
.jpos-settings-badge.is-active{background:#eaf7ef;color:#287247}
.jpos-settings-badge.is-off{background:#f1f2f4;color:#7b858f}
.jpos-settings-server-fallback-wrap{padding:10px 12px;background:#fbfcfd}
.jpos-settings-subhead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:7px}
.jpos-settings-subhead>div{display:flex;flex-direction:column;gap:2px}
.jpos-settings-subhead b{font-size:11px;color:#415469}
.jpos-settings-subhead small{font-size:10px;color:#8492a1}
.jpos-settings-fallback-list{display:grid;gap:6px}
.jpos-settings-fallback-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;border:1px solid #e2e8ee;border-radius:7px;background:#fff}
.jpos-settings-fallback-row>div{display:flex;flex-direction:column;min-width:0;gap:2px}
.jpos-settings-fallback-row strong{font-size:11px;color:#42556b}
.jpos-settings-fallback-row code{font-size:10px;overflow-wrap:anywhere;color:#65788d}
.jpos-settings-group-modal .jpos-modal-body{padding:10px}
.jpos-settings-group-form{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}
.jpos-settings-group-form label{display:flex;flex-direction:column;gap:4px;margin:0;min-width:0}
.jpos-settings-group-form label>span{font-size:11px;font-weight:800;color:#56687b}
.jpos-settings-group-form label>small{font-size:9px;color:#8895a3;line-height:1.3}
.jpos-settings-group-form .form-control{min-height:38px;font-size:14px}
.jpos-settings-group-full{grid-column:1/-1}
.jpos-settings-group-check{grid-column:1/-1;display:flex!important;flex-direction:row!important;align-items:flex-start!important;padding:7px 8px;border:1px solid #e0e6ec;border-radius:7px;background:#fafbfd}
.jpos-settings-group-check>input{margin-top:2px;width:17px;height:17px;flex:0 0 17px}
.jpos-settings-group-check>span{display:flex!important;flex-direction:column;gap:1px;font-weight:400!important}
.jpos-settings-group-check b{font-size:11px;color:#425469}
.jpos-settings-group-check small{font-size:9px;color:#8794a3}
.jpos-settings-group-footer-left,.jpos-settings-group-footer-right{display:flex;align-items:center;gap:7px}
.jpos-settings-group-footer-right{margin-left:auto}

@media(max-width:767px){
  .jpos-settings-group-summary{grid-template-columns:1fr;padding:9px 10px}
  .jpos-settings-group-summary>small{grid-column:auto}
  .jpos-settings-group-table{font-size:16px;min-width:740px}
  .jpos-settings-group-table th{height:37px;font-size:12px}
  .jpos-settings-group-table td{height:43px;padding:6px 8px}
  .jpos-settings-group-table code,.jpos-settings-group-id{font-size:13px}
  .jpos-settings-server-fallback-wrap{padding:9px 10px}
  .jpos-settings-fallback-row{align-items:flex-start;flex-direction:column}
  .jpos-settings-fallback-row .btn{width:100%;min-height:40px;font-size:14px}
  .jpos-settings-group-form{grid-template-columns:1fr}
  .jpos-settings-group-full,.jpos-settings-group-check{grid-column:auto}
  .jpos-settings-group-form label>span{font-size:13px}
  .jpos-settings-group-form label>small{font-size:11px}
  .jpos-settings-group-form .form-control{min-height:44px;font-size:16px}
  .jpos-settings-group-check b{font-size:14px}.jpos-settings-group-check small{font-size:11px}
  .jpos-settings-group-footer-left,.jpos-settings-group-footer-right{width:100%}
  .jpos-settings-group-footer-right{margin-left:0;justify-content:flex-end}
}


/* ============================================================================
   MASTER KATEGORI & STORE — UI/UX V2 + CREATE-only AI Assist
   ============================================================================ */
.cm2-page{font-size:14px}.cm2-pagehead .jpos-pagehead-copy{max-width:980px}.cm2-modebar{display:inline-flex;gap:4px;padding:4px;margin:0 0 10px;border:1px solid #dbe5ef;background:#f8fafc;border-radius:9px}.cm2-modebar button{border:0;background:transparent;border-radius:7px;padding:7px 11px;display:inline-flex;align-items:center;gap:6px;color:#64748b;font-size:12px;font-weight:800;cursor:pointer}.cm2-modebar button.is-active{background:#fff;color:#0f172a;box-shadow:0 1px 3px rgba(15,23,42,.12)}
.cm2-toolbar,.cm2-store-toolbar{display:grid;grid-template-columns:190px 190px minmax(260px,1fr);gap:8px;align-items:end;border:1px solid #dbe5ef;background:#fff;border-radius:10px;padding:8px;margin-bottom:8px}.cm2-filter{display:flex;flex-direction:column;gap:4px;margin:0;min-width:0}.cm2-filter>span{font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#64748b}.cm2-filter .form-control{height:38px;min-height:38px;font-size:14px}.cm2-search{position:relative}.cm2-search>i{position:absolute;left:10px;top:50%;transform:translateY(-50%);z-index:1;color:#94a3b8;font-size:17px}.cm2-search .form-control{padding-left:32px}.cm2-table-shell,.cm2-store-table-shell{border:1px solid #dbe5ef;background:#fff;border-radius:10px;overflow:hidden}.cm2-table-scroll,.cm2-store-table-scroll{overflow:auto;max-width:100%;overscroll-behavior-x:contain}.cm2-table{width:100%;min-width:640px;border-collapse:separate;border-spacing:0;table-layout:fixed}.cm2-table th{position:sticky;top:0;z-index:2;background:#f8fafc;border-bottom:1px solid #dbe5ef;padding:7px 9px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#64748b;text-align:left}.cm2-table td{padding:6px 9px;border-bottom:1px solid #eef2f7;font-size:13px;vertical-align:middle;color:#334155}.cm2-table tbody tr:last-child td{border-bottom:0}.cm2-table tbody tr.js-category-row{cursor:pointer;outline:0}.cm2-table tbody tr.js-category-row:hover:not(.is-inactive) td{background:#f8fafc}.cm2-table tbody tr.js-category-row.is-selected td{background:#eaf8fb}.cm2-table tbody tr.js-category-row.is-inactive td{background:#eef2f6;color:#8793a4}.cm2-table tbody tr.js-category-row.is-inactive td:first-child{box-shadow:inset 4px 0 0 #c3ccd8}.cm2-table tbody tr.js-category-row:focus-visible td{box-shadow:inset 0 0 0 2px #0ea5b7}.cm2-col-name{width:48%}.cm2-col-logic{width:15%}.cm2-col-duration{width:15%}.cm2-col-scope{width:22%}.cm2-name-cell{display:flex;align-items:center;gap:8px;min-width:0}.cm2-color-dot{display:block;width:7px;height:30px;border-radius:999px;background:var(--cm2-dot,#999);flex:0 0 auto}.cm2-name-cell>span:last-child{min-width:0;display:flex;flex-direction:column;gap:1px}.cm2-name-cell strong{font-size:13px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cm2-name-cell small{font-size:10px;color:#7b8797}.is-inactive .cm2-name-cell strong{color:#657286}.cm2-logic-pill{display:inline-flex;padding:2px 7px;border-radius:5px;background:#eef2f7;color:#475569;font-size:10px;font-weight:900}.cm2-table-footer{display:flex;justify-content:space-between;gap:12px;padding:7px 9px;border-top:1px solid #e5eaf1;background:#f8fafc;color:#64748b;font-size:11px}.cm2-table-footer>:first-child{font-weight:800;color:#334155}
.cm2-store-toolbar{grid-template-columns:minmax(220px,300px) minmax(220px,1fr) minmax(260px,420px)}.cm2-store-meta{display:flex;flex-direction:column;gap:1px;padding:0 4px 4px;min-width:0}.cm2-store-meta strong{font-size:13px;color:#0f172a}.cm2-store-meta span{font-size:11px;color:#64748b}.cm2-store-table{width:100%;min-width:1040px;border-collapse:separate;border-spacing:0}.cm2-store-table th{position:sticky;top:0;z-index:2;background:#f8fafc;border-bottom:1px solid #dbe5ef;padding:7px 8px;font-size:10px;font-weight:900;text-transform:uppercase;color:#64748b;white-space:nowrap}.cm2-store-table td{padding:5px 8px;border-bottom:1px solid #eef2f7;vertical-align:middle}.cm2-store-table tr.is-off td{background:#eef2f6;color:#8894a5}.cm2-store-table tr.is-global-off td{opacity:.7}.cm2-store-table .form-control{height:36px;min-height:36px;font-size:13px;padding:5px 7px}.cm2-store-table input[type=number]{min-width:80px}.cm2-store-table select{min-width:126px}.cm2-sc-name{width:280px}.cm2-sc-category{display:flex;align-items:center;gap:8px;min-width:250px}.cm2-sc-copy{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}.cm2-sc-copy strong{font-size:13px;color:#0f172a}.cm2-sc-copy small,.cm2-sc-duration small{font-size:10px;color:#64748b}.cm2-sc-switch{display:inline-flex;align-items:center;cursor:pointer;flex:0 0 auto}.cm2-sc-switch input{position:absolute;opacity:0}.cm2-sc-switch span{position:relative;width:34px;height:19px;border-radius:999px;background:#cbd5e1;transition:.15s}.cm2-sc-switch span:after{content:"";position:absolute;top:3px;left:3px;width:13px;height:13px;border-radius:50%;background:#fff;transition:.15s}.cm2-sc-switch input:checked+span{background:#16a34a}.cm2-sc-switch input:checked+span:after{transform:translateX(15px)}.cm2-sc-duration{display:flex;flex-direction:column;gap:2px}.cm2-store-savebar{position:sticky;bottom:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border-top:1px solid #dbe5ef;background:#f8fafc}
.cm2-modal-window{width:min(1040px,calc(100vw - 28px));max-height:min(92vh,960px)}.cm2-modal-window .jpos-modal-body{padding:0}.cm2-create-note,.cm2-ai-note{display:flex;align-items:flex-start;gap:8px;padding:9px 12px;border-bottom:1px solid #e2e8f0;background:#eff6ff;color:#334155;font-size:12px}.cm2-create-note i,.cm2-ai-note i{font-size:18px;color:#2563eb}.cm2-modal-meta{display:flex;align-items:center;gap:7px;padding:9px 14px;border-bottom:1px solid #e2e8f0;background:#f8fafc;color:#64748b;font-size:12px}.cm2-modal-meta b.is-on{color:#15803d}.cm2-modal-meta b.is-off{color:#64748b}.cm2-form-section{padding:13px 14px;border-bottom:1px solid #e2e8f0}.cm2-form-section:last-child{border-bottom:0}.cm2-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:9px}.cm2-section-title>span,.cm2-section-title>div>span{font-size:11px;font-weight:900;letter-spacing:.045em;color:#334155}.cm2-section-title small,.cm2-section-title>div>small{display:block;margin-top:2px;font-size:10px;color:#7b8797}.cm2-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.cm2-span-2{grid-column:span 2}.cm2-span-3{grid-column:1/-1}.cm2-field{display:flex;flex-direction:column;gap:4px;margin:0;min-width:0}.cm2-field>span{font-size:11px;font-weight:800;color:#475569}.cm2-field>span>b{color:#dc2626}.cm2-field .form-control{min-height:38px;height:38px;font-size:14px}.cm2-field textarea.form-control{height:auto;min-height:72px;resize:vertical}.cm2-field small{font-size:10px;color:#7b8797;line-height:1.35}.cm2-unit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}.cm2-unit>span{font-size:11px;color:#64748b}.cm2-color{display:grid;grid-template-columns:44px minmax(0,1fr);gap:6px}.cm2-color input[type=color]{width:44px;height:38px;border:1px solid #d7e0ea;border-radius:7px;padding:3px;background:#fff}.cm2-breaks{display:grid;grid-template-columns:1fr 1fr;gap:7px}.cm2-breaks>label,.cm2-switches>label{display:flex;align-items:center;gap:8px;border:1px solid #e2e8f0;border-radius:8px;padding:8px 9px;background:#fff;margin:0}.cm2-breaks input,.cm2-switches input{width:17px;height:17px}.cm2-breaks span,.cm2-switches span{display:flex;flex-direction:column;gap:1px}.cm2-breaks b,.cm2-switches b{font-size:12px;color:#334155}.cm2-breaks small,.cm2-switches small{font-size:10px;color:#7b8797}.cm2-switches{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:9px}.cm2-ai-btn{white-space:nowrap}.cm2-readiness{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.cm2-readiness-card{display:flex;align-items:center;gap:7px;border:1px solid #e2e8f0;border-radius:8px;padding:8px;background:#fff}.cm2-readiness-card i{font-size:19px}.cm2-readiness-card span{display:flex;flex-direction:column}.cm2-readiness-card small{font-size:9px;color:#64748b}.cm2-readiness-card b{font-size:14px;color:#0f172a}.cm2-readiness-card.is-ok i{color:#16a34a}.cm2-readiness-card.is-warn i{color:#f59e0b}.cm2-modal-footer-left,.cm2-modal-footer-right{display:flex;align-items:center;gap:8px}.cm2-modal-footer-right{margin-left:auto}.cm2-dirty-note{font-size:11px;color:#64748b}.cm2-ai-review{display:flex;flex-direction:column;gap:7px}.cm2-ai-review>p{margin:0 0 4px}.cm2-ai-review>label{display:flex;align-items:flex-start;gap:8px;border:1px solid #e2e8f0;border-radius:8px;padding:8px}.cm2-ai-review>label>span{display:flex;flex-direction:column;gap:2px}.cm2-ai-review em{font-style:normal;color:#475569}.cm2-ai-review>small{color:#64748b}
@media(max-width:900px){.cm2-toolbar{grid-template-columns:1fr 1fr}.cm2-search-field{grid-column:1/-1}.cm2-store-toolbar{grid-template-columns:1fr 1fr}.cm2-store-meta{grid-column:2}.cm2-store-search{grid-column:1/-1}.cm2-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.cm2-span-3{grid-column:1/-1}.cm2-readiness{grid-template-columns:repeat(3,minmax(0,1fr))}.cm2-switches{grid-template-columns:1fr 1fr}.cm2-switches>label:last-child{grid-column:1/-1}}
@media(max-width:767px){.cm2-page{font-size:16px}.cm2-modebar{width:100%;display:grid;grid-template-columns:1fr 1fr}.cm2-modebar button{justify-content:center;min-height:44px;font-size:14px}.cm2-toolbar,.cm2-store-toolbar{grid-template-columns:1fr 1fr;padding:8px;gap:7px}.cm2-filter>span{font-size:12px}.cm2-filter .form-control{height:44px;min-height:44px;font-size:16px}.cm2-search-field,.cm2-store-search{grid-column:1/-1}.cm2-store-meta{grid-column:1/-1;padding:3px 0}.cm2-table{min-width:560px}.cm2-table th{font-size:11px}.cm2-table td{font-size:16px;padding-top:7px;padding-bottom:7px}.cm2-name-cell strong{font-size:16px}.cm2-name-cell small{font-size:12px}.cm2-logic-pill{font-size:12px}.cm2-table-footer{font-size:12px}.cm2-store-table{min-width:1020px}.cm2-store-table th{font-size:12px}.cm2-store-table td{font-size:16px}.cm2-store-table .form-control{height:44px;min-height:44px;font-size:16px}.cm2-sc-copy strong{font-size:15px}.cm2-sc-copy small,.cm2-sc-duration small{font-size:12px}.cm2-store-savebar{flex-direction:column;align-items:stretch;padding:9px 10px calc(9px + env(safe-area-inset-bottom))}.cm2-store-savebar .btn{min-height:44px;font-size:16px}.cm2-modal-window{width:100vw!important;max-width:none!important;height:100dvh;max-height:100dvh!important;border-radius:0!important}.cm2-modal-window .jpos-modal-body{font-size:16px}.cm2-form-section{padding:12px}.cm2-section-title{flex-direction:column;gap:5px}.cm2-section-title>span,.cm2-section-title>div>span{font-size:13px}.cm2-section-title small,.cm2-section-title>div>small{font-size:12px}.cm2-grid-3{grid-template-columns:1fr}.cm2-span-2,.cm2-span-3{grid-column:auto}.cm2-field>span{font-size:14px}.cm2-field .form-control{height:46px;min-height:46px;font-size:16px}.cm2-field textarea.form-control{min-height:88px}.cm2-field small{font-size:12px}.cm2-color input[type=color]{height:46px}.cm2-breaks,.cm2-switches{grid-template-columns:1fr}.cm2-switches>label:last-child{grid-column:auto}.cm2-breaks>label,.cm2-switches>label{padding:10px}.cm2-breaks b,.cm2-switches b{font-size:15px}.cm2-breaks small,.cm2-switches small{font-size:12px}.cm2-readiness{grid-template-columns:repeat(2,minmax(0,1fr))}.cm2-readiness-card small{font-size:11px}.cm2-readiness-card b{font-size:16px}.cm2-create-note,.cm2-ai-note{font-size:14px}.cm2-modal-footer-right{flex:1;display:grid;grid-template-columns:1fr 1fr}.cm2-modal-footer-left{width:100%}.cm2-modal-footer-left .btn{width:100%}.cm2-dirty-note{grid-column:1/-1;font-size:12px}.cm2-modal-footer-right .btn{min-height:46px;font-size:16px}}

/* ========================================================================== */
/* MASTER M1.4.2 — SUBKATEGORI RULE-DRIVEN UI/UX                           */
/* ========================================================================== */
.sc2-page{font-size:14px}.sc2-principle{display:flex;align-items:flex-start;gap:9px;margin:0 0 10px;padding:10px 12px;border:1px solid #cfe4ea;border-radius:9px;background:#f3fbfc;color:#334155}.sc2-principle>i{font-size:20px;color:#0891b2;flex:0 0 auto}.sc2-principle>div{display:flex;flex-direction:column;gap:2px}.sc2-principle strong{font-size:13px;color:#0f172a}.sc2-principle span{font-size:11px;line-height:1.45;color:#64748b}.sc2-toolbar{grid-template-columns:190px 230px 170px minmax(260px,1fr)}.sc2-context{display:flex;align-items:center;gap:7px;min-height:30px;margin:-2px 0 8px;padding:0 4px;color:#64748b}.sc2-context strong{font-size:12px;color:#0f172a}.sc2-context span{font-size:11px}.sc2-table{min-width:760px}.sc2-col-name{width:34%}.sc2-col-rules{width:48%}.sc2-col-package{width:18%}.sc2-table tbody tr.js-subcategory-row{cursor:pointer;outline:0}.sc2-table tbody tr.js-subcategory-row:hover:not(.is-inactive) td{background:#f8fafc}.sc2-table tbody tr.js-subcategory-row.is-selected td{background:#eaf8fb}.sc2-table tbody tr.js-subcategory-row.is-inactive td{background:#eef2f6;color:#8793a4}.sc2-table tbody tr.js-subcategory-row.is-inactive td:first-child{box-shadow:inset 4px 0 0 #c3ccd8}.sc2-table tbody tr.js-subcategory-row:focus-visible td{box-shadow:inset 0 0 0 2px #0ea5b7}.sc2-name-cell{display:flex;align-items:center;gap:8px;min-width:0}.sc2-status-bar{display:block;width:6px;height:32px;border-radius:999px;background:#16a34a;flex:0 0 auto}.is-inactive .sc2-status-bar{background:#94a3b8}.sc2-name-cell>span:last-child{display:flex;flex-direction:column;gap:1px;min-width:0}.sc2-name-cell strong{font-size:13px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sc2-name-cell small{font-size:10px;color:#7b8797}.is-inactive .sc2-name-cell strong{color:#657286}.sc2-rule-chips{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.sc2-rule-chip{display:inline-flex;align-items:center;gap:4px;min-height:23px;padding:3px 7px;border-radius:6px;font-size:10px;font-weight:900;line-height:1;background:#edf7ef;color:#15803d;border:1px solid #cfe9d5;white-space:nowrap}.sc2-rule-chip.is-off{background:#f1f5f9;color:#94a3b8;border-color:#e2e8f0;text-decoration:none}.sc2-rule-chip i{font-size:12px}.sc2-col-package strong{display:block;font-size:14px;color:#0f172a}.sc2-col-package small{font-size:10px;color:#7b8797}.sc2-modal-window{width:min(1040px,calc(100vw - 28px));max-height:min(92vh,960px)}.sc2-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sc2-rule-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:9px;min-height:74px;margin:0;padding:10px 11px;border:1px solid #dfe7ef;border-radius:9px;background:#fff;cursor:pointer}.sc2-rule-card>input[type=checkbox]{position:absolute;opacity:0;pointer-events:none}.sc2-switch-ui{position:relative;width:38px;height:22px;border-radius:999px;background:#cbd5e1;transition:.16s ease;margin-top:1px}.sc2-switch-ui:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.2);transition:.16s ease}.sc2-rule-card>input:checked+.sc2-switch-ui{background:#16a34a}.sc2-rule-card>input:checked+.sc2-switch-ui:after{transform:translateX(16px)}.sc2-rule-card>span:last-child,.sc2-max-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.sc2-rule-card b{font-size:12px;color:#0f172a}.sc2-rule-card small{font-size:10px;line-height:1.4;color:#64748b}.sc2-rule-card.is-disabled{background:#f8fafc;border-style:dashed;cursor:default}.sc2-rule-card.is-disabled b,.sc2-rule-card.is-disabled small{color:#94a3b8}.sc2-rule-card.is-disabled .sc2-switch-ui{opacity:.5}.sc2-max-card{grid-template-columns:auto minmax(0,1fr) minmax(120px,180px);align-items:center;cursor:default}.sc2-rule-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#eef6f8;color:#0891b2;font-size:19px}.sc2-max-input{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}.sc2-max-input .form-control{height:38px;min-height:38px;font-size:14px}.sc2-max-input>span{font-size:10px;color:#64748b}.sc2-rule-note{display:flex;align-items:flex-start;gap:8px;margin-top:9px;padding:9px 10px;border:1px solid #fde7b0;border-radius:8px;background:#fffbeb;color:#5f4a13}.sc2-rule-note>i{font-size:18px;color:#d97706}.sc2-rule-note span{font-size:10px;line-height:1.45}.sc2-impact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.sc2-impact-card{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.sc2-impact-card>i{font-size:18px;margin-top:1px}.sc2-impact-card>span{display:flex;flex-direction:column;gap:2px}.sc2-impact-card b{font-size:11px;color:#334155}.sc2-impact-card small{font-size:10px;line-height:1.4;color:#64748b}.sc2-impact-card.is-on>i{color:#16a34a}.sc2-impact-card.is-off{background:#f8fafc}.sc2-impact-card.is-off>i{color:#94a3b8}.sc2-save-warning{display:flex;flex-direction:column;gap:4px;margin-top:10px;padding:9px 10px;border:1px solid #f3cc8a;border-radius:8px;background:#fff8e8;text-align:left}.sc2-save-warning b{color:#92400e}.sc2-save-warning span,.sc2-save-warning small{color:#6b5a35}.sc2-save-warning small{font-size:12px}.sc2-table-footer{position:sticky;bottom:0;z-index:2}
@media(max-width:1050px){.sc2-toolbar{grid-template-columns:1fr 1fr}.sc2-search-field{grid-column:1/-1}.sc2-rule-grid,.sc2-impact{grid-template-columns:1fr 1fr}}
@media(max-width:767px){.sc2-page{font-size:16px}.sc2-principle{padding:10px}.sc2-principle strong{font-size:15px}.sc2-principle span{font-size:13px}.sc2-toolbar{grid-template-columns:1fr 1fr}.sc2-toolbar .cm2-filter>span{font-size:12px}.sc2-context{align-items:flex-start;flex-direction:column;gap:1px;padding:0 2px}.sc2-context strong{font-size:15px}.sc2-context span{font-size:13px}.sc2-table{min-width:700px}.sc2-name-cell strong{font-size:16px}.sc2-name-cell small,.sc2-col-package small{font-size:12px}.sc2-rule-chip{min-height:26px;font-size:12px}.sc2-col-package strong{font-size:16px}.sc2-rule-grid,.sc2-impact{grid-template-columns:1fr}.sc2-rule-card{min-height:82px;padding:11px}.sc2-rule-card b{font-size:15px}.sc2-rule-card small{font-size:12px}.sc2-max-card{grid-template-columns:auto minmax(0,1fr);align-items:start}.sc2-max-input{grid-column:1/-1}.sc2-max-input .form-control{height:46px;min-height:46px;font-size:16px}.sc2-max-input>span{font-size:12px}.sc2-rule-note span{font-size:12px}.sc2-impact-card b{font-size:14px}.sc2-impact-card small{font-size:12px}}

/* ========================================================================== */
/* MASTER M1.5.1 — PAKET / LAYANAN · RULE-INHERITED + AI ASSIST             */
/* ========================================================================== */
.pm2-page{font-size:14px}.pm2-principle{display:flex;align-items:flex-start;gap:9px;margin:0 0 10px;padding:10px 12px;border:1px solid #cfe4ea;border-radius:9px;background:#f3fbfc;color:#334155}.pm2-principle>i{font-size:20px;color:#0891b2;flex:0 0 auto}.pm2-principle>div{display:flex;flex-direction:column;gap:2px}.pm2-principle strong{font-size:13px;color:#0f172a}.pm2-principle span{font-size:11px;line-height:1.45;color:#64748b}.pm2-toolbar{grid-template-columns:170px 210px 230px 150px minmax(260px,1fr)}.pm2-context{display:flex;align-items:center;gap:7px;min-height:30px;margin:-2px 0 8px;padding:0 4px;color:#64748b}.pm2-context strong{font-size:12px;color:#0f172a}.pm2-context span{font-size:11px}.pm2-table{min-width:980px}.pm2-col-name{width:28%}.pm2-col-price{width:15%}.pm2-col-people{width:18%}.pm2-col-rules{width:25%}.pm2-col-distribution{width:14%}.pm2-table tbody tr.js-package-row{cursor:pointer;outline:0}.pm2-table tbody tr.js-package-row:hover:not(.is-inactive) td{background:#f8fafc}.pm2-table tbody tr.js-package-row.is-selected td{background:#eaf8fb}.pm2-table tbody tr.js-package-row.is-inactive td{background:#eef2f6;color:#8793a4}.pm2-table tbody tr.js-package-row.is-inactive td:first-child{box-shadow:inset 4px 0 0 #c3ccd8}.pm2-table tbody tr.js-package-row:focus-visible td{box-shadow:inset 0 0 0 2px #0ea5b7}.pm2-name-cell{display:flex;align-items:center;gap:8px;min-width:0}.pm2-status-bar{display:block;width:6px;height:32px;border-radius:999px;background:#16a34a;flex:0 0 auto}.is-inactive .pm2-status-bar{background:#94a3b8}.pm2-name-cell>span:last-child{display:flex;flex-direction:column;gap:1px;min-width:0}.pm2-name-cell strong,.pm2-col-price strong,.pm2-col-people strong{font-size:13px;color:#0f172a}.pm2-name-cell strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pm2-name-cell small,.pm2-col-price small,.pm2-col-people small{display:block;font-size:10px;color:#7b8797;margin-top:1px}.is-inactive .pm2-name-cell strong{color:#657286}.pm2-rule-chips,.pm2-dist-chips{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.pm2-rule-chip,.pm2-dist-chips span{display:inline-flex;align-items:center;gap:3px;min-height:22px;padding:3px 6px;border-radius:6px;border:1px solid #cfe9d5;background:#edf7ef;color:#15803d;font-size:9px;font-weight:900;line-height:1;white-space:nowrap}.pm2-rule-chip.is-off,.pm2-dist-chips span.is-off{border-color:#e2e8f0;background:#f1f5f9;color:#94a3b8}.pm2-dist-chips span{border-color:#dce6f1;background:#f4f8fc;color:#45627f}.pm2-table-footer{position:sticky;bottom:0;z-index:2}.pm2-modal-window{width:min(1120px,calc(100vw - 28px));max-height:min(94vh,980px)}.pm2-span-sub{grid-column:span 1}.pm2-span-name{grid-column:span 1}.pm2-rule-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pm2-rule-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;min-height:68px;padding:9px 10px;border:1px solid #dfe7ef;border-radius:9px;background:#fff}.pm2-rule-card>i{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#eef8f0;color:#16a34a;font-size:17px}.pm2-rule-card>span{display:flex;flex-direction:column;gap:2px;min-width:0}.pm2-rule-card b{font-size:11px;color:#0f172a}.pm2-rule-card small{font-size:10px;line-height:1.4;color:#64748b}.pm2-rule-card>strong{font-size:9px;letter-spacing:.04em;color:#15803d}.pm2-rule-card.is-off{background:#f8fafc;border-style:dashed}.pm2-rule-card.is-off>i{background:#eef2f6;color:#94a3b8}.pm2-rule-card.is-off b,.pm2-rule-card.is-off small,.pm2-rule-card.is-off>strong{color:#94a3b8}.pm2-commercial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.pm2-commercial-field{margin:0;padding:10px;border:1px solid #e2e8f0;border-radius:9px;background:#fff}.pm2-commercial-field.is-locked{background:#f8fafc;border-style:dashed}.pm2-commercial-field.is-locked>span,.pm2-commercial-field.is-locked small{color:#94a3b8}.pm2-commercial-field small i{margin-right:3px}.pm2-calc-note{display:flex;align-items:flex-start;gap:8px;margin-top:9px;padding:9px 10px;border:1px solid #dbe7f4;border-radius:8px;background:#f8fbff;color:#536579}.pm2-calc-note>i{font-size:18px;color:#3b82f6}.pm2-calc-note span{font-size:10px;line-height:1.45}.pm2-ai-note{margin-bottom:10px}.pm2-ai-review label{align-items:flex-start}.pm2-ai-review em{white-space:pre-line}.pm2-readiness{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.pm2-save-warning{display:flex;flex-direction:column;gap:3px;margin-top:9px;padding:8px 9px;border:1px solid #f3cc8a;border-radius:8px;background:#fff8e8;text-align:left}.pm2-save-warning b{color:#92400e}.pm2-save-warning span{font-size:12px;color:#6b5a35}.pm2-save-rules{margin-top:9px;padding:8px 9px;border:1px solid #dbe5ef;border-radius:8px;background:#f8fafc;color:#475569;font-size:12px;text-align:left}.pm2-money:disabled{background:#f1f5f9!important;color:#94a3b8!important}.pm2-modal-window .jpos-money-field{min-height:40px}.pm2-modal-window .jpos-money-field .form-control{min-height:38px}
@media(max-width:1100px){.pm2-toolbar{grid-template-columns:1fr 1fr 1fr}.pm2-search-field{grid-column:1/-1}.pm2-readiness{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.pm2-toolbar{grid-template-columns:1fr 1fr}.pm2-search-field{grid-column:1/-1}.pm2-rule-summary,.pm2-commercial-grid{grid-template-columns:1fr 1fr}.pm2-readiness{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.pm2-page{font-size:16px}.pm2-principle{padding:10px}.pm2-principle strong{font-size:15px}.pm2-principle span{font-size:13px}.pm2-toolbar{grid-template-columns:1fr 1fr}.pm2-toolbar .cm2-filter>span{font-size:12px}.pm2-context{align-items:flex-start;flex-direction:column;gap:1px;padding:0 2px}.pm2-context strong{font-size:15px}.pm2-context span{font-size:13px}.pm2-table{min-width:940px}.pm2-name-cell strong,.pm2-col-price strong,.pm2-col-people strong{font-size:16px}.pm2-name-cell small,.pm2-col-price small,.pm2-col-people small{font-size:12px}.pm2-rule-chip,.pm2-dist-chips span{min-height:26px;font-size:11px}.pm2-rule-summary,.pm2-commercial-grid,.pm2-readiness{grid-template-columns:1fr}.pm2-rule-card{min-height:76px;padding:10px}.pm2-rule-card b{font-size:15px}.pm2-rule-card small{font-size:12px}.pm2-rule-card>strong{font-size:11px}.pm2-commercial-field{padding:11px}.pm2-calc-note span{font-size:12px}.pm2-modal-window .jpos-money-field{min-height:46px}.pm2-modal-window .jpos-money-field .form-control{min-height:44px;font-size:16px}.pm2-save-warning span,.pm2-save-rules{font-size:13px}}

/* ========================================================================== */
/* MASTER M1.9 — MASTER BACKGROUND · PUSAT MEDIA REFERENCE + AI ASSIST       */
/* ========================================================================== */
.bgm-page{font-size:14px}.bgm-pagehead .jpos-pagehead-copy{max-width:980px}.bgm-principle{display:flex;align-items:flex-start;gap:9px;margin:0 0 10px;padding:10px 12px;border:1px solid #cfe4ea;border-radius:9px;background:#f3fbfc;color:#334155}.bgm-principle>i{font-size:20px;color:#0891b2;flex:0 0 auto}.bgm-principle>div{display:flex;flex-direction:column;gap:2px}.bgm-principle strong{font-size:13px;color:#0f172a}.bgm-principle span{font-size:11px;line-height:1.45;color:#64748b}.bgm-toolbar{display:grid;grid-template-columns:220px 180px minmax(280px,1fr);gap:8px;align-items:end;border:1px solid #dbe5ef;background:#fff;border-radius:10px;padding:8px;margin-bottom:8px}.bgm-toolbar>label{display:flex;flex-direction:column;gap:4px;margin:0;min-width:0}.bgm-toolbar>label>span{font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#64748b}.bgm-toolbar .form-control{height:38px;min-height:38px;font-size:14px}.bgm-search-box{position:relative}.bgm-search-box>i{position:absolute;left:10px;top:50%;transform:translateY(-50%);z-index:1;color:#94a3b8;font-size:17px;pointer-events:none}.bgm-search-box .form-control{padding-left:32px}.bgm-table-shell{border:1px solid #dbe5ef;background:#fff;border-radius:10px;overflow:hidden}.bgm-table-scroll{overflow:auto;max-width:100%;overscroll-behavior-x:contain}.bgm-table{width:100%;min-width:940px;border-collapse:separate;border-spacing:0;table-layout:fixed}.bgm-table th{position:sticky;top:0;z-index:2;background:#f8fafc;border-bottom:1px solid #dbe5ef;padding:7px 9px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#64748b;text-align:left}.bgm-table td{padding:7px 9px;border-bottom:1px solid #eef2f7;font-size:13px;vertical-align:middle;color:#334155}.bgm-table tbody tr:last-child td{border-bottom:0}.bgm-table tbody tr.js-bgm-row{cursor:pointer;outline:0}.bgm-table tbody tr.js-bgm-row:hover:not(.is-inactive) td{background:#f8fafc}.bgm-table tbody tr.js-bgm-row.is-selected td{background:#eaf8fb}.bgm-table tbody tr.js-bgm-row.is-inactive td{background:#eef2f6;color:#8793a4}.bgm-table tbody tr.js-bgm-row.is-inactive td:first-child{box-shadow:inset 4px 0 0 #c3ccd8}.bgm-table tbody tr.js-bgm-row:focus-visible td{box-shadow:inset 0 0 0 2px #0ea5b7}.bgm-table td>strong{display:block;font-size:13px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bgm-table td>small{display:block;margin-top:2px;font-size:10px;line-height:1.3;color:#7b8797;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bgm-table tr.is-inactive td>strong{color:#657286}.bgm-col-preview{width:78px}.bgm-table-preview{display:grid;place-items:center;width:54px;height:42px;border:1px solid #dbe5ef;border-radius:7px;overflow:hidden;background:#f8fafc}.bgm-table-preview img{display:block;width:100%;height:100%;object-fit:cover}.bgm-preview-empty{display:grid;place-items:center;width:100%;height:100%;color:#94a3b8;font-size:19px}.bgm-chip-row{display:flex;gap:4px;flex-wrap:wrap}.bgm-chip{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:900;line-height:1;white-space:nowrap;border:1px solid #dce6f1;background:#f4f8fc;color:#45627f}.bgm-chip.is-public{border-color:#cfe9d5;background:#edf7ef;color:#15803d}.bgm-chip.is-ai{border-color:#d8d6ff;background:#f4f2ff;color:#5b4bb7}.bgm-chip.is-off{border-color:#e2e8f0;background:#f1f5f9;color:#94a3b8}.bgm-table-footer{position:sticky;bottom:0;z-index:2;display:flex;justify-content:space-between;gap:12px;padding:7px 9px;border-top:1px solid #e5eaf1;background:#f8fafc;color:#64748b;font-size:11px}.bgm-table-footer>:first-child{font-weight:800;color:#334155}

.bgm-modal{font-size:14px}.bgm-create-note,.bgm-modal-meta{display:flex;align-items:flex-start;gap:8px;margin:0 0 10px;padding:9px 11px;border:1px solid #dbe7f4;border-radius:8px;background:#f8fbff;color:#536579}.bgm-create-note>i{font-size:18px;color:#3b82f6}.bgm-create-note span{font-size:11px;line-height:1.45}.bgm-modal-meta{align-items:center;font-size:11px}.bgm-modal-meta i{color:#b7c1cc}.bgm-modal-meta b.is-on{color:#15803d}.bgm-modal-meta b.is-off{color:#94a3b8}.bgm-section{margin-bottom:10px;padding:10px;border:1px solid #dfe7ef;border-radius:10px;background:#fff}.bgm-section:last-child{margin-bottom:0}.bgm-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:9px}.bgm-section-head>div{display:flex;flex-direction:column;gap:2px;min-width:0}.bgm-section-head b{font-size:12px;color:#0f172a}.bgm-section-head small{font-size:10px;line-height:1.35;color:#64748b}.bgm-selected-count{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;background:#eef6f8;color:#0e7490;font-size:9px;font-weight:900;white-space:nowrap}.bgm-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px}.bgm-span-2{grid-column:span 2}.bgm-span-3,.bgm-full{grid-column:1/-1}.bgm-field{display:flex;flex-direction:column;gap:4px;margin:0;min-width:0}.bgm-field>span{font-size:10px;font-weight:850;color:#56687b}.bgm-field .form-control{min-height:38px;font-size:14px}.bgm-field textarea.form-control{height:auto;min-height:78px;resize:vertical;line-height:1.45}.bgm-store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.bgm-store-card{display:flex;align-items:center;gap:8px;min-height:54px;margin:0;padding:8px 9px;border:1px solid #dfe7ef;border-radius:8px;background:#fff;cursor:pointer}.bgm-store-card:hover{background:#f8fafc}.bgm-store-card.is-selected{border-color:#99d4df;background:#f2fbfd}.bgm-store-card input{width:17px;height:17px;flex:0 0 17px}.bgm-store-card>span{display:flex;flex-direction:column;gap:1px;min-width:0}.bgm-store-card b{font-size:11px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bgm-store-card small{font-size:9px;color:#7b8797}.bgm-sub-store{margin:0 0 8px;border:1px solid #dfe7ef;border-radius:9px;overflow:hidden}.bgm-sub-store:last-child{margin-bottom:0}.bgm-sub-store>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:8px 10px;background:#f8fafc;border-bottom:1px solid #e5eaf1}.bgm-sub-store>header>div{display:flex;flex-direction:column;gap:1px}.bgm-sub-store>header b{font-size:11px;color:#0f172a}.bgm-sub-store>header small{font-size:9px;color:#64748b}.bgm-sub-store>header>span{font-size:9px;font-weight:900;color:#64748b;white-space:nowrap}.bgm-sub-category{padding:8px 10px;border-bottom:1px solid #eef2f7}.bgm-sub-category:last-child{border-bottom:0}.bgm-sub-category.is-inactive{background:#f8fafc}.bgm-sub-category-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.bgm-sub-category-head>div{display:flex;align-items:center;gap:5px}.bgm-sub-category-head b{font-size:10px;color:#475569;text-transform:uppercase;letter-spacing:.03em}.bgm-sub-category-head small{font-size:8px;color:#94a3b8}.bgm-sub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.bgm-sub-check{display:flex;align-items:center;gap:7px;min-height:38px;margin:0;padding:6px 8px;border:1px solid #e2e8f0;border-radius:7px;background:#fff;cursor:pointer}.bgm-sub-check:hover{background:#f8fafc}.bgm-sub-check.is-selected{border-color:#a9d9e2;background:#f3fbfc}.bgm-sub-check.is-inactive{opacity:.72}.bgm-sub-check input{width:16px;height:16px;flex:0 0 16px}.bgm-sub-check>span{display:flex;align-items:center;gap:5px;min-width:0;font-size:10px;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bgm-sub-check small{font-size:8px;color:#94a3b8}.bgm-empty{display:flex;align-items:center;justify-content:center;gap:7px;min-height:64px;padding:12px;border:1px dashed #dbe5ef;border-radius:8px;background:#fafcfd;color:#7b8797;font-size:10px;text-align:center}.bgm-media-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:8px}.bgm-media-toolbar .bgm-search-box{flex:1;min-width:0}.bgm-media-toolbar .bgm-search-box .form-control{height:38px;min-height:38px;font-size:14px}.bgm-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;max-height:370px;overflow:auto;padding:1px 2px 4px}.bgm-media-card{display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto auto;gap:6px 8px;align-items:center;padding:7px;border:1px solid #dfe7ef;border-radius:9px;background:#fff}.bgm-media-card.is-selected{border-color:#8fcfdc;background:#f2fbfd}.bgm-media-card.is-inactive{opacity:.65}.bgm-media-thumb{grid-row:1/3;width:72px;height:62px;border-radius:7px;overflow:hidden;background:#f1f5f9}.bgm-media-thumb img{display:block;width:100%;height:100%;object-fit:cover}.bgm-media-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.bgm-media-copy b{font-size:10px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bgm-media-copy small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:8px;line-height:1.25;color:#7b8797}.bgm-media-card .btn{justify-self:start;min-height:28px;padding:4px 8px;font-size:9px}.bgm-selected-title{display:flex;justify-content:space-between;align-items:flex-end;gap:8px;margin:10px 0 6px;padding-top:8px;border-top:1px solid #eef2f7}.bgm-selected-title b{font-size:10px;color:#334155}.bgm-selected-title small{font-size:9px;color:#7b8797}.bgm-selected-media{display:grid;gap:5px}.bgm-selected-media-row{display:grid;grid-template-columns:28px 48px minmax(0,1fr) auto auto auto;align-items:center;gap:7px;padding:5px 7px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.bgm-selected-media-row.is-inactive{background:#f8fafc;opacity:.72}.bgm-media-order{font-size:9px;font-weight:900;color:#64748b;text-align:center}.bgm-selected-media-row img{width:48px;height:38px;object-fit:cover;border-radius:6px;background:#f1f5f9}.bgm-selected-media-copy{display:flex;flex-direction:column;gap:1px;min-width:0}.bgm-selected-media-copy b{font-size:10px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bgm-selected-media-copy small{font-size:8px;color:#7b8797;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bgm-mini-toggle{display:flex;align-items:center;gap:4px;margin:0;font-size:9px;color:#64748b;white-space:nowrap}.bgm-mini-toggle input{width:15px;height:15px}.bgm-media-row-actions{display:flex;gap:3px}.bgm-media-row-actions .btn{width:28px;height:28px;padding:0;display:grid;place-items:center}.bgm-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:8px}.bgm-toggle-card{display:flex;align-items:flex-start;gap:8px;margin:0;padding:9px;border:1px solid #dfe7ef;border-radius:8px;background:#fff;cursor:pointer}.bgm-toggle-card input{width:17px;height:17px;margin-top:1px;flex:0 0 17px}.bgm-toggle-card>span{display:flex;flex-direction:column;gap:2px}.bgm-toggle-card b{font-size:11px;color:#0f172a}.bgm-toggle-card small{font-size:9px;line-height:1.35;color:#64748b}.bgm-ai-section{border-color:#d9d6ff;background:#fbfaff}.bgm-ai-head{align-items:center}.bgm-ai-head .btn{white-space:nowrap}.bgm-ai-help{min-height:0;margin-bottom:7px}.bgm-ai-help:empty{display:none}.bgm-ai-help:not(:empty){padding:8px 9px;border:1px solid #dedcf5;border-radius:8px;background:#fff;color:#5c587e;font-size:10px;line-height:1.4}.bgm-tag-preview{display:flex;flex-wrap:wrap;gap:4px;min-height:20px}.bgm-tag-preview span{display:inline-flex;align-items:center;min-height:20px;padding:2px 7px;border-radius:999px;background:#eef2f7;color:#475569;font-size:9px;font-weight:800}.bgm-tag-preview small{font-size:9px;color:#94a3b8}.bgm-modal-footer-left,.bgm-modal-footer-right{display:flex;align-items:center;gap:7px}.bgm-modal-footer-right{margin-left:auto}.bgm-dirty-note{font-size:9px;color:#7b8797}.bgm-ai-review{display:grid;gap:7px}.bgm-ai-review>p{margin:0 0 2px;font-size:12px;line-height:1.45;color:#536579}.bgm-ai-review>label{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:flex-start;margin:0;padding:8px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.bgm-ai-review>label input{width:17px;height:17px;margin-top:1px}.bgm-ai-review>label span{display:flex;flex-direction:column;gap:2px}.bgm-ai-review b{font-size:12px;color:#334155}.bgm-ai-review em{font-size:12px;line-height:1.4;color:#64748b;font-style:normal;white-space:pre-wrap}.bgm-ai-review>small{font-size:11px;color:#7b8797;line-height:1.4}

@media(max-width:1100px){.bgm-toolbar{grid-template-columns:1fr 1fr}.bgm-search{grid-column:1/-1}.bgm-store-grid,.bgm-sub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bgm-media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.bgm-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bgm-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bgm-span-2,.bgm-span-3{grid-column:1/-1}.bgm-selected-media-row{grid-template-columns:26px 44px minmax(0,1fr) auto auto}.bgm-selected-media-row .bgm-media-row-actions{grid-column:3/-1;justify-content:flex-end}}
@media(max-width:767px){.bgm-page,.bgm-modal{font-size:16px}.bgm-principle{padding:10px}.bgm-principle strong{font-size:15px}.bgm-principle span{font-size:13px}.bgm-toolbar{grid-template-columns:1fr 1fr}.bgm-toolbar>label>span{font-size:12px}.bgm-toolbar .form-control{height:44px;min-height:44px;font-size:16px}.bgm-table{min-width:900px}.bgm-table th{font-size:12px}.bgm-table td{font-size:16px}.bgm-table td>strong{font-size:16px}.bgm-table td>small{font-size:12px}.bgm-chip{min-height:26px;font-size:11px}.bgm-table-footer{font-size:12px}.bgm-create-note span,.bgm-modal-meta{font-size:13px}.bgm-section{padding:10px 9px}.bgm-section-head{align-items:flex-start}.bgm-section-head b{font-size:15px}.bgm-section-head small{font-size:12px}.bgm-selected-count{font-size:11px}.bgm-form-grid,.bgm-store-grid,.bgm-sub-grid,.bgm-toggle-grid{grid-template-columns:1fr}.bgm-span-2,.bgm-span-3,.bgm-full{grid-column:auto}.bgm-field>span{font-size:13px}.bgm-field .form-control{min-height:46px;font-size:16px}.bgm-field textarea.form-control{min-height:96px}.bgm-store-card{min-height:62px}.bgm-store-card b{font-size:15px}.bgm-store-card small{font-size:12px}.bgm-sub-store>header b{font-size:14px}.bgm-sub-store>header small,.bgm-sub-store>header>span{font-size:11px}.bgm-sub-category-head b{font-size:13px}.bgm-sub-category-head small{font-size:10px}.bgm-sub-check{min-height:48px}.bgm-sub-check>span{font-size:14px}.bgm-sub-check small{font-size:10px}.bgm-empty{font-size:13px}.bgm-media-toolbar{align-items:stretch;flex-direction:column}.bgm-media-toolbar .bgm-search-box .form-control{height:46px;min-height:46px;font-size:16px}.bgm-media-toolbar .btn{min-height:44px;font-size:14px}.bgm-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:430px}.bgm-media-card{grid-template-columns:64px minmax(0,1fr);padding:7px}.bgm-media-thumb{width:64px;height:58px}.bgm-media-copy b{font-size:13px}.bgm-media-copy small{font-size:11px}.bgm-media-card .btn{min-height:34px;font-size:12px}.bgm-selected-title{align-items:flex-start;flex-direction:column}.bgm-selected-title b{font-size:14px}.bgm-selected-title small{font-size:11px}.bgm-selected-media-row{grid-template-columns:24px 48px minmax(0,1fr);gap:6px}.bgm-selected-media-copy b{font-size:14px}.bgm-selected-media-copy small{font-size:11px}.bgm-mini-toggle{font-size:12px}.bgm-selected-media-row>.bgm-mini-toggle{grid-column:auto}.bgm-selected-media-row .bgm-media-row-actions{grid-column:1/-1;justify-content:flex-end;border-top:1px solid #eef2f7;padding-top:5px}.bgm-toggle-card{min-height:68px}.bgm-toggle-card b{font-size:14px}.bgm-toggle-card small{font-size:12px}.bgm-ai-head{align-items:flex-start;flex-direction:column}.bgm-ai-head .btn{width:100%;min-height:44px;font-size:14px}.bgm-ai-help{font-size:12px}.bgm-tag-preview span{font-size:12px;min-height:24px}.bgm-tag-preview small{font-size:12px}.bgm-modal-footer-left,.bgm-modal-footer-right{width:100%}.bgm-modal-footer-right{margin-left:0;justify-content:flex-end;flex-wrap:wrap}.bgm-dirty-note{width:100%;font-size:12px}.bgm-ai-review>p,.bgm-ai-review b,.bgm-ai-review em{font-size:14px}.bgm-ai-review>small{font-size:12px}}
@media(max-width:480px){.bgm-toolbar{grid-template-columns:1fr}.bgm-search{grid-column:auto}.bgm-media-grid{grid-template-columns:1fr}}

/* === Finance Period Closing · 30 Sep 2026 === */
.jpos-period-closing-page{font-size:14px}.jpos-period-closing-status{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px}.jpos-period-closing-status-main{display:flex;align-items:center;gap:14px}.jpos-period-closing-status-main h2{margin:2px 0 4px;font-size:20px}.jpos-period-closing-status-main p{margin:0}.jpos-period-closing-status-main>span{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:rgba(0,0,0,.04);font-size:24px}.jpos-period-closing-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:14px 0}.jpos-period-closing-metrics article{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:14px;min-width:0}.jpos-period-closing-metrics span,.jpos-period-closing-metrics small{display:block}.jpos-period-closing-metrics strong{display:block;font-size:20px;margin:4px 0}.jpos-period-closing-checks{display:grid;gap:10px;margin-top:14px}.jpos-period-check{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;align-items:center;gap:12px;border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:12px 14px}.jpos-period-check.is-fail{border-color:rgba(220,53,69,.35);background:rgba(220,53,69,.04)}.jpos-period-check.is-warning{border-color:rgba(255,193,7,.4);background:rgba(255,193,7,.05)}.jpos-period-check-icon{font-size:22px;text-align:center}.jpos-period-check strong,.jpos-period-check small{display:block}.jpos-period-check small{margin-top:2px}.jpos-period-carry-summary{display:flex;justify-content:space-between;gap:12px;font-size:18px}.jpos-period-carry-summary span{font-weight:700}
@media(max-width:900px){.jpos-period-closing-page{font-size:16px}.jpos-period-closing-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-period-closing-status{align-items:flex-start;flex-direction:column}.jpos-period-check{grid-template-columns:34px minmax(0,1fr) auto}.jpos-period-check .btn{grid-column:2/4;width:100%}.jpos-period-carry-summary{flex-direction:column}.jpos-period-closing-metrics article:last-child{grid-column:1/-1}}

/* Finance Dana Kebutuhan control center */
.jpos-reserve-settlement-summary-v2{grid-template-columns:repeat(5,minmax(0,1fr))}.jpos-reserve-settlement-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 14px}.jpos-funding-link-warning{display:block;margin-top:5px;color:#b42318;font-weight:600;font-size:.9em}.jpos-funding-link-warning i{margin-right:4px}
@media(max-width:900px){.jpos-reserve-settlement-summary-v2{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-reserve-settlement-summary-v2>div:last-child{grid-column:1/-1}.jpos-reserve-settlement-actions{align-items:stretch;flex-direction:column}.jpos-reserve-settlement-actions .btn{width:100%}}

/* ============================================================
   MASTER KARYAWAN V1
   ============================================================ */
.jpos-employee-master-page{font-size:14px}
.jpos-employee-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 12px}
.jpos-employee-summary-grid>.jpos-card{padding:14px 16px;display:flex;flex-direction:column;gap:3px;min-height:90px}
.jpos-employee-summary-grid span{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--muted,#6c7a90)}
.jpos-employee-summary-grid strong{font-size:22px;line-height:1.15;color:var(--ink,#1f2937)}
.jpos-employee-summary-grid small{color:var(--muted,#6c7a90)}
.jpos-employee-toolbar{display:grid;grid-template-columns:180px 220px minmax(280px,1fr);gap:12px;padding:14px;margin-bottom:12px}
.jpos-employee-toolbar label,.employee-master-form label{display:grid;gap:6px;margin:0}
.jpos-employee-toolbar label>span,.employee-master-form label>span{font-weight:700}
.jpos-employee-table-card{padding:0;overflow:hidden}
.jpos-employee-table-card>.jpos-section-title-row{padding:16px 18px}
.jpos-employee-table-wrap{max-height:58vh;overflow:auto}
.jpos-employee-table{min-width:1180px;margin:0}
.jpos-employee-table tbody tr{cursor:pointer}
.jpos-employee-table td>strong{display:block}
.jpos-employee-detail-card{margin-top:14px;padding:18px}
.jpos-employee-detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:14px}
.jpos-employee-detail-main,.jpos-employee-detail-side{display:grid;gap:14px;align-content:start}
.jpos-employee-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.jpos-employee-info-grid>div,.jpos-employee-section{border:1px solid var(--border,#e2e8f0);border-radius:12px;background:var(--surface,#fff);padding:12px}
.jpos-employee-info-grid span{display:block;font-size:12px;font-weight:700;color:var(--muted,#6c7a90);margin-bottom:4px}
.jpos-employee-info-grid strong{display:block;white-space:pre-wrap;word-break:break-word}
.jpos-employee-section h3{margin:0 0 10px;font-size:15px}
.jpos-employee-mini-row,.jpos-employee-linked-user{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid var(--border,#eef2f7)}
.jpos-employee-mini-row:last-child{border-bottom:0}
.jpos-employee-mini-row span,.jpos-employee-linked-user span,.jpos-employee-linked-user small{display:block;color:var(--muted,#6c7a90)}
.jpos-employee-change{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border-bottom:1px solid var(--border,#eef2f7)}
.jpos-employee-change>div:first-child{display:grid;gap:2px}
.jpos-employee-change>div:last-child{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.jpos-employee-change span{font-weight:700}
.jpos-employee-change small{color:var(--muted,#6c7a90)}
.employee-master-form{max-height:66vh;overflow:auto;padding-right:4px}
.employee-form-section{border:1px solid #e5eaf2;border-radius:12px;padding:14px;margin-bottom:12px}
.employee-form-section h4{margin:0 0 12px;font-size:15px}
.employee-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.employee-form-section textarea{min-height:72px}
.employee-inline-check{display:flex!important;align-items:center;grid-template-columns:auto 1fr!important;margin:8px 0!important}
.employee-inline-check input{width:auto!important}
.employee-store-selector{display:grid;gap:6px;margin-top:10px}
.employee-store-check{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center;gap:8px!important;padding:7px 9px;border:1px solid #e5eaf2;border-radius:9px}
.employee-store-check input{width:auto!important;margin:0!important}
.employee-plan-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}

@media (max-width:1100px){
  .jpos-employee-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .jpos-employee-detail-grid{grid-template-columns:1fr}
  .jpos-employee-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .employee-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  .jpos-employee-master-page{font-size:16px}
  .jpos-employee-summary-grid{grid-template-columns:1fr 1fr}
  .jpos-employee-toolbar{grid-template-columns:1fr}
  .jpos-employee-table-wrap{max-height:62vh;overflow:auto;overscroll-behavior:contain}
  .jpos-employee-table{min-width:1100px}
  .jpos-employee-info-grid,.employee-form-grid,.employee-plan-fields{grid-template-columns:1fr}
  .jpos-employee-detail-card{padding:12px}
  .employee-master-form{max-height:70vh}
}

/* Master Karyawan V1 — private employee documents */
.jpos-employee-doc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.jpos-employee-doc-head h3{margin:0}.jpos-employee-doc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line,#e8eef5)}.jpos-employee-doc-row:last-child{border-bottom:0}.jpos-employee-doc-row>div{min-width:0;display:grid;gap:2px}.jpos-employee-doc-row span,.jpos-employee-doc-row small{overflow-wrap:anywhere}.jpos-employee-doc-row .btn{flex:0 0 auto}
@media(max-width:720px){.jpos-employee-doc-row{align-items:flex-start}.jpos-employee-doc-row .btn{min-height:40px}.jpos-employee-doc-head{align-items:center}}

/* ============================================================
   MASTER KARYAWAN V1.1 — INLINE MASTER JABATAN & DIVISI
   ============================================================ */
.employee-master-select-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.employee-master-select-head>span:first-child{font-weight:700}
.employee-org-manager{margin-top:14px;padding:14px;border:1px solid var(--jpos-border,#dde5ee);border-radius:14px;background:#f8fafc}
.employee-org-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.employee-org-manager-head>div{display:grid;gap:2px}
.employee-org-manager-head strong{font-size:1rem}
.employee-org-manager-head small{color:#64748b}
.employee-org-editor-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.5fr) 110px 90px;gap:10px;align-items:end}
.employee-org-list{display:grid;gap:8px;margin-top:14px;max-height:270px;overflow:auto;padding-right:2px}
.employee-org-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.employee-org-row>div{min-width:0;display:grid;gap:2px}
.employee-org-row strong,.employee-org-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.employee-org-row small{color:#64748b}
@media(max-width:720px){
  .employee-org-editor-grid{grid-template-columns:1fr 1fr}
  .employee-org-manager{padding:12px}
  .employee-org-manager-head{align-items:center}
  .employee-org-row{align-items:flex-start}
}
@media(max-width:520px){
  .employee-org-editor-grid{grid-template-columns:1fr}
  .employee-master-select-head{align-items:center}
  .employee-org-row{display:grid;grid-template-columns:minmax(0,1fr) auto}
}


/* ==========================================================
   FINANCE PERIOD NAVIGATOR — JPOS native (01 Oct 2026)
   Satu pola untuk Operasional, Payroll, dan Tutup Periode.
   ========================================================== */
.jpos-period-select-block{display:grid;gap:6px;min-width:260px}
.jpos-period-select-block>label{display:block;font-size:11px;font-weight:800;letter-spacing:.07em;color:#73839a;margin:0}
.jpos-month-nav{display:grid;grid-template-columns:44px minmax(170px,1fr) 44px;align-items:center;gap:6px;width:min(100%,340px)}
.jpos-month-nav-btn,.jpos-month-current{min-height:42px;border:1px solid #d9e4ef;background:#fff;color:#193451;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.15s ease}
.jpos-month-nav-btn:hover,.jpos-month-current:hover{border-color:#a9bfd5;background:#f7fafc}
.jpos-month-nav-btn:active,.jpos-month-current:active{transform:translateY(1px)}
.jpos-month-current{gap:8px;padding:0 14px;font-weight:800;font-size:14px;white-space:nowrap}
.jpos-month-current .icon{font-size:16px;color:#4f6f8e}
.jpos-month-nav-btn{font-size:17px}
.jpos-payroll-period-picker{display:grid!important;grid-template-columns:minmax(260px,360px) auto!important;align-items:end!important;column-gap:12px!important;row-gap:4px!important}
.jpos-payroll-period-picker .jpos-month-nav{grid-column:1}
.jpos-payroll-period-picker>span{grid-column:2;align-self:center}
.jpos-period-closing-actions{align-items:center!important;flex-wrap:wrap}
.jpos-period-closing-actions .jpos-month-nav{width:320px}
.jpos-period-closing-status{box-shadow:0 1px 2px rgba(18,44,70,.04)}
.jpos-period-closing-metrics article{box-shadow:0 1px 2px rgba(18,44,70,.03)}
.jpos-period-check{transition:border-color .15s ease,background-color .15s ease}
@media(max-width:900px){
  .jpos-period-select-block{min-width:0;width:100%}
  .jpos-month-nav,.jpos-period-closing-actions .jpos-month-nav{width:100%;max-width:none}
  .jpos-period-closing-actions{width:100%;display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
  .jpos-period-closing-actions .jpos-month-nav{grid-column:1/-1}
  .jpos-period-closing-actions .btn{width:100%}
  .jpos-payroll-period-picker{grid-template-columns:1fr!important}
  .jpos-payroll-period-picker .jpos-month-nav,.jpos-payroll-period-picker>span{grid-column:1}
}
@media(max-width:600px){
  .jpos-month-nav{grid-template-columns:46px minmax(0,1fr) 46px}
  .jpos-month-nav-btn,.jpos-month-current{min-height:48px}
  .jpos-month-current{font-size:16px;padding:0 10px}
  .jpos-period-select-block>label{font-size:12px}
  .jpos-period-closing-actions{grid-template-columns:1fr}
  .jpos-period-closing-actions .jpos-month-nav{grid-column:1}
  .jpos-period-closing-page .jpos-finance-toolbar{padding:14px}
  .jpos-period-closing-status-main h2{font-size:18px}
}

/* ============================================================
   JPOS 14.3 — PAYROLL + TUTUP PERIODE UI CLEANUP
   1 Oktober 2026
   ============================================================ */

/* PAYROLL — remove duplicate/dead UX, keep one canonical action lane */
.jpos-payroll-period-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 18px;
  background:#fbfcfe;
}
.jpos-payroll-action-copy{display:grid;gap:2px;min-width:220px}
.jpos-payroll-action-copy>span{font-size:10px;font-weight:800;letter-spacing:.08em;color:#708198}
.jpos-payroll-action-copy>small{font-size:11px;color:#6d7e91;line-height:1.35}
.jpos-payroll-action-buttons{justify-content:flex-end;gap:8px}
.jpos-payroll-action-buttons .btn{min-height:38px;padding:7px 13px}
.jpos-payroll-period-picker>span{font-size:11px;font-weight:500;color:#7a8999}
.jpos-payroll-table .jpos-money strong{white-space:nowrap}
.jpos-payroll-master-card{margin-top:14px}

/* Better density for payroll summary. */
@media (max-width:1399px) and (min-width:901px){
  .jpos-payroll-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* TUTUP PERIODE — one compact control card, then metrics/checklist. */
.jpos-period-closing-pagehead{margin-bottom:14px}
.jpos-pc-control-card{
  display:grid;
  grid-template-columns:minmax(280px,360px) minmax(360px,1fr) auto;
  align-items:center;
  gap:18px;
  padding:16px 18px;
  margin-bottom:14px;
  border-left:4px solid #d8e2ec;
  transition:.15s ease;
}
.jpos-pc-control-card.is-ready{border-left-color:#2aa56e}
.jpos-pc-control-card.is-blocked{border-left-color:#d75b5b}
.jpos-pc-control-card.is-closed{border-left-color:#214e77}
.jpos-pc-control-period{display:grid;gap:5px;min-width:0}
.jpos-pc-control-period .jpos-month-nav{width:100%;max-width:340px}
.jpos-pc-control-period>strong{font-size:13px;color:#193451}
.jpos-pc-control-period>small{font-size:10px;color:#7b8b9c;line-height:1.35}
.jpos-pc-control-status{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;padding-left:18px;border-left:1px solid #e4ebf2}
.jpos-pc-status-copy{display:flex;align-items:center;gap:12px;min-width:0}
.jpos-pc-status-copy>.js-pc-status-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#f1f5f9;color:#34516d;font-size:21px;flex:0 0 42px}
.jpos-pc-status-copy h2{margin:2px 0 2px;font-size:17px;color:#18324c;line-height:1.2}
.jpos-pc-status-copy p{margin:0;font-size:11px;color:#708198;line-height:1.4}
.jpos-pc-control-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.jpos-pc-control-actions .btn{min-height:40px;white-space:nowrap}
.jpos-pc-control-actions .btn:disabled{opacity:.55;cursor:not-allowed}

.jpos-period-closing-metrics{margin:0 0 14px;gap:10px}
.jpos-period-closing-metrics article{padding:12px 13px;border-radius:12px;min-height:88px}
.jpos-period-closing-metrics article>span{font-size:10px;font-weight:700;color:#66798f}
.jpos-period-closing-metrics article>strong{font-size:18px;margin:5px 0 2px;color:#172d44}
.jpos-period-closing-metrics article>small{font-size:10px;color:#8391a1;line-height:1.3}

.jpos-pc-check-card{padding:0;overflow:hidden}
.jpos-pc-section-head{padding:14px 16px;margin:0;border-bottom:1px solid #e8eef4}
.jpos-pc-section-head h2{margin:2px 0 3px;font-size:17px}
.jpos-pc-section-head p{margin:0;font-size:11px;color:#718297}
.jpos-period-closing-checks{gap:7px;margin:0;padding:10px 12px 12px}
.jpos-period-check{grid-template-columns:32px minmax(0,1fr) auto auto;gap:10px;padding:9px 12px;border-radius:10px;min-height:58px}
.jpos-period-check-icon{font-size:19px}
.jpos-period-check strong{font-size:13px;color:#20364d}
.jpos-period-check small{font-size:10px;color:#75869a;line-height:1.35}
.jpos-period-check .jpos-health-pill{min-width:68px;text-align:center;justify-content:center}
.jpos-period-check .btn{min-width:54px}
.jpos-period-carry-card{padding:0;overflow:hidden;margin-top:14px}
.jpos-period-carry-card .jpos-pc-section-head{border-bottom:0}
.jpos-period-carry-summary{align-items:flex-end;flex-direction:column;gap:2px;font-size:14px;white-space:nowrap}
.jpos-period-carry-summary span{font-size:18px;color:#172d44}
.jpos-pc-lock-note{margin-top:12px}

@media (max-width:1100px){
  .jpos-pc-control-card{grid-template-columns:1fr 1fr}
  .jpos-pc-control-actions{grid-column:1/-1;justify-content:flex-end;border-top:1px solid #edf1f5;padding-top:12px}
  .jpos-pc-control-status{border-left:0;padding-left:0}
  .jpos-period-closing-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:900px){
  .jpos-payroll-period-actions{align-items:stretch;flex-direction:column;padding:12px 14px}
  .jpos-payroll-action-copy{min-width:0}
  .jpos-payroll-action-copy>small{font-size:14px}
  .jpos-payroll-action-buttons{display:grid!important;grid-template-columns:1fr;gap:8px;width:100%}
  .jpos-payroll-action-buttons .btn{width:100%;min-height:46px;font-size:16px}
  .jpos-payroll-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

  .jpos-pc-control-card{grid-template-columns:1fr;padding:14px;gap:14px}
  .jpos-pc-control-status{border-top:1px solid #edf1f5;padding-top:14px}
  .jpos-pc-control-actions{grid-column:auto;display:grid;grid-template-columns:1fr 1fr;width:100%;padding-top:12px}
  .jpos-pc-control-actions .btn{width:100%;min-height:48px;font-size:16px}
  .jpos-pc-status-copy h2{font-size:18px}
  .jpos-pc-status-copy p,.jpos-pc-control-period>small,.jpos-pc-section-head p,.jpos-period-check small{font-size:14px}
  .jpos-period-closing-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-period-closing-metrics article{min-height:96px;padding:13px}
  .jpos-period-closing-metrics article>span,.jpos-period-closing-metrics article>small{font-size:13px}
  .jpos-period-closing-metrics article>strong{font-size:19px}
  .jpos-period-closing-metrics article:last-child{grid-column:1/-1}
  .jpos-period-closing-checks{padding:8px}
  .jpos-period-check{grid-template-columns:30px minmax(0,1fr) auto;padding:11px 10px}
  .jpos-period-check strong{font-size:15px}
  .jpos-period-check .btn{grid-column:2/4;width:100%;min-height:42px;font-size:16px}
  .jpos-period-carry-summary{align-items:flex-start}
}

@media (max-width:560px){
  .jpos-payroll-summary-grid{grid-template-columns:1fr}
  .jpos-pc-control-actions{grid-template-columns:1fr}
  .jpos-period-closing-metrics{grid-template-columns:1fr}
  .jpos-period-closing-metrics article:last-child{grid-column:auto}
  .jpos-pc-control-status{align-items:flex-start;flex-direction:column}
}

/* ============================================================
   JPOS 14.4 — OPERASIONAL PERIOD MONEY FLOW READABILITY
   1 Oktober 2026
   ============================================================ */

/* Operasional & Kewajiban — bedakan posisi periode vs saldo account berjalan */
.jpos-op-period-position{
  margin:0 16px 14px;
  padding:14px;
  border:1px solid #dfe8f1;
  border-radius:12px;
  background:#f9fbfd;
}
.jpos-op-period-position-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.jpos-op-period-position-head h3{margin:2px 0 3px;font-size:17px;line-height:1.25;color:#193451}
.jpos-op-period-position-head p{margin:0;max-width:820px;font-size:12px;line-height:1.45;color:#73849a}
.jpos-op-position-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.jpos-op-position-grid>div{display:grid;gap:3px;padding:11px 12px;border:1px solid #e1e8f0;border-radius:10px;background:#fff;min-width:0}
.jpos-op-position-grid small{font-size:11px;font-weight:750;color:#708198}
.jpos-op-position-grid strong{font-size:16px;color:#18324c;white-space:nowrap}
.jpos-op-position-grid span{font-size:10px;line-height:1.35;color:#8996a5}
.jpos-op-handoff-note{margin-top:10px;padding:10px 12px;border:1px solid #dbe7f3;border-radius:9px;background:#f6faff;color:#49677f;font-size:12px;line-height:1.5}
.jpos-op-handoff-note.is-warning{border-color:#efdcae;background:#fff9ed;color:#7d6022}
.jpos-op-handoff-note.is-good{border-color:#cfe8db;background:#f4fbf7;color:#2f7657}
.jpos-op-handoff-note.is-info{border-color:#d6e5f4;background:#f7fbff;color:#49677f}

/* Pindah Dana — saldo account selalu current; panel ini hanya membaca periode operasional */
.jpos-mv-period-breakdown{margin:0 0 12px;padding:13px;border:1px solid #dfe8f1;border-radius:12px;background:#f9fbfd}
.jpos-mv-period-breakdown-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:11px}
.jpos-mv-period-breakdown-head>div:first-child{min-width:0}
.jpos-mv-period-breakdown-head h3{margin:2px 0 3px;font-size:16px;color:#193451}
.jpos-mv-period-breakdown-head p{margin:0;max-width:760px;font-size:11px;line-height:1.45;color:#73849a}
.jpos-mv-period-breakdown .jpos-period-select-block{min-width:280px;justify-items:end}
.jpos-mv-period-breakdown .jpos-period-select-block>label{text-align:right}
.jpos-mv-period-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.jpos-mv-period-grid>div{display:grid;gap:3px;padding:10px 11px;border:1px solid #e2e9f0;border-radius:10px;background:#fff;min-width:0}
.jpos-mv-period-grid small{font-size:10px;font-weight:750;line-height:1.25;color:#718398}
.jpos-mv-period-grid strong{font-size:15px;color:#18324c;white-space:nowrap}
.jpos-mv-period-readout{margin-top:9px;padding:9px 11px;border:1px solid #dce7f2;border-radius:9px;background:#fff;color:#587188;font-size:11px;line-height:1.45}
.jpos-mv-period-readout.is-warning{border-color:#efdcae;background:#fff9ed;color:#7d6022}
.jpos-mv-period-readout.is-good{border-color:#cfe8db;background:#f4fbf7;color:#2f7657}
.jpos-mv-period-readout.is-info{border-color:#d7e6f5;background:#f7fbff;color:#49677f}
.jpos-month-nav-compact{grid-template-columns:38px minmax(150px,1fr) 38px;width:270px;margin-top:7px}
.jpos-month-nav-compact .jpos-month-nav-btn,.jpos-month-nav-compact .jpos-month-current{min-height:36px}
.jpos-month-nav-compact .jpos-month-current{font-size:12px;padding:0 10px}
.jpos-rs-meta{display:grid;justify-items:end;gap:2px}

@media(max-width:1199px){
  .jpos-op-position-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-mv-period-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .jpos-op-period-position{margin:0 12px 12px;padding:12px}
  .jpos-op-period-position-head,.jpos-mv-period-breakdown-head{display:grid;grid-template-columns:1fr;align-items:stretch}
  .jpos-mv-period-breakdown .jpos-period-select-block{min-width:0;width:100%;justify-items:stretch}
  .jpos-mv-period-breakdown .jpos-period-select-block>label{text-align:left}
  .jpos-mv-period-breakdown .jpos-month-nav{width:100%;max-width:none}
  .jpos-rs-meta{justify-items:start;width:100%}
  .jpos-rs-meta .jpos-month-nav-compact{width:100%;max-width:none}
}
@media(max-width:600px){
  .jpos-op-position-grid,.jpos-mv-period-grid{grid-template-columns:1fr 1fr}
  .jpos-op-period-position-head h3,.jpos-mv-period-breakdown-head h3{font-size:18px}
  .jpos-op-period-position-head p,.jpos-op-handoff-note,.jpos-mv-period-breakdown-head p,.jpos-mv-period-readout{font-size:16px}
  .jpos-op-position-grid small,.jpos-mv-period-grid small{font-size:14px}
  .jpos-op-position-grid strong,.jpos-mv-period-grid strong{font-size:17px}
  .jpos-op-position-grid span{font-size:13px}
  .jpos-mv-period-breakdown{padding:12px}
  .jpos-month-nav-compact{grid-template-columns:46px minmax(0,1fr) 46px}
  .jpos-month-nav-compact .jpos-month-nav-btn,.jpos-month-nav-compact .jpos-month-current{min-height:48px}
  .jpos-month-nav-compact .jpos-month-current{font-size:16px}
}
@media(max-width:420px){
  .jpos-op-position-grid,.jpos-mv-period-grid{grid-template-columns:1fr}
}

/* =========================================================
   JPOS 14.5 — OPERASIONAL & KEWAJIBAN STRICT FLOW
   OPERASIONAL BULANAN -> DANA TERIKAT -> BAYAR -> SELESAI
   ========================================================= */
.jpos-ops-page .jpos-op-principle-note{margin-bottom:12px}
.jpos-ops-page .jpos-op-control-card{overflow:visible}
.jpos-op-flow-guide{display:flex;align-items:center;gap:10px;padding:12px 16px;border-top:1px solid #e7edf4;border-bottom:1px solid #e7edf4;background:#f8fbfe}
.jpos-op-flow-guide>.icon{font-size:14px;color:#9aabba;flex:0 0 auto}
.jpos-op-flow-step{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.jpos-op-flow-step>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e8f3f7;color:#167b8b;font-weight:800;font-size:12px;flex:0 0 auto}
.jpos-op-flow-step>div{display:grid;gap:1px;min-width:0}
.jpos-op-flow-step strong{font-size:13px;line-height:1.2;color:#193451}
.jpos-op-flow-step small{font-size:10px;line-height:1.25;color:#7d8ca0;white-space:normal}
.jpos-ops-page .jpos-op-summary{padding-top:12px;padding-bottom:12px}
.jpos-ops-page .jpos-op-position-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.jpos-op-lines-title{padding-top:2px}
.jpos-section-copy{margin:4px 0 0;color:#7a899b;font-size:12px;line-height:1.4}
.jpos-op-account-readout{display:grid;gap:3px;padding:11px 12px;border:1px solid #cee3e8;border-radius:10px;background:#f4fbfc;margin:2px 0 4px}
.jpos-op-account-readout>span{font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#5d7b82}
.jpos-op-account-readout>strong{font-size:15px;color:#18324c}
.jpos-op-account-readout>small{font-size:11px;color:#61768b;line-height:1.35}
.jpos-op-account-readout.is-error{border-color:#eccaca;background:#fff6f6}
.jpos-op-modal-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:8px;border-bottom:1px solid #e7edf4}
.jpos-op-modal-title strong{font-size:15px;color:#18324c}
.jpos-op-modal-title span{font-size:11px;color:#718299;text-align:right}
.jpos-op-payment-balance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:2px 0 4px}
.jpos-op-payment-balance>div{display:grid;gap:3px;padding:9px 10px;border:1px solid #e1e8f0;border-radius:9px;background:#fff}
.jpos-op-payment-balance span{font-size:10px;color:#758499}
.jpos-op-payment-balance strong{font-size:14px;color:#17314d;white-space:nowrap}
.jpos-op-new-payee{display:grid;gap:6px;padding:10px;border:1px dashed #cfdbe7;border-radius:9px;background:#f9fbfd;margin-top:4px}
.jpos-finance-warning{padding:9px 10px;border-radius:8px;border:1px solid #efdcae;background:#fff9ed;color:#7d6022;font-size:12px;line-height:1.45}
.jpos-ops-page .jpos-muted{color:#8a97a7;font-size:11px}
.jpos-op-lines-table .jpos-inline-actions{min-width:130px}

@media (max-width:1200px){
  .jpos-ops-page .jpos-op-position-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .jpos-op-flow-guide{flex-wrap:wrap}
  .jpos-op-flow-guide>.icon{display:none}
  .jpos-op-flow-step{flex:1 1 calc(50% - 8px)}
}
@media (max-width:767px){
  .jpos-op-flow-guide{display:grid;grid-template-columns:1fr 1fr;padding:12px;gap:8px}
  .jpos-op-flow-step{padding:8px;border:1px solid #e1e8f0;border-radius:9px;background:#fff}
  .jpos-op-flow-step strong{font-size:16px}
  .jpos-op-flow-step small{font-size:13px}
  .jpos-ops-page .jpos-op-position-grid{grid-template-columns:1fr}
  .jpos-op-account-readout>span,.jpos-op-modal-title span,.jpos-op-payment-balance span{font-size:13px}
  .jpos-op-account-readout>strong,.jpos-op-modal-title strong,.jpos-op-payment-balance strong{font-size:16px}
  .jpos-op-account-readout>small,.jpos-section-copy,.jpos-finance-warning{font-size:14px}
  .jpos-op-payment-balance{grid-template-columns:1fr}
  .jpos-op-modal-title{display:grid;grid-template-columns:1fr}
  .jpos-op-modal-title span{text-align:left}
  .jpos-ops-page .jpos-muted{font-size:14px}
}

/* =========================================================
   JPOS — OPERASIONAL KEWAJIBAN COMPACT TABLE
   Detail administratif dipindahkan ke modal Bayar.
   ========================================================= */
.jpos-op-lines-table th:first-child,.jpos-op-lines-table td:first-child{min-width:220px}
.jpos-op-lines-table .jpos-op-line-name{display:block;font-size:13px;line-height:1.35;color:#18324c}
.jpos-op-lines-table .jpos-inline-actions{min-width:150px;justify-content:flex-start}
.jpos-op-obligation-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:2px 0 4px}
.jpos-op-obligation-detail>div{display:grid;gap:3px;padding:9px 10px;border:1px solid #e1e8f0;border-radius:9px;background:#f9fbfd;min-width:0}
.jpos-op-obligation-detail span{font-size:10px;color:#758499}
.jpos-op-obligation-detail strong{font-size:13px;color:#17314d;line-height:1.35;overflow-wrap:anywhere}
.jpos-op-obligation-detail .is-overdue{border-color:#efc9c9;background:#fff6f6}
.jpos-op-obligation-detail .is-overdue strong{color:#b33b3b}
@media(max-width:767px){
  .jpos-op-lines-table th:first-child,.jpos-op-lines-table td:first-child{min-width:190px}
  .jpos-op-lines-table .jpos-op-line-name{font-size:16px}
  .jpos-op-lines-table .jpos-inline-actions{min-width:140px;flex-wrap:wrap}
  .jpos-op-obligation-detail{grid-template-columns:1fr}
  .jpos-op-obligation-detail span{font-size:13px}
  .jpos-op-obligation-detail strong{font-size:16px}
}


/* ============================================================
   JPOS14.6 — Closing period context + physical reconciliation
   ============================================================ */
.jpos-health-k-recon-context{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 10px;
  padding:10px 12px;
  border:1px solid #dbe6ee;
  border-radius:10px;
  background:#f7fafc;
  color:#536b82;
}
.jpos-health-k-recon-context>i{font-size:18px;color:#2e7f93}
.jpos-health-k-recon-context>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
.jpos-health-k-recon-context strong{font-size:.8rem;color:#18324c}
.jpos-health-k-recon-context span{font-size:.72rem;line-height:1.4;color:#75889a}
.jpos-health-k-recon-context.is-internal{margin-top:14px;background:#f4f8fb}
.jpos-health-k-internal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.jpos-health-k-internal-item{
  display:grid;
  grid-template-columns:minmax(160px,1.4fr) repeat(3,minmax(95px,1fr));
  gap:8px;
  align-items:center;
  padding:11px 12px;
  border:1px solid #dfe8ef;
  border-left:4px solid #46a27d;
  border-radius:10px;
  background:#fff;
}
.jpos-health-k-internal-item.is-bad{border-left-color:#c85d64;background:#fff8f8}
.jpos-health-k-internal-item>div:first-child strong{display:block;font-size:.82rem;color:#18324c}
.jpos-health-k-internal-item>div:first-child small{display:block;margin-top:2px;font-size:.68rem;color:#8797a6}
.jpos-health-k-internal-item>div:not(:first-child) span{display:block;font-size:.66rem;color:#7a8c9e}
.jpos-health-k-internal-item>div:not(:first-child) strong{display:block;margin-top:2px;font-size:.78rem;color:#20384f}
@media(max-width:991px){
  .jpos-health-k-internal-grid{grid-template-columns:1fr}
  .jpos-health-k-internal-item{grid-template-columns:1.2fr repeat(3,1fr)}
}
@media(max-width:767px){
  .jpos-health-k-recon-context{align-items:flex-start}
  .jpos-health-k-internal-item{grid-template-columns:1fr 1fr}
  .jpos-health-k-internal-item>div:first-child{grid-column:1/-1}
}

/* ============================================================
   JPOS 14.7 — Dana Dukungan / Owner Support
   Non-pendapatan, payroll-aware, mobile responsive.
   ============================================================ */
.jpos-payroll-support-card{margin-top:14px;border:1px solid #f2d7a6;background:linear-gradient(180deg,#fffdf8 0%,#fffaf0 100%)}
.jpos-payroll-support-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 18px 8px}
.jpos-payroll-support-head h2{margin:2px 0 4px;font-size:18px}.jpos-payroll-support-head p{margin:0;max-width:850px;color:#617086;line-height:1.5}
.jpos-payroll-support-grid,.jpos-owner-support-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:10px 18px 14px}
.jpos-payroll-support-grid>div,.jpos-owner-support-grid>div{border:1px solid #e5eaf0;border-radius:10px;background:#fff;padding:12px 14px;min-width:0}
.jpos-payroll-support-grid span,.jpos-owner-support-grid small{display:block;font-size:11px;font-weight:700;color:#6d7b8e;text-transform:uppercase;letter-spacing:.02em}
.jpos-payroll-support-grid strong,.jpos-owner-support-grid strong{display:block;margin-top:4px;font-size:17px;color:#172a43}.jpos-payroll-support-grid small,.jpos-owner-support-grid span{display:block;margin-top:3px;color:#7d8998;font-size:11px;font-weight:400;text-transform:none}
.jpos-payroll-support-note{margin:0 18px 16px;padding:10px 12px;border-radius:8px;background:#fff3d8;color:#775416;border:1px solid #f2d7a6}
.jpos-owner-support-section{border-color:#f2d7a6}.jpos-owner-support-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 18px 14px}.jpos-owner-support-actions .jpos-finance-note{margin:0;flex:1}
.jpos-owner-support-history-wrap{padding:0 18px 18px}.jpos-owner-support-history td,.jpos-owner-support-history th{vertical-align:middle}
.jpos-support-modal-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 14px}.jpos-support-modal-summary>div{padding:10px;border:1px solid #e5eaf0;border-radius:8px;background:#f8fafc}.jpos-support-modal-summary span{display:block;color:#7a8798;font-size:11px}.jpos-support-modal-summary strong{display:block;margin-top:3px;color:#172a43}
.jpos-check-row{display:flex!important;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid #dfe6ee;border-radius:8px;background:#f8fafc}.jpos-check-row input{width:auto!important;margin-top:2px}

@media (max-width: 768px){
  .jpos-payroll-support-head,.jpos-owner-support-actions{flex-direction:column;align-items:stretch}
  .jpos-payroll-support-grid,.jpos-owner-support-grid{grid-template-columns:1fr 1fr}
  .jpos-payroll-support-head h2{font-size:18px}.jpos-payroll-support-head p,.jpos-payroll-support-note,.jpos-owner-support-actions,.jpos-owner-support-history{font-size:16px}
  .jpos-payroll-support-grid span,.jpos-payroll-support-grid small,.jpos-owner-support-grid small,.jpos-owner-support-grid span{font-size:14px}
  .jpos-payroll-support-grid strong,.jpos-owner-support-grid strong{font-size:17px}
  .jpos-support-modal-summary{grid-template-columns:1fr}
}
@media (max-width: 520px){.jpos-payroll-support-grid,.jpos-owner-support-grid{grid-template-columns:1fr}}

/* JPOS14.8 — Dana Dukungan hanya muncul saat benar-benar diperlukan */
.jpos-payroll-support-summary{margin-top:14px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #f2d7a6;background:#fffdf8}
.jpos-payroll-support-summary>div{min-width:0}.jpos-payroll-support-summary strong{display:block;margin-top:3px;font-size:15px;color:#172a43}.jpos-payroll-support-summary small{display:block;margin-top:3px;color:#6d7b8e;line-height:1.45}
@media (max-width:768px){.jpos-payroll-support-summary{flex-direction:column;align-items:stretch}.jpos-payroll-support-summary strong{font-size:16px}.jpos-payroll-support-summary small{font-size:14px}}

/* ============================================================
   JPOS14.14 — PINDAH DANA COMPACT OWNER VIEW
   Main surface = current account balances + period omzet/cash-in.
   Secondary finance detail is on-demand via Swal.fire modals.
   ============================================================ */
.jpos-movement-compact{--mvc-border:#dce5ee;--mvc-text:#18324c;--mvc-muted:#6f8194;--mvc-bg:#f7f9fc;--mvc-blue:#1f6fa8;--mvc-green:#23845c;--mvc-amber:#b77809;--mvc-red:#b84c4c;font-size:14px}
.jpos-movement-compact .jpos-mv-compact-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}
.jpos-movement-compact .jpos-mv-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.jpos-movement-compact .jpos-mv-head-actions .btn{min-height:38px}
.jpos-mv-primary-section,.jpos-mv-secondary-section{margin-bottom:12px;padding:16px;border:1px solid var(--mvc-border,#dce5ee);border-radius:14px;background:#fff;box-shadow:0 3px 14px rgba(25,50,76,.025)}
.jpos-mv-primary-head,.jpos-mv-secondary-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:13px}
.jpos-mv-primary-head h2,.jpos-mv-secondary-head h2{margin:2px 0 3px;color:#18324c;font-size:18px;line-height:1.25}
.jpos-mv-primary-head p,.jpos-mv-secondary-head p{margin:0;max-width:900px;color:#6f8194;font-size:14px;line-height:1.5}
.jpos-mv-total-readout{text-align:right;flex:0 0 auto}
.jpos-mv-total-readout small{display:block;color:#7c8da0;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.jpos-mv-total-readout strong{display:block;margin-top:3px;color:#18324c;font-size:21px;line-height:1.15}
.jpos-mv-account-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px}
.jpos-mv-account-card{appearance:none;display:grid;grid-template-columns:42px minmax(0,1fr) 14px;align-items:center;gap:10px;width:100%;min-width:0;padding:13px;border:1px solid #e1e8ef;border-radius:12px;background:#fff;text-align:left;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.jpos-mv-account-card:hover{border-color:#b9d2e5;box-shadow:0 5px 15px rgba(34,84,121,.07);transform:translateY(-1px)}
.jpos-mv-account-card.is-negative{border-color:#efcaca;background:#fff9f9}
.jpos-mv-account-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:11px;background:#edf5fb;color:#2b739f;font-size:19px}
.jpos-mv-account-copy{display:block;min-width:0}
.jpos-mv-account-copy small{display:block;color:#7d8ea0;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-mv-account-copy strong{display:block;margin:2px 0;color:#20384f;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-mv-account-copy b{display:block;color:#152f49;font-size:18px;line-height:1.2}
.jpos-mv-account-copy em{display:block;margin-top:3px;color:#8897a7;font-size:10px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-mv-account-arrow{color:#9baaba;font-size:12px}
.jpos-mv-loading{grid-column:1/-1;padding:18px;text-align:center;color:#7c8da0}
.jpos-mv-period-head{align-items:flex-end}
.jpos-mv-period-select{min-width:285px;justify-items:end}
.jpos-mv-period-select>label{text-align:right}
.jpos-mv-period-kpi-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.jpos-mv-period-kpi{position:relative;overflow:hidden;padding:14px 15px;border:1px solid #e2e8ef;border-radius:12px;background:#fff}
.jpos-mv-period-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#2c78ad}
.jpos-mv-period-kpi.is-cashin:before{background:#2b976a}
.jpos-mv-period-kpi small{display:block;color:#728397;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.jpos-mv-period-kpi strong{display:block;margin:4px 0 3px;color:#17314a;font-size:24px;line-height:1.15}
.jpos-mv-period-kpi span{display:block;color:#7d8ea0;font-size:12px}
.jpos-mv-cashin-split{margin-top:10px;padding:11px 12px;border:1px solid #e3e9f0;border-radius:11px;background:#f9fbfd}
.jpos-mv-cashin-split-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;color:#2a4057;font-size:13px}
.jpos-mv-cashin-chips{display:flex;flex-wrap:wrap;gap:7px}
.jpos-mv-cashin-chip{display:inline-flex;align-items:baseline;gap:7px;padding:7px 9px;border:1px solid #dae5ee;border-radius:9px;background:#fff}
.jpos-mv-cashin-chip small{color:#708397;font-size:11px;font-weight:700}.jpos-mv-cashin-chip strong{color:#1b354f;font-size:13px}
.jpos-mv-cashin-chip.is-warning{border-color:#efd7a5;background:#fff9ee}
.jpos-mv-action-alert{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:11px;margin:0 0 12px;padding:11px 13px;border:1px solid #efd29d;border-radius:12px;background:#fff9ed}
.jpos-mv-action-alert[hidden]{display:none!important}
.jpos-mv-action-alert-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:#fff0cf;color:#b97806;font-size:20px}
.jpos-mv-action-alert-copy strong{display:block;color:#6e501a;font-size:14px}.jpos-mv-action-alert-copy span{display:block;margin-top:2px;color:#806a43;font-size:12px;line-height:1.45}
.jpos-mv-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.jpos-mv-quick{appearance:none;display:grid;grid-template-columns:38px minmax(0,1fr) 12px;align-items:center;gap:9px;min-height:68px;padding:10px 11px;border:1px solid #e1e8ef;border-radius:11px;background:#fff;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease}
.jpos-mv-quick:hover{border-color:#bdd3e3;background:#fbfdff}
.jpos-mv-quick-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:#eef5fa;color:#39759e;font-size:17px}
.jpos-mv-quick small{display:block;color:#7b8c9f;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}.jpos-mv-quick strong{display:block;margin-top:2px;color:#21384f;font-size:13px;line-height:1.3}.jpos-mv-quick>i:last-child{color:#9dabb8;font-size:11px}
.jpos-mv-modal{font-size:14px;color:#263d53}.jpos-mv-modal h4{margin:15px 0 7px;color:#1e3851;font-size:14px}.jpos-mv-period-modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;padding:9px 11px;border-radius:9px;background:#f5f8fb}.jpos-mv-period-modal-head small{color:#78899a;font-size:10px;font-weight:800}.jpos-mv-period-modal-head strong{font-size:14px;color:#1d3852}.jpos-mv-modal-titleline{display:flex;align-items:center;gap:10px;margin-bottom:10px}.jpos-mv-modal-titleline h3{margin:2px 0 0;font-size:18px}.jpos-mv-modal-titleline small{color:#7c8d9e;font-size:11px}.jpos-mv-modal-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.jpos-mv-modal-stat{padding:10px 11px;border:1px solid #e1e8ef;border-radius:9px;background:#fff}.jpos-mv-modal-stat small{display:block;color:#74869a;font-size:10px;font-weight:800;text-transform:uppercase}.jpos-mv-modal-stat strong{display:block;margin-top:4px;color:#18324c;font-size:16px}.jpos-mv-modal-stat span{display:block;margin-top:2px;color:#8493a3;font-size:10px}.jpos-mv-modal-info{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:10px;border:1px solid #e2e8ee;border-radius:9px;overflow:hidden}.jpos-mv-modal-info>div{display:flex;justify-content:space-between;gap:10px;padding:9px 10px;border-bottom:1px solid #edf1f4}.jpos-mv-modal-info>div:nth-child(odd){border-right:1px solid #edf1f4}.jpos-mv-modal-info span{color:#76889b}.jpos-mv-modal-info strong{color:#263e55}.jpos-mv-modal-table-wrap{max-height:420px;overflow:auto;border:1px solid #e2e8ee;border-radius:9px}.jpos-mv-modal-table{width:100%;border-collapse:collapse;font-size:12px}.jpos-mv-modal-table th{position:sticky;top:0;z-index:1;padding:9px 10px;background:#f4f7fa;color:#617589;text-align:left;font-size:10px;text-transform:uppercase}.jpos-mv-modal-table td{padding:9px 10px;border-top:1px solid #edf1f4;vertical-align:middle}.jpos-mv-modal-table .text-right{text-align:right}.jpos-mv-modal-note,.jpos-mv-modal-warning{margin-top:9px;padding:9px 10px;border-radius:8px;background:#f6f9fc;color:#657b90;font-size:11px;line-height:1.45}.jpos-mv-modal-warning{background:#fff5e9;color:#8a5a13}.jpos-mv-manage-grid{display:grid;gap:8px}.jpos-mv-manage-action{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:10px;padding:11px;border:1px solid #dfe7ee;border-radius:10px;background:#fff;text-align:left;cursor:pointer}.jpos-mv-manage-action>i{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:#edf5fa;color:#34749f;font-size:18px}.jpos-mv-manage-action strong{display:block;color:#21394f;font-size:14px}.jpos-mv-manage-action small{display:block;margin-top:2px;color:#8190a0;font-size:11px}
@media(max-width:980px){.jpos-movement-compact .jpos-mv-compact-head,.jpos-mv-primary-head{display:grid;grid-template-columns:1fr;align-items:stretch}.jpos-movement-compact .jpos-mv-head-actions{justify-content:flex-start}.jpos-mv-total-readout{text-align:left}.jpos-mv-period-select{min-width:0;justify-items:stretch}.jpos-mv-period-select>label{text-align:left}.jpos-mv-period-select .jpos-month-nav{width:100%;max-width:none}.jpos-mv-quick-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.jpos-movement-compact{font-size:16px}.jpos-mv-primary-section,.jpos-mv-secondary-section{padding:12px;border-radius:12px}.jpos-mv-primary-head h2,.jpos-mv-secondary-head h2{font-size:19px}.jpos-mv-primary-head p,.jpos-mv-secondary-head p{font-size:16px}.jpos-movement-compact .jpos-mv-head-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.jpos-movement-compact .jpos-mv-head-actions .btn{min-height:44px;font-size:15px}.jpos-movement-compact .jpos-mv-head-actions .js-mv-new{grid-column:1/-1}.jpos-mv-account-cards{grid-template-columns:1fr}.jpos-mv-account-card{min-height:82px;padding:12px}.jpos-mv-account-copy small,.jpos-mv-account-copy em{font-size:13px}.jpos-mv-account-copy strong{font-size:16px}.jpos-mv-account-copy b{font-size:20px}.jpos-mv-period-kpi-grid{grid-template-columns:1fr}.jpos-mv-period-kpi small{font-size:13px}.jpos-mv-period-kpi strong{font-size:23px}.jpos-mv-period-kpi span{font-size:14px}.jpos-mv-cashin-split-head{align-items:stretch;flex-direction:column;font-size:15px}.jpos-mv-cashin-split-head .btn{min-height:42px;font-size:14px}.jpos-mv-cashin-chip{width:100%;justify-content:space-between;padding:10px}.jpos-mv-cashin-chip small{font-size:14px}.jpos-mv-cashin-chip strong{font-size:16px}.jpos-mv-action-alert{grid-template-columns:42px 1fr}.jpos-mv-action-alert .btn{grid-column:1/-1;width:100%;min-height:44px;font-size:15px}.jpos-mv-action-alert-copy strong{font-size:16px}.jpos-mv-action-alert-copy span{font-size:14px}.jpos-mv-quick-grid{grid-template-columns:1fr}.jpos-mv-quick{min-height:74px;padding:12px}.jpos-mv-quick small{font-size:13px}.jpos-mv-quick strong{font-size:16px}.jpos-mv-modal{font-size:16px}.jpos-mv-modal-stats,.jpos-mv-modal-info{grid-template-columns:1fr}.jpos-mv-modal-info>div:nth-child(odd){border-right:0}.jpos-mv-modal-stat small{font-size:13px}.jpos-mv-modal-stat strong{font-size:17px}.jpos-mv-modal-stat span{font-size:13px}.jpos-mv-modal-table{font-size:14px}.jpos-mv-modal-table th{font-size:12px}.jpos-mv-modal-note,.jpos-mv-modal-warning{font-size:14px}.jpos-mv-manage-action strong{font-size:16px}.jpos-mv-manage-action small{font-size:14px}}
.jpos-mv-account-manager{display:grid;gap:7px;margin-bottom:10px}.jpos-mv-account-manage-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid #e1e8ef;border-radius:9px;background:#fff}.jpos-mv-account-manage-row>div:first-child{min-width:0}.jpos-mv-account-manage-row strong{display:block;color:#213a51;font-size:14px}.jpos-mv-account-manage-row span{display:block;margin-top:2px;color:#7d8da0;font-size:11px}.jpos-mv-account-manage-row>div:last-child{display:flex;gap:6px;flex:0 0 auto}
@media(max-width:700px){.jpos-mv-account-manage-row{align-items:stretch;flex-direction:column}.jpos-mv-account-manage-row strong{font-size:16px}.jpos-mv-account-manage-row span{font-size:14px}.jpos-mv-account-manage-row>div:last-child{display:grid;grid-template-columns:1fr;width:100%}.jpos-mv-account-manage-row .btn{min-height:42px;font-size:14px}}

/* JPOS14.15 — Pindah Dana: pisahkan Omzet, Alokasi/Sisihan, dan Saldo Realtime */
.jpos-mv-allocation-section{background:#fbfcfe}
.jpos-mv-allocation-section .jpos-mv-primary-head{align-items:flex-end}
.jpos-mv-allocation-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.jpos-mv-allocation-kpi{position:relative;min-width:0;padding:12px 13px;border:1px solid #e1e8ef;border-radius:11px;background:#fff;overflow:hidden}
.jpos-mv-allocation-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#7d93a8}
.jpos-mv-allocation-kpi.is-business:before{background:#2b976a}
.jpos-mv-allocation-kpi.is-support{background:#fffaf2;border-color:#eedbb8}
.jpos-mv-allocation-kpi.is-support:before{background:#d99016}
.jpos-mv-allocation-kpi small{display:block;color:#718397;font-size:10px;font-weight:800;letter-spacing:.035em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-mv-allocation-kpi strong{display:block;margin-top:5px;color:#17314a;font-size:18px;line-height:1.15}
.jpos-mv-allocation-kpi span{display:block;margin-top:4px;color:#7c8d9e;font-size:11px;line-height:1.35}
.jpos-mv-allocation-note{margin-top:9px;padding:9px 11px;border:1px solid #e2e9ef;border-radius:9px;background:#f6f9fc;color:#61778c;font-size:11px;line-height:1.45}
.jpos-mv-account-group{margin-top:11px;padding:11px;border:1px solid #e3e9ef;border-radius:12px;background:#fbfdff}
.jpos-mv-account-group:first-of-type{margin-top:0}
.jpos-mv-account-group.is-income{background:#f7fbff;border-color:#dbe8f2}
.jpos-mv-account-group.is-purpose{background:#fbfcfd}
.jpos-mv-account-group-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:9px;padding:0 2px}
.jpos-mv-account-group-head>div:first-child{min-width:0}
.jpos-mv-account-group-head small{display:block;color:#73869a;font-size:10px;font-weight:800;letter-spacing:.045em;text-transform:uppercase}
.jpos-mv-account-group-head strong{display:block;margin-top:2px;color:#1a344d;font-size:14px}
.jpos-mv-account-group-head span{display:block;margin-top:2px;color:#7b8c9d;font-size:11px;line-height:1.4}
.jpos-mv-group-total{flex:0 0 auto;min-width:145px;text-align:right}
.jpos-mv-group-total small{font-size:9px}
.jpos-mv-group-total strong{font-size:17px}
.jpos-mv-account-group .jpos-mv-account-cards{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.jpos-mv-balance-section .jpos-mv-total-readout{align-self:flex-start}

@media(max-width:1180px){
  .jpos-mv-allocation-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:980px){
  .jpos-mv-allocation-section .jpos-mv-primary-head{align-items:stretch}
  .jpos-mv-allocation-section .jpos-mv-primary-head>.btn{width:100%;min-height:42px}
  .jpos-mv-allocation-grid{grid-template-columns:1fr 1fr}
  .jpos-mv-account-group-head{align-items:flex-start;flex-direction:column}
  .jpos-mv-group-total{text-align:left}
}
@media(max-width:700px){
  .jpos-mv-allocation-grid{grid-template-columns:1fr}
  .jpos-mv-allocation-kpi{padding:12px 13px}
  .jpos-mv-allocation-kpi small{font-size:13px}
  .jpos-mv-allocation-kpi strong{font-size:20px}
  .jpos-mv-allocation-kpi span{font-size:14px}
  .jpos-mv-allocation-note{font-size:14px;padding:10px 11px}
  .jpos-mv-account-group{padding:10px}
  .jpos-mv-account-group-head small{font-size:13px}
  .jpos-mv-account-group-head strong{font-size:17px}
  .jpos-mv-account-group-head span{font-size:14px}
  .jpos-mv-group-total strong{font-size:19px}
  .jpos-mv-account-group .jpos-mv-account-cards{grid-template-columns:1fr}
}

/* =====================================================================
   JPOS SIDEBAR ACCORDION PATCH — 03 OKTOBER 2026
   - Kategori utama dibuat collapsible
   - Hanya satu kategori utama terbuka pada satu waktu
   - Hanya satu submenu sibling terbuka pada satu waktu
   - Dashboard memulai sidebar dalam kondisi ringkas
   ===================================================================== */

button.jpos-menu-category-toggle{
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
  cursor:pointer;
  font:inherit;
}

.jpos-menu-category-group{
  margin-bottom:4px;
}

.jpos-menu-category-static{
  margin-bottom:7px;
}

.jpos-menu-category-toggle{
  min-height:34px;
  padding:8px 10px!important;
  border-radius:8px;
  transition:background-color .16s ease,color .16s ease;
}

.jpos-menu-category-toggle:after{
  display:none!important;
}

.jpos-menu-category-toggle .jpos-menu-category-chevron{
  margin-left:auto;
  flex:0 0 auto;
  font-size:.68rem;
  transition:transform .18s ease,color .18s ease;
}

.jpos-menu-category-group.open > .jpos-menu-category-toggle .jpos-menu-category-chevron{
  transform:rotate(180deg);
}

.jpos-menu-category-panel[hidden]{
  display:none!important;
}

.jpos-menu-category-panel{
  padding-top:2px;
}

/* Jalur halaman aktif tetap terlihat meskipun kategori ditutup manual. */
.jpos-menu-category-group.active-path > .jpos-menu-category-toggle{
  font-weight:800;
}

body.jpos-shell-body .jpos-menu-category-toggle{
  color:#71869e!important;
}

body.jpos-shell-body .jpos-menu-category-toggle:hover{
  color:#c7d6e5!important;
  background:rgba(255,255,255,.045)!important;
}

body.jpos-shell-body .jpos-menu-category-group.open > .jpos-menu-category-toggle{
  color:#dbe8f3!important;
  background:rgba(255,255,255,.045)!important;
}

body.jpos-shell-body .jpos-menu-category-group.active-path > .jpos-menu-category-toggle{
  color:#7ed9dc!important;
  background:rgba(32,174,181,.09)!important;
}

body.jpos-shell-body .jpos-menu-category-toggle .jpos-menu-category-chevron{
  color:#6f849b!important;
}

body.jpos-shell-body .jpos-menu-category-group.open > .jpos-menu-category-toggle .jpos-menu-category-chevron,
body.jpos-shell-body .jpos-menu-category-group.active-path > .jpos-menu-category-toggle .jpos-menu-category-chevron{
  color:var(--jpos-accent-2)!important;
}

/* Sedikit rapikan jarak antar group agar sidebar tidak terasa panjang. */
body.jpos-shell-body .jpos-menu-category-panel > .jpos-menu-root > .br-menu-item{
  margin-bottom:1px;
}

/* Desktop icon-only tetap menampilkan seluruh ikon kategori.
   Header kategori disembunyikan, tetapi panel level-1 dipaksa tampil. */
@media (min-width:992px){
  body.jpos-shell-body.collapsed-menu .jpos-menu-category-group > .jpos-menu-category-panel,
  body.jpos-shell-body.collapsed-menu .jpos-menu-category-group > .jpos-menu-category-panel[hidden]{
    display:block!important;
    padding-top:0;
  }
}

@media (max-width:991px){
  .jpos-menu-category-toggle{
    min-height:38px;
    padding:9px 8px!important;
  }
}

/* =====================================================================
   SHIFT STALE GUARD — STEP 2 · 03 Oktober 2026
   Visual warning only. Tidak mengubah ledger / snapshot / status DB.
   ===================================================================== */
.jpos-header-chip.is-danger{
  background:#fff1f1;
  border-color:#efcaca;
  color:#b63f46;
  font-weight:700;
}
.jpos-shift-page .jpos-shift-context-chip.is-danger{
  background:rgba(219,75,83,.24);
  border-color:rgba(255,170,175,.34);
}
.jpos-shift-page .jpos-shift-active-card.is-stale{
  border-color:#efc7ca;
  box-shadow:0 8px 24px rgba(180,54,64,.08);
}
.jpos-shift-page .jpos-shift-active-card.is-stale .jpos-shift-active-head{
  background:linear-gradient(180deg,#fff8f8 0%,#fff 100%);
}
.jpos-shift-page .jpos-shift-active-card.is-stale .jpos-shift-active-head h3>i{
  color:#bd3f48;
}
.jpos-shift-page .jpos-shift-stale-warning{
  margin-top:12px;
  border-color:#efc7ca;
  background:#fff4f4;
  color:#8e3a40;
}
.jpos-shift-page .jpos-shift-open-table tr.is-stale td{
  background:#fffafa;
}
.jpos-dashboard-metric.tone-red:before{background:#cb4b54}
.jpos-dashboard-metric.tone-red .jpos-dashboard-metric-icon{background:#fff0f0;color:#b83f47}

/* =====================================================================
   SHIFT HISTORICAL CORRECTION — STEP 5B · 03 Oktober 2026
   Overlay audit-only: original close snapshot tetap utuh.
   ===================================================================== */
.jpos-shift-page .jpos-shift-history-table tr.is-corrected td{
  background:#fbfdfc;
}
.jpos-shift-page .jpos-shift-history-table td[data-label="Status"] .jpos-health-pill + .jpos-health-pill{
  margin-left:4px;
}
.jpos-shift-page .jpos-shift-correction-note{
  margin-top:10px;
}
.jpos-shift-page .jpos-shift-correction-note strong:first-child{
  font-weight:700;
}

/* =====================================================================
   PAYROLL SLIP MODAL + WHATSAPP DELIVERY · 03 Oktober 2026
   Modal tetap ringan; PDF hanya digenerate saat tombol Kirim ke WA dipakai.
   ===================================================================== */
.jpos-payroll-slip-modal{font-size:14px;color:#1d2a38}
.jpos-payroll-slip-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:14px 16px;border:1px solid #dce5ed;border-radius:12px;background:#f7fafc}
.jpos-payroll-slip-head>div:first-child{min-width:0;flex:1}
.jpos-payroll-slip-head>div:last-child{text-align:right;min-width:210px}
.jpos-payroll-slip-head span{display:block;font-size:11px;font-weight:800;letter-spacing:.05em;color:#6f7f90}
.jpos-payroll-slip-head h3{margin:3px 0 4px;font-size:20px;color:#173451}
.jpos-payroll-slip-head strong{display:block;font-size:17px;color:#173451}
.jpos-payroll-slip-head small{display:block;color:#6f7f90;margin-top:3px}
.jpos-payroll-slip-head .is-ready{color:#167a52;font-weight:700;margin-top:7px}
.jpos-payroll-slip-head .is-missing{color:#a66912;font-weight:700;margin-top:7px}
.jpos-payroll-slip-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.jpos-payroll-slip-summary>div{padding:12px 14px;border:1px solid #dce5ed;border-radius:10px;background:#fff}
.jpos-payroll-slip-summary span{display:block;font-size:11px;font-weight:700;color:#6f7f90;text-transform:uppercase}
.jpos-payroll-slip-summary strong{display:block;margin-top:3px;font-size:18px;color:#173451}
.jpos-payroll-slip-section{margin-top:15px}
.jpos-payroll-slip-section h4{margin:0 0 7px;font-size:14px;color:#173451}
.jpos-payroll-slip-adjust{display:flex;justify-content:space-between;gap:14px;padding:9px 10px;border-bottom:1px solid #e7edf3}
.jpos-payroll-slip-adjust span{font-weight:700}
.jpos-payroll-slip-adjust small{display:block;font-weight:400;color:#6f7f90;margin-top:2px}
.jpos-payroll-slip-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid #e1e8ef}
.jpos-payroll-slip-actions .btn-success{background:#16895e;border-color:#16895e;color:#fff}
.jpos-payroll-slip-actions .btn-success:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:700px){
  .jpos-payroll-slip-modal{font-size:16px}
  .jpos-payroll-slip-head{display:block;padding:13px}
  .jpos-payroll-slip-head>div:last-child{text-align:left;min-width:0;margin-top:12px;padding-top:10px;border-top:1px solid #dce5ed}
  .jpos-payroll-slip-summary{grid-template-columns:1fr}
  .jpos-payroll-slip-actions{display:grid;grid-template-columns:1fr;position:sticky;bottom:-1px;background:#fff;padding:12px 0 2px;z-index:2}
  .jpos-payroll-slip-actions .btn{width:100%;min-height:44px}
}

/* ============================================================
   PERFORMANCE CENTER V1 — Deadline KPI + Master Team Pelayanan
   ============================================================ */
.jpos-performance-page{font-size:14px}
.jpos-performance-period-nav{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 16px}
.jpos-performance-period-nav .btn{min-width:42px;height:42px;border-radius:10px}
.jpos-period-current{min-width:230px;text-align:center;padding:8px 18px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}
.jpos-period-current small{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;color:#64748b}
.jpos-period-current strong{display:block;font-size:16px;color:#0f172a;text-transform:capitalize}
.jpos-performance-policy{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;margin-bottom:16px;border:1px solid #dbeafe;background:#f8fbff;border-radius:14px}
.jpos-performance-policy>i{font-size:22px;color:#2563eb;margin-top:1px}
.jpos-performance-policy strong,.jpos-performance-policy span{display:block}.jpos-performance-policy span{margin-top:3px;color:#475569}
.jpos-performance-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.jpos-performance-metric{padding:15px 16px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;min-height:112px}
.jpos-performance-metric>span{display:flex;align-items:center;gap:7px;font-weight:700;color:#475569}.jpos-performance-metric>span i{font-size:18px}
.jpos-performance-metric>strong{display:block;font-size:28px;line-height:1.15;margin:10px 0 4px;color:#0f172a}.jpos-performance-metric>small{display:block;color:#64748b}
.jpos-performance-metric.tone-green{border-color:#bbf7d0;background:#f8fff9}.jpos-performance-metric.tone-green>strong{color:#15803d}
.jpos-performance-metric.tone-amber{border-color:#fde68a;background:#fffdf5}.jpos-performance-metric.tone-amber>strong{color:#b45309}
.jpos-performance-metric.tone-blue{border-color:#bfdbfe;background:#f8fbff}.jpos-performance-metric.tone-blue>strong{color:#1d4ed8}
.jpos-performance-metric.tone-muted{background:#f8fafc}.jpos-performance-metric.tone-muted>strong{color:#475569}
.jpos-performance-integrity-card{margin-bottom:16px}.jpos-performance-integrity{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px 18px}
.jpos-performance-integrity-chip{display:flex;align-items:center;gap:10px;border:1px solid #e2e8f0;border-radius:999px;padding:7px 11px;background:#fff}.jpos-performance-integrity-chip span{color:#64748b}.jpos-performance-integrity-chip strong{font-size:15px;color:#0f172a}.jpos-performance-integrity-chip.tone-warning{border-color:#fcd34d;background:#fffbeb}.jpos-performance-integrity-chip.tone-warning strong{color:#b45309}.jpos-performance-integrity-chip.tone-ok{border-color:#bbf7d0;background:#f0fdf4}.jpos-performance-integrity-chip.tone-muted{background:#f8fafc}
.jpos-performance-table td>strong,.jpos-performance-table td>small{display:block}.jpos-performance-table td>small{margin-top:3px;color:#64748b}.jpos-performance-number{display:inline-flex;min-width:34px;justify-content:center;font-weight:800;font-size:15px}.jpos-performance-number.success{color:#15803d}.jpos-performance-number.warning{color:#b45309}.jpos-performance-number.danger{color:#b91c1c}.jpos-performance-number.muted{color:#64748b}
.jpos-performance-rate{display:inline-flex;padding:5px 9px;border-radius:999px;font-weight:800}.jpos-performance-rate.success{background:#dcfce7;color:#166534}.jpos-performance-rate.warning{background:#fef3c7;color:#92400e}.jpos-performance-rate.danger{background:#fee2e2;color:#991b1b}.jpos-performance-rate.muted{background:#f1f5f9;color:#64748b}
.jpos-performance-detail-modal,.jpos-performance-integrity-modal,.jpos-performance-team-modal{width:min(1040px,calc(100vw - 28px));max-height:92vh;overflow:auto}.jpos-performance-person{display:flex;justify-content:space-between;gap:10px;padding:12px 16px;margin-bottom:12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.jpos-performance-person strong,.jpos-performance-person span{display:block}
.jpos-performance-task-list{display:grid;gap:10px}.jpos-performance-task{border:1px solid #e2e8f0;border-left-width:4px;border-radius:12px;padding:12px 14px;background:#fff}.jpos-performance-task.tone-success{border-left-color:#22c55e}.jpos-performance-task.tone-warning{border-left-color:#f59e0b}.jpos-performance-task.tone-danger{border-left-color:#ef4444}.jpos-performance-task.tone-muted{border-left-color:#94a3b8}
.jpos-performance-task-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.jpos-performance-task-head strong,.jpos-performance-task-head span{display:block}.jpos-performance-task-head span{color:#64748b;margin-top:3px}.jpos-performance-outcome{padding:4px 8px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.jpos-performance-outcome.success{background:#dcfce7;color:#166534}.jpos-performance-outcome.warning{background:#fef3c7;color:#92400e}.jpos-performance-outcome.danger{background:#fee2e2;color:#991b1b}.jpos-performance-outcome.muted{background:#f1f5f9;color:#64748b}
.jpos-performance-task-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.jpos-performance-task-grid>span{padding:8px 10px;border-radius:9px;background:#f8fafc}.jpos-performance-task-grid small,.jpos-performance-task-grid b{display:block}.jpos-performance-task-grid small{color:#64748b;margin-bottom:3px}.jpos-performance-task-grid b{font-weight:700}.jpos-performance-note{display:block;margin-top:8px;color:#475569}.jpos-performance-note.danger{color:#b91c1c;font-weight:700}
.jpos-performance-integrity-section{margin-bottom:20px}.jpos-performance-integrity-section>h3{display:flex;align-items:center;gap:8px;margin:0}.jpos-performance-integrity-section>h3 span{display:inline-flex;min-width:26px;height:26px;align-items:center;justify-content:center;border-radius:999px;background:#f1f5f9;font-size:12px}.jpos-performance-integrity-section>p{color:#64748b;margin:5px 0 10px}.jpos-performance-integrity-row{display:flex;justify-content:space-between;gap:14px;align-items:center;border:1px solid #e2e8f0;border-radius:11px;padding:11px 12px;margin-bottom:8px}.jpos-performance-integrity-row strong,.jpos-performance-integrity-row span,.jpos-performance-integrity-row small{display:block}.jpos-performance-integrity-row span,.jpos-performance-integrity-row small{color:#64748b;margin-top:2px}.jpos-performance-review-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.jpos-performance-team-actions{display:flex;justify-content:flex-end;margin-bottom:10px}.jpos-performance-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.jpos-performance-team-card{border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#fff}.jpos-performance-team-card.is-inactive{opacity:.65}.jpos-performance-team-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.jpos-performance-team-card-head small,.jpos-performance-team-card-head strong{display:block}.jpos-performance-team-card-head small{color:#64748b;font-weight:700}.jpos-performance-team-card-head strong{font-size:16px}.jpos-performance-team-flags{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0}.jpos-performance-team-flags span{padding:3px 7px;border-radius:999px;background:#f1f5f9;font-size:11px;font-weight:700;color:#475569}.jpos-performance-team-members{display:flex;flex-wrap:wrap;gap:6px}.jpos-performance-team-members>span{border:1px solid #e2e8f0;border-radius:9px;padding:6px 8px}.jpos-performance-team-members b,.jpos-performance-team-members small{display:block}.jpos-performance-team-members small{color:#64748b;margin-top:2px}.jpos-performance-team-members em{color:#94a3b8}
.jpos-performance-team-options{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0 12px}.jpos-performance-team-options label{display:flex!important;align-items:center;gap:6px!important;margin:0!important}.jpos-performance-member-picker{max-height:300px;overflow:auto;border:1px solid #e2e8f0;border-radius:10px;padding:6px}.jpos-performance-member-picker>label{display:flex!important;align-items:flex-start!important;gap:9px!important;padding:8px!important;margin:0!important;border-bottom:1px solid #f1f5f9}.jpos-performance-member-picker>label:last-child{border-bottom:0}.jpos-performance-member-picker b,.jpos-performance-member-picker small{display:block}.jpos-performance-member-picker small{color:#64748b}
@media(max-width:991px){.jpos-performance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-performance-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-performance-team-grid{grid-template-columns:1fr}}
@media(max-width:767px){.jpos-performance-page{font-size:16px}.jpos-period-current{min-width:0;flex:1}.jpos-performance-summary{grid-template-columns:1fr 1fr}.jpos-performance-metric{padding:12px}.jpos-performance-metric>strong{font-size:23px}.jpos-performance-table-wrap{overflow-x:auto;position:relative}.jpos-performance-table{min-width:900px}.jpos-performance-task-grid{grid-template-columns:1fr}.jpos-performance-task-head,.jpos-performance-integrity-row,.jpos-performance-person{flex-direction:column}.jpos-performance-review-actions{justify-content:flex-start}.jpos-performance-detail-modal,.jpos-performance-integrity-modal,.jpos-performance-team-modal{width:calc(100vw - 16px)}}

/* ============================================================
   PERFORMANCE SURVEY STEP 6–7 + PENILAIAN SAYA
   ============================================================ */
.jpos-my-performance-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:16px 0}.jpos-my-performance-person{margin-bottom:14px}.jpos-my-performance-person h3{margin:4px 0}.jpos-my-performance-person p{margin:0;color:#718096}.jpos-performance-summary.is-self{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}.jpos-my-survey-score{display:flex;align-items:stretch;gap:14px;flex-wrap:wrap}.jpos-my-survey-score>div:first-child{flex:1;min-width:220px;border:1px solid #e2e8f0;border-radius:14px;padding:16px}.jpos-my-survey-score strong{display:block;font-size:28px;line-height:1.1;margin:6px 0}.jpos-my-survey-score strong small{font-size:13px;color:#718096}.jpos-my-survey-score span{display:block;color:#718096}.jpos-rating-stars{font-size:22px;letter-spacing:2px;color:#e4ad21}.jpos-rating-stars.is-empty{font-size:13px;letter-spacing:0;color:#8795a8}.jpos-my-survey-pending{display:flex;gap:10px;align-items:center;max-width:240px;border:1px solid #f5d28a;background:#fff9e8;border-radius:14px;padding:13px}.jpos-my-survey-pending b{font-size:26px;color:#b7791f}.jpos-my-survey-pending span{font-size:12px;color:#7b5d1c}.jpos-performance-team-breakdown{display:grid;gap:8px;margin-top:12px}.jpos-performance-team-breakdown>div:not(.jpos-state){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:10px 12px;border:1px solid #edf1f6;border-radius:10px}.jpos-performance-team-breakdown b{font-size:13px}.jpos-performance-team-breakdown small{grid-column:1/-1;color:#8491a3}.jpos-my-survey-list{display:grid;gap:9px}.jpos-my-survey-list article{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border:1px solid #e5ebf2;border-radius:12px;padding:12px 14px}.jpos-my-survey-list article>div{display:grid;gap:3px}.jpos-my-survey-list article span,.jpos-my-survey-list article small{color:#718096}.jpos-my-survey-list article em{font-style:normal;font-size:11px;font-weight:800;border-radius:999px;padding:5px 9px;white-space:nowrap;background:#eef2f7;color:#667085}.jpos-my-survey-list article em.is-not_required,.jpos-my-survey-list article em.is-valid{background:#eaf8f1;color:#167653}.jpos-my-survey-list article em.is-pending{background:#fff4db;color:#a36708}.jpos-my-survey-list article em.is-external_factor,.jpos-my-survey-list article em.is-not_relevant{background:#f1f3f6;color:#6b7280}.jpos-performance-survey-cell{display:grid;gap:2px}.jpos-performance-survey-cell small{color:#8491a3}.jpos-performance-detail-kpi{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 18px}.jpos-performance-detail-kpi>div{border:1px solid #e4eaf1;border-radius:13px;padding:14px;display:grid;gap:3px}.jpos-performance-detail-kpi small,.jpos-performance-detail-kpi span{color:#7a8798}.jpos-performance-detail-kpi strong{font-size:22px}.jpos-performance-section-title{font-size:15px;margin:18px 0 10px}.jpos-performance-survey-master-list{display:grid;gap:9px}.jpos-performance-survey-master-list article{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid #e3e9f0;border-radius:12px;padding:13px}.jpos-performance-survey-master-list article.is-inactive{opacity:.6}.jpos-performance-survey-master-list article>div{display:grid;gap:3px}.jpos-performance-survey-master-list small,.jpos-performance-survey-master-list span{color:#7b8798}.jpos-calendar-survey-team-setup{border:1px solid #dce5ef;border-radius:14px;padding:13px;margin-bottom:12px;background:#fbfcfe}.jpos-calendar-survey-team-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}.jpos-calendar-survey-team-title>div{display:grid;gap:2px}.jpos-calendar-survey-team-title small{color:#768498}.jpos-calendar-survey-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}.jpos-calendar-survey-team-grid article{border:1px solid #e5ebf2;border-radius:11px;padding:10px;background:#fff}.jpos-calendar-survey-team-grid article>strong{display:block;margin-bottom:7px}.jpos-calendar-survey-team-grid article>div{display:grid;gap:6px}.jpos-calendar-survey-team-grid label{display:flex;align-items:flex-start;gap:8px;margin:0;cursor:pointer}.jpos-calendar-survey-team-grid label input{margin-top:3px}.jpos-calendar-survey-team-grid label span{display:grid;line-height:1.25}.jpos-calendar-survey-team-grid label small{color:#7e8a9b}.jpos-calendar-survey-team-grid em{font-style:normal;color:#8a96a6}.jpos-calendar-survey-team-warning{display:block;color:#9b670b;margin-top:7px}.jpos-calendar-survey-team-results{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.jpos-calendar-survey-team-results>span{display:grid;border:1px solid #e5eaf0;border-radius:9px;padding:8px}.jpos-calendar-survey-team-results em{font-size:10px;font-style:normal;color:#7d8999}.jpos-state.warning{border:1px solid #f2d596;background:#fffaf0;border-radius:14px;padding:24px}.jpos-state.warning i{font-size:28px;color:#b7791f}
@media(max-width:767px){.jpos-my-performance-grid{grid-template-columns:1fr}.jpos-performance-summary.is-self{grid-template-columns:1fr}.jpos-my-survey-list article{flex-direction:column}.jpos-performance-detail-kpi{grid-template-columns:1fr}.jpos-calendar-survey-team-grid,.jpos-calendar-survey-team-results{grid-template-columns:1fr}}

/* ========================================================================== */
/* PERFORMANCE / SURVEY UI POLISH — 04 OKTOBER 2026                          */
/* Modal layers are true viewport layers: background cannot be clicked.       */
/* ========================================================================== */

/* Booking detail must sit above the JPOS shell/tabs and keep its header visible. */
.jpos-calendar-detail-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:5090!important;
  pointer-events:auto!important;
  background:rgba(13,27,42,.56)!important;
  backdrop-filter:blur(2px);
}
.jpos-calendar-detail-drawer{
  position:fixed!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  z-index:5100!important;
  height:100dvh!important;
  max-height:100dvh!important;
  overflow:hidden!important;
  isolation:isolate;
}
.jpos-calendar-detail-drawer-head{
  position:relative!important;
  z-index:4!important;
  flex:0 0 auto;
  background:#fff!important;
  box-shadow:0 1px 0 #dfe6ec;
}
.jpos-calendar-detail-drawer-body{
  min-height:0!important;
  flex:1 1 auto!important;
  overflow:auto!important;
  overscroll-behavior:contain;
}
.jpos-calendar-detail-drawer-foot{
  position:relative!important;
  z-index:4!important;
  flex:0 0 auto;
}

/* Survey actions are always obvious; disabled buttons explain that setup is incomplete. */
.jpos-calendar-survey-actions{
  grid-template-columns:auto auto auto minmax(160px,1fr)!important;
}
.jpos-calendar-survey-actions .btn[disabled]{
  opacity:.48;
  cursor:not-allowed;
  filter:saturate(.55);
}
.jpos-calendar-survey-actions .js-calendar-survey-open-form{
  border-color:#b8d8d2!important;
  background:#f0faf7!important;
  color:#176b5e!important;
}

/* Performance Center page modal layer. */
.js-performance-detail-modal,
.js-performance-integrity-modal,
.js-performance-team-modal,
.js-performance-survey-modal{
  position:fixed!important;
  inset:0!important;
  z-index:5200!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:auto!important;
  padding:18px!important;
  overflow:hidden!important;
  pointer-events:auto!important;
  background:rgba(9,22,37,.60)!important;
  backdrop-filter:blur(3px);
}
.js-performance-detail-modal[hidden],
.js-performance-integrity-modal[hidden],
.js-performance-team-modal[hidden],
.js-performance-survey-modal[hidden]{display:none!important}

.js-performance-detail-modal>.jpos-modal,
.js-performance-integrity-modal>.jpos-modal,
.js-performance-team-modal>.jpos-modal,
.js-performance-survey-modal>.jpos-modal{
  position:relative!important;
  inset:auto!important;
  width:min(1040px,calc(100vw - 36px))!important;
  max-width:1040px!important;
  height:auto!important;
  max-height:calc(100dvh - 36px)!important;
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border:1px solid rgba(219,229,238,.98)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 28px 80px rgba(8,22,39,.34)!important;
  pointer-events:auto!important;
}
.js-performance-detail-modal>.jpos-modal>.jpos-modal-head,
.js-performance-integrity-modal>.jpos-modal>.jpos-modal-head,
.js-performance-team-modal>.jpos-modal>.jpos-modal-head,
.js-performance-survey-modal>.jpos-modal>.jpos-modal-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
  flex:0 0 auto!important;
  padding:16px 18px 14px!important;
  border-bottom:1px solid #e3e9f0!important;
  background:#fff!important;
}
.js-performance-detail-modal>.jpos-modal>.jpos-modal-head>div,
.js-performance-integrity-modal>.jpos-modal>.jpos-modal-head>div,
.js-performance-team-modal>.jpos-modal>.jpos-modal-head>div,
.js-performance-survey-modal>.jpos-modal>.jpos-modal-head>div{min-width:0!important}
.js-performance-detail-modal>.jpos-modal>.jpos-modal-head h2,
.js-performance-integrity-modal>.jpos-modal>.jpos-modal-head h2,
.js-performance-team-modal>.jpos-modal>.jpos-modal-head h2,
.js-performance-survey-modal>.jpos-modal>.jpos-modal-head h2{
  margin:3px 0 2px!important;
  color:#1f334a!important;
  font-size:1.28rem!important;
  line-height:1.2!important;
}
.js-performance-team-modal>.jpos-modal>.jpos-modal-head p,
.js-performance-survey-modal>.jpos-modal>.jpos-modal-head p{
  margin:4px 0 0!important;
  color:#758398!important;
  font-size:.8rem!important;
  line-height:1.45!important;
}
.js-performance-detail-modal>.jpos-modal>.jpos-modal-head .jpos-modal-close,
.js-performance-integrity-modal>.jpos-modal>.jpos-modal-head .jpos-modal-close,
.js-performance-team-modal>.jpos-modal>.jpos-modal-head .jpos-modal-close,
.js-performance-survey-modal>.jpos-modal>.jpos-modal-head .jpos-modal-close{
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  border-radius:10px!important;
  font-size:22px!important;
  line-height:1!important;
}
.js-performance-detail-body,
.js-performance-integrity-body,
.js-performance-team-body,
.js-performance-survey-body{
  min-height:0!important;
  flex:1 1 auto!important;
  overflow:auto!important;
  overscroll-behavior:contain;
  padding:14px 16px 18px!important;
}
.js-performance-team-modal>.jpos-modal>.jpos-performance-team-actions,
.js-performance-survey-modal>.jpos-modal>.jpos-performance-team-actions{
  flex:0 0 auto!important;
  margin:0!important;
  padding:10px 16px!important;
  border-bottom:1px solid #edf1f5!important;
  background:#fafbfd!important;
}
body.jpos-performance-modal-open{overscroll-behavior:none}

/* Master Team / Survey SweetAlert forms. */
.swal2-popup.jpos-performance-fire{
  width:min(760px,calc(100vw - 24px))!important;
  max-height:calc(100dvh - 24px)!important;
  padding:18px 18px 14px!important;
  overflow:hidden!important;
}
.swal2-popup.jpos-performance-fire .swal2-title{
  margin:0!important;
  padding:2px 42px 12px!important;
  color:#26384c!important;
  font-size:1.6rem!important;
  line-height:1.2!important;
}
.swal2-popup.jpos-performance-fire .swal2-html-container{
  margin:0!important;
  padding:0 2px!important;
  max-height:calc(100dvh - 190px)!important;
  overflow:auto!important;
  text-align:left!important;
}
.jpos-performance-fire-form{display:grid;gap:12px;text-align:left}
.jpos-performance-fire-form>label,
.jpos-performance-fire-grid>label{
  display:grid!important;
  gap:5px!important;
  margin:0!important;
  min-width:0!important;
}
.jpos-performance-fire-form label>span:first-child,
.jpos-performance-fire-grid label>span:first-child,
.jpos-performance-fire-section-title>span{
  color:#4c596a;
  font-size:12px;
  font-weight:800;
}
.jpos-performance-fire-form .form-control{
  width:100%!important;
  min-width:0!important;
  min-height:42px!important;
  height:42px!important;
  margin:0!important;
  padding:8px 10px!important;
  border:1px solid #d7dee7!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#25364a!important;
  font:inherit!important;
  box-shadow:none!important;
}
.jpos-performance-fire-form textarea.form-control{
  min-height:96px!important;
  height:auto!important;
  resize:vertical!important;
}
.jpos-performance-fire-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.jpos-performance-fire-checks{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px!important;
  margin:0!important;
}
.jpos-performance-fire-checks.is-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.jpos-performance-fire-checks>label{
  display:flex!important;
  align-items:flex-start!important;
  gap:8px!important;
  min-width:0!important;
  margin:0!important;
  padding:9px 10px!important;
  border:1px solid #e2e8f0!important;
  border-radius:10px!important;
  background:#f9fbfd!important;
  cursor:pointer!important;
}
.jpos-performance-fire-checks input[type=checkbox],
.jpos-performance-member-picker input[type=checkbox]{
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  margin:1px 0 0!important;
  padding:0!important;
}
.jpos-performance-fire-checks>label>span{display:grid!important;gap:2px!important;min-width:0!important}
.jpos-performance-fire-checks b{font-size:12px;color:#26384c}
.jpos-performance-fire-checks small{font-size:10px;line-height:1.35;color:#77869a}
.jpos-performance-fire-section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-top:1px;
}
.jpos-performance-fire-section-title small{color:#8491a2;font-size:10px}
.swal2-popup.jpos-performance-fire .jpos-performance-member-picker{
  max-height:280px!important;
  overflow:auto!important;
  padding:4px!important;
}
.swal2-popup.jpos-performance-fire .jpos-performance-member-picker>label{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  align-items:flex-start!important;
  gap:8px!important;
  padding:9px 8px!important;
}
.swal2-popup.jpos-performance-fire .jpos-performance-member-picker>label>span{min-width:0!important}
.swal2-popup.jpos-performance-fire .jpos-performance-member-picker b{font-size:12px;line-height:1.3;color:#26384c}
.swal2-popup.jpos-performance-fire .jpos-performance-member-picker small{font-size:10px;line-height:1.3;color:#7b8798;overflow-wrap:anywhere}
.swal2-popup.jpos-performance-fire .swal2-actions{margin:12px 0 0!important;gap:8px!important}

@media(max-width:767px){
  .jpos-calendar-detail-drawer{width:100vw!important}
  .jpos-calendar-detail-drawer-head{padding:14px 14px 12px!important}
  .jpos-calendar-detail-drawer-head h2{font-size:19px!important;line-height:1.2!important}
  .jpos-calendar-detail-drawer-head p{font-size:13px!important}
  .jpos-calendar-survey-actions{grid-template-columns:1fr!important}
  .jpos-calendar-survey-actions small{grid-column:auto!important}
  .jpos-calendar-survey-actions .btn{width:100%!important;justify-content:center!important;min-height:46px!important;font-size:16px!important}

  .js-performance-detail-modal,
  .js-performance-integrity-modal,
  .js-performance-team-modal,
  .js-performance-survey-modal{padding:0!important;align-items:stretch!important}
  .js-performance-detail-modal>.jpos-modal,
  .js-performance-integrity-modal>.jpos-modal,
  .js-performance-team-modal>.jpos-modal,
  .js-performance-survey-modal>.jpos-modal{
    width:100vw!important;
    max-width:none!important;
    height:100dvh!important;
    max-height:100dvh!important;
    border:0!important;
    border-radius:0!important;
  }
  .js-performance-detail-modal>.jpos-modal>.jpos-modal-head,
  .js-performance-integrity-modal>.jpos-modal>.jpos-modal-head,
  .js-performance-team-modal>.jpos-modal>.jpos-modal-head,
  .js-performance-survey-modal>.jpos-modal>.jpos-modal-head{
    padding:13px 14px 11px!important;
  }
  .js-performance-detail-modal>.jpos-modal>.jpos-modal-head h2,
  .js-performance-integrity-modal>.jpos-modal>.jpos-modal-head h2,
  .js-performance-team-modal>.jpos-modal>.jpos-modal-head h2,
  .js-performance-survey-modal>.jpos-modal>.jpos-modal-head h2{font-size:20px!important}
  .js-performance-team-modal>.jpos-modal>.jpos-modal-head p,
  .js-performance-survey-modal>.jpos-modal>.jpos-modal-head p{font-size:13px!important}
  .js-performance-detail-body,
  .js-performance-integrity-body,
  .js-performance-team-body,
  .js-performance-survey-body{padding:12px!important;font-size:16px!important}
  .js-performance-team-modal>.jpos-modal>.jpos-performance-team-actions,
  .js-performance-survey-modal>.jpos-modal>.jpos-performance-team-actions{padding:9px 12px!important}
  .js-performance-team-modal>.jpos-modal>.jpos-performance-team-actions .btn,
  .js-performance-survey-modal>.jpos-modal>.jpos-performance-team-actions .btn{width:100%!important;justify-content:center!important;min-height:44px!important;font-size:16px!important}

  .swal2-popup.jpos-performance-fire{
    width:calc(100vw - 12px)!important;
    max-height:calc(100dvh - 12px)!important;
    padding:14px 10px 10px!important;
  }
  .swal2-popup.jpos-performance-fire .swal2-title{padding:0 34px 10px!important;font-size:22px!important}
  .swal2-popup.jpos-performance-fire .swal2-html-container{max-height:calc(100dvh - 175px)!important;padding:0!important}
  .jpos-performance-fire-grid,
  .jpos-performance-fire-checks,
  .jpos-performance-fire-checks.is-two{grid-template-columns:1fr!important}
  .jpos-performance-fire-form label>span:first-child,
  .jpos-performance-fire-grid label>span:first-child,
  .jpos-performance-fire-section-title>span{font-size:13px!important}
  .jpos-performance-fire-form .form-control{min-height:46px!important;height:46px!important;font-size:16px!important}
  .jpos-performance-fire-form textarea.form-control{min-height:100px!important;height:auto!important}
  .jpos-performance-fire-checks b{font-size:15px!important}
  .jpos-performance-fire-checks small{font-size:12px!important}
  .jpos-performance-fire-section-title{align-items:flex-start;flex-direction:column;gap:2px}
  .jpos-performance-fire-section-title small{font-size:12px!important}
  .swal2-popup.jpos-performance-fire .jpos-performance-member-picker{max-height:32vh!important}
  .swal2-popup.jpos-performance-fire .jpos-performance-member-picker b{font-size:15px!important}
  .swal2-popup.jpos-performance-fire .jpos-performance-member-picker small{font-size:12px!important}
  .swal2-popup.jpos-performance-fire .swal2-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important}
  .swal2-popup.jpos-performance-fire .swal2-actions button{width:100%!important;min-height:44px!important;font-size:16px!important;margin:0!important}
}

/* ============================================================
   PERFORMANCE / SURVEY UI POLISH — 04 OKTOBER 2026
   Centered modal, compact period toolbar, efficient detail cards.
   ============================================================ */

/* Period navigator belongs to the page action row, not floating in the middle. */
.jpos-performance-toolbar-actions,
.jpos-my-performance-toolbar-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
.jpos-performance-period-nav,
.jpos-my-performance-period-nav{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  margin:0!important;
  width:auto!important;
  max-width:100%!important;
  flex:0 0 auto!important;
}
.jpos-performance-period-nav .btn,
.jpos-my-performance-period-nav .btn{
  min-width:38px!important;
  width:38px!important;
  height:38px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:9px!important;
}
.jpos-performance-period-nav .jpos-period-current,
.jpos-my-performance-period-nav .jpos-period-current{
  min-width:150px!important;
  width:auto!important;
  flex:0 0 auto!important;
  padding:5px 12px!important;
  border-radius:9px!important;
  line-height:1.15!important;
}
.jpos-performance-period-nav .jpos-period-current small,
.jpos-my-performance-period-nav .jpos-period-current small{
  font-size:9px!important;
  letter-spacing:.055em!important;
}
.jpos-performance-period-nav .jpos-period-current strong,
.jpos-my-performance-period-nav .jpos-period-current strong{
  margin-top:2px!important;
  font-size:14px!important;
  white-space:nowrap!important;
}

/* Integrity: one compact operational block; avoid excess vertical whitespace. */
.jpos-performance-integrity-card>.jpos-card-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  padding:12px 14px 8px!important;
}
.jpos-performance-integrity-card>.jpos-card-head h3{margin:1px 0 2px!important}
.jpos-performance-integrity-card>.jpos-card-head p{margin:0!important;max-width:780px!important;line-height:1.35!important}
.jpos-performance-integrity-card>.jpos-card-head .jpos-page-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  flex-wrap:wrap!important;
}
.jpos-performance-integrity{
  gap:6px!important;
  padding:4px 14px 12px!important;
}
.jpos-performance-integrity-chip{
  gap:7px!important;
  padding:6px 9px!important;
  border-radius:10px!important;
}
.jpos-performance-integrity-chip span{font-size:11px!important}
.jpos-performance-integrity-chip strong{font-size:14px!important}

/* Calendar booking detail is a centered modal, not a right-side drawer. */
.jpos-calendar-detail-overlay{
  z-index:6400!important;
  background:rgba(9,22,37,.62)!important;
  backdrop-filter:blur(3px)!important;
}
.jpos-calendar-detail-drawer{
  top:50%!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  z-index:6410!important;
  width:min(980px,calc(100vw - 40px))!important;
  max-width:980px!important;
  height:auto!important;
  max-height:calc(100dvh - 116px)!important;
  border:1px solid #d9e3ec!important;
  border-radius:18px!important;
  background:#f7f9fb!important;
  box-shadow:0 28px 80px rgba(8,22,39,.34)!important;
  opacity:0!important;
  transform:translate(-50%,-47%) scale(.985)!important;
  transition:opacity .16s ease,transform .16s ease!important;
}
.jpos-calendar-detail-drawer.is-open{
  opacity:1!important;
  transform:translate(-50%,-50%) scale(1)!important;
}
.jpos-calendar-detail-drawer-head{
  padding:13px 16px 11px!important;
  border-radius:18px 18px 0 0!important;
}
.jpos-calendar-detail-drawer-head h2{font-size:19px!important;line-height:1.2!important}
.jpos-calendar-detail-drawer-head p{font-size:12px!important;line-height:1.35!important}
.jpos-calendar-detail-drawer-body{padding:11px 12px!important}
.jpos-calendar-detail-drawer-foot{
  padding:9px 12px!important;
  border-radius:0 0 18px 18px!important;
}
.jpos-calendar-detail-drawer-foot .btn{min-height:38px!important}

/* All Performance Center page modals stay centered, compact and clear of app header/tabs. */
.js-performance-detail-modal,
.js-performance-integrity-modal,
.js-performance-team-modal,
.js-performance-survey-modal{
  z-index:6500!important;
  padding:70px 18px 18px!important;
  align-items:center!important;
  justify-content:center!important;
  background:rgba(9,22,37,.64)!important;
  backdrop-filter:blur(3px)!important;
}
.js-performance-detail-modal>.jpos-modal{
  width:min(980px,calc(100vw - 36px))!important;
  max-width:980px!important;
}
.js-performance-integrity-modal>.jpos-modal,
.js-performance-team-modal>.jpos-modal,
.js-performance-survey-modal>.jpos-modal{
  width:min(900px,calc(100vw - 36px))!important;
  max-width:900px!important;
}
.js-performance-detail-modal>.jpos-modal,
.js-performance-integrity-modal>.jpos-modal,
.js-performance-team-modal>.jpos-modal,
.js-performance-survey-modal>.jpos-modal{
  height:auto!important;
  max-height:calc(100dvh - 104px)!important;
  border-radius:16px!important;
}
.js-performance-detail-modal>.jpos-modal>.jpos-modal-head,
.js-performance-integrity-modal>.jpos-modal>.jpos-modal-head,
.js-performance-team-modal>.jpos-modal>.jpos-modal-head,
.js-performance-survey-modal>.jpos-modal>.jpos-modal-head{
  padding:11px 14px 10px!important;
}
.js-performance-detail-modal>.jpos-modal>.jpos-modal-head h2,
.js-performance-integrity-modal>.jpos-modal>.jpos-modal-head h2,
.js-performance-team-modal>.jpos-modal>.jpos-modal-head h2,
.js-performance-survey-modal>.jpos-modal>.jpos-modal-head h2{
  font-size:18px!important;
}
.js-performance-detail-body,
.js-performance-integrity-body,
.js-performance-team-body,
.js-performance-survey-body{
  padding:11px 12px 14px!important;
}
body.jpos-performance-modal-open{overflow:hidden!important}

/* Employee detail: use modal width efficiently instead of a long single column. */
.jpos-performance-detail-modal .jpos-performance-person{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px 16px!important;
  margin-bottom:8px!important;
  padding:9px 11px!important;
}
.jpos-performance-detail-modal .jpos-performance-detail-kpi{
  gap:8px!important;
  margin:8px 0 10px!important;
}
.jpos-performance-detail-modal .jpos-performance-detail-kpi>div{
  padding:10px 11px!important;
  border-radius:10px!important;
}
.jpos-performance-detail-modal .jpos-performance-detail-kpi strong{font-size:19px!important}
.jpos-performance-detail-modal .jpos-performance-section-title{margin:12px 0 7px!important;font-size:14px!important}
.jpos-performance-detail-modal .jpos-performance-task-list{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.jpos-performance-detail-modal .jpos-performance-task{
  padding:10px 11px!important;
  border-radius:10px!important;
}
.jpos-performance-detail-modal .jpos-performance-task-head{gap:8px!important}
.jpos-performance-detail-modal .jpos-performance-task-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
  margin-top:8px!important;
}
.jpos-performance-detail-modal .jpos-performance-task-grid>span{padding:7px 8px!important}
.jpos-performance-detail-modal .jpos-my-survey-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.jpos-performance-detail-modal .jpos-my-survey-list article{padding:9px 10px!important;border-radius:10px!important}

/* SweetAlert forms must stay above all app chrome and use the center space efficiently. */
.swal2-container.jpos-performance-fire-container{
  z-index:7000!important;
  padding:18px!important;
  background:rgba(9,22,37,.64)!important;
  backdrop-filter:blur(3px)!important;
}
.swal2-popup.jpos-performance-fire{
  width:min(680px,calc(100vw - 28px))!important;
  max-height:calc(100dvh - 56px)!important;
  padding:14px 14px 12px!important;
  border-radius:16px!important;
}
.swal2-popup.jpos-performance-fire .swal2-title{
  padding:0 40px 10px!important;
  font-size:21px!important;
}
.swal2-popup.jpos-performance-fire .swal2-html-container{
  max-height:calc(100dvh - 180px)!important;
}
.swal2-popup.jpos-performance-fire .jpos-performance-member-picker{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:4px!important;
  max-height:230px!important;
}
.swal2-popup.jpos-performance-fire .jpos-performance-member-picker>label{
  border:1px solid #edf1f5!important;
  border-radius:8px!important;
}

/* Penilaian Saya: period control must remain compact, never stretch edge-to-edge. */
.jpos-my-performance-page .jpos-pagehead{align-items:flex-start!important}
.jpos-my-performance-toolbar-actions{max-width:100%!important}
.jpos-my-performance-period-nav{flex:0 0 auto!important}

@media(max-width:991px){
  .jpos-performance-page>.jpos-pagehead,
  .jpos-my-performance-page>.jpos-pagehead{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .jpos-performance-toolbar-actions,
  .jpos-my-performance-toolbar-actions{justify-content:flex-start!important}
  .jpos-performance-integrity-card>.jpos-card-head{grid-template-columns:1fr!important}
  .jpos-performance-integrity-card>.jpos-card-head .jpos-page-actions{justify-content:flex-start!important}
  .jpos-performance-detail-modal .jpos-performance-task-list,
  .jpos-performance-detail-modal .jpos-my-survey-list{grid-template-columns:1fr!important}
}

@media(max-width:767px){
  .jpos-performance-toolbar-actions,
  .jpos-my-performance-toolbar-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
    gap:7px!important;
  }
  .jpos-performance-period-nav,
  .jpos-my-performance-period-nav{
    grid-column:1/-1!important;
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    width:min(100%,360px)!important;
    justify-self:start!important;
  }
  .jpos-performance-period-nav .btn,
  .jpos-my-performance-period-nav .btn{width:42px!important;min-width:42px!important;height:42px!important}
  .jpos-performance-period-nav .jpos-period-current,
  .jpos-my-performance-period-nav .jpos-period-current{width:100%!important;min-width:0!important}
  .jpos-performance-toolbar-actions>.btn,
  .jpos-my-performance-toolbar-actions>.btn{min-height:42px!important;justify-content:center!important}

  .jpos-calendar-detail-drawer{
    width:calc(100vw - 16px)!important;
    max-width:none!important;
    max-height:calc(100dvh - 82px)!important;
    border-radius:15px!important;
  }
  .jpos-calendar-detail-drawer-head{padding:11px 12px 9px!important;border-radius:15px 15px 0 0!important}
  .jpos-calendar-detail-drawer-head h2{font-size:18px!important}
  .jpos-calendar-detail-drawer-body{padding:9px!important;font-size:16px!important}
  .jpos-calendar-detail-drawer-foot{padding:8px 9px calc(8px + env(safe-area-inset-bottom))!important;border-radius:0 0 15px 15px!important}

  .js-performance-detail-modal,
  .js-performance-integrity-modal,
  .js-performance-team-modal,
  .js-performance-survey-modal{
    padding:66px 8px 10px!important;
    align-items:center!important;
  }
  .js-performance-detail-modal>.jpos-modal,
  .js-performance-integrity-modal>.jpos-modal,
  .js-performance-team-modal>.jpos-modal,
  .js-performance-survey-modal>.jpos-modal{
    width:calc(100vw - 16px)!important;
    max-width:none!important;
    height:auto!important;
    max-height:calc(100dvh - 82px)!important;
    border:1px solid #dbe4ed!important;
    border-radius:15px!important;
  }
  .js-performance-detail-modal>.jpos-modal>.jpos-modal-head,
  .js-performance-integrity-modal>.jpos-modal>.jpos-modal-head,
  .js-performance-team-modal>.jpos-modal>.jpos-modal-head,
  .js-performance-survey-modal>.jpos-modal>.jpos-modal-head{padding:10px 11px 9px!important}
  .js-performance-detail-modal>.jpos-modal>.jpos-modal-head h2,
  .js-performance-integrity-modal>.jpos-modal>.jpos-modal-head h2,
  .js-performance-team-modal>.jpos-modal>.jpos-modal-head h2,
  .js-performance-survey-modal>.jpos-modal>.jpos-modal-head h2{font-size:18px!important}
  .js-performance-detail-body,
  .js-performance-integrity-body,
  .js-performance-team-body,
  .js-performance-survey-body{padding:9px!important;font-size:16px!important}

  .jpos-performance-detail-modal .jpos-performance-person{grid-template-columns:1fr!important}
  .jpos-performance-detail-modal .jpos-performance-detail-kpi{grid-template-columns:1fr 1fr!important}
  .jpos-performance-detail-modal .jpos-performance-task-list,
  .jpos-performance-detail-modal .jpos-my-survey-list{grid-template-columns:1fr!important}
  .jpos-performance-detail-modal .jpos-performance-task-grid{grid-template-columns:1fr 1fr!important}

  .swal2-container.jpos-performance-fire-container{padding:8px!important}
  .swal2-popup.jpos-performance-fire{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:12px 9px 9px!important}
  .swal2-popup.jpos-performance-fire .jpos-performance-member-picker{grid-template-columns:1fr!important;max-height:34vh!important}
}

/* ============================================================
   PERFORMANCE / SURVEY FIX — 04 OKTOBER 2026 B
   Reliable close, action hierarchy, legacy survey bridge UI.
   ============================================================ */
@media(min-width:1100px){
  .jpos-performance-toolbar-actions{
    flex-wrap:nowrap!important;
    white-space:nowrap!important;
  }
  .jpos-performance-toolbar-actions>.btn{flex:0 0 auto!important}
}
.jpos-performance-integrity-card>.jpos-card-head .jpos-page-actions{
  flex-wrap:nowrap!important;
}
.js-performance-detail-modal>.jpos-modal>.jpos-modal-head .jpos-modal-close,
.js-performance-integrity-modal>.jpos-modal>.jpos-modal-head .jpos-modal-close,
.js-performance-team-modal>.jpos-modal>.jpos-modal-head .jpos-modal-close,
.js-performance-survey-modal>.jpos-modal>.jpos-modal-head .jpos-modal-close{
  position:relative!important;
  z-index:25!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
}
.jpos-calendar-survey-section .jpos-calendar-detail-loading span{
  display:block;
  margin-top:3px;
  color:#718096;
  font-size:12px;
}
.jpos-calendar-survey-section{
  scroll-margin-top:18px;
}
@media(max-width:767px){
  .jpos-performance-integrity-card>.jpos-card-head .jpos-page-actions{
    flex-wrap:wrap!important;
    width:100%!important;
  }
}

/* ============================================================
   SURVEY PELAYANAN V2 — TEAM RATING / CASHIER QUEUE / PAYMENT QR
   ============================================================ */
.jpos-header-survey{appearance:none;-webkit-appearance:none;height:34px;min-height:34px;padding:0 10px;border-radius:9px;background:#f6f8fa;border:1px solid var(--jpos-line);display:inline-flex;align-items:center;gap:7px;color:#657386;font-size:.8rem;font-weight:600;white-space:nowrap;cursor:pointer;font-family:inherit;line-height:1}
.jpos-header-survey:hover,.jpos-header-survey:focus-visible{background:#eef2f6;color:#344054;outline:none}.jpos-header-survey strong{font-size:.78rem;font-weight:800;color:#8a6200;line-height:1}.jpos-header-survey>span{line-height:1}

.jpos-dashboard-survey-card .jpos-card-head{align-items:flex-start}.jpos-survey-queue-list{display:grid;gap:10px}.jpos-survey-queue-list.is-center{max-height:360px;overflow:auto;padding-right:3px}
.jpos-survey-queue-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;align-items:center;padding:12px 14px;border:1px solid var(--jpos-border,#e5e7eb);border-radius:12px;background:#fff}
.jpos-survey-queue-main{display:flex;align-items:center;gap:10px;min-width:0}.jpos-survey-queue-main>div{display:grid;min-width:0}.jpos-survey-queue-main strong{font-size:14px;line-height:1.25}.jpos-survey-queue-main span:not(.jpos-survey-queue-status){font-size:12px;color:var(--jpos-muted,#667085);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-survey-queue-status{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.jpos-survey-queue-status.warning{background:#fff7e6;color:#9a6700}.jpos-survey-queue-status.info{background:#edf5ff;color:#175cd3}.jpos-survey-queue-status.success{background:#ecfdf3;color:#027a48}
.jpos-survey-queue-meta{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--jpos-muted,#667085)}.jpos-survey-queue-actions{display:flex;gap:7px;justify-content:flex-end;grid-column:2;grid-row:1 / span 2}.jpos-survey-queue-more{margin-top:8px;font-size:12px;color:var(--jpos-muted,#667085);text-align:right}

.jpos-survey-center{display:grid;gap:14px}.jpos-survey-center-hero{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);gap:16px;align-items:center;padding:16px;border-radius:14px;background:#fffaf0;border:1px solid #f4d99a}.jpos-survey-center-hero>div{display:grid;gap:3px}.jpos-survey-center-hero strong{font-size:24px;line-height:1.15}.jpos-survey-center-hero small,.jpos-survey-center-hero p{color:var(--jpos-muted,#667085);margin:0}.jpos-survey-center-section{padding:14px;border:1px solid var(--jpos-border,#e5e7eb);border-radius:14px;background:#fff}.jpos-survey-center-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.jpos-survey-center-title h4{margin:1px 0 0;font-size:16px}
.jpos-survey-team-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.jpos-survey-team-cards article{display:grid;gap:3px;padding:11px 12px;border:1px solid var(--jpos-border,#e5e7eb);border-radius:11px;background:#fafbfc}.jpos-survey-team-cards article span,.jpos-survey-team-cards article small{color:var(--jpos-muted,#667085);font-size:12px}.jpos-survey-team-cards article strong{font-size:17px}
.jpos-survey-latest{display:grid;gap:7px}.jpos-survey-latest>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 2px;border-bottom:1px dashed var(--jpos-border,#e5e7eb)}.jpos-survey-latest>div:last-child{border-bottom:0}.jpos-survey-latest span{display:grid}.jpos-survey-latest small{font-size:12px;color:var(--jpos-muted,#667085)}.jpos-survey-latest b{white-space:nowrap}

.jpos-payment-survey{margin-top:14px;padding:14px;border:1px solid #e6c979;border-radius:13px;background:#fffaf0}.jpos-payment-survey.is-locked{background:#f8fafc;border-color:var(--jpos-border,#e5e7eb)}.jpos-payment-survey.is-done{background:#f0fdf4;border-color:#b7e4c7}.jpos-payment-survey.is-warning{background:#fff7ed;border-color:#fed7aa}.jpos-payment-survey-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.jpos-payment-survey-head>div{display:grid;gap:2px}.jpos-payment-survey-head strong{font-size:15px}.jpos-payment-survey-head small,.jpos-payment-survey-copy small{font-size:12px;color:var(--jpos-muted,#667085)}.jpos-survey-ready-badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:#fff0c2;color:#8a5d00;font-size:10px;font-weight:900;white-space:nowrap}
.jpos-payment-survey-grid{display:grid;grid-template-columns:184px minmax(0,1fr);gap:14px;align-items:center}.jpos-payment-survey-qr{width:184px;min-height:184px;display:grid;place-items:center;padding:6px;border:1px solid #e9d398;border-radius:10px;background:#fff;overflow:hidden}.jpos-payment-survey-qr svg{display:block;max-width:100%;height:auto}.jpos-payment-survey-actions{display:grid;gap:8px}.jpos-payment-survey-actions .btn{justify-content:center}.jpos-payment-survey-actions small{font-size:12px;color:var(--jpos-muted,#667085)}.jpos-payment-survey-done{display:flex;gap:10px;align-items:flex-start}.jpos-payment-survey-done>.icon{font-size:24px}.jpos-payment-survey-done>span,.jpos-payment-survey-copy{display:grid;gap:2px}

.jpos-performance-survey-team-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:6px}.jpos-performance-survey-team-picker label{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;min-height:42px;padding:8px 10px;border:1px solid var(--jpos-border,#e5e7eb);border-radius:9px;background:#fff;margin:0!important}.jpos-performance-survey-team-picker input{width:18px!important;height:18px!important;min-height:0!important;margin:0!important;flex:0 0 auto}

@media (max-width:900px){
  .jpos-survey-center-hero{grid-template-columns:1fr}.jpos-payment-survey-grid{grid-template-columns:160px minmax(0,1fr)}.jpos-payment-survey-qr{width:160px;min-height:160px}.jpos-survey-queue-item{grid-template-columns:1fr}.jpos-survey-queue-actions{grid-column:1;grid-row:auto;justify-content:flex-start}.jpos-performance-survey-team-picker{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .jpos-header-survey{display:inline-flex!important;width:auto;height:34px;min-height:34px;padding:0 9px}.jpos-header-survey>span{display:none}.jpos-header-survey strong{display:inline!important}.jpos-survey-queue-main{align-items:flex-start;justify-content:space-between}.jpos-survey-queue-main>div{min-width:0}.jpos-survey-queue-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.jpos-survey-queue-actions .btn{width:100%;justify-content:center}.jpos-payment-survey-head{display:grid}.jpos-payment-survey-grid{grid-template-columns:1fr}.jpos-payment-survey-qr{width:176px;min-height:176px;margin:0 auto}.jpos-performance-survey-team-picker{grid-template-columns:1fr}.jpos-survey-team-cards{grid-template-columns:1fr 1fr}.jpos-survey-center-section{padding:12px}
}
@media (max-width:420px){.jpos-survey-team-cards{grid-template-columns:1fr}.jpos-survey-queue-actions{grid-template-columns:1fr}.jpos-payment-survey-qr{width:168px;min-height:168px}}

/* Survey header + partial center — 04 Okt 2026 */
.jpos-survey-center-partial{display:flex;align-items:flex-start;gap:8px;margin:0 0 12px;padding:10px 12px;border:1px solid #d8e4f0;border-radius:10px;background:#f6f9fc;color:#53657a;font-size:.82rem}
.jpos-survey-center-partial .icon{font-size:18px;color:#44749e}
@media(max-width:991px){.jpos-header-survey{display:inline-flex!important}.jpos-header-survey>span{display:none}.jpos-header-survey strong{display:inline!important}}

/* ============================================================
   SURVEY UX V3 — inline QR + compact action row
   ============================================================ */
.jpos-survey-queue-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.jpos-survey-queue-actions .btn{
  white-space:nowrap;
}
.jpos-survey-qr-fire-container{
  z-index:2147483000 !important;
}
.jpos-survey-qr-fire{
  width:min(460px,calc(100vw - 28px)) !important;
  border-radius:18px !important;
}
.jpos-survey-qr-modal{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.jpos-survey-qr-customer{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  padding:10px 12px;
  border:1px solid var(--jpos-border,#dce5ef);
  border-radius:12px;
  background:var(--jpos-surface-soft,#f8fafc);
}
.jpos-survey-qr-customer strong{font-size:16px;line-height:1.3}
.jpos-survey-qr-customer span{font-size:12px;color:var(--jpos-muted,#718096)}
.jpos-survey-qr-box{
  width:244px;
  height:244px;
  max-width:100%;
  display:grid;
  place-items:center;
  padding:12px;
  background:#fff;
  border:1px solid var(--jpos-border,#dce5ef);
  border-radius:16px;
}
.jpos-survey-qr-box canvas,.jpos-survey-qr-box img{max-width:100%;height:auto}
.jpos-survey-qr-modal>p{
  margin:0;
  max-width:370px;
  text-align:center;
  color:var(--jpos-muted,#718096);
  line-height:1.5;
}
.jpos-survey-qr-actions{
  width:100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.jpos-survey-qr-actions .js-survey-qr-open{grid-column:1/-1}
@media(max-width:640px){
  .jpos-survey-queue-actions{justify-content:stretch}
  .jpos-survey-queue-actions .btn{flex:1 1 auto;min-height:42px}
  .jpos-survey-qr-fire{width:calc(100vw - 20px) !important}
  .jpos-survey-qr-box{width:220px;height:220px}
  .jpos-survey-qr-actions{grid-template-columns:1fr}
  .jpos-survey-qr-actions .js-survey-qr-open{grid-column:auto}
}

/* =========================================================
   Survey Result Center V4 — detail jawaban + drill-down Team
   ========================================================= */
.jpos-survey-team-cards .jpos-survey-team-card{appearance:none;text-align:left;display:grid;gap:3px;padding:11px 12px;border:1px solid var(--jpos-border,#e5e7eb);border-radius:11px;background:#fafbfc;color:inherit;cursor:pointer;transition:.15s ease}
.jpos-survey-team-cards .jpos-survey-team-card:hover{border-color:#9db7d2;background:#f5f9fd;transform:translateY(-1px)}
.jpos-survey-team-cards .jpos-survey-team-card span,.jpos-survey-team-cards .jpos-survey-team-card small{color:var(--jpos-muted,#667085);font-size:12px}.jpos-survey-team-cards .jpos-survey-team-card strong{font-size:17px}.jpos-survey-team-cards .jpos-survey-team-card em{font-style:normal;font-size:11px;color:#365f8a;margin-top:3px}
.jpos-survey-latest-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center!important;gap:10px!important}.jpos-survey-latest-row .btn{white-space:nowrap}
.jpos-calendar-survey-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.jpos-calendar-survey-result-head>strong{color:#334d63;font-size:11px}
.jpos-survey-detail-popup{border-radius:16px!important;padding:0!important;overflow:hidden}.jpos-survey-detail-popup .swal2-html-container{margin:0!important;padding:0 18px 18px!important;text-align:left!important;max-height:min(72vh,720px);overflow:auto}.jpos-survey-detail-popup .swal2-title{padding:18px 54px 12px 18px!important;text-align:left!important;font-size:20px!important}
.jpos-survey-response-detail{display:grid;gap:12px}.jpos-survey-response-head{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.jpos-survey-response-head>div,.jpos-survey-response-summary>div,.jpos-survey-team-detail-summary>div{display:grid;gap:3px;padding:10px 12px;border:1px solid #e4eaf0;border-radius:10px;background:#f8fafc}.jpos-survey-response-head span,.jpos-survey-response-summary span,.jpos-survey-team-detail-summary span{font-size:11px;color:#6b7b8e;text-transform:uppercase;letter-spacing:.04em}.jpos-survey-response-head strong,.jpos-survey-response-summary strong,.jpos-survey-team-detail-summary strong{font-size:14px;color:#17263a}
.jpos-survey-response-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px}.jpos-survey-response-group{display:grid;gap:8px}.jpos-survey-response-group-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;border-radius:8px;background:#eef5fc}.jpos-survey-response-group-title strong{font-size:13px;color:#17385f}.jpos-survey-response-group-title span{font-size:11px;color:#60758c}.jpos-survey-answer-card{display:grid;gap:7px;padding:11px 12px;border:1px solid #e4eaf0;border-radius:10px;background:#fff}.jpos-survey-answer-card p{margin:0;font-size:13px;font-weight:700;color:#24364b}.jpos-survey-answer-card blockquote{margin:0;padding:10px 12px;border-left:3px solid #8fb4d7;background:#f7fafc;border-radius:6px;white-space:pre-wrap;font-size:13px;line-height:1.5;color:#334d63}.jpos-survey-answer-value{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.jpos-survey-stars{font-size:18px;letter-spacing:1px;color:#d6a312}.jpos-survey-answer-value b{font-size:13px;color:#24364b}
.jpos-survey-team-detail{display:grid;gap:14px}.jpos-survey-team-detail-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.jpos-survey-team-note{margin:0;padding:9px 11px;border:1px solid #d9e5f0;border-radius:9px;background:#f7fafc;color:#5a6f84;font-size:12px}.jpos-survey-team-question-list,.jpos-survey-team-recent{display:grid;gap:8px}.jpos-survey-team-question-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border:1px solid #e5eaf0;border-radius:10px;background:#fff}.jpos-survey-team-question-list p{margin:0;font-size:13px;font-weight:700;color:#26394e}.jpos-survey-team-question-list article>div{display:grid;justify-items:end;gap:2px}.jpos-survey-team-question-list span{font-size:11px;color:#6b7b8e}.jpos-survey-team-recent article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:9px 10px;border-bottom:1px dashed #dfe6ed}.jpos-survey-team-recent article:last-child{border-bottom:0}.jpos-survey-team-recent article>div{display:grid;gap:2px}.jpos-survey-team-recent article span{font-size:11px;color:#6b7b8e}.jpos-survey-team-recent article b{white-space:nowrap}
@media (max-width:760px){.jpos-survey-latest-row{grid-template-columns:minmax(0,1fr) auto}.jpos-survey-latest-row .btn{grid-column:1/-1;width:100%;justify-content:center}.jpos-survey-response-head{grid-template-columns:1fr}.jpos-survey-response-summary{grid-template-columns:1fr 1fr}.jpos-survey-team-detail-summary{grid-template-columns:1fr 1fr}.jpos-survey-team-question-list article,.jpos-survey-team-recent article{grid-template-columns:1fr}.jpos-survey-team-question-list article>div{justify-items:start}.jpos-survey-team-recent article .btn{width:100%;justify-content:center}.jpos-calendar-survey-result-head{align-items:flex-start}.jpos-calendar-survey-result-head .btn{white-space:nowrap}}
@media (max-width:460px){.jpos-survey-response-summary,.jpos-survey-team-detail-summary{grid-template-columns:1fr}.jpos-calendar-survey-result-head{display:grid}.jpos-calendar-survey-result-head .btn{width:100%;justify-content:center}}

/* =========================================================
   STEP 8 FINAL — Performance Produksi V3
   ========================================================= */
@media (min-width:1200px){
  .jpos-performance-summary{grid-template-columns:repeat(5,minmax(0,1fr));}
  .jpos-performance-summary.is-self{grid-template-columns:repeat(4,minmax(0,1fr));}
  .jpos-performance-detail-kpi.is-five{grid-template-columns:repeat(5,minmax(0,1fr));}
}
.jpos-performance-table{min-width:1080px;}
.jpos-performance-policy.compact{margin:10px 0 14px;padding:10px 12px;}
.jpos-performance-note.warning{color:#9a670a;background:#fff9e8;border:1px solid #f4ddb0;border-radius:8px;padding:6px 8px;display:block;margin-top:7px;}
@media (max-width:1199px){
  .jpos-performance-detail-kpi.is-five{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:767px){
  .jpos-performance-summary.is-self{grid-template-columns:1fr;}
  .jpos-performance-detail-kpi.is-five{grid-template-columns:1fr;}
}

/* ========================================================================== */
/* Intelligence · Target Penjualan — STEP 1                                  */
/* ========================================================================== */
.jpos-target-sales-page{padding-bottom:96px}
.jpos-target-sales-control{margin-bottom:16px}
.jpos-target-sales-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.jpos-target-sales-store-block{min-width:260px;max-width:360px;flex:0 1 340px}
.jpos-target-sales-store-block>label,.jpos-target-sales-page .jpos-period-select-block>label{display:block;margin-bottom:7px;font-size:.78rem;font-weight:800;letter-spacing:.06em;color:#6b7280}
.jpos-target-sales-store-block .form-control{height:42px;border-radius:10px}
.jpos-target-sales-status{display:flex;align-items:flex-start;gap:9px;margin-top:16px;padding:11px 13px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;color:#334155;line-height:1.45}
.jpos-target-sales-status>i{font-size:18px;line-height:1.2;color:#2563eb}
.jpos-target-sales-status.is-locked{border-color:#e5e7eb;background:#f8fafc;color:#64748b}
.jpos-target-sales-status.is-locked>i{color:#64748b}
.jpos-target-sales-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.jpos-target-sales-summary-item{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid #edf0f4;border-radius:10px;background:#fff}
.jpos-target-sales-summary-item span{font-size:.8rem;color:#64748b}
.jpos-target-sales-summary-item strong{font-size:1.2rem;color:#111827}
.jpos-target-sales-list-card{overflow:visible}
.jpos-target-sales-help{display:flex;align-items:flex-start;gap:9px;margin:0 0 12px;padding:10px 12px;border-radius:9px;background:#fff8e8;color:#6b551c}
.jpos-target-sales-help i{font-size:18px;line-height:1.2}
.jpos-target-sales-table-wrap{overflow:visible}
.jpos-target-sales-table{margin-bottom:0}
.jpos-target-sales-table th{vertical-align:middle}
.jpos-target-sales-number-head{width:165px;text-align:center!important}
.jpos-target-sales-category-row td{padding:9px 12px!important;background:#f4f6f8!important;border-top:1px solid #e5e7eb!important;border-bottom:1px solid #e5e7eb!important;color:#475569;font-size:.78rem;letter-spacing:.045em;text-transform:uppercase}
.jpos-target-sales-row td{vertical-align:middle!important}
.jpos-target-sales-name{display:flex;align-items:center;gap:8px;min-width:0}
.jpos-target-sales-name strong{font-weight:650;color:#172033}
.jpos-target-sales-snapshot{display:inline-flex;padding:2px 7px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.7rem;font-weight:700;white-space:nowrap}
.jpos-target-sales-row.is-historical{opacity:.78}
.jpos-target-sales-input-cell{width:165px;text-align:center}
.jpos-target-sales-input{width:118px!important;min-width:0;height:40px;margin:0 auto;text-align:center;font-weight:750;font-variant-numeric:tabular-nums;border-radius:9px!important}
.jpos-target-sales-input:focus{box-shadow:0 0 0 3px rgba(47,111,237,.12)!important}
.jpos-target-sales-input:disabled{background:#f5f6f8!important;color:#7b8492!important;cursor:not-allowed}
.jpos-target-sales-savebar{position:sticky;z-index:25;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0 0;padding:12px 14px;border:1px solid #dce4ef;border-radius:12px;background:rgba(255,255,255,.97);box-shadow:0 10px 30px rgba(15,23,42,.12);backdrop-filter:blur(8px)}
.jpos-target-sales-savebar[hidden]{display:none!important}
.jpos-target-sales-savecopy{display:flex;flex-direction:column;gap:1px;min-width:0}
.jpos-target-sales-savecopy strong{color:#172033}
.jpos-target-sales-savecopy span{font-size:.8rem;color:#64748b}
.jpos-target-sales-savebar .btn{min-height:42px;white-space:nowrap}
.jpos-target-sales-confirm{display:flex;flex-direction:column;gap:4px;padding:8px 0;text-align:center}
.jpos-target-sales-confirm strong{font-size:1.05rem}
.jpos-target-sales-confirm span{color:#64748b}

@media (max-width:767.98px){
  .jpos-target-sales-page{padding-bottom:108px}
  .jpos-target-sales-toolbar{display:grid;grid-template-columns:1fr;gap:14px}
  .jpos-target-sales-store-block{min-width:0;max-width:none;width:100%}
  .jpos-target-sales-store-block .form-control{font-size:16px}
  .jpos-target-sales-summary{grid-template-columns:1fr 1fr;gap:8px}
  .jpos-target-sales-summary-item:last-child{grid-column:1/-1}
  .jpos-target-sales-summary-item{padding:10px 11px}
  .jpos-target-sales-number-head,.jpos-target-sales-input-cell{width:112px}
  .jpos-target-sales-table th,.jpos-target-sales-table td{padding-left:10px!important;padding-right:10px!important}
  .jpos-target-sales-input{width:88px!important;height:42px;font-size:16px!important}
  .jpos-target-sales-category-row td{padding:8px 10px!important}
  .jpos-target-sales-savebar{bottom:8px;align-items:stretch;padding:10px;flex-direction:column}
  .jpos-target-sales-savebar .btn{width:100%;font-size:16px}
  .jpos-target-sales-savecopy span{font-size:.82rem}
}

/* Target Penjualan STEP 2 — Goal → Actual → Gap */
.jpos-target-sales-tabs{display:inline-flex;align-items:center;gap:4px;margin:0 0 14px;padding:4px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.jpos-target-sales-tab{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 14px;border:0;border-radius:9px;background:transparent;color:#64748b;font-weight:750;cursor:pointer;transition:.16s ease}
.jpos-target-sales-tab:hover{color:#1e293b;background:#fff}
.jpos-target-sales-tab.is-active{background:#fff;color:#0f766e;box-shadow:0 1px 4px rgba(15,23,42,.10)}
.jpos-target-sales-tab i{font-size:17px}
.jpos-target-sales-status.is-warning{border-color:#fed7aa;background:#fff7ed;color:#9a3412}
.jpos-target-sales-status.is-warning>i{color:#ea580c}
.jpos-target-sales-monitor-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
.jpos-target-sales-help.is-monitoring{background:#f0fdfa;color:#115e59}
.jpos-target-sales-progress-head{width:250px;text-align:left!important}
.jpos-target-sales-gap-head{width:100px;text-align:center!important}
.jpos-target-sales-monitor-row td{vertical-align:middle!important}
.jpos-target-sales-monitor-state{display:inline-flex;align-items:center;margin-top:5px;padding:2px 7px;border-radius:999px;font-size:.68rem;font-weight:750;line-height:1.35;white-space:nowrap}
.jpos-target-sales-monitor-state.is-unset{background:#f1f5f9;color:#64748b}
.jpos-target-sales-monitor-state.is-progress{background:#fff7ed;color:#9a3412}
.jpos-target-sales-monitor-state.is-achieved{background:#ecfdf5;color:#047857}
.jpos-target-sales-progress-cell{width:250px}
.jpos-target-sales-ratio{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:6px}
.jpos-target-sales-ratio strong{font-size:1rem;color:#172033;font-variant-numeric:tabular-nums}
.jpos-target-sales-ratio small{color:#64748b;font-size:.74rem;white-space:nowrap}
.jpos-target-sales-progress{height:7px;overflow:hidden;border-radius:999px;background:#e9eef4}
.jpos-target-sales-progress span{display:block;height:100%;border-radius:999px;background:currentColor;color:#0f766e}
.jpos-target-sales-gap-cell{width:100px;text-align:center;font-variant-numeric:tabular-nums}
.jpos-target-sales-gap-cell strong{display:block;font-size:1rem;color:#172033}
.jpos-target-sales-gap-cell small{display:block;margin-top:1px;color:#64748b;font-size:.7rem}

@media(max-width:767.98px){
  .jpos-target-sales-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%;padding:3px}
  .jpos-target-sales-tab{width:100%;min-height:42px;padding:8px 10px;font-size:.86rem}
  .jpos-target-sales-monitor-summary{grid-template-columns:1fr 1fr}
  .jpos-target-sales-monitor-summary .jpos-target-sales-summary-item:last-child{grid-column:auto}
  .jpos-target-sales-progress-head,.jpos-target-sales-progress-cell{width:142px}
  .jpos-target-sales-gap-head,.jpos-target-sales-gap-cell{width:68px}
  .jpos-target-sales-monitor-table th,.jpos-target-sales-monitor-table td{padding-left:8px!important;padding-right:8px!important}
  .jpos-target-sales-ratio{display:block;margin-bottom:5px}
  .jpos-target-sales-ratio strong{display:block;font-size:.94rem}
  .jpos-target-sales-ratio small{display:block;margin-top:1px;font-size:.68rem}
  .jpos-target-sales-progress{height:6px}
  .jpos-target-sales-monitor-state{font-size:.64rem}
  .jpos-target-sales-gap-cell strong{font-size:.94rem}
}

/* Target Penjualan STEP 3 — Pace + Forecast */
.jpos-target-sales-monitor-state.is-on-track{background:#ecfeff;color:#0f766e}
.jpos-target-sales-monitor-state.is-attention{background:#fff7ed;color:#c2410c}
.jpos-target-sales-monitor-state.is-missed{background:#fff1f2;color:#be123c}
.jpos-target-sales-monitor-state.is-future{background:#eff6ff;color:#1d4ed8}
.jpos-target-sales-intel{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:6px;color:#64748b;font-size:.7rem;line-height:1.35}
.jpos-target-sales-intel span{display:inline-flex;align-items:center;gap:3px}
.jpos-target-sales-intel b{color:#334155;font-weight:750}
.jpos-target-sales-gap-cell em{display:block;margin-top:4px;color:#64748b;font-size:.65rem;font-style:normal;white-space:nowrap}
@media(max-width:767px){
  .jpos-target-sales-monitor-summary{grid-template-columns:1fr 1fr}
  .jpos-target-sales-intel{display:block;margin-top:5px;font-size:.65rem}
  .jpos-target-sales-intel span{display:block;margin-top:1px}
  .jpos-target-sales-gap-cell em{font-size:.61rem;white-space:normal}
}

/* ============================================================
   JPOS TARGET PENJUALAN — STEP 4 DECISION INSIGHT
   Deterministic Rule Engine, bukan AI generatif.
   ============================================================ */
.jpos-target-sales-decision-card{overflow:visible}
.jpos-target-sales-engine-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;color:#475569;font-size:.68rem;font-weight:800;letter-spacing:.045em;white-space:nowrap}
.jpos-target-sales-engine-badge i{font-size:14px}
.jpos-target-sales-decision-hero{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.jpos-target-sales-decision-hero.is-warning{border-color:#fed7aa;background:#fff7ed}
.jpos-target-sales-decision-hero.is-success{border-color:#a7f3d0;background:#ecfdf5}
.jpos-target-sales-decision-hero.is-info{border-color:#bfdbfe;background:#eff6ff}
.jpos-target-sales-decision-icon{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.78);font-size:21px;color:#475569}
.jpos-target-sales-decision-hero.is-warning .jpos-target-sales-decision-icon{color:#c2410c}
.jpos-target-sales-decision-hero.is-success .jpos-target-sales-decision-icon{color:#047857}
.jpos-target-sales-decision-hero.is-info .jpos-target-sales-decision-icon{color:#1d4ed8}
.jpos-target-sales-decision-tone{display:block;margin-bottom:3px;font-size:.68rem;font-weight:850;letter-spacing:.065em;color:#64748b}
.jpos-target-sales-decision-hero h3{margin:0 0 4px;font-size:1.04rem;color:#172033}
.jpos-target-sales-decision-hero p{margin:0;color:#475569;line-height:1.5}
.jpos-target-sales-decision-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:14px;margin-top:14px}
.jpos-target-sales-decision-section{min-width:0;border:1px solid #e7ebf0;border-radius:12px;background:#fff;overflow:hidden}
.jpos-target-sales-decision-section-head{display:flex;align-items:flex-start;gap:9px;padding:12px 13px;border-bottom:1px solid #edf0f4;background:#fafbfc;color:#334155}
.jpos-target-sales-decision-section-head>i{font-size:18px;line-height:1.2;color:#0f766e}
.jpos-target-sales-decision-section-head div{display:flex;flex-direction:column;gap:1px}
.jpos-target-sales-decision-section-head strong{font-size:.88rem;color:#1e293b}
.jpos-target-sales-decision-section-head span{font-size:.72rem;color:#64748b;line-height:1.4}
.jpos-target-sales-action-list{display:flex;flex-direction:column}
.jpos-target-sales-action-item{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;border-bottom:1px solid #edf0f4}
.jpos-target-sales-action-item:last-child{border-bottom:0}
.jpos-target-sales-action-no{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border-radius:999px;background:#eef2f7;color:#334155;font-size:.76rem;font-weight:850}
.jpos-target-sales-action-content{min-width:0;flex:1}
.jpos-target-sales-action-head{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:4px}
.jpos-target-sales-action-head strong{font-size:.88rem;color:#172033}
.jpos-target-sales-action-severity{display:inline-flex;padding:2px 6px;border-radius:999px;font-size:.62rem;font-weight:800;line-height:1.4;background:#f1f5f9;color:#475569}
.jpos-target-sales-action-severity.is-high{background:#fff1f2;color:#be123c}
.jpos-target-sales-action-severity.is-medium{background:#fff7ed;color:#c2410c}
.jpos-target-sales-action-severity.is-info{background:#eff6ff;color:#1d4ed8}
.jpos-target-sales-action-severity.is-low{background:#ecfdf5;color:#047857}
.jpos-target-sales-action-content>p{margin:0;color:#64748b;font-size:.76rem;line-height:1.45}
.jpos-target-sales-action-rec{display:flex;align-items:flex-start;gap:6px;margin-top:7px;padding:8px 9px;border-radius:8px;background:#f8fafc;color:#334155;font-size:.74rem;line-height:1.45}
.jpos-target-sales-action-rec i{margin-top:1px;color:#b7791f;font-size:15px}
.jpos-target-sales-healthy-list{display:flex;flex-direction:column}
.jpos-target-sales-healthy-list article{display:flex;align-items:flex-start;gap:8px;padding:11px 12px;border-bottom:1px solid #edf0f4}
.jpos-target-sales-healthy-list article:last-child{border-bottom:0}
.jpos-target-sales-healthy-list i{margin-top:1px;color:#059669;font-size:17px}
.jpos-target-sales-healthy-list div{display:flex;flex-direction:column;gap:2px;min-width:0}
.jpos-target-sales-healthy-list strong{font-size:.82rem;color:#1e293b}
.jpos-target-sales-healthy-list span{font-size:.72rem;color:#64748b}
.jpos-target-sales-decision-section .jpos-state.compact{padding:18px 12px}
.jpos-target-sales-decision-limit{display:flex;align-items:flex-start;gap:8px;margin-top:12px;padding:9px 11px;border-radius:9px;background:#f8fafc;color:#64748b;font-size:.72rem;line-height:1.45}
.jpos-target-sales-decision-limit i{margin-top:1px;color:#64748b;font-size:16px}

@media (max-width: 767.98px){
  .jpos-target-sales-engine-badge{font-size:.61rem;padding:4px 7px}
  .jpos-target-sales-decision-hero{padding:12px;gap:9px}
  .jpos-target-sales-decision-icon{flex-basis:32px;width:32px;height:32px;font-size:18px}
  .jpos-target-sales-decision-hero h3{font-size:.96rem}
  .jpos-target-sales-decision-hero p{font-size:.82rem}
  .jpos-target-sales-decision-grid{grid-template-columns:1fr;gap:10px;margin-top:10px}
  .jpos-target-sales-action-item{padding:11px 10px;gap:8px}
  .jpos-target-sales-action-no{flex-basis:25px;width:25px;height:25px;font-size:.7rem}
  .jpos-target-sales-action-head{display:block}
  .jpos-target-sales-action-head strong{display:block;margin-top:4px;font-size:.84rem}
  .jpos-target-sales-action-content>p{font-size:.74rem}
  .jpos-target-sales-action-rec{font-size:.72rem}
  .jpos-target-sales-decision-limit{font-size:.68rem}
}

/* ============================================================
   JPOS TARGET PENJUALAN — STEP 5 CROSS-MODULE CONTEXT
   Booking Pipeline + Sales Value + Customer Signal.
   ============================================================ */
.jpos-target-sales-context-panel{margin-top:14px;padding:13px;border:1px solid #dce8e7;border-radius:12px;background:#f8fcfb}
.jpos-target-sales-context-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.jpos-target-sales-context-head>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.jpos-target-sales-context-head strong{font-size:.88rem;color:#173a3a}
.jpos-target-sales-context-badge{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;padding:4px 8px;border:1px solid #b9ded9;border-radius:999px;background:#ecfdf9;color:#0f766e;font-size:.62rem;font-weight:850;letter-spacing:.04em;white-space:nowrap}
.jpos-target-sales-context-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.jpos-target-sales-context-grid article{min-width:0;padding:10px 11px;border:1px solid #e2eceb;border-radius:9px;background:#fff}
.jpos-target-sales-context-grid span{display:block;color:#64748b;font-size:.67rem;line-height:1.25}
.jpos-target-sales-context-grid strong{display:block;margin-top:5px;color:#172033;font-size:.96rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.jpos-target-sales-context-grid small{display:block;margin-top:2px;color:#8a99a8;font-size:.61rem;line-height:1.3}
.jpos-target-sales-context-note{display:flex;align-items:flex-start;gap:7px;margin-top:9px;padding:8px 9px;border-radius:8px;background:#eef8f6;color:#476967;font-size:.68rem;line-height:1.45}
.jpos-target-sales-context-note i{margin-top:1px;color:#0f766e;font-size:15px}
.jpos-target-sales-action-context{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:7px}
.jpos-target-sales-action-context span{display:inline-flex;align-items:center;padding:3px 7px;border:1px solid #dfe7ee;border-radius:999px;background:#fff;color:#50677d;font-size:.64rem;font-weight:700;line-height:1.25}

@media(max-width:1199px){
  .jpos-target-sales-context-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767.98px){
  .jpos-target-sales-context-panel{padding:10px;margin-top:10px}
  .jpos-target-sales-context-head{align-items:flex-start}
  .jpos-target-sales-context-head strong{font-size:.8rem}
  .jpos-target-sales-context-badge{font-size:.57rem;padding:4px 6px}
  .jpos-target-sales-context-grid{grid-template-columns:1fr 1fr;gap:6px}
  .jpos-target-sales-context-grid article{padding:9px}
  .jpos-target-sales-context-grid strong{font-size:.88rem}
  .jpos-target-sales-context-note{font-size:.65rem}
  .jpos-target-sales-action-context span{font-size:.61rem;padding:3px 6px}
}

/* ============================================================
   JPOS TARGET PENJUALAN — UI POLISH V1
   09 Oktober 2026
   Scope: spacing / breathing room / responsive readability only.
   No business logic changes.
   ============================================================ */
.jpos-target-sales-page{font-size:14px}
.jpos-target-sales-page>.jpos-card{margin-bottom:20px}
.jpos-target-sales-page>.jpos-card:last-of-type{margin-bottom:0}

/* Tabs */
.jpos-target-sales-tabs{margin-bottom:18px}

/* Period/store + summary card */
.jpos-target-sales-control{padding:18px;margin-bottom:20px}
.jpos-target-sales-control .jpos-target-sales-toolbar{gap:18px}
.jpos-target-sales-control .jpos-target-sales-status{margin-top:18px;padding:12px 14px;line-height:1.55}
.jpos-target-sales-control .jpos-target-sales-summary{gap:12px;margin-top:16px}
.jpos-target-sales-control .jpos-target-sales-summary-item{min-height:78px;padding:13px 15px;justify-content:center;gap:5px}
.jpos-target-sales-control .jpos-target-sales-summary-item span{line-height:1.35}
.jpos-target-sales-control .jpos-target-sales-summary-item strong{line-height:1.2}

/* Decision / recommendation card */
.jpos-target-sales-decision-card{padding:18px;margin-bottom:20px}
.jpos-target-sales-decision-card>.jpos-section-title-row{margin:0 0 14px;padding:0}
.jpos-target-sales-decision-card>.jpos-section-title-row h2{margin-top:4px}
.jpos-target-sales-decision-hero{margin:0;padding:15px 16px;line-height:1.5}
.jpos-target-sales-decision-hero>div:last-child{min-width:0}
.jpos-target-sales-decision-hero h3{margin-bottom:6px;line-height:1.35}
.jpos-target-sales-decision-hero p{line-height:1.55}

/* Supporting context cards */
.jpos-target-sales-context-panel{margin-top:16px;padding:15px}
.jpos-target-sales-context-panel+.jpos-target-sales-context-panel{margin-top:14px}
.jpos-target-sales-context-head{margin-bottom:12px}
.jpos-target-sales-context-head>div{gap:4px}
.jpos-target-sales-context-grid{gap:10px}
.jpos-target-sales-context-grid article{min-height:88px;padding:12px 13px;display:flex;flex-direction:column;justify-content:center}
.jpos-target-sales-context-grid strong{margin-top:6px;margin-bottom:2px;line-height:1.2}
.jpos-target-sales-context-grid small{line-height:1.4}
.jpos-target-sales-context-note{margin-top:12px;padding:10px 11px;line-height:1.55}

/* Priority + safe target sections */
.jpos-target-sales-decision-grid{gap:16px;margin-top:16px}
.jpos-target-sales-decision-section{border-radius:12px}
.jpos-target-sales-decision-section-head{padding:14px 15px;gap:10px}
.jpos-target-sales-decision-section-head div{gap:3px}
.jpos-target-sales-decision-section-head span{line-height:1.5}
.jpos-target-sales-action-item{gap:11px;padding:14px 15px}
.jpos-target-sales-action-head{margin-bottom:6px}
.jpos-target-sales-action-content>p{line-height:1.55}
.jpos-target-sales-action-context{margin-top:9px;gap:6px}
.jpos-target-sales-action-rec{margin-top:9px;padding:10px 11px;line-height:1.55}
.jpos-target-sales-healthy-list article{gap:9px;padding:13px 14px}
.jpos-target-sales-healthy-list div{gap:4px}
.jpos-target-sales-healthy-list span{line-height:1.45}
.jpos-target-sales-decision-limit{margin-top:14px;padding:11px 12px;line-height:1.55}

/* Monitoring/settings cards */
.jpos-target-sales-list-card{padding:18px;margin-bottom:20px;overflow:visible}
.jpos-target-sales-list-card>.jpos-section-title-row{margin:0 0 14px;padding:0}
.jpos-target-sales-list-card>.jpos-section-title-row h2{margin-top:4px;line-height:1.35}
.jpos-target-sales-help{margin:0 0 14px;padding:12px 14px;line-height:1.55}
.jpos-target-sales-table-wrap{overflow-x:auto;overflow-y:hidden;border:1px solid #e7ebf0;border-radius:12px;background:#fff;-webkit-overflow-scrolling:touch}
.jpos-target-sales-table thead th:first-child,.jpos-target-sales-table tbody td:first-child{padding-left:14px!important}
.jpos-target-sales-table thead th:last-child,.jpos-target-sales-table tbody td:last-child{padding-right:14px!important}
.jpos-target-sales-row td{padding-top:13px!important;padding-bottom:13px!important}
.jpos-target-sales-category-row td{padding-top:10px!important;padding-bottom:10px!important}
.jpos-target-sales-intel{line-height:1.5}
.jpos-target-sales-gap-cell small,.jpos-target-sales-gap-cell em{line-height:1.4}

/* Save bar */
.jpos-target-sales-savebar{margin-top:20px;padding:13px 15px}

@media(max-width:767px){
  .jpos-target-sales-page{font-size:16px;padding-bottom:112px}
  .jpos-target-sales-page>.jpos-card{margin-bottom:14px}
  .jpos-target-sales-tabs{margin-bottom:14px}

  .jpos-target-sales-control,
  .jpos-target-sales-decision-card,
  .jpos-target-sales-list-card{padding:13px 12px;margin-bottom:14px}

  .jpos-target-sales-control .jpos-target-sales-toolbar{gap:15px}
  .jpos-target-sales-control .jpos-target-sales-status{margin-top:15px;padding:12px;line-height:1.55;font-size:14px}
  .jpos-target-sales-control .jpos-target-sales-summary{gap:9px;margin-top:14px}
  .jpos-target-sales-control .jpos-target-sales-summary-item{min-height:82px;padding:12px;gap:5px}
  .jpos-target-sales-control .jpos-target-sales-summary-item span{font-size:13px;line-height:1.4}
  .jpos-target-sales-control .jpos-target-sales-summary-item strong{font-size:20px}

  .jpos-target-sales-decision-card>.jpos-section-title-row,
  .jpos-target-sales-list-card>.jpos-section-title-row{margin-bottom:12px}
  .jpos-target-sales-engine-badge{white-space:normal;line-height:1.35}
  .jpos-target-sales-decision-hero{padding:13px;gap:10px}
  .jpos-target-sales-decision-hero h3{font-size:16px;line-height:1.4}
  .jpos-target-sales-decision-hero p{font-size:14px;line-height:1.55}

  .jpos-target-sales-context-panel{margin-top:12px;padding:12px}
  .jpos-target-sales-context-panel+.jpos-target-sales-context-panel{margin-top:11px}
  .jpos-target-sales-context-head{margin-bottom:10px;gap:8px}
  .jpos-target-sales-context-grid{gap:8px}
  .jpos-target-sales-context-grid article{min-height:90px;padding:11px 10px}
  .jpos-target-sales-context-grid span{font-size:12px;line-height:1.35}
  .jpos-target-sales-context-grid strong{font-size:15px;margin-top:6px}
  .jpos-target-sales-context-grid small{font-size:11px;line-height:1.4}
  .jpos-target-sales-context-note{margin-top:10px;padding:10px;font-size:13px;line-height:1.55}

  .jpos-target-sales-decision-grid{gap:11px;margin-top:12px}
  .jpos-target-sales-decision-section-head{padding:13px 12px}
  .jpos-target-sales-decision-section-head strong{font-size:14px}
  .jpos-target-sales-decision-section-head span{font-size:12px;line-height:1.45}
  .jpos-target-sales-action-item{padding:13px 12px;gap:9px}
  .jpos-target-sales-action-head strong{font-size:14px;line-height:1.4}
  .jpos-target-sales-action-content>p{font-size:13px;line-height:1.55}
  .jpos-target-sales-action-rec{padding:10px;font-size:13px;line-height:1.55}
  .jpos-target-sales-action-context span{font-size:11px;line-height:1.35}
  .jpos-target-sales-healthy-list article{padding:12px}
  .jpos-target-sales-healthy-list strong{font-size:14px;line-height:1.4}
  .jpos-target-sales-healthy-list span{font-size:13px;line-height:1.45}
  .jpos-target-sales-decision-limit{margin-top:12px;padding:10px;font-size:13px;line-height:1.55}

  .jpos-target-sales-help{padding:11px 12px;margin-bottom:12px;font-size:14px;line-height:1.55}
  .jpos-target-sales-table-wrap{border-radius:10px}
  .jpos-target-sales-table thead th:first-child,.jpos-target-sales-table tbody td:first-child{padding-left:11px!important}
  .jpos-target-sales-table thead th:last-child,.jpos-target-sales-table tbody td:last-child{padding-right:11px!important}
  .jpos-target-sales-row td{padding-top:13px!important;padding-bottom:13px!important}
  .jpos-target-sales-category-row td{padding-top:9px!important;padding-bottom:9px!important}

  .jpos-target-sales-savebar{margin-top:14px;padding:11px;gap:10px}
}

/* =====================================================================
   PROGRAM TAMBAHAN — KUPON & ANTRIAN EVENT · STEP 1 · UI CLEANUP
   ===================================================================== */
.jpos-event-queue-page{
  --eq-border:#e3e9f0;
  --eq-muted:#718198;
  --eq-ink:#17233c;
  --eq-soft:#f7f9fc;
  font-size:14px;
}
.jpos-event-queue-page .jpos-card{border-color:var(--eq-border);box-shadow:0 1px 2px rgba(18,38,63,.035)}
.jpos-eq-pagehead{align-items:center;margin-bottom:12px}
.jpos-eq-pagehead .jpos-pagehead-copy h1{margin-bottom:0}
.jpos-eq-page-actions{display:flex;gap:7px;flex-wrap:wrap}
.jpos-eq-page-actions .btn{min-height:38px}

/* Event aktif dibuat ringkas karena ini context tetap, bukan konten utama. */
.jpos-eq-event-card{padding:0;overflow:hidden;margin-bottom:10px}
.jpos-eq-event-active{min-height:76px}
.jpos-eq-event-main,.jpos-eq-no-event{display:flex;align-items:center;gap:12px;padding:12px 14px}
.jpos-eq-event-main{background:linear-gradient(135deg,#f7fbff 0%,#fff 72%)}
.jpos-eq-event-icon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:#eaf4ff;color:#1677c8;font-size:20px;flex:0 0 auto}
.jpos-eq-event-copy{min-width:0;flex:1}
.jpos-eq-event-label{display:block;color:#718198;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;line-height:1.2}
.jpos-eq-event-copy h2,.jpos-eq-no-event h2{font-size:18px;line-height:1.2;margin:2px 0 2px;color:var(--eq-ink)}
.jpos-eq-event-copy p{margin:0;color:#5f7086;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-eq-event-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.jpos-eq-event-actions .btn{min-height:36px;padding:7px 11px}
.jpos-eq-open-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:#eaf8ef;color:#167342;font-weight:800;font-size:11px}
.jpos-eq-open-badge i{font-size:8px}
.jpos-eq-no-event{justify-content:space-between;min-height:76px}
.jpos-eq-no-event .btn{min-height:38px}

/* Transaksi cepat: satu fokus, satu baris di desktop. */
.jpos-eq-quick-card{padding:12px 14px;margin:0 0 10px}
.jpos-eq-quick-title{margin-bottom:8px;color:#53657b;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.jpos-eq-entry-grid{display:grid;grid-template-columns:minmax(280px,1.65fr) minmax(180px,.72fr) minmax(165px,.64fr) auto;gap:10px;align-items:end}
.jpos-eq-field{display:flex;flex-direction:column;gap:5px;margin:0;min-width:0}
.jpos-eq-field>span{font-weight:700;color:#52647a;font-size:11px;text-transform:uppercase;letter-spacing:.025em}
.jpos-eq-field .form-control{min-height:42px}
.jpos-eq-qty-control{display:grid;grid-template-columns:40px minmax(62px,1fr) 40px;gap:5px}
.jpos-eq-qty-control .btn{height:42px;padding:5px;font-size:18px;font-weight:800}
.jpos-eq-qty-control input{height:42px;text-align:center;font-weight:800}
.jpos-eq-total-box{min-height:62px;border:1px solid #bfe9d1;border-radius:10px;padding:7px 11px;background:#effbf5;display:flex;flex-direction:column;justify-content:center}
.jpos-eq-total-box>span{font-size:10px;text-transform:uppercase;font-weight:800;color:#5f806f;letter-spacing:.03em}
.jpos-eq-total-box strong{font-size:20px;line-height:1.15;color:#087443;margin-top:1px;white-space:nowrap}
.jpos-eq-total-box small{margin-top:2px;color:#6f8178;font-size:10px;white-space:nowrap}
.jpos-eq-submit-wrap .btn{height:42px;white-space:nowrap;padding-left:15px;padding-right:15px}

/* Statistik menjadi bar tipis, bukan kartu besar. */
.jpos-eq-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 10px}
.jpos-eq-summary[hidden]{display:none!important}
.jpos-eq-stat{min-height:56px;border:1px solid var(--eq-border);border-radius:10px;background:#fff;padding:8px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.jpos-eq-stat span{color:#75849a;font-size:11px;font-weight:700;line-height:1.2}
.jpos-eq-stat strong{color:var(--eq-ink);font-size:16px;white-space:nowrap}

/* Tabel transaksi adalah konten utama. */
.jpos-eq-transactions-card{margin-top:0;padding:0;overflow:hidden}
.jpos-eq-card-head{display:flex;align-items:center;justify-content:space-between;padding:11px 13px 8px;border-bottom:1px solid #edf1f5}
.jpos-eq-card-head h2{margin:0;color:var(--eq-ink);font-size:16px}
.jpos-eq-table-wrap{overflow-x:auto;padding-bottom:2px}
.jpos-eq-table{min-width:880px;margin-bottom:0}
.jpos-eq-table th{font-size:11px;white-space:nowrap}
.jpos-eq-table td{vertical-align:middle}
.jpos-eq-table .jpos-eq-tx-reg{min-width:165px}
.jpos-eq-table .jpos-eq-tx-package{min-width:235px;max-width:330px}
.jpos-eq-table .jpos-eq-tx-qty{width:64px}
.jpos-eq-table .jpos-eq-tx-total{width:120px}
.jpos-eq-table .jpos-eq-tx-status{width:145px}
.jpos-eq-table .jpos-eq-tx-queue{width:100px}
.jpos-eq-table .jpos-eq-tx-action{width:96px}
.jpos-eq-cell-sub{display:block;margin-top:2px;font-size:10px;color:#8390a5;white-space:normal;line-height:1.3}
.jpos-eq-status{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}
.jpos-eq-status.success{background:#e8f8ee;color:#147545}.jpos-eq-status.warning{background:#fff6dd;color:#98660b}.jpos-eq-status.info{background:#eaf5ff;color:#17699b}.jpos-eq-status.danger{background:#fdeaea;color:#a92929}.jpos-eq-status.muted{background:#eef1f5;color:#69778a}
.jpos-eq-queue-empty{display:block;font-weight:800;color:#9aa6b6}
.jpos-eq-inline-actions{display:flex;gap:5px;flex-wrap:wrap}

/* Panel sekunder hanya muncul saat diminta. */
.jpos-eq-packages-card,.jpos-eq-history-card{margin-top:10px;padding:0;overflow:hidden}
.jpos-eq-secondary-head{padding:11px 13px;border-bottom:1px solid #edf1f5;margin:0!important}
.jpos-eq-secondary-head h2{font-size:16px;margin:2px 0 0}
.jpos-eq-secondary-head .btn{min-height:36px}
.jpos-eq-secondary-table-wrap{overflow-x:auto}
.jpos-eq-package-table{min-width:760px;margin-bottom:0}
.jpos-eq-history-table{min-width:820px;margin-bottom:0}

/* Form modal Event/Paket. */
.jpos-eq-swal-form{display:grid;gap:13px;margin-top:8px}.jpos-eq-swal-form label{display:grid;gap:6px;margin:0}.jpos-eq-swal-form label>span{font-size:12px;font-weight:700;color:#42536a}.jpos-eq-swal-form .swal2-input,.jpos-eq-swal-form .swal2-textarea{margin:0;width:100%;box-sizing:border-box;font-size:14px}.jpos-eq-swal-form .swal2-input{height:44px}.jpos-eq-swal-form .swal2-textarea{min-height:90px;padding:10px 12px}.jpos-eq-swal-note{padding:10px 12px;border-radius:8px;background:#eef7ff;border:1px solid #d3e9fb;color:#44627d;font-size:12px;line-height:1.45}.jpos-eq-rupiah-input{display:grid;grid-template-columns:auto 1fr;align-items:center;border:1px solid #d9dfe8;border-radius:5px;padding-left:12px;overflow:hidden}.jpos-eq-rupiah-input>b{font-size:14px;color:#465a73}.jpos-eq-rupiah-input .swal2-input{border:0!important;box-shadow:none!important}.jpos-eq-created{text-align:center}.jpos-eq-created>span{display:block;color:#738299;font-size:12px;text-transform:uppercase;font-weight:700}.jpos-eq-created>strong{display:block;font-size:28px;color:#17375e;margin:5px 0}.jpos-eq-created p{margin:0 0 8px}.jpos-eq-created small{color:#738299}

/* Tablet */
@media(max-width:1180px){
  .jpos-eq-entry-grid{grid-template-columns:minmax(260px,1.4fr) minmax(180px,.72fr) minmax(160px,.7fr)}
  .jpos-eq-submit-wrap{grid-column:1/-1}
  .jpos-eq-submit-wrap .btn{width:100%}
}
@media(max-width:900px){
  .jpos-eq-pagehead{display:grid!important;grid-template-columns:1fr;gap:8px}
  .jpos-eq-page-actions{justify-content:flex-start}
  .jpos-eq-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpos-eq-entry-grid{grid-template-columns:minmax(0,1.35fr) minmax(170px,.7fr)}
  .jpos-eq-total-box{grid-column:1/2}
  .jpos-eq-submit-wrap{grid-column:2/3;align-self:stretch;display:flex;align-items:flex-end}
  .jpos-eq-submit-wrap .btn{width:100%}
}

/* HP: form bertingkat dan tabel berubah menjadi list-card agar tidak perlu geser horizontal. */
@media(max-width:767px){
  .jpos-event-queue-page{font-size:16px}
  .jpos-eq-pagehead{margin-bottom:9px}
  .jpos-eq-page-actions{display:grid!important;grid-template-columns:1fr 1fr 44px!important;width:100%;gap:6px}
  .jpos-eq-page-actions .btn{min-height:42px;justify-content:center;padding:8px}
  .jpos-eq-refresh-text{display:none}

  .jpos-eq-event-main,.jpos-eq-no-event{padding:11px 12px;gap:9px;min-height:72px}
  .jpos-eq-event-icon{width:36px;height:36px;font-size:18px;border-radius:10px}
  .jpos-eq-event-copy h2,.jpos-eq-no-event h2{font-size:18px}
  .jpos-eq-event-copy p{font-size:13px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .jpos-eq-open-badge{display:none}
  .jpos-eq-event-actions .btn{height:40px;min-width:42px;font-size:0;padding:8px 11px}
  .jpos-eq-event-actions .btn i{font-size:17px;margin:0}
  .jpos-eq-no-event{align-items:center}
  .jpos-eq-no-event .btn{width:auto;font-size:15px}

  .jpos-eq-quick-card{padding:11px 12px}
  .jpos-eq-quick-title{font-size:12px;margin-bottom:7px}
  .jpos-eq-entry-grid{grid-template-columns:1fr;gap:9px}
  .jpos-eq-total-box,.jpos-eq-submit-wrap{grid-column:auto}
  .jpos-eq-field>span{font-size:13px}
  .jpos-eq-field .form-control,.jpos-eq-qty-control input{font-size:16px}
  .jpos-eq-package-field select{font-size:16px}
  .jpos-eq-qty-control{grid-template-columns:44px 1fr 44px}
  .jpos-eq-qty-control .btn,.jpos-eq-qty-control input{height:44px}
  .jpos-eq-total-box{min-height:66px;padding:8px 12px}
  .jpos-eq-total-box strong{font-size:23px}
  .jpos-eq-total-box small{font-size:12px}
  .jpos-eq-submit-wrap .btn{height:46px;font-size:16px}

  .jpos-eq-summary{grid-template-columns:1fr 1fr;gap:6px}
  .jpos-eq-stat{min-height:58px;padding:8px 10px;display:block}
  .jpos-eq-stat span{display:block;font-size:12px}
  .jpos-eq-stat strong{display:block;margin-top:3px;font-size:17px}
  .jpos-eq-card-head{padding:10px 12px 7px}
  .jpos-eq-card-head h2{font-size:17px}

  .jpos-eq-table-wrap,.jpos-eq-secondary-table-wrap{overflow:visible;padding:0}
  .jpos-eq-table,.jpos-eq-package-table,.jpos-eq-history-table{min-width:0;width:100%;border-collapse:separate;border-spacing:0;margin:0}
  .jpos-eq-table thead,.jpos-eq-package-table thead,.jpos-eq-history-table thead{display:none}
  .jpos-eq-table tbody,.jpos-eq-package-table tbody,.jpos-eq-history-table tbody{display:block}
  .jpos-eq-table tbody tr,.jpos-eq-package-table tbody tr,.jpos-eq-history-table tbody tr{display:grid;margin:0;border:0;border-bottom:1px solid #edf1f5;padding:11px 12px;gap:8px;background:#fff}
  .jpos-eq-table tbody tr:last-child,.jpos-eq-package-table tbody tr:last-child,.jpos-eq-history-table tbody tr:last-child{border-bottom:0}
  .jpos-eq-table tbody td,.jpos-eq-package-table tbody td,.jpos-eq-history-table tbody td{display:block!important;width:auto!important;max-width:none!important;min-width:0!important;border:0!important;padding:0!important;text-align:left!important}
  .jpos-eq-table tbody td::before,.jpos-eq-package-table tbody td::before,.jpos-eq-history-table tbody td::before{content:attr(data-label);display:block;margin-bottom:2px;color:#8794a6;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
  .jpos-eq-table tbody tr{grid-template-columns:1fr 1fr}
  .jpos-eq-table .jpos-eq-tx-reg,.jpos-eq-table .jpos-eq-tx-package{grid-column:1/-1}
  .jpos-eq-table .jpos-eq-tx-status,.jpos-eq-table .jpos-eq-tx-action{align-self:end}
  .jpos-eq-table .jpos-eq-tx-action .btn{width:100%;min-height:38px}
  .jpos-eq-table .jpos-eq-tx-total strong{font-size:17px;color:#087443}
  .jpos-eq-cell-sub{font-size:12px;margin-top:2px}
  .jpos-eq-status{font-size:12px;padding:5px 8px}

  .jpos-eq-package-table tbody tr{grid-template-columns:1fr 1fr}
  .jpos-eq-package-table tbody td:nth-child(1),.jpos-eq-package-table tbody td:nth-child(2),.jpos-eq-package-table tbody td:nth-child(5){grid-column:1/-1}
  .jpos-eq-inline-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .jpos-eq-inline-actions .btn{min-height:38px}

  .jpos-eq-history-table tbody tr{grid-template-columns:1fr 1fr}
  .jpos-eq-history-table tbody td:nth-child(1){grid-column:1/-1}

  .jpos-eq-secondary-head{padding:10px 12px}
  .jpos-eq-secondary-head h2{font-size:17px}
  .jpos-eq-secondary-head .btn{min-height:40px}

  .jpos-eq-swal-form label>span{font-size:13px}.jpos-eq-swal-form .swal2-input,.jpos-eq-swal-form .swal2-textarea{font-size:16px}
}


/* =====================================================================
   KUPON & ANTRIAN — STEP 3 UI REFINEMENT
   Excel-like transaction table + search/filter + inline Qty + paid total
   ===================================================================== */
.jpos-eq-page-actions{align-items:center}
.jpos-eq-received-pill{
  min-height:38px;display:flex;align-items:center;gap:8px;padding:6px 11px;
  border:1px solid #bfe5cf;border-radius:8px;background:#eff9f3;white-space:nowrap
}
.jpos-eq-received-pill span{font-size:11px;font-weight:700;color:#60776a}
.jpos-eq-received-pill strong{font-size:14px;color:#087443}

.jpos-eq-card-head{gap:12px}
.jpos-eq-table-tools{display:flex;align-items:center;gap:7px;margin-left:auto}
.jpos-eq-search-box{position:relative;margin:0;display:block;width:min(290px,32vw)}
.jpos-eq-search-box i{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#8090a5;font-size:16px;z-index:1}
.jpos-eq-search-box .form-control{height:36px;padding:6px 10px 6px 32px;font-size:14px}
.jpos-eq-tx-filter{height:36px;width:165px;font-size:14px;padding-top:5px;padding-bottom:5px}

.jpos-eq-table-wrap{overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch}
.jpos-eq-table{min-width:760px!important;width:100%!important;border-collapse:collapse!important;table-layout:fixed;margin:0!important}
.jpos-eq-table thead{display:table-header-group!important}
.jpos-eq-table tbody{display:table-row-group!important}
.jpos-eq-table tr{display:table-row!important;margin:0!important;padding:0!important;border:0!important}
.jpos-eq-table th,.jpos-eq-table td{display:table-cell!important;border:1px solid #dfe6ee!important;padding:8px 9px!important;vertical-align:middle!important;text-align:left;font-size:14px;line-height:1.3}
.jpos-eq-table th{background:#f4f7fa!important;color:#46576c;font-size:11px!important;font-weight:800;text-transform:uppercase;letter-spacing:.025em;white-space:nowrap}
.jpos-eq-table td::before{display:none!important;content:none!important}
.jpos-eq-table .text-right{text-align:right!important}
.jpos-eq-table .jpos-eq-tx-name{width:24%;min-width:180px!important}
.jpos-eq-table .jpos-eq-tx-queue{width:11%;min-width:90px!important;text-align:center!important}
.jpos-eq-table .jpos-eq-tx-package{width:19%;min-width:130px!important;max-width:none!important}
.jpos-eq-table .jpos-eq-tx-qty{width:14%;min-width:112px!important;text-align:center!important}
.jpos-eq-table .jpos-eq-tx-total{width:14%;min-width:105px!important}
.jpos-eq-table .jpos-eq-tx-action{width:18%;min-width:130px!important}
.jpos-eq-table tbody tr.is-paid>td{background:#eef9f2!important}
.jpos-eq-table tbody tr.is-waiting-payment>td{background:#eef6ff!important}
.jpos-eq-table tbody tr.is-waiting-name>td{background:#fff8df!important}
.jpos-eq-table tbody tr:hover>td{filter:brightness(.985)}
.jpos-eq-name-empty{font-weight:700;color:#8a6b17}
.jpos-eq-cell-sub{font-size:11px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jpos-eq-queue-empty{display:inline-block}

.jpos-eq-row-qty{display:inline-grid;grid-template-columns:28px 34px 28px;align-items:center;justify-content:center;gap:3px}
.jpos-eq-row-qty button{width:28px;height:28px;border:1px solid #cfd8e4;border-radius:6px;background:#fff;color:#263a55;font-size:18px;font-weight:800;line-height:1;padding:0;cursor:pointer}
.jpos-eq-row-qty button:hover:not(:disabled){background:#f0f4f8}
.jpos-eq-row-qty button:disabled{opacity:.38;cursor:not-allowed;background:#f1f3f5}
.jpos-eq-row-qty span{height:28px;display:grid;place-items:center;border:1px solid #d9e1ea;border-radius:6px;background:#fff;font-weight:800;font-size:13px}

.jpos-eq-inline-actions{display:flex!important;align-items:center;gap:5px;flex-wrap:nowrap!important;width:auto!important;white-space:nowrap}
.jpos-eq-inline-actions .btn{width:auto!important;min-height:30px!important;height:30px;padding:4px 8px!important;font-size:11px!important;line-height:1;display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}
.jpos-eq-inline-actions .btn i{margin:0;font-size:13px}
.jpos-eq-action-empty{color:#9ba6b4}

@media(max-width:900px){
  .jpos-eq-card-head{align-items:stretch;flex-direction:column}
  .jpos-eq-table-tools{width:100%;margin-left:0;display:grid;grid-template-columns:minmax(0,1fr) 165px}
  .jpos-eq-search-box{width:100%}
  .jpos-eq-tx-filter{width:100%}
}

@media(max-width:767px){
  .jpos-eq-page-actions{display:grid!important;grid-template-columns:minmax(108px,1.25fr) 1fr 1fr 44px!important;gap:5px!important;width:100%}
  .jpos-eq-received-pill{min-height:42px;padding:5px 8px;gap:5px;flex-direction:column;justify-content:center;align-items:flex-start;line-height:1.05}
  .jpos-eq-received-pill span{font-size:10px}.jpos-eq-received-pill strong{font-size:13px}
  .jpos-eq-page-actions .btn{min-width:0!important;font-size:13px!important;padding:7px 6px!important}
  .jpos-eq-refresh-text{display:none!important}

  .jpos-eq-card-head{padding:10px!important;gap:8px}
  .jpos-eq-card-head h2{font-size:17px}
  .jpos-eq-table-tools{grid-template-columns:minmax(0,1fr) 150px;gap:6px}
  .jpos-eq-search-box .form-control,.jpos-eq-tx-filter{height:42px;font-size:16px}

  /* Wajib tetap tabel seperti Excel pada HP; gunakan scroll horizontal. */
  .jpos-eq-table-wrap{overflow-x:auto!important;padding:0!important}
  .jpos-eq-table{display:table!important;min-width:780px!important;width:780px!important;border-collapse:collapse!important}
  .jpos-eq-table thead{display:table-header-group!important}
  .jpos-eq-table tbody{display:table-row-group!important}
  .jpos-eq-table tbody tr{display:table-row!important;padding:0!important;margin:0!important;background:transparent!important}
  .jpos-eq-table tbody td{display:table-cell!important;width:auto!important;max-width:none!important;border:1px solid #dfe6ee!important;padding:9px 8px!important;text-align:left!important;font-size:16px!important}
  .jpos-eq-table th{display:table-cell!important;font-size:11px!important;padding:8px!important}
  .jpos-eq-table td::before{display:none!important;content:none!important}
  .jpos-eq-table .jpos-eq-tx-name{width:190px!important;min-width:190px!important}
  .jpos-eq-table .jpos-eq-tx-queue{width:90px!important;min-width:90px!important;text-align:center!important}
  .jpos-eq-table .jpos-eq-tx-package{width:140px!important;min-width:140px!important}
  .jpos-eq-table .jpos-eq-tx-qty{width:112px!important;min-width:112px!important;text-align:center!important}
  .jpos-eq-table .jpos-eq-tx-total{width:108px!important;min-width:108px!important;text-align:right!important}
  .jpos-eq-table .jpos-eq-tx-action{width:140px!important;min-width:140px!important}
  .jpos-eq-cell-sub{font-size:12px!important}
  .jpos-eq-inline-actions{display:flex!important;grid-template-columns:none!important;width:max-content!important}
  .jpos-eq-inline-actions .btn{min-height:32px!important;height:32px!important;font-size:12px!important;padding:4px 7px!important}
  .jpos-eq-row-qty{grid-template-columns:30px 36px 30px}
  .jpos-eq-row-qty button,.jpos-eq-row-qty span{height:30px}.jpos-eq-row-qty button{width:30px}
}

@media(max-width:480px){
  .jpos-eq-table-tools{grid-template-columns:1fr}
  .jpos-eq-tx-filter{width:100%}
  .jpos-eq-page-actions{grid-template-columns:minmax(105px,1.3fr) 1fr 1fr 42px!important}
  .jpos-eq-page-actions .btn span{display:none}
}

/* =====================================================================
   KUPON & ANTRIAN — STEP 4 FOTOGRAFER
   ===================================================================== */
.jpos-eq-name-photo{
  appearance:none;border:0;background:transparent;padding:0;margin:0;color:#18385f;
  display:inline-flex;align-items:center;gap:6px;cursor:pointer;text-align:left;font:inherit
}
.jpos-eq-name-photo i{font-size:15px;color:#0f8e99}
.jpos-eq-name-photo strong{text-decoration:underline;text-decoration-color:#b9d9df;text-underline-offset:3px}
.jpos-eq-name-photo:hover strong{color:#0d7180;text-decoration-color:#0d7180}
.jpos-eq-photographer-qr[hidden]{display:none!important}

@media(max-width:767px){
  /* Tambahan QR Fotografer tidak boleh merusak action bar HP/tablet. */
  .jpos-eq-page-actions{
    display:flex!important;align-items:stretch!important;flex-wrap:wrap!important;gap:5px!important;width:100%
  }
  .jpos-eq-received-pill{flex:1 1 118px;min-width:112px}
  .jpos-eq-page-actions .btn{flex:0 1 auto;min-width:42px!important;min-height:42px!important}
  .jpos-eq-page-actions .js-eq-photographer-qr{flex:1 1 118px}
}
@media(max-width:480px){
  .jpos-eq-page-actions .js-eq-photographer-qr span{display:inline!important}
  .jpos-eq-page-actions .js-eq-photographer-qr{font-size:12px!important}
}

/* ============================================================
   EVENT QUEUE — MULTI ITEM + SOFT CANCEL / VOID
   07 Oktober 2026
   ============================================================ */
.jpos-eq-entry-grid-multi{grid-template-columns:minmax(280px,1fr) minmax(180px,220px) auto;align-items:end}
.jpos-eq-add-item-wrap{display:flex;align-items:end}.jpos-eq-add-item-wrap .btn{height:38px;white-space:nowrap}
.jpos-eq-cart{margin-top:10px;border:1px solid #dfe7ef;border-radius:10px;overflow:hidden;background:#fff}
.jpos-eq-cart-empty{padding:11px 13px;color:#7a8797;background:#f8fafc;font-size:12px}
.jpos-eq-cart-list{display:grid}
.jpos-eq-cart-row{display:grid;grid-template-columns:minmax(180px,1fr) auto 120px 30px;gap:10px;align-items:center;padding:8px 10px;border-bottom:1px solid #e8edf3}
.jpos-eq-cart-row:last-child{border-bottom:0}.jpos-eq-cart-name{min-width:0}.jpos-eq-cart-name strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jpos-eq-cart-name small{display:block;color:#7c8999;font-size:11px;margin-top:2px}.jpos-eq-cart-line-total{text-align:right;white-space:nowrap}
.jpos-eq-cart-remove{width:28px;height:28px;border:1px solid #d6dee8;border-radius:6px;background:#fff;color:#a33;font-size:18px;line-height:1;cursor:pointer}.jpos-eq-cart-remove:hover{background:#fff1f1}
.jpos-eq-cart-footer{display:flex;justify-content:flex-end;align-items:stretch;gap:8px;margin-top:9px}.jpos-eq-total-box-multi{min-width:190px;padding:7px 12px}.jpos-eq-cart-footer>.btn{min-width:150px}
.jpos-eq-item-lines{display:grid;gap:2px}.jpos-eq-item-lines span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.jpos-eq-item-lines b{font-weight:750}
.jpos-eq-table tbody tr.is-cancelled>td{background:#f3f4f6!important;color:#8893a1!important}.jpos-eq-table tbody tr.is-cancelled .jpos-eq-tx-name strong,.jpos-eq-table tbody tr.is-cancelled .jpos-eq-item-lines{opacity:.68}.jpos-eq-cancel-note{color:#b44a4a!important;font-weight:700}
.jpos-eq-table{min-width:860px!important}.jpos-eq-table .jpos-eq-tx-name{width:23%;min-width:180px!important}.jpos-eq-table .jpos-eq-tx-queue{width:10%;min-width:88px!important}.jpos-eq-table .jpos-eq-tx-package{width:27%;min-width:220px!important}.jpos-eq-table .jpos-eq-tx-total{width:13%;min-width:110px!important}.jpos-eq-table .jpos-eq-tx-action{width:27%;min-width:240px!important}
.jpos-eq-modal-items{display:grid;gap:6px;margin-top:12px}.jpos-eq-modal-items>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:8px 10px;border:1px solid #e3e9f0;border-radius:8px;background:#f8fafc}.jpos-eq-modal-items span{overflow-wrap:anywhere}.jpos-eq-modal-items b{white-space:nowrap}
.jpos-eq-edit-add{display:grid;grid-template-columns:minmax(0,1fr) 90px auto;gap:8px;align-items:center;margin-bottom:10px}.jpos-eq-edit-add .swal2-select,.jpos-eq-edit-add .swal2-input{width:100%;margin:0;height:38px;font-size:14px}.jpos-eq-edit-add .btn{height:38px;white-space:nowrap}
.jpos-eq-edit-cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto 105px 30px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #e7edf3}.jpos-eq-edit-cart-row>div:first-child{min-width:0}.jpos-eq-edit-cart-row>div:first-child strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jpos-eq-edit-cart-row>div:first-child small{display:block;color:#8490a0;font-size:11px}.jpos-eq-edit-cart-row>b{text-align:right;white-space:nowrap}.jpos-eq-edit-total{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid #dfe6ee}.jpos-eq-edit-total span{font-weight:700}.jpos-eq-edit-total strong{font-size:18px;color:#087443}
@media(max-width:900px){.jpos-eq-entry-grid-multi{grid-template-columns:minmax(0,1fr) minmax(160px,200px) auto}.jpos-eq-cart-row{grid-template-columns:minmax(150px,1fr) auto 105px 30px}}
@media(max-width:620px){.jpos-eq-entry-grid-multi{grid-template-columns:minmax(0,1fr) 150px}.jpos-eq-add-item-wrap{grid-column:1/-1}.jpos-eq-add-item-wrap .btn{width:100%}.jpos-eq-cart-row{grid-template-columns:minmax(130px,1fr) auto 30px;gap:6px}.jpos-eq-cart-row .jpos-eq-cart-line-total{grid-column:1/-1;text-align:right;border-top:1px dashed #e2e8ef;padding-top:4px}.jpos-eq-cart-footer{display:grid;grid-template-columns:1fr 1fr}.jpos-eq-total-box-multi{min-width:0}.jpos-eq-cart-footer>.btn{min-width:0}.jpos-eq-table{width:860px!important;min-width:860px!important}.jpos-eq-table .jpos-eq-tx-name{width:190px!important;min-width:190px!important}.jpos-eq-table .jpos-eq-tx-queue{width:88px!important;min-width:88px!important}.jpos-eq-table .jpos-eq-tx-package{width:230px!important;min-width:230px!important}.jpos-eq-table .jpos-eq-tx-total{width:110px!important;min-width:110px!important}.jpos-eq-table .jpos-eq-tx-action{width:242px!important;min-width:242px!important}.jpos-eq-edit-add{grid-template-columns:1fr 85px}.jpos-eq-edit-add .btn{grid-column:1/-1}.jpos-eq-edit-cart-row{grid-template-columns:minmax(0,1fr) auto 30px}.jpos-eq-edit-cart-row>b{grid-column:1/-1}.jpos-eq-inline-actions .btn{font-size:11px!important;padding:4px 6px!important}}

/* ============================================================
   EVENT QUEUE — TRANSACTION BUILDER POLISH + PIN CANCEL
   07 Oktober 2026
   ============================================================ */
.jpos-eq-quick-card{
  padding:0!important;
  overflow:hidden;
  border:1px solid #dfe7f0!important;
  border-radius:14px!important;
  background:#fff;
  box-shadow:0 5px 18px rgba(20,39,67,.045)!important;
}
.jpos-eq-quick-title{
  margin:0!important;
  padding:11px 14px;
  border-bottom:1px solid #e8eef5;
  background:linear-gradient(180deg,#fbfcfe 0%,#f7f9fc 100%);
  color:#42536a;
  font-size:11px;
  letter-spacing:.055em;
}
.jpos-eq-entry-grid-multi{
  grid-template-columns:minmax(280px,1fr) minmax(190px,220px) auto!important;
  gap:10px!important;
  align-items:end!important;
  padding:12px 14px 10px;
  background:#fff;
}
.jpos-eq-entry-grid-multi .jpos-eq-field>span{font-size:10px;letter-spacing:.045em;color:#617188}
.jpos-eq-entry-grid-multi .form-control,
.jpos-eq-entry-grid-multi .jpos-eq-qty-control .btn{height:42px!important;min-height:42px!important}
.jpos-eq-entry-grid-multi .form-control{border-color:#d9e2ec;border-radius:8px;background:#fff}
.jpos-eq-entry-grid-multi .form-control:focus{border-color:#91b6d9;box-shadow:0 0 0 3px rgba(31,111,176,.08)}
.jpos-eq-add-item-wrap .btn{
  height:42px!important;
  border-radius:8px;
  border-color:#cad7e4;
  color:#25435f;
  font-weight:700;
  padding:0 15px;
}
.jpos-eq-add-item-wrap .btn:hover{background:#edf5fb;border-color:#a9c4dc}

.jpos-eq-cart{
  margin:0 14px!important;
  border:1px solid #dfe7ef!important;
  border-radius:11px!important;
  overflow:hidden;
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}
.jpos-eq-cart-empty{
  min-height:76px;
  padding:13px 16px!important;
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-content:center;
  column-gap:10px;
  background:#f8fafc!important;
  color:#65768c!important;
  font-size:13px!important;
}
.jpos-eq-cart-empty>i{grid-row:1/3;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#e9f1f8;color:#406b8f;font-size:16px}
.jpos-eq-cart-empty>span{font-weight:800;color:#35495f;line-height:1.2}
.jpos-eq-cart-empty>small{font-size:11px;color:#8190a2;margin-top:2px}
.jpos-eq-cart-list{display:block!important}
.jpos-eq-cart-head{
  display:grid;
  grid-template-columns:34px minmax(180px,1fr) 112px 124px 34px;
  gap:10px;
  align-items:center;
  min-height:32px;
  padding:0 11px;
  border-bottom:1px solid #e6edf4;
  background:#f7f9fc;
  color:#76869a;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.055em;
}
.jpos-eq-cart-head span:nth-child(3){text-align:center}
.jpos-eq-cart-head span:nth-child(4){text-align:right}
.jpos-eq-cart-row{
  display:grid!important;
  grid-template-columns:34px minmax(180px,1fr) 112px 124px 34px!important;
  gap:10px!important;
  align-items:center!important;
  min-height:57px;
  padding:8px 11px!important;
  border-bottom:1px solid #edf1f5!important;
  background:#fff;
  transition:background .15s ease;
}
.jpos-eq-cart-row:hover{background:#fbfdff}
.jpos-eq-cart-row:last-child{border-bottom:0!important}
.jpos-eq-cart-index{width:25px;height:25px;border-radius:7px;background:#edf4fa;color:#486782;display:grid;place-items:center;font-size:11px;font-weight:800}
.jpos-eq-cart-name strong{font-size:13px;color:#22364d;font-weight:800}
.jpos-eq-cart-name small{font-size:10px!important;color:#8190a1!important;margin-top:3px!important}
.jpos-eq-cart-row .jpos-eq-row-qty{grid-template-columns:28px 36px 28px;justify-content:center;gap:4px}
.jpos-eq-cart-row .jpos-eq-row-qty button,
.jpos-eq-cart-row .jpos-eq-row-qty span{height:28px;border-radius:7px}
.jpos-eq-cart-row .jpos-eq-row-qty button{width:28px;border-color:#d7e1eb;background:#fff;color:#38546f;font-size:16px}
.jpos-eq-cart-row .jpos-eq-row-qty button:disabled{background:#f4f6f8;color:#bdc5ce}
.jpos-eq-cart-row .jpos-eq-row-qty span{min-width:36px;background:#f8fafc;border-color:#dfe6ee;font-size:12px;font-weight:800}
.jpos-eq-cart-line-total{font-size:13px;color:#182c43;font-weight:800;text-align:right!important}
.jpos-eq-cart-remove{
  width:30px!important;height:30px!important;border-radius:8px!important;
  display:grid;place-items:center;border-color:#e0e6ed!important;
  color:#b33b3b!important;background:#fff!important;font-size:14px!important
}
.jpos-eq-cart-remove:hover{background:#fff2f2!important;border-color:#efc8c8!important}

.jpos-eq-cart-footer{
  display:grid!important;
  grid-template-columns:minmax(120px,1fr) minmax(180px,210px) auto;
  gap:10px!important;
  align-items:center!important;
  margin:0!important;
  padding:11px 14px 13px;
  background:#fbfcfe;
  border-top:1px solid #e8eef5;
}
.jpos-eq-cart-footer-summary{display:flex;align-items:center;gap:8px;min-width:0;color:#718097}
.jpos-eq-cart-footer-summary span{font-size:10px;text-transform:uppercase;font-weight:800;letter-spacing:.04em}
.jpos-eq-cart-footer-summary strong{font-size:12px;color:#40536a;white-space:nowrap}
.jpos-eq-total-box-multi{
  min-width:0!important;
  min-height:54px!important;
  padding:7px 11px!important;
  border-radius:9px!important;
  border-color:#b9e3ca!important;
  background:#effaf4!important;
}
.jpos-eq-total-box-multi>span{font-size:9px!important}
.jpos-eq-total-box-multi strong{font-size:20px!important}
.jpos-eq-cart-footer>.btn{
  min-width:154px!important;
  height:44px;
  border-radius:8px;
  font-weight:800;
  box-shadow:0 3px 8px rgba(25,53,88,.08);
}

.jpos-eq-cancel-form{display:grid;gap:12px;margin-top:4px}
.jpos-eq-cancel-summary{padding:11px 12px;border:1px solid #eadede;border-radius:9px;background:#fff8f8;display:grid;gap:3px}
.jpos-eq-cancel-summary>span{font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:800;color:#9a6666}
.jpos-eq-cancel-summary>strong{font-size:16px;color:#3b2b2b}
.jpos-eq-cancel-summary>small{font-size:11px;color:#806f6f;line-height:1.45}
.jpos-eq-cancel-form label{display:grid;gap:6px;margin:0;color:#44566d;font-size:12px;font-weight:700}
.jpos-eq-cancel-form label>b{color:#c53d3d}
.jpos-eq-cancel-form textarea,
.jpos-eq-cancel-form input{width:100%;box-sizing:border-box;border:1px solid #d7e0e9;border-radius:8px;background:#fff;padding:9px 11px;font:inherit;color:#1f3148;outline:none}
.jpos-eq-cancel-form textarea{min-height:82px;resize:vertical}
.jpos-eq-cancel-form input{height:43px;font-size:16px;letter-spacing:.14em}
.jpos-eq-cancel-form textarea:focus,
.jpos-eq-cancel-form input:focus{border-color:#91b6d9;box-shadow:0 0 0 3px rgba(31,111,176,.08)}
.jpos-eq-cancel-help{color:#8290a1;font-size:10px;line-height:1.35}

@media(max-width:900px){
  .jpos-eq-entry-grid-multi{grid-template-columns:minmax(0,1fr) minmax(165px,190px) auto!important}
  .jpos-eq-cart-head,.jpos-eq-cart-row{grid-template-columns:30px minmax(150px,1fr) 104px 110px 32px!important;gap:7px!important}
}
@media(max-width:620px){
  .jpos-eq-quick-card{border-radius:11px!important}
  .jpos-eq-entry-grid-multi{grid-template-columns:minmax(0,1fr) 142px!important;padding:10px!important;gap:8px!important}
  .jpos-eq-add-item-wrap{grid-column:1/-1!important}
  .jpos-eq-add-item-wrap .btn{width:100%;height:42px!important}
  .jpos-eq-cart{margin:0 10px!important}
  .jpos-eq-cart-head{display:none}
  .jpos-eq-cart-row{grid-template-columns:27px minmax(0,1fr) 96px 30px!important;grid-template-rows:auto auto;gap:5px 7px!important;padding:9px!important}
  .jpos-eq-cart-index{width:24px;height:24px;grid-row:1/3;align-self:center}
  .jpos-eq-cart-name{grid-column:2/3;grid-row:1/2}
  .jpos-eq-cart-row .jpos-eq-row-qty{grid-column:3/4;grid-row:1/3;align-self:center;grid-template-columns:27px 34px 27px}
  .jpos-eq-cart-row .jpos-eq-row-qty button{width:27px;height:27px}
  .jpos-eq-cart-row .jpos-eq-row-qty span{height:27px;min-width:34px}
  .jpos-eq-cart-line-total{grid-column:2/3!important;grid-row:2/3!important;text-align:left!important;border:0!important;padding:0!important;font-size:12px}
  .jpos-eq-cart-remove{grid-column:4/5;grid-row:1/3;align-self:center;width:29px!important;height:29px!important}
  .jpos-eq-cart-footer{grid-template-columns:1fr auto!important;padding:10px!important;gap:8px!important}
  .jpos-eq-cart-footer-summary{grid-column:1/2;grid-row:1/2}
  .jpos-eq-total-box-multi{grid-column:2/3;grid-row:1/2;min-width:145px!important}
  .jpos-eq-cart-footer>.btn{grid-column:1/-1;grid-row:2/3;width:100%;min-width:0!important;height:44px}
}

/* =====================================================================
   JPOS PRODUKSI — ALUR SYARAT SEBELUM PEKERJAAN (13 OKTOBER 2026)
   Pembacaan langkah jelas: syarat → tahap → syarat → tahap.
   Tidak mengubah durasi, tanggal, data, atau penilaian.
   ===================================================================== */
.jpos-production-detail-modal .jpos-production-quick-read{
  display:flex;align-items:flex-start;gap:12px;
  margin:12px 14px 4px;padding:14px 16px;
  border:1px solid #dce8ed;border-radius:12px;background:#f6fafc;
  color:#23445a;
}
.jpos-production-detail-modal .jpos-production-quick-read.is-attention{
  border-color:#ded7ef;background:#f7f5fd;color:#4d4179;
}
.jpos-production-detail-modal .jpos-production-quick-read.is-done{
  border-color:#d2e9db;background:#f4fbf7;color:#235c42;
}
.jpos-production-detail-modal .jpos-production-quick-read>i{
  display:inline-flex;align-items:center;justify-content:center;
  flex:none;width:30px;height:30px;border-radius:9px;
  background:rgba(46,105,136,.09);font-size:19px;
}
.jpos-production-detail-modal .jpos-production-quick-read>div{
  display:flex;flex-direction:column;gap:5px;min-width:0;
}
.jpos-production-detail-modal .jpos-production-quick-read strong{
  font-weight:800;font-size:14px;line-height:1.35;color:inherit;
}
.jpos-production-detail-modal .jpos-production-quick-read span,
.jpos-production-detail-modal .jpos-production-quick-read small{
  font-size:14px;line-height:1.45;color:inherit;
}
.jpos-production-detail-modal .jpos-production-quick-read small{opacity:.8}
.jpos-production-detail-modal .jpos-production-timeline{
  display:flex;flex-direction:column;gap:0;padding:10px 14px 16px;
}
.jpos-production-detail-modal .jpos-production-gate-step{
  display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;
  position:relative;padding:14px 0 12px;
}
.jpos-production-detail-modal .jpos-production-gate-step:before{
  content:"";position:absolute;left:12px;top:38px;bottom:-5px;
  width:2px;background:#dee6ed;
}
.jpos-production-detail-modal .jpos-production-gate-marker{
  position:relative;z-index:1;display:flex;align-items:center;justify-content:center;
  width:26px;height:26px;border-radius:9px;
  background:#ece8fb;color:#6859a4;font-size:13px;
}
.jpos-production-detail-modal .jpos-production-gate-content{
  min-width:0;display:flex;flex-direction:column;gap:7px;
  padding:14px 16px;border:1px solid #e0d9ef;
  border-radius:12px;background:#f9f7fd;
}
.jpos-production-detail-modal .jpos-production-gate-step.is-confirmed .jpos-production-gate-content{
  background:#f4fbf7;border-color:#d3e9dc;
}
.jpos-production-detail-modal .jpos-production-gate-step.is-confirmed .jpos-production-gate-marker{
  background:#dff3e7;color:#28754b;
}
.jpos-production-detail-modal .jpos-production-gate-step.is-upcoming .jpos-production-gate-content{
  background:#f8fafc;border-color:#e2e8ee;
}
.jpos-production-detail-modal .jpos-production-gate-step.is-upcoming .jpos-production-gate-marker{
  background:#e9eef2;color:#7d8d99;
}
.jpos-production-detail-modal .jpos-production-gate-title{
  display:flex;align-items:center;flex-wrap:wrap;gap:5px 9px;
}
.jpos-production-detail-modal .jpos-production-gate-title>span{
  width:100%;font-size:12px;font-weight:800;letter-spacing:.035em;
  color:#75649a;
}
.jpos-production-detail-modal .jpos-production-gate-title>strong{
  font-size:14px;font-weight:800;line-height:1.4;color:#3f356f;
}
.jpos-production-detail-modal .jpos-production-gate-title>em{
  display:inline-flex;align-items:center;padding:3px 9px;
  border-radius:999px;background:#e9e3fa;color:#655199;
  font-size:12px;font-style:normal;font-weight:700;
}
.jpos-production-detail-modal .jpos-production-gate-step.is-confirmed .jpos-production-gate-title>span,
.jpos-production-detail-modal .jpos-production-gate-step.is-confirmed .jpos-production-gate-title>strong{color:#28754b}
.jpos-production-detail-modal .jpos-production-gate-step.is-confirmed .jpos-production-gate-title>em{background:#def2e7;color:#28754b}
.jpos-production-detail-modal .jpos-production-gate-content>p{
  margin:0!important;color:#39495a;font-size:14px;line-height:1.5;overflow-wrap:anywhere;
}
.jpos-production-detail-modal .jpos-production-gate-content>small{
  display:block;font-size:14px;line-height:1.45;color:#6a6678;
}
.jpos-production-detail-modal .jpos-production-gate-actions{
  display:flex;flex-wrap:wrap;gap:8px;margin-top:4px;
}
.jpos-production-detail-modal .jpos-production-gate-actions .btn{
  min-height:40px;white-space:normal;line-height:1.35;
}
.jpos-production-detail-modal .jpos-production-stage{
  padding:14px 0 18px;min-height:64px;
}
.jpos-production-detail-modal .jpos-production-stage-copy{
  gap:7px;min-width:0;
}
.jpos-production-detail-modal .jpos-production-stage-copy>div:first-child{
  display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;
}
.jpos-production-detail-modal .jpos-production-stage-copy>div:first-child>strong{
  font-size:14px;color:#21384b;
}
.jpos-production-detail-modal .jpos-production-stage-copy>small{
  font-size:14px;line-height:1.5;
}
.jpos-production-detail-modal .jpos-production-stage.is-gate-blocked .jpos-production-stage-marker{
  background:#ecf0f3;color:#687b8d;
}
.jpos-production-detail-modal .jpos-production-stage.is-gate-blocked .jpos-production-stage-status{
  background:#eef1f5;color:#667482;
}
.jpos-production-detail-modal .jpos-production-stage-actions{gap:8px}
.jpos-production-detail-modal .jpos-production-stage-actions .btn{min-height:40px}
@media(max-width:767px){
  .jpos-production-detail-modal .jpos-production-quick-read{
    padding:14px;margin:12px 10px 6px;gap:10px;
  }
  .jpos-production-detail-modal .jpos-production-quick-read strong,
  .jpos-production-detail-modal .jpos-production-quick-read span,
  .jpos-production-detail-modal .jpos-production-quick-read small{
    font-size:16px;
  }
  .jpos-production-detail-modal .jpos-production-timeline{padding:8px 10px 18px}
  .jpos-production-detail-modal .jpos-production-gate-step{grid-template-columns:25px minmax(0,1fr);gap:9px}
  .jpos-production-detail-modal .jpos-production-gate-content{padding:13px 12px;gap:8px}
  .jpos-production-detail-modal .jpos-production-gate-title>span{font-size:13px}
  .jpos-production-detail-modal .jpos-production-gate-title>strong,
  .jpos-production-detail-modal .jpos-production-gate-content>p,
  .jpos-production-detail-modal .jpos-production-gate-content>small,
  .jpos-production-detail-modal .jpos-production-stage-copy>div:first-child>strong,
  .jpos-production-detail-modal .jpos-production-stage-copy>small{font-size:16px}
  .jpos-production-detail-modal .jpos-production-gate-actions{flex-direction:column}
  .jpos-production-detail-modal .jpos-production-gate-actions .btn{width:100%;min-height:44px}
  .jpos-production-detail-modal .jpos-production-stage-actions{grid-template-columns:1fr}
  .jpos-production-detail-modal .jpos-production-stage-actions .btn{min-height:44px}
}
.jpos-production-detail-modal .jpos-production-timeline-guide{
  display:flex;flex-wrap:wrap;gap:7px 16px;margin:2px 0 6px 35px;
  padding:9px 12px;border-radius:10px;background:#f5f8fb;color:#526679;
  font-size:14px;line-height:1.5;
}
.jpos-production-detail-modal .jpos-production-timeline-guide>span{
  display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;
}
.jpos-production-detail-modal .jpos-production-timeline-guide i{font-size:16px;color:#6488a0}
@media(max-width:767px){
  .jpos-production-detail-modal .jpos-production-timeline-guide{
    margin-left:34px;font-size:16px;padding:10px;
  }
}

/* Tugas Saya — daftar ringkas produksi, tanpa mengubah timeline lama */
.jpos-production-personal-navigation{display:flex;gap:8px;margin:14px 0 18px;padding:7px;background:#f5f7fa;border:1px solid #dde5ee;border-radius:13px;flex-wrap:wrap}
.jpos-production-personal-navigation button{border:0;border-radius:9px;background:transparent;color:#42556b;min-height:44px;padding:10px 16px;display:inline-flex;gap:8px;justify-content:center;align-items:center;font-size:14px;font-weight:700;cursor:pointer}
.jpos-production-personal-navigation button.active{color:#087f89;background:#fff;box-shadow:0 1px 8px rgba(10,35,57,.1)}
.jpos-production-personal-navigation button[hidden]{display:none!important}
.jpos-production-daily{border:1px solid #dde5ee;border-radius:13px;background:#fff;padding:18px;margin-bottom:20px;font-size:14px}
.jpos-production-daily[hidden],.js-production-global-workspace[hidden]{display:none!important}
.jpos-production-daily-top{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}
.jpos-production-daily-top h3{font-size:20px;margin:6px 0;color:#20344b}
.jpos-production-daily-top p{color:#65768a;margin:4px 0;line-height:1.5}
.jpos-production-daily-top .jpos-search-field{width:320px;max-width:100%}
.jpos-production-daily-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:20px 0}
.jpos-production-daily-metric{padding:13px;background:#f6f9fc;border:1px solid #e0e7ef;border-radius:11px;display:grid;gap:6px}
.jpos-production-daily-metric span{color:#68778a;font-size:12px}.jpos-production-daily-metric b{font-size:24px;line-height:1.2;color:#20344b}
.jpos-production-daily-metric.tone-overdue{background:#fff4f3;border-color:#fbd8d5}.jpos-production-daily-metric.tone-now{background:#eef9f8;border-color:#ceece8}.jpos-production-daily-metric.tone-waiting{background:#fffaf0;border-color:#f3e4c3}
.jpos-production-daily-group{border:1px solid #e0e7ef;border-radius:12px;overflow:hidden;margin:15px 0}
.jpos-production-daily-group-head{background:#f5f8fb;padding:13px 16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #e0e7ef}
.jpos-production-daily-group-head>i{font-size:19px;color:#48687c}.jpos-production-daily-group-head h4{font-size:15px;margin:0 0 5px;color:#20344b}
.jpos-production-daily-group-head h4 span{font-size:12px;border-radius:99px;background:#e7edf5;color:#334d61;padding:3px 7px;margin-left:5px}
.jpos-production-daily-group-head p{font-size:12px;color:#65768a;margin:0;line-height:1.5}
.jpos-production-daily-stage{padding:14px 15px}.jpos-production-daily-stage+.jpos-production-daily-stage{border-top:1px solid #ebeff4}
.jpos-production-daily-stage-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#203f59}
.jpos-production-daily-stage-title span{font-size:12px;color:#66788b}
.jpos-production-daily-stage-rows{display:grid;gap:8px}
.jpos-production-daily-task{display:grid;grid-template-columns:minmax(130px,1.35fr) minmax(165px,1fr) minmax(120px,1fr) auto;align-items:center;gap:12px;border:1px solid #e0e7ef;border-radius:10px;padding:13px;background:#fff}
.jpos-production-daily-task.tone-overdue{border-left:4px solid #cd4949}.jpos-production-daily-task.tone-now{border-left:4px solid #218e94}.jpos-production-daily-task.tone-waiting{border-left:4px solid #ce992f}
.jpos-production-daily-primary,.jpos-production-daily-dates,.jpos-production-daily-state{min-width:0;display:grid;gap:4px}
.jpos-production-daily-primary strong{font-size:14px;color:#213a50;overflow-wrap:anywhere}.jpos-production-daily-primary span{font-size:13px;color:#627286;overflow-wrap:anywhere}
.jpos-production-daily-dates span,.jpos-production-daily-state span{font-size:13px;color:#394e62}
.jpos-production-daily-dates small,.jpos-production-daily-state small{font-size:12px;color:#738297;overflow-wrap:anywhere}
.jpos-production-daily-note{font-size:12px;color:#68798b;line-height:1.6;margin:18px 1px 0}
@media(max-width:1080px){.jpos-production-daily-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.jpos-production-daily-task{grid-template-columns:1fr 1fr auto}.jpos-production-daily-state{grid-column:1 / -2}}
@media(max-width:640px){.jpos-production-personal-navigation{padding:5px;gap:5px}.jpos-production-personal-navigation button{font-size:13px;flex:1;min-width:0;padding:10px 5px}.jpos-production-daily{padding:12px;font-size:16px}.jpos-production-daily-top{display:grid;gap:12px}.jpos-production-daily-top h3{font-size:19px}.jpos-production-daily-top .jpos-search-field{width:100%}.jpos-production-daily-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.jpos-production-daily-metric{padding:10px}.jpos-production-daily-stage{padding:11px}.jpos-production-daily-group-head{padding:12px}.jpos-production-daily-task{grid-template-columns:1fr auto;gap:9px}.jpos-production-daily-primary,.jpos-production-daily-dates,.jpos-production-daily-state{grid-column:1 / -1}.jpos-production-daily-primary strong{font-size:16px}.jpos-production-daily-primary span,.jpos-production-daily-dates span,.jpos-production-daily-state span{font-size:14px}.jpos-production-daily-task button{grid-column:2;justify-self:end}}


/* ============================================================
 * PENILAIAN SAYA — OWNER TEAM OVERVIEW + UI SPACING (13 Okt 2026)
 * Scoped to my_performance only. No finance, production, target CSS affected.
 * ============================================================ */
.jpos-my-performance-page{font-size:14px}
.jpos-my-performance-page .js-my-performance-body:not([hidden]),
.jpos-my-performance-page .js-my-performance-owner-body:not([hidden]){display:grid;gap:18px;margin-top:18px;min-width:0}
.jpos-my-performance-page .js-my-performance-body>.jpos-card,
.jpos-my-performance-page .js-my-performance-owner-body>.jpos-card{padding:20px!important;margin:0!important;min-width:0;overflow:hidden}
.jpos-my-performance-page .jpos-card-head{margin:0 0 16px!important;padding:0 0 14px!important;display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid #e5ebf3}
.jpos-my-performance-page .jpos-card-head h3{margin:5px 0 7px!important;line-height:1.35}
.jpos-my-performance-page .jpos-card-head p{margin:0!important;line-height:1.55}
.jpos-my-performance-page .jpos-my-performance-person{margin:0!important}
.jpos-my-performance-page .jpos-my-performance-grid{display:grid;gap:18px!important;margin:0!important;min-width:0}
.jpos-my-performance-page .jpos-my-performance-grid>.jpos-card{padding:18px!important;min-width:0;overflow:hidden}
.jpos-my-performance-page .jpos-performance-summary.is-self{margin:0!important;gap:10px!important}
.jpos-my-performance-page .jpos-performance-summary.is-self .jpos-performance-metric{padding:14px!important;min-width:0}
.jpos-my-performance-page .jpos-performance-team-breakdown{gap:10px;margin-top:0}
.jpos-my-performance-page .jpos-performance-team-breakdown>div:not(.jpos-state){padding:13px 14px;gap:7px 12px}
.jpos-my-performance-page .jpos-performance-task-list{display:grid;gap:12px}
.jpos-my-performance-page .jpos-performance-task{padding:15px!important;margin:0!important;min-width:0}
.jpos-my-performance-page .jpos-performance-task-head{gap:12px}
.jpos-my-performance-page .jpos-performance-task-grid{gap:12px}
.jpos-my-performance-view-tabs{display:flex;gap:8px;margin:14px 0 0;padding:6px;border:1px solid #dbe4ee;background:#f5f8fc;border-radius:14px;max-width:480px}
.jpos-my-performance-view-tabs[hidden]{display:none!important}
.jpos-my-performance-tab{flex:1;min-width:0;display:flex;justify-content:center;align-items:center;gap:8px;padding:11px 14px;border:0;border-radius:10px;background:transparent;color:#53657d;font:inherit;font-weight:700;cursor:pointer}
.jpos-my-performance-tab.is-active{background:#fff;color:#167b84;box-shadow:0 1px 5px #1a30421a}
.jpos-my-performance-tab:focus-visible{outline:2px solid #167b84;outline-offset:2px}
.jpos-perf-owner-intro>div:first-child h3{margin:5px 0 8px}
.jpos-perf-owner-intro>div:first-child p{margin:0;line-height:1.6;color:#64748b;max-width:900px}
.jpos-perf-owner-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}
.jpos-perf-owner-metrics>div{background:#f6f9fc;border:1px solid #e2eaf2;border-radius:12px;padding:13px 15px;display:grid;gap:4px}
.jpos-perf-owner-metrics strong{font-size:25px;color:#19344e}
.jpos-perf-owner-metrics small{font-size:12px;color:#64748b;line-height:1.4}
.jpos-perf-owner-team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.jpos-perf-owner-team-card{border:1px solid #e1e8f0;border-radius:13px;padding:17px;display:grid;gap:9px;background:#fff;min-width:0}
.jpos-perf-owner-team-card>strong{font-size:15px;line-height:1.35}
.jpos-perf-owner-team-card>small{color:#64748b;line-height:1.5}
.jpos-perf-owner-rating{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.jpos-perf-owner-rating .jpos-rating-stars{font-size:20px;white-space:nowrap;line-height:1.1}
.jpos-perf-owner-rating>b{font-size:13px;color:#394c61;white-space:nowrap}
.jpos-perf-owner-no-rating{color:#8793a4;font-size:12px}
.jpos-perf-owner-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,260px);gap:12px;margin:0 0 10px}
.jpos-perf-owner-filters label{display:grid;gap:6px;min-width:0;font-weight:600;color:#475569}
.jpos-perf-owner-filters label>span{font-size:12px}
.jpos-perf-owner-filters input,.jpos-perf-owner-filters select{min-height:42px;width:100%;max-width:100%;border:1px solid #d7e0eb;border-radius:10px;padding:9px 12px;background:#fff;color:#243348;font:inherit}
.jpos-perf-owner-filter-info{color:#64748b;font-size:12px;margin:0 0 14px}
.jpos-perf-owner-employee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.jpos-perf-owner-employee{display:grid;align-content:start;gap:14px;padding:16px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;min-width:0}
.jpos-perf-owner-employee[hidden]{display:none!important}
.jpos-perf-owner-employee-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.jpos-perf-owner-employee-head>div:first-child{min-width:0;display:grid;gap:5px}
.jpos-perf-owner-employee-head strong{line-height:1.4;overflow-wrap:anywhere}
.jpos-perf-owner-employee-head small{color:#748298;line-height:1.35}
.jpos-perf-owner-score{flex-shrink:0;display:grid;gap:3px;text-align:right}
.jpos-perf-owner-score small{color:#64748b;font-size:11px}
.jpos-perf-owner-score strong{font-size:22px;color:#18354c}
.jpos-perf-owner-team-list{display:grid;gap:8px}
.jpos-perf-owner-employee-team{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e7edf3;border-radius:10px;padding:10px 12px;background:#f8fafc;min-width:0}
.jpos-perf-owner-employee-team>span{display:grid;gap:3px;min-width:0;font-weight:700}
.jpos-perf-owner-employee-team>span>small{font-size:11px;font-weight:400;color:#64748b}
.jpos-perf-owner-no-team{color:#8290a3;padding:8px 2px;line-height:1.5}
.jpos-perf-owner-employee-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:12px;border-top:1px solid #edf1f5}
.jpos-perf-owner-employee-foot>small{color:#708096;line-height:1.45}
.jpos-perf-owner-employee-foot .btn{flex-shrink:0}
@media(max-width:1100px){.jpos-perf-owner-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-perf-owner-employee-grid{grid-template-columns:1fr}.jpos-perf-owner-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
 .jpos-my-performance-page{font-size:16px}
 .jpos-my-performance-page .js-my-performance-body:not([hidden]),.jpos-my-performance-page .js-my-performance-owner-body:not([hidden]){gap:14px;margin-top:14px}
 .jpos-my-performance-page .js-my-performance-body>.jpos-card,.jpos-my-performance-page .js-my-performance-owner-body>.jpos-card{padding:15px!important}
 .jpos-my-performance-page .jpos-my-performance-grid{gap:14px!important}
 .jpos-my-performance-page .jpos-my-performance-grid>.jpos-card{padding:15px!important}
 .jpos-my-performance-page .jpos-performance-summary.is-self{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .jpos-my-performance-view-tabs{max-width:none;width:100%;margin-top:12px}
 .jpos-my-performance-tab{padding:10px 8px;font-size:14px}
 .jpos-perf-owner-team-grid,.jpos-perf-owner-filters{grid-template-columns:1fr}
 .jpos-perf-owner-team-card{padding:14px}
 .jpos-perf-owner-employee{padding:13px}
 .jpos-perf-owner-employee-head{gap:9px}
 .jpos-perf-owner-employee-team{flex-wrap:wrap}
 .jpos-perf-owner-employee-foot{align-items:flex-start;flex-direction:column}
 .jpos-perf-owner-employee-foot .btn{width:100%}
}
@media(max-width:390px){.jpos-perf-owner-metrics{grid-template-columns:1fr 1fr}.jpos-my-performance-page .jpos-performance-summary.is-self{grid-template-columns:1fr!important}}

/* TUGAS SAYA V2 (15 Oktober 2026) — tombol mengambang + modal tindakan personal.
   Dashboard Semua Pekerjaan dan hak aksi backend tidak disentuh. */
.jpos-production-my-fab{position:fixed;z-index:4550;bottom:24px;right:24px;display:inline-flex;align-items:center;gap:9px;padding:10px 12px 10px 14px;border:1px solid #cbd8e3;border-radius:999px;background:#fff;box-shadow:0 9px 28px rgba(14,36,58,.20);font-size:14px;font-weight:750;color:#183a4e;cursor:pointer;min-height:46px;transition:transform .13s ease,box-shadow .13s ease}
.jpos-production-my-fab:hover{transform:translateY(-2px);box-shadow:0 13px 30px rgba(14,36,58,.25)}
.jpos-production-my-fab:focus-visible,.jpos-production-my-close:focus-visible{outline:3px solid #17a1a7;outline-offset:2px}
.jpos-production-my-fab>i{font-size:18px;color:#0c818a}
.jpos-production-my-badge{min-width:23px;height:23px;border-radius:99px;background:#d83137;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;padding:0 5px}
.jpos-production-my-badge[hidden]{display:none!important}
.jpos-production-my-overlay{position:fixed;inset:0;z-index:6600;background:rgba(8,24,40,.59);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:66px 18px 18px;overflow:auto}
.jpos-production-my-overlay[hidden]{display:none!important}
.jpos-production-my-dialog{width:min(810px,calc(100vw - 36px));max-height:calc(100dvh - 90px);margin:auto;border:1px solid #dce6ee;border-radius:16px;background:#fff;box-shadow:0 28px 70px rgba(6,24,43,.32);display:flex;flex-direction:column;overflow:hidden;color:#253d50;font-size:14px;outline:none}
.jpos-production-my-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px 16px;border-bottom:1px solid #e6ecf2}
.jpos-production-my-header h2{font-size:21px;font-weight:750;margin:4px 0 3px;color:#1b3549;display:flex;align-items:center;gap:9px}
.jpos-production-my-header h2 i{color:#0a8991;font-size:22px}
.jpos-production-my-header p{font-size:13px;margin:0;color:#6d7d8f}
.jpos-production-my-close{width:37px;height:37px;flex:0 0 37px;border:1px solid #dbe4ed;border-radius:10px;background:#fff;color:#5b6b7b;font-size:19px;cursor:pointer}
.jpos-production-my-content{flex:1;min-height:0;overflow:auto;padding:17px 20px 20px;overscroll-behavior:contain}
.jpos-production-my-intro{display:flex;align-items:flex-start;gap:11px;padding:14px 15px;background:#f1f8fa;border:1px solid #d7eaf0;border-radius:11px}
.jpos-production-my-intro>i{font-size:23px;color:#128e98;line-height:1}
.jpos-production-my-intro>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.jpos-production-my-intro strong{font-size:14px;color:#1a3d50}
.jpos-production-my-intro span{font-size:13px;color:#587184;line-height:1.5}
.jpos-production-my-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:13px 0 9px}
.jpos-production-my-metrics>div{border:1px solid #dfe8ef;background:#f8fafc;border-radius:10px;padding:11px 13px;display:flex;flex-direction:column;gap:6px}
.jpos-production-my-metrics span{font-size:12px;color:#61798c}
.jpos-production-my-metrics strong{font-size:22px;font-weight:800;color:#243c50;line-height:1}
.jpos-production-my-metrics>div:first-child{border-color:#f3dbd9;background:#fff7f6}
.jpos-production-my-metrics>div:first-child strong{color:#b64242}
.jpos-production-my-date{color:#738599;font-size:12px;margin:9px 0 17px;line-height:1.5}
.jpos-production-my-section{margin:16px 0 0}
.jpos-production-my-section h3{display:flex;align-items:center;gap:8px;font-size:15px;color:#1c374d;font-weight:750;margin:0 0 3px}
.jpos-production-my-section h3>i{font-size:18px;color:#168c97}
.jpos-production-my-section.tone-overdue h3>i{color:#cc4b48}
.jpos-production-my-section h3 span{font-size:12px;border-radius:99px;background:#edf1f5;color:#3e546b;padding:2px 7px}
.jpos-production-my-section>p{font-size:12px;color:#718193;line-height:1.5;margin:0 0 9px}
.jpos-production-my-task-list{display:grid;gap:9px}
.jpos-production-my-task{padding:13px 14px;border:1px solid #dfe7ed;border-left:4px solid #17a2a3;border-radius:11px;background:#fff;display:flex;flex-direction:column;gap:10px}
.jpos-production-my-task.tone-overdue{border-left-color:#cb4c49}
.jpos-production-my-task.tone-waiting{border-left-color:#dba142}
.jpos-production-my-task.tone-upcoming,.jpos-production-my-task.tone-done_today{border-left-color:#95a8b5}
.jpos-production-my-task-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.jpos-production-my-task-head>div{min-width:0;display:grid;gap:3px}
.jpos-production-my-task-head strong{font-size:14px;color:#172d41;overflow-wrap:anywhere}
.jpos-production-my-task-head small{font-size:12px;color:#6b7a8b;overflow-wrap:anywhere;line-height:1.4}
.jpos-production-my-status{border-radius:99px;padding:4px 8px;background:#eff5f8;color:#4a667b;font-size:11px;font-weight:750;white-space:nowrap}
.jpos-production-my-advice{display:flex;gap:8px;align-items:flex-start;margin:0;border:1px solid #e4ecf2;border-radius:9px;background:#f8fafc;padding:10px 11px;color:#41596f;line-height:1.5;font-size:13px}
.jpos-production-my-advice>i{font-size:18px;color:#2b8d9c;flex:0 0 auto;line-height:1}
.jpos-production-my-task-foot{display:flex;justify-content:space-between;align-items:center;gap:11px}
.jpos-production-my-task-foot small{font-size:12px;color:#738497;line-height:1.55}
.jpos-production-my-task-foot button{flex:0 0 auto;min-height:36px}
.jpos-production-my-fold{margin-top:13px;border:1px solid #dce5ed;border-radius:11px;overflow:hidden}
.jpos-production-my-fold>summary{padding:12px 14px;background:#f7f9fb;display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:700;color:#4c6176;list-style:none}
.jpos-production-my-fold>summary::-webkit-details-marker{display:none}
.jpos-production-my-fold>summary>b{font-size:12px;border-radius:99px;background:#e7edf3;padding:2px 7px}
.jpos-production-my-fold>summary>i{margin-left:auto;font-size:13px;transition:transform .13s ease}
.jpos-production-my-fold[open]>summary>i{transform:rotate(180deg)}
.jpos-production-my-fold>.jpos-production-my-task-list{padding:10px}
.jpos-production-my-footer{border-top:1px solid #e7edf2;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 20px}
.jpos-production-my-footer small{font-size:12px;color:#708093;line-height:1.45}
.jpos-production-my-footer .btn{flex:0 0 auto}
@media(max-width:767.98px){
  .jpos-production-page{font-size:16px}
  .jpos-production-personal-navigation button{font-size:16px}
  .jpos-production-my-fab{right:14px;bottom:calc(80px + env(safe-area-inset-bottom,0px));font-size:16px;min-height:48px}
  .jpos-production-my-overlay{padding:64px 8px 8px;align-items:flex-end}
  .jpos-production-my-dialog{width:100%;max-height:calc(100dvh - 72px);border-radius:16px 16px 11px 11px;font-size:16px}
  .jpos-production-my-header{padding:15px}
  .jpos-production-my-header h2{font-size:20px}
  .jpos-production-my-header p,.jpos-production-my-intro span,.jpos-production-my-advice{font-size:16px}
  .jpos-production-my-content{padding:12px 13px 16px}
  .jpos-production-my-metrics{gap:6px}
  .jpos-production-my-metrics>div{padding:9px 8px}
  .jpos-production-my-metrics span{font-size:12px;line-height:1.2}
  .jpos-production-my-metrics strong{font-size:21px}
  .jpos-production-my-task{padding:11px}
  .jpos-production-my-task-head{flex-wrap:wrap}
  .jpos-production-my-task-head strong{font-size:16px}
  .jpos-production-my-task-head small,.jpos-production-my-task-foot small{font-size:14px}
  .jpos-production-my-task-foot{align-items:stretch;flex-direction:column}
  .jpos-production-my-task-foot button{width:100%;font-size:16px;min-height:42px}
  .jpos-production-my-footer{padding:10px 13px}
  .jpos-production-my-footer small{font-size:12px}
}

/* JPOS Financial Presentation STEP 1 · 15 Oktober 2026 · hanya UI Keuangan > Pindah Dana */
.jpos-movement-compact .jpos-mv-balance-section{background:#fff}
.jpos-movement-compact .jpos-mv-period-section{background:#fff}
.jpos-movement-compact .jpos-mv-period-section .jpos-mv-primary-head{margin-bottom:16px}
.jpos-movement-compact .jpos-mv-primary-head h2{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.jpos-movement-compact .jpos-mv-info-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:3px 7px;border:1px solid #dce6ee;border-radius:8px;background:#f7f9fc;color:#526c82;font:inherit;font-size:13px;line-height:1;cursor:pointer;vertical-align:middle;white-space:nowrap}
.jpos-movement-compact .jpos-mv-info-btn:hover,.jpos-movement-compact .jpos-mv-info-btn:focus-visible{color:#155b91;border-color:#aecbdf;outline-offset:2px}
.jpos-movement-compact .jpos-mv-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.jpos-movement-compact .jpos-mv-compare-card{min-width:0;padding:17px 17px 15px;border:1px solid #e0e7ef;border-radius:13px;background:#fafbfd}
.jpos-movement-compact .jpos-mv-compare-card.is-current{border-color:#c7ddeb;background:#f5faff}
.jpos-movement-compact .jpos-mv-compare-tag{color:#6d7f92;font-size:11px;font-weight:750;letter-spacing:.07em}
.jpos-movement-compact .jpos-mv-compare-card h3{margin:7px 0 4px;color:#233f59;font-size:17px;font-weight:750;line-height:1.2}
.jpos-movement-compact .jpos-mv-compare-caption{display:block;min-height:20px;color:#718298;font-size:12px;line-height:1.35}
.jpos-movement-compact .jpos-mv-compare-card strong{display:block;margin:12px 0 6px;color:#142e49;font-size:clamp(21px,2.2vw,30px);font-weight:800;line-height:1.18;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.jpos-movement-compact .jpos-mv-compare-card small{display:block;color:#708398;font-size:12px;line-height:1.4}
.jpos-movement-compact .jpos-mv-compare-delta{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:10px 0 15px;padding:10px 13px;border:1px solid #e1e8ef;border-radius:10px;background:#f8fafc}
.jpos-movement-compact .jpos-mv-compare-delta>div{flex:0 0 auto}
.jpos-movement-compact .jpos-mv-compare-delta small{display:block;color:#718398;font-size:10px;font-weight:800;letter-spacing:.06em}
.jpos-movement-compact .jpos-mv-compare-delta strong{display:block;margin-top:3px;color:#203d56;font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}
.jpos-movement-compact .jpos-mv-compare-delta>span{max-width:460px;color:#6b7e91;font-size:12px;line-height:1.45;text-align:right}
.jpos-movement-compact .jpos-mv-compare-table-wrap{border:1px solid #e1e8ef;border-radius:11px;overflow:hidden}
.jpos-movement-compact .jpos-mv-compare-table-title{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 13px;background:#f7f9fc}
.jpos-movement-compact .jpos-mv-compare-table-title>strong{color:#274059;font-size:14px}
.jpos-movement-compact .jpos-mv-compare-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}
.jpos-movement-compact .jpos-mv-compare-table th{padding:11px 12px;border-bottom:1px solid #e1e8ef;background:#f8fafc;color:#60758b;text-align:right;font-size:12px;font-weight:800;line-height:1.35}
.jpos-movement-compact .jpos-mv-compare-table th:first-child{text-align:left;width:39%}
.jpos-movement-compact .jpos-mv-compare-table td{padding:11px 12px;border-bottom:1px solid #ebeff3;color:#294258;line-height:1.4;vertical-align:middle;overflow-wrap:anywhere}
.jpos-movement-compact .jpos-mv-compare-table td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.jpos-movement-compact .jpos-mv-compare-table td strong{font-weight:800}
.jpos-movement-compact .jpos-mv-compare-table td small{display:block;margin-top:3px;color:#7f8fa0;font-size:11px}
.jpos-movement-compact .jpos-mv-compare-table tr.is-emphasis td{background:#f4f9fd;font-weight:750}
.jpos-movement-compact .jpos-mv-compare-table tr.is-total td{background:#f7faf8;font-weight:800}
.jpos-movement-compact .jpos-mv-compare-footnote{margin:0;padding:11px 13px;background:#fff;color:#697e92;font-size:12px;line-height:1.5}
.jpos-movement-compact .jpos-mv-cashin-split{margin-top:12px}
.jpos-movement-compact .jpos-mv-details-section{display:block;margin:0 0 12px;border:1px solid var(--mvc-border,#dce5ee);border-radius:12px;background:#fff;overflow:hidden}
.jpos-movement-compact .jpos-mv-details-section>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 17px;list-style:none;cursor:pointer;color:#2b455f;font-size:14px;font-weight:750}
.jpos-movement-compact .jpos-mv-details-section>summary::-webkit-details-marker{display:none}
.jpos-movement-compact .jpos-mv-details-section>summary>span:first-child{display:flex;align-items:center;gap:9px}
.jpos-movement-compact .jpos-mv-details-section>summary>span:last-child{color:#7e8fa0;font-size:12px;font-weight:500;text-align:right}
.jpos-movement-compact .jpos-mv-details-section[open]>summary{border-bottom:1px solid #e1e8ef}
.jpos-movement-compact .jpos-mv-details-section[open]>summary>span:last-child i{display:inline-block;transform:rotate(180deg)}
.jpos-movement-compact .jpos-mv-details-section .jpos-mv-allocation-section{border:0;box-shadow:none;border-radius:0;background:#fff;margin:0;padding:15px}
.jpos-mv-help-content{font-size:14px;line-height:1.7;color:#263d53}
@media(max-width:980px){.jpos-movement-compact .jpos-mv-compare-delta{align-items:flex-start;flex-direction:column}.jpos-movement-compact .jpos-mv-compare-delta>span{text-align:left;max-width:none}}
@media(max-width:700px){
 .jpos-movement-compact .jpos-mv-compare-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .jpos-movement-compact .jpos-mv-compare-card{padding:12px 10px;border-radius:11px}
 .jpos-movement-compact .jpos-mv-compare-card h3{font-size:15px}
 .jpos-movement-compact .jpos-mv-compare-tag{font-size:10px;letter-spacing:.02em}
 .jpos-movement-compact .jpos-mv-compare-caption,.jpos-movement-compact .jpos-mv-compare-card small{font-size:13px}
 .jpos-movement-compact .jpos-mv-compare-card strong{font-size:clamp(17px,4.6vw,24px)}
 .jpos-movement-compact .jpos-mv-compare-delta small,.jpos-movement-compact .jpos-mv-compare-delta>span{font-size:14px}
 .jpos-movement-compact .jpos-mv-compare-delta strong{font-size:18px}
 .jpos-movement-compact .jpos-mv-compare-table{font-size:14px}
 .jpos-movement-compact .jpos-mv-compare-table th{padding:9px 7px;font-size:12px}
 .jpos-movement-compact .jpos-mv-compare-table th:first-child{width:40%}
 .jpos-movement-compact .jpos-mv-compare-table td{padding:10px 7px;font-size:14px}
 .jpos-movement-compact .jpos-mv-compare-table td small{font-size:12px}
 .jpos-movement-compact .jpos-mv-compare-table-title>strong{font-size:16px}
 .jpos-movement-compact .jpos-mv-compare-footnote{font-size:14px}
 .jpos-movement-compact .jpos-mv-info-btn{min-height:32px;font-size:14px}
 .jpos-movement-compact .jpos-mv-details-section>summary{padding:13px 12px;font-size:16px;align-items:flex-start}
 .jpos-movement-compact .jpos-mv-details-section>summary>span:last-child{font-size:13px}
 .jpos-mv-help-content{font-size:16px}
}

/* 15 Oktober 2026 — read-only drill-down Kas Studio / Rekening Utama only. */
.swal2-popup:has(.jpos-mv-fund-account){max-width:calc(100vw - 24px)!important}
.jpos-mv-fund-account{font-size:14px}
.jpos-mv-fund-stat{font:inherit;cursor:pointer;text-align:left;position:relative;transition:border-color .12s,background .12s,box-shadow .12s;min-width:0}
.jpos-mv-fund-stat:hover,.jpos-mv-fund-stat:focus-visible{border-color:#68a9c9;box-shadow:0 0 0 2px rgba(28,125,170,.1);outline:0}
.jpos-mv-fund-stat.is-selected{border-color:#2f8caf;background:#eff8fc;box-shadow:inset 0 0 0 1px #2f8caf}
.jpos-mv-fund-stat em{display:block;font-size:11px;font-style:normal;font-weight:700;color:#287aa5;margin-top:8px}
.jpos-mv-fund-stat em i{margin-right:3px}
.jpos-mv-fund-detail{margin:14px 0 16px;border:1px solid #dae5ed;border-radius:12px;background:#fbfdff;padding:13px;min-width:0}
.jpos-mv-fund-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.jpos-mv-fund-toolbar>div:first-child>b{display:block;color:#203b53;font-size:15px}
.jpos-mv-fund-toolbar>div:first-child>span{display:block;color:#748699;font-size:12px;margin-top:2px}
.jpos-mv-fund-month{display:flex;align-items:center;gap:2px;border:1px solid #d8e2eb;background:#fff;border-radius:9px;overflow:hidden;min-height:38px;flex-shrink:0}
.jpos-mv-fund-month>strong{font-size:13px;color:#203b53;min-width:126px;text-align:center;padding:0 5px}
.jpos-mv-fund-month>button{height:38px;width:38px;display:grid;place-items:center;background:#fff;border:0;color:#355771;cursor:pointer}
.jpos-mv-fund-month>button:hover{background:#eff6fc}
.jpos-mv-fund-panel-title{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:10px 0}
.jpos-mv-fund-panel-title strong{font-size:14px;color:#183650}
.jpos-mv-fund-panel-title small{font-size:11px;color:#7d8d9e}
.jpos-mv-fund-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.jpos-mv-fund-metric{min-width:0;border:1px solid #e1e8ee;background:white;border-radius:9px;padding:10px}
.jpos-mv-fund-metric>span{display:block;color:#6a7f93;font-size:10px;font-weight:700}
.jpos-mv-fund-metric>strong{display:block;margin-top:5px;color:#193b55;font-size:16px;overflow-wrap:anywhere}
.jpos-mv-fund-metric>small{display:block;font-size:11px;color:#8a9bad}
.jpos-mv-fund-note{margin:10px 0;padding:10px 11px;border-radius:8px;background:#eef6fb;border:1px solid #dbeaf5;font-size:12px;line-height:1.55;color:#496276}
.jpos-mv-fund-count{font-size:11px;font-weight:700;color:#7c8d9f;margin-bottom:6px}
.jpos-mv-fund-results{margin-top:12px}
.jpos-mv-fund-entry{border:1px solid #e0e9f0;background:#fff;border-radius:10px;padding:11px;margin-top:7px}
.jpos-mv-fund-entry-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.jpos-mv-fund-entry-head>div{min-width:0}
.jpos-mv-fund-entry-head small{display:block;color:#7790a1;font-size:11px}
.jpos-mv-fund-entry-head strong{display:block;margin-top:2px;color:#1c3e56;font-size:13px;overflow-wrap:anywhere}
.jpos-mv-fund-entry-head span{display:block;margin-top:3px;color:#617588;font-size:11px;overflow-wrap:anywhere}
.jpos-mv-fund-entry-head .btn{flex-shrink:0;white-space:nowrap;font-size:12px}
.jpos-mv-fund-entry-description{font-size:12px;color:#75889a;margin-top:6px;overflow-wrap:anywhere}
.jpos-mv-fund-entry-metrics{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.jpos-mv-fund-entry-metrics>div{flex:1 1 135px;min-width:0;padding:7px 9px;border-radius:7px;background:#f5f8fb}
.jpos-mv-fund-entry-metrics small{display:block;font-size:10px;color:#71869b}
.jpos-mv-fund-entry-metrics strong{display:block;font-size:13px;color:#193a55;margin-top:3px;overflow-wrap:anywhere}
.jpos-mv-fund-empty,.jpos-mv-fund-error{padding:25px 10px;text-align:center;color:#72879a;font-size:13px}
.jpos-mv-fund-error{background:#fff6f2;border-radius:8px;color:#9a4836}
.jpos-mv-fund-pagination{display:flex;justify-content:space-between;gap:10px;margin-top:12px}
.jpos-mv-fund-pagination>.btn{font-size:12px;min-height:38px}
.jpos-mv-fund-pagination>.btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:700px){
  .swal2-popup:has(.jpos-mv-fund-account){width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;padding:12px 8px!important}
  .swal2-popup:has(.jpos-mv-fund-account) .swal2-title{font-size:20px!important}
  .swal2-popup:has(.jpos-mv-fund-account) .swal2-html-container{padding:0 2px!important;margin:8px 0!important;max-height:calc(100dvh - 160px)!important}
  .jpos-mv-fund-account{font-size:16px}
  .jpos-mv-fund-account .jpos-mv-modal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .jpos-mv-fund-account .jpos-mv-modal-stat{padding:8px 6px}
  .jpos-mv-fund-account .jpos-mv-modal-stat small{font-size:10px}
  .jpos-mv-fund-account .jpos-mv-modal-stat strong{font-size:13px;overflow-wrap:anywhere}
  .jpos-mv-fund-account .jpos-mv-modal-stat span{font-size:10px}
  .jpos-mv-fund-stat em{font-size:10px}
  .jpos-mv-fund-detail{padding:9px}
  .jpos-mv-fund-toolbar{align-items:stretch;flex-direction:column}
  .jpos-mv-fund-toolbar>div:first-child>b{font-size:16px}
  .jpos-mv-fund-toolbar>div:first-child>span{font-size:13px}
  .jpos-mv-fund-month{align-self:stretch;justify-content:space-between}
  .jpos-mv-fund-month>strong{font-size:14px}
  .jpos-mv-fund-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .jpos-mv-fund-metric{padding:8px}
  .jpos-mv-fund-metric>span{font-size:12px}
  .jpos-mv-fund-metric>strong{font-size:16px}
  .jpos-mv-fund-panel-title{flex-direction:column;gap:3px}
  .jpos-mv-fund-panel-title strong{font-size:15px}
  .jpos-mv-fund-panel-title small{font-size:12px}
  .jpos-mv-fund-note{font-size:14px}
  .jpos-mv-fund-entry-head{align-items:stretch;flex-direction:column}
  .jpos-mv-fund-entry-head small,.jpos-mv-fund-entry-head span{font-size:13px}
  .jpos-mv-fund-entry-head strong{font-size:16px}
  .jpos-mv-fund-entry-head .btn{align-self:flex-start;min-height:36px;font-size:13px}
  .jpos-mv-fund-entry-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .jpos-mv-fund-entry-metrics>div{min-width:0}
  .jpos-mv-fund-entry-metrics small{font-size:12px}
  .jpos-mv-fund-entry-metrics strong{font-size:14px}
  .jpos-mv-fund-pagination>.btn{font-size:13px}
}
@media(max-width:360px){.jpos-mv-fund-account .jpos-mv-modal-stat strong{font-size:12px}.jpos-mv-fund-entry-metrics{grid-template-columns:1fr}}

/* 15 Oktober 2026 — tabel ringkas satu baris per mutasi/kewajiban di Detail Money Account.
   Scoped: tidak mengubah daftar transaksi, kartu saldo, atau tabel modul lain. */
.jpos-mv-fund-account .jpos-mv-fund-table-scroller{width:100%;max-width:100%;max-height:min(58vh,560px);overflow:auto;overscroll-behavior:contain;border:1px solid #d9e4ec;border-radius:8px;background:#fff;scrollbar-gutter:stable;}
.jpos-mv-fund-account .jpos-mv-fund-table{width:100%;min-width:1110px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px;line-height:1.3;color:#203b52;}
.jpos-mv-fund-account .jpos-mv-fund-table th,.jpos-mv-fund-account .jpos-mv-fund-table td{padding:7px 8px;border-bottom:1px solid #e9edf2;white-space:nowrap;vertical-align:middle;text-align:left;}
.jpos-mv-fund-account .jpos-mv-fund-table th{position:sticky;top:0;z-index:2;background:#eaf1f7;color:#405b71;font-size:11px;font-weight:750;letter-spacing:.01em;border-bottom:1px solid #cddde9;}
.jpos-mv-fund-account .jpos-mv-fund-table th:first-child,.jpos-mv-fund-account .jpos-mv-fund-table td:first-child{position:sticky;left:0;z-index:1;background:#fff;}
.jpos-mv-fund-account .jpos-mv-fund-table th:first-child{z-index:3;background:#eaf1f7;}
.jpos-mv-fund-account .jpos-mv-fund-table tbody tr:nth-child(even) td{background:#f7fafc;}
.jpos-mv-fund-account .jpos-mv-fund-table tbody tr:nth-child(even) td:first-child{background:#f7fafc;}
.jpos-mv-fund-account .jpos-mv-fund-table tbody tr:hover td{background:#eef7fd;}
.jpos-mv-fund-account .jpos-mv-fund-table tbody tr:hover td:first-child{background:#eef7fd;}
.jpos-mv-fund-account .jpos-mv-fund-table th:nth-child(1){width:134px;}
.jpos-mv-fund-account .jpos-mv-fund-table th:nth-child(2){width:166px;}
.jpos-mv-fund-account .jpos-mv-fund-table th:nth-child(3){width:190px;}
.jpos-mv-fund-account .jpos-mv-fund-table th:nth-child(4){width:122px;}
.jpos-mv-fund-account .jpos-mv-fund-table th:nth-child(5),.jpos-mv-fund-account .jpos-mv-fund-table th:nth-child(6),.jpos-mv-fund-account .jpos-mv-fund-table th:nth-child(7),.jpos-mv-fund-account .jpos-mv-fund-table th:nth-child(8){width:112px;}
.jpos-mv-fund-account .jpos-mv-fund-table th:nth-child(9){width:112px;}
.jpos-mv-fund-account .jpos-mv-fund-table .jpos-mv-fund-number,.jpos-mv-fund-account .jpos-mv-fund-table .jpos-mv-fund-col-number{text-align:right;font-variant-numeric:tabular-nums;}
.jpos-mv-fund-account .jpos-mv-fund-table .jpos-mv-fund-truncate{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}
.jpos-mv-fund-account .jpos-mv-fund-table .jpos-mv-fund-ref{font-weight:650;color:#304a63;}
.jpos-mv-fund-account .jpos-mv-fund-table .jpos-mv-fund-name{font-weight:650;}
.jpos-mv-fund-account .jpos-mv-fund-table .jpos-mv-fund-in{color:#18704a;}
.jpos-mv-fund-account .jpos-mv-fund-table .jpos-mv-fund-out{color:#a44d3f;}
.jpos-mv-fund-account .jpos-mv-fund-table .jpos-mv-fund-reserved{color:#1e638a;font-weight:750;}
.jpos-mv-fund-account .jpos-mv-fund-table .jpos-mv-fund-dash{color:#a8b2bd;font-weight:400;}
.jpos-mv-fund-account .jpos-mv-fund-table .jpos-mv-fund-action{text-align:center;}
.jpos-mv-fund-account .jpos-mv-fund-table .jpos-mv-fund-action .btn{padding:4px 7px;min-height:27px;white-space:nowrap;font-size:11px;}
.jpos-mv-fund-account .jpos-mv-fund-table-empty{text-align:center!important;padding:22px 10px!important;color:#718498;}
.jpos-mv-fund-account .jpos-mv-fund-scroll-hint{display:none;font-size:12px;margin:1px 0 6px;color:#648098;}
@media(max-width:1190px){.jpos-mv-fund-account .jpos-mv-fund-scroll-hint{display:block;}}
@media(max-width:700px){
  .jpos-mv-fund-account .jpos-mv-fund-table{min-width:1200px;font-size:16px;}
  .jpos-mv-fund-account .jpos-mv-fund-table th{font-size:14px;}
  .jpos-mv-fund-account .jpos-mv-fund-table td,.jpos-mv-fund-account .jpos-mv-fund-table th{padding:10px 8px;}
  .jpos-mv-fund-account .jpos-mv-fund-table .jpos-mv-fund-action .btn{font-size:14px;min-height:36px;}
  .jpos-mv-fund-account .jpos-mv-fund-table-scroller{max-height:50vh;}
  .jpos-mv-fund-account .jpos-mv-fund-table th:first-child{width:138px;}
  .jpos-mv-fund-account .jpos-mv-fund-scroll-hint{display:block;font-size:14px;}
}

/* 15 Oktober 2026: modal baca transaksi dari rincian Money Account; tanpa aksi transaksi. */
.jpos-mv-tx-overlay{position:fixed;inset:0;z-index:4000;background:rgba(12,30,49,.68);display:flex;align-items:center;justify-content:center;padding:12px;text-align:left;box-sizing:border-box}
.jpos-mv-tx-window{width:min(1180px,100%);height:min(88vh,950px);max-height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #d2dfeb;border-radius:14px;box-shadow:0 28px 75px rgba(7,25,46,.25);color:#17324a}
.jpos-mv-tx-top{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #dce6ee;background:#f7fafc;padding:13px 18px;flex:none}
.jpos-mv-tx-top>div{display:flex;flex-direction:column;gap:2px}.jpos-mv-tx-top small{font-size:10px;color:#718da5;letter-spacing:.055em;font-weight:750}.jpos-mv-tx-top strong{font-size:18px;color:#17324a}
.jpos-mv-tx-close{display:flex;align-items:center;gap:6px;padding:8px 12px;font-size:13px;font-weight:650;border:1px solid #d1dde7;background:#fff;color:#2f4d65;border-radius:8px;cursor:pointer}
.jpos-mv-tx-close:hover{background:#e9f2f9}.jpos-mv-tx-close:focus-visible,.jpos-mv-tx-footer button:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}
.jpos-mv-tx-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 17px 20px;font-size:13px}
.jpos-mv-tx-headerline{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-weight:700;margin-bottom:10px}.jpos-mv-tx-headerline>span:first-child{overflow-wrap:anywhere}.jpos-mv-tx-state{background:#e9f4ff;color:#226089;border:1px solid #d4e7f7;border-radius:5px;padding:3px 9px;font-size:12px}
.jpos-mv-tx-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}.jpos-mv-tx-sum{display:flex;flex-direction:column;gap:5px;background:#f2f6f9;padding:10px;border:1px solid #e0e9ef;border-radius:7px;min-width:0}.jpos-mv-tx-sum span{font-size:11px;color:#637e94;font-weight:600}.jpos-mv-tx-sum strong{font-size:17px;color:#132d47;font-variant-numeric:tabular-nums}
.jpos-mv-tx-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid #e0e9f0;border-radius:8px;overflow:hidden;margin:0 0 15px}.jpos-mv-tx-field{padding:8px 10px;border-right:1px solid #e6edf3;border-bottom:1px solid #e6edf3;display:flex;flex-direction:column;gap:3px;min-width:0;background:#fff}.jpos-mv-tx-field span{color:#71879b;font-size:11px}.jpos-mv-tx-field strong{color:#263d55;font-size:12px;overflow-wrap:anywhere}
.jpos-mv-tx-content h4{display:flex;align-items:center;justify-content:space-between;margin:17px 0 8px;font-size:14px;font-weight:750;color:#193a57}.jpos-mv-tx-content h4 span{font-weight:500;font-size:11px;color:#728b9f}
.jpos-mv-tx-table-wrap{width:100%;overflow:auto;max-height:320px;border:1px solid #d8e3eb;border-radius:7px;scrollbar-gutter:stable;overscroll-behavior:contain}
.jpos-mv-tx-table{border-collapse:separate;border-spacing:0;min-width:850px;width:100%;font-size:12px;line-height:1.35}.jpos-mv-tx-table th,.jpos-mv-tx-table td{padding:7px 9px;border-bottom:1px solid #edf1f5;vertical-align:middle;text-align:left}.jpos-mv-tx-table th{position:sticky;top:0;z-index:2;background:#eaf1f7;color:#49647b;font-weight:700;white-space:nowrap}.jpos-mv-tx-table td.is-number,.jpos-mv-tx-table th.is-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.jpos-mv-tx-table tr:nth-child(even) td{background:#f8fafc}.jpos-mv-tx-table tr:hover td{background:#eef7fc}.jpos-mv-tx-primary{min-width:135px}.jpos-mv-tx-table td small{display:block;color:#768da2;font-weight:400;margin-top:3px}.jpos-mv-tx-table td strong{color:#233d54}.jpos-mv-tx-empty{text-align:center!important;color:#7890a4;padding:18px!important}
.jpos-mv-tx-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#e2e9ef;border:1px solid #e2e9ef;margin:8px 0 12px;border-radius:7px;overflow:hidden}.jpos-mv-tx-totals .jpos-mv-tx-field{border:0}
.jpos-mv-tx-note{background:#f7fafc;border:1px solid #dfe9f0;border-radius:7px;padding:10px 12px}.jpos-mv-tx-note strong{font-size:12px}.jpos-mv-tx-note p{font-size:12px;margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.jpos-mv-tx-hint{font-size:11px;line-height:1.5;color:#647f94;margin:8px 0 14px}
.jpos-mv-tx-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;border-top:1px solid #e0e9f0;background:#f7fafc;flex:none;font-size:12px;color:#71879b}.jpos-mv-tx-footer .btn{font-size:12px;padding:7px 12px}.jpos-mv-tx-error{border:1px solid #f3d0d0;padding:15px;border-radius:8px;color:#8c3434;background:#fff6f6}
@media(max-width:800px){.jpos-mv-tx-summary,.jpos-mv-tx-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-mv-tx-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.jpos-mv-tx-overlay{padding:5px}.jpos-mv-tx-window{height:calc(100dvh - 10px);max-height:calc(100dvh - 10px);border-radius:10px}.jpos-mv-tx-top{padding:11px 12px}.jpos-mv-tx-top strong{font-size:17px}.jpos-mv-tx-top small{font-size:10px}.jpos-mv-tx-content{padding:10px 10px 17px;font-size:16px}.jpos-mv-tx-content h4{font-size:16px}.jpos-mv-tx-sum strong{font-size:17px}.jpos-mv-tx-sum span{font-size:12px}.jpos-mv-tx-field span{font-size:12px}.jpos-mv-tx-field strong{font-size:14px}.jpos-mv-tx-table{font-size:15px;min-width:940px}.jpos-mv-tx-table th,.jpos-mv-tx-table td{padding:10px 9px}.jpos-mv-tx-close{font-size:14px}.jpos-mv-tx-footer{padding:9px 12px}.jpos-mv-tx-footer span{font-size:11px}.jpos-mv-tx-hint{font-size:13px}}

/* Finance V2: read-only reconciliation explanation in existing Cash/Bank account modal. */
.jpos-mv-fund-account .jpos-mv-reconcile{border:1px solid #d2e1ed;border-radius:9px;margin:10px 0;background:#fff;font-size:13px;color:#243c52;overflow:hidden}
.jpos-mv-fund-account .jpos-mv-reconcile>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;padding:12px 14px;background:#f4f8fc}
.jpos-mv-fund-account .jpos-mv-reconcile>summary::-webkit-details-marker{display:none}
.jpos-mv-fund-account .jpos-mv-reconcile>summary span{display:grid;gap:3px}
.jpos-mv-fund-account .jpos-mv-reconcile>summary small{font-size:12px;color:#61798b;font-weight:400}
.jpos-mv-fund-account .jpos-mv-reconcile[open]>summary i{transform:rotate(180deg)}
.jpos-mv-fund-account .jpos-mv-reconcile-body{padding:10px 13px 12px}
.jpos-mv-fund-account .jpos-mv-reconcile-table-wrap{overflow-x:auto;border:1px solid #e2e9ef;border-radius:7px}
.jpos-mv-fund-account .jpos-mv-reconcile-table{width:100%;min-width:530px;border-collapse:collapse;font-size:12px}
.jpos-mv-fund-account .jpos-mv-reconcile-table th{background:#eaf2f8;text-align:left;color:#466078;font-size:12px}
.jpos-mv-fund-account .jpos-mv-reconcile-table th,.jpos-mv-fund-account .jpos-mv-reconcile-table td{padding:7px 9px;border-bottom:1px solid #e7eef3;vertical-align:middle}
.jpos-mv-fund-account .jpos-mv-reconcile-table td small{display:block;font-size:11px;font-weight:400;color:#718498;margin-top:2px}
.jpos-mv-fund-account .jpos-mv-reconcile-table .jpos-mv-reconcile-num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.jpos-mv-fund-account .jpos-mv-reconcile-table .is-negative{color:#ad473e}
.jpos-mv-fund-account .jpos-mv-reconcile-total td{background:#eff6fb;font-weight:700;border-bottom:0}
.jpos-mv-fund-account .jpos-mv-reconcile-body p{margin:9px 0 0;font-size:12px;line-height:1.6;color:#49647a}
.jpos-mv-fund-account .jpos-mv-reconcile-body .jpos-mv-reconcile-warning{font-weight:700;color:#ad473e}
@media(max-width:768px){.jpos-mv-fund-account .jpos-mv-reconcile{font-size:16px}.jpos-mv-fund-account .jpos-mv-reconcile>summary small,.jpos-mv-fund-account .jpos-mv-reconcile-body p{font-size:14px}.jpos-mv-fund-account .jpos-mv-reconcile-table{font-size:14px}.jpos-mv-fund-account .jpos-mv-reconcile-table th{font-size:14px}}

/* Finance > Pindah Dana > Money Account: receipt transparency (read-only) */
.jpos-mv-fund-account .jpos-mv-reconcile-v2{border:1px solid #d7e5f1;border-radius:10px;margin:12px 0;background:#fff;overflow:hidden;color:#1e344c;font-size:13px}
.jpos-mv-fund-account .jpos-mv-reconcile-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 15px;background:#edf6ff;border-bottom:1px solid #dbe9f6}
.jpos-mv-fund-account .jpos-mv-reconcile-head strong{display:block;font-size:14px}
.jpos-mv-fund-account .jpos-mv-reconcile-head small{display:block;line-height:1.4;margin-top:3px;color:#57708b;font-size:12px}
.jpos-mv-fund-account .jpos-mv-reconcile-head-amount{font-size:22px;font-weight:800;letter-spacing:-.02em;color:#146447;white-space:nowrap;font-variant-numeric:tabular-nums}
.jpos-mv-fund-account .jpos-mv-reconcile-v2 .jpos-mv-reconcile-table{min-width:460px;width:100%}
.jpos-mv-fund-account .jpos-mv-reconcile-v2 .jpos-mv-reconcile-table .jpos-mv-net-bold td{background:#e9f6ef;color:#185f40;font-weight:700}
.jpos-mv-fund-account .jpos-mv-reconcile-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:11px 0}
.jpos-mv-fund-account .jpos-mv-reconcile-columns>div{border:1px solid #dce6ef;border-radius:8px;padding:9px 11px;background:#f8fafc;min-width:0}
.jpos-mv-fund-account .jpos-mv-reconcile-columns span,.jpos-mv-fund-account .jpos-mv-reconcile-columns small{display:block;color:#60758a;font-size:11px;line-height:1.35}
.jpos-mv-fund-account .jpos-mv-reconcile-columns strong{display:block;font-size:15px;margin:4px 0;color:#223c53;font-variant-numeric:tabular-nums}
.jpos-mv-fund-account .jpos-mv-reconcile-gap{border:1px solid #dde6ef;border-radius:8px;background:#fff;overflow:hidden;margin-top:11px}
.jpos-mv-fund-account .jpos-mv-reconcile-gap>summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:11px 12px;background:#f1f5f9;list-style:none}
.jpos-mv-fund-account .jpos-mv-reconcile-gap>summary::-webkit-details-marker,.jpos-mv-fund-account .jpos-mv-reconcile-source>summary::-webkit-details-marker{display:none}
.jpos-mv-fund-account .jpos-mv-reconcile-gap>p{margin:9px 12px!important}
.jpos-mv-fund-account .jpos-mv-reconcile-source{border-top:1px solid #e2eaf2}
.jpos-mv-fund-account .jpos-mv-reconcile-source>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;cursor:pointer;list-style:none}
.jpos-mv-fund-account .jpos-mv-reconcile-source>summary:hover{background:#f6f9fd}
.jpos-mv-fund-account .jpos-mv-reconcile-source>summary strong,.jpos-mv-fund-account .jpos-mv-reconcile-source>summary small{display:block}
.jpos-mv-fund-account .jpos-mv-reconcile-source>summary small{font-size:11px;color:#708396;margin-top:2px;font-weight:400}
.jpos-mv-fund-account .jpos-mv-reconcile-source>summary>b{white-space:nowrap;font-variant-numeric:tabular-nums}
.jpos-mv-fund-account .jpos-mv-reconcile-source-table{width:100%;min-width:740px;border-collapse:collapse;font-size:12px}
.jpos-mv-fund-account .jpos-mv-reconcile-source-table th{background:#ebf2f8;color:#466079;text-align:left}
.jpos-mv-fund-account .jpos-mv-reconcile-source-table th,.jpos-mv-fund-account .jpos-mv-reconcile-source-table td{padding:7px 9px;border-bottom:1px solid #e7eef5;vertical-align:top}
.jpos-mv-fund-account .jpos-mv-reconcile-source-table tbody tr:nth-child(even){background:#f8fafc}
.jpos-mv-fund-account .jpos-mv-reconcile-source-table td small{display:block;color:#698196;font-size:11px;margin-top:2px}
.jpos-mv-fund-account .jpos-mv-reconcile-source-table .jpos-mv-reconcile-num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.jpos-mv-fund-account .jpos-mv-reconcile-id{max-width:220px;word-break:break-word}
.jpos-mv-fund-account .jpos-mv-reconcile-source-table .is-negative{color:#b13e36}
.jpos-mv-fund-account .jpos-mv-reconcile-legacy{margin-top:6px;max-width:360px;border:1px solid #dce7f0;border-radius:6px}
.jpos-mv-fund-account .jpos-mv-reconcile-legacy>summary{cursor:pointer;color:#126c91;padding:5px 7px;font-size:11px;font-weight:600}
.jpos-mv-fund-account .jpos-mv-reconcile-legacy>div{padding:7px;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.jpos-mv-fund-account .jpos-mv-reconcile-legacy>div>div{min-width:0}
.jpos-mv-fund-account .jpos-mv-reconcile-legacy span,.jpos-mv-fund-account .jpos-mv-reconcile-legacy strong{display:block;font-size:11px;overflow-wrap:anywhere}
.jpos-mv-fund-account .jpos-mv-reconcile-legacy span{color:#71859a}
.jpos-mv-fund-account .jpos-mv-reconcile-prev{margin-top:10px!important}
@media(max-width:768px){
 .jpos-mv-fund-account .jpos-mv-reconcile-v2{font-size:16px}
 .jpos-mv-fund-account .jpos-mv-reconcile-head{align-items:flex-start;flex-direction:column;gap:7px}
 .jpos-mv-fund-account .jpos-mv-reconcile-head strong{font-size:16px}
 .jpos-mv-fund-account .jpos-mv-reconcile-head small{font-size:13px}
 .jpos-mv-fund-account .jpos-mv-reconcile-head-amount{font-size:24px}
 .jpos-mv-fund-account .jpos-mv-reconcile-columns{grid-template-columns:1fr}
 .jpos-mv-fund-account .jpos-mv-reconcile-columns strong{font-size:18px}
 .jpos-mv-fund-account .jpos-mv-reconcile-source-table{font-size:14px}
 .jpos-mv-fund-account .jpos-mv-reconcile-source-table td small{font-size:12px}
}

.jpos-mv-fund-account .jpos-mv-reconcile-v2{font-size:14px}
.jpos-mv-fund-account .jpos-mv-reconcile-columns{grid-template-columns:repeat(4,minmax(0,1fr))}
.jpos-mv-fund-account .jpos-mv-reconcile-source-table{font-size:14px}
@media(max-width:900px){.jpos-mv-fund-account .jpos-mv-reconcile-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.jpos-mv-fund-account .jpos-mv-reconcile-columns{grid-template-columns:1fr}.jpos-mv-fund-account .jpos-mv-reconcile-v2{font-size:16px}.jpos-mv-fund-account .jpos-mv-reconcile-source-table{font-size:16px}}

/* JPOS Finance | Pindah Dana: account table + transfer action (16 Oktober 2026).
   Scoped: no changes to cash book, operations, or other finance pages. */
.jpos-mv-ledger-only{font-size:14px}
.jpos-mv-ledger-only .jpos-mv-ledger-head{align-items:center}
.jpos-mv-ledger-only .jpos-pagehead-copy p{max-width:760px}
.jpos-mv-ledger-only .jpos-mv-ledger-section{padding:16px!important}
.jpos-mv-ledger-only .jpos-mv-ledger-top{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:13px}
.jpos-mv-ledger-only .jpos-mv-ledger-top h2{font-size:17px;font-weight:700;margin:0 0 5px;color:#142f4c}
.jpos-mv-ledger-only .jpos-mv-ledger-top p{font-size:13px;margin:0;color:#637891;line-height:1.5}
.jpos-mv-ledger-only .jpos-mv-ledger-total{text-align:right;min-width:160px;white-space:nowrap}
.jpos-mv-ledger-only .jpos-mv-ledger-total span{font-size:11px;font-weight:650;letter-spacing:.03em;display:block;color:#7387a0;text-transform:uppercase}
.jpos-mv-ledger-only .jpos-mv-ledger-total strong{font-size:20px;color:#112b48}
.jpos-mv-ledger-only .jpos-mv-ledger-scroll{border:1px solid #dbe5ef;border-radius:10px;overflow:auto;max-width:100%}
.jpos-mv-ledger-only .jpos-mv-ledger-table{min-width:760px;width:100%;border-collapse:separate;border-spacing:0;font-size:14px;font-variant-numeric:tabular-nums}
.jpos-mv-ledger-table th{background:#ecf2f7;color:#38526e;text-align:left;font-weight:700;padding:12px 11px;border-bottom:1px solid #d6e3ed;white-space:nowrap}
.jpos-mv-ledger-table td{padding:10px 11px;border-bottom:1px solid #e5ecf2;white-space:nowrap;vertical-align:middle;color:#263e58}
.jpos-mv-ledger-table tbody tr:nth-child(even){background:#f7f9fc}
.jpos-mv-ledger-table tbody tr:hover{background:#edf7fc}
.jpos-mv-ledger-table .is-number{text-align:right;white-space:nowrap}
.jpos-mv-ledger-table .is-action{text-align:right}
.jpos-mv-ledger-table .is-emphasis{font-weight:750;color:#173c61}
.jpos-mv-ledger-table .is-index{color:#758ba1;width:42px}
.jpos-mv-ledger-table tfoot td{font-weight:750;background:#edf5fa;color:#1a4266;border-bottom:0}
.jpos-mv-ledger-identity{display:flex;gap:9px;align-items:center;min-width:180px}
.jpos-mv-ledger-identity .jpos-mv-account-icon{height:32px;width:32px;min-width:32px;display:grid;place-items:center}
.jpos-mv-ledger-identity strong{display:block;font-size:14px}
.jpos-mv-ledger-identity small{display:block;font-size:11px;color:#8294a7;margin-top:3px}
.jpos-mv-ledger-only .jpos-mv-ledger-foot{font-size:12px;color:#667d96;margin-top:12px;display:flex;align-items:center;gap:7px;line-height:1.45}
.jpos-mv-statement{text-align:left;font-size:14px;color:#223c57}
.jpos-mv-statement-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:13px}
.jpos-mv-statement-title small{font-size:11px;font-weight:700;color:#7187a0;letter-spacing:.04em}
.jpos-mv-statement-title h3{font-size:17px;margin:5px 0 0;font-weight:750;color:#173a5a}
.jpos-mv-statement-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0}
.jpos-mv-statement-kpis>div{padding:12px;border:1px solid #dce7f0;border-radius:9px;background:#f6f9fc;min-width:0}
.jpos-mv-statement-kpis small{display:block;color:#687f97;font-size:11px;font-weight:650;margin-bottom:5px}
.jpos-mv-statement-kpis strong{display:block;color:#142e4c;font-size:18px;overflow-wrap:anywhere}
.jpos-mv-statement-kpis .is-in,.jpos-mv-statement-table .is-in{color:#138457}
.jpos-mv-statement-kpis .is-out,.jpos-mv-statement-table .is-out{color:#b64743}
.jpos-mv-statement-note{border:1px solid #d8e9f7;border-radius:8px;padding:9px 11px;background:#f1f8fd;font-size:12px;color:#4e6a84;line-height:1.6;margin-bottom:9px}
.jpos-mv-statement-caption{font-size:12px;color:#6f87a0;margin:8px 0}
.jpos-mv-statement-scroll{border:1px solid #dce6ef;border-radius:9px;max-height:44vh;overflow:auto;max-width:100%}
.jpos-mv-statement-table{border-collapse:separate;border-spacing:0;width:100%;min-width:930px;font-variant-numeric:tabular-nums;font-size:13px}
.jpos-mv-statement-table thead th{position:sticky;top:0;z-index:2;background:#e9f1f7;color:#34536f;padding:9px 9px;font-weight:700;text-align:left;border-bottom:1px solid #cedde9;white-space:nowrap}
.jpos-mv-statement-table td{padding:8px 9px;vertical-align:middle;border-bottom:1px solid #e3ebf1;white-space:nowrap}
.jpos-mv-statement-table tr:nth-child(even){background:#f7fafc}
.jpos-mv-statement-table .is-number{text-align:right}
.jpos-mv-statement-table .is-balance{font-weight:750;color:#1d4367}
.jpos-mv-statement-table .is-ref{font-weight:600;color:#235077}
.jpos-mv-statement-table td small{display:block;color:#7b8ea1;font-size:11px;margin-top:2px;max-width:230px;overflow:hidden;text-overflow:ellipsis}
.jpos-mv-statement-table .is-action{min-width:125px;text-align:right}
.jpos-mv-statement-table .is-date{min-width:105px}
.jpos-mv-statement-empty{text-align:center;padding:24px!important;color:#70879b}
.jpos-mv-statement-pagination{display:flex;justify-content:space-between;gap:10px;margin:12px 0 3px}
.jpos-mv-statement-detail-slot{margin-top:10px;background:#f4f8fb;border:1px solid #d9e7ef;border-radius:9px;padding:12px}
.jpos-mv-statement-rowinfo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;font-size:13px}
.jpos-mv-statement-rowinfo strong{grid-column:1/-1}
@media(max-width:800px){
 .jpos-mv-ledger-only,.jpos-mv-statement{font-size:16px}
 .jpos-mv-ledger-only .jpos-mv-ledger-top{flex-direction:column;gap:9px}
 .jpos-mv-ledger-only .jpos-mv-ledger-total{text-align:left}
 .jpos-mv-ledger-only .jpos-mv-ledger-top p{font-size:14px}
 .jpos-mv-ledger-table{font-size:16px!important}
 .jpos-mv-ledger-identity strong{font-size:16px}
 .jpos-mv-statement-title{flex-direction:column;align-items:flex-start}
 .jpos-mv-statement-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .jpos-mv-statement-kpis strong{font-size:17px}
 .jpos-mv-statement-table{font-size:16px}
 .jpos-mv-statement-table td small{font-size:13px}
 .jpos-mv-statement-rowinfo{grid-template-columns:1fr;font-size:16px}
}

/* Filter periode dan jenis laporan pada modal mutasi akun - read-only */
.jpos-mv-statement-filters{display:grid;grid-template-columns:minmax(150px,1fr) minmax(245px,1.5fr) minmax(150px,1fr);gap:10px;align-items:end;margin:12px 0 14px;padding:12px;border:1px solid #dce7f0;border-radius:10px;background:#f7fafc}
.jpos-mv-statement-filters label{display:flex;flex-direction:column;gap:6px;min-width:0;font-weight:650;color:#38536f;font-size:12px}
.jpos-mv-statement-filters select,.jpos-mv-statement-filters input[type="date"]{height:39px;width:100%;border-radius:8px;border:1px solid #ccdce9;background:#fff;color:#233e59;font-family:inherit;font-size:14px;padding:7px 10px;min-width:0}
.jpos-mv-statement-filters select:focus,.jpos-mv-statement-filters input[type="date"]:focus{outline:2px solid #2991bf;outline-offset:1px}
.jpos-mv-statement-filter-month{min-width:0}
.jpos-mv-statement-filter-month label{display:block;margin-bottom:6px}
.jpos-mv-statement-month-controls{display:flex;gap:6px;align-items:center;min-width:0}
.jpos-mv-statement-month-controls button{flex:none;width:34px;height:39px;border-radius:8px;border:1px solid #ccdce9;background:#fff;color:#236386;cursor:pointer}
.jpos-mv-statement-month-controls button:disabled{opacity:.36;cursor:not-allowed}
.jpos-mv-statement-month-controls select{flex:1;min-width:0;text-align:center}
.jpos-mv-statement-filter-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0}
.jpos-mv-statement-filter-dates[hidden],.jpos-mv-statement-filter-month[hidden]{display:none!important}
@media(max-width:760px){.jpos-mv-statement-filters{grid-template-columns:1fr;gap:10px;padding:10px}.jpos-mv-statement-filter-dates{grid-template-columns:repeat(2,minmax(0,1fr))}.jpos-mv-statement-filters label{font-size:14px}.jpos-mv-statement-filters select,.jpos-mv-statement-filters input[type="date"]{font-size:16px;min-height:44px}.jpos-mv-statement-month-controls button{height:44px;width:42px}}
@media(max-width:380px){.jpos-mv-statement-filter-dates{grid-template-columns:1fr}}
