@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');
/* Safras & Cifras — identidade da área interna do sistema de Gestão de Pessoas (Frappe, rh.safrasecifras.com.br).
   Servido pelo nginx do host (/opt/sc_tema/desk.css) e incluído em todas as páginas por sub_filter.
   Identidade do Ecossistema Safras & Cifras (06/11/2026, orientação da Anselmo: tema/ORIENTACAO_ECOSSISTEMA_20261106.md): verde #1D4742, verde #2D4C39, amarelo #F3A738, azul #15284E; no escuro o botão é #9CC83B. Fonte Plus Jakarta Sans. */

/* Cor principal: botões primários, seleção e destaques em verde-safra (azul fica só para foco e links) */
html:root, html[data-theme="light"] {
  --primary: #1D4742;
  --primary-color: #1D4742;
  --btn-primary: #1D4742;
  --btn-primary-ativo: #2D4C39;
  --dt-primary-color: #1D4742;
  --sc-sidebar-bg: #1D4742;
  --sc-foco: #15284E;
  --sc-sidebar-ink: #FFFFFF;
  --sc-sidebar-muted: rgba(255, 255, 255, .72);
}
html[data-theme="dark"] {
  --primary: #9CC83B;
  --primary-color: #9CC83B;
  --btn-primary: #9CC83B;
  --btn-primary-ativo: #8BB82F;
  --dt-primary-color: #9CC83B;
  --sc-sidebar-bg: #081816;
  --sc-foco: #9CC83B;
  --sc-sidebar-ink: #FFFFFF;
  --sc-sidebar-muted: rgba(255, 255, 255, .68);
}

