/* Chamados V2 — design system do módulo (Fase 1 SaaS) */
.chamados-v2 {
  /* check | chamado | solicitante | empresa | prior | status | resp | tempo | ações */
  --ch-grid: 2.25rem minmax(14rem, 2fr) minmax(7rem, 0.9fr) minmax(7rem, 0.9fr) 6.5rem 7rem minmax(7.5rem, 1fr) 6.5rem 4.5rem;
}

/* Toolbar command: estilos em castro-theme.css (global) */
.chamados-v2 .page-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.chamados-v2 .page-toolbar__actions .module-search {
  width: 16rem;
  flex: 0 1 16rem;
}

.chamados-v2 .page-toolbar__actions .module-search .form-control {
  width: 100%;
}

@media (max-width: 767.98px) {
  .chamados-v2 .page-toolbar__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .chamados-v2 .page-toolbar__actions .module-search {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }
}

.chamados-stats {
  margin-bottom: 0.85rem;
}

.chamados-stats .chamados-stat-card {
  --stat-accent: var(--brand-600);
  --stat-bg: #fff;
  --stat-border: rgba(226, 232, 240, 0.95);
  --stat-value-bg: var(--brand-50);
  --stat-value-color: var(--brand-900, #0f2744);
  --stat-label-color: var(--muted);

  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  row-gap: 0.05rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-xl, 1.25rem);
  background: var(--stat-bg);
  border: 1px solid var(--stat-border);
  border-left: 1px solid var(--stat-border);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(15, 39, 68, 0.05));
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.chamados-stats .chamados-stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--stat-accent);
}

.chamados-stat-card:hover {
  box-shadow: var(--shadow, 0 8px 30px -8px rgba(15, 39, 68, 0.12));
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.5);
}

.chamados-stat-card.is-active {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stat-accent) 22%, transparent);
}

.chamados-stat-card > .bi {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1rem;
  border-radius: 0.7rem;
  background: var(--stat-value-bg);
  color: var(--stat-accent);
  border: 1px solid color-mix(in srgb, var(--stat-accent) 22%, #fff);
}

.chamados-stat-card__value {
  grid-column: 2;
  display: block;
  padding: 0;
  min-width: 0;
  border-radius: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--stat-value-color);
  background: transparent;
}

.chamados-stat-card__label {
  grid-column: 2;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--stat-label-color);
  line-height: 1.2;
}

/* Spec >= .chamados-stats .chamados-stat-card (senão --stat-accent fica sempre azul) */
.chamados-stats .chamados-stat-card--primary {
  --stat-accent: #2563eb;
  --stat-bg: #eff6ff;
  --stat-border: #bfdbfe;
  --stat-value-bg: #dbeafe;
  --stat-value-color: #1d4ed8;
  --stat-label-color: #1e40af;
}

.chamados-stats .chamados-stat-card--danger {
  --stat-accent: #ef4444;
  --stat-bg: #fef2f2;
  --stat-border: #fecaca;
  --stat-value-bg: #fee2e2;
  --stat-value-color: #b91c1c;
  --stat-label-color: #991b1b;
}

.chamados-stats .chamados-stat-card--warning {
  --stat-accent: #f59e0b;
  --stat-bg: #fffbeb;
  --stat-border: #fde68a;
  --stat-value-bg: #fef3c7;
  --stat-value-color: #b45309;
  --stat-label-color: #92400e;
}

.chamados-stats .chamados-stat-card--muted {
  --stat-accent: #818cf8;
  --stat-bg: #f5f3ff;
  --stat-border: #ddd6fe;
  --stat-value-bg: #ede9fe;
  --stat-value-color: #6d28d9;
  --stat-label-color: #5b21b6;
}

.chamados-stats .chamados-stat-card--info {
  --stat-accent: #06b6d4;
  --stat-bg: #ecfeff;
  --stat-border: #a5f3fc;
  --stat-value-bg: #cffafe;
  --stat-value-color: #0e7490;
  --stat-label-color: #155e75;
}

.chamados-stats .chamados-stat-card--hoje {
  --stat-accent: #64748b;
  --stat-bg: #f8fafc;
  --stat-border: #e2e8f0;
  --stat-value-bg: #e2e8f0;
  --stat-value-color: #334155;
  --stat-label-color: #64748b;
}

.chamados-stat-card__value--icon {
  font-size: 1rem;
  min-width: 2rem;
  padding: 0.35rem;
}

.chamados-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.35rem 0 1rem;
}

.chamados-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill, 999px);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand-800);
  text-decoration: none;
  max-width: 100%;
}

.chamados-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chamados-chip .bi-x {
  opacity: 0.65;
  flex-shrink: 0;
}

.chamados-chip:hover {
  border-color: var(--brand-300, #93c5fd);
  background: var(--brand-50, #eff6ff);
}

.chamados-chip--clear {
  color: #b91c1c;
  border-color: #fecaca;
  background: var(--danger-bg);
}

.chamados-chip--clear:hover {
  border-color: var(--danger);
}

.ch-filter-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  margin: 0;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border, #e2e8f0);
}

#filterForm .row > .col-12:first-child .ch-filter-section-label {
  border-top: none;
  padding-top: 0;
}

