/* AVESSO Central 1.5.40 — densidade da Agenda e ergonomia mobile.
   Apenas apresentacao; sem alterar dados, permissoes ou fluxos de API. */
.shell .avesso-call-panel{
  overflow:hidden;margin:0 0 13px!important;padding:13px 15px;
  border-radius:14px;
}
.shell .avesso-call-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.shell .avesso-call-heading{flex:1 1 190px;min-width:0}
.shell .avesso-call-heading .label{font-size:9px;letter-spacing:1px;margin-bottom:2px}
.shell .avesso-call-heading h2{margin:2px 0 0;font-size:17px;line-height:1.2;display:flex;align-items:center;gap:8px}
.shell .avesso-call-heading h2 .pill{font-size:10px;vertical-align:middle}
.shell .avesso-call-period{font-size:11px;line-height:1.3;margin:3px 0 0}
.shell .avesso-call-top-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.shell .avesso-call-top-actions .outline,.shell .avesso-call-top-actions .primary{
  min-height:36px;padding:7px 10px;border-radius:9px;font-size:11.5px;font-weight:700;white-space:nowrap;
}
.shell .avesso-call-top-actions .primary{background:var(--accent);color:#17200d;border:1px solid transparent}
.shell .avesso-call-top-actions .primary:disabled{opacity:.5;cursor:not-allowed}
.shell .avesso-call-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:9px;margin-top:10px;align-items:start}
.shell .avesso-call-day{margin:0;padding:9px 10px;border-radius:10px;min-width:0}
.shell .avesso-call-day-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 3px}
.shell .avesso-call-day h3{font-size:12px;letter-spacing:0;line-height:1.3;font-weight:700;margin:0}
.shell .avesso-call-day h3 .pill{padding:2px 6px;font-size:9px}
.shell .avesso-call-day-actions{display:flex;gap:5px}
.shell .avesso-call-day-actions .outline{font-size:10px;padding:5px 7px;min-height:27px;border-radius:7px}
.shell .avesso-call-row{display:grid;grid-template-columns:48px minmax(70px,1.15fr) minmax(65px,1fr) auto;gap:7px;align-items:center;min-width:0;margin:0;padding:6px 0;font-size:11.5px;line-height:1.3}
.shell .avesso-call-hour{font-size:12px;color:var(--accent)}
.shell .avesso-call-person,.shell .avesso-call-recruiter{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.shell .avesso-call-status{font-size:9px;padding:2px 5px}
.shell .avesso-call-row .avesso-call-edit{font-size:10px;min-height:27px;padding:4px 7px;border-radius:7px;justify-self:end}
.shell .avesso-call-empty{padding:11px;font-size:12px;border:1px dashed var(--line);border-radius:10px;grid-column:1/-1}
.shell .calendar-toolbar{gap:9px}
.shell .calendar-shell{gap:12px}
.shell .calendar-shell>section,.shell .calendar-shell>aside{padding:14px}
.shell .calendar-day-list{gap:6px}
.shell .event-item{padding:9px 0;gap:8px}
.shell .event-info p{font-size:11px;line-height:1.35}
.shell .event-actions{gap:5px}
.shell .event-actions .outline{font-size:10px;padding:6px 8px;min-height:30px}
.shell .calendar-toolbar .outline{font-size:11px;min-height:32px;padding:6px 9px}

/* Navegacao mobile com ergonomia de aplicativo bancario.
   Preserva a barra existente e todas as permissoes de cada perfil. */
@media(max-width:740px){
  .shell{padding-bottom:calc(91px + env(safe-area-inset-bottom))!important}
  .shell .topbar{height:56px;padding:0 12px;box-shadow:0 3px 15px #00000012;background:var(--bg);border-bottom:1px solid var(--line)}
  .shell .topbar-left{gap:9px}
  .shell .breadcrumbs{font-size:12px;line-height:1.3}
  .shell .breadcrumbs strong{font-size:13px;font-weight:750}
  .shell .mobile-menu{width:42px;min-width:42px;height:42px;border-radius:13px;font-size:19px}
  .shell .content{padding:13px 12px 26px;min-width:0}
  .shell .intro{gap:8px;margin-bottom:12px}
  .shell .intro .eyebrow{margin-bottom:4px!important;font-size:9px}
  .shell .intro h1{font-size:21px;line-height:1.15;margin-bottom:3px}
  .shell .intro p{font-size:12px;line-height:1.37}
  .shell .intro .heading-actions{gap:6px}
  .shell .intro .heading-actions button,.shell .intro .heading-actions a{min-height:43px;display:inline-flex;align-items:center;justify-content:center}
  .shell .panel{padding:13px 12px;border-radius:15px}
  .shell .panel h2{font-size:15px;line-height:1.3}
  .shell .stats{gap:8px;margin:11px 0}
  .shell .stat{min-height:83px;padding:11px 12px;border-radius:14px}
  .shell .stat strong{font-size:21px;margin:5px 0 2px;line-height:1.05}
  .shell .stat>.tiny:first-child{font-size:10.5px}
  .shell .stat>.tiny:last-child{font-size:10px}
  .shell .toolbar{gap:7px;margin:9px 0 11px}
  .shell .tabs{gap:6px;margin-top:7px;margin-bottom:11px;padding-bottom:8px}
  .shell .tabs button,.shell .tabs.recruit-tabs button{font-size:12px;min-height:42px;padding:8px 12px;border-radius:12px}
  .shell .recruit-groups{margin-top:8px;gap:15px}
  .shell .recruit-groups button{padding:9px 0;font-size:12px}
  .shell .people-table .person-row{border-radius:14px;padding:10px 12px;margin-bottom:9px}
  .shell .people-table td{padding:5px 0}
  .shell .people-table .action-cell{padding-top:8px}
  .shell .people-table .actions{gap:6px}
  .shell .people-table .actions>*{min-height:42px}
  .shell .mobile-bottom{
    left:9px;right:9px;bottom:calc(7px + env(safe-area-inset-bottom));
    min-height:66px;height:66px;padding:5px 5px;
    border:1px solid var(--line);border-radius:20px;
    background:var(--card);box-shadow:0 8px 35px #0006;
    display:flex;align-items:stretch;gap:2px;z-index:32;
  }
  .shell .mobile-bottom button{flex:1 1 0;min-width:0;min-height:54px;border-radius:14px;padding:6px 2px;gap:3px;font-size:10px;font-weight:700;letter-spacing:0}
  .shell .mobile-bottom button .icon{height:24px;min-height:24px;font-size:21px;display:grid;place-items:center}
  .shell .mobile-bottom button .icon svg{width:21px;height:21px}
  .shell .mobile-bottom button.active{color:var(--accent);background:color-mix(in srgb,var(--accent) 11%,var(--card));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 30%,transparent)}
  .shell .sidebar{width:min(325px,89vw);padding:16px 13px calc(24px + env(safe-area-inset-bottom));border-radius:0 20px 20px 0}
  .shell .sidebar .nav button,.shell .airon-nav-link{min-height:45px!important}
  .shell .sidebar .nav button.active{border-left:3px solid var(--accent)}
  .shell .calendar-shell{display:flex;flex-direction:column;gap:10px}
  .shell .calendar-shell>section,.shell .calendar-shell>aside{padding:12px}
  .shell .calendar-toolbar{gap:7px}
  .shell .calendar-toolbar .row{flex-wrap:wrap;gap:5px}
  .shell .calendar-toolbar .outline{min-width:36px;min-height:40px;padding:6px 9px;font-size:11px}
  .shell .calendar-month-title{font-size:15px;line-height:1.2}
  .shell .calendar-grid{gap:2px}
  .shell .calendar-day{min-height:56px;padding:5px 3px}
  .shell .calendar-weekday{font-size:10px;padding:6px 0}
  .shell .calendar-day-list .event-item{gap:7px}
  .shell .event-info strong{font-size:12.5px}
  .shell .event-info p{font-size:11.5px}
  .shell .event-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:6px}
  .shell .event-actions button,.shell .event-actions a{min-height:41px;font-size:11px;min-width:0;display:inline-flex;align-items:center;justify-content:center;text-align:center;padding:6px 7px}
  .shell .avesso-call-panel{padding:11px 11px;margin:0 0 11px!important;border-radius:15px}
  .shell .avesso-call-top{gap:9px;align-items:flex-start}
  .shell .avesso-call-heading{flex:1 1 100%}
  .shell .avesso-call-heading h2{font-size:16px}
  .shell .avesso-call-period{font-size:11px}
  .shell .avesso-call-top-actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
  .shell .avesso-call-top-actions .avesso-call-share-main{grid-column:1/-1;font-size:12px;min-height:44px;width:100%}
  .shell .avesso-call-top-actions .outline{font-size:11px;min-height:40px;padding:7px 9px}
  .shell .avesso-call-top-actions .avesso-call-links{grid-column:2}
  .shell .avesso-call-groups{display:grid;grid-template-columns:1fr;gap:7px;margin-top:9px}
  .shell .avesso-call-day{padding:8px 9px}
  .shell .avesso-call-day-head{gap:5px}
  .shell .avesso-call-day h3{font-size:12px}
  .shell .avesso-call-day-actions .outline{min-height:36px;padding:7px 8px;font-size:11px}
  .shell .avesso-call-row{grid-template-columns:45px minmax(0,1fr) auto;gap:6px;font-size:11.5px;padding:7px 0}
  .shell .avesso-call-hour{font-size:12px;grid-column:1;grid-row:1/3;align-self:center}
  .shell .avesso-call-person{grid-column:2;grid-row:1;font-size:12px;font-weight:700}
  .shell .avesso-call-recruiter{grid-column:2;grid-row:2;font-size:11px}
  .shell .avesso-call-status{grid-column:2;grid-row:3;justify-self:start}
  .shell .avesso-call-edit{grid-column:3;grid-row:1/3;min-height:40px!important;font-size:11px!important;padding:7px 10px!important}
  .shell .empty{padding:19px 10px}
  /* Entrada de dados sem zoom automatico e com areas de toque confortaveis */
  .shell input:not([type="checkbox"]):not([type="radio"]),
  .shell select,.shell textarea,dialog input:not([type="checkbox"]):not([type="radio"]),dialog select,dialog textarea{font-size:16px;min-height:43px}
  .shell button,.shell a,.shell input,.shell select{touch-action:manipulation}
  .shell .airon-toast,.shell .toast{bottom:calc(89px + env(safe-area-inset-bottom))}
  /* Modal como folha inferior, sem alterar o elemento dialog nem o formulario */
  dialog#modal{position:fixed;inset:auto 0 0 0;margin:0 auto;padding:20px 16px calc(23px + env(safe-area-inset-bottom));width:100%;max-width:100%;max-height:90dvh;border-radius:23px 23px 0 0;overflow:auto;overscroll-behavior:contain}
  dialog#modal .primary,dialog#modal .outline{min-height:43px}
}
@media(max-width:365px){
 .shell .mobile-bottom{left:5px;right:5px}
 .shell .mobile-bottom button{font-size:9px}
 .shell .avesso-call-top-actions{grid-template-columns:1fr 1fr}
 .shell .avesso-call-top-actions .outline{min-width:0}
}
@media(prefers-reduced-motion:reduce){.shell .mobile-bottom,.shell .avesso-call-panel{transition:none!important}}

