/* 
 * Fallback CSS (offline) - Sistema Helpdesk
 * Cobre todas as classes Tailwind usadas no projeto
 * Carrega apenas se o CDN do Tailwind falhar
 */

/* ========== VARIÁVEIS CSS ========== */
:root {
  /* Cores Gray */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Cores Indigo */
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;

  /* Cores Green */
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #bbf7d0;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;

  /* Cores Red */
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;

  /* Cores Yellow */
  --yellow-50: #fefce8;
  --yellow-100: #fef3c7;
  --yellow-200: #fde68a;
  --yellow-600: #ca8a04;
  --yellow-800: #92400e;

  /* Cores Purple */
  --purple-50: #faf5ff;
  --purple-100: #ede9fe;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-800: #5b21b6;

  /* Cores Blue */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --blue-800: #1e40af;
}

/* ========== RESET E BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: var(--gray-50);
  color: var(--gray-800);
  min-height: 100vh;
}

/* ========== CONTAINER E LAYOUT ========== */
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }

/* ========== SPACING ========== */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* ========== TYPOGRAPHY ========== */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }

.whitespace-pre-line { white-space: pre-line; }
.leading-relaxed { line-height: 1.625; }

/* Cores de texto */
.text-white { color: #fff; }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-indigo-600 { color: var(--indigo-600); }
.text-indigo-700 { color: var(--indigo-700); }
.text-green-600 { color: var(--green-600); }
.text-green-700 { color: var(--green-700); }
.text-green-800 { color: var(--green-800); }
.text-red-600 { color: var(--red-600); }
.text-red-700 { color: var(--red-700); }
.text-red-800 { color: var(--red-800); }
.text-yellow-600 { color: var(--yellow-600); }
.text-yellow-800 { color: var(--yellow-800); }
.text-purple-600 { color: var(--purple-600); }
.text-purple-700 { color: var(--purple-700); }
.text-blue-600 { color: var(--blue-600); }
.text-blue-800 { color: var(--blue-800); }
.text-blue-900 { color: var(--blue-800); }

/* ========== FLEXBOX E GRID ========== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ========== BACKGROUNDS ========== */
.bg-white { background-color: #fff; }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-800 { background-color: var(--gray-800); color: #fff; }
.bg-gray-900 { background-color: var(--gray-900); color: #fff; }

.bg-indigo-50 { background-color: var(--indigo-50); }
.bg-indigo-100 { background-color: var(--indigo-100); }
.bg-indigo-600 { background-color: var(--indigo-600); color: #fff; }
.bg-indigo-700 { background-color: var(--indigo-700); color: #fff; }

.bg-green-50 { background-color: var(--green-50); }
.bg-green-100 { background-color: var(--green-100); }
.bg-green-600 { background-color: var(--green-600); color: #fff; }
.bg-green-700 { background-color: var(--green-700); color: #fff; }

.bg-red-50 { background-color: var(--red-50); }
.bg-red-100 { background-color: var(--red-100); }
.bg-red-200 { background-color: var(--red-200); }
.bg-red-600 { background-color: var(--red-600); color: #fff; }
.bg-red-700 { background-color: var(--red-700); color: #fff; }

.bg-yellow-50 { background-color: var(--yellow-50); }
.bg-yellow-100 { background-color: var(--yellow-100); }
.bg-yellow-200 { background-color: var(--yellow-200); }

.bg-purple-50 { background-color: var(--purple-50); }
.bg-purple-100 { background-color: var(--purple-100); }
.bg-purple-600 { background-color: var(--purple-600); color: #fff; }
.bg-purple-700 { background-color: var(--purple-700); color: #fff; }

.bg-blue-50 { background-color: var(--blue-50); }
.bg-blue-100 { background-color: var(--blue-100); }

/* ========== BORDERS ========== */
.border { border: 1px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-200); }
.border-gray-100 { border-color: var(--gray-100); }
.border-gray-200 { border-color: var(--gray-200); }
.border-gray-300 { border-color: var(--gray-300); }
.border-green-100 { border-color: var(--green-100); }
.border-green-200 { border-color: var(--green-200); }
.border-red-100 { border-color: var(--red-100); }
.border-red-200 { border-color: var(--red-200); }
.border-yellow-100 { border-color: var(--yellow-100); }
.border-yellow-200 { border-color: var(--yellow-200); }
.border-purple-100 { border-color: var(--purple-100); }
.border-blue-100 { border-color: var(--blue-100); }
.border-blue-200 { border-color: var(--blue-100); }

.divide-y > * + * { border-top: 1px solid var(--gray-200); }

/* ========== BORDER RADIUS ========== */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* ========== SHADOWS ========== */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }

/* ========== POSITIONING ========== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.right-0 { right: 0; }
.right-1 { right: 0.25rem; }
.right-3 { right: 0.75rem; }
.right-6 { right: 1.5rem; }
.bottom-1 { bottom: 0.25rem; }
.bottom-6 { bottom: 1.5rem; }
.left-0 { left: 0; }
.left-3 { left: 0.75rem; }
.inset-y-0 { top: 0; bottom: 0; }

.-translate-y-1\/2 { transform: translateY(-50%); }

.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ========== SIZING ========== */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }

.h-1 { height: 0.25rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }

/* ========== OVERFLOW ========== */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* ========== DISPLAY ========== */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

/* ========== OUTROS ========== */
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.resize-none { resize: none; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.backdrop-blur { backdrop-filter: blur(6px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ========== LINKS E BOTÕES ========== */
a {
  color: var(--indigo-600);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--indigo-700);
  text-decoration: underline;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
  transition: all 0.15s;
}

.hover\:bg-indigo-700:hover { background-color: var(--indigo-700); }
.hover\:bg-indigo-800:hover { background-color: var(--indigo-700); }
.hover\:bg-gray-100:hover { background-color: var(--gray-100); }
.hover\:bg-gray-200:hover { background-color: var(--gray-200); }
.hover\:bg-gray-900:hover { background-color: var(--gray-900); }
.hover\:bg-green-700:hover { background-color: var(--green-700); }
.hover\:bg-red-700:hover { background-color: var(--red-700); }
.hover\:bg-yellow-200:hover { background-color: var(--yellow-200); }
.hover\:bg-purple-100:hover { background-color: var(--purple-100); }
.hover\:bg-purple-700:hover { background-color: var(--purple-700); }

.hover\:text-indigo-600:hover { color: var(--indigo-600); }
.hover\:text-indigo-700:hover { color: var(--indigo-700); }
.hover\:text-gray-600:hover { color: var(--gray-600); }
.hover\:text-gray-800:hover { color: var(--gray-800); }

.hover\:underline:hover { text-decoration: underline; }

.transition-colors { transition-property: background-color, border-color, color; transition-duration: 0.15s; }
.transition-all { transition-property: all; transition-duration: 0.15s; }

/* ========== FORMS ========== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--gray-800);
  font-family: inherit;
  font-size: inherit;
  transition: all 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--indigo-600);
  outline-offset: 2px;
  border-color: var(--indigo-600);
}

input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid var(--gray-300);
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background-color: var(--indigo-600);
  border-color: var(--indigo-600);
}

/* ========== TABLES ========== */
.min-w-full { min-width: 100%; }

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

thead tr {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
}

thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 500;
}

tbody td {
  padding: 0.75rem 1rem;
}

tbody tr {
  border-top: 1px solid var(--gray-200);
}

tbody tr:hover {
  background-color: var(--gray-50);
}

/* ========== RESPONSIVE (Mobile First) ========== */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:inline { display: inline; }
  .sm\:w-64 { width: 16rem; }
  .sm\:w-auto { width: auto; }
  .sm\:flex-initial { flex: 0 1 auto; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-left { text-align: left; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:inline { display: inline; }
  .lg\:block { display: block; }
}

/* ========== SCROLLBAR CUSTOMIZADA ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ========== UTILITIES EXTRAS ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

/* ========== FIM DO FALLBACK CSS ========== */

/* ========== LEGACY MODERNIZER (páginas ainda com classes Bootstrap/legadas) ========== */

/* Cards */
.card {
  background: #fff !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  padding: 1.25rem !important;
  margin-bottom: 1.5rem !important;
}

.card-header {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: var(--gray-800) !important;
  padding-bottom: 0.75rem !important;
  margin-bottom: 1rem !important;
  border-bottom: 1px solid var(--gray-200) !important;
}

/* Botões legados */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  padding: 0.5rem 1rem !important;
  border: none !important;
  border-radius: 0.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}

.btn-sm {
  padding: 0.375rem 0.75rem !important;
  font-size: 0.75rem !important;
}

.btn-primary {
  background: var(--indigo-600) !important;
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--indigo-700) !important;
}

.btn-secondary {
  background: var(--gray-100) !important;
  color: var(--gray-700) !important;
}
.btn-secondary:hover {
  background: var(--gray-200) !important;
}

.btn-success {
  background: var(--green-600) !important;
  color: #fff !important;
}
.btn-success:hover {
  background: var(--green-700) !important;
}

.btn-warning {
  background: var(--yellow-100) !important;
  color: var(--yellow-800) !important;
}
.btn-warning:hover {
  background: var(--yellow-200) !important;
}

.btn-danger {
  background: var(--red-600) !important;
  color: #fff !important;
}
.btn-danger:hover {
  background: var(--red-700) !important;
}

/* Formulários legados */
.form-group {
  margin-bottom: 1.25rem !important;
}

.form-label,
label {
  display: block !important;
  margin-bottom: 0.35rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--gray-700) !important;
}

.form-control {
  width: 100% !important;
  padding: 0.5rem 0.75rem !important;
  border: 1px solid var(--gray-300) !important;
  border-radius: 0.5rem !important;
  background: #fff !important;
  color: var(--gray-800) !important;
  font-family: inherit !important;
  font-size: 0.9375rem !important;
  transition: all 0.15s !important;
}

.form-control:focus {
  outline: 2px solid var(--indigo-600) !important;
  outline-offset: 2px !important;
  border-color: var(--indigo-600) !important;
}

/* Tabelas legadas */
.table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.875rem !important;
}

.table thead th {
  background: var(--gray-50) !important;
  color: var(--gray-600) !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em !important;
  padding: 0.75rem 1rem !important;
  text-align: left !important;
  font-weight: 500 !important;
}

.table tbody td,
.table tbody th {
  padding: 0.75rem 1rem !important;
  border-top: 1px solid var(--gray-100) !important;
}

.table tbody tr:hover {
  background: var(--gray-50) !important;
}

/* Badges */
.badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.25rem 0.625rem !important;
  border-radius: 9999px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem !important;
  border-radius: 0.5rem !important;
  margin-bottom: 1rem !important;
  border: 1px solid transparent !important;
  font-size: 0.875rem !important;
}

.alert-success {
  background: #dcfce7 !important;
  color: #166534 !important;
  border-color: #bbf7d0 !important;
}

.alert-danger {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fecaca !important;
}

.alert-warning {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}

/* Breadcrumb */
.breadcrumb {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-bottom: 1.25rem !important;
  font-size: 0.875rem !important;
  color: var(--gray-500) !important;
}

.breadcrumb a {
  color: var(--gray-500) !important;
}
.breadcrumb a:hover {
  color: var(--indigo-600) !important;
}

/* Respostas em chamados */
.resposta {
  border-left: 4px solid var(--indigo-600) !important;
  border-radius: 0 0.5rem 0.5rem 0 !important;
  padding: 1rem !important;
  margin-bottom: 1rem !important;
  background: var(--gray-50) !important;
}

/* Anexos */
.anexo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.5rem !important;
  background: var(--gray-100) !important;
  color: var(--gray-700) !important;
  text-decoration: none !important;
  margin: 0.25rem !important;
  font-size: 0.875rem !important;
}

.anexo:hover {
  background: var(--gray-200) !important;
}

/* Status badges legados */
.status-aberto { background: #dcfce7 !important; color: #166534 !important; }
.status-em_andamento { background: #dbeafe !important; color: #1e40af !important; }
.status-fechado { background: #fee2e2 !important; color: #991b1b !important; }

/* Dashboard legado */
.dashboard-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 1rem !important;
  margin-bottom: 1.5rem !important;
}

.stat-card {
  background: #fff !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: 0.75rem !important;
  padding: 1.5rem !important;
  text-align: center !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.stat-number {
  font-size: 2rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.25rem !important;
}

.stat-label {
  color: var(--gray-500) !important;
  font-size: 0.875rem !important;
}

/* Notificações legadas */
.notification-item {
  padding: 0.75rem 1rem !important;
  border-left: 4px solid var(--indigo-600) !important;
  border-radius: 0 0.5rem 0.5rem 0 !important;
  margin-bottom: 0.75rem !important;
  background: #fff !important;
  border: 1px solid var(--gray-200) !important;
}

.notification-item.unread {
  border-left-color: var(--green-600) !important;
  background: #f0fdf4 !important;
}

.notification-title {
  font-weight: 600 !important;
  margin-bottom: 0.25rem !important;
  color: var(--gray-800) !important;
}

.notification-time {
  font-size: 0.75rem !important;
  color: var(--gray-500) !important;
}

/* Itens de chamado legados */
.chamado-item {
  padding: 0.875rem 1rem !important;
  border-bottom: 1px solid var(--gray-100) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.chamado-item:last-child {
  border-bottom: none !important;
}

.chamado-titulo {
  font-weight: 600 !important;
  margin-bottom: 0.25rem !important;
  color: var(--gray-800) !important;
}

.chamado-meta {
  font-size: 0.75rem !important;
  color: var(--gray-500) !important;
}

/* Grid legado */
.row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin: -0.5rem !important;
}

.col-md-4,
.col-md-6,
.col-md-8 {
  padding: 0.5rem !important;
}

.col-md-4 { flex: 0 0 33.333% !important; max-width: 33.333% !important; }
.col-md-6 { flex: 0 0 50% !important; max-width: 50% !important; }
.col-md-8 { flex: 0 0 66.666% !important; max-width: 66.666% !important; }

@media (max-width: 768px) {
  .col-md-4,
  .col-md-6,
  .col-md-8 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* Textos auxiliares */
.text-muted {
  color: var(--gray-500) !important;
}

/* Títulos legados */
h1, h2, h3, h4 {
  color: var(--gray-800) !important;
  font-weight: 600 !important;
}

h1 { font-size: 1.5rem !important; margin-bottom: 0.5rem !important; }
h2 { font-size: 1.25rem !important; margin-bottom: 0.5rem !important; }
h3 { font-size: 1.125rem !important; margin-bottom: 0.5rem !important; }
h4 { font-size: 1rem !important; margin-bottom: 0.5rem !important; }

/* Container de gráficos */
.chart-container {
  position: relative !important;
  height: 18rem !important;
  margin-top: 1rem !important;
}

/* Paginação legada */
.pagination {
  display: flex !important;
  gap: 0.25rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pagination a,
.pagination span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.375rem 0.75rem !important;
  border-radius: 0.375rem !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
}

.pagination a {
  background: var(--gray-100) !important;
  color: var(--gray-700) !important;
}

.pagination a:hover {
  background: var(--gray-200) !important;
}

.pagination .active span {
  background: var(--indigo-600) !important;
  color: #fff !important;
}

/* Container legado */
.container {
  max-width: 80rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 1rem !important;
}

/* Indicador de prioridade */
.priority-indicator {
  display: inline-block !important;
  width: 0.5rem !important;
  height: 0.5rem !important;
  border-radius: 50% !important;
  margin-right: 0.35rem !important;
}

/* Templates */
.template-list {
  max-height: 28rem !important;
  overflow-y: auto !important;
}

.template-item {
  padding: 1rem !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: 0.5rem !important;
  margin-bottom: 0.75rem !important;
  cursor: pointer !important;
  background: #fff !important;
  transition: all 0.15s !important;
}

.template-item:hover {
  border-color: var(--indigo-300) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.template-title {
  font-weight: 600 !important;
  margin-bottom: 0.25rem !important;
  color: var(--gray-800) !important;
}

.template-meta {
  font-size: 0.75rem !important;
  color: var(--gray-500) !important;
  margin-bottom: 0.5rem !important;
}

.template-content {
  font-size: 0.875rem !important;
  color: var(--gray-600) !important;
}

.badge-public {
  background: #dcfce7 !important;
  color: #166534 !important;
}

.badge-private {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

/* Modal legado */
.modal {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 1000 !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal[style*="display: block"],
.modal.show {
  display: flex !important;
}

.modal-content {
  background: #fff !important;
  margin: auto !important;
  padding: 1.5rem !important;
  border-radius: 0.75rem !important;
  max-width: 32rem !important;
  width: calc(100% - 2rem) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

/* Página de teste de e-mail */
.config-card {
  background: #fff !important;
  border: 1px solid var(--gray-200) !important;
  border-left: 4px solid var(--indigo-600) !important;
  border-radius: 0.5rem !important;
  padding: 1rem !important;
  margin-bottom: 1rem !important;
}

.success-message {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0.5rem !important;
  margin-bottom: 1rem !important;
}

.error-message {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0.5rem !important;
  margin-bottom: 1rem !important;
}

/* Editar chamado / informações */
.chamado-info {
  background: var(--gray-50) !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: 0.75rem !important;
  padding: 1rem !important;
  margin-bottom: 1.25rem !important;
}

.chamado-info h3 {
  margin-top: 0 !important;
  color: var(--gray-700) !important;
  font-size: 1rem !important;
  margin-bottom: 0.75rem !important;
}

.info-item {
  display: flex !important;
  justify-content: space-between !important;
  padding: 0.5rem 0 !important;
  border-bottom: 1px solid var(--gray-200) !important;
  font-size: 0.875rem !important;
}

.info-item:last-child {
  border-bottom: none !important;
}

.info-label {
  font-weight: 500 !important;
  color: var(--gray-500) !important;
}

.status-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.25rem 0.625rem !important;
  border-radius: 9999px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
}

/* Ativo relacionado */
.ativo-relacionado {
  margin-bottom: 1.25rem !important;
}

.ativo-relacionado-label {
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  color: var(--gray-500) !important;
  margin-bottom: 0.35rem !important;
}

/* ========== FIM DO LEGACY MODERNIZER ========== */
