/* Gestão CIPA — Dashboard e Central de alertas */
.dash-head { align-items: center; }
.dash-filters .flt { min-width: 150px; }
.dash-kpis { grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); }
.dash-kpis .kpi-value { font-size: 23px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 300px; gap: 14px; margin-bottom: 14px; align-items: start; }
.dash-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.alert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.al { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 11px; background: var(--g-50); border: 1px solid var(--line-2); cursor: pointer; transition: background .12s, border-color .12s; }
.al:hover { background: #fff; border-color: var(--g-300); }
.al > .ic { margin-top: 2px; }
.al > .ic:last-child { color: var(--g-400); align-self: center; }
.al div { min-width: 0; display: flex; flex-direction: column; }
.al b { font-weight: 600; font-size: 13px; color: var(--g-900); }
.al span { font-size: 12.3px; color: var(--text-2); }
.al em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--g-500); white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.al-danger > .ic:first-child { color: var(--danger); }
.al-danger { border-left: 3px solid var(--danger); }
.al-warn > .ic:first-child { color: var(--warn); }
.al-warn { border-left: 3px solid var(--warn); }
.al-info > .ic:first-child { color: var(--info); }
.al-info { border-left: 3px solid var(--info); }
.alert-list.big .al { padding: 12px 14px; }
.sev-h { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; font-size: 13.5px; }
.sev-h:first-child { margin-top: 2px; }
.sev-danger { color: var(--danger-tx); } .sev-warn { color: var(--warn-tx); } .sev-info { color: var(--info-tx); }
.small-empty { padding: 24px 10px; }
.small-empty .empty-ic { color: var(--ok) !important; opacity: .6; }

.agenda-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.agenda-list li { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; cursor: pointer; }
.agenda-list li:hover { background: var(--g-50); }
.ag-date { width: 42px; text-align: center; display: flex; flex-direction: column; line-height: 1.1; flex: none; }
.ag-date b { font-size: 17px; font-weight: 750; }
.ag-date small { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; font-weight: 600; }
.ag-bar { width: 4px; align-self: stretch; border-radius: 3px; flex: none; }
.agenda-list li div { display: flex; flex-direction: column; min-width: 0; }
.agenda-list li div b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-list li div small { font-size: 11.5px; color: var(--text-3); }

.mini-cal { padding: 14px 14px 12px; }
.mc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mc-head b { font-size: 14px; }
.mc-head a { font-size: 12px; font-weight: 600; }
.mc-week, .mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mc-week span { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--g-400); padding: 2px 0; }
.mc-day { position: relative; aspect-ratio: 1; border: 0; border-radius: 8px; background: none; font-size: 12px; font-weight: 550; color: var(--g-700); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.mc-day:hover { background: var(--g-100); }
.mc-day.has { background: var(--g-50); }
.mc-day.today { background: var(--o-500); color: #fff; }
.mc-day i { display: flex; gap: 2px; }
.mc-day i b { width: 4px; height: 4px; border-radius: 50%; }
.mc-day.today i b { background: #fff !important; }

.mini-prog { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.mini-prog .progress { flex: 1; }
.mini-prog small { font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ind-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--sh-1); }
.ind-name { font-size: 12.5px; color: var(--text-2); font-weight: 550; min-height: 34px; }
.ind-val { font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.ind-meta { font-size: 11.8px; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.ind-card .progress { margin-top: 6px; }
.ind-ok { border-top: 3px solid var(--ok); }
.ind-danger { border-top: 3px solid var(--danger); }
.ind-danger .ind-val { color: var(--danger-tx); }
.ind-tools { margin-bottom: 14px; }

@media (max-width: 1280px) { .dash-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mini-cal { grid-column: 1 / -1; max-width: 420px; } }
@media (max-width: 900px) { .dash-grid, .dash-charts, .grid-2 { grid-template-columns: 1fr; } .mini-cal { max-width: none; } .dash-filters { width: 100%; } .dash-filters .flt { flex: 1 1 160px; } }
@media (max-width: 760px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-kpis .kpi-value { font-size: 19px; } .al { grid-template-columns: auto 1fr; } .al em, .al > .ic:last-child:not(:first-child) { display: none; } }
