/* ===========================================================================
   dshpoint-embed.css  -  GERADO AUTOMATICAMENTE. NAO EDITE A MAO.
   ---------------------------------------------------------------------------
   Gerador: tools/escopar_css_dshpoint.php
   Para atualizar: php tools/escopar_css_dshpoint.php

   Todo seletor daqui vale APENAS dentro de `.dshp-embed`, que e' o container
   onde as telas do S-Point sao embutidas no shell do emissor. Fora dele, o
   design system do emissor (assets/css/tokens.css) fica intacto.

   Isto e' o que permite os dois design systems conviverem: eles colidem em 45
   seletores (32 `sp-*`, mais :root, *, html e body), e sem o escopo o CSS do
   S-Point repintaria o shell inteiro do ERP.

   NAO HA' EXCECAO PARA MODAL. As duas telas que anexam modal em
   `document.body` (ADMIN, DBA) foram corrigidas para anexar no container
   quando ele existe: assim o modal entra no escopo pelo caminho normal. Uma
   variante de portao (`body > .wp-modal-overlay`) NAO serve: `.wp-modal*`
   tambem e' do emissor (`assets/css/tokens.css`), e a variante repintaria os
   modais do ERP.

   O CSS original continua em dshpoint/css/tokens.css, para o painel rodar
   sozinho quando aberto fora do emissor.

   Os blocos <style> das views com PHP dentro NAO entram aqui (nao da' para
   escopar em build): eles sao escopados no render, por dshpEscoparBlocosStyle().
   =========================================================================== */
/* ------------------------------------------------------------------ */
/* fonte: dshpoint/css/tokens.css */
/* ------------------------------------------------------------------ */
.dshp-embed *,.dshp-embed *::before,.dshp-embed *::after{margin:0;padding:0;box-sizing:border-box}

.dshp-embed{
  /* CORES PRIMÁRIAS - Azul Corporativo (Restrained) */
  --clr-primary:#2563eb;
  --clr-primary-hover:#1d4ed8;
  --clr-primary-active:#1e40af;
  --clr-primary-light:#dbeafe;
  --clr-primary-subtle:#eff6ff;
  --clr-primary-ring:rgba(37,99,235,.15);

  /* CORES SEMÂNTICAS */
  --clr-success:#059669;
  --clr-success-light:#d1fae5;
  --clr-success-subtle:#ecfdf5;
  --clr-warning:#d97706;
  --clr-warning-light:#fef3c7;
  --clr-warning-subtle:#fffbeb;
  --clr-danger:#dc2626;
  --clr-danger-light:#fee2e2;
  --clr-danger-subtle:#fef2f2;

  /* SUPERFÍCIES */
  --clr-bg:#f8fafc;
  --clr-surface:#ffffff;
  --clr-surface-hover:#f8fafc;
  --clr-surface-active:#f1f5f9;
  --clr-surface-dim:#f1f5f9;

  /* BORDAS */
  --clr-border:#e2e8f0;
  --clr-border-hover:#cbd5e1;
  --clr-border-focus:#2563eb;
  --clr-divider:#f1f5f9;

  /* TEXTOS */
  --clr-text:#0f172a;
  --clr-text-secondary:#475569;
  --clr-text-muted:#94a3b8;
  --clr-text-inverse:#ffffff;

  /* SIDEBAR */
  --clr-sidebar:#0f172a;
  --clr-sidebar-hover:rgba(255,255,255,.08);
  --clr-sidebar-active:rgba(37,99,235,.2);
  --clr-sidebar-text:#94a3b8;
  --clr-sidebar-text-active:#f1f5f9;
  --clr-sidebar-border:rgba(255,255,255,.06);

  /* COMPATIBILIDADE */
  --clr-ink:#0f172a;
  --clr-ink-faint:#94a3b8;
  --clr-sidebar-bg:#0f172a;
  --clr-surface-muted:#e2e8f0;

  /* TIPOGRAFIA - Outfit (conforme DESIGN.md) */
  --font-sans:'Outfit',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,monospace;

  /* ESCALA DE FONTES (1.125 ratio) */
  --text-xs:0.75rem;
  --text-sm:0.875rem;
  --text-base:1rem;
  --text-lg:1.125rem;
  --text-xl:1.25rem;
  --text-2xl:1.5rem;
  --text-3xl:1.75rem;

  /* PESOS */
  --font-normal:400;
  --font-medium:500;
  --font-semibold:600;
  --font-bold:700;

  /* RADIUS */
  --radius-sm:6px;
  --radius-md:8px;
  --radius-lg:12px;
  --radius-xl:16px;

  /* COMPATIBILIDADE */
  --r-xs:4px;
  --r-sm:6px;
  --r-md:8px;
  --radius-md:8px;
  --radius-xl:16px;
  --radius-full:9999px;

  /* SOMBRAS */
  --shadow-xs:0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --shadow-md:0 4px 6px -1px rgba(0,0,0,.07),0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg:0 10px 15px -3px rgba(0,0,0,.08),0 4px 6px -4px rgba(0,0,0,.04);

  /* COMPATIBILIDADE */
  --sh-xs:0 1px 2px rgba(0,0,0,.04);
  --sh-sm:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);

  /* TRANSIÇÕES */
  --ease:cubic-bezier(.16,1,.3,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --dur-fast:150ms;
  --dur-normal:200ms;
  --dur:200ms;
  --duration-fast:150ms;

  /* Z-INDEX SCALE */
  --z-dropdown:1000;
  --z-sticky:1020;
  --z-sidebar:1030;
  --z-modal-backdrop:1040;
  --z-modal:1050;
}

/* ============================================================
   BASE
   ============================================================ */
