/* Fluxos exclusivos do app. Listas progressivas, com os controles reais preservados. */
body.mw-mobile{--sm-accent:#111318;--roxo:#343941;--primaria:#111318}
.mw-mobile #sm-header{gap:4px;padding-left:12px;padding-right:12px;min-height:76px;background:#ffffffed}
.mw-mobile #mw-heading{min-width:0;flex:1}
.mw-mobile #sm-titulo{font-size:17px;letter-spacing:-.3px;line-height:1.25;overflow-wrap:anywhere}
.mw-mobile #sm-subtitulo:empty{display:none}
.mw-accounts{display:inline-flex;align-items:center;gap:4px;border:0;padding:4px 6px;min-height:32px;color:#075e54;background:none;font-size:13px!important;font-weight:650;white-space:nowrap}
.mw-mobile #sm-header-tools{gap:0}.mw-mobile #sm-header-tools .sm-icon{width:44px}
.mw-mobile #mw-back{margin-left:-6px}
.mw-mobile #sm-page.mw-page{padding:12px 20px calc(100px + var(--sm-bottom));background:#fff;overflow-x:clip;scrollbar-gutter:stable}
.mw-page h2{font-size:20px;line-height:1.3;letter-spacing:-.35px;margin:16px 0 8px}
.mw-page p{line-height:1.5;overflow-wrap:anywhere}
.mw-page .sm-option{gap:14px;padding:16px 0;border:0;min-height:72px}
.mw-page .sm-option>svg{width:27px;height:27px;stroke-width:1.8}
.mw-page .sm-option b{font-size:17px;font-weight:500;letter-spacing:-.25px;line-height:1.3}
.mw-page .sm-option small{font-size:13px;line-height:1.4;color:#75777f;margin-top:4px}
.mw-page .sm-option>span:last-child{font-size:28px;color:#8e9095}
.mw-page .sm-option:active{background:#f4f5f6}
.mw-section{margin:10px -20px 0;padding:14px 20px 8px;border-top:7px solid #f2f3f5}
.mw-section>h2{font-size:14px;font-weight:600;color:#777b82;letter-spacing:0;margin:8px 0}
.mw-section>p{margin:16px 0}.mw-section small,.mw-muted{color:#767980;font-size:13px}
.mw-search{display:block;width:100%;min-height:48px;border:0;background:#f1f2f5;padding:12px 16px;border-radius:14px;color:#111;margin:6px 0 16px}
.mw-person{padding:22px 0;text-align:center}.mw-person p{font-size:14px;color:#74777e;margin:6px 0}
.mw-state{padding:48px 12px;text-align:center;color:#747780;line-height:1.5}.mw-state b{display:block;color:#20232a;font-size:18px}.mw-state p{font-size:14px;margin:8px 0 20px}
.mw-primary,.mw-quiet,.mw-chip{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border-radius:12px;padding:11px 16px;border:1px solid #e8e9ec;font-size:14px;font-weight:600}
.mw-primary{background:#111318;color:#fff;border-color:#111318}.mw-quiet,.mw-chip{background:#f6f7f8;color:#262a31}.mw-chip[aria-pressed=true]{color:#fff;background:#111318;border-color:#111318}
.mw-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0}
.mw-toolbar>button{display:grid;place-items:center;min-height:46px;min-width:44px;border:0;background:#f5f6f7;border-radius:12px;color:#222}.mw-toolbar svg{width:22px;height:22px}
.mw-toolbar input{min-width:0;flex:1;max-width:205px;border:0;background:#f5f6f7;border-radius:12px;padding:12px;font-weight:600;color:#111}
.mw-calendar-actions,.mw-day-shortcuts{display:flex;gap:8px;margin:16px 0;flex-wrap:wrap}
.mw-calendar-actions .mw-primary{flex:1}.mw-appointment.sm-option{border-bottom:1px solid #eef0f2;padding:20px 0}
.mw-badge{display:inline-block;border:1px solid #e4e6ea;background:#f5f6f7;border-radius:16px;padding:5px 12px;font-size:12px;color:#565b64}
.mw-form{display:flex;flex-direction:column;gap:20px;padding:10px 0 20px}.mw-form label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600}
.mw-form input,.mw-form select,.mw-form textarea,.mw-period select{width:100%;min-width:0;border:1px solid #dfe2e7;border-radius:12px;padding:13px;background:white;color:#191c23;min-height:48px}
.mw-form textarea{resize:vertical}.mw-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.mw-error{color:#b42318;font-size:14px;margin:0}.mw-error:empty{display:none}
.mw-period{display:flex;align-items:center;gap:12px;font-size:13px;color:#666}.mw-period select{width:auto;flex:1}
.mw-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.mw-metrics>div{padding:18px 14px;background:#f6f7f9;border-radius:16px}.mw-metrics small{display:block;color:#747880;font-size:12px}.mw-metrics b{display:block;font-size:21px;overflow-wrap:anywhere;margin-top:8px;letter-spacing:-.5px}
.mw-mobile .mw-steps{display:flex;gap:8px;margin:0 0 20px}.mw-steps button{flex:1;font-size:13px!important}
.mw-mobile #view>.pane #nv-left{border:0!important;padding:0!important;box-shadow:none!important}.mw-mobile #view .ag2{display:block!important}
.mw-mobile #view #nv-left .row{flex-wrap:wrap}.mw-mobile #view #nv-left .nv-ajustes-agendamento{display:grid;grid-template-columns:1fr;gap:14px}
.mw-mobile #view #nv-left .field{margin-bottom:16px}.mw-mobile #nv-left>button{width:100%;margin:20px 0}
.mw-mobile #nv-grade .sm-option{padding:18px 0}.mw-mobile #nv-grade .sm-option b{font-size:18px}.mw-mobile #nv-grade .sm-option small{font-size:13px}
.mw-mobile #view .mw-novo .agenda-top{display:flex;flex-wrap:wrap;gap:8px!important;padding:0!important}.mw-mobile .mw-novo #nv-data{flex:1;min-width:150px}
.mw-mobile .mw-novo .nv-modo{display:none!important}.mw-mobile .mw-novo #nv-dow{width:100%;font-size:14px;margin:8px 0}
.mw-mobile #nv-contrato .opcao,.mw-mobile #nv-sug .opcao{display:flex;flex-wrap:wrap;gap:8px;min-width:0}.mw-mobile #nv-sug .opcao>span{min-width:0;flex:1}
.mw-mobile #nv-cli-list .opcao,.mw-mobile #nv-contrato .area-item{min-height:52px;align-items:center}.mw-mobile #nv-cli-list .opcao{font-size:15px!important;cursor:pointer}
.mw-mobile #modal[data-mw-dialog] .modal-card{height:var(--sm-height)!important;max-height:var(--sm-height)!important;border-radius:0!important;padding:60px 20px calc(24px + var(--sm-bottom));margin:0!important;overscroll-behavior:contain}
.mw-mobile #modal[data-mw-dialog] .close-x{position:fixed;top:calc(var(--sm-top) + 8px);right:12px;background:white;z-index:2}
.mw-mobile #modal-body{padding-top:0}.mw-mobile #modal-body .agp-resumo{display:flex;flex-wrap:wrap;gap:12px}.mw-mobile #modal-body .agp-grid,.mw-mobile #modal-body .grid2,.mw-mobile #modal-body .grid3{display:grid!important;grid-template-columns:1fr!important}
.mw-mobile #modal-body .row{flex-wrap:wrap}.mw-mobile #modal-body input:not([type=checkbox]):not([type=radio]),.mw-mobile #modal-body select{min-height:46px}
.mw-mobile #modal-body details{border-top:1px solid #e8ebef;margin:12px 0}.mw-mobile #modal-body summary{min-height:48px;padding:14px 0;font-weight:600;cursor:pointer}
/* Tabelas comuns mantêm todos os dados e botões, agora em fichas verticais. */
.mw-mobile table.mw-table,.mw-mobile .mw-table tbody,.mw-mobile .mw-table tr,.mw-mobile .mw-table td{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal!important}
.mw-mobile .mw-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.mw-mobile .mw-table tbody tr{margin:0 0 16px;padding:12px;border:1px solid #e8ebef;border-radius:14px}
.mw-mobile .mw-table td{padding:10px 0!important;border:0!important;overflow-wrap:anywhere;text-align:left!important}
.mw-mobile .mw-table td::before{content:attr(data-mw-label);display:block;font-size:12px;color:#737983;margin-bottom:5px}
.mw-mobile .mw-table td button{min-height:44px;margin:4px 4px 0 0}
.mw-mobile .sm-inbox #ccv-voltar,.mw-mobile .sm-chat-back{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;align-items:center;justify-content:center;padding:9px!important}
.mw-mobile .sm-inbox #ccv-voltar svg{width:25px;height:25px;flex:none}
.mw-mobile .sm-chat-tools .sm-icon{width:44px;height:44px;padding:10px}
.mw-mobile .sm-chat-tools .sm-icon svg{width:24px;height:24px}
.mw-mobile .sm-inbox .ccv-composer[data-sm-composer] .sm-tool-native,.mw-mobile .sm-inbox .rel-comp .sm-tool-native,.mw-mobile .sm-camera-chat,.mw-mobile .sm-composer-more{min-width:44px!important;width:44px!important;min-height:44px!important;height:44px!important;padding:10px!important}
.mw-mobile .sm-inbox .ccv-composer[data-sm-composer] #ccv-enviar,.mw-mobile .sm-inbox #rel-enviar{min-width:44px!important;min-height:44px!important}
@media(prefers-reduced-motion:no-preference){.mw-page>*,.mw-mobile .mw-novo{animation:mw-appear .16s ease-out}@keyframes mw-appear{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:none}}}
@media(min-width:700px){.mw-mobile #sm-page.mw-page{padding-left:20px;padding-right:20px}}
@media(max-width:359px){.mw-mobile #sm-header{padding-left:8px;padding-right:8px}.mw-mobile #sm-header-tools .sm-icon{width:40px}.mw-mobile #sm-titulo{font-size:16px}.mw-mobile #sm-page.mw-page{padding-left:16px;padding-right:16px}.mw-section{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.mw-metrics b{font-size:18px}}
