/* ========================================================================== 
   MATEUSCELL 4.9.57 - CSS FORÇADO
   Arquivo carregado depois do style.css para corrigir busca e aplicar o tema.
   ========================================================================== */

body.theme-dark,
body.premium-ui {
  background: radial-gradient(circle at 10% 20%, #0d1b2e 0%, #060b13 90%) !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  color: #f8fafc !important;
}

body.premium-ui .glass-panel,
body.premium-ui .glass-card,
body.premium-ui .panel,
body.premium-ui .toolbar,
body.premium-ui .modal-card {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

body.premium-ui .btn.primary,
body.premium-ui .btn.primary-glow,
body.premium-ui .panic-analyze-primary {
  background: linear-gradient(135deg, #facc15 0%, #eab308 50%, #ca8a04 100%) !important;
  color: #07101c !important;
  border: 0 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.25) !important;
}

body.premium-ui .btn.glass-btn,
body.premium-ui .btn:not(.primary):not(.primary-glow):not(.danger) {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

/* Correção forte para a busca da Mesa de Reparo */
body.premium-ui #page-orders .professional-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 12px !important;
  overflow: visible !important;
}

body.premium-ui #page-orders .professional-toolbar .search,
body.premium-ui #page-orders .toolbar .search,
body.premium-ui #page-orders .search {
  box-sizing: border-box !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 50px !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 15px !important;
  overflow: hidden !important;
  background: rgba(6, 11, 19, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.18) !important;
}

body.premium-ui #page-orders .professional-toolbar .search:focus-within,
body.premium-ui #page-orders .toolbar .search:focus-within,
body.premium-ui #page-orders .search:focus-within {
  border-color: rgba(250, 204, 21, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12), inset 0 1px 0 rgba(255,255,255,0.05), 0 14px 30px rgba(0,0,0,0.26) !important;
}

body.premium-ui #page-orders .professional-toolbar .search > span,
body.premium-ui #page-orders .toolbar .search > span,
body.premium-ui #page-orders .search > span {
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  display: inline-grid !important;
  place-items: center !important;
  color: #94a3b8 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

body.premium-ui #orderSearch,
body.premium-ui #orderSearch:hover,
body.premium-ui #orderSearch:focus,
body.premium-ui #page-orders .professional-toolbar .search input,
body.premium-ui #page-orders .professional-toolbar .search input:hover,
body.premium-ui #page-orders .professional-toolbar .search input:focus {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  color: #f8fafc !important;
  font-size: 14.5px !important;
  line-height: 48px !important;
  text-overflow: ellipsis !important;
}

body.premium-ui #orderSearch::placeholder,
body.premium-ui #page-orders .professional-toolbar .search input::placeholder {
  color: #8da1bd !important;
  opacity: 1 !important;
}

/* A mesma correção para outras buscas do sistema */
body.premium-ui .inline-search,
body.premium-ui .global-search-box .search,
body.premium-ui .counter-search-row .search,
body.premium-ui .film-compat-main-search {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  overflow: hidden !important;
  background: rgba(6, 11, 19, 0.68) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 15px !important;
}

body.premium-ui .inline-search input,
body.premium-ui .global-search-box .search input,
body.premium-ui .counter-search-row .search input,
body.premium-ui .film-compat-main-search input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  body.premium-ui #page-orders .professional-toolbar {
    grid-template-columns: 1fr !important;
  }

  body.premium-ui #page-orders .professional-toolbar .search,
  body.premium-ui #page-orders .toolbar .search,
  body.premium-ui #page-orders .search {
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 14px !important;
  }

  body.premium-ui #orderSearch,
  body.premium-ui #page-orders .professional-toolbar .search input {
    height: 44px !important;
    min-height: 44px !important;
    line-height: 44px !important;
  }
}