.dshp-embed{
  font-family:var(--font-sans);
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
.dshp-embed{color:var(--clr-text);background:var(--clr-bg);line-height:1.6;font-size:var(--text-base)}

/* ============================================================
   LAYOUT
   ============================================================ */
.dshp-embed .sp-app{display:flex;height:100vh;overflow:hidden;background:var(--clr-bg)}

.dshp-embed .sp-sidebar{
  /* ESCONDIDA desde 28/10/2026. O menu do emissor (arvore DshPointRH) ja'
     lista as 11 telas do DshPoint - Colaboradores, Cargos, Hierarquia, Ponto,
     Monitoramento, Historico, Jornada, Eventos CLT, Folha, BPO e Indicadores.
     Manter a sidebar aqui era um SEGUNDO menu para a mesma coisa, dentro da
     tela: o usuario via a arvore a esquerda e outra arvore logo ao lado.
     Os links `?tab=` da sidebar continuam sendo traduzidos para rota do SPA
     (`dshpoint_embed.js`), entao nada quebra se ela voltar a aparecer. */
  display:none;
}

.dshp-embed .sp-main{
  flex:1;
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  background:var(--clr-bg);
}

.dshp-embed .sp-header{
  height:56px;
  flex-shrink:0;
  background:var(--clr-surface);
  border-bottom:1px solid var(--clr-border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 24px;
  z-index:var(--z-sticky);
}

.dshp-embed .sp-content{
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  padding:24px;
  scroll-behavior:smooth;
}

/* SIDEBAR */
.dshp-embed .sp-sidebar-brand{
  padding:20px;
  border-bottom:1px solid var(--clr-sidebar-border);
}

.dshp-embed .sp-sidebar-brand h1{
  font-size:var(--text-lg);
  font-weight:var(--font-bold);
  color:var(--clr-text-inverse);
  letter-spacing:-.02em;
}

.dshp-embed .sp-sidebar-brand span{
  font-size:var(--text-xs);
  font-weight:var(--font-semibold);
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.dshp-embed .sp-sidebar-nav{
  flex:1;
  overflow-y:auto;
  padding:12px 10px;
}

.dshp-embed .sp-sidebar-section{
  margin-bottom:8px;
}

.dshp-embed .sp-sidebar-section-label{
  font-size:0.625rem;
  font-weight:var(--font-semibold);
  color:#475569;
  text-transform:uppercase;
  letter-spacing:.12em;
  padding:8px 12px 6px;
  margin-bottom:4px;
}

.dshp-embed .sp-nav-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  border-radius:var(--radius-md);
  color:var(--clr-sidebar-text);
  font-size:var(--text-sm);
  font-weight:var(--font-medium);
  text-decoration:none;
  cursor:pointer;
  transition:all var(--dur-fast) var(--ease);
  user-select:none;
  margin-bottom:2px;
}

.dshp-embed .sp-nav-item:hover{
  background:var(--clr-sidebar-hover);
  color:var(--clr-sidebar-text-active);
}

.dshp-embed .sp-nav-item.active-tab{
  background:var(--clr-sidebar-active);
  color:var(--clr-sidebar-text-active);
  font-weight:var(--font-semibold);
}

.dshp-embed .sp-nav-item svg{
  width:18px;
  height:18px;
  opacity:.6;
  flex-shrink:0;
}

.dshp-embed .sp-nav-item.active-tab svg,.dshp-embed .sp-nav-item:hover svg{
  opacity:1;
}

.dshp-embed .sp-sidebar-footer{
  padding:12px 10px;
  border-top:1px solid var(--clr-sidebar-border);
}

/* ============================================================
   CARDS
   ============================================================ */
.dshp-embed .sp-card{
  background:var(--clr-surface);
  border:1px solid var(--clr-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
  transition:all var(--dur-normal) var(--ease);
}

.dshp-embed .sp-card:hover{
  box-shadow:var(--shadow-md);
  border-color:var(--clr-border-hover);
}

.dshp-embed .sp-stat{
  background:var(--clr-surface);
  border:1px solid var(--clr-border);
  border-radius:var(--radius-lg);
  padding:20px;
  box-shadow:var(--shadow-sm);
}

.dshp-embed .sp-stat-label{
  font-size:var(--text-xs);
  font-weight:var(--font-semibold);
  color:var(--clr-text-secondary);
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:12px;
}

.dshp-embed .sp-stat-value{
  font-size:var(--text-3xl);
  font-weight:var(--font-bold);
  color:var(--clr-text);
  letter-spacing:-.02em;
  line-height:1;
}

.dshp-embed .sp-stat-sub{
  font-size:var(--text-sm);
  font-weight:var(--font-medium);
  color:var(--clr-text-muted);
  margin-top:8px;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.dshp-embed .sp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 20px;
  border-radius:var(--radius-md);
  font-size:var(--text-sm);
  font-weight:var(--font-semibold);
  letter-spacing:.01em;
  cursor:pointer;
  border:none;
  outline:none;
  transition:all var(--dur-fast) var(--ease);
  text-decoration:none;
  white-space:nowrap;
  line-height:1;
}

.dshp-embed .sp-btn:active{
  transform:scale(.97);
}

.dshp-embed .sp-btn svg{
  width:16px;
  height:16px;
}

.dshp-embed .sp-btn-primary{
  background:var(--clr-primary);
  color:var(--clr-text-inverse);
}

.dshp-embed .sp-btn-primary:hover{
  background:var(--clr-primary-hover);
}

.dshp-embed .sp-btn-secondary{
  background:var(--clr-surface);
  color:var(--clr-text-secondary);
  border:1px solid var(--clr-border);
}

.dshp-embed .sp-btn-secondary:hover{
  background:var(--clr-surface-hover);
  color:var(--clr-text);
  border-color:var(--clr-border-hover);
}

.dshp-embed .sp-btn-ghost{
  background:transparent;
  color:var(--clr-text-secondary);
}

.dshp-embed .sp-btn-ghost:hover{
  background:var(--clr-surface-dim);
  color:var(--clr-text);
}

.dshp-embed .sp-btn-danger{
  background:var(--clr-danger);
  color:var(--clr-text-inverse);
}

.dshp-embed .sp-btn-danger:hover{
  background:#b91c1c;
}

.dshp-embed .sp-btn-success{
  background:var(--clr-success);
  color:var(--clr-text-inverse);
}

.dshp-embed .sp-btn-success:hover{
  background:#047857;
}

.dshp-embed .sp-btn-sm{
  padding:6px 12px;
  font-size:var(--text-xs);
  border-radius:var(--radius-sm);
}

/* ============================================================
   BADGES
   ============================================================ */
.dshp-embed .sp-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:var(--radius-full);
  font-size:0.625rem;
  font-weight:var(--font-semibold);
  letter-spacing:.03em;
  line-height:1;
}

.dshp-embed .sp-badge-primary{
  background:var(--clr-primary-light);
  color:var(--clr-primary);
}

.dshp-embed .sp-badge-success{
  background:var(--clr-success-light);
  color:var(--clr-success);
}

.dshp-embed .sp-badge-warning{
  background:var(--clr-warning-light);
  color:var(--clr-warning);
}

.dshp-embed .sp-badge-danger{
  background:var(--clr-danger-light);
  color:var(--clr-danger);
}

/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.dshp-embed .sp-label{
  display:block;
  font-size:var(--text-xs);
  font-weight:var(--font-semibold);
  color:var(--clr-text-secondary);
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:6px;
}

.dshp-embed .sp-input{
  width:100%;
  padding:10px 14px;
  background:var(--clr-surface);
  border:1px solid var(--clr-border);
  border-radius:var(--radius-md);
  font-size:var(--text-sm);
  font-weight:var(--font-medium);
  color:var(--clr-text);
  outline:none;
  transition:all var(--dur-fast) var(--ease);
  font-family:var(--font-sans);
}

.dshp-embed .sp-input:focus{
  border-color:var(--clr-border-focus);
  box-shadow:0 0 0 3px var(--clr-primary-ring);
}

.dshp-embed .sp-input::placeholder{
  color:var(--clr-text-muted);
  font-weight:var(--font-normal);
}

.dshp-embed .sp-input:hover:not(:focus){
  border-color:var(--clr-border-hover);
}

.dshp-embed .sp-select{
  width:100%;
  padding:10px 14px;
  background:var(--clr-surface);
  border:1px solid var(--clr-border);
  border-radius:var(--radius-md);
  font-size:var(--text-sm);
  font-weight:var(--font-medium);
  color:var(--clr-text);
  outline:none;
  cursor:pointer;
  transition:all var(--dur-fast) var(--ease);
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  padding-right:36px;
}

.dshp-embed .sp-select:focus{
  border-color:var(--clr-border-focus);
  box-shadow:0 0 0 3px var(--clr-primary-ring);
}

.dshp-embed .sp-textarea{
  width:100%;
  padding:10px 14px;
  background:var(--clr-surface);
  border:1px solid var(--clr-border);
  border-radius:var(--radius-md);
  font-size:var(--text-sm);
  font-weight:var(--font-medium);
  color:var(--clr-text);
  outline:none;
  transition:all var(--dur-fast) var(--ease);
  font-family:var(--font-sans);
  resize:vertical;
  min-height:80px;
}

.dshp-embed .sp-textarea:focus{
  border-color:var(--clr-border-focus);
  box-shadow:0 0 0 3px var(--clr-primary-ring);
}

/* ============================================================
   MODAIS - PADRÃO CONSISTENTE
   ============================================================ */
.dshp-embed .wp-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.5);
  backdrop-filter:blur(4px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:var(--z-modal-backdrop);
  padding:20px;
}

.dshp-embed .wp-modal-overlay.active{
  display:flex;
}

.dshp-embed .wp-modal-overlay[style*="display: none"]{
  display:none!important;
}

.dshp-embed .wp-modal-container{
  background:var(--clr-surface);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-lg);
  width:100%;
  max-width:40rem;
  max-height:85vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--clr-border);
  animation:modal-in .2s var(--ease);
}

