:root{--brand-orange:#0d6efd;--brand-teal:#0b5ed7;--brand-dark:#102a43;--soft:#f5f7fb;--line:#e7edf3;--green:#16a34a;--red:#dc2626;--shadow:0 18px 50px rgba(16,42,67,.10)}
*{box-sizing:border-box}body{margin:0;font-family:Arial;background:linear-gradient(135deg,#f7fbfc,#f8fbff);color:#172033}.login-body{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.login-card{width:420px;background:#fff;border-radius:28px;box-shadow:var(--shadow);padding:32px;border:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}.brand-badge{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,var(--brand-orange),#93c5fd);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900}.brand h1{margin:0;color:var(--brand-teal);font-size:24px}.brand small{color:#6b7280}.form-group{margin-bottom:14px}label{font-size:13px;font-weight:700;color:#526173}input,select,textarea{width:100%;padding:12px 14px;border:1px solid #dbe3ec;border-radius:14px;background:#fff;font-size:14px}button,.btn{border:0;border-radius:14px;padding:12px 16px;background:linear-gradient(135deg,var(--brand-teal),#2563eb);color:white;font-weight:800;cursor:pointer;text-decoration:none;display:inline-block}.btn-orange{background:linear-gradient(135deg,var(--brand-orange),#4dabf7)}.btn-light{background:#eef6ff;color:var(--brand-teal)}.btn-danger{background:var(--red)}.alert{padding:12px 14px;border-radius:14px;margin-bottom:15px;background:#fff1f1;color:#b91c1c}.app{display:flex;min-height:100vh}.sidebar{width:270px;background:#0b1f4d;color:white;padding:24px 18px;position:fixed;top:0;bottom:0}.sidebar .logo{font-size:22px;font-weight:900;margin-bottom:24px;color:#fff}.sidebar a{display:flex;align-items:center;gap:10px;color:#dbeafe;text-decoration:none;padding:12px 14px;border-radius:14px;margin:5px 0;font-weight:700;border:1px solid transparent;transition:.18s ease}.sidebar a span{width:22px;text-align:center}.sidebar a:hover{background:rgba(255,255,255,.12);transform:translateX(2px)}.sidebar a.active{background:linear-gradient(135deg,var(--brand-orange),#4dabf7);color:#fff;box-shadow:0 10px 24px rgba(13,110,253,.28);border-color:rgba(255,255,255,.22)}.sidebar a.active:hover{background:linear-gradient(135deg,var(--brand-orange),#4dabf7);transform:none}.main{margin-left:270px;width:calc(100% - 270px);padding:26px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.topbar h2{margin:0;color:#0b1f4d}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 10px 28px rgba(16,42,67,.06);padding:20px}.stat .num{font-size:26px;font-weight:900;color:var(--brand-teal);margin-top:8px}.stat .label{color:#64748b;font-weight:700;font-size:13px}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:18px;overflow:hidden}.table th{background:#eef6ff;color:#0d47a1;text-align:left;padding:13px;font-size:13px}.table td{padding:13px;border-top:1px solid var(--line);font-size:14px}.pill{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800}.pill-green{background:#dcfce7;color:#166534}.pill-red{background:#fee2e2;color:#991b1b}.section-title{display:flex;justify-content:space-between;align-items:center;margin:20px 0 12px}.pos-layout{display:grid;grid-template-columns:1.4fr .8fr;gap:18px}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.product-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;cursor:pointer;box-shadow:0 8px 20px rgba(16,42,67,.05)}.product-card:hover{border-color:var(--brand-orange);transform:translateY(-1px)}.product-card strong{display:block;color:#17324d}.product-card span{color:var(--brand-orange);font-weight:900}.cart-line{display:grid;grid-template-columns:1fr 70px 90px 32px;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:10px 0}.summary-row{display:flex;justify-content:space-between;margin:10px 0}.grand{font-size:24px;font-weight:900;color:var(--brand-orange)}.toast{position:fixed;right:22px;bottom:22px;background:#0b1f4d;color:#fff;padding:14px 18px;border-radius:16px;box-shadow:var(--shadow);display:none}.searchbar{display:flex;gap:10px;margin-bottom:14px}.muted{color:#64748b}.receipt{font-family:monospace;white-space:pre-wrap;background:#f8fafc;border-radius:14px;padding:12px;margin-top:10px;display:none}@media(max-width:900px){.sidebar{position:relative;width:100%;height:auto}.app{display:block}.main{margin-left:0;width:100%}.grid,.pos-layout{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,1fr)}}

/* POS responsive/mobile-first refinement */
.pos-body{background:linear-gradient(135deg,#eef6ff,#f8fbff);min-height:100vh;overscroll-behavior:none}.pos-shell{width:100%;min-height:100vh;padding:16px 18px 24px}.pos-topbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.pos-title-block{display:flex;align-items:center;gap:12px;min-width:0}.pos-title-block h2{margin:0;color:#0b1f4d;font-size:22px;line-height:1.15}.pos-badge{width:46px;height:46px;min-width:46px;border-radius:15px;background:linear-gradient(135deg,var(--brand-orange),#60a5fa);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;box-shadow:0 12px 25px rgba(13,110,253,.25)}.pos-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.pos-responsive-layout{grid-template-columns:minmax(0,1.45fr) minmax(360px,.8fr);align-items:start}.pos-product-card{padding:14px}.pos-search-sticky{position:sticky;top:0;background:#fff;z-index:3;padding-bottom:10px}.pos-searchbar input{font-size:15px}.pos-product-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:12px}.pos-product-item{min-height:132px;display:flex;flex-direction:column;gap:6px;touch-action:manipulation}.pos-product-name{font-weight:900;color:#17324d;line-height:1.22}.pos-product-price{color:var(--brand-orange);font-weight:900;margin-top:auto;font-size:17px}.pos-add-btn{width:100%;padding:9px 10px;border-radius:12px;font-size:13px;background:#eef6ff;color:var(--brand-teal)}.pos-cart-panel{position:sticky;top:14px;max-height:calc(100vh - 28px);overflow:auto;padding:18px}.pos-cart-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.pos-cart-head h3{margin:0 0 8px}.pos-cart-close,.pos-cart-handle,.pos-mobile-cartbar,.pos-cart-backdrop{display:none}.pos-cart-list{max-height:34vh;overflow:auto;padding-right:2px}.pos-cart-line{grid-template-columns:minmax(0,1fr) 112px 92px 32px}.pos-cart-name{min-width:0}.pos-cart-name b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-cart-name small{display:block;color:#64748b;margin-top:3px}.pos-qty-control{display:grid;grid-template-columns:30px 44px 30px;gap:4px;align-items:center}.pos-qty-control button{padding:7px 0;border-radius:10px;background:#eef6ff;color:var(--brand-teal)}.pos-qty-control input{padding:7px 4px;text-align:center;border-radius:10px}.pos-line-total{text-align:right}.pos-remove{width:32px;height:32px;padding:0;border-radius:10px}.pos-input-row input{width:145px}.pos-checkout-btn{width:100%;font-size:16px;padding:14px 16px}.pos-empty,.pos-empty-cart{color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:16px;text-align:center}.pos-empty{grid-column:1/-1}.receipt-success{background:#ecfdf5;border:1px solid #bbf7d0;border-radius:14px;padding:12px;color:#14532d}

@media(max-width:1024px){.pos-responsive-layout{grid-template-columns:minmax(0,1fr) 340px}.pos-product-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}.pos-cart-line{grid-template-columns:1fr;gap:7px}.pos-line-total{text-align:left}.pos-remove{position:absolute;right:8px;top:8px}.pos-cart-line{position:relative;padding-right:44px}}
@media(max-width:768px){body.pos-body{padding-bottom:86px}.pos-shell{padding:10px 10px 90px}.pos-topbar{align-items:flex-start}.pos-title-block h2{font-size:17px}.pos-badge{width:40px;height:40px;min-width:40px;border-radius:13px}.pos-actions .btn{padding:9px 10px;font-size:12px}.pos-responsive-layout{display:block}.pos-product-card{border-radius:20px;padding:10px}.pos-search-sticky{top:0;padding:0 0 10px}.pos-searchbar{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:0}.pos-searchbar input,.pos-searchbar select{padding:12px 13px;border-radius:14px;font-size:16px}.pos-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.pos-product-item{min-height:126px;border-radius:17px;padding:12px}.pos-product-name{font-size:14px}.pos-product-price{font-size:15px}.pos-add-btn{padding:8px;font-size:12px}.pos-mobile-cartbar{position:fixed;left:10px;right:10px;bottom:10px;z-index:45;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#0b1f4d;color:#fff;border-radius:22px;padding:12px 12px 12px 16px;box-shadow:0 18px 45px rgba(15,63,69,.32)}.pos-mobile-cartbar small{display:block;color:#bfdbfe;font-weight:700}.pos-mobile-cartbar b{font-size:15px}.pos-mobile-cartbar button{padding:11px 17px;border-radius:16px}.pos-cart-panel{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:60;max-height:88vh;overflow:auto;border-radius:26px 26px 0 0;padding:12px 14px 18px;transform:translateY(105%);transition:transform .22s ease;box-shadow:0 -18px 50px rgba(15,63,69,.24)}body.cart-open .pos-cart-panel{transform:translateY(0)}.pos-cart-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.38);z-index:55}body.cart-open .pos-cart-backdrop{display:block}.pos-cart-handle{display:block;width:54px;height:5px;background:#cbd5e1;border-radius:999px;margin:4px auto 12px}.pos-cart-close{display:inline-block;padding:8px 11px;font-size:12px}.pos-cart-list{max-height:28vh}.pos-cart-line{grid-template-columns:1fr;gap:8px;border:1px solid var(--line);border-radius:16px;margin-bottom:8px;padding:11px 44px 11px 11px;background:#fff}.pos-cart-name b{white-space:normal}.pos-qty-control{width:120px}.pos-input-row{align-items:center}.pos-input-row input{width:130px;padding:10px}.grand{font-size:22px}.pos-checkout-btn{position:sticky;bottom:0;margin-top:8px;padding:15px;border-radius:17px}.toast{left:12px;right:12px;bottom:86px;text-align:center}}
@media(max-width:390px){.pos-product-grid{grid-template-columns:1fr}.pos-topbar{display:block}.pos-actions{margin-top:10px;justify-content:flex-start}.pos-mobile-cartbar{left:8px;right:8px;bottom:8px}.pos-shell{padding-left:8px;padding-right:8px}.pos-product-item{min-height:auto}.pos-product-name{font-size:15px}}


/* =========================================================
   JOCOO SIDEBAR FIX - smooth open/close + white outline icons
   Tidak mengubah database/alur sistem. Hanya layout sidebar.
   ========================================================= */
:root{--sidebar-open:292px;--sidebar-close:82px;}
.app{display:flex;min-height:100vh;align-items:stretch;}
.sidebar.clean-sidebar{
  width:var(--sidebar-open)!important;
  min-width:var(--sidebar-open)!important;
  height:100vh!important;
  position:fixed!important;
  left:0!important;top:0!important;bottom:0!important;
  background:#0b1f4d!important;color:#fff!important;
  padding:18px 14px!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  z-index:1000!important;
  box-shadow:12px 0 34px rgba(15,23,42,.08);
  transition:width .28s cubic-bezier(.4,0,.2,1),min-width .28s cubic-bezier(.4,0,.2,1),padding .28s cubic-bezier(.4,0,.2,1),box-shadow .28s ease!important;
}
.main{
  margin-left:var(--sidebar-open)!important;
  width:calc(100% - var(--sidebar-open))!important;
  transition:margin-left .28s cubic-bezier(.4,0,.2,1),width .28s cubic-bezier(.4,0,.2,1)!important;
}
.sidebar-toggle{
  width:42px!important;height:42px!important;min-width:42px!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;
  padding:0!important;margin:0 0 14px 2px!important;cursor:pointer!important;
  transition:background .18s ease,transform .18s ease!important;
}
.sidebar-toggle:hover{background:rgba(255,255,255,.17)!important;transform:translateY(-1px)!important;}
.sidebar-toggle svg{width:22px!important;height:22px!important;display:block!important;}
.sidebar-toggle svg path,
.clean-sidebar .nav-icon svg path{fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
.clean-sidebar .logo{
  display:block!important;line-height:1.15!important;margin:0 6px 18px!important;padding:0 0 17px!important;
  border-bottom:1px solid rgba(255,255,255,.13)!important;white-space:nowrap!important;
  opacity:1!important;transition:opacity .18s ease,height .28s ease,margin .28s ease,padding .28s ease!important;
}
.clean-sidebar .logo-main{font-size:22px!important;font-weight:900!important;color:#fff!important;}
.clean-sidebar .logo small{display:block!important;margin-top:5px!important;color:#a9dadd!important;font-size:12px!important;font-weight:700!important;letter-spacing:.3px!important;}
.clean-sidebar .nav-group{display:block!important;margin:12px 0 15px!important;}
.clean-sidebar .nav-group-primary{padding:8px!important;margin:12px 0 16px!important;border-radius:18px!important;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.075)!important;}
.clean-sidebar .nav-group-title{display:block!important;font-size:10.5px!important;letter-spacing:.115em!important;text-transform:uppercase!important;color:#8bc8cc!important;font-weight:900!important;margin:0 10px 8px!important;white-space:nowrap!important;opacity:1!important;transition:opacity .16s ease!important;}
.clean-sidebar a{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;
  color:#e9ffff!important;text-decoration:none!important;padding:11px 12px!important;border-radius:14px!important;margin:3px 0!important;
  font-weight:800!important;font-size:14px!important;line-height:1.25!important;border:1px solid transparent!important;
  overflow:hidden!important;white-space:nowrap!important;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease!important;
}
.clean-sidebar a:hover{background:rgba(255,255,255,.11)!important;transform:none!important;}
.clean-sidebar a.active{background:linear-gradient(135deg,var(--brand-orange),#4dabf7)!important;color:#fff!important;box-shadow:0 8px 20px rgba(13,110,253,.22)!important;border-color:rgba(255,255,255,.18)!important;}
.clean-sidebar .nav-icon{
  width:23px!important;min-width:23px!important;height:23px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  color:#fff!important;text-align:center!important;opacity:1!important;transition:none!important;
}
.clean-sidebar .nav-icon svg{width:21px!important;height:21px!important;display:block!important;fill:none!important;color:#fff!important;}
.clean-sidebar .nav-label{
  display:inline-block!important;opacity:1!important;width:auto!important;max-width:218px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  transition:opacity .16s ease,max-width .22s cubic-bezier(.4,0,.2,1)!important;
}
.clean-sidebar .logout-link{background:rgba(255,255,255,.06)!important;color:#fff!important;border:1px solid rgba(255,255,255,.10)!important;}
.clean-sidebar .logout-link:hover{background:rgba(255,255,255,.13)!important;}
.clean-sidebar .nav-group-bottom{margin-top:22px!important;padding-top:12px!important;border-top:1px solid rgba(255,255,255,.10)!important;}

body.sidebar-collapsed .sidebar.clean-sidebar{
  width:var(--sidebar-close)!important;min-width:var(--sidebar-close)!important;padding-left:10px!important;padding-right:10px!important;
}
body.sidebar-collapsed .main{
  margin-left:var(--sidebar-close)!important;width:calc(100% - var(--sidebar-close))!important;
}
body.sidebar-collapsed .clean-sidebar .logo{opacity:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;pointer-events:none!important;}
body.sidebar-collapsed .clean-sidebar .nav-group-title{opacity:0!important;height:0!important;margin:0!important;overflow:hidden!important;pointer-events:none!important;}
body.sidebar-collapsed .clean-sidebar .nav-label{opacity:0!important;max-width:0!important;width:0!important;pointer-events:none!important;}
body.sidebar-collapsed .clean-sidebar a{justify-content:center!important;gap:0!important;padding:12px 0!important;}
body.sidebar-collapsed .clean-sidebar .nav-icon{margin:0!important;}
body.sidebar-collapsed .clean-sidebar .nav-group{margin:9px 0!important;}
body.sidebar-collapsed .clean-sidebar .nav-group-bottom{padding-top:10px!important;}

@media(max-width:900px){
  .sidebar.clean-sidebar{width:var(--sidebar-close)!important;min-width:var(--sidebar-close)!important;padding-left:10px!important;padding-right:10px!important;}
  .main{margin-left:var(--sidebar-close)!important;width:calc(100% - var(--sidebar-close))!important;padding:18px 12px!important;}
  .clean-sidebar .logo{opacity:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;pointer-events:none!important;}
  .clean-sidebar .nav-group-title{opacity:0!important;height:0!important;margin:0!important;overflow:hidden!important;pointer-events:none!important;}
  .clean-sidebar .nav-label{opacity:0!important;max-width:0!important;width:0!important;pointer-events:none!important;}
  .clean-sidebar a{justify-content:center!important;gap:0!important;padding:12px 0!important;}
  body:not(.sidebar-collapsed) .sidebar.clean-sidebar{width:var(--sidebar-open)!important;min-width:var(--sidebar-open)!important;padding:18px 14px!important;box-shadow:18px 0 50px rgba(15,23,42,.18)!important;}
  body:not(.sidebar-collapsed) .main{margin-left:var(--sidebar-open)!important;width:calc(100% - var(--sidebar-open))!important;}
  body:not(.sidebar-collapsed) .clean-sidebar .logo{opacity:1!important;height:auto!important;margin:0 6px 18px!important;padding:0 0 17px!important;border-bottom:1px solid rgba(255,255,255,.13)!important;pointer-events:auto!important;}
  body:not(.sidebar-collapsed) .clean-sidebar .nav-group-title{opacity:1!important;height:auto!important;margin:0 10px 8px!important;overflow:visible!important;pointer-events:auto!important;}
  body:not(.sidebar-collapsed) .clean-sidebar .nav-label{opacity:1!important;width:auto!important;max-width:218px!important;pointer-events:auto!important;}
  body:not(.sidebar-collapsed) .clean-sidebar a{justify-content:flex-start!important;gap:12px!important;padding:11px 12px!important;}
  .grid,.pos-layout{grid-template-columns:1fr!important}.product-grid{grid-template-columns:repeat(2,1fr)!important}
}
/* =========================
   SIDEBAR FONT IMPROVEMENT
   ========================= */

.sidebar,
.sidebar * {
    font-family: Arial, sans-serif !important;
}

/* Judul kategori menu */
.sidebar-section-title,
.clean-sidebar .menu-title,
.clean-sidebar small,
.clean-sidebar .section-title {
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
    letter-spacing: 1px;
}

/* Menu utama */
.sidebar .nav-link,
.sidebar .menu-item,
.sidebar a,
.clean-sidebar a {
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
    font-size: 15px;
    color: #ffffff;
}

/* Icon tetap outline putih */
.sidebar i,
.sidebar svg,
.clean-sidebar i,
.clean-sidebar svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Hover menu */
.sidebar .nav-link:hover,
.clean-sidebar a:hover {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: all 0.25s ease;
}

/* Active menu */
.sidebar .active,
.clean-sidebar .active {
    background: linear-gradient(90deg,#ff6a2b,#ff8747);
    border-radius: 14px;
    color: #fff !important;
    font-weight: normal !important;
}

/* Hilangkan bold seluruh sidebar */
.sidebar strong,
.sidebar b,
.clean-sidebar strong,
.clean-sidebar b {
    font-weight: normal !important;
}
/* =========================================================
   POS PAGE REFINEMENT - tablet/desktop layout + success modal
   Scope only applies to pos.php classes, so existing theme stays safe.
   ========================================================= */
@media (min-width: 769px){
  .pos-shell{min-height:100vh;display:flex;flex-direction:column;}
  .pos-layout.pos-responsive-layout{flex:1;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(380px,.72fr);align-items:stretch;min-height:calc(100vh - 116px);}
  .pos-product-section{min-height:100%;display:flex;}
  .pos-product-card{width:100%;min-height:100%;display:flex;flex-direction:column;}
  .pos-product-grid{flex:1;align-content:start;overflow:auto;max-height:calc(100vh - 210px);padding-right:4px;}
  .pos-cart-panel{position:sticky;top:16px;height:calc(100vh - 116px);max-height:none;display:flex;flex-direction:column;overflow:hidden;}
  .pos-cart-list{flex:1;max-height:none;overflow:auto;min-height:140px;}
  .pos-checkout-btn{margin-top:8px;}
}
@media (min-width: 1200px){
  .pos-product-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));}
}
@media (min-width: 1500px){
  .pos-layout.pos-responsive-layout{grid-template-columns:minmax(0,1.75fr) minmax(410px,.65fr);}
  .pos-product-grid{grid-template-columns:repeat(auto-fill,minmax(185px,1fr));}
}

.pos-modal-backdrop{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;background:rgba(15,23,42,.46);backdrop-filter:blur(6px);padding:18px;}
.pos-modal-backdrop.show{display:flex;}
body.pos-modal-open{overflow:hidden;}
.pos-success-modal{position:relative;width:min(520px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:0 28px 90px rgba(15,23,42,.28);padding:30px;text-align:center;animation:posModalIn .18s ease-out;}
@keyframes posModalIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.pos-modal-close{position:absolute;right:16px;top:14px;width:38px;height:38px;border-radius:14px;background:#f1f5f9;color:#0b1f4d;font-size:24px;line-height:1;padding:0;font-weight:400;}
.pos-success-icon{width:74px;height:74px;border-radius:24px;margin:0 auto 14px;background:linear-gradient(135deg,#10b981,#34d399);display:flex;align-items:center;justify-content:center;color:#fff;font-size:42px;font-weight:900;box-shadow:0 18px 36px rgba(16,185,129,.28);}
.pos-success-modal h3{margin:0;color:#0b1f4d;font-size:24px;}
.pos-success-subtitle{margin:8px auto 18px;color:#64748b;line-height:1.45;max-width:390px;}
.pos-success-detail{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left;background:#f8fafc;border:1px solid #e2e8f0;border-radius:20px;padding:14px;margin:16px 0 18px;}
.pos-success-detail div{background:#fff;border:1px solid #edf2f7;border-radius:15px;padding:11px 12px;min-width:0;}
.pos-success-detail span{display:block;font-size:12px;color:#64748b;margin-bottom:4px;}
.pos-success-detail b{display:block;color:#172033;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pos-modal-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}
.pos-modal-actions .btn,.pos-modal-actions button{min-width:130px;text-align:center;}
@media(max-width:520px){.pos-success-modal{padding:24px 18px;border-radius:24px}.pos-success-detail{grid-template-columns:1fr}.pos-modal-actions{display:grid;grid-template-columns:1fr}.pos-modal-actions .btn,.pos-modal-actions button{width:100%;}}


.remember-row{display:flex;align-items:center;gap:9px;margin:-4px 0 14px;font-size:13px;color:#526173;font-weight:700}.remember-row input{width:auto;accent-color:#0d6efd}.register-modal{max-width:980px;width:min(980px,96vw);}.register-content{max-height:58vh;overflow:auto;margin:14px 0;border-radius:18px}.register-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}.register-summary-grid div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:13px}.register-summary-grid small{display:block;color:#64748b;font-weight:700}.register-summary-grid b{display:block;color:#0b1f4d;font-size:17px;margin-top:5px}.register-note{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;border-radius:14px;padding:10px 12px;margin-bottom:10px;font-size:13px}.register-methods{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:12px}.register-methods div{display:flex;justify-content:space-between;gap:12px;background:#eef6ff;border-radius:14px;padding:10px 12px;color:#0b1f4d}.register-table-wrap{overflow:auto;border:1px solid #e2e8f0;border-radius:16px}.register-table th,.register-table td{white-space:nowrap;font-size:13px}.register-loading{animation:registerPulse 1s ease-in-out infinite alternate}@keyframes registerPulse{from{opacity:.55}to{opacity:1}}@media(max-width:720px){.register-summary-grid,.register-methods{grid-template-columns:1fr}.register-modal{width:96vw;padding:22px 14px}.register-content{max-height:55vh}}


/* === PATCH v7: POS Responsive UI + Outline Icons === */
html, body, button, input, select, textarea, .btn{font-family:Arial, Helvetica, sans-serif!important;}
.pos-topbar{flex-wrap:wrap;align-items:center;}
.pos-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.pos-icon-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px;border-radius:16px;line-height:1;white-space:nowrap;box-shadow:0 8px 18px rgba(15,63,69,.06);transition:transform .16s ease, box-shadow .16s ease, background .16s ease;}
.pos-icon-btn:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(15,63,69,.12);}
.pos-icon-btn svg{width:18px;height:18px;min-width:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.pos-icon-btn span{display:inline-block;font-weight:900;}
.pos-actions .btn-light{background:#f3fafb;color:#0d47a1;border:1px solid #dbeff1;}
.pos-actions .btn-orange{border:1px solid rgba(13,110,253,.28);}
.pos-modal-backdrop{transition:opacity .18s ease;}
.pos-modal-backdrop.show .pos-success-modal{animation:posModalIn .2s ease-out;}
.pos-success-modal,.register-modal,.petty-modal{font-family:Arial, Helvetica, sans-serif!important;}
.pos-modal-actions{gap:10px;flex-wrap:wrap;justify-content:center;}
.pos-modal-actions .btn,.pos-modal-actions button,.pos-modal-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border-radius:16px;}

@media(max-width:900px){
  .pos-topbar{align-items:flex-start;}
  .pos-title-block{width:100%;}
  .pos-actions{width:100%;justify-content:flex-start;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
  .pos-icon-btn{width:100%;padding:10px 8px;min-width:0;}
  .pos-icon-btn span{overflow:hidden;text-overflow:ellipsis;}
}
@media(max-width:768px){
  .pos-actions{grid-template-columns:repeat(2,minmax(0,1fr));}
  .pos-icon-btn{min-height:44px;font-size:12.5px;border-radius:15px;}
  .pos-icon-btn svg{width:17px;height:17px;min-width:17px;}
  .pos-modal-backdrop{padding:0;align-items:stretch;justify-content:stretch;}
  .pos-modal-backdrop.show{display:flex;}
  .pos-success-modal,.register-modal,.petty-modal{width:100vw!important;max-width:none!important;height:100dvh;max-height:none;border-radius:0!important;border:0;padding:22px 16px calc(22px + env(safe-area-inset-bottom));overflow:auto;text-align:center;animation:posModalSlideUp .2s ease-out!important;}
  .pos-modal-close{top:14px;right:14px;position:fixed;z-index:3;}
  .pos-success-detail{grid-template-columns:1fr 1fr;gap:10px;text-align:left;}
  .register-content{max-height:none;overflow:visible;}
  .pos-modal-actions{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,.82),#fff 36%);padding-top:12px;margin-bottom:0;display:grid;grid-template-columns:1fr;}
  .pos-modal-actions .btn,.pos-modal-actions button,.pos-modal-actions a{width:100%;}
}
@media(max-width:430px){
  .pos-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  .pos-icon-btn{gap:6px;padding:10px 7px;font-size:12px;}
  .pos-icon-btn svg{width:16px;height:16px;min-width:16px;}
  .pos-title-block .muted{font-size:12px;}
}
@media(max-width:340px){
  .pos-actions{grid-template-columns:1fr;}
}
@keyframes posModalSlideUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}


/* =========================================================
   PATCH v8 - POS PROFESSIONAL UI + REGISTER MODAL FIX
   Fokus: halaman kasir pos.php, icon outline, header rapi,
   modal portrait fullscreen, register kasir tidak berantakan.
   ========================================================= */
:root{
  --pos-teal:#006b72;
  --pos-teal-dark:#073f46;
  --pos-orange:#0d6efd;
  --pos-text:#122033;
  --pos-muted:#607086;
  --pos-line:#e2e8f0;
  --pos-soft:#f5fbfc;
}
html,body,button,input,select,textarea,.btn{font-family:Arial,Helvetica,sans-serif!important;}
body.pos-body{background:#f8fbfd!important;color:var(--pos-text);}
.pos-shell{padding:16px 18px 18px!important;}
.pos-topbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin-bottom:16px!important;flex-wrap:nowrap!important;}
.pos-title-block{display:flex!important;align-items:center!important;gap:12px!important;min-width:240px!important;}
.pos-badge{width:42px!important;height:42px!important;min-width:42px!important;border-radius:12px!important;background:linear-gradient(135deg,#ff572b,#ff7a45)!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:900!important;box-shadow:0 10px 20px rgba(255,91,46,.22)!important;}
.pos-title-block h2{font-size:21px!important;line-height:1.1!important;margin:0!important;color:var(--pos-text)!important;font-weight:900!important;}
.pos-title-block .muted{font-size:13px!important;color:#475569!important;margin-top:3px!important;}
.pos-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;flex-wrap:nowrap!important;}
.pos-icon-btn{height:46px!important;min-width:0!important;padding:0 18px!important;border-radius:10px!important;border:1px solid #d8e1ea!important;background:#fff!important;color:#14243a!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;box-shadow:0 5px 14px rgba(15,23,42,.05)!important;text-decoration:none!important;font-size:14px!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important;transition:.16s ease!important;}
.pos-icon-btn:hover{transform:translateY(-1px)!important;box-shadow:0 9px 22px rgba(15,23,42,.10)!important;border-color:#b8c7d8!important;}
.pos-icon-btn svg{width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;max-height:20px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
.pos-icon-btn span{display:inline-block!important;font-weight:800!important;}
.pos-actions .btn-orange{background:linear-gradient(135deg,#0b5ed7,#3b82f6)!important;color:#fff!important;border-color:#2563eb!important;}
.pos-actions .btn-orange svg{stroke:#fff!important;}
.pos-layout.pos-responsive-layout{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(360px,.85fr)!important;gap:14px!important;align-items:stretch!important;}
.pos-product-card,.pos-cart-panel{background:#fff!important;border:1px solid #e1e8ef!important;border-radius:14px!important;box-shadow:0 10px 24px rgba(15,23,42,.04)!important;}
.pos-product-card{padding:12px!important;min-height:calc(100vh - 96px)!important;}
.pos-searchbar{display:grid!important;grid-template-columns:1fr 170px!important;gap:8px!important;margin-bottom:12px!important;}
.pos-searchbar input,.pos-searchbar select{height:46px!important;border-radius:10px!important;border:1px solid #dfe7ef!important;background:#fff!important;font-size:14px!important;color:#25364d!important;}
.pos-product-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(145px,1fr))!important;gap:10px!important;max-height:calc(100vh - 180px)!important;overflow:auto!important;padding-right:2px!important;}
.product-card,.pos-product-item{border:1px solid #e3eaf1!important;border-radius:12px!important;background:#fff!important;box-shadow:0 4px 14px rgba(15,23,42,.035)!important;padding:13px!important;transition:.15s ease!important;}
.product-card:hover,.pos-product-item:hover{border-color:#b9dfe3!important;box-shadow:0 9px 22px rgba(0,107,114,.10)!important;transform:translateY(-1px)!important;}
.pos-cart-panel{height:calc(100vh - 96px)!important;max-height:none!important;position:sticky!important;top:14px!important;padding:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;}
.pos-cart-head{padding:15px 18px!important;border-bottom:1px solid #edf2f7!important;}
.pos-cart-head h3{font-size:16px!important;color:var(--pos-text)!important;margin:0!important;font-weight:900!important;}
.pos-cart-list{flex:1!important;max-height:none!important;overflow:auto!important;padding:14px 18px!important;}
.summary-row,.form-group{margin-left:18px!important;margin-right:18px!important;}
.pos-checkout-btn{width:calc(100% - 36px)!important;margin:10px 18px 18px!important;border-radius:10px!important;background:linear-gradient(135deg,#0b5ed7,#3b82f6)!important;color:#fff!important;height:48px!important;font-weight:900!important;}

/* modal base */
.pos-modal-backdrop{position:fixed!important;inset:0!important;z-index:10000!important;display:none!important;align-items:center!important;justify-content:center!important;background:rgba(15,23,42,.45)!important;backdrop-filter:blur(6px)!important;padding:18px!important;}
.pos-modal-backdrop.show{display:flex!important;}
.pos-success-modal{position:relative!important;background:#fff!important;border:1px solid #e5edf4!important;border-radius:24px!important;box-shadow:0 30px 90px rgba(15,23,42,.28)!important;padding:28px!important;width:min(520px,96vw)!important;max-height:92vh!important;overflow:auto!important;text-align:center!important;animation:posModalInV8 .18s ease-out!important;}
.register-modal{width:min(560px,96vw)!important;}
.petty-modal{width:min(520px,96vw)!important;}
@keyframes posModalInV8{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.pos-modal-close{position:absolute!important;right:14px!important;top:12px!important;width:36px!important;height:36px!important;border-radius:12px!important;background:#f1f6f8!important;color:#113f46!important;border:0!important;font-size:20px!important;line-height:36px!important;padding:0!important;font-weight:800!important;display:flex!important;align-items:center!important;justify-content:center!important;}
.pos-success-modal h3{margin:0 40px 6px!important;color:#0b1f4d!important;font-size:22px!important;line-height:1.18!important;font-weight:900!important;}
.pos-success-subtitle{margin:0 auto 16px!important;color:#607086!important;line-height:1.45!important;max-width:430px!important;font-size:14px!important;}

/* register modal clean layout */
.register-content{margin:12px 0 16px!important;max-height:none!important;overflow:visible!important;text-align:left!important;border-radius:18px!important;}
.register-mini{display:flex!important;flex-direction:column!important;gap:12px!important;font-size:14px!important;color:var(--pos-text)!important;}
.register-hero-card{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:16px!important;border-radius:18px!important;background:linear-gradient(135deg,#e9fbfb,#f6ffff)!important;border:1px solid #d5eef0!important;}
.register-hero-card>div:first-child{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important;}
.register-eyebrow{font-size:12px!important;color:#607086!important;font-weight:800!important;letter-spacing:.02em!important;text-transform:uppercase!important;}
.register-hero-card strong{font-size:24px!important;color:#006b72!important;line-height:1.1!important;font-weight:900!important;}
.register-hero-card small{font-size:12px!important;color:#607086!important;}
.register-date-chip{background:#fff!important;border:1px solid #dbe8ef!important;border-radius:999px!important;padding:8px 12px!important;color:#25364d!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important;}
.register-kpi-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
.register-kpi{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:16px!important;padding:13px!important;display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important;}
.register-kpi span{font-size:12px!important;color:#607086!important;font-weight:800!important;}
.register-kpi b{font-size:18px!important;color:#122033!important;font-weight:900!important;line-height:1.15!important;word-break:break-word!important;}
.register-kpi small{font-size:11px!important;color:#7b8a9d!important;}
.register-kpi.cash{border-color:#bfe8ea!important;background:#f3ffff!important;}
.register-kpi.out{border-color:#bfdbfe!important;background:#fff8ed!important;}
.register-formula-card{background:#fff!important;border:1px dashed #cbd5e1!important;border-radius:16px!important;padding:13px 14px!important;}
.register-formula-title{font-weight:900!important;color:#0b1f4d!important;margin-bottom:8px!important;}
.register-formula-line{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:6px 0!important;border-top:1px solid #eef2f6!important;}
.register-formula-line:first-of-type{border-top:0!important;}
.register-formula-line span{color:#475569!important;}
.register-formula-line b{font-weight:900!important;color:#122033!important;}
.register-formula-line.minus b{color:#d54b1f!important;}
.register-formula-line.total{background:#eef6ff!important;border-radius:12px!important;margin-top:6px!important;padding:10px 12px!important;border-top:0!important;}
.register-formula-line.total span,.register-formula-line.total b{color:#006b72!important;font-weight:900!important;}
.register-pay-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
.register-pay-grid div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;background:#f8fafc!important;border:1px solid #edf2f7!important;border-radius:13px!important;padding:10px 12px!important;}
.register-pay-grid span{color:#607086!important;font-size:12px!important;font-weight:800!important;}
.register-pay-grid b{color:#122033!important;font-weight:900!important;}
.register-pdf-note{background:#f8fafc!important;border:1px solid #e2e8f0!important;border-radius:14px!important;padding:11px 12px!important;text-align:center!important;color:#607086!important;font-size:13px!important;line-height:1.35!important;}
.pos-modal-actions{display:flex!important;gap:10px!important;justify-content:center!important;flex-wrap:wrap!important;margin-top:12px!important;}
.pos-modal-actions .btn,.pos-modal-actions button,.pos-modal-actions a{height:44px!important;min-width:130px!important;border-radius:13px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;font-weight:900!important;font-size:13px!important;border:0!important;}
.pos-modal-actions .btn-light{background:#eef6ff!important;color:#006b72!important;}
.pos-modal-actions .btn-orange,.pos-modal-actions a.btn-orange{background:linear-gradient(135deg,#0d6efd,#4dabf7)!important;color:#fff!important;}

/* portrait phone: modal fullscreen */
@media (orientation:portrait) and (max-width:768px){
  .pos-modal-backdrop{padding:0!important;align-items:stretch!important;justify-content:stretch!important;background:#fff!important;backdrop-filter:none!important;}
  .pos-success-modal,.register-modal,.petty-modal{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;border-radius:0!important;border:0!important;box-shadow:none!important;padding:22px 16px calc(22px + env(safe-area-inset-bottom))!important;overflow:auto!important;}
  .pos-modal-close{position:fixed!important;top:12px!important;right:12px!important;z-index:2!important;}
  .pos-success-modal h3{font-size:20px!important;margin-left:40px!important;margin-right:40px!important;}
  .pos-modal-actions{position:sticky!important;bottom:0!important;background:linear-gradient(180deg,rgba(255,255,255,.75),#fff 42%)!important;padding-top:12px!important;display:grid!important;grid-template-columns:1fr!important;}
  .pos-modal-actions .btn,.pos-modal-actions button,.pos-modal-actions a{width:100%!important;}
}

/* responsive header so buttons do not stack badly */
@media (max-width:1100px){
  .pos-topbar{flex-wrap:wrap!important;align-items:flex-start!important;}
  .pos-title-block{width:100%!important;}
  .pos-actions{width:100%!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;}
  .pos-icon-btn{width:100%!important;padding:0 10px!important;}
}
@media (max-width:680px){
  .pos-shell{padding:10px!important;}
  .pos-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .pos-icon-btn{height:42px!important;font-size:12.5px!important;border-radius:12px!important;gap:7px!important;}
  .pos-icon-btn svg{width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;max-height:17px!important;}
  .pos-layout.pos-responsive-layout{display:block!important;}
  .pos-product-card{min-height:auto!important;}
  .pos-searchbar{grid-template-columns:1fr!important;}
  .pos-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:none!important;}
}
@media (max-width:360px){
  .pos-actions{grid-template-columns:1fr!important;}
}
.remember-wrap{
    width:100%;
    margin:12px 0 18px;
}

.remember-label{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    cursor:pointer;
    width:auto !important;
    font-size:15px;
    font-weight:500;
    color:#555;
}

.remember-label input[type="checkbox"]{
    width:16px !important;
    height:16px !important;
    margin:0 !important;
    padding:0 !important;
    display:inline-block !important;
    position:relative !important;
    top:0 !important;
    left:0 !important;
    transform:none !important;
}
/* Jocoo rebranding */
.brand-logo-img{width:140px;max-width:100%;height:auto;display:block;margin:0 auto 10px;}
.login-card .brand{justify-content:center;text-align:center;flex-direction:column;gap:8px;}
.login-card .brand h1{font-size:28px;color:#0b5ed7;}
.login-card .brand-badge{display:none;}
.sidebar .logo{display:flex;flex-direction:column;gap:4px;}
.sidebar .logo-main{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:950;}
.sidebar .logo-main::before{content:"";width:36px;height:36px;border-radius:10px;background:url("../../images/ico.png") center/cover no-repeat;display:inline-block;}
.sidebar:not(.clean-sidebar) .logo::before{content:"";width:44px;height:44px;border-radius:12px;background:url("../../images/ico.png") center/cover no-repeat;display:inline-block;margin-bottom:8px;}