/* MateusCell 4.9.61 - acabamento OS / Revenda Pro / PDV */
.search{display:flex!important;align-items:center!important;gap:10px!important;background:rgba(8,15,27,.78)!important;border:1px solid var(--border-subtle,rgba(255,255,255,.08))!important;border-radius:14px!important;padding:6px 12px!important;min-height:48px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important}
.search:focus-within{border-color:var(--border-focus,rgba(250,204,21,.5))!important;box-shadow:0 0 0 3px rgba(250,204,21,.12)!important}.search input{background:transparent!important;border:0!important;box-shadow:none!important;padding:8px 0!important;min-width:0!important;width:100%!important}.search input:focus{box-shadow:none!important;border:0!important}.toolbar.professional-toolbar{display:grid!important;grid-template-columns:minmax(260px,1fr) auto auto!important;gap:12px!important;align-items:center!important}.resale-panel{overflow:hidden!important}.resale-hero{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:18px!important;padding:22px!important;border-radius:20px!important;background:linear-gradient(135deg,rgba(250,204,21,.12),rgba(15,23,42,.35))!important;border:1px solid rgba(250,204,21,.14)!important}.resale-hero h2{font-size:clamp(22px,2.5vw,34px)!important;letter-spacing:-.04em!important;margin:6px 0 8px!important}.resale-actions,.resale-hero-actions,.resale-section-head,.modal-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important}.resale-flow{display:grid!important;grid-template-columns:repeat(5,minmax(130px,1fr))!important;gap:10px!important;margin:16px 0!important}.resale-flow-step{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;text-align:left!important;padding:16px!important;border-radius:16px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.08)!important;color:var(--text-main,#f8fafc)!important}.resale-flow-step b{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border-radius:999px!important;background:var(--primary-gradient,linear-gradient(135deg,#facc15,#ca8a04))!important;color:#111!important}.resale-flow-step.active,.resale-flow-step:hover{border-color:rgba(250,204,21,.34)!important;background:rgba(250,204,21,.08)!important;transform:translateY(-2px)!important}.resale-tabs{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin:14px 0 18px!important}.resale-tabs .btn-tab{min-height:42px!important;padding:10px 14px!important;border-radius:999px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.08)!important;color:#cbd5e1!important}.resale-tabs .btn-tab.active{background:var(--primary-gradient,linear-gradient(135deg,#facc15,#ca8a04))!important;color:#111!important;border-color:transparent!important;font-weight:800!important}.resale-summary{display:grid!important;grid-template-columns:repeat(6,minmax(130px,1fr))!important;gap:10px!important}.resale-card{padding:15px!important;border-radius:16px!important;background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.08)!important}.resale-card span{display:block!important;color:var(--text-muted,#94a3b8)!important;font-size:12px!important}.resale-card b{display:block!important;margin-top:7px!important;font-size:22px!important}.resale-overview-grid{display:grid!important;grid-template-columns:1.15fr .85fr!important;gap:14px!important}.resale-checklist{display:grid!important;gap:10px!important;margin:0!important;padding-left:20px!important}.resale-shortcuts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.resale-box{padding:18px!important;border-radius:18px!important}.resale-section-head{justify-content:space-between!important;align-items:center!important;margin-bottom:14px!important}.tax-preview{display:grid!important;grid-template-columns:repeat(4,minmax(120px,1fr))!important;gap:10px!important;margin:8px 0!important}.tax-preview span{display:block!important;padding:12px!important;border-radius:14px!important;background:rgba(250,204,21,.07)!important;border:1px solid rgba(250,204,21,.14)!important;color:#cbd5e1!important}.tax-preview b{display:block!important;margin-top:4px!important;color:#fff!important;font-size:17px!important}.resale-settings-hint{padding:14px!important;display:flex!important;flex-direction:column!important;gap:4px!important;color:#cbd5e1!important}.resale-settings-grid textarea{min-height:110px!important}.row-actions{display:flex!important;gap:6px!important;flex-wrap:wrap!important}.mini-btn{border-radius:999px!important;padding:7px 10px!important;border:1px solid rgba(255,255,255,.12)!important;background:rgba(255,255,255,.055)!important;color:#e5e7eb!important}.mini-btn:hover{background:rgba(250,204,21,.12)!important;color:#fff!important}.mini-btn.danger{border-color:rgba(239,68,68,.34)!important;color:#fecaca!important}.table-wrap{border-radius:16px!important;overflow:auto!important;border:1px solid rgba(255,255,255,.07)!important}@media(max-width:980px){.toolbar.professional-toolbar{grid-template-columns:1fr!important}.resale-flow,.resale-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.resale-overview-grid{grid-template-columns:1fr!important}.tax-preview{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:560px){.resale-hero{display:block!important;padding:16px!important}.resale-actions{margin-top:12px!important}.resale-flow,.resale-summary,.resale-shortcuts,.tax-preview{grid-template-columns:1fr!important}.resale-tabs{overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:5px!important}.resale-tabs .btn-tab{white-space:nowrap!important}}


/* === Patch 4.9.62 | Revenda Pro + Fluxo diário === */
#page-resale .resale-overview-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)!important;align-items:start!important}
#page-resale .resale-shortcuts-card,
#page-resale .resale-help-card{min-width:0!important;overflow:visible!important}
#page-resale .resale-shortcuts{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;gap:12px!important;align-items:stretch!important}
#page-resale .resale-shortcuts .btn{width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;white-space:normal!important;line-height:1.25!important;padding:13px 14px!important;min-height:54px!important;overflow-wrap:anywhere!important}
#page-resale .resale-shortcuts .btn span{display:inline!important}
#page-resale .resale-note{margin-top:14px!important;line-height:1.55!important}
#page-resale .resale-box{overflow:visible!important}

#page-finance #financeDailyChart{display:block!important;height:auto!important;padding:0!important;overflow:visible!important;background:transparent!important}
#page-finance .finance-chart-shell{display:grid!important;gap:14px!important}
#page-finance .finance-chart-legend{display:flex!important;gap:10px!important;flex-wrap:wrap!important;align-items:center!important}
#page-finance .legend-item{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:8px 12px!important;border-radius:999px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.08)!important;color:#d7e3f5!important;font-size:12px!important;font-weight:700!important}
#page-finance .legend-item i{display:block!important;width:12px!important;height:12px!important;border-radius:999px!important}
#page-finance .legend-item.income i{background:linear-gradient(180deg,#45e2a0,#19b46d)!important}
#page-finance .legend-item.expense i{background:linear-gradient(180deg,#ff8192,#eb4d5f)!important}
#page-finance .finance-chart-track{display:flex!important;align-items:stretch!important;gap:12px!important;overflow-x:auto!important;padding:4px 2px 4px!important;scrollbar-width:thin}
#page-finance .finance-day-card{min-width:108px!important;flex:0 0 108px!important;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.03))!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:18px!important;padding:12px 10px 10px!important;box-shadow:0 10px 24px rgba(0,0,0,.18)!important}
#page-finance .finance-day-values{display:grid!important;gap:6px!important;margin-bottom:10px!important}
#page-finance .finance-amount{display:block!important;font-size:11px!important;font-weight:800!important;line-height:1.25!important;padding:7px 8px!important;border-radius:12px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.06)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#page-finance .finance-amount.income{color:#7cf0b7!important}
#page-finance .finance-amount.expense{color:#ff9eaa!important}
#page-finance .finance-day-card .chart-bars{height:150px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;gap:8px!important;border-bottom:1px solid rgba(255,255,255,.10)!important;padding:0 2px 10px!important;margin-bottom:8px!important;background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0))!important;border-radius:14px 14px 10px 10px!important}
#page-finance .finance-day-card .chart-bars i{width:24px!important;min-height:4px!important;border-radius:10px 10px 4px 4px!important;box-shadow:0 8px 16px rgba(0,0,0,.16)!important}
#page-finance .finance-day-card .chart-bars .income{background:linear-gradient(180deg,#45e2a0,#19b46d)!important}
#page-finance .finance-day-card .chart-bars .expense{background:linear-gradient(180deg,#ff8192,#eb4d5f)!important}
#page-finance .finance-day-card small{display:block!important;text-align:center!important;color:#a6bad8!important;font-size:11px!important;font-weight:800!important;letter-spacing:.02em!important}
@media(max-width:1180px){#page-resale .resale-overview-grid{grid-template-columns:1fr!important}}
@media(max-width:760px){#page-finance .finance-day-card{min-width:96px!important;flex-basis:96px!important}#page-finance .finance-day-card .chart-bars{height:126px!important}}
@media(max-width:560px){#page-resale .resale-shortcuts{grid-template-columns:1fr!important}#page-finance .finance-chart-track{gap:10px!important}#page-finance .finance-day-card{min-width:92px!important;flex-basis:92px!important;padding:10px 8px!important}#page-finance .finance-day-card .chart-bars i{width:20px!important}}


/* ========================================================================== 
   MATEUSCELL 5.0 - ULTRA PREMIUM GLASSMORPHISM & FIXES
   ========================================================================== */

:root {
  --bg-dark-base: #060b13;
  --panel-glass: rgba(13, 22, 38, 0.72);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.16);
  --gold-primary: #facc15;
  --gold-gradient: linear-gradient(135deg, #fde047 0%, #eab308 60%, #ca8a04 100%);
  --gold-glow: 0 4px 20px rgba(234, 179, 8, 0.28);
}

body.theme-dark,
body.premium-ui {
  background: radial-gradient(circle at 50% 0%, #0d1e38 0%, #060b13 75%) !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: #f8fafc !important;
  letter-spacing: -0.01em;
}

body.premium-ui .glass-panel,
body.premium-ui .glass-card,
body.premium-ui .panel,
body.premium-ui .modal-card {
  background: var(--panel-glass) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.premium-ui .btn.primary,
body.premium-ui .btn.primary-glow,
body.premium-ui .panic-analyze-primary,
body.premium-ui .save-os-mobile-main {
  background: var(--gold-gradient) !important;
  color: #060b13 !important;
  border: none !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  box-shadow: var(--gold-glow) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.premium-ui .btn.primary:hover,
body.premium-ui .btn.primary-glow:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 25px rgba(234, 179, 8, 0.45) !important;
  filter: brightness(1.05);
}

body.premium-ui .btn.primary:active,
body.premium-ui .btn.primary-glow:active {
  transform: translateY(0) !important;
}

body.premium-ui .btn.glass-btn,
body.premium-ui .btn:not(.primary):not(.primary-glow):not(.danger) {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-glass) !important;
  color: #cbd5e1 !important;
  border-radius: 12px !important;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

body.premium-ui .btn.glass-btn:hover,
body.premium-ui .btn:not(.primary):not(.primary-glow):not(.danger):hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: var(--border-glass-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.column-head {
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 14px 14px 0 0 !important;
  padding: 12px 16px !important;
  border-top-width: 3px !important;
}

.os-card.professional-card {
  background: rgba(18, 28, 48, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 14px !important;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.os-card.professional-card:hover {
  transform: translateY(-3px) scale(1.01) !important;
  border-color: rgba(250, 204, 21, 0.3) !important;
  box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.6) !important;
}

body.premium-ui .search,
body.premium-ui #page-orders .professional-toolbar .search {
  background: rgba(8, 14, 24, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 14px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}

body.premium-ui .search:focus-within {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15), inset 0 2px 4px rgba(0,0,0,0.4) !important;
}

body.premium-ui #orderSearch,
body.premium-ui .search input {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  color: #f8fafc !important;
  width: 100% !important;
  height: 44px !important;
  line-height: 44px !important;
}

#toast {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  left: auto !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(250, 204, 21, 0.35) !important;
  color: #fff !important;
  border-radius: 14px !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(250, 204, 21, 0.15) !important;
  backdrop-filter: blur(12px) !important;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
  z-index: 9999 !important;
}

#toast.show {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* ==========================================================================
   MATEUSCELL 5.0.0 - FINAL FIXES SOBRE O TEMA DO TEMPLATE
   Mantém os botões da Revenda Pro sem cortar e deixa o Fluxo diário premium.
   ========================================================================== */

body.premium-ui .search,
body.premium-ui #page-orders .professional-toolbar .search{
  min-width:0!important;
  overflow:hidden!important;
}
body.premium-ui .search input{
  min-width:0!important;
  box-sizing:border-box!important;
}

#page-resale .resale-panel{overflow:hidden!important}
#page-resale .resale-overview-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)!important;
  gap:16px!important;
  align-items:start!important;
}
#page-resale .resale-help-card,
#page-resale .resale-shortcuts-card,
#page-resale .resale-box{
  min-width:0!important;
  max-width:100%!important;
  overflow:visible!important;
}
#page-resale .resale-shortcuts{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
}
#page-resale .resale-shortcuts .btn{
  width:100%!important;
  min-width:0!important;
  min-height:56px!important;
  padding:13px 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:normal!important;
  line-height:1.25!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
#page-resale .resale-note{
  margin-top:14px!important;
  line-height:1.55!important;
  padding:13px!important;
  border-radius:14px!important;
}

#page-finance .finance-box-pro.wide-chart{
  overflow:hidden!important;
  position:relative!important;
}
#page-finance #financeDailyChart{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  overflow:visible!important;
  background:transparent!important;
}
#page-finance .finance-chart-shell{display:grid!important;gap:14px!important}
#page-finance .finance-chart-legend{display:flex!important;gap:10px!important;flex-wrap:wrap!important;align-items:center!important}
#page-finance .legend-item{
  display:inline-flex!important;align-items:center!important;gap:8px!important;
  padding:8px 12px!important;border-radius:999px!important;
  background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.09)!important;
  color:#d7e3f5!important;font-size:12px!important;font-weight:800!important;
}
#page-finance .legend-item i{display:block!important;width:12px!important;height:12px!important;border-radius:999px!important}
#page-finance .legend-item.income i{background:linear-gradient(180deg,#45e2a0,#19b46d)!important}
#page-finance .legend-item.expense i{background:linear-gradient(180deg,#ff8192,#eb4d5f)!important}
#page-finance .finance-chart-track{
  display:flex!important;align-items:stretch!important;gap:12px!important;
  overflow-x:auto!important;padding:4px 2px 8px!important;scrollbar-width:thin;
}
#page-finance .finance-day-card{
  min-width:108px!important;flex:0 0 108px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025))!important;
  border:1px solid rgba(255,255,255,.085)!important;border-radius:18px!important;
  padding:12px 10px 10px!important;box-shadow:0 10px 24px rgba(0,0,0,.18)!important;
}
#page-finance .finance-day-values{display:grid!important;gap:6px!important;margin-bottom:10px!important}
#page-finance .finance-amount{
  display:block!important;font-size:11px!important;font-weight:900!important;line-height:1.25!important;
  padding:7px 8px!important;border-radius:12px!important;background:rgba(255,255,255,.045)!important;
  border:1px solid rgba(255,255,255,.06)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