.ch-filter-checks {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ch-filter-checks .form-check-label {
  font-size: 0.875rem;
}

.ch-saved-views__hint {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
}

/* Drawer: .app-drawer em castro-platform.css */

/* Lista grid */
.ch-list-card {
  border-radius: var(--radius-xl, 1.25rem);
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
  overflow: hidden;
}

.ch-list-card__header {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ch-list-scroll {
  overflow: auto;
  min-height: 120px;
  max-height: calc(100vh - 18rem);
}

.ch-list-header,
.ch-ticket-row {
  display: grid;
  grid-template-columns: var(--ch-grid);
  gap: 0.35rem 0.55rem;
  align-items: center;
  min-width: 1100px;
  padding: 0.7rem 1rem;
}

.ch-list-header {
  background: var(--surface-muted, #f4f6f9);
  color: var(--muted, #64748b);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.ch-sort-link {
  color: inherit;
  text-decoration: none;
}

.ch-sort-link:hover {
  color: var(--brand-700, #1d4ed8);
  text-decoration: underline;
}

.ch-ticket-row {
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
  cursor: pointer;
  transition: background 0.12s ease;
}

.ch-ticket-row:nth-child(even) {
  background: rgba(244, 246, 249, 0.65);
}

.ch-ticket-row:hover {
  background: var(--brand-50, #eff6ff);
}

.ch-ticket-row--urgent {
  box-shadow: inset 3px 0 0 var(--danger, #dc2626);
}

.ch-ticket-row--high {
  box-shadow: inset 3px 0 0 var(--warning, #d97706);
}

.ch-chamado-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.ch-assunto-link {
  color: var(--brand-900, #0f2744);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ch-assunto-link:hover {
  color: var(--brand-600, #2563eb);
}

.ch-chamado-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  font-size: 0.72rem;
  color: var(--muted, #64748b);
}

.ch-protocolo-link {
  color: var(--brand-600, #2563eb);
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.ch-protocolo-link:hover {
  text-decoration: underline;
}

.ch-tempo-aberto {
  color: var(--muted, #64748b);
}

.ch-meta-sep {
  opacity: 0.5;
}

.ch-tempo-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
}

.ch-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.ch-actions .dropdown-menu {
  font-size: 0.875rem;
  border-radius: var(--radius);
  border-color: var(--border);
}

.ch-field-label {
  display: none;
  font-size: 0.7rem;
  color: var(--muted, #64748b);
  text-transform: uppercase;
}

.ch-field-value {
  font-size: 0.78rem;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-col--abertura .ch-field-value {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ch-assunto-link,
.ch-protocolo-link {
  color: var(--brand-850, #0f172a);
  text-decoration: none;
  font-weight: 600;
}

.ch-assunto-link:hover,
.ch-protocolo-link:hover {
  color: var(--brand-600);
  text-decoration: underline;
}

.ch-col--responsavel .responsavel-select {
  font-size: 0.75rem;
  padding: 0.2rem 1.6rem 0.2rem 0.45rem;
  min-height: 1.85rem;
  border-radius: var(--radius-sm, 0.5rem);
  border-color: var(--border);
  background-color: var(--surface);
}

.ch-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.ch-actions .btn-action-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
}

.ch-tempo-display {
  font-size: 0.68rem !important;
  font-variant-numeric: tabular-nums;
  min-width: 3.4rem;
  text-align: right;
  color: var(--muted) !important;
}

.ch-actions .btn-action-icon.btn-timer-row.paused {
  color: var(--warning);
  border-color: #fde68a;
}

.ch-actions .btn-action-icon.btn-timer-row.paused:hover {
  color: #b45309;
  border-color: var(--warning);
}

.ch-actions .btn-action-icon.btn-timer-row.running {
  color: var(--success);
  border-color: #a7f3d0;
  background: var(--success-bg);
}

.ch-actions .btn-action-icon.btn-timer-row.is-disabled,
.ch-actions .btn-action-icon.btn-timer-row:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ch-sla {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  margin-left: 0.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}

.ch-sla--ok { background: #dcfce7; color: #166534; }
.ch-sla--warning { background: #fef3c7; color: #92400e; }
.ch-sla--critical { background: #fee2e2; color: #991b1b; }

.ch-list-empty.module-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}

.ch-list-empty .module-empty__icon,
.ch-list-empty__icon {
  font-size: 2.5rem;
  opacity: 0.45;
  color: var(--muted-soft);
}

.ch-list-empty .module-empty__title,
.ch-list-empty__title {
  font-weight: 700;
  color: var(--brand-850);
  margin: 0.5rem 0 0.25rem;
}

.ch-list-empty .module-empty__text,
.ch-list-empty__text {
  font-size: var(--text-sm, 0.8125rem);
  margin: 0;
  color: var(--muted);
}

.ch-bulk-bar {
  display: none;
  padding: 0.65rem 1rem;
  background: var(--brand-50, #eff6ff);
  border-bottom: 1px solid var(--brand-200, #bfdbfe);
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.ch-bulk-bar.is-visible {
  display: flex;
}

.ch-bulk-bar .form-select {
  width: auto;
}

.chamados-refresh-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #dbeafe;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.ch-skeleton-row {
  height: 52px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: ch-shimmer 1.2s infinite;
  margin: 0.25rem 1rem;
  border-radius: 0.35rem;
}

@keyframes ch-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Detalhe ver.php — layout SaaS (Fase 2) */
.ch-detail-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.ch-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ch-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ch-detail-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 0.75rem);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ch-detail-hero__main {
  min-width: 0;
  flex: 1 1 18rem;
}

.ch-detail-hero__proto {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.ch-detail-proto {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-700, #1d4ed8);
}

.ch-detail-opened {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

.ch-detail-hero__title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text, #0f172a);
}

.ch-detail-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.ch-detail-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
}

.ch-detail-fact .bi {
  color: var(--brand-600, #2563eb);
  opacity: 0.85;
}

.ch-detail-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.ch-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ch-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.ch-apontamento-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.ch-apontamento-form__row .form-control {
  flex: 1 1 5rem;
  max-width: 8rem;
}

.ch-detail-actions .btn-timer-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ch-detail-actions__label {
  font-weight: 600;
}

.ch-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  gap: 1rem;
  align-items: start;
}

.ch-detail-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.ch-detail-card,
.ch-side-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1rem 1.15rem;
}

.ch-detail-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ch-detail-card__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #0f172a);
}

.ch-detail-card--timeline .ch-detail-card__title {
  margin-bottom: 0;
}

.ch-detail-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text, #0f172a);
}

.ch-anexo-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.ch-anexo-list li + li {
  margin-top: 0.4rem;
}

.ch-anexo-list a {
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ch-anexo-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ch-anexo-form__row .form-control {
  flex: 1 1 12rem;
  min-width: 0;
}

.ch-anexo-help {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
}

.ch-detail-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ch-side-card__title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ch-side-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ch-side-dl dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}

.ch-side-dl dd {
  margin: 0.1rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text, #0f172a);
  word-break: break-word;
}

.ch-side-pill {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
}

.ch-side-pill--ok {
  background: #dcfce7;
  color: #166534;
}

.ch-side-tempo {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand-800, #1e3a5f);
}

.ch-side-tempo .ch-tempo-display {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ch-side-tempo .ch-tempo-display.is-running {
  color: #b45309;
}

.ch-side-hint {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
}

.ch-tl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ch-tl-filter {
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface-muted, #f8fafc);
  color: var(--text-muted, #64748b);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.ch-tl-filter.is-active {
  background: var(--brand-50, #eff6ff);
  border-color: var(--brand-200, #bfdbfe);
  color: var(--brand-800, #1e3a5f);
}

.ch-tl-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 0.35rem;
}

.ch-tl-chip--cliente { background: #ecfdf5; color: #047857; }
.ch-tl-chip--publica { background: #eff6ff; color: #1d4ed8; }
.ch-tl-chip--interna { background: #fffbeb; color: #b45309; }
.ch-tl-chip--sistema { background: #f1f5f9; color: #475569; }

.ch-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ch-timeline__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.ch-timeline__item.is-hidden {
  display: none;
}

.ch-timeline__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-100, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-700, #1d4ed8);
}

.ch-timeline__icon--cliente { background: #d1fae5; color: #047857; }
.ch-timeline__icon--publica { background: #dbeafe; color: #1d4ed8; }
.ch-timeline__icon--interna { background: #fef3c7; color: #b45309; }
.ch-timeline__icon--sistema { background: #e2e8f0; color: #475569; }

.ch-timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 0.25rem;
}

.ch-timeline__text {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text, #0f172a);
}

.ch-note-form {
  background: var(--surface-muted, #f8fafc);
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1rem;
  border: 1px solid var(--border, #e2e8f0);
}

.ch-note-form--detail {
  background: var(--surface, #fff);
  scroll-margin-top: 1.5rem;
}

@media (max-width: 991.98px) {
  .ch-detail-layout {
    grid-template-columns: 1fr;
  }

  .ch-detail-side {
    order: -1;
  }

  .ch-detail-hero__badges {
    justify-content: flex-start;
  }
}

/* Mobile: cards */
@media (max-width: 991.98px) {
  .ch-list-header {
    display: none;
  }

  .ch-ticket-row {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: var(--radius-lg, 0.75rem);
    margin: 0.5rem 0.75rem;
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  }

  .ch-col--check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
  }

  .ch-ticket-row {
    position: relative;
    padding-right: 2.5rem;
  }

  .ch-col {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .ch-field-label {
    display: block;
  }

  .ch-col--empresa {
    display: none;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .chamados-v2 {
    --ch-grid: 2.25rem minmax(12rem, 2fr) minmax(6rem, 0.85fr) 6.25rem 6.5rem minmax(7rem, 1fr) 6rem 4.25rem;
  }
  .ch-col--empresa {
    display: none;
  }
}