@keyframes modal-in{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

.dshp-embed .wp-modal-header{
  padding:16px 24px;
  border-bottom:1px solid var(--clr-divider);
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-shrink:0;
}

.dshp-embed .wp-modal-header h3{
  font-size:var(--text-lg);
  font-weight:var(--font-bold);
  color:var(--clr-text);
  letter-spacing:-.02em;
}

.dshp-embed .wp-modal-body{
  padding:24px;
  overflow-y:auto;
  flex:1;
  min-height:0;
}

.dshp-embed .wp-modal-footer{
  padding:16px 24px;
  border-top:1px solid var(--clr-divider);
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-shrink:0;
}

/* MODAL DE CADASTRO - PADRÃO */
.dshp-embed .modal-cadastro{
  max-width:56rem;
  border-radius:var(--radius-xl);
}

.dshp-embed .modal-cadastro-header{
  padding:20px 24px;
  border-bottom:1px solid var(--clr-divider);
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-shrink:0;
}

.dshp-embed .modal-cadastro-header h3{
  font-size:var(--text-xl);
  font-weight:var(--font-bold);
  color:var(--clr-text);
  letter-spacing:-.02em;
}

.dshp-embed .modal-cadastro-header p{
  font-size:var(--text-xs);
  font-weight:var(--font-medium);
  color:var(--clr-text-muted);
  margin-top:2px;
}

.dshp-embed .modal-cadastro-body{
  padding:24px;
  overflow-y:auto;
  flex:1;
  min-height:0;
}

.dshp-embed .modal-cadastro-footer{
  padding:16px 24px;
  border-top:1px solid var(--clr-divider);
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-shrink:0;
  background:var(--clr-bg);
}

/* SEÇÕES DO FORMULÁRIO */
.dshp-embed .form-section{
  margin-bottom:24px;
}

.dshp-embed .form-section-title{
  font-size:var(--text-sm);
  font-weight:var(--font-bold);
  color:var(--clr-primary);
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:16px;
  padding-bottom:8px;
  border-bottom:1px solid var(--clr-divider);
}

.dshp-embed .form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.dshp-embed .form-grid-3{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:16px;
}

/* Grade do ENDERECO: CEP estreito, logradouro largo, numero estreito, e o
   resto (complemento/bairro/cidade) largo.
   Existia so' como `style="grid-template-columns:1fr 3fr 1fr 3fr"` inline em
   `modules/ORGS/3_FRONTEND/views/orgs_view.php`. **Inline vence @media**: o
   formulario continuava com 4 colunas no celular e os campos saiam com ~70px.
   Virou classe para o @media de 768px poder colapsar. */
.dshp-embed .form-grid-endereco{
  display:grid;
  grid-template-columns:1fr 3fr 1fr 3fr;
  gap:16px;
}

/* OCUPACAO DE COLUNAS. Tambem era inline (`grid-column:span N`).
   `span 2` numa grade de UMA coluna nao e' inofensivo: cria coluna IMPLICITA e
   o campo estoura a largura da tela. Por isso o @media zera os spans. */
.dshp-embed .form-span-2{grid-column:span 2}
.dshp-embed .form-span-3{grid-column:span 3}

.dshp-embed .form-group{
  display:flex;
  flex-direction:column;
}

.dshp-embed .form-group-full{
  grid-column:1/-1;
}

.dshp-embed .form-group label{
  font-size:var(--text-xs);
  font-weight:var(--font-semibold);
  color:var(--clr-text-secondary);
  margin-bottom:6px;
}

.dshp-embed .form-group label .required{
  color:var(--clr-danger);
  margin-left:2px;
}

/* ============================================================
   TABELAS
   ============================================================ */
.dshp-embed .sp-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:var(--text-sm);
}