#page-finance .finance-amount.income{color:#7cf0b7!important}
#page-finance .finance-amount.expense{color:#ff9eaa!important}
#page-finance .finance-day-card .chart-bars{
  height:150px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;gap:8px!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;padding:0 2px 10px!important;margin-bottom:8px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,0))!important;border-radius:14px 14px 10px 10px!important;
}
#page-finance .finance-day-card .chart-bars i{
  width:24px!important;min-height:4px!important;border-radius:10px 10px 4px 4px!important;
  box-shadow:0 8px 16px rgba(0,0,0,.16)!important;
}
#page-finance .finance-day-card .chart-bars .income{background:linear-gradient(180deg,#45e2a0,#19b46d)!important}
#page-finance .finance-day-card .chart-bars .expense{background:linear-gradient(180deg,#ff8192,#eb4d5f)!important}
#page-finance .finance-day-card small{display:block!important;text-align:center!important;color:#a6bad8!important;font-size:11px!important;font-weight:900!important;letter-spacing:.02em!important}

body.premium-ui .settings-shortcut-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;
  gap:12px!important;
}
body.premium-ui .settings-shortcut-card{
  min-width:0!important;
  text-align:left!important;
  overflow:hidden!important;
}

@media(max-width:1180px){#page-resale .resale-overview-grid{grid-template-columns:1fr!important}}
@media(max-width:760px){
  #page-resale .resale-shortcuts{grid-template-columns:1fr!important}
  #page-finance .finance-day-card{min-width:96px!important;flex-basis:96px!important}
  #page-finance .finance-day-card .chart-bars{height:126px!important}
}
@media(max-width:560px){
  #page-resale .resale-shortcuts .btn{min-height:52px!important}
  #page-finance .finance-chart-track{gap:10px!important}
  #page-finance .finance-day-card{min-width:92px!important;flex-basis:92px!important;padding:10px 8px!important}
  #page-finance .finance-day-card .chart-bars i{width:20px!important}
}


/* MateusCell 5.0.2 - Bot WhatsApp n8n */
.n8n-whatsapp-panel{overflow:hidden!important;position:relative!important}
.n8n-whatsapp-panel:before{content:"";position:absolute;inset:-140px auto auto -120px;width:280px;height:280px;border-radius:999px;background:radial-gradient(circle,rgba(34,197,94,.18),transparent 70%);pointer-events:none}
.n8n-bot-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:14px 0!important}
.n8n-bot-card{padding:15px!important;border-radius:16px!important;display:grid!important;gap:7px!important;min-height:104px!important}
.n8n-bot-card b{font-size:15px!important;color:#fff!important}
.n8n-bot-card span{font-size:12px!important;line-height:1.45!important;color:var(--text-muted,#94a3b8)!important}
.n8n-endpoint-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:12px 0!important}
.n8n-endpoint-grid label{display:grid!important;gap:6px!important}
.n8n-endpoint-grid label span{font-size:11px!important;font-weight:800!important;text-transform:uppercase!important;color:var(--text-muted,#94a3b8)!important}
.n8n-endpoint-grid input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;background:rgba(6,11,19,.78)!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:12px!important;color:#dbeafe!important;min-height:42px!important;padding:0 10px!important}
@media(max-width:980px){.n8n-bot-grid,.n8n-endpoint-grid{grid-template-columns:1fr!important}}


/* MateusCell 5.0.3 - WhatsApp modo simples */
.n8n-whatsapp-panel{display:none!important}
.simple-whatsapp-panel{overflow:hidden!important;position:relative!important}
.simple-whatsapp-panel:before{content:"";position:absolute;inset:-120px auto auto -120px;width:280px;height:280px;border-radius:999px;background:radial-gradient(circle,rgba(34,197,94,.16),transparent 70%);pointer-events:none}
.simple-wa-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:14px 0!important}
.simple-wa-card{padding:16px!important;border-radius:18px!important;display:grid!important;gap:8px!important;min-height:108px!important}
.simple-wa-card b{font-size:15px!important;color:#fff!important}
.simple-wa-card span{font-size:12px!important;line-height:1.45!important;color:var(--text-muted,#94a3b8)!important}
.simple-wa-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important;margin-top:12px!important}
.simple-wa-actions .btn{min-height:44px!important}
@media(max-width:980px){.simple-wa-grid{grid-template-columns:1fr!important}}


/* === MateusCell 5.0.5 | Melhorias visuais inspiradas nos templates n8n === */
.dashboard-automation-strip{position:relative!important;overflow:hidden!important;padding:18px!important;margin:16px 0!important;border:1px solid rgba(255,255,255,.10)!important;background:linear-gradient(135deg,rgba(255,213,42,.09),rgba(51,136,255,.08),rgba(34,197,94,.06))!important}
.dashboard-automation-strip:before{content:"";position:absolute;right:-90px;top:-120px;width:260px;height:260px;border-radius:999px;background:radial-gradient(circle,rgba(255,213,42,.20),transparent 70%);pointer-events:none}
.automation-strip-head{display:flex!important;justify-content:space-between!important;align-items:flex-end!important;gap:14px!important;margin-bottom:14px!important;position:relative!important;z-index:1!important}
.automation-strip-head span{display:inline-flex!important;align-items:center!important;gap:8px!important;color:#ffd86b!important;font-size:12px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.08em!important}
.automation-strip-head b{font-size:14px!important;color:#f7fbff!important;text-align:right!important}
.automation-strip-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;position:relative!important;z-index:1!important}
.automation-strip-grid button,.automation-strip-grid a{appearance:none!important;border:1px solid rgba(255,255,255,.10)!important;background:rgba(5,12,22,.56)!important;border-radius:18px!important;padding:14px!important;text-align:left!important;color:#eaf2ff!important;text-decoration:none!important;display:grid!important;gap:7px!important;min-height:116px!important;cursor:pointer!important;transition:.18s ease!important;box-shadow:0 12px 28px rgba(0,0,0,.18)!important}
.automation-strip-grid button:hover,.automation-strip-grid a:hover{transform:translateY(-2px)!important;border-color:rgba(255,213,42,.35)!important;background:rgba(255,255,255,.075)!important}
.automation-strip-grid i{font-style:normal!important;font-size:24px!important;width:44px!important;height:44px!important;border-radius:16px!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.08)!important}
.automation-strip-grid strong{font-size:14px!important;line-height:1.2!important;color:#fff!important}
.automation-strip-grid small{font-size:12px!important;line-height:1.35!important;color:#9fb2cc!important}
.smart-ideas-panel{position:relative!important;overflow:hidden!important;background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.03))!important}
.smart-ideas-panel:after{content:"";position:absolute;left:-120px;bottom:-130px;width:280px;height:280px;border-radius:999px;background:radial-gradient(circle,rgba(51,136,255,.16),transparent 72%);pointer-events:none}
.smart-ideas-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:12px!important;position:relative!important;z-index:1!important}
.smart-idea-card{border:1px solid rgba(255,255,255,.10)!important;border-radius:20px!important;padding:16px!important;text-align:left!important;color:#eaf2ff!important;text-decoration:none!important;background:rgba(8,17,31,.54)!important;display:grid!important;gap:8px!important;min-height:112px!important;cursor:pointer!important;transition:.18s ease!important}
.smart-idea-card:hover{transform:translateY(-2px)!important;border-color:rgba(255,213,42,.30)!important;background:rgba(255,255,255,.075)!important}
.smart-idea-card b{font-size:15px!important;color:#fff!important;line-height:1.25!important}
.smart-idea-card span{font-size:12.5px!important;line-height:1.45!important;color:#9fb2cc!important}
.settings-shortcut-grid .settings-shortcut-card,.simple-wa-card{transition:.18s ease!important}
.settings-shortcut-grid .settings-shortcut-card:hover,.simple-wa-card:hover{transform:translateY(-2px)!important;border-color:rgba(255,213,42,.28)!important}
@media(max-width:1200px){.automation-strip-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){.automation-strip-head{align-items:flex-start!important;flex-direction:column!important}.automation-strip-head b{text-align:left!important}.automation-strip-grid{grid-template-columns:1fr!important}.automation-strip-grid button,.automation-strip-grid a{min-height:auto!important}.smart-ideas-grid{grid-template-columns:1fr!important}}


/* === Patch 5.0.6 | Tabelas de compras, pré-estoque e fornecedores === */
body.premium-ui #page-purchases .table-wrap,
body.premium-ui #page-resale .table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:visible;
  border-radius:18px;
  border:1px solid rgba(148,163,184,.16);
  background:rgba(15,23,42,.28);
}
body.premium-ui #purchasesTable,
body.premium-ui #suppliersTable,
body.premium-ui #devicePurchasesTable,
body.premium-ui #deviceStockTable{
  width:100%;
  min-width:860px;
  table-layout:auto;
  border-collapse:separate;
  border-spacing:0;
}
body.premium-ui #purchasesTable th,
body.premium-ui #suppliersTable th,
body.premium-ui #devicePurchasesTable th,
body.premium-ui #deviceStockTable th{
  white-space:nowrap;
  position:sticky;
  top:0;
  z-index:2;
  background:rgba(10,16,28,.96);
}
body.premium-ui #purchasesTable td,
body.premium-ui #suppliersTable td,
body.premium-ui #devicePurchasesTable td,
body.premium-ui #deviceStockTable td{
  vertical-align:middle;
  padding:18px 14px;
  overflow:visible;
}
body.premium-ui td.item-main,
body.premium-ui #purchasesTable td:first-child,
body.premium-ui #devicePurchasesTable td:first-child{
  min-width:240px;
  max-width:360px;
}
body.premium-ui td.item-main b,
body.premium-ui #purchasesTable td b,
body.premium-ui #devicePurchasesTable td b{
  white-space:normal;
  line-height:1.25;
  word-break:break-word;
}
body.premium-ui .actions-cell,
body.premium-ui #purchasesTable td:last-child,
body.premium-ui #suppliersTable td:last-child,
body.premium-ui #devicePurchasesTable td:last-child,
body.premium-ui #deviceStockTable td:last-child{
  min-width:190px;
  width:220px;
  overflow:visible!important;
}
body.premium-ui .row-actions,
body.premium-ui .row-actions-stack{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center;
  justify-content:flex-start;
  gap:8px!important;
  min-width:0;
  overflow:visible!important;
}
body.premium-ui .row-actions .mini-btn,
body.premium-ui .actions-cell .mini-btn,
body.premium-ui .primary-mini{
  min-height:34px;
  padding:8px 11px;
  border-radius:11px;
  white-space:nowrap;
  line-height:1.05;
}
body.premium-ui .mini-btn.danger,
body.premium-ui .row-actions .danger{
  border-color:rgba(248,113,113,.45)!important;
  color:#fecaca!important;
  background:rgba(127,29,29,.22)!important;
}
body.premium-ui .primary-mini{
  border-color:rgba(34,197,94,.55)!important;
  color:#bbf7d0!important;
  background:rgba(22,101,52,.22)!important;
}
body.premium-ui .wa-quote-preview{
  display:block;
  margin-top:8px;
  color:#94a3b8;
  white-space:normal;
}
body.premium-ui .resale-purchase-row,
body.premium-ui .supplier-price-row{
  transition:background .18s ease, transform .18s ease;
}
body.premium-ui .resale-purchase-row:hover,
body.premium-ui .supplier-price-row:hover{
  background:rgba(255,213,42,.035);
}
body.premium-ui .supplier-select-field small,
body.premium-ui #deviceSellerPhone + small{
  color:#94a3b8;
}
body.premium-ui .supplier-edit-action{
  display:flex;
  align-items:end;
}
body.premium-ui .supplier-edit-action .btn{
  width:100%;
  min-height:48px;
  justify-content:center;
}
@media (max-width: 920px){
  body.premium-ui #purchasesTable,
  body.premium-ui #suppliersTable,
  body.premium-ui #devicePurchasesTable,
  body.premium-ui #deviceStockTable{min-width:720px;}
  body.premium-ui .desktop-only-cell{display:none!important;}
  body.premium-ui .actions-cell{min-width:180px;width:200px;}
}


