/* ============================================================
   OMBORCHI PREMIUM RESPONSIVE UI
   FRONTEND ONLY
   DO NOT TOUCH: ALGENIX / AUTH / API / SYNC / DB / BACKEND
   2026-09-24
   ============================================================ */

:root{
  --om-bg:#f4f7fb;
  --om-surface:#ffffff;
  --om-surface-soft:#f8fbff;
  --om-ink:#10233f;
  --om-text:#203653;
  --om-muted:#70839a;
  --om-line:#e3eaf2;
  --om-line-strong:#d5dfeb;
  --om-red:#ef1422;
  --om-red-dark:#d90e1b;
  --om-red-soft:#fff0f2;
  --om-blue:#2e7ef5;
  --om-blue-soft:#edf5ff;
  --om-green:#12b760;
  --om-green-soft:#eafaf1;
  --om-orange:#f4a323;
  --om-orange-soft:#fff6df;
  --om-shadow:0 10px 32px rgba(20,45,80,.07);
  --om-shadow-soft:0 4px 16px rgba(20,45,80,.045);
  --om-r-xl:22px;
  --om-r-lg:18px;
  --om-r-md:14px;
  --om-r-sm:11px;
  --om-font:Inter,Segoe UI,Arial,sans-serif;
}

/* ---------- GLOBAL APP ---------- */
html,body{background:var(--om-bg)!important}
body{font-family:var(--om-font)!important;color:var(--om-text)!important}
#appView{background:var(--om-bg)!important}
#appView .main{min-width:0;background:var(--om-bg)!important}
#appView .content{width:100%;max-width:1220px;margin:0 auto;padding:18px 22px 112px!important}
#appView .hidden{display:none!important}

/* ---------- PREMIUM HEADER ---------- */
#appView .topbar{
  position:sticky!important;
  top:0!important;
  z-index:60!important;
  min-height:88px!important;
  height:auto!important;
  display:grid!important;
  grid-template-columns:minmax(240px,1fr) auto!important;
  align-items:center!important;
  gap:12px 18px!important;
  padding:14px 24px!important;
  background:rgba(255,255,255,.97)!important;
  border-bottom:1px solid var(--om-line)!important;
  box-shadow:0 4px 18px rgba(23,51,86,.05)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}
#appView .topbar-title{position:relative!important;min-width:0!important;padding-left:56px!important}
#appView .topbar-title::before{
  content:""!important;
  position:absolute!important;
  left:0!important;top:50%!important;
  width:42px!important;height:42px!important;
  transform:translateY(-50%)!important;
  clip-path:polygon(50% 0,100% 24%,100% 75%,50% 100%,0 75%,0 24%)!important;
  background:conic-gradient(from 30deg,#ff4545 0 120deg,#ec101f 120deg 240deg,#ff6a6a 240deg 360deg)!important;
  box-shadow:0 8px 18px rgba(239,20,34,.18)!important;
}
#appView #pageTitle{
  margin:0!important;
  color:var(--om-ink)!important;
  font-size:25px!important;
  line-height:1.05!important;
  font-weight:900!important;
  letter-spacing:-.035em!important;
}
#appView #statusLine{
  display:block!important;
  margin-top:4px!important;
  color:var(--om-muted)!important;
  font-size:12px!important;
  font-weight:600!important;
}
#appView .top-controls{margin:0!important;display:flex!important;align-items:center!important;gap:9px!important}
#appView .top-controls select,
#appView .top-controls input{
  min-height:44px!important;
  border:1px solid var(--om-line-strong)!important;
  border-radius:13px!important;
  background:#fff!important;
  color:var(--om-ink)!important;
  font-size:14px!important;
  font-weight:750!important;
  padding:0 12px!important;
  box-shadow:none!important;
}
#appView .top-controls .btn{min-height:44px!important}
#appView #menuBtn{
  width:42px!important;height:42px!important;
  border:1px solid var(--om-line)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--om-ink)!important;
  box-shadow:var(--om-shadow-soft)!important;
}

/* ---------- SIDEBAR ---------- */
#appView .sidebar{
  background:#fff!important;
  border-right:1px solid var(--om-line)!important;
  box-shadow:8px 0 28px rgba(28,54,88,.035)!important;
}
#appView .sidebar .brand b{color:var(--om-ink)!important;font-size:18px!important;font-weight:900!important}
#appView .sidebar .brand small{color:var(--om-muted)!important}
#appView #nav button{
  min-height:45px!important;
  border-radius:12px!important;
  color:#50667f!important;
  font-size:14px!important;
  font-weight:750!important;
}
#appView #nav button.active{
  color:#fff!important;
  background:linear-gradient(135deg,var(--om-red),var(--om-red-dark))!important;
  box-shadow:0 9px 20px rgba(239,20,34,.18)!important;
}

/* ---------- PAGE INTRO ---------- */
#appView .page-intro,
#appView .exact-intro{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:2px 0 16px!important;
}
#appView .page-intro h1,
#appView .exact-intro h1{
  margin:0!important;
  color:var(--om-ink)!important;
  font-size:34px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:-.045em!important;
}
#appView .page-intro p,
#appView .exact-intro p{
  margin:6px 0 0!important;
  color:var(--om-muted)!important;
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:500!important;
}
#appView .page-actions{display:flex!important;align-items:center!important;gap:8px!important}

/* ---------- BUTTONS / FIELDS ---------- */
#appView .btn{
  min-height:42px!important;
  border:1px solid var(--om-line-strong)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--om-ink)!important;
  font-size:14px!important;
  font-weight:800!important;
  box-shadow:none!important;
  transition:.18s ease!important;
}
#appView .btn:hover{transform:translateY(-1px)!important;box-shadow:0 7px 18px rgba(25,54,90,.07)!important}
#appView .btn.primary,
#appView .tabs-inline .btn.active,
#appView .premium-tabs .btn.active{
  color:#fff!important;
  border-color:var(--om-red)!important;
  background:linear-gradient(135deg,var(--om-red),var(--om-red-dark))!important;
  box-shadow:0 8px 18px rgba(239,20,34,.18)!important;
}
#appView .btn.small{min-height:34px!important;padding:6px 11px!important;font-size:12.5px!important}
#appView input,
#appView select,
#appView textarea{
  font-family:var(--om-font)!important;
}
#appView .field{gap:7px!important;color:var(--om-text)!important;font-size:14px!important;font-weight:800!important}
#appView .field input,
#appView .field select,
#appView .field textarea,
#appView .filters input,
#appView .filters select,
#appView .search-box{
  border:1px solid var(--om-line-strong)!important;
  border-radius:13px!important;
  background:#fff!important;
  color:var(--om-ink)!important;
  box-shadow:none!important;
}
#appView .field input,
#appView .field select,
#appView .filters input,
#appView .filters select{min-height:46px!important;font-size:14.5px!important}
#appView .field textarea{font-size:14.5px!important}
#appView .search-box{
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  padding:0 13px!important;
  color:#60758d!important;
  font-size:23px!important;
}
#appView .search-box input{
  flex:1!important;
  min-width:0!important;
  min-height:44px!important;
  border:0!important;
  background:transparent!important;
  outline:0!important;
  color:var(--om-ink)!important;
  font-size:15px!important;
}
#appView .field input:focus,
#appView .field select:focus,
#appView .field textarea:focus,
#appView .search-box:focus-within{
  border-color:#ff6570!important;
  box-shadow:0 0 0 3px rgba(239,20,34,.08)!important;
}