.dshp-embed .sp-table th{
  padding:12px 16px;
  text-align:left;
  font-size:var(--text-xs);
  font-weight:var(--font-semibold);
  color:var(--clr-text-secondary);
  text-transform:uppercase;
  letter-spacing:.06em;
  border-bottom:2px solid var(--clr-border);
  background:var(--clr-bg);
  position:sticky;
  top:0;
  z-index:1;
}

.dshp-embed .sp-table td{
  padding:12px 16px;
  border-bottom:1px solid var(--clr-divider);
  color:var(--clr-text);
  vertical-align:middle;
}

.dshp-embed .sp-table tbody tr{
  transition:background var(--dur-fast) var(--ease);
}

.dshp-embed .sp-table tbody tr:hover{
  background:var(--clr-surface-hover);
}

/* ============================================================
   PROGRESS
   ============================================================ */
.dshp-embed .sp-progress{
  width:100%;
  height:6px;
  background:var(--clr-divider);
  border-radius:var(--radius-full);
  overflow:hidden;
  margin-top:12px;
}

.dshp-embed .sp-progress-fill{
  height:100%;
  border-radius:var(--radius-full);
  transition:width .4s var(--ease);
  background:var(--clr-primary);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.dshp-embed .sp-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:48px 24px;
  text-align:center;
  color:var(--clr-text-muted);
}

.dshp-embed .sp-empty svg{
  width:48px;
  height:48px;
  margin-bottom:16px;
  opacity:.3;
}

/* ============================================================
   GRIDS
   ============================================================ */
.dshp-embed .sp-grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.dshp-embed .sp-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dshp-embed .sp-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}

@media(max-width:1024px){.dshp-embed .sp-grid-4,.dshp-embed .sp-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.dshp-embed .sp-grid-4,.dshp-embed .sp-grid-3,.dshp-embed .sp-grid-2{grid-template-columns:1fr}}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes sp-fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.dshp-embed .sp-animate-in{animation:sp-fade .2s var(--ease) both}

@media(prefers-reduced-motion:reduce){
  .dshp-embed *,.dshp-embed *::before,.dshp-embed *::after{
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
.dshp-embed ::-webkit-scrollbar{width:6px;height:6px}
.dshp-embed ::-webkit-scrollbar-track{background:transparent}
.dshp-embed ::-webkit-scrollbar-thumb{background:var(--clr-border);border-radius:var(--radius-full)}
.dshp-embed ::-webkit-scrollbar-thumb:hover{background:var(--clr-text-muted)}
.dshp-embed ::selection{background:rgba(37,99,235,.15);color:var(--clr-text)}

/* ============================================================
   OVERLAY MOBILE
   ============================================================ */
.dshp-embed .sp-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.4);
  z-index:calc(var(--z-sidebar) - 1);
  display:none;
}
.dshp-embed .sp-overlay.active{display:block}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:768px){
  .dshp-embed .sp-sidebar{
    position:fixed;
    left:-280px;
    top:0;
    bottom:0;
    width:280px;
    transition:left .3s var(--ease);
    z-index:var(--z-sidebar);
    box-shadow:4px 0 24px rgba(0,0,0,.3);
  }
  .dshp-embed .sp-sidebar.open{left:0}
  .dshp-embed .sp-content{padding:16px}
  .dshp-embed .sp-header{padding:0 16px}
  .dshp-embed .form-grid{grid-template-columns:1fr}
  .dshp-embed .form-grid-3{grid-template-columns:1fr}
  .dshp-embed .form-grid-endereco{grid-template-columns:1fr}
  /* Os spans viram "linha inteira": `span 2`/`span 3` numa grade de 1 coluna
     criaria coluna implicita e o campo vazaria para fora da tela. */
  .dshp-embed .form-span-2,.dshp-embed .form-span-3{grid-column:1/-1}
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.dshp-embed .no-scrollbar::-webkit-scrollbar{display:none}
.dshp-embed .no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}

.dshp-embed .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ============================================================
   MULTI-SELECAO DE EMPRESAS (Pontos de Coleta Autorizados)
   ============================================================ */