/* === Patch 5.0.7 | Alinhamento Preços de Fornecedor === */
body.premium-ui #page-purchases .purchases-grid{grid-template-columns:minmax(0,1fr) 320px!important;align-items:start!important}
body.premium-ui #page-purchases .purchases-wide{min-width:0!important}
body.premium-ui #page-purchases .table-wrap{overflow-x:auto!important;overflow-y:hidden!important}
body.premium-ui #purchasesTable{min-width:1180px!important;width:100%!important}
body.premium-ui #purchasesTable th,
body.premium-ui #purchasesTable td{box-sizing:border-box!important;vertical-align:top!important}
body.premium-ui #purchasesTable th:nth-child(1),body.premium-ui #purchasesTable td:nth-child(1){width:28%!important;min-width:280px!important}
body.premium-ui #purchasesTable th:nth-child(2),body.premium-ui #purchasesTable td:nth-child(2){width:14%!important;min-width:150px!important}
body.premium-ui #purchasesTable th:nth-child(3),body.premium-ui #purchasesTable td:nth-child(3){width:12%!important;min-width:130px!important}
body.premium-ui #purchasesTable th:nth-child(4),body.premium-ui #purchasesTable td:nth-child(4){width:11%!important;min-width:105px!important}
body.premium-ui #purchasesTable th:nth-child(5),body.premium-ui #purchasesTable td:nth-child(5){width:7%!important;min-width:70px!important;text-align:center!important}
body.premium-ui #purchasesTable th:nth-child(6),body.premium-ui #purchasesTable td:nth-child(6){width:16%!important;min-width:190px!important}
body.premium-ui #purchasesTable th:nth-child(7),body.premium-ui #purchasesTable td:nth-child(7){width:10%!important;min-width:110px!important}
body.premium-ui #purchasesTable th:nth-child(8),body.premium-ui #purchasesTable td:nth-child(8){width:180px!important;min-width:180px!important;text-align:right!important}
body.premium-ui #purchasesTable td:nth-child(8) .row-actions-stack{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;width:100%!important}
body.premium-ui #purchasesTable td:nth-child(8) .mini-btn{width:100%!important;justify-content:center!important;padding:9px 12px!important;border-radius:999px!important}
body.premium-ui #purchasesTable td:nth-child(8) .wa-quote-preview{display:block!important;text-align:center!important;margin-top:4px!important}
body.premium-ui #purchasesTable td small,
body.premium-ui #suppliersTable td small{display:block!important;line-height:1.35!important;margin-top:4px!important;white-space:normal!important;word-break:break-word!important}
body.premium-ui #purchasesTable .price-range{display:block!important;white-space:normal!important;line-height:1.45!important}
body.premium-ui #suppliersTable{min-width:760px!important}
body.premium-ui #suppliersTable th:nth-child(1),body.premium-ui #suppliersTable td:nth-child(1){width:34%!important;min-width:220px!important}
body.premium-ui #suppliersTable th:nth-child(2),body.premium-ui #suppliersTable td:nth-child(2){width:24%!important;min-width:170px!important}
body.premium-ui #suppliersTable th:nth-child(3),body.premium-ui #suppliersTable td:nth-child(3){width:16%!important;min-width:110px!important}
body.premium-ui #suppliersTable th:nth-child(4),body.premium-ui #suppliersTable td:nth-child(4){width:26%!important;min-width:190px!important}
body.premium-ui #suppliersTable td:nth-child(4) .row-actions-stack{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
@media (max-width: 1180px){
  body.premium-ui #page-purchases .purchases-grid{grid-template-columns:1fr!important}
}
@media (max-width: 920px){
  body.premium-ui #purchasesTable{min-width:980px!important}
  body.premium-ui #purchasesTable th:nth-child(8),body.premium-ui #purchasesTable td:nth-child(8){min-width:165px!important;width:165px!important}
}