/* ---------- CARDS ---------- */
#appView .card,
#appView .premium-card,
#appView .form-card{
  border:1px solid var(--om-line)!important;
  border-radius:var(--om-r-lg)!important;
  background:#fff!important;
  box-shadow:var(--om-shadow-soft)!important;
}
#appView .premium-card{padding:17px!important;margin:0 0 14px!important}
#appView .card{padding:16px!important}
#appView .section{margin-top:16px!important}
#appView .section-head{
  min-height:36px!important;
  margin:0 0 12px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
#appView .section-head h3{
  margin:0!important;
  color:var(--om-ink)!important;
  font-size:18px!important;
  line-height:1.2!important;
  font-weight:900!important;
  letter-spacing:-.02em!important;
}
#appView .section-link{
  color:var(--om-red)!important;
  font-size:13px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
#appView .red-icon,#appView .ui-ico.red{color:var(--om-red)!important}
#appView .muted,#appView .hint{color:var(--om-muted)!important;font-size:13px!important;line-height:1.4!important}

/* ---------- SEGMENTED ---------- */
#appView .segmented,
#appView .exact-segment,
#appView .tabs-inline,
#appView .premium-tabs{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  padding:4px!important;
  border:1px solid var(--om-line)!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:var(--om-shadow-soft)!important;
}
#appView .segmented{width:auto!important;min-width:190px!important}
#appView .segmented button,
#appView .segmented label,
#appView .exact-segment button,
#appView .exact-segment label{
  min-width:82px!important;
  min-height:34px!important;
  padding:0 13px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#61748b!important;
  font-size:13px!important;
  font-weight:800!important;
}
#appView .segmented .active,
#appView .exact-segment .active{
  color:#fff!important;
  background:linear-gradient(135deg,var(--om-red),var(--om-red-dark))!important;
  box-shadow:0 7px 16px rgba(239,20,34,.18)!important;
}
#appView .day-select{position:relative!important;overflow:hidden!important}
#appView .day-select input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important}

/* ---------- DASHBOARD ---------- */
#appView .v23-hero.v23-dashboard{
  min-height:auto!important;
  margin:0 0 12px!important;
  padding:0!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:14px!important;
  overflow:visible!important;
  color:var(--om-ink)!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
#appView .v23-hero.v23-dashboard::before,
#appView .v23-hero.v23-dashboard::after,
#appView .v23-hero-visual{display:none!important}
#appView .v23-kicker{display:none!important}
#appView .v23-hero.v23-dashboard h1{font-size:0!important;margin:0!important;text-shadow:none!important}
#appView .v23-hero.v23-dashboard h1::after{
  content:"Dashboard"!important;
  display:block!important;
  color:var(--om-ink)!important;
  font-size:34px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:-.045em!important;
}
#appView .v23-hero p{margin:6px 0 0!important;color:var(--om-muted)!important;font-size:15px!important;font-weight:500!important}
#appView .v23-hero small{display:none!important}
#appView .v23-hero-actions{position:static!important;margin:0!important;padding:0!important}
#appView .branch-chip{
  padding:7px 11px!important;
  border:1px solid var(--om-line)!important;
  border-radius:10px!important;
  background:#fbfdff!important;
  color:var(--om-text)!important;
  font-size:12px!important;
  font-weight:800!important;
}

#appView .exact-plan .plan-layout,
#appView .plan-card .plan-layout{
  display:grid!important;
  grid-template-columns:minmax(220px,31%) minmax(0,1fr)!important;
  gap:18px!important;
  align-items:center!important;
}
#appView .donut-wrap{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}
#appView .plan-donut.exact-donut{
  position:relative!important;
  width:220px!important;height:220px!important;
  min-width:220px!important;min-height:220px!important;
  margin:0 auto!important;
  border-radius:50%!important;
  background:conic-gradient(
    var(--om-blue) 0 calc(var(--a)*1%),
    var(--om-green) calc(var(--a)*1%) calc(var(--b)*1%),
    #ff4f59 calc(var(--b)*1%) calc(var(--c)*1%),
    #e9eef4 calc(var(--c)*1%) 100%
  )!important;
}
#appView .plan-donut.exact-donut::after{
  content:""!important;position:absolute!important;inset:38px!important;border-radius:50%!important;background:#fff!important
}
#appView .plan-donut-center{
  position:absolute!important;inset:0!important;z-index:2!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important
}
#appView .plan-donut-center small{color:var(--om-text)!important;font-size:13px!important;font-weight:750!important}
#appView .plan-donut-center b{margin-top:3px!important;color:var(--om-ink)!important;font-size:40px!important;line-height:1!important;font-weight:900!important}
#appView .donut-legend{
  width:100%!important;margin-top:12px!important;
  display:grid!important;grid-template-columns:repeat(4,auto)!important;justify-content:center!important;gap:8px 12px!important;
  color:var(--om-muted)!important;font-size:11.5px!important
}
#appView .donut-legend span{display:inline-flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important}
#appView .donut-legend i{width:8px!important;height:8px!important;border-radius:50%!important;flex:0 0 8px!important}
#appView .l-sof{background:var(--om-blue)!important}
#appView .l-coll{background:var(--om-green)!important}
#appView .l-cash{background:#ff4f59!important}
#appView .l-left{background:#e9eef4!important}

#appView .sales-type-grid,
#appView .sales-type-grid.four{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important
}
#appView .sales-type-grid.four .returns{display:none!important}
#appView .premium-metric,
#appView .exact-metric{
  min-width:0!important;min-height:112px!important;padding:12px!important;
  border:1px solid var(--om-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important
}
#appView .metric-icon{width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border-radius:11px!important;font-size:17px!important}
#appView .sof .metric-icon{background:var(--om-blue-soft)!important;color:var(--om-blue)!important}
#appView .coll .metric-icon{background:var(--om-green-soft)!important;color:var(--om-green)!important}
#appView .cash .metric-icon{background:var(--om-red-soft)!important;color:var(--om-red)!important}
#appView .metric-copy span{display:block!important;margin-top:6px!important;color:var(--om-muted)!important;font-size:12px!important;font-weight:700!important}
#appView .metric-copy b{
  display:block!important;margin-top:2px!important;color:var(--om-ink)!important;
  font-size:18px!important;line-height:1.15!important;font-weight:900!important;
  white-space:normal!important;overflow-wrap:anywhere!important
}
#appView .metric-copy small{display:block!important;margin-top:4px!important;color:var(--om-muted)!important;font-size:11px!important;line-height:1.25!important}

