/* V12c — Equipe: acabamento de lista, vazio, erro, Novo membro, avisos e cabeçalho da ficha.
   Só classes eq-* e seletores escopados (.eq-form, .eq-modal, #staff-table). Cor só por var(--…). */

/* ---- topo e lista ---- */
.eq-tall { min-height: 44px; }
.eq-new { min-height: 44px; white-space: nowrap; flex-shrink: 0; }
.eq-top { gap: 12px; }
.eq-titlebox { min-width: 0; flex: 1 1 auto; }
.eq-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-mob { display: none; }
.eq-empty { display: grid; gap: 8px; justify-items: center; padding: 32px 16px; text-align: center; }
.eq-empty .btn-primary { min-height: 48px; padding-left: 20px; padding-right: 20px; }

/* ---- aviso de erro e campo inválido ---- */
.eq-err { font-size: 14px; text-align: left; margin-top: 12px; color: var(--error); }
.eq-form input, .eq-form select { transition: none; }
.eq-form [aria-invalid="true"] { border-color: var(--error); }

/* ---- painel: X fixo e corpo com rolagem interna ---- */
.eq-modal { position: relative; }
.eq-x {
  position: absolute; top: -10px; right: -10px; z-index: 1;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  display: grid; place-items: center; padding: 0; border: none; background: transparent;
  color: var(--text); font-size: 24px; line-height: 1; cursor: pointer;
}
.eq-form-body { max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); overflow-y: auto; }
.eq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---- cabeçalho da ficha ---- */
.eq-head { display: flex; align-items: center; gap: 12px; }
.eq-head > :first-child { flex-shrink: 0; }
.eq-col { min-width: 0; flex: 1 1 0; }
.eq-badge { flex-shrink: 0; white-space: nowrap; margin-left: auto; margin-right: 40px; }
.eq-name-stack { display: flex; flex-direction: column; min-width: 0; }
.eq-no-schedule { flex: 0 0 auto; white-space: nowrap; }
.eq-name-stack .eq-no-schedule {
  align-self: flex-start; margin-top: 2px; padding: 1px 6px; gap: 0;
  font-size: 10px; line-height: 1.2; letter-spacing: 0;
}
.eq-name-stack .eq-no-schedule::before { display: none; }
.eq-no-schedule-notice { margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--warning); border-radius: 8px; background: var(--warning-faded); color: var(--text); line-height: 1.4; }
.eq-tel { white-space: nowrap; }

@media (min-width: 701px) {
  #staff-table th,
  #staff-table td { padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 700px) {
  .eq-root { padding: 12px; }
  .eq-desk { display: none; }
  .eq-mob { display: inline; }
  .eq-hide { display: none; }
  #staff-table { min-width: 0; }
  #staff-table th { font-size: 10px; letter-spacing: 0; }
  #staff-table td { font-size: 13px; }
  #staff-table th, #staff-table td { padding-left: 4px; padding-right: 4px; }
  #staff-table tr.er { height: 52px; }
  #staff-table tr.er td { padding-top: 8px; padding-bottom: 8px; }
  #staff-table .badge { gap: 0; padding: 2px 6px; letter-spacing: 0; font-size: 10px; }
  #staff-table .badge::before { display: none; }
  #staff-table td.er-name { width: 100%; max-width: 0; }
  #staff-table td.er-name > span { min-width: 0; max-width: 100%; }
  #staff-table .eq-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #staff-table .vis-toggle, #staff-table .auto-toggle { min-width: 44px; min-height: 44px; }
  .eq-grid { grid-template-columns: 1fr; }
  .eq-grid .col-span-2 { grid-column: auto; }
  .eq-grid input:not([type=checkbox]):not([type=color]), .eq-grid select { width: 100%; }
  .eq-form #dn, .eq-form #phone, .eq-form #pass, .eq-form #email, .eq-form #role, .eq-form #unit,
  .eq-form #crole, .eq-form #pct, .eq-form #ok, .eq-form #close { min-height: 44px; }
  .eq-head { flex-wrap: wrap; row-gap: 0; padding-right: 40px; }
  .eq-col { flex: 1 1 calc(100% - 68px); }
  .eq-badge { flex: 0 0 auto; width: max-content; margin-left: 0; margin-right: 0; }
  .eq-form input[type=color] { flex: 0 0 auto; width: 64px; }
}
