/* Revisão responsiva geral V100 — desktop, tablet e celular */
html{overflow-x:hidden;-webkit-text-size-adjust:100%}
body{max-width:100%;overflow-x:hidden}
img,svg,video,canvas{max-width:100%}
input,select,textarea,button{max-width:100%}
textarea{width:100%;resize:vertical}
.app-main,.container,.card,.page-head>*,.topbar>*,.grid>*,.dashboard-grid>*,.charts-grid>*,.dashboard-charts>*,.ops-grid>*,.kpi-grid>*,.executive-kpis>*,.stats-grid>*{min-width:0}
.container{width:100%}
.topbar{min-height:72px;height:auto;gap:16px}
.topbar .brand{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-head{align-items:flex-start}
.page-head>div:first-child{min-width:0}
.page-head h1,.page-head h2,.chart-card h2{overflow-wrap:anywhere}
.page-head .actions,.panel-actions,.form-actions,.export-toolbar,.delivery-actions,.draft-actions,.publish-box,.confirmation-actions{flex-wrap:wrap}
.table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
.table-wrap table{min-width:680px}
.table-wrap th,.table-wrap td{vertical-align:middle}
.table-wrap .wrap-cell{white-space:normal}
.actions{align-items:center;flex-wrap:wrap}
.filter-grid,.report-filter{max-width:100%}
.filter-grid>*,.report-filter>*,.inline-form>*{min-width:0}
.export-toolbar{display:flex;gap:8px;align-items:center;margin:10px 0}
.export-toolbar button{min-height:40px}
.page-size-form{display:flex;justify-content:flex-end;margin:10px 0}
.page-size-form label{margin:0}
.pager,.pagination{max-width:100%;overflow-x:auto;padding-bottom:3px}
.pager-links{display:flex;flex-wrap:wrap;gap:4px}
.calendar-card,.my-calendar,.public-calendar,.response-calendar,.server-calendar{max-width:100%}
.calendar-grid,.public-grid,.response-calendar-grid,.server-calendar-grid{min-width:0!important}
.calendar-day,.public-day,.response-day,.server-day{min-width:0}
.calendar-event{min-width:0;max-width:100%}
.metric-row>*,.ranking-item>*,.bar-label>*{min-width:0}
.suggestion-choice>span,.membro-com-foto>*:last-child,.user-list-person>div{min-width:0}
.availability-dashboard-alert,.schedule-notice,.next-service,.personal-hero{max-width:100%}

@media (max-width:1100px){
  .container{padding-left:22px;padding-right:22px}
  .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .executive-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .dashboard-charts,.charts-grid{grid-template-columns:1fr!important}
  .wide-chart,.engagement-card{grid-column:auto!important}
  .ministry-charts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media (max-width:768px){
  body{font-size:14px;line-height:1.45}
  .app-main{width:100%;padding-bottom:84px}
  .container,.container.narrow{max-width:100%;padding:18px 12px 32px}
  .topbar{position:sticky;top:0;z-index:50;min-height:62px;padding:10px 12px 10px 62px!important;align-items:center}
  .topbar .brand{font-size:15px;line-height:1.25}
  .topbar>.btn,.topbar>.clean.btn{width:auto!important;min-height:40px;padding:9px 12px;white-space:nowrap}
  .top-actions{margin-left:auto}
  .page-head{display:flex;flex-direction:column;align-items:stretch!important;gap:13px;margin-bottom:16px}
  .page-head h1{font-size:1.55rem;line-height:1.15;margin-top:5px}
  .page-head h2{font-size:1.25rem;line-height:1.2}
  .page-head>.btn,.page-head>.clean.btn,.page-head>.actions{width:100%!important}
  .page-head>.actions .btn,.page-head>.actions a{flex:1;text-align:center}
  .card{border-radius:12px}
  .form-card,.chart-card,.critical-list,.ministry-panel{padding:16px!important}
  .filter-grid,.report-filter,.two,.inline-form,.company-config-grid,.ranking-config-grid,.report-share,.period-summary,.checkin-notification-card{grid-template-columns:1fr!important}
  .filter-grid,.report-filter{gap:10px;padding:14px!important}
  .filter-grid label,.report-filter label{margin-top:0}
  .filter-actions{grid-column:auto!important;display:grid!important;grid-template-columns:1fr 1fr;width:100%;gap:8px}
  .filter-actions>*{width:100%;text-align:center}
  .form-actions{display:grid!important;grid-template-columns:1fr;gap:9px;width:100%}
  .form-actions>*{width:100%!important;text-align:center}
  .actions{justify-content:flex-start!important;gap:10px}
  .actions .icon-action{width:40px;height:40px;display:inline-grid!important;place-items:center}
  .panel-actions,.delivery-actions{display:grid!important;grid-template-columns:1fr;width:100%;gap:8px}
  .panel-actions>*,.delivery-actions>*,.delivery-actions form,.delivery-actions button{width:100%}
  .export-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .export-toolbar button{width:100%}
  .page-size-form{justify-content:stretch}
  .page-size-form label,.page-size-form select{width:100%}
  .table-wrap{border-radius:10px;box-shadow:inset -12px 0 15px -18px rgba(0,0,0,.65)}
  .table-wrap table{min-width:620px}
  .table-wrap th,.table-wrap td{padding:11px 10px;font-size:.86rem}
  .status-form{min-width:230px!important}
  .stats-grid,.executive-kpis,.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}
  .stat-card,.kpi{min-height:0!important;padding:14px!important}
  .stat-card strong,.kpi strong{font-size:1.65rem!important}
  .dashboard-charts,.charts-grid,.ops-grid,.alert-grid,.ministry-charts{grid-template-columns:1fr!important;gap:12px}
  .chart-card{overflow:hidden}
  .chart-head h2{font-size:1.16rem;margin-bottom:12px}
  .metric-row{grid-template-columns:minmax(80px,1fr) minmax(90px,2fr) 34px!important;gap:7px}
  .six-month-columns{height:190px!important;gap:5px!important;padding-top:10px!important}
  .month-column{height:170px!important}
  .month-column small{font-size:9px!important;white-space:normal!important;line-height:1.05}
  .comparison-columns{height:180px!important;gap:28px!important}
  .comparison-column{width:78px!important}
  .donut-wrap{flex-direction:column;gap:16px!important}
  .donut,.sex-pie,.ministry-pie,.service-pie{width:155px!important;height:155px!important}
  .donut:after{width:96px!important;height:96px!important}
  .sex-pie:after,.ministry-pie:after,.service-pie:after{inset:41px!important}
  .engagement-map{min-height:220px;overflow:hidden}
  .ranking-item{grid-template-columns:30px minmax(0,1fr) auto!important}
  .ranking-item strong,.ranking-item span{overflow-wrap:anywhere}
  .birthday-head{gap:10px}
  .birthday-head h2{font-size:1.18rem!important}
  .birthday-list{grid-template-columns:1fr!important}
  .birthday-person{padding:11px 13px!important}
  .availability-dashboard-alert,.schedule-notice,.next-service,.personal-hero,.availability-finish{align-items:stretch!important;flex-direction:column!important;padding:14px!important}
  .availability-dashboard-numbers{width:100%;justify-content:flex-start!important;flex-wrap:wrap}
  .suggestion-grid{grid-template-columns:1fr!important}
  .suggestion-person{padding:13px!important}
  .draft-actions,.publish-box{align-items:stretch!important;flex-direction:column!important}
  .draft-actions .btn,.publish-box .btn{width:100%}
  .response-calendars,.public-calendars{grid-template-columns:1fr!important}
  .availability-answer,.public-answer{grid-template-columns:1fr!important;padding:14px!important}
  .calendar-card,.my-calendar,.public-calendar,.response-calendar,.server-calendar{padding:10px!important;overflow:hidden!important}
  .calendar-head{gap:6px!important;margin-bottom:10px!important}
  .calendar-head h2{font-size:1.1rem!important;margin:2px 0!important}
  .calendar-head>a,.calendar-nav{width:38px!important;height:38px!important;padding:0!important;font-size:25px!important}
  .calendar-week,.calendar-grid{min-width:0!important}
  .calendar-grid,.public-grid,.response-calendar-grid,.server-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:2px!important}
  .calendar-week b,.response-week,.public-grid>b,.server-calendar-grid>.calendar-week{padding:4px 0!important;font-size:9px!important;text-align:center}
  .calendar-empty,.calendar-day{min-height:64px!important;border-radius:6px!important}
  .calendar-day{padding:3px!important}
  .calendar-number{font-size:11px!important;margin-bottom:2px!important}
  .calendar-event{margin-top:2px!important;padding:3px!important;border-left-width:3px!important}
  .calendar-event span,.calendar-event small{display:none!important}
  .calendar-event b,.calendar-event strong{font-size:9px!important;overflow:hidden;text-overflow:ellipsis}
  .public-day,.response-day,.server-day,.calendar-empty{min-height:38px!important;font-size:11px!important;border-radius:5px!important}
  .public-day a,.response-day a{font-size:9px!important;padding:0 2px!important}
  .calendar-legend{gap:8px!important;font-size:10px!important}
  .period-ministry-head,.ministry-head{grid-template-columns:1fr!important;gap:9px!important;padding:14px!important}
  .report-hero{padding:21px 16px!important}
  .report-body{padding:12px!important}
  .report-date{flex-direction:column;gap:4px!important}
  .schedule-report,.period-report{border-radius:12px!important}
  .share-options{display:grid!important;grid-template-columns:1fr!important}
  .share-options label{width:100%}
  .user-photo-editor{grid-template-columns:1fr!important;text-align:center}
  .user-photo-editor img,.user-photo-placeholder{margin:auto}
  .help-grid{grid-template-columns:1fr!important}
  .help-fab{right:14px!important;bottom:138px!important;width:44px!important;height:44px!important}
  .theme-toggle{right:14px!important;bottom:86px!important;width:44px!important;height:44px!important}
  .mobile-bottom{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  .bottom-link{min-width:0;text-align:center;overflow:hidden}
  .bottom-link span{font-size:19px!important}
  .mobile-logout button{width:100%;border:0;background:transparent}
}

@media (max-width:420px){
  body{font-size:13.5px}
  .container{padding-left:9px;padding-right:9px}
  .topbar{padding-right:9px!important}
  .topbar .brand{max-width:58vw;font-size:13px}
  .topbar>.btn,.topbar>.clean.btn{padding:8px 9px;font-size:12px}
  .filter-actions{grid-template-columns:1fr}
  .stats-grid,.executive-kpis,.kpi-grid{grid-template-columns:1fr 1fr!important}
  .stat-card,.kpi{padding:11px!important}
  .stat-card span,.kpi span{font-size:11px}
  .stat-card strong,.kpi strong{font-size:1.4rem!important}
  .table-wrap table{min-width:580px}
  .export-toolbar{grid-template-columns:1fr 1fr}
  .metric-row{grid-template-columns:74px minmax(70px,1fr) 30px!important;font-size:11px}
  .six-month-columns{gap:3px!important}
  .month-column small{font-size:8px!important}
  .calendar-card,.my-calendar{padding:7px!important}
  .calendar-grid,.public-grid,.response-calendar-grid,.server-calendar-grid{gap:1px!important}
  .calendar-empty,.calendar-day{min-height:56px!important}
  .public-day,.response-day,.server-day{min-height:34px!important;font-size:10px!important}
  .birthday-icon{width:38px!important;height:38px!important;font-size:19px!important}
  .membro-avatar{width:36px!important;height:36px!important;min-width:36px!important}
}

@media (min-width:769px) and (max-width:1180px){
  .sidebar{width:220px}
  .app-main{margin-left:220px}
  .menu-toggle-global{left:232px}
  .sidebar-brand{padding-left:16px;padding-right:16px}
  .side-link{padding-left:10px;padding-right:10px;font-size:13px}
}

@media print{
  .menu-toggle-global,.sidebar,.mobile-bottom,.theme-toggle,.help-fab,.menu-backdrop,.export-toolbar,.page-size-form{display:none!important}
  .app-main{margin-left:0!important;padding:0!important}
  .container{max-width:none!important;padding:0!important}
  .table-wrap{overflow:visible!important}
  .table-wrap table{min-width:0!important}
}
