:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #1a2835;
  --muted: #5f6f80;
  --line: #d9e1ea;
  --brand: #0e7490;
  --brand-dark: #0b6078;
  --danger: #b91c1c;
  --danger-dark: #9f1a1a;
  --radius: 12px;
  --shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  --gap-xs: 6px;
  --gap-sm: 8px;
  --gap-md: 12px;
  --gap-lg: 16px;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111b2e;
  --ink: #e2e8f0;
  --muted: #93a4b8;
  --line: #24344d;
  --brand: #38bdf8;
  --brand-dark: #0ea5e9;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --shadow: 0 10px 24px rgba(2, 8, 23, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 0%, #e7f3f9 0%, var(--bg) 40%);
  line-height: 1.35;
}
[data-theme="dark"] body {
  background: radial-gradient(circle at 20% 0%, #13263f 0%, var(--bg) 45%);
}

h1,
h2,
p {
  margin: 0;
}

.container {
  width: min(1440px, 95%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #ffffffd8;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
[data-theme="dark"] .site-header {
  background: rgba(12, 20, 34, 0.86);
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: 8px 0;
  flex-wrap: wrap;
}

.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 0.8rem;
}

h1 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  max-width: 100%;
}

.session-box {
  display: grid;
  gap: 2px;
  min-width: 130px;
}

.session-wide {
  min-width: 240px;
}

.session-box label {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 8px 11px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.84rem;
  text-decoration: none;
  min-height: 34px;
  white-space: nowrap;
  line-height: 1.2;
}

.btn.primary {
  color: #fff;
  background: var(--brand);
}

.btn.primary:hover {
  background: var(--brand-dark);
}

.btn.ghost {
  color: var(--brand);
  background: #e7f5fb;
}
[data-theme="dark"] .btn.ghost {
  background: #13263f;
  color: #7dd3fc;
}

.btn.danger {
  color: #fff;
  background: var(--danger);
}

.btn.danger:hover {
  background: var(--danger-dark);
}

.file-btn {
  display: inline-flex;
  align-items: center;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: var(--gap-md);
  padding: 14px 0;
  align-items: start;
}

.role-column {
  display: grid;
  gap: var(--gap-md);
  align-content: start;
  min-width: 0;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding-right: 2px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  overflow: visible;
  min-width: 0;
}

.panel h2 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.panel h3 {
  margin: 10px 0 6px;
  font-size: 0.95rem;
}

.main-panel {
  min-height: calc(100vh - 108px);
  min-width: 0;
  overflow-x: hidden;
}

.summary-dock {
  position: static;
  max-height: none;
  overflow: visible;
}

#reportanteMain,
#supervisorMain,
#auditorMain,
#adminMain,
#genericMain {
  overflow-x: visible;
  padding-bottom: 2px;
  min-width: 0;
}

.hint {
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.role-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.menu-pill {
  background: #e0f2fe;
  color: #075985;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.tab-row {
  display: flex;
  gap: var(--gap-sm);
  margin-bottom: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.tab-row .btn {
  flex: 0 0 auto;
}

.tab-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-xs);
  overflow: visible;
  padding-bottom: 0;
}

.tab-column .btn {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

.profile-box,
.detail-box {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fbfdff;
}
[data-theme="dark"] .profile-box,
[data-theme="dark"] .detail-box,
[data-theme="dark"] .panel-mini,
[data-theme="dark"] .chat-list,
[data-theme="dark"] .notif-item,
[data-theme="dark"] .calendar-month,
[data-theme="dark"] .calendar-list,
[data-theme="dark"] .cal-item,
[data-theme="dark"] .kanban-col,
[data-theme="dark"] .kanban-card,
[data-theme="dark"] .table-wrap {
  background: #0f1a2c;
}

[data-theme="dark"] .chat-item.alert {
  background: #12263f;
}

[data-theme="dark"] .chat-item.alert-aviso {
  background: #3a2412;
  border-left-color: #fb923c;
}

[data-theme="dark"] .notif-item.notif-aviso {
  background: #3a2412;
  border-left-color: #fb923c;
}

[data-theme="dark"] .msg-badge.aviso {
  color: #ffedd5;
  background: #7c2d12;
  border-color: #9a3412;
}

[data-theme="dark"] .chat-item.sup-msg {
  background: #2a220f;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.notif-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notif-count {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0e7490;
  color: #fff;
  font-size: 0.75rem;
}

.notif-panel {
  display: none;
  padding: 8px 0 10px;
}

.notif-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 6px;
  cursor: pointer;
}

.notif-item.notif-aviso {
  border-left: 4px solid #f97316;
  background: #fff7ed;
}