/* === Patch 5.0.8 | Ações fáceis de acessar === */
body.premium-ui #purchasesTable,
body.premium-ui #devicePurchasesTable{
  min-width:900px!important;
}
body.premium-ui #purchasesTable th:nth-child(1),
body.premium-ui #purchasesTable td:nth-child(1),
body.premium-ui #devicePurchasesTable th:nth-child(1),
body.premium-ui #devicePurchasesTable td:nth-child(1){
  width:34%!important;
  min-width:300px!important;
}
body.premium-ui #purchasesTable th:nth-child(7),
body.premium-ui #purchasesTable td:nth-child(7){
  width:10%!important;
  min-width:115px!important;
}
body.premium-ui #devicePurchasesTable th:nth-child(5),
body.premium-ui #devicePurchasesTable td:nth-child(5){
  width:13%!important;
  min-width:120px!important;
}
body.premium-ui .easy-action-cell{
  vertical-align:top!important;
}
body.premium-ui .easy-action-cell > b{
  display:block!important;
  margin-bottom:2px!important;
}
body.premium-ui .inline-row-actions.easy-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  align-items:center!important;
  justify-content:flex-start!important;
  margin-top:12px!important;
  max-width:100%!important;
}
body.premium-ui .inline-row-actions.easy-actions .mini-btn{
  min-height:34px!important;
  padding:8px 12px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
  line-height:1.05!important;
}
body.premium-ui .easy-hint{
  margin-top:7px!important;
  text-align:left!important;
  color:#8fa3bf!important;
}
body.premium-ui #page-purchases .table-wrap,
body.premium-ui #page-resale .table-wrap{
  padding-bottom:6px!important;
  scrollbar-width:thin!important;
}
@media (max-width:920px){
  body.premium-ui #purchasesTable,
  body.premium-ui #devicePurchasesTable{min-width:760px!important;}
  body.premium-ui #purchasesTable .desktop-only-cell{display:none!important;}
  body.premium-ui #purchasesTable th:nth-child(1),
  body.premium-ui #purchasesTable td:nth-child(1),
  body.premium-ui #devicePurchasesTable th:nth-child(1),
  body.premium-ui #devicePurchasesTable td:nth-child(1){min-width:260px!important;width:40%!important;}
}
@media (max-width:640px){
  body.premium-ui #purchasesTable,
  body.premium-ui #devicePurchasesTable{min-width:680px!important;}
  body.premium-ui .inline-row-actions.easy-actions .mini-btn{padding:8px 10px!important;font-size:12px!important;}
}


