*{box-sizing:border-box}html,body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#172033}body{min-height:100vh}.htpa-login{background:#121826;overflow-x:hidden}.htpa-login-backdrop{position:fixed;inset:0;background-image:linear-gradient(90deg,rgba(15,18,27,.56),rgba(15,18,27,.18)),var(--htpos-login-bg);background-size:cover;background-position:center;z-index:0}.htpa-login-top,.htpa-login-wrap,.htpa-login-footer{position:relative;z-index:1}.htpa-login-top{height:82px;display:flex;align-items:center;justify-content:space-between;max-width:1120px;margin:auto;padding:0 24px;color:#fff}.htpa-top-logo{height:46px;max-width:210px;object-fit:contain}.htpa-top-links{display:flex;gap:10px}.htpa-top-links span,.htpa-pill{background:rgba(16,24,40,.55);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:9px 14px;font-size:12px;color:#fff}.htpa-login-wrap{max-width:1080px;margin:50px auto 30px;display:grid;grid-template-columns:1.05fr .95fr;border-radius:22px;overflow:hidden;box-shadow:0 28px 80px rgba(0,0,0,.38)}.htpa-promo{padding:34px;background:linear-gradient(145deg,rgba(114,44,15,.95),rgba(240,95,28,.92));display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:18px}.htpa-promo-feature-wrap{width:100%;display:flex;justify-content:center;align-items:flex-start}.htpa-promo-feature-image{display:block;width:70%;max-width:340px;height:auto;border-radius:18px;box-shadow:0 16px 36px rgba(0,0,0,.2)}.htpa-support{width:70%;max-width:340px;display:grid;gap:7px;padding:16px 18px;border-radius:14px;background:rgba(70,23,8,.28);border:1px solid rgba(255,255,255,.14);color:#fff;font-size:13px;line-height:1.45}.htpa-support b{font-size:13px;margin-bottom:2px}.htpa-support span{display:block}.htpa-login-card{background:rgba(255,255,255,.97);padding:34px 38px;display:flex;flex-direction:column;justify-content:center}.htpa-login-head{margin-bottom:18px}.htpa-login-logo{display:block;height:58px;max-width:250px;object-fit:contain;object-position:center;margin:0 auto 16px}.htpa-login-card h2{font-size:20px;margin:0 0 8px}.htpa-login-head>p{color:#6b7280;line-height:1.55;margin:0 0 18px}.htpa-login-card label{display:block;font-size:13px;font-weight:700;margin:13px 0 6px}.htpa-login-card input:not([type=checkbox]){width:100%;height:48px;border:1px solid #d7dce5;border-radius:10px;padding:0 13px;font-size:14px}.htpa-pass{display:flex;position:relative}.htpa-pass button{position:absolute;right:7px;top:7px;width:34px;height:34px;border:0;background:transparent}.htpa-login-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#ff5b11;margin:10px 0 15px}.htpa-check{display:flex!important;gap:8px;align-items:center;color:#374151;margin:0!important;font-weight:500!important}.htpa-login-submit{height:50px;border:0;border-radius:11px;background:linear-gradient(90deg,#ff5b11,#ff7b31);color:#fff;font-weight:800;display:block;width:max-content;min-width:230px;margin:0 auto}.htpa-login-help{margin-top:18px;padding:14px;border-radius:12px;background:#fff7f1;color:#6b7280}.htpa-alert{padding:10px 12px;border-radius:10px;background:#fff1f2;color:#b42318;margin:8px 0}.htpa-login-footer{max-width:1080px;margin:0 auto;padding:0 24px 24px;color:#e5e7eb;text-align:center}.htpa-admin{background:#f4f7fb}.htpa-app{display:flex;min-height:100vh}.htpa-sidebar{width:250px;background:linear-gradient(180deg,#111827,#161b26);color:#e5e7eb;padding:18px 14px;position:fixed;inset:0 auto 0 0;overflow:auto}.htpa-brand{display:flex;align-items:center;gap:9px;padding:4px 8px 20px;border-bottom:1px solid rgba(255,255,255,.08);font-weight:700}.htpa-brand img{height:40px;width:110px;object-fit:contain}.htpa-nav-group{margin-top:17px}.htpa-nav-title{font-size:10px;letter-spacing:.12em;color:#778091;padding:0 10px 7px}.htpa-nav-btn{width:100%;border:0;background:transparent;color:#cbd5e1;text-align:left;padding:10px 12px;border-radius:9px;margin:2px 0;cursor:pointer;display:flex;gap:9px}.htpa-nav-btn:hover,.htpa-nav-btn.active{background:linear-gradient(90deg,#ff5b11,#ff7b31);color:#fff}.htpa-sidebar-footer{padding:16px 10px;margin-top:20px;border-top:1px solid rgba(255,255,255,.08)}.htpa-sidebar-footer a{color:#ff9a64;text-decoration:none}.htpa-main{margin-left:250px;width:calc(100% - 250px)}.htpa-header{height:68px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:20}.htpa-search{height:40px;border:1px solid #dde3ec;background:#f9fafb;border-radius:10px;display:flex;align-items:center;padding:0 12px;min-width:420px}.htpa-search input{border:0;background:transparent;outline:0;width:100%}.htpa-actions{display:flex;align-items:center;gap:8px}.htpa-actions .htpa-pill{color:#374151;background:#fff;border-color:#e5e7eb}.htpa-account{font-size:12px;font-weight:700;background:#fff7f1;padding:9px 12px;border-radius:10px}.htpa-content{padding:20px}.htpa-page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.htpa-page-head h1{margin:0;font-size:23px}.htpa-page-head p{margin:4px 0 0;color:#64748b}.htpa-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.htpa-kpi,.htpa-card{background:#fff;border:1px solid #e6eaf0;border-radius:14px;padding:16px;box-shadow:0 3px 12px rgba(15,23,42,.04)}.htpa-kpi strong{display:block;font-size:24px;margin-top:7px}.htpa-dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-top:14px}.htpa-dark-card{background:linear-gradient(180deg,#0e1b2f,#0d1827);color:#f8fafc}.htpa-chart{height:260px;position:relative;margin-top:14px}.htpa-chart:before{content:"";position:absolute;inset:20px 0;background:repeating-linear-gradient(to bottom,transparent 0,transparent 49px,rgba(148,163,184,.12) 50px)}.htpa-chart-line{position:absolute;left:3%;right:3%;top:42%;height:3px;background:linear-gradient(90deg,#16c784,#ff6b18,#16c784,#ff4757);transform:skewY(-6deg)}.htpa-summary-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.08)}.htpa-table{width:100%;border-collapse:collapse}.htpa-table th,.htpa-table td{padding:11px 9px;border-bottom:1px solid #e8ecf2;text-align:left}.htpa-badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#ecfdf3;color:#027a48}.htpa-ok{color:#12b76a;font-weight:800}.htpa-no{color:#f04438;font-weight:800}.htpa-package-box{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.htpa-package{border:1px solid #e5e7eb;border-radius:14px;padding:16px}.htpa-security-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.htpa-security-item{display:flex;justify-content:space-between;padding:12px;border-radius:10px;background:#f8fafc}.htpa-btn{border:0;border-radius:9px;padding:10px 14px;background:#ff641c;color:#fff;font-weight:700}.htpa-note{padding:15px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}@media(max-width:1100px){.htpa-kpis{grid-template-columns:repeat(2,1fr)}.htpa-dashboard-grid{grid-template-columns:1fr}.htpa-login-wrap{margin:20px;grid-template-columns:1fr}.htpa-promo{display:none}}
/* HTPOS_PARTNER_ADMIN_LOGIN_BUTTON_CENTER_FIX_V1_0_5 */
.htpa-login-card form .htpa-login-submit{
    display:block !important;
    width:72% !important;
    min-width:230px !important;
    max-width:280px !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
    float:none !important;
    position:relative !important;
    left:auto !important;
    right:auto !important;
}