/* WhatsApp opcional da call */
.shell .avesso-call-actions{display:flex;gap:5px;align-items:center;justify-self:end}
.shell .avesso-call-actions .avesso-call-wa{font-size:10px;min-height:27px;padding:4px 7px;border-radius:7px;white-space:nowrap}
@media(max-width:740px){.shell .avesso-call-actions{grid-column:3;grid-row:1/3;flex-direction:column;align-items:stretch}.shell .avesso-call-actions .avesso-call-wa{min-height:40px;font-size:11px;padding:7px 10px}}

/* 1.5.42: bloco de Calls recolhível acima do calendário */
.shell .avesso-call-panel .avesso-call-groups[hidden]{display:none}
.shell .avesso-call-panel .avesso-call-groups{max-height:min(62vh,560px);overflow:auto;overscroll-behavior:contain;padding-right:2px}
.shell .avesso-call-toggle{min-height:36px;padding:7px 12px;border-radius:9px;font-size:11.5px;font-weight:700;white-space:nowrap}
@media(max-width:740px){.shell .avesso-call-toggle{min-height:44px;flex:1 1 100%}.shell .avesso-call-panel .avesso-call-groups{max-height:58vh}}
/* 1.5.42: linha de call no desktop: "Concluído" numa segunda linha, sob o nome, sem estourar o cartão do dia. */
@media(min-width:741px){
  .shell .avesso-call-row{grid-template-columns:48px minmax(0,1.15fr) minmax(0,1fr) auto}
  .shell .avesso-call-row .avesso-call-status{grid-column:2/4;grid-row:2;justify-self:start}
  .shell .avesso-call-row .avesso-call-actions{grid-column:4;grid-row:1}
  .shell .avesso-call-person,.shell .avesso-call-recruiter{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