/* === Patch 5.0.9 | Base de preços compacta === */
body.premium-ui #purchasesTable{min-width:720px!important;width:100%!important}
body.premium-ui #purchasesTable th,body.premium-ui #purchasesTable td{padding:12px 12px!important;vertical-align:top!important}
body.premium-ui #purchasesTable th:nth-child(1),body.premium-ui #purchasesTable td:nth-child(1){width:34%!important;min-width:250px!important}
body.premium-ui #purchasesTable th:nth-child(2),body.premium-ui #purchasesTable td:nth-child(2){width:16%!important;min-width:130px!important}
body.premium-ui #purchasesTable th:nth-child(3),body.premium-ui #purchasesTable td:nth-child(3){width:26%!important;min-width:180px!important}
body.premium-ui #purchasesTable th:nth-child(4),body.premium-ui #purchasesTable td:nth-child(4){width:14%!important;min-width:100px!important}
body.premium-ui #purchasesTable th:nth-child(5),body.premium-ui #purchasesTable td:nth-child(5){width:10%!important;min-width:72px!important;text-align:center!important}
body.premium-ui .compact-main-cell b{font-size:14px!important;line-height:1.2!important}
body.premium-ui .compact-main-cell small,body.premium-ui .compact-supplier-cell small,body.premium-ui .compact-date-cell small,body.premium-ui .compact-qty-cell small{font-size:11px!important;line-height:1.3!important;color:#93a8c8!important}
body.premium-ui .compact-actions{gap:6px!important;margin-top:8px!important}
body.premium-ui .compact-actions .mini-btn{padding:7px 10px!important;min-height:31px!important;font-size:12px!important}
body.premium-ui .compact-hint{margin-top:5px!important;font-size:10.5px!important}
body.premium-ui .price-compact-box{display:grid!important;gap:3px!important}
body.premium-ui .price-compact-box .price-last{font-size:15px!important;line-height:1.15!important}
body.premium-ui .price-compact-box small{display:block!important;font-size:10.8px!important;line-height:1.32!important;color:#9bb0cf!important;white-space:normal!important;word-break:break-word!important}
body.premium-ui .compact-qty-cell b{display:block!important;font-size:16px!important}
body.premium-ui .compact-supplier-row:hover{background:rgba(255,255,255,.025)!important}
@media (max-width: 920px){
  body.premium-ui #purchasesTable{min-width:640px!important}
  body.premium-ui #purchasesTable th,body.premium-ui #purchasesTable td{padding:10px 10px!important}
  body.premium-ui #purchasesTable th:nth-child(1),body.premium-ui #purchasesTable td:nth-child(1){min-width:220px!important}
  body.premium-ui #purchasesTable th:nth-child(3),body.premium-ui #purchasesTable td:nth-child(3){min-width:160px!important}
}
@media (max-width: 640px){
  body.premium-ui #purchasesTable{min-width:560px!important}
  body.premium-ui .compact-actions .mini-btn{font-size:11px!important;padding:6px 8px!important}
  body.premium-ui .price-compact-box .price-last{font-size:14px!important}
}