/* Um ponto de coleta pode gerenciar o ponto de DUAS empresas isoladas: com o
   `select` unico, o operador tinha de criar dois cadastros para o mesmo
   terminal. Aqui a escolha e' multipla, com "Todas" como caso geral.
   A caixa tem rolagem PROPRIA: a lista de empresas cresce e o formulario nao
   pode crescer junto. Tudo por CLASSE - `style=` inline vence o `@media`. */
.dshp-embed .sp-multi{display:flex;flex-direction:column;gap:2px;max-height:132px;overflow-y:auto;padding:6px;background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--radius-md)}
.dshp-embed .sp-multi-item{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:var(--radius-sm);font-size:var(--text-xs);color:var(--clr-text);cursor:pointer}
.dshp-embed .sp-multi-item:hover{background:var(--clr-surface-dim)}
.dshp-embed .sp-multi-item input{width:15px;height:15px;flex:0 0 auto;cursor:pointer}
.dshp-embed .sp-multi-item.sp-multi-todas{font-weight:var(--font-bold);border-bottom:1px solid var(--clr-divider);margin-bottom:2px;padding-bottom:7px;border-radius:0}
.dshp-embed .sp-multi-item.sp-multi-off{opacity:.45;cursor:not-allowed}
.dshp-embed .sp-multi-item.sp-multi-off input{cursor:not-allowed}

/* ============================================================
   TIPO DE CADASTRO (Empresa x Grupo) + CAMPO COM BOTAO "Buscar"
   ============================================================ */
/* O checkbox de GRUPO fica no TOPO do formulario porque ele DECIDE o que
   aparece abaixo: marcado, os dados de empresa (CNPJ, IE, regime, endereco,
   contato, fiscais) e a Vinculacao saem. Um controle que muda o formulario
   inteiro nao pode morar no meio dele.
   Mesmo desenho do "Sede Oficial (Matriz)": e' o padrao de escolha binaria
   desta tela, e duas linguagens visuais para a mesma coisa confundem.
   Tudo por CLASSE: `style=` inline vence o `@media`. */
.dshp-embed .sp-tipo-cadastro{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--radius-md);cursor:pointer;transition:all var(--dur-fast) var(--ease)}
.dshp-embed .sp-tipo-cadastro:hover{border-color:var(--clr-border-focus)}
.dshp-embed .sp-tipo-cadastro input{width:18px;height:18px;flex:0 0 auto;cursor:pointer}
.dshp-embed .sp-tipo-cadastro span{font-size:var(--text-sm);font-weight:var(--font-bold);color:var(--clr-text)}
.dshp-embed .sp-tipo-cadastro p{font-size:var(--text-xs);color:var(--clr-text-muted);margin-top:2px}
/* Estado MARCADO: o operador precisa ver, sem reler o texto, que o cadastro
   deixou de ser uma empresa. */
.dshp-embed .sp-tipo-cadastro.sp-tipo-cadastro-grupo{border-color:var(--clr-primary);background:var(--clr-primary-light)}
.dshp-embed .sp-tipo-cadastro-dica{font-size:var(--text-xs);color:var(--clr-text-secondary);margin-top:10px;padding:10px 12px;background:var(--clr-primary-light);border-left:3px solid var(--clr-primary);border-radius:var(--radius-sm)}
/* Campo + botao na MESMA linha. O `min-width:0` no input e' obrigatorio:
   sem ele o `flex:1` respeita a largura minima intrinseca do input e o botao
   e' empurrado para fora do cartao. */
.dshp-embed .sp-campo-botao{display:flex;gap:8px;align-items:stretch}
.dshp-embed .sp-campo-botao .sp-input{flex:1 1 auto;min-width:0;text-align:center}
.dshp-embed .sp-campo-botao .sp-btn{flex:0 0 auto;white-space:nowrap}
.dshp-embed .sp-campo-botao .sp-btn:disabled{opacity:.6;cursor:progress}


/* ------------------------------------------------------------------ */
/* fonte: dshpoint/css/embed-ajustes.css */
/* ------------------------------------------------------------------ */
/* ===========================================================================
   dshpoint/css/embed-ajustes.css
   ---------------------------------------------------------------------------
   O que muda quando o painel do S-Point roda DENTRO do shell do emissor
   (modo embutido, ver `dshpoint/database/embed.php`), e nao como pagina
   inteira.

   Sao ajustes de LAYOUT, e so'. Nada de cor, nada de tipografia, nada de
   espacamento de componente: o design system do S-Point continua valendo
   integralmente aqui dentro: e' justamente o que o escopo em `.dshp-embed`
   (`dshpoint/database/css_escopo.php`) garante.

   Este arquivo entra no build por `tools/escopar_css_dshpoint.php` e sai em
   `assets/css/dshpoint-embed.css`. Os seletores que ja' comecam com
   `.dshp-embed` sao reconhecidos como ja' escopados e passam intactos; os
   demais recebem o prefixo do container, como todo o resto.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   O CONTAINER faz o papel que `.sp-app` fazia no `<body>` da pagina inteira
   (`display:flex; height:100vh; overflow:hidden`): coluna de altura cheia, com
   a area de conteudo rolando por dentro.

   A altura NAO pode ser `100vh`: embutido, o topo do shell do emissor (menu +
   barra superior) nao pertence a esta area, e `100vh` empurraria o rodape da
   tela para fora. `assets/js/dshpoint_embed.js` mede o espaco que sobra e
   escreve em `--dshp-altura` (e remede no resize).

   O fallback `auto` existe para o caso sem JS: a tela continua utilizavel, so'
   perde o scroll interno e passa a crescer com o conteudo.

   QUEM E' FILHO DIRETO DAQUI (mudou em 04/10/2026): o `<main class="sp-main">`,
   o MESMO da pagina inteira. Antes o modo embutido nao tinha cabecalho: o
   `<main>` e o `<header class="sp-header">` moravam dentro do guard
   `if (!$embed)` do `painel.php`, entao a versao embutida chegava sem o selo do
   banco, sem o contador de licenca (x/y), sem o botao Guia e sem o usuario
   logado. Agora o guard cobre so' o MENU LATERAL (o shell do emissor ja' tem o
   proprio menu) e a coluna `.sp-main` vem inteira: cabecalho em cima, conteudo
   rolando embaixo. `.dshp-embed .sp-main` ja' existe no CSS gerado, com
   `flex:1` + `min-width:0` + `overflow:hidden`.
   --------------------------------------------------------------------------- */
