/* Gestão CIPA — Calendário */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-nav { display: flex; align-items: center; gap: 4px; }
.cal-nav h3 { margin-left: 10px; font-size: 18px; font-weight: 700; }
.cal-actions { display: flex; gap: 6px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cl-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 550; color: var(--g-500); }
.cl-chip i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); opacity: .35; }
.cl-chip.on { color: var(--g-800); border-color: var(--g-300); }
.cl-chip.on i { opacity: 1; }
.cal-month { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cal-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--g-50); border-bottom: 1px solid var(--line); }
.cal-wd span { padding: 8px 10px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--g-500); letter-spacing: .04em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-cell { min-height: 112px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 5px 6px 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.out { background: var(--g-50); }
.cal-cell.out .cal-dn span { color: var(--g-400); }
.cal-cell.wkd:not(.out) { background: #FCFCFD; }
.cal-dn { display: flex; justify-content: space-between; align-items: center; }
.cal-dn span { font-size: 12.5px; font-weight: 650; color: var(--g-700); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-cell.today .cal-dn span { background: var(--o-500); color: #fff; }
.cal-add { opacity: 0; }
.cal-cell:hover .cal-add, .cw-col:hover .cal-add { opacity: 1; }
.cal-ev { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, white); color: var(--g-900); font-size: 11.5px; line-height: 1.3; padding: 3px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev:hover { background: color-mix(in srgb, var(--c) 18%, white); }
.cal-ev.done { opacity: .62; }
.cal-ev.late { box-shadow: inset 0 0 0 1px var(--danger); }
.cal-ev.block { white-space: normal; padding: 6px 8px; font-size: 12.5px; font-weight: 550; }
.cal-ev.block small { display: block; font-size: 10.5px; color: var(--g-500); font-weight: 600; margin-bottom: 1px; }
.cal-more { border: 0; background: none; font-size: 11px; font-weight: 650; color: var(--o-600); text-align: left; padding: 1px 4px; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cw-col { border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 260px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cw-col.today { border-color: var(--o-400); background: var(--o-50); }
.cw-h { display: flex; align-items: center; gap: 6px; }
.cw-h span { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--g-500); }
.cw-h b { font-size: 17px; }
.cw-h .cal-add { margin-left: auto; }
.cal-list { display: flex; flex-direction: column; gap: 10px; }
.cl-day { display: grid; grid-template-columns: 82px 1fr; gap: 12px; align-items: start; }
.cl-date { display: flex; flex-direction: column; align-items: center; padding: 8px; border-radius: 12px; background: var(--g-50); }
.cl-date b { font-size: 22px; line-height: 1; }
.cl-date span { font-size: 11px; color: var(--text-3); text-transform: uppercase; font-weight: 600; }
.cl-date.today { background: var(--o-500); color: #fff; }
.cl-date.today span { color: rgba(255, 255, 255, .85); }
.cl-evs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }

@media (max-width: 900px) {
  .cal-cell { min-height: 74px; padding: 3px; }
  .cal-ev { font-size: 0; height: 6px; padding: 0; border-left-width: 0; background: var(--c); border-radius: 3px; }
  .cal-ev b { display: none; }
  .cal-more { font-size: 10px; }
  .cal-week { grid-template-columns: 1fr; }
  .cw-col { min-height: 0; }
  .cal-wd span { padding: 6px 2px; text-align: center; font-size: 10px; }
  .cl-day { grid-template-columns: 64px 1fr; }
}
