/* V62 — refinamento mobile do painel Santty */
@media (max-width:820px){
  html,body{overflow-x:hidden}
  body{padding-bottom:env(safe-area-inset-bottom)}

  .topbar{
    min-height:64px;
    padding:calc(6px + env(safe-area-inset-top)) 10px 8px;
    align-items:center;
  }
  .menu-mobile,.security-pill,.user-menu>button{
    min-width:40px;
    min-height:40px;
    border-radius:12px;
  }
  .top-actions{gap:6px}
  .main-content{
    padding:calc(var(--top) + 18px) 12px calc(104px + env(safe-area-inset-bottom));
    max-width:100%;
  }
  .view{gap:14px}

  .page-head,
  .panel-head,
  .table-tools,
  .client-tools,
  .calendar-toolbar,
  .scheduler-toolbar,
  .scheduler-toolbar-right,
  .scheduler-datebar,
  .finance-list-head,
  .sync-banner,
  .install-system-card{
    display:grid;
    gap:10px;
    align-items:stretch;
  }

  .head-actions,
  .page-head .head-actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .head-actions .btn,
  .page-head .btn,
  .top-actions .btn,
  .row-actions .btn,
  .row-actions .mini-btn,
  .row-actions button,
  .install-buttons .btn,
  .scheduler-toolbar-right > *,
  .scheduler-toolbar-left > *,
  .calendar-toolbar > *{
    width:100%;
    min-width:0;
    justify-content:center;
  }

  .panel{padding:14px;border-radius:18px}
  .panel-copy{line-height:1.55}

  .dashboard-metrics,
  .metric-grid,
  .finance-metrics,
  .team-overview,
  .report-kpis,
  .quick-grid,
  .dashboard-side,
  .lower-grid,
  .report-grid,
  .settings-grid,
  .settings-grid-wide,
  .site-manager-grid,
  .service-image-editor,
  .booking-slot-grid,
  .sale-club-split{
    grid-template-columns:1fr!important;
  }

  .metric{min-height:auto}
  .metric em{display:block}

  .table-search,
  .search-wrap,
  .global-search{width:100%;min-width:0}
  .filter-fields,
  .finance-filter .filter-fields,
  .hours-row,
  .client-history-kpis,
  .permission-grid,
  .form-grid,
  .check-grid{grid-template-columns:1fr!important}

  .data-row,
  .card-list .data-row,
  .club-finance-row,
  .client-row,
  .sale-extra-added{
    grid-template-columns:1fr!important;
    gap:10px;
    align-items:flex-start;
  }
  .data-main{align-items:flex-start}
  .data-main img{width:44px;height:44px}

  .row-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    gap:8px;
  }
  .row-actions > *{min-width:0}

  .install-system-card{gap:12px}
  .install-system-brand{display:grid;grid-template-columns:56px 1fr;gap:12px;align-items:start}
  .install-system-actions{width:100%}
  .install-status-row,.install-buttons{display:grid;gap:8px}

  .club-finance-summary{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px;
    width:100%;
    justify-content:stretch;
  }
  .club-finance-summary span{
    width:100%;
    min-width:0;
  }
  .finance-help{width:100%;text-align:left}

  .scheduler-shell,
  .scheduler-shell.day-mode{
    grid-template-columns:1fr!important;
    gap:12px;
  }
  .scheduler-main{min-width:0}
  .scheduler-pro-list{
    display:flex;
    gap:8px;
    overflow:auto;
    padding-bottom:4px;
    scroll-snap-type:x proximity;
  }
  .scheduler-pro{
    min-width:138px;
    scroll-snap-align:start;
  }
  .scheduler-scroll{
    max-height:none;
    min-height:460px;
    overflow:auto;
  }
  .scheduler-grid{min-width:max-content}

  .modal-backdrop{align-items:end;padding:0}
  .modal,
  .modal.wide,
  .modal.finance-consult-modal-v60{
    width:100%;
    max-width:100%;
    max-height:96dvh;
    border-radius:20px 20px 0 0;
  }
  .modal > header{
    position:sticky;
    top:0;
    z-index:2;
    background:linear-gradient(180deg,#08130c 0%,rgba(8,19,12,.96) 78%,rgba(8,19,12,0) 100%);
    padding-bottom:10px;
  }
  .modal > footer{
    position:sticky;
    bottom:0;
    z-index:2;
    background:linear-gradient(0deg,#08130c 0%,rgba(8,19,12,.96) 78%,rgba(8,19,12,0) 100%);
    padding-top:10px;
  }
  .modal footer,
  .sale-modal-v2 footer,
  .receipt-modal-v2 footer{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px;
  }
  .modal footer .btn,
  .modal footer button,
  .sale-modal-v2 footer .btn,
  .receipt-modal-v2 footer .btn{
    width:100%;
    min-width:0!important;
  }

  .booking-manual-form{display:grid;gap:14px}
  .booking-quick-row,
  .booking-services-list,
  .sale-extra-results{
    grid-template-columns:1fr!important;
  }
  .booking-services-panel{padding:12px;border-radius:16px}
  .booking-services-toolbar{display:grid;gap:10px}
  .booking-services-stats{
    display:flex;
    justify-content:space-between;
    align-items:center;
    text-align:left;
    gap:12px;
    padding:8px 10px;
    border:1px solid #23432d;
    border-radius:12px;
    background:#07110a;
  }
  .booking-services-list{max-height:340px}
  .booking-service-option{
    grid-template-columns:18px 24px minmax(0,1fr)!important;
    gap:8px;
    border-radius:12px;
  }
  .booking-service-option em{grid-column:3;justify-self:start}
  .booking-service-copy b{white-space:normal}

  .mobile-nav{height:78px}
  .mobile-nav button{min-height:56px}
}

@media (max-width:620px){
  .page-head h1{font-size:1.4rem}
  .head-actions,
  .page-head .head-actions,
  .modal footer,
  .sale-modal-v2 footer,
  .receipt-modal-v2 footer,
  .row-actions{
    grid-template-columns:1fr!important;
  }
  .page-head .btn,
  .btn.primary,
  .btn.ghost,
  .mini-btn{min-height:42px}
  .metric strong{font-size:1.35rem}
  .finance-list-head,
  .club-finance-summary{gap:8px}
  .service-category-chips span{width:100%;justify-content:space-between}
  .mobile-nav button small{font-size:.58rem}
}

/* V63 — agenda mobile redesenhada */
@media (max-width:820px){
  .scheduler-scroll.mobile-friendly{
    max-height:none;
    overflow:visible;
    border-top:0;
    padding:0 0 6px;
  }
  .scheduler-grid-mobile{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:none!important;
    min-width:0!important;
    gap:12px;
    padding:10px;
    background:transparent;
  }
  .scheduler-mobile-section{
    border:1px solid #1e3c28;
    border-radius:18px;
    background:linear-gradient(180deg,#08140c 0%,#071009 100%);
    overflow:hidden;
    box-shadow:0 16px 34px rgba(0,0,0,.18);
  }
  .scheduler-mobile-head{
    display:grid;
    gap:10px;
    padding:12px 12px 10px;
    border-bottom:1px solid #16311f;
    background:linear-gradient(90deg,rgba(14,72,29,.28),rgba(8,20,12,0));
  }
  .scheduler-mobile-head-title{
    display:grid;
    grid-template-columns:34px 1fr;
    gap:10px;
    align-items:center;
    min-width:0;
  }
  .scheduler-mobile-head-title strong,
  .scheduler-mobile-head-title small{
    display:block;
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .scheduler-mobile-head-title strong{font-size:.88rem}
  .scheduler-mobile-head-title small{font-size:.67rem;color:#87a18f;margin-top:2px}
  .scheduler-mobile-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
  }
  .scheduler-mobile-summary b{font-size:.72rem;color:#dff7e4}
  .scheduler-mobile-summary small{font-size:.63rem;color:#7f9987}
  .scheduler-mobile-stream{display:grid;gap:9px;padding:10px}
  .scheduler-mobile-card{
    display:grid;
    gap:7px;
    padding:11px 11px 10px;
    border:1px solid #203a28;
    border-left:4px solid #1ddd49;
    border-radius:14px;
    background:#09120c;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.01);
  }
  .scheduler-mobile-card.appointment{cursor:pointer}
  .scheduler-mobile-card.pending{border-left-color:#f1b83f;background:linear-gradient(145deg,#1c170a,#0a100a)}
  .scheduler-mobile-card.in_service{border-left-color:#34d7e4;background:linear-gradient(145deg,#0b1f24,#08100d)}
  .scheduler-mobile-card.completed{border-left-color:#8da791;background:#111914;opacity:.92}
  .scheduler-mobile-card.cancelled,
  .scheduler-mobile-card.no_show{border-left-color:#f55e73;background:linear-gradient(145deg,#241015,#0e0c0c)}
  .scheduler-mobile-card.block{border-left-color:#ff4d66;background:repeating-linear-gradient(135deg,#1e0f13,#1e0f13 8px,#231217 8px,#231217 16px)}
  .scheduler-mobile-card-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
  }
  .scheduler-mobile-time{
    display:inline-flex;
    align-items:center;
    gap:6px;
    border:1px solid #24412c;
    border-radius:999px;
    padding:5px 9px;
    font-size:.69rem;
    font-weight:900;
    letter-spacing:.01em;
    color:#e8f8eb;
    background:#0a1a10;
  }
  .scheduler-mobile-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    border-radius:999px;
    padding:5px 8px;
    font-size:.58rem;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
    border:1px solid #255233;
    color:#78f292;
    background:rgba(16,229,63,.08);
  }
  .scheduler-mobile-status.pending{color:#ffd56e;border-color:#745e25;background:rgba(241,184,63,.08)}
  .scheduler-mobile-status.in_service{color:#7cebf4;border-color:#286168;background:rgba(52,215,228,.08)}
  .scheduler-mobile-status.completed{color:#b8c8bc;border-color:#4a5d4d;background:rgba(141,167,145,.08)}
  .scheduler-mobile-status.cancelled,
  .scheduler-mobile-status.no_show,
  .scheduler-mobile-status.blocked{color:#ffb0b9;border-color:#7c3140;background:rgba(245,94,115,.08)}
  .scheduler-mobile-card strong{font-size:.9rem;line-height:1.28}
  .scheduler-mobile-services{margin:0;font-size:.75rem;color:#d8e5dc;line-height:1.42}
  .scheduler-mobile-meta{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }
  .scheduler-mobile-meta span{
    border:1px solid #1d3926;
    border-radius:999px;
    padding:4px 7px;
    background:#071009;
    font-size:.61rem;
    color:#91a79a;
  }
  .scheduler-mobile-note{font-size:.66rem;color:#90a497;line-height:1.45}
  .scheduler-mobile-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:2px}
  .scheduler-mobile-actions button{
    border:1px solid #2c7440;
    border-radius:10px;
    background:#0d2314;
    color:#dcfce4;
    font-weight:800;
    font-size:.68rem;
    min-height:36px;
    padding:0 11px;
  }
  .scheduler-mobile-actions button.danger{
    border-color:#7c3241;
    background:#261116;
    color:#ffb5be;
  }
  .scheduler-mobile-empty{
    border:1px dashed #24412c;
    border-radius:14px;
    padding:14px 12px;
    color:#85978c;
    text-align:center;
    font-size:.73rem;
    background:#071009;
  }
}

@media (max-width:520px){
  .scheduler-mobile-head{padding:11px 11px 9px}
  .scheduler-mobile-stream{padding:9px}
  .scheduler-mobile-card{padding:10px}
  .scheduler-mobile-card-top{flex-direction:column;align-items:flex-start}
  .scheduler-mobile-time,.scheduler-mobile-status{font-size:.65rem}
  .scheduler-mobile-actions{display:grid;grid-template-columns:1fr;gap:6px}
  .scheduler-mobile-actions button{width:100%}
}

/* V64 — agenda mobile mais enxuta e prática */
@media (max-width:820px){
  .page-head small{font-size:.72rem;line-height:1.45}
  .agenda-head-actions{grid-template-columns:1fr!important}
  .agenda-filterbar{padding:12px!important;border-radius:16px}
  .period-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .period-switch button{min-height:40px;padding:0 8px;font-size:.72rem}
  .filter-fields{gap:8px}
  .filter-fields label{gap:6px}
  .filter-fields label span{font-size:.67rem;letter-spacing:.08em}
  .filter-fields input,
  .filter-fields select{min-height:42px}

  .scheduler-side{display:none!important}
  .scheduler-shell,
  .scheduler-shell.day-mode{gap:10px}
  .scheduler-main{padding:12px;border-radius:18px}
  .scheduler-toolbar-left{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .scheduler-toolbar-left > :last-child{grid-column:1/-1}
  .scheduler-toolbar-right{grid-template-columns:1fr 110px;gap:8px;align-items:center}
  .scheduler-toolbar-right [data-scheduler-count]{
    width:100%;
    border:1px solid #1f3b27;
    border-radius:12px;
    padding:9px 10px;
    background:#071009;
    font-size:.72rem;
    color:#d5e7d7;
    text-align:center;
  }
  .scheduler-datebar{gap:8px;padding-top:2px}
  .scheduler-datebar h2{font-size:1.28rem;line-height:1.2}
  .scheduler-datebar small{font-size:.67rem;letter-spacing:.12em}
  .scheduler-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .scheduler-legend span{justify-content:flex-start;font-size:.65rem;padding:0}

  .agenda-summary{
    order:3;
    padding:14px;
    border-radius:18px;
  }
  .agenda-summary-rail{display:none!important}
  .agenda-summary-content{padding:0!important}
  .agenda-summary-content h2{font-size:1.18rem;margin-bottom:10px}
  .agenda-summary-cards{display:grid;grid-template-columns:1fr;gap:8px}
  .agenda-summary .tip-card{margin-top:8px}

  .scheduler-grid-mobile{gap:10px;padding:4px 0 8px}
  .scheduler-mobile-info{
    display:grid;
    gap:4px;
    padding:10px 12px;
    border:1px solid #264530;
    border-radius:14px;
    background:linear-gradient(180deg,#0b1910,#08120b);
    box-shadow:0 10px 24px rgba(0,0,0,.16);
  }
  .scheduler-mobile-info b{font-size:.75rem;color:#e7f9ea}
  .scheduler-mobile-info small{font-size:.66rem;line-height:1.45;color:#8aa08e}
  .scheduler-mobile-section{border-radius:16px}
  .scheduler-mobile-head{padding:10px 11px 9px}
  .scheduler-mobile-stream{padding:9px}
  .scheduler-mobile-card{gap:6px;padding:10px 10px 9px;border-radius:13px}
  .scheduler-mobile-card strong{font-size:.84rem}
  .scheduler-mobile-services{font-size:.71rem;line-height:1.36}
  .scheduler-mobile-meta span{font-size:.58rem;padding:4px 6px}
  .scheduler-mobile-note{font-size:.62rem}
  .scheduler-mobile-summary b{font-size:.68rem}
  .scheduler-mobile-summary small{font-size:.6rem}
  .scheduler-mobile-empty.whole{margin:2px 0 0}
}

@media (max-width:620px){
  .scheduler-main{padding:10px}
  .scheduler-toolbar-left,.scheduler-toolbar-right{grid-template-columns:1fr!important}
  .scheduler-toolbar-left > :last-child{grid-column:auto}
  .scheduler-legend{grid-template-columns:1fr 1fr}
  .agenda-summary{padding:12px}
}

/* V65 — calendário e financeiro mais confortáveis no mobile */
@media (max-width:820px){
  /* calendário */
  [data-view-panel="calendario"] .page-head{gap:12px}
  [data-view-panel="calendario"] .page-head .btn{min-height:44px}
  .calendar-panel{padding:12px!important;border-radius:18px}
  .calendar-toolbar{gap:12px!important}
  .calendar-nav{
    display:grid;
    grid-template-columns:42px minmax(0,1fr) 42px auto;
    gap:8px;
    align-items:center;
  }
  .calendar-nav strong{
    min-width:0!important;
    text-align:center;
    font-size:1.18rem!important;
    line-height:1.15;
    white-space:normal;
  }
  .calendar-nav .mini-btn,
  .calendar-nav .icon-btn{min-height:42px}
  .calendar-toolbar .filter-select{
    width:100%;
    display:grid;
    gap:6px;
    padding:10px 12px;
    border:1px solid #1f3a27;
    border-radius:14px;
    background:#07110a;
  }
  .calendar-toolbar .filter-select span{
    font-size:.66rem;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:#97a99b;
    font-weight:800;
  }
  .calendar-toolbar .filter-select select{min-height:42px}
  .calendar-weekdays{
    margin-top:4px;
    padding:0 2px;
    border-bottom:0;
  }
  .calendar-weekdays span{
    font-size:.52rem!important;
    color:#8ea294;
    padding:0 0 8px!important;
  }
  .calendar-grid{
    border:1px solid #1b3221;
    border-radius:18px;
    overflow:hidden;
    background:#071009;
  }
  .calendar-day{
    min-height:74px!important;
    padding:6px 5px!important;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:4px;
    background:linear-gradient(180deg,#071009 0%,#08130c 100%);
  }
  .calendar-day:hover{background:linear-gradient(180deg,#09150d 0%,#0a1710 100%)}
  .calendar-day.today{box-shadow:inset 0 0 0 1px #17b53d}
  .calendar-day-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:4px;
  }
  .calendar-day>strong,
  .calendar-day-head>strong{
    width:26px;
    height:26px;
    font-size:.69rem!important;
    margin:0;
    flex:0 0 auto;
  }
  .cal-count-badge{
    min-width:18px;
    height:18px;
    padding:0 5px;
    border-radius:999px;
    display:inline-grid;
    place-items:center;
    background:#0f2b16;
    border:1px solid #265134;
    color:#72f58a;
    font-size:.56rem;
    font-weight:900;
    line-height:1;
  }
  .calendar-day.out .cal-count-badge{opacity:.6}
  .cal-items{margin-top:auto!important;display:flex!important;align-items:center;gap:4px;flex-wrap:wrap}
  .cal-item{
    width:8px!important;
    height:8px!important;
    margin-right:0!important;
    box-shadow:0 0 0 1px rgba(255,255,255,.03);
  }
  .calendar-more{
    margin-left:auto;
    font-size:.52rem!important;
    color:#6fe884;
    padding:0!important;
    font-weight:800;
  }
  .calendar-legend{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin-top:12px;
    font-size:.62rem;
  }
  .calendar-legend span{
    display:flex;
    align-items:center;
    gap:6px;
    border:1px solid #1e3926;
    border-radius:999px;
    padding:6px 8px;
    background:#07110a;
  }

  /* financeiro */
  [data-view-panel="financeiro"] .page-head{gap:12px}
  [data-view-panel="financeiro"] .page-head .btn{min-height:44px}
  .finance-filter{
    padding:12px!important;
    border-radius:18px;
  }
  .finance-filter .filter-fields{display:grid;grid-template-columns:1fr!important;gap:10px}
  .finance-filter .btn{min-height:44px;font-size:.88rem}
  .finance-metrics{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
  .finance-metrics .metric{
    min-height:0!important;
    padding:14px 13px!important;
    border-radius:16px;
  }
  .finance-metrics .metric small{font-size:.7rem}
  .finance-metrics .metric strong{font-size:1.05rem}
  .finance-metrics .metric em{font-size:.61rem;margin-top:4px}
  .club-finance-panel{padding:14px!important;border-radius:18px}
  .club-finance-panel .panel-head{gap:10px}
  .club-finance-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  .club-finance-summary span{
    padding:10px 9px!important;
    border-radius:12px!important;
    background:linear-gradient(180deg,#0a1710,#07100a)!important;
  }
  .club-finance-summary small{font-size:.5rem!important;letter-spacing:.11em}
  .club-finance-summary b{font-size:.82rem!important}
  .club-finance-list .empty-box{padding:18px 12px;border-radius:16px}
  .finance-list-head{gap:8px}
  .finance-list-head h2{line-height:1.15}
  .finance-row,
  .club-finance-row{
    border:1px solid #1d3825;
    border-radius:16px;
    padding:12px!important;
    margin-bottom:10px;
    background:linear-gradient(180deg,#08120b 0%,#071009 100%);
    gap:10px!important;
  }
  .data-list>.finance-row:last-child,
  .data-list>.club-finance-row:last-child{margin-bottom:0}
  .finance-row .data-main,
  .club-finance-row .data-main{align-items:flex-start;gap:10px}
  .finance-row .data-main>div,
  .club-finance-row .data-main>div{display:grid;gap:4px}
  .finance-row .data-main b,
  .club-finance-row .data-main b{white-space:normal;line-height:1.3}
  .finance-origin-line{margin-top:3px!important;gap:5px!important}
  .finance-origin-line span,
  .finance-origin-line b,
  .finance-origin-line em,
  .finance-services-line,
  .finance-pro-line{font-size:.62rem!important}
  .finance-row .data-cell,
  .club-finance-row .data-cell{
    display:grid!important;
    gap:2px;
    border:1px solid #1c3624;
    border-radius:12px;
    padding:10px;
    background:#07110a;
  }
  .finance-row .row-actions{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    width:100%;
  }
  .finance-row .row-actions .mini-btn{
    min-width:0!important;
    min-height:40px;
    padding:0 8px;
    font-size:.76rem;
  }
  .club-finance-row .row-actions{
    display:grid!important;
    grid-template-columns:1fr;
    width:100%;
    gap:8px;
  }
  .club-finance-row .row-actions .mini-btn{min-height:40px}
}

@media (max-width:520px){
  .calendar-nav{
    grid-template-columns:40px minmax(0,1fr) 40px;
  }
  .calendar-nav .mini-btn{
    grid-column:1/-1;
  }
  .calendar-nav strong{font-size:1.08rem!important}
  .calendar-day{min-height:68px!important;padding:5px 4px!important}
  .calendar-day>strong,
  .calendar-day-head>strong{width:24px;height:24px;font-size:.65rem!important}
  .cal-count-badge{min-width:16px;height:16px;font-size:.53rem;padding:0 4px}
  .finance-metrics{grid-template-columns:1fr!important}
  .club-finance-summary{grid-template-columns:1fr!important}
  .finance-row .row-actions{grid-template-columns:1fr!important}
}


/* V78 — financeiro executivo no mobile */
@media (max-width:820px){
  [data-view-panel="financeiro"]{padding-bottom:92px}
  .finance-page-head-v78{align-items:stretch!important}
  .finance-page-head-v78 .btn{width:100%}
  .finance-control-v78{padding:12px!important;border-radius:18px!important}
  .finance-quick-periods-v78{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:10px}
  .finance-period-btn-v78{min-height:40px;padding:0 8px;font-size:.66rem}
  .finance-filter-fields-v78{grid-template-columns:1fr!important}
  .finance-filter-fields-v78 label,.finance-filter-fields-v78 select,.finance-filter-fields-v78 input{width:100%}
  .finance-filter-note-v78{align-items:flex-start;flex-direction:column;gap:6px}
  .finance-metrics-v78{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .finance-kpi-v78{min-height:105px!important;padding:12px!important}
  .finance-kpi-v78 strong{font-size:1rem!important}
  .finance-kpi-v78 em{font-size:.56rem!important}
  .finance-payment-panel-v78{padding:13px!important;border-radius:18px!important}
  .finance-payment-head-v78{display:grid!important;grid-template-columns:1fr;gap:10px!important}
  .finance-payment-total-v78{min-width:0;width:100%;text-align:left}
  .finance-payment-breakdown-v78{grid-template-columns:1fr;gap:7px;margin-top:12px}
  .finance-payment-card-v78{grid-template-columns:38px minmax(0,1fr) 64px;padding:10px;border-radius:13px}
  .finance-payment-code-v78{width:36px;height:36px;border-radius:10px;font-size:.54rem}
  .finance-payment-main-v78 strong{font-size:.88rem}
  .finance-payment-foot-v78{display:grid;gap:5px}
  .finance-row-v78{grid-template-columns:1fr!important;gap:9px!important;padding:12px!important}
  .finance-row-v78 .data-main{grid-column:1/-1}
  .finance-row-v78 .data-cell{display:grid!important;grid-template-columns:minmax(96px,.55fr) 1fr;align-items:center;gap:8px;padding:7px 9px;border:1px solid #173220;border-radius:10px;background:#07110a}
  .finance-row-v78 .data-cell small{margin:0!important}
  .finance-row-v78 .row-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .finance-row-v78 .row-actions .mini-btn{width:100%;min-height:38px}
  .finance-payment-badge-v78{justify-self:start}
  .finance-count-v78{height:21px;min-width:21px;font-size:.56rem}
}
@media (max-width:420px){
  .finance-metrics-v78{grid-template-columns:1fr!important}
  .finance-kpi-v78{min-height:88px!important}
  .finance-row-v78 .row-actions{grid-template-columns:1fr}
}