#appView .total-strip{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;margin-top:10px!important}
#appView .total-strip>div{
  min-width:0!important;padding:11px 12px!important;border:1px solid var(--om-line)!important;border-radius:12px!important;background:var(--om-surface-soft)!important
}
#appView .total-strip span{display:block!important;color:var(--om-muted)!important;font-size:11px!important}
#appView .total-strip b{display:block!important;margin-top:2px!important;color:var(--om-ink)!important;font-size:16px!important;font-weight:900!important;overflow-wrap:anywhere!important}
#appView .plan-strip{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  margin-top:10px!important;padding-top:10px!important;border-top:1px solid var(--om-line)!important
}
#appView .plan-strip>div{min-width:0!important;padding:0 10px!important;border-right:1px solid var(--om-line)!important}
#appView .plan-strip>div:first-child{padding-left:0!important}
#appView .plan-strip>div:last-child{padding-right:0!important;border-right:0!important}
#appView .plan-strip span{display:block!important;color:var(--om-muted)!important;font-size:11px!important}
#appView .plan-strip b{display:block!important;margin-top:2px!important;color:var(--om-ink)!important;font-size:14px!important;font-weight:900!important;overflow-wrap:anywhere!important}
#appView .plan-strip .good b,#appView .good-text{color:var(--om-green)!important}
#appView .plan-strip .bad b,#appView .bad-text{color:var(--om-red)!important}

#appView .sales-chart.exact-chart{height:270px!important;padding:5px 2px 0!important}
#appView .sales-chart.exact-chart svg{width:100%!important;height:235px!important;display:block!important}
#appView .chart-labels{display:flex!important;justify-content:space-between!important;gap:8px!important;color:var(--om-muted)!important;font-size:11px!important}
#appView .chart-hint,
#appView .sales-chart + .hint,
#appView .premium-card .hint:has(+ .premium-table){display:none!important}

/* ---------- TABLES ---------- */
#appView .table-wrap{
  width:100%!important;overflow:auto!important;
  border:1px solid var(--om-line)!important;border-radius:14px!important;background:#fff!important;
  -webkit-overflow-scrolling:touch!important
}
#appView .table{width:100%!important;border-collapse:collapse!important;background:#fff!important}
#appView .table th{
  padding:11px 10px!important;
  background:#f8fafc!important;
  color:#61758c!important;
  border-bottom:1px solid var(--om-line)!important;
  font-size:12px!important;line-height:1.2!important;font-weight:850!important;
  white-space:nowrap!important
}
#appView .table td{
  padding:11px 10px!important;
  color:#243a56!important;
  border-bottom:1px solid #edf2f6!important;
  font-size:13.5px!important;line-height:1.3!important;
  vertical-align:middle!important
}
#appView .table td b{color:var(--om-ink)!important;font-weight:850!important}
#appView .table tr:last-child td{border-bottom:0!important}
#appView .table .muted{display:block!important;margin-top:2px!important;font-size:11px!important}
#appView .rank-bubble{
  width:28px!important;height:28px!important;display:grid!important;place-items:center!important;
  border-radius:50%!important;background:#f3f6fa!important;color:var(--om-ink)!important;font-size:12px!important;font-weight:900!important
}
#appView tbody tr:first-child .rank-bubble{background:var(--om-red-soft)!important;color:var(--om-red)!important}
#appView .forecast-pill{
  min-width:46px!important;padding:5px 8px!important;border-radius:999px!important;font-size:11.5px!important;font-weight:900!important
}
#appView .forecast-pill.ok{background:var(--om-green-soft)!important;color:#079b49!important}
#appView .forecast-pill.warn{background:var(--om-orange-soft)!important;color:#ca8900!important}
#appView .forecast-pill.bad{background:var(--om-red-soft)!important;color:#d81a28!important}

/* ---------- SUMMARY / KPI GRIDS ---------- */
#appView .cards{gap:12px!important}
#appView .kpi{min-height:118px!important}
#appView .kpi .label{font-size:13px!important;color:var(--om-muted)!important;font-weight:750!important}
#appView .kpi .value{font-size:26px!important;color:var(--om-ink)!important;font-weight:900!important}
#appView .kpi .sub{font-size:12px!important;color:var(--om-muted)!important}
#appView .summary-pills{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
#appView .summary-pills span{
  min-width:0!important;padding:12px!important;border:1px solid var(--om-line)!important;border-radius:12px!important;background:#f9fbfe!important;
  color:var(--om-muted)!important;font-size:12px!important;line-height:1.35!important
}
#appView .summary-pills b{color:var(--om-ink)!important;font-size:20px!important;font-weight:900!important}

/* ---------- STOCK / PRODUCTS ---------- */
#appView .stock-filter,
#appView .filters{
  display:grid!important;
  grid-template-columns:minmax(260px,1.5fr) minmax(160px,.6fr) auto!important;
  gap:10px!important;
  align-items:center!important;
  margin-bottom:14px!important
}
#appView .stock-filter .search-box{min-width:0!important}
#appView .prod-thumb{
  width:58px!important;height:58px!important;border-radius:12px!important;
  border:1px solid var(--om-line)!important;background:#fff!important;object-fit:contain!important
}
#appView .empty-thumb{display:grid!important;place-items:center!important;color:#8090a3!important;background:#f7f9fc!important}

/* ---------- FORMS / SUPPLIER / KIRIM ---------- */
#appView .form-card{max-width:920px!important;margin:0 auto!important;padding:20px!important}
#appView .form-title{
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin-bottom:18px!important
}
#appView .form-title>div{display:flex!important;align-items:flex-start!important;gap:12px!important}
#appView .form-title h2{margin:0!important;color:var(--om-ink)!important;font-size:28px!important;line-height:1.05!important;font-weight:900!important}
#appView .form-title p{margin:5px 0 0!important;color:var(--om-muted)!important;font-size:14px!important}
#appView .back-symbol{color:#4d6681!important;font-size:28px!important;line-height:1!important}
#appView .form-grid{gap:14px!important}
#appView .supplier-results,
#appView .product-results{
  margin-top:5px!important;
  overflow:auto!important;
  border:1px solid var(--om-line)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 12px 28px rgba(22,48,82,.08)!important
}
#appView .result-item{padding:11px 13px!important;font-size:14px!important}
#appView .result-item:hover{background:#fff5f6!important}
#appView .line-panel{
  padding:14px!important;border:1px solid var(--om-line)!important;border-radius:14px!important;background:#fbfdff!important
}
#appView .line-row{
  grid-template-columns:minmax(220px,1.8fr) 100px 150px 44px!important;
  gap:9px!important;padding:8px 0!important
}
#appView .line-row input{min-height:42px!important}
#appView .form-actions{
  display:flex!important;justify-content:flex-end!important;gap:10px!important;margin-top:18px!important
}
#appView .form-actions .btn{min-width:150px!important}

/* ---------- DISPLAY / VITRINA ---------- */
#appView .category-grid{gap:12px!important}
#appView .cat{
  overflow:hidden!important;
  border:1px solid var(--om-line)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:var(--om-shadow-soft)!important
}
#appView .cat img{height:150px!important;background:#f6f8fb!important;object-fit:cover!important}
#appView .cat-body{padding:13px!important}
#appView .cat-title{color:var(--om-ink)!important;font-size:16px!important;font-weight:900!important}
#appView .cat-meta{font-size:12.5px!important;color:var(--om-muted)!important}

