/* Calendarq · Legado: topos das seções (21/10). Dono: a Fundação; as frentes não editam (sobrescrevem em css/telas/). */
/* ==========================================================================
   TOPO DAS SEÇÕES na identidade do Painel (George, 21/10). Só no escritório.
   Usa as peças do Painel (.pn-*) e acrescenta as de cada seção.
   ========================================================================== */
.pn-top.is-section { padding-top: 18px; }
.pn-top.is-section .pn-sheet { padding-bottom: 26px; }
.pn-top.is-section .section-nav { margin: 24px 0 0; padding: 0; }
.pn-top.is-section .pn-docs { margin-top: 18px; }
.pn-top.is-section .pn-docs .hero-docs { margin-top: 0; }
.pn-it[disabled] { cursor: default; }
.pn-it[disabled]:hover { background: none; }
.pn-it[disabled]:hover::before { transform: scaleY(0); }
.pn-st[disabled] { cursor: default; }
.pn-st[disabled]:hover { background: none; }
.pn-due-h { flex-wrap: wrap; row-gap: 10px; }
.pn-acts { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pn-acts .btn { height: 38px; padding: 0 14px; font-size: 13px; }
.pn-edit { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--lg-255-255-255-16); border-radius: 8px; background: var(--lg-255-255-255-06); font: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--lg-255-255-255-7); cursor: pointer; transition: background .3s, color .3s; }
.pn-edit:hover { background: var(--lg-255-255-255-14); color: var(--g-0); }
.pn-edit .ic { width: 12px; height: 12px; }
.pn-num small { font-size: .42em; letter-spacing: -.04em; vertical-align: .95em; margin-left: .03em; }

/* Etapas (projeto) e fases (obra) em pontos */
.pn-stages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 7px; margin-top: 12px; }
.pn-stage { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 1.4px solid var(--lg-255-255-255-45); background: none; cursor: pointer; transition: transform .35s var(--ease); flex: none; }
.pn-stage:hover { transform: scale(1.25); }
.pn-stage.is-done { background: var(--lg-255-255-255-55); border-color: transparent; }
.pn-stage.is-now { width: 15px; height: 15px; background: var(--g-0); border-color: var(--g-0); box-shadow: 0 0 0 5px var(--lgs-255-255-255-12); }
.pn-stage-ln { flex: 0 0 9px; height: 1px; background: var(--lg-255-255-255-25); }
span.pn-stage { cursor: default; }
.pn-bar { position: relative; height: 6px; margin-top: 14px; border-radius: 4px; background: var(--lg-255-255-255-14); overflow: hidden; }
.pn-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--g-0); }

/* Calendário: o mês em barrinhas */
.pn-month { display: grid; grid-template-columns: repeat(var(--days, 31), minmax(0, 1fr)); align-items: end; gap: 3px; height: 34px; margin-top: 12px; }
.pn-mday { height: 6px; padding: 0; border: 0; border-radius: 2px; background: var(--lg-255-255-255-18); cursor: pointer; transition: transform .3s var(--ease); transform-origin: bottom; }
.pn-mday:hover { transform: scaleY(1.25); }
.pn-mday.is-one { height: 18px; background: var(--lg-255-255-255-6); }
.pn-mday.is-many { height: 28px; background: var(--lg-255-255-255-78); }
.pn-mday.is-past { opacity: .5; }
.pn-mday.is-today { height: 34px; opacity: 1; background: var(--g-0); box-shadow: 0 0 0 3px var(--lgs-255-255-255-14); }
/* Compromissos do escritório, sem cliente (21/10): vazados, à parte dos do cliente */
.pn-mday.is-own { height: 14px; background: none; box-shadow: inset 0 0 0 1.5px var(--lgs-255-255-255-55); }
.pn-own { display: inline-flex; align-items: center; gap: 4px; }
.pn-own i { width: 9px; height: 9px; margin-right: 2px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--lgs-255-255-255-7); }
.pdot.is-own { background: none; box-shadow: inset 0 0 0 1.5px var(--g-500); }
.cal .ev.is-own .ev-title { color: var(--g-500); font-style: italic; }
.pn-nav { display: grid; gap: 6px; align-content: start; }
.pn-nav-btns { display: flex; align-items: center; gap: 4px; }
.pn-nav-btns .btn { width: 28px; height: 28px; color: var(--g-0); }
.pn-nav-btns .btn:hover { background: var(--lg-255-255-255-12); }
.pn-today-btn { height: 26px; padding: 0 10px; border: 1px solid var(--lg-255-255-255-25); border-radius: 8px; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--g-0); cursor: pointer; }
.pn-today-btn:hover { background: var(--lg-255-255-255-12); }
.pn-it.is-cal { grid-template-columns: 44px minmax(0, 1fr) auto; }
.pn-dayix { align-self: start; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-500); line-height: 1.3; }
.pn-dayix b { display: block; font-family: var(--sans); font-size: 20px; font-weight: 700; letter-spacing: -.04em; color: var(--g-900); }

/* Arquivos */
.pn-folders { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pn-folder { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--lg-255-255-255-2); border-radius: 7px; background: none; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--lg-255-255-255-75); cursor: pointer; transition: background .3s; }
button.pn-folder:hover { background: var(--lg-255-255-255-1); }
.pn-folder b { color: var(--g-0); font-weight: 500; }
.pn-folder.is-more { border-style: dashed; }
.pn-it.is-file { grid-template-columns: 34px minmax(0, 1fr) auto; }
.pn-ftile { position: relative; width: 34px; height: 40px; display: grid; place-items: end center; padding-bottom: 5px; border: 1px solid var(--g-200); border-radius: 6px; background: var(--g-0); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; color: var(--g-600); }
.pn-ftile::before { content: ''; position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; background: var(--g-100); border-bottom-left-radius: 4px; }
.pn-eye { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--g-200); border-radius: 999px; background: var(--g-0); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-500); white-space: nowrap; cursor: pointer; transition: border-color .3s; }
.pn-eye:hover { border-color: var(--g-900); color: var(--g-900); }
.pn-eye .ic { width: 13px; height: 13px; }
.pn-eye.is-off { color: var(--danger); border-color: var(--lg-176-74-63-3); }

/* Situação de uma linha (orçamento fechado, tarefa da obra) */
.pn-chip-status { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; white-space: nowrap; background: var(--g-100); color: var(--g-600); }
.pn-chip-status.is-ok { background: var(--success-soft); color: var(--success); }
.pn-chip-status.is-warn { background: var(--warning-soft); color: var(--warning); }

@media (max-width: 900px) {
  .pn-top.is-section { padding-top: 8px; }
  .pn-top.is-section .pn-sheet { padding-bottom: 18px; }
  .pn-acts { margin-left: 0; width: 100%; justify-content: flex-start; }
  .pn-it.is-cal, .pn-it.is-file { grid-template-columns: 44px minmax(0, 1fr); }
  .pn-it.is-cal > :last-child, .pn-it.is-file > :last-child { grid-column: 2; justify-self: start; }
  .pn-edit span, .pn-edit { font-size: 11px; }
}
.pn-dayix { align-self: center; }