.report-filters {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.tech-filters {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.sup-filters {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.aud-filters {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.aud-log-filters {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.aud-user-filters {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.adm-user-filters,
.adm-inc-filters {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.adm-log-filters {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.panel-mini {
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fbfdff;
}

.fixed-under-panel {
  position: static;
}

.chat-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  margin-bottom: 8px;
}

.chat-item {
  font-size: 0.8rem;
  border-bottom: 1px solid #eef2f7;
  padding: 6px 2px;
}

.chat-item:last-child {
  border-bottom: none;
}

.chat-item.alert {
  background: #f8fafc;
  border-left: 4px solid #0e7490;
  padding-left: 8px;
}

.chat-item.alert-aviso {
  background: #fff7ed;
  border-left-color: #f97316;
}

.msg-badge.aviso {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #9a3412;
  background: #fed7aa;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 2px 6px;
  margin-right: 6px;
  vertical-align: middle;
}

.chat-item.sup-msg {
  border-left: 4px solid #f59e0b;
  padding-left: 8px;
  background: #fffbeb;
}

.chat-item.own-msg {
  border-left: 4px solid #0ea5e9;
  background: #e0f2fe;
  padding-left: 8px;
}
[data-theme="dark"] .chat-item.own-msg {
  background: #13263f;
  border-left-color: #38bdf8;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.kanban-supervisor {
  grid-template-columns: repeat(6, minmax(170px, 1fr));
}

.kanban-col {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbff;
  padding: 7px;
  min-height: 130px;
}

.kanban-col h4 {
  margin: 0 0 8px;
  font-size: 0.8rem;
}

.kanban-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 5px;
  font-size: 0.74rem;
  margin-bottom: 6px;
  cursor: pointer;
}

.kanban-card[draggable="true"] {
  cursor: grab;
}

.kanban-col.drag-over {
  outline: 2px dashed #0e7490;
  outline-offset: -4px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}

.calendar-month {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.calendar-weekdays span {
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-day {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 78px;
  padding: 5px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
[data-theme="dark"] .calendar-day {
  background: #0f1a2c;
}

.calendar-day.other-month {
  background: #f8fafc;
  color: #64748b;
}
[data-theme="dark"] .calendar-day.other-month {
  background: #111e34;
  color: #8093ab;
}

.calendar-day.today {
  border-color: #0e7490;
}

.calendar-day.selected {
  outline: 2px solid #0e7490;
  outline-offset: -2px;
}

.calendar-day .day-num {
  font-size: 0.74rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.calendar-day .day-dot {
  display: block;
  border-radius: 6px;
  padding: 2px 4px;
  margin-bottom: 3px;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-day .day-dot.prio-alta,
.calendar-day .day-dot.prio-critica {
  background: #fee2e2;
  color: #991b1b;
}

.calendar-day .day-dot.prio-media,
.calendar-day .day-dot.prio-normal {
  background: #ffedd5;
  color: #9a3412;
}

.calendar-day .day-dot.prio-baja {
  background: #dcfce7;
  color: #166534;
}

.calendar-day .more {
  font-size: 0.68rem;
  color: #475569;
}

.calendar-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  max-height: 240px;
  margin-top: 8px;
  overflow: auto;
}

.cal-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  margin-bottom: 6px;
  background: #fff;
  cursor: pointer;
}

.cal-item.prio-alta,
.cal-item.prio-critica {
  border-left: 5px solid #b91c1c;
}

.cal-item.prio-media,
.cal-item.prio-normal {
  border-left: 5px solid #ea580c;
}

.cal-item.prio-baja {
  border-left: 5px solid #16a34a;
}

.field {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.field label {
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  font: inherit;
  color: inherit;
  background: #fcfeff;
  font-size: 0.9rem;
}
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #0d1728;
}

textarea {
  resize: vertical;
}

#incidentForm.compact .field,
#incidentForm.compact .row,
#incidentForm.compact .actions {
  display: none;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.form-msg {
  min-height: 20px;
  font-size: 0.9rem;
  color: #196c2e;
}

.form-msg.error {
  color: var(--danger);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px;
  background: #f9fcff;
}
[data-theme="dark"] .stat,
[data-theme="dark"] .kpi-item {
  background: #132139;
}

.stat p {
  color: var(--muted);
  font-size: 0.73rem;
}

.stat strong {
  font-size: 1rem;
}

.kpi-list {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.kpi-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fcff;
  padding: 7px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.kpi-item strong {
  font-size: 0.92rem;
}

button.kpi-item {
  cursor: pointer;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.tech-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
}

.tech-dashboard-grid .panel-mini {
  margin: 0;
}

.chart-span-2 {
  grid-column: span 2;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fcff;
  padding: 8px;
}
[data-theme="dark"] .chart-card {
  background: #132139;
}

.chart-card h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(120px, 2.2fr) auto;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
}

.bar-label {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
[data-theme="dark"] .bar-track {
  background: #1f324f;
}

.bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9 0%, #22c55e 100%);
}

.donut-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 8px;
}

.donut {
  width: 128px;
  height: 128px;
  border-radius: 50%;
}

.donut-center {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 700;
}
[data-theme="dark"] .donut-center {
  background: #0f1a2c;
}

.chart-legend {
  display: grid;
  gap: 4px;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
}
.legend-swatch.in { background: #0ea5e9; }
.legend-swatch.out { background: #22c55e; }
.legend-swatch.late { background: #ef4444; }

.line-chart {
  width: 100%;
  height: 140px;
  fill: none;
  stroke-width: 3;
}

.line {
  fill: none;
}

.line.in { stroke: #0ea5e9; }
.line.out { stroke: #22c55e; }
.line.late { stroke: #ef4444; }

.line-labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 2px;
}

.line-labels span {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.heat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.heat-cell {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.heat-cell.cool { background: #dcfce7; color: #14532d; }
.heat-cell.warm { background: #fef3c7; color: #78350f; }
.heat-cell.hot { background: #fecaca; color: #7f1d1d; }
[data-theme="dark"] .heat-cell.cool { background: #123327; color: #a7f3d0; }
[data-theme="dark"] .heat-cell.warm { background: #3a2f13; color: #fde68a; }
[data-theme="dark"] .heat-cell.hot { background: #3f1c21; color: #fecaca; }

.mini-progress {
  margin-top: 5px;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.mini-progress span {
  display: block;
  height: 100%;
}

.mini-progress.ok span { background: #22c55e; }
.mini-progress.warn span { background: #f59e0b; }
.mini-progress.danger span { background: #ef4444; }
[data-theme="dark"] .mini-progress { background: #1f324f; }

.state-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}
.state-dot.ok { background: #16a34a; }
.state-dot.warn { background: #d97706; }
.state-dot.danger { background: #dc2626; }
.state-dot.info { background: #0284c7; }

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 7px;
  margin-bottom: 8px;
  min-width: 0;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 100%;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th,
td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.82rem;
}

th {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  background: #f9fbfe;
  position: sticky;
  top: 0;
  z-index: 1;
}
[data-theme="dark"] th {
  background: #132139;
}

.badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.sev-baja {
  background: #dcfce7;
  color: #166534;
}

.sev-media {
  background: #fde68a;
  color: #854d0e;
}

.sev-alta {
  background: #fecaca;
  color: #991b1b;
}

.sev-critica {
  background: #fca5a5;
  color: #7f1d1d;
}

.state-nueva {
  background: #dbeafe;
  color: #1e3a8a;
}

.state-en-analisis {
  background: #fef3c7;
  color: #92400e;
}

.state-en-progreso {
  background: #cffafe;
  color: #155e75;
}

.state-pendiente-info {
  background: #fae8ff;
  color: #7e22ce;
}

.state-resuelta {
  background: #dcfce7;
  color: #166534;
}

.state-cerrada {
  background: #e5e7eb;
  color: #374151;
}

.prio-baja {
  background: #dcfce7;
  color: #166534;
}

.prio-media {
  background: #fef9c3;
  color: #854d0e;
}

.prio-alta {
  background: #fed7aa;
  color: #9a3412;
}

.prio-critica {
  background: #fecaca;
  color: #991b1b;
}

.state-abierta {
  background: #e0f2fe;
  color: #075985;
}

.state-cerrada {
  background: #e5e7eb;
  color: #374151;
}

.row-actions {
  display: flex;
  gap: 6px;
}

.tiny {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 0.72rem;
  cursor: pointer;
}
[data-theme="dark"] .tiny {
  background: #132139;
  border-color: #2e4668;
  color: #dbeafe;
}

.tiny.danger {
  color: var(--danger);
  border-color: #efb5b5;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 18px;
}

.simple-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 220px;
  overflow: auto;
}

.list-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr 0.8fr;
  gap: 7px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.compact-pre {
  max-height: 220px;
  overflow: auto;
  font-size: 0.78rem;
}

@media (max-width: 1080px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .role-column {
    position: static;
    max-height: none;
    overflow: visible;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-wide {
    min-width: 220px;
  }

  table {
    min-width: 860px;
  }

}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .session-box {
    min-width: 0;
    width: calc(50% - 4px);
  }

  .session-wide {
    width: 100%;
  }

  .app-grid {
    gap: 10px;
    padding: 10px 0;
  }

  .panel {
    padding: 10px;
  }

  .list-row {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .report-filters {
    grid-template-columns: 1fr;
  }

  .tech-filters {
    grid-template-columns: 1fr;
  }

  .sup-filters {
    grid-template-columns: 1fr;
  }

  .aud-filters,
  .aud-log-filters,
  .aud-user-filters,
  .adm-user-filters,
  .adm-inc-filters,
  .adm-log-filters {
    grid-template-columns: 1fr;
  }

  .kanban-board {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 680px;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .tech-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .chart-span-2 {
    grid-column: span 1;
  }

  .heat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .role-column {
    grid-template-columns: 1fr;
  }

  .toolbar .btn {
    font-size: 0.84rem;
    padding: 8px 10px;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
