/* V22.3.172 / build 2496 — Detalhes da Agenda, Conta e painel de upload.
   Não altera navegação global nem botões das demais áreas. */
#jobDetailsDialog .workflow-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px!important;width:100%;align-items:stretch}
#jobDetailsDialog .workflow-actions .btn{box-sizing:border-box;min-width:0!important;width:100%;min-height:46px;padding:9px 11px!important;display:flex;align-items:center;justify-content:center;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;line-height:1.3!important;text-align:center;flex:none!important;border:1.5px solid #474b55!important;border-radius:11px!important;background:#1a1d22!important;color:#f6f6f1!important;font-weight:800!important;box-shadow:none!important;transform:none!important;transition:border-color .12s ease,background-color .12s ease}
#jobDetailsDialog .workflow-actions .btn span{display:block;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;line-height:inherit!important;color:inherit!important}
#jobDetailsDialog .workflow-actions .btn[data-job-workflow].active,#jobDetailsDialog .workflow-actions .btn[data-job-workflow].active:hover,#jobDetailsDialog .workflow-actions .btn[data-job-workflow].active:focus-visible{background:#ffd400!important;color:#101114!important;border-color:#ffd400!important}
#jobDetailsDialog .workflow-actions .btn:not(.active):hover,#jobDetailsDialog .workflow-actions .btn:not(.active):active,#jobDetailsDialog .workflow-actions .btn:not(.active):focus-visible{background:#1a1d22!important;color:#f6f6f1!important;border-color:#ffd400!important;outline:none!important}
#jobDetailsDialog .workflow-actions .btn:focus-visible{box-shadow:0 0 0 2px rgba(255,212,0,.2)!important}
#jobDetailsDialog .workflow-actions .btn:not([data-job-workflow]){background:#1a1d22!important;color:#f6f6f1!important}
#jobDetailsDialog .workflow-actions .btn:not([data-job-workflow]):hover{border-color:#ffd400!important}
#jobDetailsDialog .job-detail-grid,#jobDetailsDialog .job-detail-grid>div,#jobDetailsDialog .job-workflow-pane,#jobDetailsDialog .job-workflow-content{min-width:0;overflow-wrap:anywhere}
#jobDetailsDialog .job-workflow-content button,#jobDetailsDialog .job-workflow-pane button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
#jobDetailsDialog .call-album-grid,#jobDetailsDialog .workflow-photo-name-list{min-width:0}
@media(max-width:600px){#jobDetailsDialog .workflow-actions{grid-template-columns:repeat(2,minmax(0,1fr))}#jobDetailsDialog .workflow-actions .btn{font-size:.78rem!important;min-height:48px;padding:9px 7px!important}}
@media(max-width:360px){#jobDetailsDialog .workflow-actions{grid-template-columns:1fr 1fr}#jobDetailsDialog .workflow-actions .btn{font-size:.72rem!important}}
/* Conta: identidade existente preservada, campos legíveis e navegação com rolagem. */
#contaView>.section-head{border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:12px}
#contaView .account-section-tabs{display:flex!important;flex-wrap:wrap!important;width:100%!important;max-width:100%;gap:8px;grid-template-columns:none!important;padding:9px!important;border-radius:15px;align-items:stretch}
#contaView .account-section-tab{flex:1 1 145px!important;min-width:0;white-space:normal;line-height:1.35;min-height:43px;border-radius:10px;overflow-wrap:anywhere}
#contaView .account-section-tab.active{background:#ffd400!important;color:#111!important;border-color:#ffd400!important;font-weight:900}
#contaView .account-section-tab:not(.active):hover{border-color:#ffd400!important}
#contaView .panel{min-width:0}
#contaView .account-tools-grid .panel{display:flex;flex-direction:column;gap:10px}
#contaView .account-tools-grid .panel>.btn,#contaView .account-tools-grid .panel>.actions{margin-top:auto;align-self:flex-start;max-width:100%}
#contaView input,#contaView select,#contaView textarea{max-width:100%;min-width:0}
#identidadeView .identity-preview-paper{background:#fff!important;color:#141414!important}
#identidadeView .identity-preview-yellowbar{height:3px!important;background:#ffd400!important}
#identidadeView .identity-document-guide{grid-column:1/-1;background:#13161b;color:#f3f4f5;border:1px solid #42464e;border-radius:12px;padding:12px;display:grid;gap:8px}
#identidadeView .identity-document-guide label{display:grid;gap:5px;font-size:.76rem;font-weight:800}
#identidadeView .identity-document-guide select{max-width:100%;background:#0d0f12;color:#fff;border:1px solid #565b63;border-radius:9px;padding:9px}
#identidadeView .identity-document-guide p{font-size:.75rem;line-height:1.5;color:#bdc2c9;margin:0}
/* Painel de envio que permanece disponível ao navegar por outras áreas. */
#spacPhotoDock{position:fixed;z-index:13000;right:max(12px,env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom));width:min(390px,calc(100vw - 24px));box-sizing:border-box;background:#14171b;color:#f9f9f7;border:1px solid #50545d;border-radius:15px;padding:12px 14px;box-shadow:0 12px 42px rgba(0,0,0,.38);font-size:.82rem}
#spacPhotoDock[hidden]{display:none!important}
#spacPhotoDock .spac-upload-top{display:flex;align-items:center;gap:8px;justify-content:space-between}
#spacPhotoDock .spac-upload-top strong{font-size:.85rem;color:#ffd400}
#spacPhotoDock .spac-upload-top button{border:1px solid #626771;border-radius:7px;color:#fff;background:#242932;padding:5px 9px;cursor:pointer}
#spacPhotoDock .spac-upload-body{display:grid;gap:8px;padding-top:9px}
#spacPhotoDock progress{width:100%;height:9px;accent-color:#ffd400}
#spacPhotoDock small{color:#adb6c1;overflow-wrap:anywhere}
#spacPhotoDock .spac-upload-queue{max-height:132px;overflow:auto;padding-right:3px;display:grid;gap:5px}
#spacPhotoDock .spac-upload-queue div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #333943;padding:3px 0;font-size:.72rem}
#spacPhotoDock .spac-upload-queue span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#spacPhotoDock .spac-upload-queue b{font-weight:700;flex:0 0 auto}
#spacPhotoDock .spac-upload-retry{border:1px solid #ffd400;background:transparent;color:#ffd400;border-radius:8px;padding:7px;cursor:pointer}
#spacPhotoDock.is-minimized .spac-upload-body{display:none}
@media(max-width:600px){#spacPhotoDock{left:12px;right:12px;width:auto;bottom:calc(12px + env(safe-area-inset-bottom))}}

#identidadeView .identity-preview-paper[data-header-style="clean"] .identity-preview-yellowbar{display:none!important}
#identidadeView .proposal-pdf-details-row{display:flex;align-items:center;gap:8px;grid-column:1/-1;line-height:1.45;font-size:.8rem}
#identidadeView .proposal-pdf-details-row input{width:19px;height:19px;flex:none;accent-color:#ffd400}

/* Build 2497 · Títulos/caixas no mobile: todos os layouts da Agenda,
   Checagem e detalhes têm largura limitada, quebras legíveis e alinhamento. */
@media (max-width:700px){
  #agendaView, #chamadosView, #jobfullView,
  #agendaView :is(.section-head,.agenda-card,.agenda-card-content,.agenda-actions),
  #chamadosView :is(.call-card,.call-card-head,.call-evidence-card,.call-evidence-head),
  #jobfullView :is(.job-full-hero,.job-full-section,.job-full-section-head,.job-full-kpis,.workflow-detail-grid),
  #jobDetailsDialog :is(.dialog-card,.dialog-head,.job-details-body,.job-workflow-pane,.job-workflow-view-head,.workflow-view-section,.workflow-view-section-title,.workflow-photo-name-head,.workflow-photo-name-card){min-width:0;max-width:100%;box-sizing:border-box}
  #agendaView :is(h2,h3,h4,strong,.agenda-title-line),
  #chamadosView :is(h2,h3,h4,strong,.call-evidence-head),
  #jobfullView :is(h2,h3,h4,strong,.job-full-page-heading),
  #jobDetailsDialog :is(h2,h3,h4,strong,.workflow-view-section-title){overflow-wrap:anywhere;word-break:normal;hyphens:auto}
  #agendaView :is(.section-head,.agenda-card),
  #chamadosView :is(.call-card-head,.call-evidence-head),
  #jobfullView :is(.job-full-section-head,.job-full-hero),
  #jobDetailsDialog :is(.dialog-head,.job-workflow-view-head,.workflow-view-section-title){gap:10px;align-items:flex-start}
  #chamadosView .call-card-actions{max-width:100%;flex-wrap:wrap}
  #jobDetailsDialog .workflow-view-section-title{display:flex;flex-wrap:wrap}
  #jobDetailsDialog .workflow-photo-name-head{display:flex;flex-wrap:wrap;align-items:center}
  #jobfullView .job-full-section-head{flex-wrap:wrap}
  #jobfullView .job-full-hero>span{white-space:normal;max-width:100%}
  #jobfullView .workflow-call-stage-picker,
  #jobDetailsDialog .workflow-call-stage-picker{max-width:100%;overscroll-behavior-inline:contain}
  #chamadosView .call-album-grid,#jobDetailsDialog .workflow-photo-name-list{max-width:100%;min-width:0}
  #chamadosView .call-album-thumb figcaption,#jobDetailsDialog .workflow-photo-name-row span{overflow-wrap:anywhere}
}
@media(max-width:380px){
  #agendaView .agenda-actions{grid-template-columns:minmax(0,1fr)}
  #jobDetailsDialog>.dialog-card{width:calc(100vw - 14px);max-width:100%;padding:12px!important}
  #jobDetailsDialog .workflow-actions .btn{font-size:.72rem!important}
  #jobfullView .job-full-kpis{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}
  #jobfullView .job-full-kpis article{padding:10px;min-width:0}
}