/* ---------- BADGES ---------- */
#appView .badge{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:26px!important;padding:4px 9px!important;border-radius:999px!important;
  font-size:11.5px!important;font-weight:850!important
}
#appView .badge.ok{background:var(--om-green-soft)!important;color:#087d4b!important}
#appView .badge.warn{background:var(--om-orange-soft)!important;color:#a66d00!important}
#appView .badge.bad{background:var(--om-red-soft)!important;color:#c91624!important}
#appView .badge.blue{background:var(--om-blue-soft)!important;color:#215fb5!important}

/* ---------- COUNT / SANOQ ---------- */
#appView [id="scanResult"]{
  min-height:52px!important;padding:12px 14px!important;border:1px solid var(--om-line)!important;border-radius:12px!important;background:#fbfdff!important;
  color:var(--om-text)!important;font-size:14px!important
}
#appView [data-delta]{
  min-width:58px!important;min-height:50px!important;font-size:22px!important;font-weight:900!important
}

/* ---------- MODAL / TOAST ---------- */
#appView .modal-card{
  border:1px solid var(--om-line)!important;border-radius:20px!important;background:#fff!important;box-shadow:0 28px 70px rgba(8,25,48,.22)!important
}
.toast{border-radius:13px!important;font-size:14px!important;font-weight:700!important}

/* ============================================================
   TABLET
   ============================================================ */
@media(max-width:1024px){
  #appView .content{padding:16px 16px 104px!important}
  #appView .topbar{padding:12px 16px!important}
  #appView .page-intro h1,#appView .exact-intro h1,#appView .v23-hero h1::after{font-size:31px!important}
  #appView .exact-plan .plan-layout,#appView .plan-card .plan-layout{grid-template-columns:260px minmax(0,1fr)!important}
  #appView .plan-donut.exact-donut{width:190px!important;height:190px!important;min-width:190px!important;min-height:190px!important}
  #appView .plan-donut.exact-donut::after{inset:32px!important}
  #appView .metric-copy b{font-size:16px!important}
  #appView .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* ============================================================
   PHONE
   ============================================================ */
@media(max-width:760px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  #appView{width:100%!important;min-height:100dvh!important}
  #appView .main{width:100%!important;padding-bottom:76px!important}
  #appView .sidebar{display:none!important}
  #appView .content{
    width:100%!important;max-width:none!important;
    padding:10px 10px 88px!important;
  }

  /* compact premium header */
  #appView .topbar{
    min-height:86px!important;
    grid-template-columns:44px minmax(0,1fr)!important;
    gap:6px 10px!important;
    padding:9px 10px 8px!important;
  }
  #appView #menuBtn{display:grid!important;place-items:center!important;grid-column:1!important;grid-row:1!important}
  #appView .topbar-title{grid-column:2!important;grid-row:1!important;padding-left:44px!important}
  #appView .topbar-title::before{width:34px!important;height:34px!important}
  #appView #pageTitle{font-size:19px!important}
  #appView #statusLine{font-size:10.5px!important;margin-top:2px!important}
  #appView .top-controls{
    grid-column:1/-1!important;grid-row:2!important;
    display:grid!important;grid-template-columns:1fr 1fr!important;
    gap:7px!important;width:100%!important
  }
  #appView .top-controls select,#appView .top-controls input{min-height:38px!important;font-size:12.5px!important}
  #appView .top-controls .btn{grid-column:1/-1!important;min-height:36px!important;font-size:12.5px!important}

  /* page intro */
  #appView .page-intro,#appView .exact-intro{
    align-items:center!important;
    gap:8px!important;
    margin:1px 0 10px!important
  }
  #appView .page-intro h1,#appView .exact-intro h1{font-size:26px!important}
  #appView .page-intro p,#appView .exact-intro p{font-size:12.5px!important;margin-top:4px!important}
  #appView .page-actions{flex-shrink:0!important}
  #appView .segmented,#appView .exact-segment{min-width:150px!important;padding:3px!important;border-radius:11px!important}
  #appView .segmented button,#appView .segmented label,#appView .exact-segment button,#appView .exact-segment label{
    min-width:65px!important;min-height:30px!important;padding:0 8px!important;font-size:11px!important;border-radius:8px!important
  }

  /* dashboard injected hero */
  #appView .v23-hero.v23-dashboard{align-items:center!important;gap:8px!important;margin-bottom:10px!important}
  #appView .v23-hero h1::after{font-size:27px!important}
  #appView .v23-hero p{font-size:12px!important}
  #appView .v23-hero-actions{flex-shrink:0!important}

  /* cards + typography */
  #appView .premium-card{padding:12px!important;margin-bottom:9px!important;border-radius:15px!important}
  #appView .card{padding:12px!important;border-radius:14px!important}
  #appView .section-head{min-height:31px!important;margin-bottom:8px!important}
  #appView .section-head h3{font-size:15px!important}
  #appView .section-link{font-size:11px!important}
  #appView .branch-chip{padding:5px 8px!important;font-size:9.5px!important}

  /* dashboard plan: readable but compact */
  #appView .exact-plan .plan-layout,#appView .plan-card .plan-layout{
    grid-template-columns:144px minmax(0,1fr)!important;
    gap:8px!important
  }
  #appView .plan-donut.exact-donut{
    width:132px!important;height:132px!important;min-width:132px!important;min-height:132px!important
  }
  #appView .plan-donut.exact-donut::after{inset:23px!important}
  #appView .plan-donut-center small{font-size:8.5px!important}
  #appView .plan-donut-center b{font-size:27px!important}
  #appView .donut-legend{
    grid-template-columns:repeat(2,auto)!important;justify-content:center!important;
    gap:4px 7px!important;margin-top:7px!important;font-size:8.5px!important
  }
  #appView .donut-legend i{width:6px!important;height:6px!important;flex-basis:6px!important}
  #appView .sales-type-grid,#appView .sales-type-grid.four{gap:5px!important}
  #appView .premium-metric,#appView .exact-metric{min-height:86px!important;padding:7px!important;border-radius:10px!important}
  #appView .metric-icon{width:25px!important;height:25px!important;border-radius:7px!important;font-size:12px!important}
  #appView .metric-copy span{margin-top:4px!important;font-size:8.5px!important}
  #appView .metric-copy b{font-size:11.5px!important;line-height:1.1!important}
  #appView .metric-copy small{font-size:7.5px!important;line-height:1.2!important}
  #appView .total-strip{gap:5px!important;margin-top:6px!important}
  #appView .total-strip>div{padding:7px!important}
  #appView .total-strip span{font-size:8px!important}
  #appView .total-strip b{font-size:10.5px!important}
  #appView .plan-strip{margin-top:6px!important;padding-top:6px!important}
  #appView .plan-strip>div{padding:0 5px!important}
  #appView .plan-strip span{font-size:7.5px!important}
  #appView .plan-strip b{font-size:9px!important}

  /* chart */
  #appView .sales-chart.exact-chart{height:180px!important}
  #appView .sales-chart.exact-chart svg{height:150px!important}
  #appView .chart-labels{font-size:9px!important}
  #appView .chart-hint,
  #appView .premium-card .hint{font-size:0!important;line-height:0!important;min-height:0!important;margin:0!important;padding:0!important}

  /* forms */
  #appView .form-card{padding:14px!important;border-radius:16px!important}
  #appView .form-title{margin-bottom:14px!important}
  #appView .form-title h2{font-size:24px!important}
  #appView .form-title p{font-size:12px!important}
  #appView .form-grid{grid-template-columns:1fr!important;gap:11px!important}
  #appView .form-grid .wide{grid-column:auto!important}
  #appView .field{font-size:13px!important}
  #appView .field input,#appView .field select,#appView .filters input,#appView .filters select{min-height:44px!important;font-size:14px!important}
  #appView .search-box{min-height:46px!important}
  #appView .search-box input{font-size:14px!important}
  #appView .form-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  #appView .form-actions .btn{min-width:0!important}

  /* stock filters */
  #appView .stock-filter,#appView .filters{
    grid-template-columns:1fr 1fr!important;gap:8px!important
  }
  #appView .stock-filter .search-box,#appView .filters .search-box{grid-column:1/-1!important}

  /* readable mobile tables */
  #appView .table-wrap.mobile-card-table{overflow:visible!important;border:0!important;background:transparent!important}
  #appView .mobile-card-table .table{min-width:0!important;display:block!important}
  #appView .mobile-card-table thead{display:none!important}
  #appView .mobile-card-table tbody{display:grid!important;gap:8px!important}
  #appView .mobile-card-table tr{
    display:grid!important;
    grid-template-columns:58px 1fr auto!important;
    gap:6px 10px!important;
    padding:11px!important;
    border:1px solid var(--om-line)!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:var(--om-shadow-soft)!important
  }
  #appView .mobile-card-table td{display:block!important;padding:0!important;border:0!important;font-size:12.5px!important}
  #appView .mobile-card-table td:first-child{grid-row:1/4!important;grid-column:1!important}
  #appView .mobile-card-table td:nth-child(2){grid-column:2/4!important}
  #appView .mobile-card-table td[data-label]::before{
    content:attr(data-label) ": "!important;
    color:var(--om-muted)!important;
    font-size:10px!important;font-weight:700!important
  }
  #appView .prod-thumb{width:54px!important;height:54px!important}
  #appView .table:not(.mobile-card-table .table){min-width:690px!important}
  #appView .table th{font-size:10.5px!important;padding:8px 7px!important}
  #appView .table td{font-size:11.5px!important;padding:8px 7px!important}
  #appView .table .muted{font-size:9.5px!important}

  /* categories */
  #appView .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  #appView .cat{border-radius:13px!important}
  #appView .cat img{height:105px!important}
  #appView .cat-body{padding:10px!important}
  #appView .cat-title{font-size:14px!important}
  #appView .cat-meta{font-size:10.5px!important}

  /* summary */
  #appView .summary-pills{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  #appView .summary-pills span{padding:9px!important;font-size:10.5px!important}
  #appView .summary-pills b{font-size:17px!important}

  /* line items */
  #appView .line-row{
    grid-template-columns:1fr 70px 95px 36px!important;
    gap:6px!important
  }

  /* bottom nav */
  #appView #bottomNav{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:100!important;
    min-height:70px!important;
    display:grid!important;grid-template-columns:repeat(5,1fr)!important;align-items:center!important;gap:2px!important;
    padding:6px 8px max(6px,env(safe-area-inset-bottom))!important;
    border-top:1px solid var(--om-line)!important;
    background:rgba(255,255,255,.98)!important;
    box-shadow:0 -8px 24px rgba(16,39,69,.08)!important;
    backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important
  }
  #appView #bottomNav button{
    min-width:0!important;min-height:54px!important;padding:4px 2px!important;
    border:0!important;border-radius:10px!important;background:transparent!important;
    color:#526b86!important;font-size:10px!important;font-weight:750!important
  }
  #appView #bottomNav button.active{color:var(--om-red)!important;background:#fff5f6!important}
}