.btn-primary, .btn.btn-primary { background-color: var(--btn-primary) !important; border-color: var(--btn-primary) !important; color: #fff !important; }
.btn-primary:hover, .btn.btn-primary:hover, .btn-primary:focus-visible,
.btn-primary:active, .btn.btn-primary:active { background-color: var(--btn-primary-ativo) !important; border-color: var(--btn-primary-ativo) !important; color: #fff !important; }
/* 06/11/2026: botão principal passa a #1D4742 (claro) e #9CC83B (escuro), como no portal. Antes: verde médio, decisão do João de 04/11.
   Todos os botões: cantos de 8px e peso 500. O :active acima tira o cinza que o Frappe pinta no botão principal ao apertar. */
.btn { border-radius: 8px; font-weight: 500; }
/* Acabamento do botão principal, como nos botões do macOS: brilho leve no alto e sombra curta. */
.btn-primary, .btn.btn-primary { background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); box-shadow: 0 1px 2px rgba(10, 40, 25, .20), inset 0 0 0 .5px rgba(0, 0, 0, .10); letter-spacing: .01em; }
.btn-primary svg, .btn-primary .icon use { stroke: currentColor; }

/* Menu lateral em verde com a marca */
.body-sidebar {
  background-color: var(--sc-sidebar-bg) !important;
  color: var(--sc-sidebar-ink) !important;
  border-right-color: transparent !important;
  --sidebar-hover-color: rgba(255, 255, 255, .10);
  --sidebar-active-color: rgba(255, 255, 255, .18);
  --sidebar-select-color: rgba(255, 255, 255, .18);
  --sidebar-border-color: rgba(255, 255, 255, .14);
  --text-color: var(--sc-sidebar-ink);
  --text-muted: var(--sc-sidebar-muted);
  --ink-gray-5: var(--sc-sidebar-muted);
  --ink-gray-7: var(--sc-sidebar-ink);
  --ink-gray-8: var(--sc-sidebar-ink);
  --ink-gray-9: var(--sc-sidebar-ink);
}
.body-sidebar a, .body-sidebar button, .body-sidebar span, .body-sidebar div, .body-sidebar .sidebar-item-label { color: inherit; }
.body-sidebar svg { color: inherit; stroke: currentColor; }
.body-sidebar .text-muted, .body-sidebar .text-secondary, .body-sidebar kbd, .body-sidebar small { color: var(--sc-sidebar-muted) !important; }
.body-sidebar .active, .body-sidebar .selected, .body-sidebar [aria-current="page"] {
  background-color: rgba(255, 255, 255, .18) !important;
  box-shadow: inset 3px 0 0 #F3A738;
  color: #fff !important;
}
.body-sidebar a:hover, .body-sidebar button:hover { background-color: rgba(255, 255, 255, .10); }
.body-sidebar input, .body-sidebar .form-control { background: rgba(255, 255, 255, .12) !important; color: #fff !important; border-color: transparent !important; }
.body-sidebar hr, .body-sidebar .divider { border-color: rgba(255, 255, 255, .14) !important; }
/* barra de progresso dos "Primeiros passos" no pé do menu */
.body-sidebar .progress-bar, .body-sidebar [role="progressbar"] > div { background-color: #F3A738 !important; }

/* Fonte da marca */
body, .body-sidebar, .page-container, .modal, .awesomplete, input, select, textarea, button { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }

/* Itens do menu e cabeçalho: texto branco também no tema claro (o Frappe fixa cinza nos links) */
.body-sidebar .standard-sidebar-item .item-anchor, .body-sidebar .standard-sidebar-item .sidebar-item-label, .body-sidebar .standard-sidebar-item .sidebar-item-icon, .body-sidebar .sidebar-header .header-title { color: var(--sc-sidebar-ink) !important; }
.body-sidebar .sidebar-header .header-subtitle { color: var(--sc-sidebar-muted) !important; }
.body-sidebar .standard-sidebar-item.active-sidebar { background-color: rgba(255, 255, 255, .18) !important; box-shadow: inset 3px 0 0 #F3A738; }

/* O painel de notificações abre dentro do menu: volta às cores normais do sistema */
.body-sidebar .dropdown-notifications { color: #383838; --text-color: #383838; --text-muted: #525252; --ink-gray-5: #7c7c7c; --ink-gray-7: #525252; --ink-gray-8: #383838; --ink-gray-9: #171717; --sidebar-hover-color: #f3f3f3; }
html[data-theme="dark"] .body-sidebar .dropdown-notifications { color: #f8f8f8; --text-color: #f8f8f8; --text-muted: #c7c7c7; --ink-gray-5: #808080; --ink-gray-7: #afafaf; --ink-gray-8: #d4d4d4; --ink-gray-9: #f8f8f8; --sidebar-hover-color: rgba(43, 43, 43, 1); }
.body-sidebar .dropdown-notifications .text-muted, .body-sidebar .dropdown-notifications .text-secondary, .body-sidebar .dropdown-notifications small, .body-sidebar .dropdown-notifications kbd { color: var(--text-muted) !important; }
.body-sidebar .dropdown-notifications input, .body-sidebar .dropdown-notifications .form-control { background: var(--control-bg) !important; color: var(--text-color) !important; }
.body-sidebar .dropdown-notifications .active, .body-sidebar .dropdown-notifications .selected { background-color: var(--sidebar-hover-color) !important; box-shadow: none; color: var(--text-color) !important; }
.body-sidebar .dropdown-notifications a:hover, .body-sidebar .dropdown-notifications button:hover { background-color: var(--sidebar-hover-color); }

/* ===== Tela inicial no molde do Hub do Super App (26/10/2026) =====
   Vale só quando o desk.js marca o .desktop-wrapper com "sc-home" (tela inicial, fora do modo de edição).
   Em edição a classe sai e a grade original do Frappe volta, para arrastar e esconder ícones funcionar. */
.desktop-wrapper {
  --sc-bg: #F3F3F3;
  --sc-surface: #FFFFFF;
  --sc-tint: #E8EFEE;
  --sc-ink: #434343;
  --sc-muted: #666666;
  --sc-heading: #1D4742;
  --sc-accent: #1D4742;
  --sc-ring: rgba(29, 71, 66, .10);
  --sc-glow: rgba(29, 71, 66, .07);
  --sc-shadow: 0 1px 2px rgba(14, 36, 33, .06), 0 8px 24px -12px rgba(14, 36, 33, .14);
  --sc-shadow-hover: 0 2px 4px rgba(14, 36, 33, .06), 0 18px 34px -14px rgba(14, 36, 33, .30);
  --sc-ease: cubic-bezier(.22, 1, .36, 1);
}
html[data-theme="dark"] .desktop-wrapper {
  --sc-bg: #0E2421;
  --sc-surface: #163631;
  --sc-tint: #1D443E;
  --sc-ink: #E5ECEB;
  --sc-muted: #A8BCB9;
  --sc-heading: #FFFFFF;
  --sc-accent: #9CC83B;
  --sc-ring: rgba(255, 255, 255, .08);
  --sc-glow: rgba(156, 200, 59, .10);
  --sc-shadow: 0 1px 2px rgba(0, 0, 0, .40);
  --sc-shadow-hover: 0 2px 6px rgba(0, 0, 0, .50), 0 18px 34px -14px rgba(0, 0, 0, .60);
}

.desktop-wrapper:not(.sc-home) .sc-intro,
.desktop-wrapper:not(.sc-home) .sc-help { display: none !important; }

.desktop-wrapper.sc-home {
  min-height: 100vh;
  background: radial-gradient(58rem 26rem at 0% 0%, var(--sc-glow), transparent 65%), var(--sc-bg);
}

/* Introdução à esquerda, ferramentas à direita */
.desktop-wrapper.sc-home > .desktop-container {
  display: grid !important;
  gap: 2rem;
  align-items: start;
  justify-content: stretch !important;
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2rem) clamp(3rem, 8vw, 6rem) !important;
}
@media (min-width: 56rem) {
  .desktop-wrapper.sc-home > .desktop-container {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
  }
  .desktop-wrapper.sc-home .sc-intro { position: sticky; top: 7rem; }
}

.sc-intro .sc-eyebrow { font-size: .875rem; font-weight: 500; color: var(--sc-muted); margin-bottom: .5rem; }
.sc-intro h1 {
  margin: 0;
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--sc-heading);
  text-wrap: balance;
}
.sc-intro p { margin: .75rem 0 0; font-size: 1rem; color: var(--sc-muted); max-width: 30ch; text-wrap: pretty; }
.sc-help { margin: 1.25rem 0 0; padding-inline: .25rem; font-size: .8125rem; color: var(--sc-muted); }

/* Lista de cartões no lugar da grade */
.desktop-wrapper.sc-home > .desktop-container > .icons-container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: none !important;
}
.desktop-wrapper.sc-home > .desktop-container > .icons-container > .icons {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  gap: .75rem !important;
  justify-items: stretch !important;
}
.desktop-wrapper.sc-home .icons > .desktop-icon {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1rem !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 4.5rem;
  margin: 0 !important;
  padding: 1.125rem 1.25rem 1.125rem 1.125rem !important;
  color: var(--sc-ink) !important;
  text-decoration: none !important;
  background: var(--sc-surface) !important;
  border: 0 !important;
  border-radius: 1.125rem !important;
  box-shadow: var(--sc-shadow), 0 0 0 1px var(--sc-ring) !important;
  transition: transform .25s var(--sc-ease), box-shadow .25s var(--sc-ease);
  -webkit-tap-highlight-color: transparent;
  animation: sc-rise .55s var(--sc-ease) backwards;
}
.desktop-wrapper.sc-home .icons > .desktop-icon:nth-child(2) { animation-delay: .04s; }
.desktop-wrapper.sc-home .icons > .desktop-icon:nth-child(3) { animation-delay: .08s; }
.desktop-wrapper.sc-home .icons > .desktop-icon:nth-child(4) { animation-delay: .12s; }
.desktop-wrapper.sc-home .icons > .desktop-icon:nth-child(5) { animation-delay: .16s; }
.desktop-wrapper.sc-home .icons > .desktop-icon:nth-child(n+6) { animation-delay: .2s; }

/* Ícone num quadrado arredondado */
.desktop-wrapper.sc-home .icons > .desktop-icon > .icon-container {
  flex: none;
  width: 3rem !important;
  height: 3rem !important;
  min-width: 3rem !important;
  min-height: 3rem !important;
  margin: 0 !important;
  padding: .375rem !important;
  border-radius: .875rem !important;
  background: var(--sc-tint) !important;
  transform: none !important;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.desktop-wrapper.sc-home .icons > .desktop-icon > .icon-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* Nome completo e descrição */
.desktop-wrapper.sc-home .icons > .desktop-icon .icon-caption {
  display: block !important;
  flex: 1;
  min-width: 0;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  text-align: left !important;
}
.desktop-wrapper.sc-home .icons > .desktop-icon .icon-title {
  display: block !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: -.01em;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  color: var(--sc-ink) !important;
}
.desktop-wrapper.sc-home .icons > .desktop-icon .sc-desc {
  display: block;
  margin-top: .125rem;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--sc-muted);
  text-wrap: pretty;
}

/* Seta à direita */
.desktop-wrapper.sc-home .icons > .desktop-icon::after {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  margin-right: .25rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  color: var(--sc-muted);
  transform: rotate(45deg);
  transition: transform .25s var(--sc-ease), color .25s var(--sc-ease);
}

/* O botão de esconder só faz sentido editando */
.desktop-wrapper.sc-home .icons > .desktop-icon .hide-button { display: none !important; }

/* Resposta ao toque, ao mouse e ao teclado */
@media (hover: hover) {
  .desktop-wrapper.sc-home .icons > .desktop-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--sc-shadow-hover), 0 0 0 1px rgba(0, 65, 43, .22) !important;
  }
  .desktop-wrapper.sc-home .icons > .desktop-icon:hover::after {
    transform: translateX(4px) rotate(45deg);
    color: var(--sc-accent);
  }
}
.desktop-wrapper.sc-home .icons > .desktop-icon:active {
  transform: scale(.985);
  transition-duration: .1s;
}
.desktop-wrapper.sc-home .icons > .desktop-icon:focus-visible {
  outline: 3px solid var(--sc-foco, #15284E);
  outline-offset: 3px;
}

@keyframes sc-rise { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  .desktop-wrapper.sc-home .icons > .desktop-icon { animation: none !important; transition-duration: .01ms !important; }
  .desktop-wrapper.sc-home .icons > .desktop-icon:hover,
  .desktop-wrapper.sc-home .icons > .desktop-icon:active { transform: none !important; }
  .desktop-wrapper.sc-home .icons > .desktop-icon:hover::after { transform: rotate(45deg) !important; }
}

/* 28/10/2026: área interna sem menu lateral (pendências em tema/pendencias-sem-menu-lateral.md).
   Só vale com html.sc-sem-lateral, que o desk.js liga quando o topo novo (casinha, tema e notificações) está na tela.
   Os itens do menu lateral passam para o menu "…" de cada página. */
html.sc-sem-lateral .body-sidebar-container,
html.sc-sem-lateral .page-head .sidebar-toggle-btn { display: none !important; }
html.sc-sem-lateral .page-head .navbar-breadcrumbs li:not(:last-child) { display: none !important; }
html.sc-sem-lateral.sc-espaco .page-head .navbar-breadcrumbs { display: none !important; }
/* "…" dos espaços (Editar, Novo, Configurações) fica escondido: desk.js marca o botão com .sc-oculto. */
.sc-oculto { display: none !important; }
/* 25/11/2026: ícones mais juntos (alvo de 28 px, o mínimo do desktop) e sem folga antes da margem direita. */
.sc-topo { display: flex; align-items: center; gap: 0; margin-right: 0; }
.sc-topo .sc-tb { width: 28px; }
/* A seta de voltar e a da lista de ferramentas ficam no título do bloco (desk.js, CSS_TITULO), não aqui. */
.sc-pop-item.sc-atual .sc-ponto { background: var(--sc-foco, #15284E); }
html[data-theme="dark"] .sc-pop-item.sc-atual .sc-ponto { background: #9CC83B; }
.sc-pop-item.sc-atual .sc-pop-abrir { cursor: default; }
html:not(.sc-sem-lateral) .sc-topo { display: none; }
.sc-tb { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text-color); cursor: pointer; text-decoration: none; }
.sc-tb svg { display: block; }
@media (hover: hover) { .sc-tb:hover { background: rgba(127, 127, 127, .12); color: var(--text-color); text-decoration: none; } }
.sc-tb:active { background: rgba(127, 127, 127, .24); }
.sc-tb:focus-visible { outline: 2px solid var(--sc-foco, #15284E); outline-offset: 2px; }
.sc-badge { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #C8102E; color: #FFFFFF; font: 600 10px/16px 'Plus Jakarta Sans', system-ui, sans-serif; text-align: center; }
.sc-badge[hidden] { display: none; }
.sc-tb[aria-expanded="true"] { background: rgba(127, 127, 127, .18); }

/* Painel suspenso do topo (notificações e histórico) */
.sc-pop { position: fixed; z-index: 1060; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 560px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-color); border-radius: 12px; background: var(--card-bg, var(--bg-color, #FFFFFF)); color: var(--text-color); box-shadow: 0 16px 40px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .08); animation: sc-pop-in .18s ease-out; }
.sc-pop:focus { outline: none; }
@keyframes sc-pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .sc-pop { animation: none; } }
.sc-pop-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 8px; border-bottom: 1px solid var(--border-color); }
.sc-pop-cab h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.sc-pop-link { padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--sc-foco, #15284E); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
html[data-theme="dark"] .sc-pop-link { color: #9CC83B; }
@media (hover: hover) { .sc-pop-link:hover { background: rgba(0, 98, 163, .08); } }
.sc-pop-link:focus-visible, .sc-pop-desfazer:focus-visible, .sc-pop-abrir:focus-visible, .sc-pop-pe:focus-visible { outline: 2px solid var(--sc-foco, #15284E); outline-offset: 2px; }
.sc-pop-corpo { overflow-y: auto; overscroll-behavior: contain; }
.sc-pop-vazio, .sc-pop-nota { margin: 0; padding: 20px 16px; font-size: 13px; color: var(--text-muted); text-align: center; }
.sc-pop-nota { padding: 10px 14px; text-align: left; background: rgba(180, 83, 9, .08); color: #B45309; }
html[data-theme="dark"] .sc-pop-nota { color: #F3A738; }
.sc-pop-lista { list-style: none; margin: 0; padding: 4px 0; }
.sc-pop-item { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; }
.sc-pop-item + .sc-pop-item { border-top: 1px solid var(--border-color); }
.sc-pop-abrir { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
@media (hover: hover) { .sc-pop-abrir:hover { background: rgba(127, 127, 127, .06); } }
.sc-pop-abrir:active { background: rgba(127, 127, 127, .12); }
.sc-ponto { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: transparent; }
.sc-nao-lida .sc-ponto { background: var(--sc-foco, #15284E); }
.sc-pop-txt { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.sc-pop-t { font-size: 13px; font-weight: 600; line-height: 1.35; }
.sc-nao-lida .sc-pop-t { font-weight: 700; }
.sc-pop-d { font-size: 12px; line-height: 1.4; color: var(--text-color); overflow-wrap: anywhere; }
.sc-pop-s { font-size: 12px; color: var(--text-muted); }
.sc-pop-desfazer { position: relative; flex: none; align-self: center; min-height: 28px; padding: 4px 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg, transparent); color: var(--text-color); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.sc-pop-desfazer:active { background: rgba(127, 127, 127, .18); }
.sc-pop-desfazer[disabled] { opacity: .6; cursor: default; }
.sc-pop-pe { display: block; padding: 10px 14px; border-top: 1px solid var(--border-color); font-size: 13px; font-weight: 600; text-align: center; color: var(--sc-foco, #15284E); text-decoration: none; }
html[data-theme="dark"] .sc-pop-pe { color: #9CC83B; }

/* ===== Tema do Ecossistema (06/11/2026): mesmos valores do portal, claro e escuro =====
   Os nomes das variáveis variam conforme a versão do Frappe (aqui v16): conferir na tela, nos dois temas. */
html:root, html[data-theme="light"] {
  --bg-color: #FFFFFF; --fg-color: #FFFFFF; --card-bg: #FFFFFF; --control-bg: #F3F3F3;
  --text-color: #434343; --heading-color: #1D4742; --text-muted: #666666;
}
html[data-theme="dark"] {
  --bg-color: #0E2421; --fg-color: #163631; --card-bg: #163631; --control-bg: #081816;
  --text-color: #E5ECEB; --heading-color: #FFFFFF; --text-muted: #A8BCB9;
}
/* escuro: botão principal #9CC83B com texto #14302B (contraste) */
html[data-theme="dark"] .btn-primary, html[data-theme="dark"] .btn.btn-primary,
html[data-theme="dark"] .btn-primary:hover, html[data-theme="dark"] .btn.btn-primary:hover,
html[data-theme="dark"] .btn-primary:active, html[data-theme="dark"] .btn.btn-primary:active { color: #14302B !important; }
/* o gestor não alterna o tema sozinho: o botão da lua só aparece para admin (desk.js liga sc-admin) */
html:not(.sc-admin) .sc-tema { display: none !important; }

/* 17/11/2026, João: nos espaços (Mesa etc.), a área de trabalho ocupa a tela toda, com margem proporcional à largura.
   Antes o Frappe travava a largura (container fixo) e, em monitor maior, só a margem crescia. */
html.sc-sem-lateral.sc-espaco .page-container .container,
html.sc-sem-lateral.sc-espaco .navbar > .container {
  width: 100% !important;
  max-width: none !important;
  padding-left: clamp(16px, 2.5vw, 48px) !important;
  padding-right: clamp(16px, 2.5vw, 48px) !important;
}

/* 26/11/2026, João: nos espaços, os ícones do topo encostam na margem direita (16 px), como numa barra de app.
   A folga vinha da largura fixa do Frappe e dos recuos da coluna de botões da página (vazia nos espaços). */
html.sc-sem-lateral.sc-espaco .page-head .container { width: 100% !important; max-width: none !important; padding-right: 16px !important; }
html.sc-sem-lateral.sc-espaco .page-head .page-head-content,
html.sc-sem-lateral.sc-espaco .page-head .standard-items-section,
html.sc-sem-lateral.sc-espaco .page-head .standard-items-section > .page-actions { margin-right: 0 !important; padding-right: 0 !important; }
html.sc-sem-lateral.sc-espaco .page-head .sc-topo { order: 2; margin-left: 8px; }

/* 26/11/2026: lista das ferramentas (seta ao lado do título): janela pequena, sem cabeçalho, uma linha por ferramenta. */
/* 27/11/2026 (desenho do João): pasta. A aba (o botão) fica no canto de cima à direita e a janela desce dela, sem canto
   arredondado embaixo da aba; uma curva liga o lado esquerdo da aba à borda de cima da janela. */
.sc-pop.sc-pop-mini { width: 260px; max-height: min(60vh, 420px); border-radius: 12px 0 12px 12px; overflow: visible; animation-name: sc-pop-fade; }
.sc-pop.sc-pop-mini.sc-pop-mini-solta { border-top-right-radius: 12px; }
@keyframes sc-pop-fade { from { opacity: 0; } }
.sc-pop-mini .sc-pop-corpo { position: relative; border-radius: inherit; }
.sc-pop-aba { position: absolute; top: calc(-1 * var(--sc-aba-a, 28px)); left: var(--sc-aba-x, 0); z-index: 1; display: grid; place-items: center; width: var(--sc-aba-l, 28px); height: var(--sc-aba-a, 28px); padding: 0; border: 1px solid var(--border-color); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--card-bg, var(--bg-color, #FFFFFF)); color: var(--sc-aba-cor, inherit); cursor: pointer; }
.sc-pop-aba svg { display: block; transform: rotate(180deg); }
.sc-pop-aba::after { content: ""; position: absolute; left: -1px; bottom: 0; width: 1px; height: 8px; background: var(--card-bg, var(--bg-color, #FFFFFF)); }
.sc-pop-mini-solta .sc-pop-aba::before, .sc-pop-mini-solta .sc-pop-aba::after { display: none; }
.sc-pop-aba::before { content: ""; position: absolute; left: -8px; bottom: 0; width: 8px; height: 8px; border: 0 solid var(--border-color); border-right-width: 1px; border-bottom-width: 1px; border-bottom-right-radius: 8px; box-shadow: 4px 4px 0 4px var(--card-bg, var(--bg-color, #FFFFFF)); }
.sc-pop-aba:focus-visible { outline: 2px solid var(--sc-foco, #15284E); outline-offset: 2px; }
@media (hover: hover) { .sc-pop-aba:hover { background: var(--card-bg, var(--bg-color, #FFFFFF)); } }
.sc-pop-mini .sc-pop-item .sc-ponto, .sc-pop-mini .sc-pop-item.sc-atual .sc-ponto { width: 2px; height: 16px; border-radius: 2px; background: var(--sc-cor, var(--border-color)); }
html[data-theme="dark"] .sc-pop-mini .sc-pop-item.sc-atual .sc-ponto { background: var(--sc-cor, #9CC83B); }
.sc-pop-mini .sc-pop-item.sc-atual { background: rgba(127, 127, 127, .08); }
.sc-pop-mini .sc-pop-item.sc-atual .sc-pop-t { font-weight: 600; }
.sc-pop-mini .sc-pop-cab { display: none; }
.sc-pop-mini .sc-pop-lista { padding: 4px; }
.sc-pop-mini .sc-pop-item { align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; }
.sc-pop-mini .sc-pop-item + .sc-pop-item { border-top: 0; }
.sc-pop-mini .sc-pop-abrir { border-radius: 6px; }
.sc-pop-mini .sc-ponto { width: 6px; height: 6px; margin-top: 0; }
.sc-pop-mini .sc-pop-t { font-weight: 500; }
.sc-pop-mini .sc-pop-s:empty { display: none; }

/* 27/11/2026: sem layout pessoal na tela inicial (a lista de ferramentas vem só das permissões). */
.desktop-edit, .desktop-wrapper .add-new-icon { display: none !important; }