/* HTPOS_PARTNER_ADMIN_REAL_MODULES_FULL_IMPLEMENT_V1_0_0 */
.htpa-real-section{margin-top:14px}
.htpa-real-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.htpa-real-section-head h3{margin:0 0 4px}
.htpa-real-section-head small{color:#64748b}
.htpa-real-table-wrap{overflow:auto;max-height:560px;border:1px solid #e6eaf0;border-radius:10px}
.htpa-real-table-wrap .htpa-table{min-width:900px;background:#fff}
.htpa-real-table-wrap .htpa-table th{position:sticky;top:0;background:#f8fafc;z-index:1}
.htpa-real-table-wrap .htpa-table td{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.htpa-empty{padding:20px;color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:10px}

/* HTPOS_PARTNER_ADMIN_PHASE2_UI_REAL_REMEDIATION_IMPLEMENT_V1_0_0 */
:root{
 --htpa-bg:#f5f7fb;
 --htpa-card:#ffffff;
 --htpa-border:#e5e7eb;
 --htpa-text:#172033;
 --htpa-muted:#6b7280;
 --htpa-accent:#ff7a1a;
 --htpa-accent-soft:#fff1e8;
 --htpa-sidebar:#ffffff;
}
body.htpa-body{background:var(--htpa-bg)!important;color:var(--htpa-text)!important}
.htpa-sidebar{
 background:var(--htpa-sidebar)!important;
 color:var(--htpa-text)!important;
 border-right:1px solid var(--htpa-border)!important;
 box-shadow:6px 0 24px rgba(17,24,39,.04)!important;
}
.htpa-brand{border-bottom:1px solid var(--htpa-border)!important;color:var(--htpa-text)!important}
.htpa-nav-title{color:#9aa3b2!important}
.htpa-nav-btn{
 color:#374151!important;
 background:transparent!important;
 border:1px solid transparent!important;
 border-radius:10px!important;
}
.htpa-nav-btn:hover{background:#f8fafc!important;border-color:#eef2f7!important}
.htpa-nav-btn.active{
 background:linear-gradient(90deg,#ff6f0f,#ff8f3d)!important;
 color:#fff!important;
 box-shadow:0 7px 18px rgba(255,122,26,.2)!important;
}
.htpa-logout{color:#c2410c!important;border-top:1px solid var(--htpa-border)!important}
.htpa-menu-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px}
.htpa-menu-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.htpa-card{background:#fff!important;border:1px solid var(--htpa-border)!important;box-shadow:0 3px 12px rgba(17,24,39,.04)!important}
.htpa-kpi{background:#fff!important;border:1px solid var(--htpa-border)!important;box-shadow:0 3px 12px rgba(17,24,39,.04)!important}
.htpa-page-head h1{color:#111827!important}
.htpa-page-head p,.htpa-muted{color:var(--htpa-muted)!important}
.htpa-badge{background:#ecfdf5!important;color:#047857!important;border:1px solid #d1fae5!important}
.htpa-info{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;padding:12px 14px;border-radius:10px;margin:0 0 14px}
.htpa-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.htpa-real-table-wrap{border-color:var(--htpa-border)!important}
.htpa-real-table-wrap .htpa-table th{background:#f8fafc!important;color:#374151!important}
.htpa-table td,.htpa-table th{border-color:#eef2f7!important}
.htpa-empty{background:#fafafa!important;border-color:#e5e7eb!important;color:#6b7280!important}
.htpa-alert{border-radius:10px!important}
@media(max-width:900px){.htpa-grid-2{grid-template-columns:1fr}}
/* HTPOS CRUD UI V1 */
.htpa-actions{display:flex;gap:8px;justify-content:flex-end;margin:0 0 12px}
.htpa-primary{background:#ff7a1a;color:#fff;border:0;border-radius:8px;padding:9px 14px;font-weight:700;cursor:pointer}
.htpa-secondary{background:#fff;color:#374151;border:1px solid #d1d5db;border-radius:8px;padding:9px 14px;cursor:pointer}
.htpa-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.35);display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px}
.htpa-modal{width:min(720px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:14px;padding:20px;box-shadow:0 24px 70px rgba(0,0,0,.18)}
.htpa-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.htpa-form-grid label{font-size:13px;color:#374151;display:flex;flex-direction:column;gap:6px}
.htpa-form-grid input,.htpa-form-grid select,.htpa-form-grid textarea{border:1px solid #d1d5db;border-radius:8px;padding:10px;font:inherit}
.htpa-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
@media(max-width:700px){.htpa-form-grid{grid-template-columns:1fr}}
/* HTPOS_BROWSER_CRUD_V2 */
.htpa-toast{position:fixed;right:22px;bottom:22px;background:#111827;color:#fff;padding:10px 14px;border-radius:10px;z-index:10000;box-shadow:0 8px 30px rgba(0,0,0,.2)}
.htpa-span-2{grid-column:1/-1}
.htpa-form-grid textarea{min-height:90px;resize:vertical}
/* HTPOS_STATISTICS_DASHBOARD_V1 */
.htpa-statistics-dashboard-v1{padding:0 0 26px;color:#182433}
.htpa-stats-page-title{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:0 0 12px}
.htpa-stats-page-title h2{font-size:22px;margin:0 0 3px}
.htpa-stats-page-title p{margin:0;color:#6b7280;font-size:12px}
.htpa-stats-toolbar{display:flex;gap:6px;flex-wrap:wrap}
.htpa-stats-toolbar button,.htpa-stats-card-head button{border:1px solid #dbe3ef;background:#fff;border-radius:7px;padding:7px 11px;font-size:11px;cursor:pointer}
.htpa-stats-toolbar button.active{background:#0969ef;color:#fff;border-color:#0969ef}
.htpa-stats-hero{background:linear-gradient(180deg,#042440,#031d34);border-radius:12px;padding:12px;color:#fff;box-shadow:0 10px 22px rgba(5,32,58,.13)}
.htpa-stats-kpi-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:9px}
.htpa-stats-kpi-grid .kpi{border:1px solid rgba(68,154,221,.42);background:rgba(2,41,71,.7);border-radius:8px;padding:10px 12px}
.htpa-stats-kpi-grid span{display:block;font-size:11px;color:#d5e7f4;margin-bottom:5px}
.htpa-stats-kpi-grid strong{display:block;font-size:20px;line-height:1.15}
.htpa-stats-kpi-grid small{display:block;color:#34ef8c;font-size:10px;margin-top:4px}
.htpa-stats-hero-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:8px}
.htpa-stats-chart-panel,.htpa-stats-overview-panel{border:1px solid rgba(68,154,221,.38);background:rgba(1,32,57,.62);border-radius:8px;padding:10px}
.htpa-stats-chart-panel .panel-title,.htpa-stats-overview-panel .panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}
.htpa-stats-chart-panel .panel-title b{display:block;font-size:18px;margin-top:3px}
.htpa-stats-chart-panel .legend{font-size:10px;color:#c9ddec}
.htpa-stats-chart-panel .legend i{display:inline-block;width:7px;height:7px;background:#20e983;border-radius:50%;margin-right:4px}
.htpa-stats-line-svg{width:100%;height:230px}
.htpa-stats-line-svg circle{fill:#21e987;stroke:#fff;stroke-width:1.5}
.htpa-stats-chart-panel .axis-labels{display:flex;justify-content:space-between;color:#91aec2;font-size:9px;padding:0 18px}
.htpa-stats-overview-panel table{width:100%;border-collapse:collapse;font-size:10px}
.htpa-stats-overview-panel th,.htpa-stats-overview-panel td{padding:9px 6px;border-bottom:1px solid rgba(255,255,255,.1);text-align:left}
.htpa-stats-overview-panel .up{color:#31e98b}
.htpa-stats-overview-panel .down{color:#ff5a6a}
.htpa-stats-overview-panel button{font-size:9px;border:1px solid rgba(255,255,255,.25);background:transparent;color:#fff;border-radius:5px;padding:4px 7px}
.htpa-stats-filter{display:grid;grid-template-columns:110px 130px 160px 160px minmax(170px,1fr) 90px;gap:8px;background:#fff;padding:10px;margin:10px 0;border:1px solid #e0e7ef;border-radius:9px}
.htpa-stats-filter label{font-size:10px;color:#5e6b79}
.htpa-stats-filter input,.htpa-stats-filter select{display:block;width:100%;box-sizing:border-box;border:1px solid #dbe3ed;border-radius:6px;padding:7px;background:#fff;font:inherit;margin-top:4px}
.htpa-stats-filter button{align-self:end;border:0;background:#0a6cf0;color:#fff;border-radius:7px;padding:9px 12px;font-weight:700}
.htpa-stats-color-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}
.htpa-stats-color-kpis>div{min-height:52px;border-radius:8px;padding:10px 13px;color:#fff;display:flex;justify-content:space-between;align-items:center}
.htpa-stats-color-kpis span{font-size:10px}.htpa-stats-color-kpis strong{font-size:17px}
.htpa-stats-color-kpis .pink{background:linear-gradient(100deg,#f30f68,#ff3f55)}
.htpa-stats-color-kpis .blue{background:linear-gradient(100deg,#2563eb,#2da6ff)}
.htpa-stats-color-kpis .orange{background:linear-gradient(100deg,#f04483,#ff8a42)}
.htpa-stats-color-kpis .green{background:linear-gradient(100deg,#22b84b,#17d5a4)}
.htpa-stats-color-kpis .rose{background:linear-gradient(100deg,#ff286f,#ff5588)}
.htpa-stats-color-kpis .purple{background:linear-gradient(100deg,#873cff,#5768f0)}
.htpa-stats-color-kpis .cyan{background:linear-gradient(100deg,#168ff0,#22b9eb)}
.htpa-stats-color-kpis .red{background:linear-gradient(100deg,#ec3232,#ff5149)}
.htpa-stats-two-col{display:grid;grid-template-columns:1.2fr .8fr;gap:9px;margin-bottom:9px}
.htpa-stats-three-grid{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:9px;margin-bottom:9px}
.htpa-stats-card{background:#fff;border:1px solid #e1e7ee;border-radius:9px;padding:10px;box-shadow:0 4px 12px rgba(15,23,42,.04);min-width:0}
.htpa-stats-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}
.htpa-stats-card-head strong{display:block;font-size:13px}
.htpa-stats-card-head small{display:block;color:#8a97a5;font-size:9px;margin-top:2px}
.mini-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.mini-kpis>div{border:1px solid #e2e9f1;border-radius:6px;padding:9px}
.mini-kpis span{display:block;color:#7b8795;font-size:9px;margin-bottom:4px}
.mini-kpis b{font-size:12px}
.cash-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.cash-pair>div{padding:12px;border-radius:7px}
.cash-pair span{display:block;font-size:10px;margin-bottom:4px}
.cash-pair b{font-size:17px}
.cash-pair .income{background:#ecfff4;border:1px solid #b9efd0}
.cash-pair .expense{background:#fff0f0;border:1px solid #ffc9c9}
.kpi-bars{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.kpi-bars .target{border-radius:7px;padding:11px;color:#fff}
.kpi-bars span{display:block;font-size:10px;margin-bottom:4px}
.kpi-bars strong{font-size:16px}.redbar{background:linear-gradient(100deg,#ef2148,#ff4b2f)}.bluebar{background:linear-gradient(100deg,#176be8,#2da7f7)}
.donut-wrap{display:flex;align-items:center;gap:20px;min-height:150px}
.donut{--income:50%;width:110px;height:110px;border-radius:50%;background:conic-gradient(#f51f63 0 var(--income),#247bf2 var(--income) 100%);position:relative}
.donut:after{content:"";position:absolute;inset:25px;background:#fff;border-radius:50%}
.donut-legend{display:flex;flex-direction:column;gap:12px;font-size:10px}
.donut-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}.d1{background:#f51f63}.d2{background:#247bf2}
.htpa-stats-bars{width:100%;height:170px}.htpa-stats-bars .b1{fill:#168ded}.htpa-stats-bars .b2{fill:#ff970f}.htpa-stats-bars text{font-size:8px;fill:#66778a}
.staff-progress{position:relative;border-bottom:1px solid #edf0f4;padding-bottom:18px;margin-bottom:10px;font-size:10px}
.staff-progress b{float:right}.staff-progress em{position:absolute;left:0;bottom:6px;height:5px;border-radius:4px;background:linear-gradient(90deg,#e62d92,#ff482b)}
.htpa-stats-table-wrap{overflow:auto}.htpa-stats-table{width:100%;border-collapse:collapse;font-size:10px}.htpa-stats-table th,.htpa-stats-table td{padding:8px;border-bottom:1px solid #edf1f5;text-align:left;white-space:nowrap}
.htpa-stat-status{background:#e8fbf0;color:#18864d;border-radius:10px;padding:3px 7px;font-size:9px}
@media(max-width:1100px){
  .htpa-stats-kpi-grid{grid-template-columns:repeat(2,1fr)}
  .htpa-stats-hero-grid,.htpa-stats-two-col,.htpa-stats-three-grid{grid-template-columns:1fr}
  .htpa-stats-color-kpis{grid-template-columns:repeat(2,1fr)}
  .htpa-stats-filter{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:650px){
  .htpa-stats-kpi-grid,.htpa-stats-color-kpis,.mini-kpis,.kpi-bars,.cash-pair,.htpa-stats-filter{grid-template-columns:1fr}
  .htpa-stats-page-title{align-items:flex-start;flex-direction:column}
}


/* HTPOS_STATISTICS_WATERMARK_TEXT_FIX_V1_0_3 */
.htpa-statistics-dashboard-v1 .htpa-stats-hero,
.htpa-statistics-dashboard-v1 .htpa-stats-chart-panel{
  position:relative !important;
  overflow:hidden !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-watermark-v153{
  position:absolute !important;
  left:50% !important;
  top:54% !important;
  transform:translate(-50%,-50%) !important;
  font-size:clamp(84px,10vw,170px) !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:-4px !important;
  color:rgba(184, 111, 33, 0.10) !important;
  white-space:nowrap !important;
  pointer-events:none !important;
  user-select:none !important;
  z-index:0 !important;
  text-transform:none !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-watermark-v153.is-chart{
  top:50% !important;
  font-size:clamp(72px,8vw,150px) !important;
  color:rgba(184, 111, 33, 0.09) !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-hero > *:not(.htpa-stats-watermark-v153),
.htpa-statistics-dashboard-v1 .htpa-stats-chart-panel > *:not(.htpa-stats-watermark-v153){
  position:relative !important;
  z-index:1 !important;
}

/* HTPOS_DASHBOARD_OVERVIEW_UI_V1 */
.htpa-dashboard-overview-v1{color:#182433;padding:0 0 26px}
.htpa-db-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}
.htpa-db-head h2{font-size:22px;margin:0 0 3px}
.htpa-db-head p{margin:0;color:#6f7d8d;font-size:12px}
.htpa-db-package{color:#15965b;background:#eefcf4;border:1px solid #d5f5e3;border-radius:18px;padding:7px 12px;font-size:11px}
.htpa-db-hero{position:relative;overflow:hidden;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border:1px solid #e0e8f2;border-radius:12px;padding:12px;margin-bottom:10px;box-shadow:0 7px 22px rgba(15,23,42,.045)}
.htpa-db-watermark{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);font-size:clamp(76px,10vw,170px);font-weight:900;letter-spacing:-5px;color:rgba(161,99,40,.045);pointer-events:none;user-select:none;white-space:nowrap;z-index:0}
.htpa-db-hero>*:not(.htpa-db-watermark){position:relative;z-index:1}
.htpa-db-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:10px}
.htpa-db-kpis .kpi{min-height:82px;background:#fff;border:1px solid #e1e8f0;border-radius:9px;padding:11px 12px;box-shadow:0 3px 12px rgba(15,23,42,.035)}
.htpa-db-kpis .kpi span{display:block;color:#6a7686;font-size:10px;margin-bottom:5px}
.htpa-db-kpis .kpi strong{display:block;font-size:20px;color:#172033}
.htpa-db-kpis .kpi small{display:block;font-size:9px;margin-top:5px}
.htpa-db-kpis .orange small{color:#e77b12}.htpa-db-kpis .blue small{color:#1f78ed}.htpa-db-kpis .purple small{color:#714cf4}.htpa-db-kpis .cyan small{color:#039ec9}.htpa-db-kpis .green small{color:#16a65a}.htpa-db-kpis .red small{color:#e64a49}
.htpa-db-summary-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:9px}
.htpa-db-card{background:#fff;border:1px solid #e1e8f0;border-radius:10px;padding:11px;box-shadow:0 4px 13px rgba(15,23,42,.035)}
.htpa-db-card .card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.htpa-db-card .card-head strong{display:block;font-size:13px}
.htpa-db-card .card-head small{display:block;color:#8a96a5;font-size:9px;margin-top:2px}
.htpa-db-card .card-head button{border:1px solid #dbe3ed;background:#fff;border-radius:6px;padding:6px 9px;font-size:10px;cursor:pointer}
.health-content{display:flex;gap:18px;align-items:center}
.htpa-db-donut{width:115px;height:115px;transform:rotate(-90deg)}
.htpa-db-donut circle{fill:none;stroke-width:10}
.htpa-db-donut .bg{stroke:#edf2f7}
.htpa-db-donut .fg{stroke:#ff7a1a;stroke-linecap:round}
.htpa-db-donut text{font-size:18px;font-weight:800;fill:#172033;transform:rotate(90deg);transform-origin:55px 55px}
.health-list{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.health-list>div,.quick-grid>div,.ops-grid>div,.status-list>div{border:1px solid #e5ebf2;border-radius:7px;padding:9px}
.health-list span,.quick-grid span,.ops-grid span,.status-list span{display:block;color:#788596;font-size:9px;margin-bottom:3px}
.health-list b,.quick-grid b,.ops-grid b,.status-list b{font-size:12px}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.htpa-db-vat-pills{display:flex;align-items:center;gap:6px;margin-bottom:10px}
.htpa-db-vat-pills span{font-size:10px;font-weight:700;margin-right:3px}
.htpa-db-vat-pills b{font-size:9px;background:#fff;border:1px solid #dce4ee;border-radius:6px;padding:6px 8px}
.htpa-db-vat-pills b.active{background:#182433;color:#fff;border-color:#182433}
.htpa-db-table-wrap{overflow:auto}
.htpa-db-table{width:100%;border-collapse:collapse;font-size:10px}
.htpa-db-table th{background:#f7f9fc;color:#425268;text-align:left;padding:9px 8px;border-bottom:1px solid #e5ebf2;white-space:nowrap}
.htpa-db-table td{padding:9px 8px;border-bottom:1px solid #edf1f5;white-space:nowrap}
.htpa-db-table .empty{text-align:center;color:#8794a4;padding:24px}
.htpa-db-table .status{display:inline-block;border-radius:10px;padding:3px 7px;font-size:9px}
.htpa-db-table .status.ok{background:#eafbf1;color:#14894f}.htpa-db-table .status.pending{background:#fff6dd;color:#9f6b00}.htpa-db-table .status.bad{background:#fff0f0;color:#cf4141}.htpa-db-table .status.neutral{background:#f1f4f7;color:#667789}
.htpa-db-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.ops-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.status-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.status-list .ok{color:#159b59}
@media(max-width:1200px){
  .htpa-db-kpis{grid-template-columns:repeat(3,1fr)}
  .htpa-db-summary-grid,.htpa-db-bottom-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .htpa-db-kpis{grid-template-columns:repeat(2,1fr)}
  .health-list,.quick-grid,.ops-grid,.status-list{grid-template-columns:1fr}
  .health-content{align-items:flex-start;flex-direction:column}
}
/* HTPOS_PRODUCT_OPTIONS_HTOFFICIAL_PARITY_V1 */
.htpa-product-modal-wide{width:min(980px,96vw)!important}
.htpa-po-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.htpa-po-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#374151}
.htpa-po-grid input,.htpa-po-grid select,.htpa-po-grid textarea{border:1px solid #d7dee8;border-radius:8px;padding:10px;font:inherit;background:#fff}
.htpa-po-grid textarea{min-height:80px;resize:vertical}
.htpa-po-grid .span-2{grid-column:1/-1}
.htpa-po-drink,.htpa-po-shoe{margin-top:16px;border-top:1px solid #e5eaf0;padding-top:14px}
.htpa-po-drink h4,.htpa-po-shoe h4{margin:0 0 10px;font-size:14px}
.htpa-po-variant-actions{margin:10px 0}
.htpa-po-variant-actions button{border:1px solid #ff7a1a;background:#fff6ed;color:#d95e00;border-radius:8px;padding:8px 12px;cursor:pointer;font-weight:700}
.htpa-po-variants{overflow:auto}
.htpa-po-variant-table{width:100%;border-collapse:collapse;font-size:11px}
.htpa-po-variant-table th,.htpa-po-variant-table td{border-bottom:1px solid #edf1f5;padding:7px;text-align:left}
.htpa-po-variant-table input[type="text"],.htpa-po-variant-table input[type="number"],.htpa-po-variant-table input:not([type]){width:100%;box-sizing:border-box;border:1px solid #d7dee8;border-radius:6px;padding:7px}
.htpa-po-empty{padding:14px;border:1px dashed #d9e0e8;border-radius:8px;color:#7a8797;text-align:center}
@media(max-width:720px){.htpa-po-grid{grid-template-columns:1fr}.htpa-po-grid .span-2{grid-column:auto}}
/* HTPOS_PRODUCT_UPLOAD_DYNAMIC_OPTIONS_V1 */
.htpa-dynamic-product-modal{width:min(980px,96vw)!important}
.htpa-upload-box{border:1px dashed #cfd8e3;border-radius:10px;padding:12px;background:#fbfcfe}
.htpa-upload-box input[type=file]{display:none}
.htpa-upload-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.htpa-upload-actions span{font-size:11px;color:#6e7b8b}
.htpa-image-preview{margin-top:10px;width:180px;height:140px;border:1px solid #e1e7ee;border-radius:9px;overflow:hidden;background:#fff}
.htpa-image-preview img{width:100%;height:100%;object-fit:contain;display:block}
.htpa-option-section{margin-top:16px;border-top:1px solid #e5eaf0;padding-top:14px}
.htpa-option-section h4{margin:0 0 12px;font-size:14px}
.htpa-repeater{margin-bottom:14px;padding:10px;border:1px solid #e4eaf1;border-radius:9px;background:#fbfcfe}
.htpa-repeater-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.htpa-repeater-head strong{font-size:12px}
.htpa-plus{border:1px solid #f6b27e;background:#fff5ec;color:#d95e00;border-radius:7px;padding:6px 10px;font-weight:700;cursor:pointer}
.htpa-repeater-list{display:flex;flex-direction:column;gap:7px}
.htpa-dyn-row{display:grid;grid-template-columns:minmax(160px,1fr) 160px 38px;gap:7px;align-items:center}
.htpa-dyn-row.compact{grid-template-columns:minmax(160px,1fr) 38px}
.htpa-dyn-row input{width:100%;box-sizing:border-box;border:1px solid #d7dee8;border-radius:7px;padding:9px;background:#fff}
.htpa-minus{width:36px;height:36px;border:1px solid #f0b6b6;background:#fff2f2;color:#c93131;border-radius:7px;font-size:19px;line-height:1;cursor:pointer}
.htpa-variant-actions{margin:10px 0}
.htpa-dyn-variant-table{width:100%;border-collapse:collapse;font-size:11px}
.htpa-dyn-variant-table th,.htpa-dyn-variant-table td{padding:7px;border-bottom:1px solid #edf1f5;text-align:left}
.htpa-dyn-variant-table input:not([type=checkbox]){width:100%;box-sizing:border-box;border:1px solid #d7dee8;border-radius:6px;padding:7px}
.htpa-dyn-sticky-actions{position:sticky;bottom:-20px;background:#fff;padding:12px 0 0;margin-top:14px;border-top:1px solid #e8edf3;z-index:2}
@media(max-width:700px){
  .htpa-dyn-row{grid-template-columns:1fr 1fr 38px}
  .htpa-dyn-row.compact{grid-template-columns:1fr 38px}
  .htpa-image-preview{width:140px;height:110px}
}
/* HTPOS_INVENTORY_CRM_HTOFFICIAL_PARITY_V1 */
.htpa-inventory-crm-v1{padding-bottom:26px;color:#182433}
.htpa-inv-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.htpa-inv-head h2{margin:0 0 3px;font-size:22px}.htpa-inv-head p{margin:0;color:#718092;font-size:12px}
.htpa-inv-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}
.htpa-inv-summary>div{background:#fff;border:1px solid #e1e8f0;border-radius:9px;padding:12px;box-shadow:0 3px 10px rgba(15,23,42,.035)}
.htpa-inv-summary span{display:block;font-size:10px;color:#6e7b8c;margin-bottom:3px}.htpa-inv-summary strong{font-size:20px}
.htpa-inv-summary .green strong{color:#169b58}.htpa-inv-summary .orange strong{color:#ed8a13}.htpa-inv-summary .red strong{color:#e5484d}
.htpa-inv-toolbar{display:grid;grid-template-columns:260px 1fr 90px;gap:8px;background:#fff;border:1px solid #e1e8f0;border-radius:9px;padding:10px;margin-bottom:10px}
.htpa-inv-toolbar label{font-size:10px;color:#647286}.htpa-inv-toolbar select,.htpa-inv-toolbar input{display:block;width:100%;box-sizing:border-box;margin-top:4px;border:1px solid #d9e1ea;border-radius:7px;padding:9px;background:#fff}
.htpa-inv-toolbar button{align-self:end;border:0;background:#ff7417;color:#fff;border-radius:7px;padding:10px 12px;font-weight:700}
.htpa-inv-card{background:#fff;border:1px solid #e1e8f0;border-radius:10px;padding:10px;box-shadow:0 4px 13px rgba(15,23,42,.035);margin-bottom:10px}
.htpa-inv-card .table-wrap{overflow:auto}
.htpa-inv-table{width:100%;border-collapse:collapse;font-size:10px}.htpa-inv-table th{background:#f7f9fc;color:#425269;text-align:left;padding:9px 8px;border-bottom:1px solid #e5ebf2;white-space:nowrap}.htpa-inv-table td{padding:9px 8px;border-bottom:1px solid #edf1f5;vertical-align:middle}
.htpa-inv-table td.prod{display:flex;align-items:center;gap:9px;min-width:220px}.htpa-inv-table td.prod small,.htpa-inv-table td small{display:block;color:#8592a2;margin-top:2px}.htpa-inv-table .pic{width:38px;height:38px;border:1px solid #e1e7ee;border-radius:7px;overflow:hidden;flex:0 0 auto}.htpa-inv-table .pic img{width:100%;height:100%;object-fit:cover}.htpa-inv-table .pic .noimg{width:100%;height:100%;display:grid;place-items:center;background:#fff4e8;color:#df6d0d;font-weight:800}
.htpa-inv-table td.qty{font-weight:800;font-size:13px}.htpa-inv-table .stock{display:inline-block;border-radius:12px;padding:4px 8px;font-size:9px;font-weight:700}.htpa-inv-table .stock.in{background:#e9fbf1;color:#15874e}.htpa-inv-table .stock.low{background:#fff5dc;color:#a76d00}.htpa-inv-table .stock.out{background:#fff0f0;color:#cc4040}
.htpa-inv-table button.action,.variant-card button{border:1px solid #f0b37d;background:#fff6ed;color:#d95f00;border-radius:6px;padding:6px 9px;cursor:pointer;font-size:10px;font-weight:700}
.htpa-inv-table .empty{text-align:center;color:#8592a2;padding:24px}
.htpa-inv-var-row td{background:#fafcff}.htpa-inv-variants{display:flex;gap:7px;flex-wrap:wrap;padding:3px}.variant-card{display:grid;grid-template-columns:minmax(130px,1fr) 80px auto auto;align-items:center;gap:9px;min-width:420px;border:1px solid #e4eaf1;background:#fff;border-radius:8px;padding:8px}.variant-card small{display:block;color:#8995a3}
.htpa-inv-adjust-modal{width:min(720px,95vw)!important}.htpa-inv-product-head{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:10px;background:#f7f9fc;border:1px solid #e4eaf1;border-radius:8px;margin-bottom:12px}.htpa-inv-product-head small{display:block;color:#7e8a99;margin-top:2px}.htpa-inv-product-head b{color:#e46f0f}
.htpa-inv-history{margin-top:10px}.history-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.history-head button{border:1px solid #dce3ec;background:#fff;border-radius:6px;padding:5px 8px}
@media(max-width:900px){.htpa-inv-summary{grid-template-columns:repeat(2,1fr)}.htpa-inv-toolbar{grid-template-columns:1fr}.variant-card{min-width:600px}}
/* HTPOS_INVENTORY_DOCUMENT_WORKFLOWS_V1 */
.htpa-inv-workflow-actions{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}
.htpa-inv-workflow-actions button{border:1px solid #f0b37d;background:#fff6ed;color:#d95f00;border-radius:7px;padding:8px 10px;font-size:10px;font-weight:700}
.htpa-inv-workflow-actions button:last-child{border-color:#d9e2ed;background:#fff;color:#415269}
.htpa-inv-doc-wide{width:min(1050px,97vw)!important}
.htpa-doc-lines-head{display:flex;justify-content:space-between;align-items:center;margin:14px 0 8px}
.htpa-doc-lines-head button{border:1px solid #f2b27a;background:#fff5ec;color:#db6200;border-radius:7px;padding:7px 10px;font-weight:700}
.htpa-doc-lines{display:flex;flex-direction:column;gap:7px}
.htpa-doc-line{display:grid;grid-template-columns:minmax(210px,1.4fr) minmax(170px,1fr) 120px 120px 38px;gap:7px;align-items:center;padding:8px;border:1px solid #e4eaf1;border-radius:8px;background:#fbfcfe}
.htpa-doc-line select,.htpa-doc-line input{width:100%;box-sizing:border-box;border:1px solid #d6dee8;border-radius:7px;padding:9px;background:#fff}
.htpa-doc-line button{width:36px;height:36px;border:1px solid #efb4b4;background:#fff1f1;color:#c83232;border-radius:7px;font-size:18px}
@media(max-width:900px){.htpa-inv-head{align-items:flex-start;flex-direction:column}.htpa-inv-workflow-actions{margin-left:0}.htpa-doc-line{grid-template-columns:1fr 1fr}}

/* HTPOS_INVENTORY_RETURN_BY_RECEIPT_V1 */
.htpa-return-receipt-wide{
  width:min(1100px,97vw) !important;
}

.htpa-return-receipt-summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px;
  margin:12px 0;
  padding:10px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:8px;
  font-size:11px;
}

.htpa-return-receipt-lines{
  overflow:auto;
  max-height:420px;
}

.htpa-return-receipt-table{
  width:100%;
  border-collapse:collapse;
  font-size:11px;
}

.htpa-return-receipt-table th,
.htpa-return-receipt-table td{
  padding:8px;
  border-bottom:1px solid #e9eef4;
  text-align:left;
  vertical-align:middle;
}

.htpa-return-receipt-table th{
  background:#f7f9fc;
  color:#425269;
  position:sticky;
  top:0;
  z-index:1;
}

.htpa-return-receipt-table small{
  display:block;
  color:#8491a1;
  margin-top:2px;
}

.htpa-return-receipt-table input[type=number]{
  width:110px;
  border:1px solid #d6dee8;
  border-radius:6px;
  padding:7px;
}

.htpa-auto-check{
  display:inline-grid;
  place-items:center;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#e9fbf1;
  color:#16894e;
  font-weight:800;
}

@media(max-width:800px){
  .htpa-return-receipt-summary{
    grid-template-columns:1fr 1fr;
  }
}

/* HTPOS_ACCOUNTING_VIETNAMESE_REORGANIZE_V1 */
.htpa-accounting-vn-v1{
  padding-bottom:26px;
}

.htpa-accounting-summary-v1{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:9px;
  margin:12px 0 14px;
}

.htpa-accounting-summary-v1>div{
  background:#fff;
  border:1px solid #e1e8f0;
  border-radius:10px;
  padding:13px 14px;
  box-shadow:0 3px 12px rgba(15,23,42,.04);
}

.htpa-accounting-summary-v1 span{
  display:block;
  font-size:10px;
  color:#758297;
  margin-bottom:4px;
}

.htpa-accounting-summary-v1 strong{
  font-size:18px;
  color:#182433;
}

.htpa-accounting-vn-v1 table{
  width:100%;
}

.htpa-accounting-vn-v1 table th{
  background:#f7f9fc !important;
  color:#455468 !important;
  font-size:10px !important;
  font-weight:700 !important;
  white-space:nowrap;
}

.htpa-accounting-vn-v1 table td{
  font-size:10px !important;
}

.htpa-accounting-vn-v1 .htpa-card,
.htpa-accounting-vn-v1 .card,
.htpa-accounting-vn-v1 section{
  border-radius:10px !important;
}

@media(max-width:900px){
  .htpa-accounting-summary-v1{
    grid-template-columns:repeat(2,1fr);
  }
}

/* HTPOS_PACKAGE_CRUD_FULL_V1 */
.htpa-package-crud-v1{padding-bottom:28px;color:#182433}
.htpa-package-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.htpa-package-head h2{margin:0 0 3px;font-size:21px}
.htpa-package-head p{margin:0;color:#758296;font-size:11px}

.htpa-package-card{
  background:#fff;
  border:1px solid #e1e8f0;
  border-radius:10px;
  padding:11px;
  margin-bottom:12px;
  box-shadow:0 3px 12px rgba(15,23,42,.035)
}

.htpa-package-card-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:9px
}

.htpa-package-card-title strong{font-size:13px}
.htpa-package-card-title span{font-size:10px;color:#7b8796}

.htpa-package-table{width:100%;border-collapse:collapse;font-size:10px}
.htpa-package-table th{
  text-align:left;
  padding:9px 8px;
  background:#f7f9fc;
  color:#425269;
  border-bottom:1px solid #e5ebf2;
  white-space:nowrap
}
.htpa-package-table td{padding:9px 8px;border-bottom:1px solid #edf1f5;vertical-align:middle}
.htpa-package-table small{display:block;color:#8592a2;margin-top:2px}
.htpa-package-table .empty{text-align:center;color:#8491a1;padding:24px}

.htpa-package-count{
  display:inline-block;
  background:#eef6ff;
  color:#2772c8;
  padding:4px 7px;
  border-radius:12px;
  font-weight:700
}

.htpa-package-status{
  display:inline-block;
  padding:4px 8px;
  border-radius:12px;
  font-weight:700
}
.htpa-package-status.active{background:#e9fbf1;color:#16894e}
.htpa-package-status.inactive{background:#f2f3f5;color:#727b88}

.htpa-package-row-actions{display:flex;gap:5px}
.htpa-package-row-actions button{
  border:1px solid #efb37e;
  background:#fff6ed;
  color:#d95f00;
  border-radius:6px;
  padding:6px 9px;
  font-size:10px;
  font-weight:700
}
.htpa-package-row-actions button.danger{
  border-color:#efb5b5;
  background:#fff2f2;
  color:#c73535
}

.htpa-package-modal{width:min(980px,96vw)!important}
.htpa-package-feature-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:15px 0 8px
}
.htpa-package-feature-title button{
  border:1px solid #dce4ed;
  background:#fff;
  border-radius:6px;
  padding:5px 8px;
  margin-left:4px
}

.htpa-package-feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  max-height:400px;
  overflow:auto
}

.htpa-package-feature-group{
  border:1px solid #e3e9f0;
  border-radius:8px;
  padding:9px;
  background:#fbfcfe
}
.htpa-package-feature-group h4{margin:0 0 7px;font-size:11px}
.htpa-package-feature-group label{
  display:flex;
  gap:7px;
  align-items:flex-start;
  padding:6px 2px;
  font-size:10px
}
.htpa-package-feature-group small{display:block;color:#8995a4;margin-top:1px}

@media(max-width:900px){
  .htpa-package-head{align-items:flex-start;flex-direction:column;gap:8px}
  .htpa-package-feature-grid{grid-template-columns:1fr}
}

/* HTPOS_PERMISSION_MATRIX_FULL_V1 */
.htpa-permission-matrix-v1{padding-bottom:90px}
.htpa-perm-page-head{margin-bottom:12px}.htpa-perm-page-head h2{margin:0 0 3px;font-size:21px}.htpa-perm-page-head p{margin:0;color:#768396;font-size:11px}
.htpa-perm-role-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.htpa-perm-role-tabs button{border:1px solid #dfe6ee;background:#fff;border-radius:9px;padding:9px 13px;min-width:120px;text-align:left;cursor:pointer}
.htpa-perm-role-tabs button.active{border-color:#ff8b36;background:#fff5ed}
.htpa-perm-role-tabs span{display:block;font-weight:800}.htpa-perm-role-tabs small{display:block;margin-top:2px;color:#8793a2}
.htpa-perm-toolbar{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #e1e7ee;border-radius:10px;padding:11px 12px}
.htpa-perm-toolbar>div:first-child strong{display:block;font-size:14px}.htpa-perm-toolbar>div:first-child span{font-size:10px;color:#8693a3}
.htpa-perm-toolbar-actions{display:flex;gap:6px}.htpa-perm-toolbar-actions button{border:1px solid #dbe3ec;background:#fff;border-radius:7px;padding:7px 10px;font-size:10px;font-weight:700}
.htpa-perm-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.htpa-perm-summary>div{background:#fff;border:1px solid #e1e7ee;border-radius:9px;padding:11px 12px}.htpa-perm-summary span{display:block;font-size:10px;color:#7b8797}.htpa-perm-summary strong{font-size:19px}
.htpa-perm-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.htpa-perm-group{background:#fff;border:1px solid #e1e7ee;border-radius:10px;overflow:hidden}
.htpa-perm-group-head{display:flex;justify-content:space-between;padding:10px 11px;background:#f8fafc;border-bottom:1px solid #e8edf3}.htpa-perm-group-head span{font-size:9px;color:#8793a2}
.htpa-perm-features{padding:4px 10px}.htpa-perm-feature{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid #edf1f5;cursor:pointer}.htpa-perm-feature:last-child{border-bottom:0}
.htpa-perm-feature b{display:block;font-size:10px}.htpa-perm-feature small{display:block;color:#8b96a5;font-size:9px}.htpa-perm-feature.locked{opacity:.52;cursor:not-allowed}
.htpa-perm-toggle-wrap{display:flex;align-items:center;gap:7px}.htpa-perm-toggle-wrap em{font-style:normal;font-size:8px;background:#f0f2f5;color:#798493;padding:3px 5px;border-radius:10px}.htpa-perm-toggle-wrap input{position:absolute;opacity:0;pointer-events:none}
.htpa-perm-switch{width:34px;height:19px;border-radius:20px;background:#d8dee6;position:relative}.htpa-perm-switch:after{content:'';position:absolute;width:15px;height:15px;top:2px;left:2px;background:#fff;border-radius:50%;transition:.18s}
.htpa-perm-toggle-wrap input:checked + .htpa-perm-switch{background:#ff7417}.htpa-perm-toggle-wrap input:checked + .htpa-perm-switch:after{transform:translateX(15px)}
.htpa-perm-sticky-save{position:sticky;bottom:8px;z-index:20;margin-top:12px;background:rgba(255,255,255,.96);border:1px solid #dfe6ee;border-radius:10px;padding:10px 12px;display:flex;justify-content:space-between;align-items:center}
.htpa-error-box{background:#fff3f3;color:#bd3030;border:1px solid #efc1c1;border-radius:8px;padding:12px}
@media(max-width:900px){.htpa-perm-groups{grid-template-columns:1fr}.htpa-perm-summary{grid-template-columns:1fr 1fr}.htpa-perm-toolbar,.htpa-perm-sticky-save{flex-direction:column;align-items:flex-start;gap:8px}}

/* HTPOS_PERMISSION_ADMIN_FULL_CSS_V1 */
.htpa-perm-admin-full{display:flex;gap:14px;background:#fff;border:1px solid #dce9df;border-radius:12px;padding:20px;box-shadow:0 4px 16px rgba(15,23,42,.04)}
.htpa-perm-admin-icon{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e9fbf0;color:#16884d;font-size:22px;font-weight:900;flex:0 0 auto}
.htpa-perm-admin-full h3{margin:1px 0 5px;font-size:16px;color:#1f2a38}
.htpa-perm-admin-full p{margin:0;color:#687588;font-size:11px;line-height:1.55}
.htpa-perm-admin-stats{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.htpa-perm-admin-stats span{background:#f5f8fb;border:1px solid #e2e8ef;border-radius:18px;padding:6px 10px;font-size:10px;color:#59677a}
/* HTPOS_ORDER_ADMIN_FULL_CSS_V1 */
.htpa-order-admin-full-v1{padding-bottom:30px}.htpa-order-page-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.htpa-order-page-head h2{margin:0 0 3px;font-size:21px}.htpa-order-page-head p{margin:0;color:#758295;font-size:11px}.htpa-order-count{background:#fff3e9;color:#db650f;border:1px solid #ffd9bb;border-radius:18px;padding:6px 11px;font-size:10px;font-weight:800}.htpa-order-filter{display:grid;grid-template-columns:1fr 190px;gap:8px;margin-bottom:10px}.htpa-order-filter input,.htpa-order-filter select,.htpa-order-form input,.htpa-order-form select,.htpa-order-form textarea{width:100%;box-sizing:border-box;border:1px solid #dce4ec;border-radius:8px;background:#fff;padding:9px 10px}.htpa-order-card,.htpa-order-section{background:#fff;border:1px solid #e1e7ee;border-radius:11px;padding:10px}.htpa-order-table-wrap{overflow:auto}.htpa-order-table-wrap table{width:100%;border-collapse:collapse}.htpa-order-table-wrap th,.htpa-order-table-wrap td{padding:9px 8px;border-bottom:1px solid #edf1f5;text-align:left;font-size:10px;white-space:nowrap}.htpa-order-table-wrap th{background:#f8fafc;color:#536174}.htpa-order-table-wrap td small{display:block;color:#8a96a5}.htpa-order-table-wrap button{border:1px solid #ffd2ad;background:#fff7f0;color:#df680e;border-radius:7px;padding:6px 9px;font-weight:700}.htpa-order-modal-backdrop{position:fixed;z-index:999999;inset:0;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:20px}.htpa-order-modal{width:min(980px,96vw);max-height:92vh;overflow:auto;background:#f7f9fc;border-radius:14px;padding:15px}.htpa-order-modal-head{display:flex;justify-content:space-between;background:#fff;border-radius:10px;padding:12px;margin-bottom:10px}.htpa-order-modal-head h2{margin:0;font-size:19px}.htpa-order-modal-head p{margin:3px 0 0;color:#7a8798;font-size:10px}.htpa-order-modal-head button{border:0;background:#f0f2f5;border-radius:7px;width:30px;height:30px}.htpa-order-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.htpa-order-detail-grid>div{background:#fff;border:1px solid #e3e9ef;border-radius:9px;padding:10px}.htpa-order-detail-grid span{display:block;color:#7d8998;font-size:9px}.htpa-order-section{margin-bottom:10px}.htpa-order-section h3{margin:0 0 8px;font-size:13px}.htpa-order-totals{margin-left:auto;width:min(420px,100%);background:#fff;border:1px solid #e2e8ef;border-radius:10px;padding:10px;margin-bottom:10px}.htpa-order-totals>div{display:flex;justify-content:space-between;padding:5px 0;font-size:10px}.htpa-order-totals .grand{font-size:13px;border-top:1px solid #e6ebf0;margin-top:4px;padding-top:9px}.htpa-order-modal-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;background:#fff;border-radius:10px;padding:10px;position:sticky;bottom:0}.htpa-order-modal-actions button{border:1px solid #dce3ea;background:#fff;border-radius:8px;padding:8px 12px;font-weight:700}.htpa-order-modal-actions .primary{background:#ff7417;border-color:#ff7417;color:#fff}.htpa-order-modal-actions .vat{background:#1687e8;border-color:#1687e8;color:#fff}.htpa-order-modal-actions .danger{background:#fff1f1;border-color:#f1b8b8;color:#c93434}.htpa-order-form{display:grid;grid-template-columns:1fr 1fr;gap:9px;background:#fff;border-radius:10px;padding:12px;margin-bottom:10px}.htpa-order-form label{font-size:10px;font-weight:700}.htpa-order-form label.full{grid-column:1/-1}
@media(max-width:800px){.htpa-order-detail-grid{grid-template-columns:1fr 1fr}.htpa-order-form{grid-template-columns:1fr}.htpa-order-form label.full{grid-column:auto}.htpa-order-filter{grid-template-columns:1fr}}

/* HTPOS_ORDER_VAT_FILTER_SEPARATE_V201_CSS */
.htpa-order-vat-filter-v201{
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid #e1e7ee;
  border-radius:10px;
  padding:9px 12px;
  margin:0 0 10px;
}

.htpa-order-vat-filter-label{
  font-size:10px;
  font-weight:800;
  color:#354255;
  white-space:nowrap;
}

.htpa-order-vat-filter-buttons{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.htpa-order-vat-filter-buttons button{
  border:1px solid #e0e6ed;
  background:#fff;
  color:#667386;
  border-radius:8px;
  padding:6px 10px;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}

.htpa-order-vat-filter-buttons button:hover{
  border-color:#ffbc86;
  background:#fff8f2;
}

.htpa-order-vat-filter-buttons button.active{
  border-color:#ff7417;
  background:#ff7417;
  color:#fff;
  box-shadow:0 3px 8px rgba(255,116,23,.18);
}

/* Không để legacy VAT toolbar chen vào phần header/bảng đơn hàng */
.htpa-order-admin-full-v1 .htpa-vat-filter:not(.htpa-order-vat-filter-v201),
.htpa-order-admin-full-v1 .vat-filter:not(.htpa-order-vat-filter-v201),
.htpa-order-admin-full-v1 .vat-rate-filter:not(.htpa-order-vat-filter-v201){
  display:none !important;
}

@media(max-width:700px){
  .htpa-order-vat-filter-v201{
    align-items:flex-start;
    flex-direction:column;
    gap:7px;
  }
}

/* HTPOS_STATISTICS_CHART_INTERACTION_V1_CSS */
.htpa-statistics-dashboard-v1 .htpa-stats-line-svg,
.htpa-statistics-dashboard-v1 .htpa-stats-bars,
.htpa-statistics-dashboard-v1 [data-htpa-chart-donut="1"]{
  cursor:crosshair;
}

.htpa-statistics-dashboard-v1 .htpa-stats-line-svg circle{
  transition:r .12s ease,stroke-width .12s ease,filter .12s ease;
}

.htpa-statistics-dashboard-v1 .htpa-stats-line-svg circle:hover,
.htpa-statistics-dashboard-v1 .htpa-stats-line-svg circle.htpa-chart-selected-v1{
  r:6.5px;
  stroke-width:3 !important;
  filter:drop-shadow(0 2px 4px rgba(255,116,23,.28));
}

.htpa-statistics-dashboard-v1 .htpa-chart-crosshair-v1{
  stroke:#ff7417;
  stroke-width:1;
  stroke-dasharray:4 4;
  vector-effect:non-scaling-stroke;
  opacity:.8;
  pointer-events:none;
}

.htpa-statistics-dashboard-v1 .htpa-stats-bars rect{
  transition:opacity .12s ease,filter .12s ease,transform .12s ease;
  cursor:pointer;
  transform-box:fill-box;
  transform-origin:center bottom;
}

.htpa-statistics-dashboard-v1 .htpa-stats-bars rect:hover,
.htpa-statistics-dashboard-v1 .htpa-stats-bars rect.htpa-chart-selected-v1{
  opacity:1;
  filter:drop-shadow(0 2px 4px rgba(15,23,42,.2));
  transform:scaleY(1.03);
}

.htpa-statistics-dashboard-v1 [data-htpa-chart-donut="1"]{
  transition:transform .15s ease,filter .15s ease;
}

.htpa-statistics-dashboard-v1 [data-htpa-chart-donut="1"]:hover,
.htpa-statistics-dashboard-v1 [data-htpa-chart-donut="1"].htpa-chart-selected-v1{
  transform:scale(1.035);
  filter:drop-shadow(0 5px 12px rgba(15,23,42,.15));
}

.htpa-chart-tooltip-v1{
  position:absolute;
  z-index:30;
  width:190px;
  pointer-events:none;
  background:rgba(20,28,40,.96);
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  border-radius:9px;
  padding:9px 10px;
  box-shadow:0 10px 28px rgba(15,23,42,.22);
  font-size:10px;
  line-height:1.35;
  backdrop-filter:blur(5px);
}

.htpa-chart-tooltip-v1[hidden]{
  display:none !important;
}

.htpa-chart-tip-title{
  font-weight:800;
  font-size:11px;
  padding-bottom:6px;
  margin-bottom:5px;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.htpa-chart-tip-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:3px 0;
}

.htpa-chart-tip-row span{
  color:#d2dae5;
}

.htpa-chart-tip-row b{
  color:#fff;
  font-size:11px;
  white-space:nowrap;
}

.htpa-chart-tip-pinned{
  margin-top:6px;
  padding-top:5px;
  border-top:1px solid rgba(255,255,255,.1);
  color:#ffb276;
  font-size:9px;
}

@media(max-width:700px){
  .htpa-chart-tooltip-v1{
    width:165px;
    font-size:9px;
  }
}

/* HTPOS_CUSTOMER_SUPPLIER_FULL_CRUD_V1_CSS */
.htpa-customer-supplier-v1{padding-bottom:28px}
.htpa-cs-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:12px}
.htpa-cs-page-head h2{margin:0 0 3px;font-size:21px}.htpa-cs-page-head p{margin:0;color:#738094;font-size:11px}
.htpa-cs-page-head button{border:0;background:#ff7417;color:#fff;border-radius:8px;padding:9px 12px;font-weight:800;cursor:pointer}
.htpa-cs-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}
.htpa-cs-summary>div{background:#fff;border:1px solid #e2e8ef;border-radius:10px;padding:11px}
.htpa-cs-summary span{display:block;color:#7b8797;font-size:9px}.htpa-cs-summary b{display:block;font-size:18px;margin-top:3px}
.htpa-cs-filter{display:grid;grid-template-columns:1fr 190px 190px;gap:8px;margin-bottom:10px}
.htpa-cs-filter input,.htpa-cs-filter select,.htpa-cs-form input,.htpa-cs-form select,.htpa-cs-form textarea{width:100%;box-sizing:border-box;border:1px solid #dce4ec;border-radius:8px;background:#fff;padding:9px 10px}
.htpa-cs-card{background:#fff;border:1px solid #e1e7ee;border-radius:11px;padding:10px}.htpa-cs-table-wrap{overflow:auto}.htpa-cs-table-wrap table{width:100%;border-collapse:collapse}
.htpa-cs-table-wrap th,.htpa-cs-table-wrap td{padding:9px 8px;border-bottom:1px solid #edf1f5;text-align:left;font-size:10px;white-space:nowrap}
.htpa-cs-table-wrap th{background:#f8fafc;color:#566375}.htpa-cs-table-wrap td small{display:block;color:#8a96a5;margin-top:2px}.htpa-cs-table-wrap .empty{text-align:center;padding:25px;color:#8792a2}
.htpa-cs-table-wrap .actions{display:flex;gap:5px}.htpa-cs-table-wrap .actions button{border:1px solid #dce4ec;background:#fff;border-radius:7px;padding:5px 8px;cursor:pointer;font-weight:700}
.htpa-cs-table-wrap .actions .danger{color:#bf3434;border-color:#efc7c7;background:#fff7f7}.htpa-cs-table-wrap .actions .restore{color:#17854d;border-color:#bfe4cf;background:#f5fff9}
.htpa-cs-table-wrap .status{display:inline-block;border-radius:14px;padding:4px 8px;font-weight:700}.htpa-cs-table-wrap .status.active{background:#eafaf0;color:#17854d}.htpa-cs-table-wrap .status.inactive{background:#f2f4f7;color:#748091}
.htpa-cs-modal-backdrop{position:fixed;z-index:999999;inset:0;background:rgba(15,23,42,.46);display:flex;align-items:center;justify-content:center;padding:18px}
.htpa-cs-modal{width:min(1000px,96vw);max-height:92vh;overflow:auto;background:#f6f8fb;border-radius:14px;box-shadow:0 28px 80px rgba(0,0,0,.24);padding:14px}
.htpa-cs-modal-head{display:flex;justify-content:space-between;align-items:flex-start;background:#fff;border-radius:10px;padding:12px;margin-bottom:9px}.htpa-cs-modal-head h2{margin:0;font-size:18px}.htpa-cs-modal-head p{margin:3px 0 0;color:#7b8797;font-size:10px}.htpa-cs-modal-head>button{border:0;background:#f0f2f5;border-radius:7px;width:30px;height:30px;cursor:pointer}
.htpa-cs-form section{background:#fff;border:1px solid #e3e8ee;border-radius:10px;padding:11px;margin-bottom:9px}.htpa-cs-form h3{font-size:12px;margin:0 0 9px}.htpa-cs-form .grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.htpa-cs-form label{font-size:10px;font-weight:700}.htpa-cs-form label.full{grid-column:1/-1}.htpa-cs-form input,.htpa-cs-form select,.htpa-cs-form textarea{margin-top:4px}
.htpa-cs-actions{position:sticky;bottom:0;background:#fff;border-radius:10px;padding:10px;display:flex;justify-content:flex-end;gap:7px}.htpa-cs-actions button{border:1px solid #dce4ec;background:#fff;border-radius:8px;padding:8px 12px;font-weight:800;cursor:pointer}.htpa-cs-actions .primary{background:#ff7417;border-color:#ff7417;color:#fff}
.htpa-cs-error{background:#fff5f5;border:1px solid #efc9c9;border-radius:10px;padding:14px;color:#b73333}
@media(max-width:850px){.htpa-cs-summary{grid-template-columns:1fr 1fr}.htpa-cs-filter{grid-template-columns:1fr}.htpa-cs-form .grid{grid-template-columns:1fr}.htpa-cs-form label.full{grid-column:auto}}

/* HTPOS_CRM_FOOTER_CANONICAL_SINGLE_RUNTIME_V220_CSS */
.htpa-crm-style-footer-v220{
  box-sizing:border-box;
  width:100%;
  margin-top:24px;
  position:relative;
  z-index:1;
  overflow:visible;
  background:linear-gradient(90deg,#fff7ef 0%,#fff 45%,#f6f8fb 100%);
  border-top:1px solid rgba(15,23,42,.08);
}

.htpa-crm-style-footer-v220 .htpa-crm-footer-inner{
  width:100%;
  min-height:58px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 24px;
}

.htpa-crm-style-footer-v220 .htpa-crm-footer-left{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  min-width:0;
  white-space:nowrap;
  font-size:13px;
  line-height:1.4;
}

.htpa-crm-style-footer-v220 .htpa-crm-footer-right{
  display:block;
  flex:0 0 auto;
  white-space:nowrap;
  font-size:13px;
  line-height:1.4;
}

@media(max-width:900px){
  .htpa-crm-style-footer-v220 .htpa-crm-footer-inner{
    padding:14px 16px;
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
  }

  .htpa-crm-style-footer-v220 .htpa-crm-footer-left,
  .htpa-crm-style-footer-v220 .htpa-crm-footer-right{
    white-space:normal;
  }
}


/* HTPOS_STATS_LIGHT_STABLE_CHART_V226 */
/* Canonical light theme for Statistics & Reports */
.htpa-statistics-dashboard-v1{
  color:#172033 !important;
  background:transparent !important;
}

/* Main performance hero */
.htpa-statistics-dashboard-v1 .htpa-stats-hero{
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%) !important;
  color:#172033 !important;
  border:1px solid #dfe7f0 !important;
  box-shadow:0 6px 20px rgba(15,23,42,.055) !important;
}

/* KPI cards */
.htpa-statistics-dashboard-v1 .htpa-stats-kpi-grid .kpi{
  background:#ffffff !important;
  color:#172033 !important;
  border:1px solid #dfe7f0 !important;
  box-shadow:0 2px 9px rgba(15,23,42,.035) !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-kpi-grid .kpi span{
  color:#64748b !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-kpi-grid .kpi strong{
  color:#111827 !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-kpi-grid .kpi small{
  color:#15965b !important;
}

/* Main chart + overview use the same light surface */
.htpa-statistics-dashboard-v1 .htpa-stats-chart-panel,
.htpa-statistics-dashboard-v1 .htpa-stats-overview-panel{
  position:relative !important;
  box-sizing:border-box !important;
  background:#ffffff !important;
  color:#172033 !important;
  border:1px solid #dfe7f0 !important;
  box-shadow:0 2px 9px rgba(15,23,42,.035) !important;
}

/*
 * Fixed hero-row geometry.
 * Chart interaction/tooltip must NEVER change the panel height.
 */
.htpa-statistics-dashboard-v1 .htpa-stats-hero-grid{
  align-items:stretch !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-chart-panel,
.htpa-statistics-dashboard-v1 .htpa-stats-overview-panel{
  height:310px !important;
  min-height:310px !important;
  max-height:310px !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-chart-panel{
  overflow:hidden !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-overview-panel{
  overflow:auto !important;
}

/* Chart itself stays fixed even after click/pin */
.htpa-statistics-dashboard-v1 .htpa-stats-line-svg{
  display:block !important;
  width:100% !important;
  height:230px !important;
  min-height:230px !important;
  max-height:230px !important;
  background:transparent !important;
}

/* HT POS brand orange on light chart */
.htpa-statistics-dashboard-v1 .htpa-stats-line-svg path[fill="none"]{
  stroke:#f97316 !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-line-svg circle{
  fill:#ffffff !important;
  stroke:#f97316 !important;
  stroke-width:2 !important;
}

/* Titles / legends / axis */
.htpa-statistics-dashboard-v1 .htpa-stats-chart-panel .panel-title,
.htpa-statistics-dashboard-v1 .htpa-stats-overview-panel .panel-title{
  color:#172033 !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-chart-panel .panel-title strong,
.htpa-statistics-dashboard-v1 .htpa-stats-chart-panel .panel-title b,
.htpa-statistics-dashboard-v1 .htpa-stats-overview-panel .panel-title strong{
  color:#172033 !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-chart-panel .legend,
.htpa-statistics-dashboard-v1 .htpa-stats-chart-panel .axis-labels{
  color:#64748b !important;
}

/* Overview table */
.htpa-statistics-dashboard-v1 .htpa-stats-overview-panel table{
  color:#172033 !important;
  background:#ffffff !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-overview-panel th{
  color:#475569 !important;
  background:#f8fafc !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-overview-panel th,
.htpa-statistics-dashboard-v1 .htpa-stats-overview-panel td{
  border-bottom:1px solid #e7edf4 !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-overview-panel button{
  color:#334155 !important;
  background:#ffffff !important;
  border:1px solid #dbe3ec !important;
}

/*
 * Interactive chart popup/detail must be overlay-only.
 * Existing chart interaction code can keep calculating left/top;
 * CSS guarantees it does not participate in normal layout.
 */
.htpa-statistics-dashboard-v1 [class*="htpa-chart-tip"]{
  position:absolute !important;
  z-index:100 !important;
  box-sizing:border-box !important;
  width:max-content !important;
  min-width:170px !important;
  max-width:min(280px,calc(100% - 24px)) !important;
  max-height:190px !important;
  overflow:auto !important;
  margin:0 !important;
  background:#ffffff !important;
  color:#172033 !important;
  border:1px solid #dbe3ec !important;
  border-radius:10px !important;
  box-shadow:0 10px 28px rgba(15,23,42,.16) !important;
  transform:none;
}

.htpa-statistics-dashboard-v1 .htpa-chart-tip-title{
  color:#111827 !important;
  font-weight:700 !important;
}

.htpa-statistics-dashboard-v1 .htpa-chart-tip-row{
  color:#475569 !important;
}

/* Pinned click state remains an overlay; it must never enlarge the card */
.htpa-statistics-dashboard-v1 .htpa-chart-tip-pinned,
.htpa-statistics-dashboard-v1 [class*="htpa-chart-tip"].htpa-chart-tip-pinned{
  position:absolute !important;
  inset:auto !important;
  margin:0 !important;
  max-height:190px !important;
}

/* No selected chart element may alter box metrics */
.htpa-statistics-dashboard-v1 .htpa-chart-selected-v1{
  box-sizing:border-box !important;
  margin:0 !important;
}

/* Secondary statistics cards stay light */
.htpa-statistics-dashboard-v1 .htpa-stats-card{
  background:#ffffff !important;
  color:#172033 !important;
  border-color:#e1e7ee !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-card-head strong{
  color:#172033 !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-card-head small{
  color:#7c8998 !important;
}

/* Responsive: fixed height remains stable but slightly more compact */
@media(max-width:1100px){
  .htpa-statistics-dashboard-v1 .htpa-stats-chart-panel,
  .htpa-statistics-dashboard-v1 .htpa-stats-overview-panel{
    height:300px !important;
    min-height:300px !important;
    max-height:300px !important;
  }
}

@media(max-width:650px){
  .htpa-statistics-dashboard-v1 .htpa-stats-chart-panel,
  .htpa-statistics-dashboard-v1 .htpa-stats-overview-panel{
    height:290px !important;
    min-height:290px !important;
    max-height:290px !important;
  }

  .htpa-statistics-dashboard-v1 [class*="htpa-chart-tip"]{
    max-width:calc(100% - 16px) !important;
  }
}

/* HTPOS_STATISTICS_LAYOUT_TEXT_OVERFLOW_FIX_V1_0_1_START */

/*
 * Layout-only stabilization for Thống kê & Báo cáo.
 * No JavaScript, API, finance formula or database behavior is changed.
 */
.htpa-statistics-dashboard-v1,
.htpa-statistics-dashboard-v1 *{
  box-sizing:border-box;
}

.htpa-statistics-dashboard-v1{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:hidden;
}

/* Let dashboard rows grow with their real content instead of clipping text/tooltips. */
.htpa-statistics-dashboard-v1 .htpa-stats-chart-panel,
.htpa-statistics-dashboard-v1 .htpa-stats-overview-panel{
  height:auto !important;
  min-height:320px !important;
  max-height:none !important;
  min-width:0 !important;
  overflow:visible !important;
}

/* Every grid child is allowed to shrink inside the available page width. */
.htpa-statistics-dashboard-v1 .htpa-stats-page-title,
.htpa-statistics-dashboard-v1 .htpa-stats-toolbar,
.htpa-statistics-dashboard-v1 .htpa-stats-kpi-grid,
.htpa-statistics-dashboard-v1 .htpa-stats-hero-grid,
.htpa-statistics-dashboard-v1 .htpa-stats-filter,
.htpa-statistics-dashboard-v1 .htpa-stats-color-kpis,
.htpa-statistics-dashboard-v1 .htpa-stats-two-col,
.htpa-statistics-dashboard-v1 .htpa-stats-three-grid,
.htpa-statistics-dashboard-v1 .mini-kpis,
.htpa-statistics-dashboard-v1 .cash-pair,
.htpa-statistics-dashboard-v1 .kpi-bars{
  min-width:0 !important;
  max-width:100% !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-kpi-grid{
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
}
.htpa-statistics-dashboard-v1 .htpa-stats-hero-grid{
  grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr) !important;
}
.htpa-statistics-dashboard-v1 .htpa-stats-color-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}
.htpa-statistics-dashboard-v1 .htpa-stats-two-col{
  grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) !important;
}
.htpa-statistics-dashboard-v1 .htpa-stats-three-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr) !important;
}
.htpa-statistics-dashboard-v1 .mini-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}
.htpa-statistics-dashboard-v1 .cash-pair{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
.htpa-statistics-dashboard-v1 .kpi-bars{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}

/* Filters stay balanced and never force the full page wider. */
.htpa-statistics-dashboard-v1 .htpa-stats-filter{
  grid-template-columns:
    minmax(105px,.8fr)
    minmax(120px,.9fr)
    minmax(145px,1fr)
    minmax(145px,1fr)
    minmax(170px,1.35fr)
    minmax(90px,.65fr) !important;
  width:100%;
}
.htpa-statistics-dashboard-v1 .htpa-stats-filter > *{
  min-width:0 !important;
  max-width:100% !important;
}

/* Header and cards can wrap naturally rather than overlap neighboring columns. */
.htpa-statistics-dashboard-v1 .htpa-stats-page-title{
  flex-wrap:wrap !important;
  align-items:flex-start !important;
}
.htpa-statistics-dashboard-v1 .htpa-stats-toolbar{
  justify-content:flex-end;
}
.htpa-statistics-dashboard-v1 .htpa-stats-toolbar button,
.htpa-statistics-dashboard-v1 [data-period]{
  white-space:nowrap !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-card,
.htpa-statistics-dashboard-v1 .htpa-stats-kpi-grid > *,
.htpa-statistics-dashboard-v1 .htpa-stats-color-kpis > *,
.htpa-statistics-dashboard-v1 .mini-kpis > *,
.htpa-statistics-dashboard-v1 .cash-pair > *,
.htpa-statistics-dashboard-v1 .kpi-bars > *{
  min-width:0 !important;
  max-width:100% !important;
}

.htpa-statistics-dashboard-v1 .htpa-stats-card-head{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:8px !important;
  flex-wrap:wrap !important;
  min-width:0 !important;
}
.htpa-statistics-dashboard-v1 .htpa-stats-card-head > div{
  min-width:0 !important;
  flex:1 1 180px;
}
.htpa-statistics-dashboard-v1 .htpa-stats-card-head strong,
.htpa-statistics-dashboard-v1 .htpa-stats-card-head small,
.htpa-statistics-dashboard-v1 .kpi strong,
.htpa-statistics-dashboard-v1 .kpi small{
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  max-width:100% !important;
  line-height:1.35 !important;
}

/* Keep large figures readable without escaping their KPI cards. */
.htpa-statistics-dashboard-v1 .kpi strong,
.htpa-statistics-dashboard-v1 .htpa-stats-kpi-grid strong,
.htpa-statistics-dashboard-v1 .htpa-stats-color-kpis strong{
  font-size:clamp(16px,1.55vw,24px) !important;
}

/* Chart surfaces remain fluid. */
.htpa-statistics-dashboard-v1 svg,
.htpa-statistics-dashboard-v1 canvas{
  display:block;
  width:100% !important;
  max-width:100% !important;
}
.htpa-statistics-dashboard-v1 svg text{
  font-size:9px;
}

/* Axis labels may shrink, but must never push outside the chart card. */
.htpa-statistics-dashboard-v1 .axis-labels{
  width:100%;
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
}
.htpa-statistics-dashboard-v1 .axis-labels > *{
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

/* Financial tooltip: compact light card, readable content, never a long black strip. */
.htpa-statistics-dashboard-v1 .htpa-chart-tooltip-v1{
  position:absolute !important;
  z-index:120 !important;
  width:max-content !important;
  min-width:180px !important;
  max-width:min(300px,calc(100% - 20px)) !important;
  max-height:240px !important;
  overflow:auto !important;
  padding:10px 12px !important;
  border:1px solid #dfe6ee !important;
  border-radius:11px !important;
  background:#fff !important;
  color:#172033 !important;
  box-shadow:0 12px 32px rgba(15,23,42,.16) !important;
  white-space:normal !important;
  pointer-events:none !important;
}
.htpa-statistics-dashboard-v1 .htpa-chart-tip-title{
  color:#172033 !important;
  font-weight:800 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}
.htpa-statistics-dashboard-v1 .htpa-chart-tip-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:12px !important;
  align-items:start !important;
  min-width:0 !important;
}
.htpa-statistics-dashboard-v1 .htpa-chart-tip-row span{
  min-width:0 !important;
  color:#6b7788 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}
.htpa-statistics-dashboard-v1 .htpa-chart-tip-row b{
  color:#172033 !important;
  white-space:nowrap !important;
  text-align:right !important;
}
.htpa-statistics-dashboard-v1 .htpa-chart-tip-pinned{
  white-space:normal !important;
}

/* Detailed tables scroll inside their own card rather than stretching the dashboard. */
.htpa-statistics-dashboard-v1 .htpa-stats-table-wrap{
  width:100% !important;
  max-width:100% !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  -webkit-overflow-scrolling:touch;
}
.htpa-statistics-dashboard-v1 .htpa-stats-table{
  width:100% !important;
  min-width:640px;
}
.htpa-statistics-dashboard-v1 .htpa-stats-table th,
.htpa-statistics-dashboard-v1 .htpa-stats-table td{
  vertical-align:top !important;
}

/* Medium screens: reflow before text starts touching neighboring cards. */
@media(max-width:1280px){
  .htpa-statistics-dashboard-v1 .htpa-stats-filter{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  .htpa-statistics-dashboard-v1 .htpa-stats-three-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* Tablet: one main chart per row, two-column KPI/filter layout. */
@media(max-width:1100px){
  .htpa-statistics-dashboard-v1 .htpa-stats-chart-panel,
  .htpa-statistics-dashboard-v1 .htpa-stats-overview-panel{
    height:auto !important;
    min-height:300px !important;
    max-height:none !important;
  }
  .htpa-statistics-dashboard-v1 .htpa-stats-hero-grid,
  .htpa-statistics-dashboard-v1 .htpa-stats-two-col,
  .htpa-statistics-dashboard-v1 .htpa-stats-three-grid{
    grid-template-columns:1fr !important;
  }
  .htpa-statistics-dashboard-v1 .htpa-stats-kpi-grid,
  .htpa-statistics-dashboard-v1 .htpa-stats-color-kpis,
  .htpa-statistics-dashboard-v1 .mini-kpis,
  .htpa-statistics-dashboard-v1 .cash-pair,
  .htpa-statistics-dashboard-v1 .kpi-bars,
  .htpa-statistics-dashboard-v1 .htpa-stats-filter{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* Mobile: no fixed panel height and no horizontal page overflow. */
@media(max-width:650px){
  .htpa-statistics-dashboard-v1{
    overflow-x:hidden !important;
  }
  .htpa-statistics-dashboard-v1 .htpa-stats-page-title{
    display:block !important;
  }
  .htpa-statistics-dashboard-v1 .htpa-stats-toolbar{
    margin-top:10px !important;
    justify-content:flex-start !important;
  }
  .htpa-statistics-dashboard-v1 .htpa-stats-kpi-grid,
  .htpa-statistics-dashboard-v1 .htpa-stats-color-kpis,
  .htpa-statistics-dashboard-v1 .mini-kpis,
  .htpa-statistics-dashboard-v1 .cash-pair,
  .htpa-statistics-dashboard-v1 .kpi-bars,
  .htpa-statistics-dashboard-v1 .htpa-stats-filter{
    grid-template-columns:1fr !important;
  }
  .htpa-statistics-dashboard-v1 .htpa-stats-chart-panel,
  .htpa-statistics-dashboard-v1 .htpa-stats-overview-panel{
    height:auto !important;
    min-height:280px !important;
    max-height:none !important;
  }
  .htpa-statistics-dashboard-v1 .htpa-chart-tooltip-v1{
    min-width:0 !important;
    width:calc(100% - 16px) !important;
    max-width:calc(100% - 16px) !important;
  }
}

/* HTPOS_STATISTICS_LAYOUT_TEXT_OVERFLOW_FIX_V1_0_1_END */

/* HTPOS_STAT_UI_V102_CSS_START */

/* =========================================================
   PERFORMANCE HEADER
   ========================================================= */

.htpos-stat-performance-bar{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:16px!important;
    min-width:0!important;
}

.htpos-stat-performance-title{
    flex:1 1 auto!important;
    min-width:220px!important;
    margin:0!important;
}

.htpos-stat-filter-controls{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:flex-end!important;
    justify-content:flex-end!important;
    gap:8px!important;
    min-width:0!important;
    max-width:100%!important;
}

.htpos-stat-filter-controls>*{
    min-width:0!important;
    margin-top:0!important;
    margin-bottom:0!important;
}

.htpos-stat-period-group,
.htpos-stat-date-group{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:flex-end!important;
    gap:6px!important;
}

/* =========================================================
   REVENUE / COST / PROFIT CHART
   ========================================================= */

.htpos-stat-chart-card{
    position:relative!important;
    align-self:start!important;

    height:auto!important;
    min-height:0!important;
    max-height:none!important;

    overflow:visible!important;

    padding-bottom:12px!important;
}

.htpos-stat-chart-card canvas{
    max-height:250px!important;
}

.htpos-stat-chart-plot{
    position:relative!important;

    height:250px!important;
    min-height:220px!important;
    max-height:270px!important;

    overflow:hidden!important;
}

.htpos-stat-chart-plot canvas,
.htpos-stat-chart-plot svg{
    position:relative!important;
    z-index:2!important;
    max-height:250px!important;
}

/* Watermark */
.htpos-stat-chart-watermark{
    position:absolute!important;

    left:50%!important;
    top:50%!important;

    transform:
        translate(-50%,-50%)
        rotate(-10deg)!important;

    z-index:1!important;

    pointer-events:none!important;
    user-select:none!important;

    white-space:nowrap!important;

    font-size:clamp(38px,5vw,72px)!important;
    line-height:1!important;
    font-weight:800!important;
    letter-spacing:.08em!important;

    color:currentColor!important;
    opacity:.055!important;
}

.htpos-stat-detail-block{
    margin-top:8px!important;
    margin-bottom:0!important;
}

/* =========================================================
   OVERVIEW CARD
   ========================================================= */

.htpos-stat-overview-card{
    box-sizing:border-box!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    height:auto!important;

    overflow-x:hidden!important;
    overflow-y:visible!important;

    flex:1 1 auto!important;
    align-self:start!important;
}

.htpos-stat-overview-card *{
    box-sizing:border-box!important;
}

.htpos-stat-overview-card table{
    width:100%!important;
    max-width:100%!important;
    table-layout:fixed!important;
}

.htpos-stat-overview-card th,
.htpos-stat-overview-card td{
    min-width:0!important;
    overflow-wrap:anywhere!important;
}

.htpos-stat-overview-card th:last-child,
.htpos-stat-overview-card td:last-child{
    width:112px!important;
    text-align:right!important;
    white-space:nowrap!important;
}

.htpos-stat-overview-subtitle{
    display:block!important;

    max-width:100%!important;

    overflow-wrap:anywhere!important;

    margin-bottom:10px!important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1180px){

    .htpos-stat-performance-bar{
        flex-wrap:wrap!important;
    }

    .htpos-stat-filter-controls{
        width:100%!important;
        justify-content:flex-start!important;
        flex-wrap:wrap!important;
    }
}

@media(max-width:767px){

    .htpos-stat-performance-bar{
        display:block!important;
    }

    .htpos-stat-filter-controls,
    .htpos-stat-period-group,
    .htpos-stat-date-group{
        width:100%!important;
        flex-wrap:wrap!important;
        justify-content:flex-start!important;
    }

    .htpos-stat-chart-plot{
        height:220px!important;
        min-height:200px!important;
        max-height:230px!important;
    }

    .htpos-stat-chart-plot canvas,
    .htpos-stat-chart-plot svg{
        max-height:220px!important;
    }

    .htpos-stat-chart-watermark{
        font-size:clamp(32px,12vw,52px)!important;
        opacity:.05!important;
    }
}

/* HTPOS_STAT_UI_V102_CSS_END */

/* HTPOS_STAT_UI_V103_CSS_START */

.htpos-v103-performance-row {
    display: grid !important;
    grid-template-columns: minmax(230px, 270px) minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.htpos-v103-performance-title {
    min-width: 0 !important;
    max-width: 270px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.htpos-v103-performance-title h1,
.htpos-v103-performance-title h2,
.htpos-v103-performance-title h3,
.htpos-v103-performance-title h4,
.htpos-v103-performance-title h5 {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}

.htpos-v103-controls {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.htpos-v103-period-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.htpos-v103-period-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 60px !important;
    max-width: none !important;
    height: 42px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    line-height: 1.1 !important;
}

.htpos-v103-date-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.htpos-v103-date-field {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.htpos-v103-date-field label,
.htpos-v103-date-field .form-label {
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

.htpos-v103-date-field input[type="date"] {
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    height: 38px !important;
    margin: 0 !important;
    padding-left: 7px !important;
    padding-right: 5px !important;
    font-size: 11px !important;
}

.htpos-v103-filter-button {
    flex: 0 0 auto !important;
    min-width: 46px !important;
    width: auto !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
}

.htpos-v103-range-text {
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 0 0 2px !important;
    padding: 0 !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
}

.htpos-v103-main-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 310px) !important;
    align-items: start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.htpos-v103-main-row > * {
    min-width: 0 !important;
    align-self: start !important;
}

.htpos-v103-chart-card {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: start !important;
    overflow: hidden !important;
}

.htpos-v103-chart-plot {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 285px !important;
    min-height: 285px !important;
    max-height: 285px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.htpos-v103-chart-plot > .htpos-stat-chart-watermark {
    display: none !important;
}

.htpos-v103-chart-plot::before {
    content: "HT POS" !important;
    position: absolute !important;
    left: 50% !important;
    top: 52% !important;
    transform: translate(-50%, -50%) rotate(-9deg) !important;
    display: block !important;
    z-index: 10 !important;
    pointer-events: none !important;
    user-select: none !important;
    white-space: nowrap !important;
    font-size: clamp(42px, 5vw, 68px) !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .10em !important;
    color: currentColor !important;
    opacity: .055 !important;
}

.htpos-v103-chart-plot canvas {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: 100% !important;
    height: 285px !important;
    min-height: 285px !important;
    max-height: 285px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.htpos-v103-chart-card .htpos-stat-detail-block {
    margin-top: 6px !important;
}

.htpos-v103-overview {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    align-self: start !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.htpos-v103-overview,
.htpos-v103-overview * {
    box-sizing: border-box !important;
}

.htpos-v103-overview table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.htpos-v103-overview th,
.htpos-v103-overview td {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: middle !important;
}

.htpos-v103-overview th:first-child,
.htpos-v103-overview td:first-child {
    width: auto !important;
    text-align: left !important;
}

.htpos-v103-overview th:last-child,
.htpos-v103-overview td:last-child {
    width: 96px !important;
    text-align: right !important;
    white-space: nowrap !important;
}

.htpos-v103-canonical {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 2px 0 10px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
}

.htpos-v103-vat-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.htpos-v103-vat-row button,
.htpos-v103-vat-row [role="button"] {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

@media (max-width: 960px) {
    .htpos-v103-performance-row {
        grid-template-columns: 1fr !important;
        row-gap: 10px !important;
    }

    .htpos-v103-performance-title {
        max-width: none !important;
    }

    .htpos-v103-controls {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    .htpos-v103-main-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 700px) {
    .htpos-v103-period-group,
    .htpos-v103-date-group {
        flex-wrap: wrap !important;
    }

    .htpos-v103-controls {
        align-items: flex-start !important;
    }

    .htpos-v103-date-field {
        flex-wrap: nowrap !important;
    }

    .htpos-v103-range-text {
        width: 100% !important;
        margin-top: 4px !important;
    }

    .htpos-v103-chart-plot,
    .htpos-v103-chart-plot canvas {
        height: 235px !important;
        min-height: 235px !important;
        max-height: 235px !important;
    }

    .htpos-v103-chart-plot::before {
        font-size: clamp(34px, 12vw, 52px) !important;
    }
}

/* HTPOS_STAT_UI_V103_CSS_END */

/* HTPOS_STAT_UI_V105_CSS_START */

/* ===== SAFE UI/UX REDESIGN: HEADER ===== */

.htpos-v105-title-row{
    display:grid!important;
    grid-template-columns:minmax(240px,320px) minmax(0,1fr)!important;
    gap:16px!important;
    align-items:start!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0 0 14px 0!important;
}

.htpos-v105-title-box{
    min-width:0!important;
    margin:0!important;
    padding:0!important;
}

.htpos-v105-title-box h1,
.htpos-v105-title-box h2,
.htpos-v105-title-box h3,
.htpos-v105-title-box h4,
.htpos-v105-title-box h5{
    margin:0 0 4px 0!important;
    line-height:1.18!important;
    font-weight:800!important;
    letter-spacing:-.02em!important;
}

.htpos-v105-subtitle-hidden{
    display:none!important;
}

.htpos-v105-controls{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    min-width:0!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
}

.htpos-v105-period-group,
.htpos-v105-date-group{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:8px!important;
    min-width:0!important;
}

.htpos-v105-period-button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:78px!important;
    height:40px!important;
    padding:0 12px!important;
    border-radius:10px!important;
    white-space:nowrap!important;
}

.htpos-v105-date-field{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    min-width:0!important;
}

.htpos-v105-date-field label,
.htpos-v105-date-field .form-label{
    margin:0!important;
    font-size:11px!important;
    white-space:nowrap!important;
}

.htpos-v105-date-field input[type="date"]{
    width:115px!important;
    min-width:115px!important;
    max-width:115px!important;
    height:38px!important;
    border-radius:8px!important;
}

.htpos-v105-filter-button{
    height:40px!important;
    min-width:50px!important;
    border-radius:10px!important;
    white-space:nowrap!important;
}

.htpos-v105-range-text{
    margin-left:2px!important;
    font-size:11px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    opacity:.8!important;
}

/* ===== SAFE UI/UX REDESIGN: KPI GRID ===== */

.htpos-v105-kpi-row{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:12px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0 0 14px 0!important;
    align-items:stretch!important;
}

.htpos-v105-kpi-card{
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    min-height:98px!important;
    height:100%!important;
    margin:0!important;
    padding:0!important;
    border-radius:14px!important;
    overflow:hidden!important;
    box-shadow:0 8px 24px rgba(15,23,42,.05)!important;
}

.htpos-v105-kpi-card,
.htpos-v105-chart-card,
.htpos-v105-overview-card{
    border:1px solid rgba(15,23,42,.06)!important;
    background:#fff!important;
}

.htpos-v105-kpi-card *{
    box-sizing:border-box!important;
}

.htpos-v105-kpi-card .text-success,
.htpos-v105-kpi-card .value-positive{
    color:#149954!important;
}

.htpos-v105-kpi-card h1,
.htpos-v105-kpi-card h2,
.htpos-v105-kpi-card h3,
.htpos-v105-kpi-card h4,
.htpos-v105-kpi-card h5,
.htpos-v105-kpi-card h6{
    margin-bottom:4px!important;
}

.htpos-v105-kpi-card p,
.htpos-v105-kpi-card small,
.htpos-v105-kpi-card span,
.htpos-v105-kpi-card div{
    overflow-wrap:anywhere!important;
}

/* ===== MAIN CONTENT ===== */

.htpos-v105-main-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(300px,320px)!important;
    gap:14px!important;
    align-items:start!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-top:4px!important;
}

.htpos-v105-chart-card,
.htpos-v105-overview-card{
    min-width:0!important;
    border-radius:16px!important;
    box-shadow:0 8px 24px rgba(15,23,42,.05)!important;
    overflow:hidden!important;
}

.htpos-v105-chart-card{
    padding-bottom:6px!important;
}

.htpos-v105-chart-card .htpos-v103-chart-plot,
.htpos-v105-chart-card .htpos-v103-chart-plot canvas{
    height:300px!important;
    min-height:300px!important;
    max-height:300px!important;
}

.htpos-v105-overview-card{
    position:relative!important;
}

.htpos-v105-overview-card table{
    width:100%!important;
    table-layout:fixed!important;
}

.htpos-v105-overview-card th:last-child,
.htpos-v105-overview-card td:last-child{
    width:96px!important;
    white-space:nowrap!important;
    text-align:right!important;
}

.htpos-v105-overview-card .htpos-v103-canonical{
    margin-bottom:12px!important;
}

.htpos-v105-overview-card .htpos-v103-vat-row{
    gap:8px!important;
    flex-wrap:wrap!important;
}

/* ===== RESPONSIVE ===== */

@media (max-width:1280px){
    .htpos-v105-kpi-row{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
    }
}

@media (max-width:980px){
    .htpos-v105-title-row{
        grid-template-columns:1fr!important;
    }

    .htpos-v105-controls{
        justify-content:flex-start!important;
    }

    .htpos-v105-main-row{
        grid-template-columns:1fr!important;
    }

    .htpos-v105-kpi-row{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}

@media (max-width:640px){
    .htpos-v105-kpi-row{
        grid-template-columns:1fr!important;
    }

    .htpos-v105-chart-card .htpos-v103-chart-plot,
    .htpos-v105-chart-card .htpos-v103-chart-plot canvas{
        height:240px!important;
        min-height:240px!important;
        max-height:240px!important;
    }
}

/* HTPOS_STAT_UI_V105_CSS_END */

/* HTPOS_GLOBAL_BUTTON_THEME_V108_START */

/* Replace black button treatments with blue/orange system-wide */
.btn-dark,
.button-dark,
.bg-dark,
.dark-btn,
a.btn-dark,
button.btn-dark,
input[type="button"].btn-dark,
input[type="submit"].btn-dark,
button.active,
button[aria-pressed="true"],
.btn.active,
.btn.is-active,
.btn.selected,
[role="button"].active,
.tab-active,
.pill-active {
  background:#2563eb !important;
  border-color:#2563eb !important;
  color:#ffffff !important;
  box-shadow:none !important;
}

.btn-warning,
.btn-accent,
.button-accent,
.btn-orange,
.theme-orange-btn,
a.btn-warning,
button.btn-warning {
  background:#f97316 !important;
  border-color:#f97316 !important;
  color:#ffffff !important;
  box-shadow:none !important;
}

/* Keep hover/focus away from black */
.btn-dark:hover,
.button-dark:hover,
.bg-dark:hover,
.dark-btn:hover,
button.active:hover,
.btn.active:hover,
[role="button"].active:hover,
.btn-dark:focus,
.button-dark:focus,
.bg-dark:focus,
.dark-btn:focus,
button.active:focus,
.btn.active:focus,
[role="button"].active:focus {
  background:#1d4ed8 !important;
  border-color:#1d4ed8 !important;
  color:#ffffff !important;
}

.btn-warning:hover,
.btn-accent:hover,
.button-accent:hover,
.btn-orange:hover,
.theme-orange-btn:hover,
.btn-warning:focus,
.btn-accent:focus,
.button-accent:focus,
.btn-orange:focus,
.theme-orange-btn:focus {
  background:#ea580c !important;
  border-color:#ea580c !important;
  color:#ffffff !important;
}

/* HTPOS_GLOBAL_BUTTON_THEME_V108_END */

/* HTPOS_V109_GLOBAL_BUTTON_CSS_START */

.htpos-v109-no-black-button{
  background:#2563eb !important;
  background-image:none !important;
  border-color:#2563eb !important;
  color:#ffffff !important;
  box-shadow:none !important;
}

.htpos-v109-no-black-button:hover,
.htpos-v109-no-black-button:focus,
.htpos-v109-no-black-button:active{
  background:#1d4ed8 !important;
  background-image:none !important;
  border-color:#1d4ed8 !important;
  color:#ffffff !important;
}

.htpa-statistics-dashboard-v1 .fin-presets button.active{
  background:#f97316 !important;
  background-image:none !important;
  border-color:#f97316 !important;
  color:#ffffff !important;
}

.htpa-statistics-dashboard-v1 .htpos-v109-vatbar button.active,
.htpa-statistics-dashboard-v1 .htpos-v109-vatbar button[aria-pressed="true"]{
  background:#2563eb !important;
  background-image:none !important;
  border-color:#2563eb !important;
  color:#ffffff !important;
}

/* HTPOS_V109_GLOBAL_BUTTON_CSS_END */

/* HTPOS_V115_STATISTICS_HIDE_REINJECTED_VAT_CSS_START */

/*
 * ht-vat-v6623.js can re-inject this UI after the finance dashboard renders.
 * Hide the injected VAT UI only inside Statistics.
 */
.htpa-statistics-dashboard-v1 .ht-vat-v6623__label,
.htpa-statistics-dashboard-v1 .ht-vat-v6623__buttons,
.htpa-statistics-dashboard-v1 .ht-vat-v6623__buttons button,
.htpa-statistics-dashboard-v1 [data-vat-filter],
.htpa-statistics-dashboard-v1 .htpa-order-vat-filter-label {
    display: none !important;
}

/* Also hide VAT wrappers created by older statistics-only patches. */
.htpa-statistics-dashboard-v1 .htpos-v109-vatbar,
.htpa-statistics-dashboard-v1 .htpos-v109-vat-title,
.htpa-statistics-dashboard-v1 .htpos-v109-vat-controls,
.htpa-statistics-dashboard-v1 .htpos-v110-vat-inline,
.htpa-statistics-dashboard-v1 .htpos-v111-vat-inline {
    display: none !important;
}

/* HTPOS_V115_STATISTICS_HIDE_REINJECTED_VAT_CSS_END */


/* HTPOS_V118_ORDER_SOURCE_TOOLBAR_CSS_START */

.htpa-order-admin-full-v1{
  overflow-anchor:none !important;
}

.htpa-order-admin-full-v1 .htpa-order-filter-v118{
  display:grid !important;
  grid-template-columns:minmax(320px,1fr) minmax(170px,210px) auto auto !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 0 12px !important;
  padding:0 !important;
  overflow-anchor:none !important;
}

.htpa-order-admin-full-v1 .htpa-order-filter-v118 > input[data-search],
.htpa-order-admin-full-v1 .htpa-order-filter-v118 > select[data-status]{
  width:100% !important;
  min-width:0 !important;
  height:40px !important;
  margin:0 !important;
  border-radius:10px !important;
}

.htpa-order-admin-full-v1 .htpa-order-filter-v118 .htpa-order-vat-filter-v201{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:6px !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.htpa-order-admin-full-v1 .htpa-order-filter-v118 .htpa-order-vat-filter-label{
  flex:0 0 auto !important;
  margin:0 2px 0 0 !important;
  white-space:nowrap !important;
  font-size:11px !important;
}

.htpa-order-admin-full-v1 .htpa-order-filter-v118 .htpa-order-vat-filter-buttons{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:5px !important;
}

.htpa-order-admin-full-v1 .htpa-order-filter-v118 [data-vat-filter]{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  min-width:50px !important;
  height:34px !important;
  margin:0 !important;
  padding:0 8px !important;
  border-radius:8px !important;
  white-space:nowrap !important;
  font-size:11px !important;
}

.htpa-order-admin-full-v1 .htpa-order-filter-v118 [data-vat-filter].active{
  background:#2563eb !important;
  border-color:#2563eb !important;
  color:#fff !important;
}

.htpa-order-admin-full-v1 .htpa-order-filter-v118 .htpa-order-count{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:64px !important;
  height:34px !important;
  margin:0 !important;
  padding:0 10px !important;
  white-space:nowrap !important;
  border-radius:999px !important;
}

.htpa-order-admin-full-v1 .htpa-order-card,
.htpa-order-admin-full-v1 .htpa-order-table-wrap,
.htpa-order-admin-full-v1 .htpa-order-server-pager{
  overflow-anchor:none !important;
}

@media(max-width:1180px){
  .htpa-order-admin-full-v1 .htpa-order-filter-v118{
    grid-template-columns:minmax(260px,1fr) minmax(160px,190px) !important;
  }

  .htpa-order-admin-full-v1 .htpa-order-filter-v118 .htpa-order-vat-filter-v201,
  .htpa-order-admin-full-v1 .htpa-order-filter-v118 .htpa-order-count{
    grid-row:2 !important;
  }

  .htpa-order-admin-full-v1 .htpa-order-filter-v118 .htpa-order-count{
    justify-self:end !important;
  }
}

@media(max-width:720px){
  .htpa-order-admin-full-v1 .htpa-order-filter-v118{
    grid-template-columns:1fr !important;
  }

  .htpa-order-admin-full-v1 .htpa-order-filter-v118 .htpa-order-vat-filter-v201,
  .htpa-order-admin-full-v1 .htpa-order-filter-v118 .htpa-order-count{
    grid-row:auto !important;
  }

  .htpa-order-admin-full-v1 .htpa-order-filter-v118 .htpa-order-count{
    justify-self:start !important;
  }

  .htpa-order-admin-full-v1 .htpa-order-filter-v118 .htpa-order-vat-filter-buttons{
    flex-wrap:wrap !important;
  }
}

/* HTPOS_V118_ORDER_SOURCE_TOOLBAR_CSS_END */

/* HTPOS_V119_ORDER_VAT_TOOLBAR_CSS_START */

.htpa-order-admin-full-v1 .htpa-order-filter-v118{
  grid-template-columns:minmax(360px,1fr) minmax(180px,220px) auto auto !important;
}

.htpa-order-admin-full-v1 .htpa-order-vat-filter-v202{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.htpa-order-admin-full-v1 .htpa-order-vat-filter-v202 .htpa-order-vat-filter-buttons{
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  gap:5px !important;
}

.htpa-order-admin-full-v1 .htpa-order-vat-filter-v202 [data-vat-filter]{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:52px !important;
  width:auto !important;
  height:34px !important;
  margin:0 !important;
  padding:0 9px !important;
  border-radius:8px !important;
  white-space:nowrap !important;
  font-size:11px !important;
}

.htpa-order-admin-full-v1 .htpa-order-vat-filter-v202 [data-vat-filter].active{
  background:#2563eb !important;
  border-color:#2563eb !important;
  color:#fff !important;
}

/* Search is the primary control: wide, single-line, standard 40px height. */
.htpa-order-admin-full-v1 .htpa-order-filter-v118 > input[data-search]{
  min-width:320px !important;
  height:40px !important;
  padding-left:12px !important;
  padding-right:12px !important;
  font-size:13px !important;
}

.htpa-order-admin-full-v1 .htpa-order-filter-v118 > select[data-status]{
  height:40px !important;
  font-size:13px !important;
}

@media(max-width:1180px){
  .htpa-order-admin-full-v1 .htpa-order-filter-v118{
    grid-template-columns:minmax(280px,1fr) minmax(170px,200px) !important;
  }

  .htpa-order-admin-full-v1 .htpa-order-vat-filter-v202,
  .htpa-order-admin-full-v1 .htpa-order-count{
    grid-row:2 !important;
  }
}

@media(max-width:720px){
  .htpa-order-admin-full-v1 .htpa-order-filter-v118{
    grid-template-columns:1fr !important;
  }

  .htpa-order-admin-full-v1 .htpa-order-filter-v118 > input[data-search]{
    min-width:0 !important;
  }

  .htpa-order-admin-full-v1 .htpa-order-vat-filter-v202,
  .htpa-order-admin-full-v1 .htpa-order-count{
    grid-row:auto !important;
  }

  .htpa-order-admin-full-v1 .htpa-order-vat-filter-v202 .htpa-order-vat-filter-buttons{
    flex-wrap:wrap !important;
  }
}

/* HTPOS_V119_ORDER_VAT_TOOLBAR_CSS_END */

/* HTPOS_ORDER_DELETE_V120_CSS_START */

.htpa-order-admin-full-v1 .htpa-order-row-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:6px !important;
  white-space:nowrap !important;
}

.htpa-delete-orange{
  background:#f97316 !important;
  background-image:none !important;
  border-color:#f97316 !important;
  color:#fff !important;
  box-shadow:none !important;
}

.htpa-delete-orange:hover,
.htpa-delete-orange:focus{
  background:#ea580c !important;
  border-color:#ea580c !important;
  color:#fff !important;
}

.htpa-delete-orange:disabled{
  background:#e5e7eb !important;
  border-color:#d1d5db !important;
  color:#6b7280 !important;
  cursor:not-allowed !important;
  opacity:1 !important;
}

.htpa-order-delete-warning{
  margin:12px 0 !important;
  padding:10px 12px !important;
  border-radius:10px !important;
  background:#fff7ed !important;
  border:1px solid #fed7aa !important;
  color:#9a3412 !important;
  font-size:12px !important;
  line-height:1.4 !important;
}

/* HTPOS_ORDER_DELETE_V120_CSS_END */

/* HTPOS_ORDER_VAT_COLUMN_CLEANUP_V121_CSS_START */

/* VAT is a toolbar filter, never a table column */
.htpa-order-admin-full-v1 .htpa-order-vat-filter-v201,
.htpa-order-admin-full-v1 .ht-vat-v6623__label,
.htpa-order-admin-full-v1 .ht-vat-v6623__buttons{
  display:none !important;
}

.htpa-order-admin-full-v1 > .htpa-order-filter-v118{
  display:grid !important;
  grid-template-columns:minmax(360px,1fr) minmax(180px,220px) auto auto !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
  min-width:0 !important;
}

.htpa-order-admin-full-v1 > .htpa-order-filter-v118
.htpa-order-vat-filter-v202{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  grid-column:auto !important;
  grid-row:auto !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  position:static !important;
  float:none !important;
}

.htpa-order-admin-full-v1
.htpa-order-vat-filter-v202
.htpa-order-vat-filter-buttons{
  display:flex !important;
  align-items:center !important;
  gap:5px !important;
  flex-wrap:nowrap !important;
}

/* Force order table to own its full row; no filter may sit beside its header */
.htpa-order-admin-full-v1 .htpa-order-card{
  display:block !important;
  width:100% !important;
  clear:both !important;
}

.htpa-order-admin-full-v1 .htpa-order-table-wrap{
  display:block !important;
  width:100% !important;
  overflow-x:auto !important;
}

.htpa-order-admin-full-v1 table[data-htpg-server="1"]{
  display:table !important;
  width:100% !important;
  table-layout:auto !important;
  clear:both !important;
}

.htpa-order-admin-full-v1 table[data-htpg-server="1"] thead{
  display:table-header-group !important;
}

.htpa-order-admin-full-v1 table[data-htpg-server="1"] tbody{
  display:table-row-group !important;
}

.htpa-order-admin-full-v1 table[data-htpg-server="1"] tr{
  display:table-row !important;
}

.htpa-order-admin-full-v1 table[data-htpg-server="1"] th,
.htpa-order-admin-full-v1 table[data-htpg-server="1"] td{
  display:table-cell !important;
  float:none !important;
  position:static !important;
  vertical-align:middle !important;
}

/* Last action column remains compact */
.htpa-order-admin-full-v1 table[data-htpg-server="1"] th:last-child,
.htpa-order-admin-full-v1 table[data-htpg-server="1"] td:last-child{
  width:1% !important;
  white-space:nowrap !important;
}

/* No textual VAT label on order toolbar */
.htpa-order-admin-full-v1 .htpa-order-vat-filter-label{
  display:none !important;
}

@media(max-width:1180px){
  .htpa-order-admin-full-v1 > .htpa-order-filter-v118{
    grid-template-columns:minmax(260px,1fr) minmax(170px,200px) !important;
  }

  .htpa-order-admin-full-v1 > .htpa-order-filter-v118
  .htpa-order-vat-filter-v202,
  .htpa-order-admin-full-v1 > .htpa-order-filter-v118
  .htpa-order-count{
    grid-row:2 !important;
  }
}

@media(max-width:720px){
  .htpa-order-admin-full-v1 > .htpa-order-filter-v118{
    grid-template-columns:1fr !important;
  }

  .htpa-order-admin-full-v1 > .htpa-order-filter-v118
  .htpa-order-vat-filter-v202,
  .htpa-order-admin-full-v1 > .htpa-order-filter-v118
  .htpa-order-count{
    grid-row:auto !important;
  }

  .htpa-order-admin-full-v1
  .htpa-order-vat-filter-v202
  .htpa-order-vat-filter-buttons{
    flex-wrap:wrap !important;
  }
}

/* HTPOS_ORDER_VAT_COLUMN_CLEANUP_V121_CSS_END */

/* HTPOS_ORDER_TOP_DASH_HIDE_V122_START */

/*
 * Remove only the redundant separator ABOVE the order table header.
 * Keep normal row separators/borders below the header and between orders.
 */
.htpa-order-admin-full-v1 .htpa-order-card{
  border-top:0 !important;
}

.htpa-order-admin-full-v1 .htpa-order-table-wrap{
  border-top:0 !important;
}

.htpa-order-admin-full-v1 table[data-htpg-server="1"]{
  border-top:0 !important;
}

.htpa-order-admin-full-v1 table[data-htpg-server="1"] > thead{
  border-top:0 !important;
}

.htpa-order-admin-full-v1 table[data-htpg-server="1"] > thead > tr{
  border-top:0 !important;
}

.htpa-order-admin-full-v1 table[data-htpg-server="1"] > thead > tr:first-child > th{
  border-top:0 !important;
}

/* Kill decorative pseudo separators if an older stylesheet injects one. */
.htpa-order-admin-full-v1 .htpa-order-card::before,
.htpa-order-admin-full-v1 .htpa-order-table-wrap::before,
.htpa-order-admin-full-v1 table[data-htpg-server="1"]::before,
.htpa-order-admin-full-v1 table[data-htpg-server="1"] > thead::before,
.htpa-order-admin-full-v1 table[data-htpg-server="1"] > thead > tr:first-child::before{
  content:none !important;
  display:none !important;
  border:0 !important;
  height:0 !important;
}

/*
 * Some older VAT/filter wrappers can remain empty before the table and show
 * a dotted/dashed border. Collapse only empty direct children before table.
 */
.htpa-order-admin-full-v1 .htpa-order-card > :empty:not(.htpa-order-table-wrap){
  display:none !important;
  border:0 !important;
  min-height:0 !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
}

/* HTPOS_ORDER_TOP_DASH_HIDE_V122_END */

/* HTPOS_ORDER_HEADER_EMPTY_CLEAN_V123_CSS_START */

/* If an empty leading TH appears before JS cleanup, never render it. */
.htpa-order-admin-full-v1
.htpa-order-card
table[data-htpg-server="1"]
thead > tr > th:first-child:empty{
  display:none !important;
  width:0 !important;
  min-width:0 !important;
  max-width:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
}

/* No decorative HR is allowed inside the order table head. */
.htpa-order-admin-full-v1
.htpa-order-card
table[data-htpg-server="1"] thead > hr{
  display:none !important;
}

/* Canonical first header starts flush with the first body column. */
.htpa-order-admin-full-v1
.htpa-order-card
table[data-htpg-server="1"]
thead > tr:first-child > th:first-child{
  margin-left:0 !important;
}

/* HTPOS_ORDER_HEADER_EMPTY_CLEAN_V123_CSS_END */

/* HTPOS_ORDER_HEADER_PRECEDING_CELL_V124_CSS_START */

/*
 * Chrome supports :has(). If any TH/TD exists before canonical "Mã đơn",
 * hide it immediately even before JS removes it.
 */
.htpa-order-admin-full-v1
table[data-htpg-server="1"]
thead tr > :is(th,td):has(~ .htpa-order-col-code){
  display:none !important;
  width:0 !important;
  min-width:0 !important;
  max-width:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
}

/* Canonical first header cell itself must not carry a left pseudo separator. */
.htpa-order-admin-full-v1
table[data-htpg-server="1"]
thead tr > .htpa-order-col-code{
  border-left:0 !important;
  margin-left:0 !important;
}

.htpa-order-admin-full-v1
table[data-htpg-server="1"]
thead tr > .htpa-order-col-code::before{
  content:none !important;
  display:none !important;
}

/* HTPOS_ORDER_HEADER_PRECEDING_CELL_V124_CSS_END */




/* HTPOS_PRODUCTS_REAL_SOURCE_V128_CSS_START */

#htpaContent .htprp-host-v128{
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  border-radius:0 !important;
  padding:0 !important;
  margin:0 !important;
  overflow:visible !important;
}

#htpaContent .htprp-host-v128::before,
#htpaContent .htprp-host-v128::after{
  content:none !important;
  display:none !important;
}

#htpaContent .htprp-product-toolbar-v128{
  display:none !important;
}

#htpaContent .htprp-topbar-v128{
  display:grid !important;
  grid-template-columns:minmax(360px,1fr) auto !important;
  align-items:center !important;
  gap:12px !important;
  width:100% !important;
  margin:0 0 12px 0 !important;
  padding:0 !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  border-radius:0 !important;
}

#htpaContent .htprp-topbar-v128 [data-htprp-search]{
  width:100% !important;
  min-width:0 !important;
  height:40px !important;
  margin:0 !important;
  padding:0 12px !important;
  box-sizing:border-box !important;
  border-radius:10px !important;
}

#htpaContent .htprp-topbar-v128 button,
#htpaContent .htprp-topbar-v128 a[role="button"],
#htpaContent .htprp-topbar-v128 a{
  width:auto !important;
  min-width:max-content !important;
  height:40px !important;
  margin:0 !important;
  padding:0 16px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
  border-radius:10px !important;
}

#htpaContent .htprp-table-wrap{
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  border-left:0 !important;
  border-right:0 !important;
  box-shadow:none !important;
}

@media(max-width:720px){
  #htpaContent .htprp-topbar-v128{
    grid-template-columns:1fr !important;
  }

  #htpaContent .htprp-topbar-v128 button,
  #htpaContent .htprp-topbar-v128 a{
    justify-self:start !important;
  }
}

/* HTPOS_PRODUCTS_REAL_SOURCE_V128_CSS_END */


/* HTPOS_PRODUCTS_COMPACT_V130_CSS_START */

/* Hide only redundant Product-page labels, not sidebar menu. */
#htpaContent .htprp-v130-hidden{
  display:none !important;
}

/* One page scroll only. No nested vertical or horizontal scrollbar. */
#htpaContent.htprp-v130-root,
#htpaContent .htprp-v130-host,
#htpaContent .htprp-v130-wrap,
#htpaContent .htprp-v130-no-inner-scroll{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  overflow-x:hidden !important;
  overflow-y:visible !important;
  box-sizing:border-box !important;
}

/* Remove the bulky Product card/frame. */
#htpaContent .htprp-v130-host{
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  border-radius:0 !important;
  padding:0 !important;
  margin:0 !important;
}

#htpaContent .htprp-v130-host::before,
#htpaContent .htprp-v130-host::after{
  content:none !important;
  display:none !important;
}

/* Search + Create Product = compact single row like Orders. */
#htpaContent .htprp-v130-topbar{
  display:grid !important;
  grid-template-columns:minmax(280px,1fr) auto !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 0 8px 0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

#htpaContent .htprp-v130-topbar [data-htprp-search]{
  width:100% !important;
  min-width:0 !important;
  height:36px !important;
  margin:0 !important;
  padding:0 10px !important;
  font-size:11px !important;
  line-height:1.2 !important;
  box-sizing:border-box !important;
  border-radius:8px !important;
}

#htpaContent .htprp-v130-topbar button,
#htpaContent .htprp-v130-topbar a{
  width:auto !important;
  min-width:max-content !important;
  height:36px !important;
  margin:0 !important;
  padding:0 12px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:11px !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
  border-radius:8px !important;
}

/* Product table must fit desktop content width exactly; no bottom scrollbar. */
#htpaContent table.htprp-products.htprp-v130-table{
  display:table !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  table-layout:fixed !important;
  border-collapse:collapse !important;
  border-spacing:0 !important;
  font-size:10.5px !important;
  line-height:1.25 !important;
  box-sizing:border-box !important;
}

#htpaContent table.htprp-products.htprp-v130-table thead{
  display:table-header-group !important;
}

#htpaContent table.htprp-products.htprp-v130-table tbody{
  display:table-row-group !important;
}

#htpaContent table.htprp-products.htprp-v130-table tr{
  display:table-row !important;
}

#htpaContent table.htprp-products.htprp-v130-table th,
#htpaContent table.htprp-products.htprp-v130-table td{
  display:table-cell !important;
  min-width:0 !important;
  max-width:none !important;
  padding:7px 6px !important;
  vertical-align:middle !important;
  box-sizing:border-box !important;
  font-size:10.5px !important;
  line-height:1.25 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
}

/* Header visually matches Orders: smaller and compact. */
#htpaContent table.htprp-products.htprp-v130-table th{
  font-size:10px !important;
  font-weight:700 !important;
}

/* Product name slightly stronger, not oversized. */
#htpaContent table.htprp-products.htprp-v130-table td:nth-child(1){
  font-size:11px !important;
  font-weight:650 !important;
}

/*
 * 9 columns = 100%.
 * Give key business columns enough room without forcing page overflow.
 */
#htpaContent table.htprp-products.htprp-v130-table th:nth-child(1),
#htpaContent table.htprp-products.htprp-v130-table td:nth-child(1){width:18% !important;}

#htpaContent table.htprp-products.htprp-v130-table th:nth-child(2),
#htpaContent table.htprp-products.htprp-v130-table td:nth-child(2){width:11% !important;}

#htpaContent table.htprp-products.htprp-v130-table th:nth-child(3),
#htpaContent table.htprp-products.htprp-v130-table td:nth-child(3){width:17% !important;}

#htpaContent table.htprp-products.htprp-v130-table th:nth-child(4),
#htpaContent table.htprp-products.htprp-v130-table td:nth-child(4){width:4% !important;}

#htpaContent table.htprp-products.htprp-v130-table th:nth-child(5),
#htpaContent table.htprp-products.htprp-v130-table td:nth-child(5){width:9% !important;}

#htpaContent table.htprp-products.htprp-v130-table th:nth-child(6),
#htpaContent table.htprp-products.htprp-v130-table td:nth-child(6){width:18% !important;}

#htpaContent table.htprp-products.htprp-v130-table th:nth-child(7),
#htpaContent table.htprp-products.htprp-v130-table td:nth-child(7){width:8% !important;}

#htpaContent table.htprp-products.htprp-v130-table th:nth-child(8),
#htpaContent table.htprp-products.htprp-v130-table td:nth-child(8){width:7% !important;}

#htpaContent table.htprp-products.htprp-v130-table th:nth-child(9),
#htpaContent table.htprp-products.htprp-v130-table td:nth-child(9){width:8% !important;}

/* SKU can wrap inside its own cell instead of widening the page. */
#htpaContent table.htprp-products.htprp-v130-table td:nth-child(3) code{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  padding:2px 4px !important;
  font-size:10px !important;
  line-height:1.2 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
}

/* Description/product text should remain readable, never line-clamped. */
#htpaContent table.htprp-products.htprp-v130-table td:nth-child(1),
#htpaContent table.htprp-products.htprp-v130-table td:nth-child(6),
#htpaContent table.htprp-products.htprp-v130-table .htprp-desc{
  overflow:visible !important;
  text-overflow:clip !important;
  -webkit-line-clamp:unset !important;
  line-clamp:unset !important;
  max-height:none !important;
}

/* Compact chips/buttons so the right side stays inside the viewport. */
#htpaContent table.htprp-products.htprp-v130-table button,
#htpaContent table.htprp-products.htprp-v130-table .badge,
#htpaContent table.htprp-products.htprp-v130-table [class*="pill"]{
  min-width:0 !important;
  max-width:100% !important;
  padding:4px 6px !important;
  font-size:10px !important;
  line-height:1.15 !important;
  white-space:normal !important;
}

/* No horizontal scrollbar at page/content level on desktop. */
@media(min-width:981px){
  html,
  body{
    overflow-x:hidden !important;
  }

  #htpaContent{
    overflow-x:hidden !important;
  }
}

/* Mobile: keep all columns accessible with table-only horizontal scroll. */
@media(max-width:980px){
  html,
  body{
    overflow-x:hidden !important;
  }

  #htpaContent .htprp-v130-wrap{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table{
    min-width:980px !important;
  }
}

@media(max-width:720px){
  #htpaContent .htprp-v130-topbar{
    grid-template-columns:1fr !important;
  }

  #htpaContent .htprp-v130-topbar button,
  #htpaContent .htprp-v130-topbar a{
    justify-self:start !important;
  }
}

/* HTPOS_PRODUCTS_COMPACT_V130_CSS_END */

/* HTPOS_PRODUCTS_V131_CSS_START */

#htpaContent table.htprp-products .htprp-one-line{
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  max-width:0 !important;
}

#htpaContent table.htprp-products .htprp-one-line strong,
#htpaContent table.htprp-products .htprp-one-line code{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  word-break:normal !important;
}

#htpaContent table.htprp-products tbody tr{
  height:38px !important;
}

#htpaContent table.htprp-products tbody td{
  height:38px !important;
  max-height:38px !important;
  padding-top:5px !important;
  padding-bottom:5px !important;
}

#htpaContent .htprp-product-toolbar-v128{
  display:grid !important;
  grid-template-columns:minmax(260px,1fr) auto !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
  margin:0 0 8px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}

#htpaContent .htprp-create-v131{
  height:36px !important;
  min-width:max-content !important;
  padding:0 12px !important;
  border-radius:8px !important;
  background:#f97316 !important;
  border-color:#f97316 !important;
  color:#fff !important;
  font-size:11px !important;
  font-weight:700 !important;
  white-space:nowrap !important;
}

#htpaContent .htprp-v130-topbar{
  display:grid !important;
  grid-template-columns:minmax(260px,1fr) auto !important;
  align-items:center !important;
  gap:8px !important;
}

#htpaContent .htprp-v130-topbar .htprp-create-v131{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

#htpaContent .htprp-row-actions-v131{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:4px !important;
  white-space:nowrap !important;
}

#htpaContent .htprp-row-actions-v131 button{
  height:28px !important;
  padding:0 7px !important;
  margin:0 !important;
  border-radius:7px !important;
  font-size:9.5px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

#htpaContent .htprp-edit-v131{
  background:#2563eb !important;
  border-color:#2563eb !important;
  color:#fff !important;
}

#htpaContent .htprp-delete-v131{
  background:#f97316 !important;
  border-color:#f97316 !important;
  color:#fff !important;
}

.htprp-product-editor-v131 .htprp-editor{
  max-width:820px !important;
}

@media(max-width:720px){
  #htpaContent .htprp-product-toolbar-v128,
  #htpaContent .htprp-v130-topbar{
    grid-template-columns:1fr !important;
  }

  #htpaContent .htprp-row-actions-v131{
    flex-wrap:wrap !important;
  }
}

/* HTPOS_PRODUCTS_V131_CSS_END */

/* HTPOS_PRODUCTS_V132_CSS_START */

/*
 * Product table desktop allocation:
 * - SKU: 17% -> 8.5% (50% of V130)
 * - Unit price: 9% -> 7.2% (~20% narrower)
 * - Freed width goes primarily to Status + Actions
 * Total = 100%.
 */
@media(min-width:981px){
  #htpaContent table.htprp-products.htprp-v130-table{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    table-layout:fixed !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table th:nth-child(1),
  #htpaContent table.htprp-products.htprp-v130-table td:nth-child(1){
    width:17% !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table th:nth-child(2),
  #htpaContent table.htprp-products.htprp-v130-table td:nth-child(2){
    width:10% !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table th:nth-child(3),
  #htpaContent table.htprp-products.htprp-v130-table td:nth-child(3){
    width:8.5% !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table th:nth-child(4),
  #htpaContent table.htprp-products.htprp-v130-table td:nth-child(4){
    width:4% !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table th:nth-child(5),
  #htpaContent table.htprp-products.htprp-v130-table td:nth-child(5){
    width:7.2% !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table th:nth-child(6),
  #htpaContent table.htprp-products.htprp-v130-table td:nth-child(6){
    width:17.5% !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table th:nth-child(7),
  #htpaContent table.htprp-products.htprp-v130-table td:nth-child(7){
    width:8% !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table th:nth-child(8),
  #htpaContent table.htprp-products.htprp-v130-table td:nth-child(8){
    width:9% !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table th:nth-child(9),
  #htpaContent table.htprp-products.htprp-v130-table td:nth-child(9){
    width:18.8% !important;
  }

  /*
   * Every visible product field stays on exactly one row.
   * Long data is represented by ellipsis; full data remains in Chi tiết.
   */
  #htpaContent table.htprp-products.htprp-v130-table
  td.htprp-one-line{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    max-width:0 !important;
    line-height:1.2 !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table
  td.htprp-one-line > strong{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }

  /*
   * Override V130 SKU rule that explicitly allowed multi-line wrapping.
   * Example becomes: HTO-GIAY-PICKLEBALL-...
   */
  #htpaContent table.htprp-products.htprp-v130-table
  td:nth-child(3).htprp-one-line code{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    padding:2px 4px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    line-height:1.2 !important;
  }

  /*
   * Override V130 description rule which used overflow:visible.
   * Description is one line in list; detail modal still shows full text.
   */
  #htpaContent table.htprp-products.htprp-v130-table
  td:nth-child(6).htprp-desc.htprp-one-line{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    max-height:32px !important;
    line-height:1.2 !important;
    -webkit-line-clamp:unset !important;
    line-clamp:unset !important;
  }

  /* Keep status on one line where possible. */
  #htpaContent table.htprp-products.htprp-v130-table
  td:nth-child(8).htprp-one-line{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  /*
   * Right action column must show full labels:
   * Chi tiết | Sửa | Xóa
   */
  #htpaContent table.htprp-products.htprp-v130-table
  td:nth-child(9){
    overflow:visible !important;
    white-space:nowrap !important;
    padding-left:4px !important;
    padding-right:4px !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table
  td:nth-child(9) .htprp-row-actions-v131{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:4px !important;
    width:100% !important;
    min-width:0 !important;
    white-space:nowrap !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table
  td:nth-child(9) .htprp-row-actions-v131 button{
    display:inline-flex !important;
    flex:0 0 auto !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:auto !important;
    max-width:none !important;
    height:28px !important;
    padding:0 7px !important;
    margin:0 !important;
    font-size:9.5px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    word-break:normal !important;
  }

  /* Compact rows: no description-driven tall rows. */
  #htpaContent table.htprp-products.htprp-v130-table tbody tr{
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
  }

  #htpaContent table.htprp-products.htprp-v130-table tbody td{
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    padding-top:5px !important;
    padding-bottom:5px !important;
    vertical-align:middle !important;
  }
}

/* HTPOS_PRODUCTS_V132_CSS_END */

/* HTPOS_PRODUCTS_V1391_BOOTSTRAP_CSS_START */
.htpa-products-v139-trigger{
  display:none !important;
}
.htpa-products-v139-bootstrap{
  min-height:120px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}
.htpa-products-v139-loading{
  font-size:11px !important;
  color:#64748b !important;
}
.htpa-products-v139-topbar{
  display:flex;
  justify-content:flex-end;
  margin-bottom:8px;
}
.htpa-products-v139-create{
  min-height:34px;
  white-space:nowrap;
}
/* HTPOS_PRODUCTS_V1391_BOOTSTRAP_CSS_END */

/* HTPOS_PRODUCTS_V1392_LAYOUT_FIX_START */

/*
 * V139 uses this host only as a temporary trigger for the canonical renderer.
 * It must never constrain the final product table.
 */
.htpa-products-v139-bootstrap{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  min-height:0 !important;
  align-items:initial !important;
  justify-content:initial !important;
  overflow:visible !important;
}

.htpa-products-v139-bootstrap .htpa-products-v139-loading{
  width:100%;
  box-sizing:border-box;
  text-align:center;
  padding:36px 12px;
}

.htpa-products-v139-live{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  min-height:0 !important;
  overflow:visible !important;
  padding:0 !important;
}

.htpa-products-v139-live .htprp-table-wrap{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow:visible !important;
}

.htpa-products-v139-live table.htprp-products{
  display:table !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  table-layout:fixed !important;
  margin:0 !important;
}

.htpa-products-v139-live table.htprp-products th,
.htpa-products-v139-live table.htprp-products td{
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* HTPOS_PRODUCTS_V1392_LAYOUT_FIX_END */
