.sale-success{display:flex;align-items:center;gap:15px;background:#153b24;border:1px solid #2d7546;border-radius:12px;padding:16px 20px;margin-bottom:20px}.sale-success>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--green);color:#102016;font-size:24px;font-weight:900}.sale-success div{flex:1}.sale-success p{margin:4px 0 0;color:#a9dfb8}.cash-open{max-width:480px}.cash-kpis{grid-template-columns:2fr 1fr;margin-bottom:18px}.cash-actions{grid-template-columns:repeat(2,1fr)}.checkout{max-width:900px;margin:auto;display:grid;grid-template-columns:.8fr 1.2fr;gap:24px;align-items:start}.payment-total{background:var(--yellow);color:#151515;border-radius:12px;padding:25px;display:grid;gap:8px;margin-top:25px}.payment-total strong{font-size:36px}.payment-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.muted{color:var(--muted)}.cancel-link{text-align:center;color:var(--muted)}
@media(max-width:780px){.checkout{grid-template-columns:1fr}.cash-actions{grid-template-columns:1fr}.cash-kpis{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.payment-grid{grid-template-columns:1fr}.cash-kpis{grid-template-columns:1fr}}
@media print{.sidebar,.topbar,.mobile-nav,.cash-actions,.button,button{display:none!important}.workspace{margin:0;width:100%}.container{padding:20px}.sale-success{border:2px solid #000;color:#000;background:#fff}}
/* Operações do caixa com ações visualmente separadas */
.cash-operation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:18px}.cash-operation{display:flex;flex-direction:column;border-top:4px solid #777}.cash-operation.supply{border-top-color:#46cd79}.cash-operation.withdrawal{border-top-color:#ffc400}.cash-operation.close{border-top-color:#ff6658;background:#211817}.cash-action-title{display:flex;align-items:center;gap:12px;margin-bottom:16px}.cash-action-title h2,.cash-action-title p{margin:0}.cash-action-title p{color:var(--muted)}.cash-action-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#292d30;color:#ffc400;font-size:23px;font-weight:900}.supply .cash-action-icon{background:#173824;color:#6be397}.close .cash-action-icon{background:#4a211d;color:#ff8b80}.cash-operation form{display:grid;gap:12px;margin-top:auto}.cash-close-warning{background:#391e1a;color:#ffb0a8;border:1px solid #71372f;border-radius:10px;padding:11px;margin-bottom:14px;font-size:12px}.danger-button{background:#e65043;color:#fff}.danger-button:hover{background:#fa6759}.cash-section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.cash-section-heading h2,.cash-section-heading p{margin:0}.cash-section-heading p{color:var(--muted)}.cash-section-heading>strong{display:grid;place-items:center;min-width:34px;height:34px;border-radius:50%;background:#292d30}@media(max-width:1050px){.cash-operation-grid{grid-template-columns:1fr 1fr}.cash-operation.close{grid-column:1/-1}}@media(max-width:650px){.cash-operation-grid{grid-template-columns:1fr}.cash-operation.close{grid-column:auto}}
.cash-payment-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;margin:0 0 18px}.cash-payment-summary article{display:grid;gap:4px;min-height:86px;padding:14px;background:#191b1c;border:1px solid #2b2e30;border-radius:10px}.cash-payment-summary span{color:var(--muted);font-size:12px}.cash-payment-summary strong{font-size:17px}.cash-payment-summary small{color:var(--yellow)}.positive strong,.positive{color:#72dc96}.negative strong,.negative{color:#ff8175}.cash-report{max-width:1050px;margin:auto}.cash-report>header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid var(--line)}.cash-report header h2,.cash-report header p{margin:0}.cash-report-period{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:18px 0}.cash-report-period span{display:grid;gap:4px;color:var(--muted)}.cash-report-period b{color:#fff}.cash-report-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:25px}.cash-report-grid article{display:grid;gap:7px;padding:15px;background:#202223;border-radius:9px}.cash-report-grid span{color:var(--muted);font-size:12px}.cash-report-grid strong{font-size:18px}.cash-report-forms{display:grid;grid-template-columns:repeat(2,1fr);gap:0 24px;margin-bottom:24px}.cash-report-forms p{display:flex;justify-content:space-between;padding:10px 0;margin:0;border-bottom:1px solid var(--line)}
@media(max-width:780px){.cash-report-period,.cash-report-grid{grid-template-columns:1fr 1fr}.cash-report-forms{grid-template-columns:1fr}}
@media print{.no-print,.sidebar,.topbar,.mobile-nav{display:none!important}.workspace{width:100%!important;margin:0!important}.container{max-width:none!important;padding:0!important}.cash-report{border:0;color:#000;background:#fff}.cash-report *{color:#000!important}.cash-report-grid article{border:1px solid #aaa;background:#fff}.cash-report table{font-size:11px}}

/* Receber conta — layout responsivo estável */
.checkout{min-height:0}

@media (max-width:780px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .workspace{min-height:100dvh}
  .container:has(.checkout){
    padding:14px 12px 12px;
    overflow:hidden;
    height:calc(100dvh - 65px);
    display:flex;
    flex-direction:column;
    min-height:0;
  }
  .container:has(.checkout) > .alert{flex:0 0 auto;max-height:92px;overflow:auto;margin-bottom:10px}
  .container:has(.checkout) > .checkout{
    flex:1 1 auto;
    min-height:0;
    width:100%;
    max-width:none;
    margin:0;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:10px;
    overflow-y:auto;
    overflow-x:hidden;
    padding-bottom:4px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .container:has(.checkout) > .checkout::-webkit-scrollbar{display:none}
  .checkout>section{min-width:0}
  .checkout>section:first-child{display:grid;gap:8px;align-content:start}
  .checkout>section:first-child .payment-total{margin-top:4px;padding:14px;gap:4px}
  .checkout>section:first-child .payment-total strong{font-size:28px}
  .checkout>section:first-child>p{margin:0}
  .checkout>section:first-child>p:last-child{margin-top:2px}
  .checkout>section:nth-child(2){padding:14px}
  .checkout>section:nth-child(2) h2{margin:0 0 4px;font-size:18px}
  .checkout>section:nth-child(2)>p.muted{margin:0 0 10px;font-size:13px;line-height:1.35}
  .payment-grid{grid-template-columns:1fr;gap:10px}
  .payment-grid label{gap:5px}
  .payment-grid input,.payment-grid select{min-height:44px}
  .change-display{padding:10px 12px}
  .checkout .button,.checkout button{min-height:44px}
  .checkout .inline-form{display:grid;grid-template-columns:1fr auto}
}

@media (max-width:420px){
  .container:has(.checkout){padding-left:9px;padding-right:9px}
  .checkout>section:nth-child(2){padding:12px}
  .checkout>section:first-child h1{font-size:25px}
  .payment-total strong{font-size:26px}
  .payment-grid{gap:8px}
}