/* ============================================================
   VERY SMALL PHONE
   ============================================================ */
@media(max-width:420px){
  #appView .content{padding-left:7px!important;padding-right:7px!important}
  #appView .topbar{padding-left:8px!important;padding-right:8px!important}
  #appView .page-intro h1,#appView .exact-intro h1,#appView .v23-hero h1::after{font-size:24px!important}
  #appView .page-intro p,#appView .exact-intro p,#appView .v23-hero p{font-size:11.5px!important}
  #appView .segmented,#appView .exact-segment{min-width:140px!important}
  #appView .segmented button,#appView .segmented label,#appView .exact-segment button,#appView .exact-segment label{min-width:58px!important;font-size:10px!important}
  #appView .exact-plan .plan-layout,#appView .plan-card .plan-layout{grid-template-columns:132px minmax(0,1fr)!important}
  #appView .plan-donut.exact-donut{width:122px!important;height:122px!important;min-width:122px!important;min-height:122px!important}
  #appView .plan-donut.exact-donut::after{inset:21px!important}
  #appView .plan-donut-center b{font-size:25px!important}
  #appView .metric-copy b{font-size:10.8px!important}
  #appView .metric-copy small{font-size:7px!important}
  #appView .line-row{grid-template-columns:1fr 62px 84px 34px!important}
}

/* ---------- HARD GUARDS ---------- */
#loginView.hidden{display:none!important}
#appView:not(.hidden){display:grid}


/* ---------- V20.8 CHART CLEANUP ---------- */
#appView .v208-chart-help{display:none!important}
#appView .v208-chart-caption{
  margin:0 0 8px!important;
  color:var(--om-text)!important;
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:750!important;
}
#appView .v208-labels{font-size:11px!important;color:var(--om-muted)!important}
@media(max-width:760px){
  #appView .v208-chart-caption{font-size:12px!important;margin-bottom:5px!important}
  #appView .v208-labels{font-size:9px!important}
}

/* ============================================================
   PREMIUM FINAL TUNING 2026-09-24
   Readability first: no micro-text, compact but premium.
   UI ONLY — Algenix/auth/API/sync/backend untouched.
   ============================================================ */

