/*
 * Ajustes dimensionais da homologação.
 * IMPORTANTE: este arquivo não redefine cores, fundos, gradientes, sombras
 * ou identidade visual. A paleta permanece 100% definida pelo app.css,
 * exatamente como na branch main.
 */

html{scroll-behavior:smooth}
body{
  font-size:15px;
  line-height:1.58;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

.app-main{max-width:1240px;min-height:58vh}
.app-main> :first-child{margin-top:0}

h1,h2,h3,h4,h5,h6{line-height:1.18}
h1{font-size:clamp(1.65rem,3vw,2.35rem)}
h2{font-size:clamp(1.3rem,2.2vw,1.8rem)}
h3{font-size:clamp(1.08rem,1.8vw,1.35rem)}
p{margin-bottom:.85rem}
small,.small{line-height:1.45}

.app-navbar .container{max-width:1240px}
.brand-lockup{gap:.7rem}
.brand-lockup strong{font-size:.97rem}
.brand-lockup small{font-size:.73rem}
.navbar .nav-link{font-size:.9rem;padding:.55rem .72rem!important}

.page-heading,.cart-hero,.checkout-hero{margin-bottom:1.35rem!important}
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.page-heading h1,.cart-hero h1,.checkout-hero h1{margin-bottom:.28rem}
.page-heading p,.cart-hero p,.checkout-hero p{max-width:780px;margin-bottom:0}
.action-bar{display:flex;flex-wrap:wrap;gap:.55rem}

.app-action,
.btn,
.quick-action,
.cart-checkout-button,
.cart-secondary-button,
.btn-add,
.site-notice-button{
  min-height:42px;
  font-size:.88rem;
  line-height:1.2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  padding:.7rem 1rem;
}
.app-action.compact{min-height:36px;padding:.48rem .72rem;font-size:.8rem}
.btn-group{gap:.45rem}

.summary-panel{padding:clamp(1rem,2vw,1.4rem)!important}
.summary-panel h2,.summary-panel h3{margin-bottom:.8rem}
.summary-panel>p:last-child{margin-bottom:0}

.metric{
  height:100%;
  min-height:112px;
  padding:1rem 1.05rem!important;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:.55rem;
}
.metric span{font-size:.78rem;line-height:1.35}
.metric strong{font-size:clamp(1.2rem,2vw,1.55rem);line-height:1.1}
.metric strong small{font-size:.65em}

.attendant-status-cards>.col{align-self:flex-start}
.attendant-status-cards .metric{
  box-sizing:border-box;
  height:auto;
  min-height:0;
  padding:.65rem .8rem!important;
  justify-content:flex-start;
  gap:.25rem;
}
.attendant-status-cards .metric::before{height:5px;width:34px;margin-bottom:.4rem}
.attendant-status-cards .metric span{font-size:.78rem;line-height:1.2;min-height:0}
.attendant-status-cards .metric strong{
  font-size:clamp(1.75rem,2.4vw,2.2rem);
  line-height:1;
  margin-top:0;
}
.attendant-status-cards .delivery-flow-arrow{height:24px;margin:-1px auto;width:24px}

.form-control,.form-select,
input[type="text"],input[type="email"],input[type="password"],input[type="number"],input[type="date"],input[type="search"],input[type="tel"],textarea,select{
  min-height:43px;
  font-size:.92rem;
}
textarea{min-height:100px}
.form-label,label>span{font-size:.82rem}
.modern-field{margin-bottom:1rem}
.field-error,.errorlist{font-size:.78rem}

.table>:not(caption)>*>*{padding:.85rem .9rem;vertical-align:middle}
.table thead th{font-size:.73rem;white-space:nowrap}
.table tbody td{font-size:.88rem}
.modern-table small{line-height:1.4}

.status-badge{min-height:28px;padding:.34rem .6rem!important;font-size:.73rem!important}
.alert{padding:.85rem 1rem;font-size:.88rem}
.list-group-item{padding:.9rem 1rem}

.order-hero{margin-bottom:1.4rem}
.hero-actions{gap:.65rem}
.quick-action{min-width:120px}
.status-card{padding:.85rem 1rem!important}

.section-heading{margin:1.4rem 0 .85rem!important}
.section-heading h2{margin-bottom:.25rem}
.section-heading p{font-size:.9rem;margin-bottom:0}
.daily-menu-lines{gap:.55rem}
.daily-menu-item{padding:.72rem .8rem!important}
.daily-menu-item dt{font-size:.77rem}
.daily-menu-item dd{font-size:.9rem;line-height:1.5}

.mini-card-grid{gap:1rem!important}
.mini-product-content{padding:1rem!important}
.mini-product-content h3{font-size:1rem;margin-bottom:.35rem}
.mini-product-content p{font-size:.84rem;line-height:1.48;margin-bottom:.55rem}
.mini-product-content>strong{font-size:1rem}
.card-order-form{margin-top:.8rem}
.card-order-row{gap:.55rem}
.qty-control button{min-width:36px;min-height:36px}
.qty-control input{min-height:36px!important}
.btn-add{min-height:38px;padding:.55rem .75rem;font-size:.8rem}

.cart-layout,.checkout-layout{gap:1.2rem!important}
.cart-item-card{padding:1rem!important;gap:.85rem!important}
.cart-item-main h2{font-size:1rem;margin-bottom:.25rem}
.cart-item-main p{font-size:.82rem;margin-bottom:0}
.cart-item-main .cart-item-choice{color:var(--brand);font-weight:800}
.cart-item-side strong{font-size:.95rem}
.cart-summary,.checkout-summary{padding:1.15rem!important}
.cart-summary>strong{font-size:1.65rem}
.cart-summary p{font-size:.83rem}
.cart-empty-state{padding:clamp(1.5rem,5vw,3rem)!important}

.checkout-fieldset,.checkout-saved-data{padding:1rem!important;margin-bottom:.9rem!important}
.checkout-fields-grid{gap:.8rem!important}
.checkout-type-toggle,.checkout-payment-options{gap:.55rem!important}
.checkout-type-option,.checkout-payment-option{min-height:54px;font-size:.86rem}
.checkout-summary-items>div,.checkout-summary-totals>div{padding:.55rem 0}
.checkout-summary-items span small{color:var(--muted);display:block;font-size:.76rem;font-weight:650;margin-top:.15rem}

.login-shell{gap:1rem!important}
.login-brand-panel,.auth-box{padding:clamp(1.2rem,4vw,2rem)!important}
.login-brand-panel h1{font-size:clamp(1.5rem,3vw,2rem);margin-bottom:.45rem}
.login-brand-panel p{line-height:1.55}
.login-submit{min-height:46px}
.login-secondary-actions{gap:.55rem}
.login-action-card{padding:.75rem!important;font-size:.8rem}

.delivery-tabs{gap:.45rem!important;overflow:auto;padding-bottom:.25rem}
.delivery-tabs a{white-space:nowrap}
.delivery-history-summary{gap:.8rem!important}
.delivery-history-summary>div{padding:.9rem!important}
.delivery-history-summary span{font-size:.77rem}
.delivery-history-summary strong{font-size:1.15rem}

.chart-grid{gap:1rem!important}
.chart-card{padding:1rem!important}
.chart-card h3{font-size:.95rem;margin-bottom:.7rem}
.chart-note{font-size:.76rem;margin-top:.5rem}
.period-summary{gap:.75rem!important}
.period-summary>div{padding:.85rem!important}
.period-summary span{font-size:.74rem}
.period-summary strong{font-size:1rem}

.modern-filter,.manager-chart-filters,.delivery-history-filters{gap:.8rem!important}
.modern-filter label,.manager-chart-filters label,.delivery-history-filters label{min-width:0}
.report-pagination{gap:.45rem!important}
.report-pagination-current{min-width:38px;min-height:38px;display:grid;place-items:center}

.site-notice-card h2{font-size:1.4rem}
.site-notice-card p{line-height:1.6}
footer{margin-top:1rem}

@media (max-width:991.98px){
  .app-main{padding-top:1rem!important}
  .navbar-collapse{padding:.65rem 0 .2rem}
  .navbar-nav{gap:.2rem}
  .page-heading{flex-direction:column}
  .action-bar{width:100%}
  .action-bar .app-action{flex:1 1 auto}
  .metric{min-height:102px;padding:.9rem!important}
  .summary-panel{padding:1rem!important}
  .table>:not(caption)>*>*{padding:.72rem}
}

@media (max-width:767.98px){
  body{font-size:14px}
  .app-main{padding-left:.85rem!important;padding-right:.85rem!important}
  .brand-lockup strong{font-size:.88rem}
  .brand-lockup small{font-size:.67rem}
  .hero-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .quick-action{width:100%;min-width:0}
  .mini-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.75rem!important}
  .mini-product-content{padding:.8rem!important}
  .mini-product-content h3{font-size:.92rem}
  .card-order-row{flex-direction:column;align-items:stretch!important}
  .card-order-row .btn-add{width:100%}
  .cart-item-card{grid-template-columns:auto 1fr!important}
  .cart-item-side{grid-column:1/-1;display:flex!important;align-items:center;justify-content:space-between}
  .cart-layout,.checkout-layout{grid-template-columns:1fr!important}
  .cart-summary,.checkout-summary{position:static!important}
  .checkout-fields-grid{grid-template-columns:1fr!important}
  .checkout-type-toggle,.checkout-payment-options{grid-template-columns:1fr!important}
  .manager-metrics .col-6,.report-summary-metrics .col-6{padding-left:.35rem;padding-right:.35rem}
  .metric strong{font-size:1.18rem}
  .metric span{font-size:.72rem}
  .chart-grid{grid-template-columns:1fr!important}
  .period-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .modern-filter,.manager-chart-filters,.delivery-history-filters{grid-template-columns:1fr!important}
  .modern-filter .app-action,.manager-chart-filters .app-action,.delivery-history-filters .app-action{width:100%}
  .table{min-width:680px}
  .login-shell{grid-template-columns:1fr!important}
}

@media (max-width:420px){
  .hero-actions{grid-template-columns:1fr}
  .mini-card-grid{grid-template-columns:1fr!important}
  .metric{min-height:96px}
  .metric strong{font-size:1.08rem}
  .period-summary{grid-template-columns:1fr!important}
  .app-action,.btn,.cart-checkout-button,.cart-secondary-button{width:100%}
  .action-bar{display:grid;grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* Keep the delivery tabs and bottom spacing from the local card adjustments. */
.page-heading.delivery-page-heading{align-items:stretch;margin-bottom:0!important}
.login-brand-panel{padding-bottom:var(--red-card-bottom-space)!important}
