/* Escala visual compartilhada — Rastremix. Sem zoom ou alteração das regras de negócio. */
:root{--ui-body:14px;--ui-small:12px;--ui-action:13px;--ui-title:clamp(20px,1.8vw,24px);--ui-section:16px;--ui-number:28px}
:is(#app-rastremix-container,#rs-review-dialog,#cal-modal){font-size:var(--ui-body);line-height:1.5}
#r-main-container{min-width:0;padding:24px}
#r-main-container>[id^="r-screen-"]{min-width:0}
:is(#app-rastremix-container,#rs-review-dialog,#cal-modal) :is(h2,h3,h4,p,label,dd){overflow-wrap:anywhere}
#r-main-container [id^="r-screen-"] h2,#rs-review-title{font-size:var(--ui-title)!important;line-height:1.25!important;font-weight:800!important;letter-spacing:-.025em!important}
#r-main-container [id^="r-screen-"] h3:not([id^="exec-kpi-"]):not([id^="hist-metric-"]):not([id^="sched-metric-"]),#cal-modal h3{font-size:var(--ui-section)!important;line-height:1.4;font-weight:700}
#r-main-container :is([id^="exec-kpi-"],[id^="hist-metric-"],[id^="sched-metric-"]),#r-screen-dashboard .rd-stat strong{font-size:var(--ui-number)!important;line-height:1.2!important;overflow-wrap:anywhere}
#r-main-container #exec-kpi-leader-name{font-size:18px!important}
:is(#app-rastremix-container,#cal-modal) label{font-size:var(--ui-small)!important;line-height:1.5;font-weight:700;letter-spacing:.025em}
:is(#app-rastremix-container,#rs-review-dialog,#cal-modal) :is(.input-style,.cal-input,.cal-filter,.rd-scope-control select){font-size:14px!important;line-height:1.5!important;font-weight:600;min-height:44px;padding:10px 12px;border-radius:10px;min-width:0;max-width:100%;box-sizing:border-box}
:is(#app-rastremix-container,#cal-modal) textarea{min-height:96px;resize:vertical}
:is(#app-rastremix-container,#rs-review-dialog,#cal-modal) button{font-family:inherit;line-height:1.4}
#r-main-container :is(button:not(.cal-event):not(.cal-day):not([id^="rs-btn-"]):not([id^="ro-btn-"]),.rd-button),#rs-review-dialog .rs-review-actions :is(button,a),#cal-modal button{font-size:var(--ui-action)!important;min-height:40px}
#r-main-container :is(.rd-row-button,.rd-link){font-size:12px!important}
/* Corrige as classes antigas de 7 a 11px, inclusive conteúdo criado pelo JavaScript. */
:is(#app-rastremix-container,#rs-review-dialog) :is(.text-\[7px\],.text-\[8px\],.text-\[9px\],.text-\[10px\],.text-\[11px\]){font-size:var(--ui-small)!important;line-height:1.5}
#r-screen-dashboard :is(.rd-eyebrow,.rd-date,.rd-subtitle,.rd-stat-top,.rd-stat-foot,.rd-record-info,.rd-panel-description,.rd-list-note,.rd-footer,.rd-renewals-empty,.rd-next-info,.rd-count,.rd-renewal-date),#rd-sync-status{font-size:12px!important;line-height:1.5!important}
#r-screen-dashboard :is(.rd-record-name,.rd-next-client){font-size:14px!important;line-height:1.5!important}
#r-screen-dashboard .rd-next-heading h3{font-size:12px!important}
:is(.rs-field-error,.rs-customer-lookup-status,.rs-customer-lookup-btn){font-size:12px!important;line-height:1.5}
/* Calendário: números e detalhes legíveis; a grade mensal conserva suas sete colunas. */
#r-screen-calendar :is(.cal-head p,.cal-week div,.cal-num,.cal-more,.cal-side-sub,.cal-meta,.cal-badge,.cal-empty),#cal-modal .cal-owner{font-size:12px!important;line-height:1.5}
#r-screen-calendar .cal-event{font-size:12px!important;line-height:1.5;min-height:28px}
#r-screen-calendar :is(.cal-card-title,.cal-side-title){font-size:14px!important;line-height:1.5}
#r-screen-calendar .cal-month{font-size:18px!important}
/* Ficha e revisão usam a mesma hierarquia. */
.rs-detail-header #hist-detail-title,#rs-review-client-name{font-size:20px!important;line-height:1.35!important}
:is(.rs-detail-eyebrow,.rs-detail-field dt,.rs-detail-footer>span,.rv-eyebrow,.rv-identity-label,.rv-field dt,.rv-card-title,.rv-amount-label){font-size:12px!important;line-height:1.5!important}
:is(.rs-detail-field dd,.rv-field dd){font-size:14px!important;line-height:1.55!important}
.rs-detail-amount dd,.rv-amount{font-size:28px!important;line-height:1.2!important}
#rs-review-status,#rs-review-error{font-size:13px!important;line-height:1.5}
/* Áreas principais: margens previsíveis; preserva a reserva para ações fixas da venda. */
#r-main-container>:is(#r-screen-executive,#r-screen-config,#r-screen-schedules,#r-screen-operational,#r-screen-fan,#r-screen-valeteck,#r-screen-history){padding:24px;border-radius:18px}
#r-screen-sales{padding-top:24px;padding-left:24px;padding-right:24px}
#r-sidebar [id^="nav-item-"]{font-size:13px;line-height:1.4;min-height:44px}
#r-mobile-nav-grid{min-width:0!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px}
#r-mobile-nav-grid button{min-height:44px;font-size:12px!important;white-space:normal;overflow-wrap:anywhere;padding:7px 5px}
#r-mobile-nav-grid :is(#nav-mobile-executive,#nav-mobile-config){grid-column:1/-1}
#r-main-container [id^="sales-tab-"]{white-space:normal;min-height:44px}
#r-main-container [id^="sales-tab-"] .truncate{white-space:normal;overflow:visible;text-overflow:clip}
@media(max-width:767px){
 #r-main-container{padding:12px}
 #r-main-container>:is(#r-screen-executive,#r-screen-config,#r-screen-schedules,#r-screen-operational,#r-screen-fan,#r-screen-valeteck,#r-screen-history){padding:16px;border-radius:14px}
 #r-screen-sales{padding-top:16px;padding-left:16px;padding-right:16px}
 :is(#app-rastremix-container,#cal-modal) :is(.input-style,.cal-input,.cal-filter,.rd-scope-control select){font-size:16px!important;min-height:44px}
 #r-main-container :is(button:not(.cal-event):not(.cal-day):not([id^="rs-btn-"]):not([id^="ro-btn-"])),#cal-modal button{min-height:44px}
 #r-main-container [id^="sales-tab-"]{font-size:12px!important;gap:5px}
 #r-screen-calendar .cal-wrap{padding:14px}
 #r-screen-calendar .cal-day{padding:3px;min-width:0}
 #r-screen-calendar .cal-week div{font-size:11px!important}
 .rs-detail-body,.rs-review-body{padding:16px}
 .rs-detail-card,.rv-card{padding:16px}
}
@media(max-width:380px){#r-mobile-nav-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
#r-screen-sales>.border-b>.flex{flex-wrap:wrap;min-width:0;max-width:100%}
@media(max-width:767px){#r-screen-sales>.border-b>.flex:last-child{width:100%}#r-screen-sales>.border-b>.flex:last-child button{flex:1 1 auto}}
/* Nomes inteiros no menu, sem partir “Calendário” ou “Valeteck”. */
#r-mobile-nav-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#r-mobile-nav-grid button{overflow-wrap:normal;word-break:normal;gap:4px}
@media(max-width:380px){#r-mobile-nav-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:767px){.rs-identifier-row{grid-template-columns:104px minmax(0,1fr)}}
.dark #r-screen-calendar :is(.cal-shell,.cal-day,.cal-card,.cal-btn),.dark #cal-modal :is(.cal-modal-box,.cal-input,.cal-btn){background:#182231;color:#e2e8f0;border-color:#334155}
.dark #r-screen-calendar :is(.cal-side,.cal-week,.cal-day.out,.cal-filter),.dark #cal-modal .cal-owner{background:#111827;color:#cbd5e1;border-color:#334155}
.dark #r-screen-calendar :is(.cal-head h2,.cal-month,.cal-num,.cal-side-title,.cal-card-title){color:#f1f5f9}
.dark #r-screen-calendar :is(.cal-head p,.cal-week div,.cal-meta,.cal-side-sub,.cal-more,.cal-empty),.dark #cal-modal .cal-field label{color:#b8c5d8}
.dark #r-screen-calendar .cal-day.selected{background:#352027}
.dark #r-screen-calendar .cal-day:hover{background:#263347}
.dark #r-screen-calendar :is(.cal-head,.cal-box,.cal-week,.cal-side,.cal-day){border-color:#334155}
/* O campo de data não pode ser comprimido pelos atalhos da agenda. */
#r-screen-schedules .flex:has(>#sched-filter-date){flex-wrap:wrap}
#r-screen-schedules #sched-filter-date{flex:1 1 160px;min-width:150px}
#r-screen-schedules #sched-filter-date+div{flex-wrap:wrap;max-width:100%}
#r-screen-operational>.border-b>.flex{flex-wrap:wrap;min-width:0;max-width:100%}
@media(max-width:767px){#r-screen-operational>.border-b>.flex:last-child{width:100%}#r-screen-operational>.border-b>.flex:last-child button{flex:1 1 auto}}