@media (max-width:760px){
  #appView .content{padding:8px 9px 90px!important}
  #appView .topbar{min-height:78px!important;padding:7px 9px!important}
  #appView #pageTitle{font-size:20px!important}
  #appView #statusLine{font-size:11.5px!important;line-height:1.25!important}
  #appView .top-controls select,
  #appView .top-controls input,
  #appView .top-controls .btn{font-size:13px!important}

  #appView .page-intro h1,
  #appView .exact-intro h1,
  #appView .v23-hero h1::after{font-size:27px!important;line-height:1.03!important}
  #appView .page-intro p,
  #appView .exact-intro p,
  #appView .v23-hero p{font-size:13px!important;line-height:1.35!important}

  #appView .premium-card{padding:12px!important}
  #appView .section-head h3{font-size:16.5px!important;line-height:1.2!important}
  #appView .section-link{font-size:12.5px!important}
  #appView .branch-chip{font-size:11px!important}

  #appView .segmented,
  #appView .exact-segment{min-width:150px!important}
  #appView .segmented button,
  #appView .segmented label,
  #appView .exact-segment button,
  #appView .exact-segment label{
    min-height:32px!important;
    font-size:12px!important;
    min-width:66px!important;
  }

  #appView .exact-plan .plan-layout,
  #appView .plan-card .plan-layout{
    grid-template-columns:146px minmax(0,1fr)!important;
    gap:9px!important;
    align-items:start!important;
  }
  #appView .plan-donut.exact-donut{
    width:132px!important;height:132px!important;
    min-width:132px!important;min-height:132px!important;
  }
  #appView .plan-donut-center small{font-size:10px!important}
  #appView .plan-donut-center b{font-size:29px!important}
  #appView .donut-legend{font-size:10px!important;gap:4px 7px!important}

  #appView .sales-type-grid,
  #appView .sales-type-grid.four{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important
  }
  #appView .premium-metric,
  #appView .exact-metric{
    min-height:92px!important;
    padding:8px!important;
  }
  #appView .metric-icon{width:28px!important;height:28px!important;font-size:13px!important}
  #appView .metric-copy span{font-size:10.5px!important}
  #appView .metric-copy b{font-size:12.5px!important;line-height:1.2!important}
  #appView .metric-copy small{font-size:10px!important;line-height:1.25!important}
  #appView .total-strip span,
  #appView .plan-strip span{font-size:10px!important}
  #appView .total-strip b{font-size:12px!important}
  #appView .plan-strip b{font-size:10.5px!important}

  #appView .sales-chart.exact-chart{height:195px!important}
  #appView .sales-chart.exact-chart svg{height:164px!important}
  #appView .chart-labels{font-size:10px!important}
  #appView .v208-chart-caption{font-size:12.5px!important}
  #appView .v208-labels{font-size:10px!important}

  #appView .table th{font-size:11.5px!important}
  #appView .table td{font-size:12.5px!important}
  #appView .table .muted{font-size:10.5px!important}
  #appView .mobile-card-table td{font-size:13px!important}
  #appView .mobile-card-table td[data-label]::before{font-size:11px!important}

  #appView .field,
  #appView .field input,
  #appView .field select,
  #appView .field textarea,
  #appView .search-box input,
  #appView .filters input,
  #appView .filters select{font-size:14px!important}
  #appView .muted,
  #appView .hint{font-size:12px!important}

  #appView .cat-title{font-size:15px!important}
  #appView .cat-meta{font-size:12px!important}
  #appView .summary-pills span{font-size:11.5px!important}
  #appView .summary-pills b{font-size:18px!important}
  #appView .badge{font-size:11.5px!important}
  #appView #bottomNav button{font-size:11px!important}
}

/* Narrow phones: keep readable, allow vertical reflow instead of shrinking text */
@media (max-width:390px){
  #appView .page-intro,
  #appView .exact-intro,
  #appView .v23-hero.v23-dashboard{
    align-items:flex-start!important;
  }
  #appView .exact-plan .plan-layout,
  #appView .plan-card .plan-layout{
    grid-template-columns:132px minmax(0,1fr)!important;
  }
  #appView .plan-donut.exact-donut{
    width:122px!important;height:122px!important;
    min-width:122px!important;min-height:122px!important;
  }
  #appView .sales-type-grid,
  #appView .sales-type-grid.four{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #appView .metric-copy b{font-size:12px!important}
}

/* Desktop polish */
@media (min-width:1100px){
  #appView .content{max-width:1280px!important;padding-top:22px!important}
  #appView .premium-card{padding:19px!important}
  #appView .section-head h3{font-size:19px!important}
  #appView .table th{font-size:12.5px!important}
  #appView .table td{font-size:14px!important}
}

/* Final safety override: only chart helper text is hidden. Other helper text stays readable. */
@media (max-width:760px){
  #appView .hint{
    font-size:12px!important;
    line-height:1.4!important;
    min-height:auto!important;
    margin:initial;
    padding:initial;
  }
  #appView .v208-chart-help,
  #appView .chart-hint{display:none!important}
}

/* ============================================================
   FINAL SYSTEM COVERAGE 2026-09-24
   Frontend-only responsive safety layer.
   ============================================================ */
#appView .premium-card,
#appView .card,
#appView .form-card,
#appView .table-wrap,
#appView .category-grid,
#appView .line-panel{min-width:0!important;max-width:100%!important}
#appView img,#appView svg{max-width:100%!important}
#appView .table-wrap{overscroll-behavior-x:contain!important}
#appView .filters>* ,#appView .stock-filter>* ,#appView .form-grid>*{min-width:0!important}
#appView .btn,#appView button,#appView input,#appView select,#appView textarea{max-width:100%!important}
#appView .field input,#appView .field select,#appView .field textarea{width:100%!important}

@media (max-width:760px){
  #appView .line-row{grid-template-columns:minmax(0,1fr) 72px 102px 38px!important}
  #appView .line-row>*{min-width:0!important}
  #appView .form-actions .btn{min-height:46px!important;font-size:14px!important}
  #appView #bottomNav button{font-size:11px!important;line-height:1.15!important}
  #appView .badge{font-size:11.5px!important;line-height:1.2!important}
  #appView .result-item{font-size:14px!important;line-height:1.35!important}
  #appView .summary-pills span{font-size:11.5px!important}
  #appView .cat-meta{font-size:12px!important;line-height:1.3!important}
}
@media (max-width:390px){
  #appView .line-row{grid-template-columns:minmax(0,1fr) 64px 88px 36px!important}
  #appView .form-actions{grid-template-columns:1fr!important}
  #appView .top-controls{grid-template-columns:1fr!important}
  #appView .top-controls .btn{grid-column:auto!important}
}

/* Phone final readability: never squeeze plan metrics beside the donut. */
@media (max-width:430px){
  #appView .exact-plan .plan-layout,
  #appView .plan-card .plan-layout{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  #appView .donut-wrap{margin-bottom:2px!important}
  #appView .sales-type-grid,
  #appView .sales-type-grid.four{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  #appView .premium-metric,
  #appView .exact-metric{min-height:88px!important}
  #appView .metric-copy b{
    font-size:13px!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  #appView .metric-copy small{font-size:10.5px!important}
}