.dshp-embed{
  display:flex;
  flex-direction:column;
  height:var(--dshp-altura, auto);
  min-height:0;
  overflow:hidden;
  background:var(--clr-bg);
}

/* ---------------------------------------------------------------------------
   `.sp-content` nasceu para rolar DENTRO de `.sp-main` (flex column de altura
   cheia): e e' assim que ele volta a ser usado agora, ja' que o `.sp-main`
   entrou no container. Estas tres declaracoes ficam porque repetem o que o
   design system ja' diz: nao ha' dois donos da regra, e a tela continua correta
   se um dia alguma view montar `.sp-content` solto.

   O `min-height:0` nao e' decorativo: sem ele um flex item nao encolhe abaixo
   do tamanho do proprio conteudo, o `overflow` nunca dispara e o container
   cresce em vez de rolar: ou seja, o scroll interno simplesmente nao existe.

   Manter o scroll AQUI (e nao na pagina do emissor) e' o que preserva o
   comportamento original das telas: `.sp-table th` e' `position:sticky; top:0`
   e gruda no topo do container de rolagem mais proximo. Se a rolagem fosse a da
   pagina, o cabecalho da tabela subiria por cima da barra superior do ERP.
   --------------------------------------------------------------------------- */
.dshp-embed .sp-content{
  flex:1;
  min-height:0;
  overflow-y:auto;
}


/* ------------------------------------------------------------------ */
/* fonte: dshpoint/painel.php (bloco 1) */
/* ------------------------------------------------------------------ */

        .dshp-embed #mobile-toggle{
            display:none;
            position:fixed;
            top:16px;
            left:16px;
            z-index:60;
            width:40px;
            height:40px;
            background:var(--clr-surface);
            border:1px solid var(--clr-border);
            border-radius:var(--radius-md);
            align-items:center;
            justify-content:center;
            box-shadow:var(--shadow-md);
            cursor:pointer;
            color:var(--clr-text);
            transition:all var(--dur-fast) var(--ease);
        }
        .dshp-embed #mobile-toggle:hover{
            background:var(--clr-surface-hover);
            box-shadow:var(--shadow-lg);
        }
        @media(max-width:768px){
            .dshp-embed #mobile-toggle{display:flex}
            .dshp-embed .sp-sidebar{position:fixed;left:-280px;transition:left .3s var(--ease);z-index:1000;box-shadow:4px 0 24px rgba(0,0,0,.3)}
            .dshp-embed .sp-sidebar.open{left:0}
        }
        @keyframes scanline{0%{top:0}100%{top:100%}}
        .dshp-embed .animate-scanline{animation:scanline 2s linear infinite}
        @keyframes orbit{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
        .dshp-embed .animate-orbit{animation:orbit 10s linear infinite}
        .dshp-embed .animate-orbit-reverse{animation:orbit 15s linear reverse infinite}
    

/* ------------------------------------------------------------------ */
/* fonte: dshpoint/painel.php (bloco 2) */
/* ------------------------------------------------------------------ */

.dshp-embed .hidden{ display: none !important; }
@keyframes modal-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.dshp-embed .metricas-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dshp-embed .metricas-kpi{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--radius-lg);padding:14px;text-align:center}
.dshp-embed .metricas-kpi-label{font-size:0.625rem;font-weight:var(--font-semibold);color:var(--clr-text-muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}
.dshp-embed .metricas-kpi-value{font-size:var(--text-xl);font-weight:var(--font-bold);color:var(--clr-text);letter-spacing:-.02em}
.dshp-embed .metricas-section-title{font-size:var(--text-xs);font-weight:var(--font-bold);color:var(--clr-primary);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid var(--clr-divider)}
.dshp-embed .metricas-row{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--clr-divider)}
.dshp-embed .metricas-row:last-child{border-bottom:none}
.dshp-embed .metricas-label{font-size:var(--text-xs);color:var(--clr-text-secondary);font-weight:var(--font-medium)}
.dshp-embed .metricas-valor{font-size:var(--text-xs);color:var(--clr-text);font-weight:var(--font-bold)}
.dshp-embed .score-bar{width:100%;height:8px;background:var(--clr-divider);border-radius:var(--radius-full);overflow:hidden;margin-top:8px}
.dshp-embed .score-bar-fill{height:100%;border-radius:var(--radius-full);transition:width .4s var(--ease)}
@media print{
  .dshp-embed body *{visibility:hidden!important}
  .dshp-embed #modal-metricas{position:fixed!important;left:0!important;top:0!important;width:100%!important;height:100%!important;background:white!important;z-index:999999!important;padding:20px!important;display:flex!important}
  .dshp-embed #modal-metricas *{visibility:visible!important}
  .dshp-embed #modal-metricas .wp-modal-header button{display:none!important}
  .dshp-embed #modal-metricas .wp-modal-container{max-width:100%!important;box-shadow:none!important;border:none!important}
  .dshp-embed #modal-metricas .wp-modal-body{max-height:none!important;overflow:visible!important}
  @page{margin:10mm;size:landscape}
}
@media(max-width:1024px){.dshp-embed .metricas-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.dshp-embed .metricas-grid{grid-template-columns:1fr}}


/* ------------------------------------------------------------------ */
/* fonte: dshpoint/modules/ADMIN/3_FRONTEND/views/admin_view.php (bloco 1) */
/* ------------------------------------------------------------------ */

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.dshp-embed .hidden{ display: none !important; }


