/* MinhaHub Automotivo — Gastos: período + histórico */
#content .mh-products-period-v1{display:grid;gap:12px;min-width:0}
#content .mh-expense-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#content .mh-product-period-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#content .mh-product-period-modes button{min-height:44px;margin:0;border-radius:12px;font-weight:800}
#content .mh-product-period-modes button.active{border-color:var(--accent,#2563eb);color:var(--accent,#2563eb);background:#fff}
#content .mh-product-period-nav{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;gap:9px;align-items:center}
#content .mh-product-period-nav>button{height:46px;min-height:46px;margin:0;padding:0;border-radius:13px;font-size:1.35rem}
#content .mh-product-period-center{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:8px 14px;border:1px solid #dfe5ec;border-radius:13px;background:#fff;box-sizing:border-box;overflow:hidden;cursor:pointer}
#content .mh-product-period-center>span{color:var(--accent,#2563eb);font-weight:900}
#content .mh-product-period-center>strong{font-size:.95rem;text-transform:capitalize;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#content .mh-product-period-center input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;margin:0;padding:0}
#content .mh-product-period-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid #e5e7eb;border-radius:13px;background:#fff;color:#6b7280;font-size:.86rem}
#content .mh-product-period-summary strong{color:#111827;font-size:.95rem;white-space:nowrap}
#content .mh-expense-section{display:grid;gap:9px;min-width:0}
#content .mh-expense-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:3px 2px}
#content .mh-expense-section-head>div{display:flex;flex-direction:column;gap:2px}
#content .mh-expense-section-head h3{margin:0;font-size:1rem;color:#111827}
#content .mh-expense-section-head span{font-size:.76rem;color:#7b8491}
#content .mh-expense-section-head>strong{font-size:.92rem;color:#111827;white-space:nowrap}
.mh-product-history-detail{display:grid;gap:14px;min-width:0}
.mh-product-history-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.mh-product-history-stats>div{display:flex;flex-direction:column;gap:4px;padding:11px;border:1px solid #e5e7eb;border-radius:12px;background:#fafbfc;min-width:0}
.mh-product-history-stats span{font-size:.76rem;color:#6b7280}
.mh-product-history-stats strong{font-size:1rem;color:#111827;overflow-wrap:anywhere}
.mh-product-history-description{display:flex;flex-direction:column;gap:4px;padding:11px 12px;border-radius:12px;background:#f8fafc}
.mh-product-history-description strong{font-size:.82rem}.mh-product-history-description span{font-size:.86rem;color:#5f6876;line-height:1.35}
.mh-product-history-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:2px}
.mh-product-history-heading h3{margin:0;font-size:1rem}.mh-product-history-heading span{font-size:.75rem;color:#7b8491}
.mh-product-history-list{display:grid;gap:0}
.mh-product-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #edf0f3}
.mh-product-history-row:first-child{border-top:0;padding-top:0}
.mh-product-history-row>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.mh-product-history-row strong{font-size:.9rem}.mh-product-history-row small{font-size:.76rem;color:#7b8491;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mh-product-history-row b{font-size:.9rem;white-space:nowrap}
@media(max-width:700px){
  #content .mh-card-page-title{align-items:stretch}
  #content .mh-expense-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;justify-content:stretch}
  #content .mh-expense-actions button{width:100%;margin:0;padding-inline:8px;font-size:.84rem}
  #content .mh-product-period-modes{gap:6px}
  #content .mh-product-period-modes button{min-height:42px;padding:7px 5px;font-size:.85rem}
  #content .mh-product-period-nav{grid-template-columns:42px minmax(0,1fr) 42px;gap:7px}
  #content .mh-product-period-nav>button{height:42px;min-height:42px;border-radius:12px}
  #content .mh-product-period-center{min-height:42px;padding:7px 10px}
  #content .mh-product-period-center>strong{font-size:.84rem}
  #content .mh-product-period-summary{padding:10px 11px;font-size:.8rem}
  .mh-product-history-stats{grid-template-columns:1fr 1fr}
}
@media(max-width:390px){
  #content .mh-product-period-modes{gap:5px}
  #content .mh-product-period-modes button{font-size:.79rem;padding-inline:3px}
}