/* OMBORCHI SELLER TABLE READABILITY 2026-09-27 */
#appView .seller-results-card .seller-table{overflow:auto!important}
#appView .seller-results-card .seller-table .table{
  min-width:1580px!important;table-layout:auto!important
}
#appView .seller-results-card .seller-table th{
  padding:15px 14px!important;font-size:14px!important;line-height:1.25!important;font-weight:900!important
}
#appView .seller-results-card .seller-table td{
  padding:16px 14px!important;font-size:15.5px!important;line-height:1.35!important;font-weight:700!important
}
#appView .seller-results-card .seller-table th:nth-child(2),
#appView .seller-results-card .seller-table td:nth-child(2){
  min-width:300px!important;max-width:360px!important;white-space:normal!important
}
#appView .seller-results-card .seller-table td:nth-child(2) b{
  display:block!important;font-size:16.5px!important;line-height:1.35!important;font-weight:900!important
}
#appView .seller-results-card .seller-table .num{white-space:nowrap!important;font-size:15.5px!important}
#appView .seller-results-card .forecast-pill{min-width:72px!important;padding:8px 12px!important;font-size:14px!important}
#appView .seller-results-card .rank-bubble{width:34px!important;height:34px!important;font-size:14px!important}
@media(max-width:760px){
  #appView .seller-results-card .seller-table .table{min-width:1500px!important}
  #appView .seller-results-card .seller-table th{font-size:13.5px!important;padding:14px 12px!important}
  #appView .seller-results-card .seller-table td{font-size:14.5px!important;padding:15px 12px!important}
  #appView .seller-results-card .seller-table td:nth-child(2) b{font-size:15.5px!important}
}

#appView .seller-results-card .seller-total-row td{
  background:#fff1f3!important;border-top:2px solid #e0192d!important;
  color:#b81327!important;font-weight:900!important
}
#appView .seller-results-card .seller-total-row td b{color:#b81327!important;font-weight:950!important}


/* OFFICE AGGREGATE DASHBOARD 2026-09-27 */
#appView .office-summary-grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:0 0 16px!important
}
#appView .office-round-card{
  display:flex!important;align-items:center!important;gap:14px!important;min-height:112px!important;
  padding:18px!important;border:1px solid #e5edf7!important;border-radius:24px!important;background:#fff!important;
  box-shadow:0 10px 28px rgba(34,64,104,.08)!important
}
#appView .office-round-icon{
  width:58px!important;height:58px!important;flex:0 0 58px!important;border-radius:50%!important;
  display:grid!important;place-items:center!important;font-size:25px!important;font-weight:900!important;
  background:linear-gradient(145deg,#f3f7ff,#dce9ff)!important;color:#2369db!important
}
#appView .office-round-card.done .office-round-icon{background:linear-gradient(145deg,#eafff2,#ccf7df)!important;color:#16a765!important}
#appView .office-round-card.remain .office-round-icon{background:linear-gradient(145deg,#fff6ea,#ffe4bb)!important;color:#f29b22!important}
#appView .office-round-card>div:last-child{min-width:0!important}
#appView .office-round-card span{display:block!important;color:#61758c!important;font-size:12px!important;font-weight:800!important}
#appView .office-round-card b{display:block!important;margin-top:4px!important;color:#13233a!important;font-size:22px!important;line-height:1.1!important;font-weight:950!important}
#appView .office-round-card small{display:block!important;margin-top:6px!important;color:#8796aa!important;font-size:11px!important;font-weight:750!important}
#appView .office-round-progress{
  --p:0;width:64px!important;height:64px!important;flex:0 0 64px!important;border-radius:50%!important;
  display:grid!important;place-items:center!important;background:conic-gradient(#ef233c calc(var(--p)*1%),#eef3f8 0)!important;position:relative!important
}
#appView .office-round-progress:after{
  content:"";position:absolute!important;inset:8px!important;border-radius:50%!important;background:#fff!important
}
#appView .office-round-progress b{position:relative!important;z-index:1!important;margin:0!important;font-size:15px!important;color:#ef233c!important}

#appView .office-dynamics-card{padding:20px!important;border-radius:24px!important;overflow:hidden!important}
#appView .office-dyn-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;margin-bottom:12px!important}
#appView .office-dyn-head h3{margin:0!important;font-size:20px!important;font-weight:950!important}
#appView .office-dyn-head p{margin:5px 0 0!important;color:#6f8299!important;font-size:12px!important;font-weight:750!important}
#appView .office-dyn-kpis{display:grid!important;grid-template-columns:repeat(3,minmax(145px,1fr))!important;gap:10px!important}
#appView .office-dyn-kpis span{display:block!important;padding:10px 14px!important;border-radius:16px!important;border:1px solid #e5edf7!important;background:#fbfdff!important}
#appView .office-dyn-kpis b{display:block!important;font-size:17px!important;font-weight:950!important;color:#11243e!important}
#appView .office-dyn-kpis small{display:block!important;margin-top:3px!important;font-size:10px!important;font-weight:800!important;color:#74869b!important}
#appView .office-dyn-tabs{display:flex!important;gap:6px!important;margin:8px 0 16px!important;padding:4px!important;width:max-content!important;border-radius:14px!important;background:#f2f6fb!important}
#appView .office-dyn-tabs button{border:0!important;border-radius:11px!important;padding:8px 20px!important;background:transparent!important;color:#425b78!important;font-weight:850!important}
#appView .office-dyn-tabs button.active{background:linear-gradient(135deg,#2d7cf4,#6145f6)!important;color:#fff!important;box-shadow:0 5px 14px rgba(62,90,240,.28)!important}
#appView .office-dyn-tabs button:disabled{opacity:.5!important}
#appView .office-dyn-chart{
  display:grid!important;grid-template-columns:repeat(var(--days,30),minmax(18px,1fr))!important;align-items:end!important;gap:7px!important;
  min-height:300px!important;padding:18px 8px 0!important;border-top:1px solid #edf2f7!important;overflow-x:auto!important
}
#appView .office-dyn-col{min-width:22px!important;text-align:center!important;cursor:default!important}
#appView .office-dyn-track{height:220px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;border-bottom:1px solid #dce5f0!important}
#appView .office-dyn-track i{
  display:block!important;width:78%!important;min-height:3px!important;border-radius:10px 10px 3px 3px!important;
  background:linear-gradient(180deg,#5948f6 0%,#2d7cf4 55%,#24d4df 100%)!important;
  box-shadow:0 8px 18px rgba(45,124,244,.18)!important;transition:.18s ease!important
}
#appView .office-dyn-col:hover .office-dyn-track i{transform:translateY(-3px)!important;filter:saturate(1.15)!important}
#appView .office-dyn-col.future{opacity:.42!important}
#appView .office-dyn-value{display:block!important;min-height:18px!important;margin-bottom:4px!important;font-size:11px!important;font-weight:950!important;color:#18365f!important}
#appView .office-dyn-col>b{display:block!important;margin-top:7px!important;font-size:10px!important;color:#1e3552!important}
#appView .office-dyn-col>small{display:block!important;font-size:9px!important;color:#8a9aaf!important}

@media(max-width:900px){
 #appView .office-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #appView .office-dyn-head{display:block!important}
 #appView .office-dyn-kpis{grid-template-columns:repeat(3,minmax(110px,1fr))!important;margin-top:12px!important;overflow-x:auto!important}
 #appView .office-dyn-chart{grid-template-columns:repeat(var(--days,30),minmax(28px,1fr))!important}
}
@media(max-width:560px){
 #appView .office-summary-grid{grid-template-columns:1fr!important}
 #appView .office-round-card{min-height:92px!important;padding:14px!important}
 #appView .office-dyn-kpis{grid-template-columns:1fr!important}
 #appView .office-dyn-tabs{max-width:100%!important;overflow-x:auto!important}
 #appView .office-dyn-tabs button{padding:7px 14px!important;white-space:nowrap!important}
}