/* ------------------------------------------------------------------ */
/* fonte: dshpoint/modules/BPO/3_FRONTEND/views/bpo_view.php (bloco 1) */
/* ------------------------------------------------------------------ */

@media print {
    .dshp-embed body *{ visibility: hidden; }
    .dshp-embed #modal-preview-dossie,.dshp-embed #modal-preview-dossie *{ visibility: visible; }
    .dshp-embed #modal-preview-dossie{ position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block !important; }
    .dshp-embed #preview-content{ padding: 0 !important; background: white !important; }
    .dshp-embed .no-print,.dshp-embed button{ display: none !important; }
    .dshp-embed #preview-content > div{ border: none !important; box-shadow: none !important; max-width: 100% !important; margin: 0 !important; }
}


/* ------------------------------------------------------------------ */
/* fonte: dshpoint/modules/CARGOS/3_FRONTEND/views/cargos_view.php (bloco 1) */
/* ------------------------------------------------------------------ */

        .dshp-embed .sp-card:hover .card-actions{opacity:1!important}
    

/* ------------------------------------------------------------------ */
/* fonte: dshpoint/modules/COLAB/3_FRONTEND/views/colab_view.php (bloco 1) */
/* ------------------------------------------------------------------ */

/* ===========================================================================
   RESPONSIVO DA TELA DE COLABORADORES
   ---------------------------------------------------------------------------
   A GRADE DA LISTA (3 -> 2 -> 1 coluna).

   A regra anterior era `#sub-colab > div:last-child`. Ela NUNCA valeu: o ultimo
   filho direto de `#sub-colab` nao e' a grade, e' o `#modal-master-auth`
   (medido, ordem real: sem id | sem id | modal-colab | modal-permissoes |
   scanner-master | modal-master-auth). Resultado medido em viewport de celular
   (361px): a grade continuava em `repeat(3,...)`, cada cartao saia com 96px e a
   linha ESTOURAVA (`scrollWidth 381` contra `clientWidth 313`): a lista
   aparecia cortada, nao empilhada. As duas regras tambem nao tinham como
   vencer o `style=` inline do proprio div: so' com `!important`, que e' o
   sintoma, nao o conserto. Agora a grade tem id proprio e as colunas sao
   declaradas AQUI: sem `!important`, porque nao ha' inline para vencer.

   `#colab-grade` e' o alvo nos DOIS modos: como pagina inteira e embutida no
   shell do emissor (o escopador prefixa para `.dshp-embed #colab-grade`).
   =========================================================================== */
.dshp-embed #colab-grade{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}
/* O `minmax(0,1fr)` libera a TRILHA para encolher, mas o ITEM de grade tem
   `min-width:auto` e nao desce abaixo do proprio `min-content`. O cartao tem um
   `<p>` com `white-space:nowrap` (o nome da unidade, com reticencias) e o
   `min-content` dele e' o texto inteiro. Medido a 361px: a trilha ficava em 313
   e o cartao em 317 - 4px de estouro dentro da grade. `min-width:0` no filho
   devolve a decisao de largura para a trilha, que e' quem sabe o tamanho. */
.dshp-embed #colab-grade > *{min-width:0}
@media(max-width:1024px){.dshp-embed #colab-grade{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.dshp-embed #colab-grade{grid-template-columns:1fr}}


/* ------------------------------------------------------------------ */
/* fonte: dshpoint/modules/DASHBOARD/3_FRONTEND/views/dash_view.php (bloco 1) */
/* ------------------------------------------------------------------ */

@media(max-width:1024px){
    .dshp-embed .sp-animate-in > div:nth-child(2){grid-template-columns:repeat(2,minmax(0,1fr))!important}
    .dshp-embed .sp-animate-in > div:nth-child(3){grid-template-columns:1fr!important}
}
@media(max-width:640px){
    .dshp-embed .sp-animate-in > div:nth-child(2){grid-template-columns:1fr!important}
}
.dshp-embed .sp-card::-webkit-scrollbar{width:4px}
.dshp-embed .sp-card::-webkit-scrollbar-track{background:transparent}
.dshp-embed .sp-card::-webkit-scrollbar-thumb{background:var(--clr-border);border-radius:var(--radius-full)}


/* ------------------------------------------------------------------ */
/* fonte: dshpoint/modules/DBA/3_FRONTEND/views/dba_view.php (bloco 1) */
/* ------------------------------------------------------------------ */

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }


/* ------------------------------------------------------------------ */
/* fonte: dshpoint/modules/FOLHA/3_FRONTEND/views/folha_view.php (bloco 1) */
/* ------------------------------------------------------------------ */

    .dshp-embed{ --primary: #2563eb; --slate-900: #0f172a; }
    .dshp-embed .no-scrollbar::-webkit-scrollbar{ display: none; }
    .dshp-embed .no-scrollbar{ -ms-overflow-style: none; scrollbar-width: none; }
    
    .dshp-embed .wp-input-group{ display: flex; flex-direction: column; gap: 4px; }
    .dshp-embed .wp-label{ font-size: 8px; font-weight: 900; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; font-style: italic; }
    .dshp-embed .wp-input{ background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 10px; padding: 10px 14px; font-size: 11px; font-weight: 700; color: #1e293b; outline: none; width: 100%; transition: all 0.2s; }
    .dshp-embed .wp-input:focus{ border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.05); }
    
    .dshp-embed .btn-master{ background: var(--primary); color: white; font-weight: 900; text-transform: uppercase; font-size: 10px; padding: 12px; border-radius: 12px; transition: all 0.2s; font-style: italic; border: none; cursor: pointer; text-align: center; }
    .dshp-embed .btn-master:hover{ filter: brightness(1.1); transform: translateY(-1px); }
    
    .dshp-embed .tag-origem{ font-size: 7px; font-weight: 900; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; margin-left: 8px; }
    .dshp-embed .tag-sistema{ background: #fef2f2; color: #ef4444; border: 1px solid #fee2e2; }
    .dshp-embed .tag-auto{ background: #eff6ff; color: #3b82f6; border: 1px solid #dbeafe; }
    .dshp-embed .tag-manual{ background: #f8fafc; color: #94a3b8; border: 1px solid #f1f5f9; }

    .dshp-embed .holerite-box{ border: 2px solid #000; padding: 15px; font-family: 'Courier New', Courier, monospace; color: #000; text-transform: uppercase; background: white; }
    .dshp-embed .holerite-header{ display: flex; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 10px; }
    .dshp-embed .holerite-table{ width: 100%; border-collapse: collapse; margin: 10px 0; }
    .dshp-embed .holerite-table th,.dshp-embed .holerite-table td{ border: 1px solid #000; padding: 4px 8px; font-size: 11px; }
    .dshp-embed .holerite-totals{ display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-top: 10px; }
    .dshp-embed .holerite-totals div{ border: 1px solid #000; padding: 5px; font-weight: bold; text-align: center; }
    .dshp-embed .page-break{ page-break-before: always; margin-top: 30px; border-top: 1px dashed #eee; padding-top: 30px; }


/* ------------------------------------------------------------------ */
/* fonte: dshpoint/modules/HIERARQUIA/3_FRONTEND/views/hierarquia_view.php (bloco 1) */
/* ------------------------------------------------------------------ */

.dshp-embed .tree-node{ position: relative; margin-bottom: 2rem; }
.dshp-embed .tree-node:last-child{ margin-bottom: 0; }
.dshp-embed .node-content{ width: fit-content; min-width: 280px; max-width: 350px; }
.dshp-embed .node-content:hover{ border-color: var(--clr-primary) !important; background: var(--clr-primary-subtle) !important; box-shadow: var(--shadow-md); }
@media print {
    .dshp-embed .sub-view > *:not(.hierarquia-container){ display: none !important; }
    .dshp-embed .hierarquia-container{ border: none !important; box-shadow: none !important; padding: 0 !important; }
    .dshp-embed aside,.dshp-embed header{ display: none !important; }
    .dshp-embed main{ padding: 0 !important; }
}


/* ------------------------------------------------------------------ */
/* fonte: dshpoint/modules/JORNADA/3_FRONTEND/views/jornada_view.php (bloco 1) */
/* ------------------------------------------------------------------ */

        .dshp-embed input[type=number]::-webkit-inner-spin-button,.dshp-embed input[type=number]::-webkit-outer-spin-button{ 
            opacity: 1 !important;
            height: 24px;
            cursor: pointer;
        }
    

/* ------------------------------------------------------------------ */
/* fonte: dshpoint/modules/PONTO/3_FRONTEND/views/monitoramento_view.php (bloco 1) */
/* ------------------------------------------------------------------ */

/* O piso `0` vale nos TRES desenhos (5, 3 e 2 colunas) e no de 1: sem ele o
   `1fr` da media query reintroduz o `minmax(auto,1fr)` e a coluna volta a ser
   empurrada pelo nome. As colunas e a pilha de cards tambem recebem
   `min-width:0` - `min-width:auto` e' o padrao de item de grid e de flex, e e'
   ele que impede o encolhimento. */
.dshp-embed #sub-monitoramento>div:last-child{grid-template-columns:repeat(5,minmax(0,1fr))}
.dshp-embed #sub-monitoramento>div:last-child>div,.dshp-embed #sub-monitoramento>div:last-child>div>div:last-child{min-width:0}
.dshp-embed #sub-monitoramento>div:last-child .sp-card{min-width:0;overflow:hidden}
@media(max-width:1280px){.dshp-embed #sub-monitoramento>div:last-child{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:1024px){.dshp-embed #sub-monitoramento>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){.dshp-embed #sub-monitoramento{padding:16px!important}.dshp-embed #sub-monitoramento>div:last-child{grid-template-columns:minmax(0,1fr)!important}}


/* ------------------------------------------------------------------ */
/* fonte: dshpoint/modules/PONTO/3_FRONTEND/views/ponto_view.php (bloco 1) */
/* ------------------------------------------------------------------ */

@media(max-width:640px){
    .dshp-embed #ponto-container > div > div:last-child{grid-template-columns:1fr!important}
}


/* ------------------------------------------------------------------ */
/* fonte: dshpoint/modules/PONTO/3_FRONTEND/views/ponto_view.php (bloco 3) */
/* ------------------------------------------------------------------ */

    @media print {
        @page { margin: 0; size: auto; }
        .dshp-embed{ background: white !important; margin: 0 !important; padding: 0 !important; }
        .dshp-embed aside,.dshp-embed header,.dshp-embed main > div:not(#ponto-container),.dshp-embed #ponto-container > div:not(#modal-extrato){ display: none !important; }
        .dshp-embed #modal-extrato{ 
            position: absolute !important; inset: 0 !important; 
            display: block !important; background: white !important; 
            z-index: 99999 !important; padding: 0 !important; margin: 0 !important;
            visibility: visible !important;
        }
        .dshp-embed #modal-extrato *{ visibility: visible !important; }
        .dshp-embed .wp-modal-container{ 
            box-shadow: none !important; border: none !important; 
            width: 100% !important; max-width: none !important; 
            max-height: none !important; border-radius: 0 !important;
        }
        .dshp-embed .wp-modal-overlay{ background: white !important; backdrop-filter: none !important; }
        .dshp-embed button,.dshp-embed .wp-modal-footer button{ display: none !important; }
        .dshp-embed .no-scrollbar::-webkit-scrollbar{ display: none; }
        .dshp-embed *{ -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    }


/* ------------------------------------------------------------------ */
/* fonte: dshpoint/modules/PONTO/3_FRONTEND/views/ponto_view.php (bloco 4) */
/* ------------------------------------------------------------------ */

.dshp-embed .no-scrollbar::-webkit-scrollbar{ display: none; }
.dshp-embed .no-scrollbar{ -ms-overflow-style: none; scrollbar-width: none; }