/* OMBORCHI REPORT + DYNAMICS 2026-09-27 */
#appView .report-table-card{padding:0!important;overflow:hidden!important;border:1px solid #e7e9ee!important;border-radius:22px!important;background:#fff!important}
#appView .report-table-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;padding:16px 18px!important;border-left:6px solid #e1192d!important;background:#fff!important}
#appView .report-table-title h3{margin:0!important;color:#111827!important;font-size:20px!important;font-weight:950!important}
#appView .report-table-title p{margin:4px 0 0!important;color:#748094!important;font-size:12px!important;font-weight:750!important}
#appView .report-table-wrap{border-top:1px solid #edf0f4!important}
#appView .report-red-table{border-collapse:separate!important;border-spacing:0!important}
#appView .report-red-table th{background:#d7192d!important;color:#fff!important;border-right:1px solid rgba(255,255,255,.22)!important;border-bottom:1px solid #c81729!important;font-weight:900!important}
#appView .report-red-table td{border-right:1px solid #e7eaf0!important;border-bottom:1px solid #e7eaf0!important;background:#fff!important}
#appView .report-red-table tbody tr:nth-child(even) td{background:#fbfcfd!important}
#appView .report-red-table tbody tr:hover td{background:#fff7f8!important}
#appView .report-red-table .total-row td{background:#fff0f2!important;color:#bd1729!important;font-weight:950!important}
#appView .report-red-table .forecast-pill{min-width:58px!important;border-radius:999px!important;padding:5px 10px!important}
#appView .office-dyn-legend{display:flex!important;justify-content:flex-end!important;gap:14px!important;margin:-4px 6px 8px!important;color:#51637a!important;font-size:11px!important;font-weight:850!important}
#appView .office-dyn-legend span{display:flex!important;align-items:center!important;gap:6px!important}
#appView .office-dyn-legend i,#appView .office-dyn-tooltip .dot{width:9px!important;height:9px!important;border-radius:50%!important;display:inline-block!important;flex:0 0 9px!important}
#appView .office-dyn-legend .sof,#appView .office-dyn-tooltip .dot.sof{background:#2f7df4!important}
#appView .office-dyn-legend .coll,#appView .office-dyn-tooltip .dot.coll{background:#17b978!important}
#appView .office-dyn-legend .cash,#appView .office-dyn-tooltip .dot.cash{background:#ff9f2f!important}

#appView .office-dyn-col{position:relative!important;outline:none!important;cursor:pointer!important}
#appView .office-dyn-track{position:relative!important;display:flex!important;flex-direction:column-reverse!important;justify-content:flex-start!important;align-items:center!important;gap:0!important}
#appView .office-dyn-track .dyn-seg{display:block!important;width:78%!important;min-height:0!important;border-radius:0!important;box-shadow:none!important;transition:none!important}
#appView .office-dyn-track .dyn-seg.sof{background:#2f7df4!important;border-radius:0 0 4px 4px!important}
#appView .office-dyn-track .dyn-seg.coll{background:#17b978!important}
#appView .office-dyn-track .dyn-seg.cash{background:#ff9f2f!important;border-radius:9px 9px 0 0!important}
#appView .office-dyn-col:hover .dyn-seg,#appView .office-dyn-col:focus .dyn-seg{filter:brightness(1.04)!important}
#appView .office-dyn-tooltip{position:absolute!important;left:50%!important;bottom:calc(100% - 34px)!important;z-index:80!important;display:none!important;min-width:210px!important;padding:12px!important;transform:translateX(-50%)!important;border-radius:15px!important;background:rgba(32,24,74,.96)!important;color:#fff!important;box-shadow:0 12px 28px rgba(36,24,88,.28)!important;text-align:left!important;pointer-events:none!important}
#appView .office-dyn-tooltip:after{content:""!important;position:absolute!important;left:50%!important;bottom:-8px!important;transform:translateX(-50%)!important;border-left:8px solid transparent!important;border-right:8px solid transparent!important;border-top:8px solid rgba(32,24,74,.96)!important}
#appView .office-dyn-col:hover .office-dyn-tooltip,#appView .office-dyn-col:focus .office-dyn-tooltip{display:block!important}
#appView .office-dyn-tooltip strong{display:block!important;margin-bottom:8px!important;font-size:12px!important}
#appView .office-dyn-tooltip span{display:grid!important;grid-template-columns:12px 42px 1fr!important;align-items:center!important;gap:6px!important;margin:5px 0!important;font-size:11px!important}
#appView .office-dyn-tooltip span b{justify-self:end!important;color:#fff!important;font-size:11px!important}
#appView .office-dyn-tooltip span.total{margin-top:8px!important;padding-top:8px!important;border-top:1px solid rgba(255,255,255,.16)!important;font-weight:900!important}
#appView .office-dyn-tooltip .dot.total{background:#fff!important}
@media(max-width:760px){
 #appView .report-table-title{align-items:flex-start!important;flex-direction:column!important}
 #appView .report-table-title h3{font-size:17px!important}
 #appView .report-red-table{min-width:980px!important}
 #appView .office-dyn-tooltip{position:fixed!important;left:50%!important;bottom:96px!important;min-width:min(88vw,320px)!important;transform:translateX(-50%)!important}
 #appView .office-dyn-tooltip:after{display:none!important}
}

/* Tooltip viewport fix + unclipped dynamics */
#appView .office-dynamics-card{overflow:visible!important}
#appView .office-dyn-tooltip{max-width:min(320px,calc(100vw - 16px))!important;white-space:nowrap!important}
#appView .office-dyn-tooltip strong{white-space:nowrap!important}

/* OMBORCHI compact report tables + top day selector 2026-09-27 */
#appView .top-controls #dateSelect{min-width:150px!important}
#appView .report-red-table th,#appView .report-red-table td{padding:8px 10px!important;line-height:1.15!important;vertical-align:middle!important}
#appView .report-red-table th{white-space:nowrap!important}
#appView .report-red-table td.num{white-space:nowrap!important;font-variant-numeric:tabular-nums!important}
#appView .report-red-table td.branch-name,#appView .branch-results-table td:first-child,#appView .branch-daily-results-table td:first-child{white-space:nowrap!important;min-width:155px!important}
#appView .branch-results-table,#appView .branch-daily-results-table{width:max-content!important;min-width:100%!important}
#appView .report-table-wrap{overflow-x:auto!important;overscroll-behavior-inline:contain!important}
#appView .office-dyn-chart{overscroll-behavior-inline:contain!important;scroll-behavior:auto!important}
@media(max-width:760px){
 #appView .top-controls{gap:6px!important;flex-wrap:wrap!important}
 #appView .top-controls #monthSelect,#appView .top-controls #dateSelect{min-width:138px!important;flex:1 1 138px!important}
 #appView .report-red-table td.branch-name,#appView .branch-results-table td:first-child,#appView .branch-daily-results-table td:first-child{white-space:normal!important;min-width:128px!important;max-width:165px!important}
}
