:root { /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px; }

/* Dark mode colors */
@media (prefers-color-scheme: dark) { :root { /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb); } }

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] { /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb); }

[data-color-scheme="light"] { /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb); }
/* Base styles */
html { font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box; }

body { 
  margin: 0;
  padding: 0;
  /* ADICIONE ESTA LINHA ABAIXO: */
  background-color: #003d5c; /* Cor azul do seu tema para evitar clarão branco */
}
*,
*::before,
*::after { box-sizing: inherit; }
/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 { margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight); }

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-md); }

p { margin: 0 0 var(--space-16) 0; }
a { color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard); }
a:hover { color: var(--color-primary-hover); }
code,
pre { font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm); }

code { padding: var(--space-1) var(--space-4); }

pre { padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border); }

pre code { background: none;
  padding: 0; }

/* Buttons */
.btn { display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative; }

.btn:focus-visible { outline: none;
  box-shadow: var(--focus-ring); }

.btn--primary { background: var(--color-primary);
  color: var(--color-btn-primary-text); }

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

.btn--primary:active { background: var(--color-primary-active); }

.btn--secondary { background: var(--color-secondary);
  color: var(--color-text); }
.btn--secondary:hover { background: var(--color-secondary-hover); }
.btn--secondary:active { background: var(--color-secondary-active); }
.btn--outline { background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text); }
.btn--outline:hover { background: var(--color-secondary); }
.btn--sm { padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm); }
.btn--lg { padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md); }
.btn--full-width { width: 100%; }
.btn:disabled { opacity: 0.5;
  cursor: not-allowed; }

/* Form elements */
.form-control { display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard); }

textarea.form-control { font-family: var(--font-family-base);
  font-size: var(--font-size-base); }

select.form-control { padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32); }

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) { select.form-control { background-image: var(--select-caret-dark); } }

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control { background-image: var(--select-caret-dark); }

[data-color-scheme="light"] select.form-control { background-image: var(--select-caret-light); }

.form-control:focus { border-color: var(--color-primary);
  outline: var(--focus-outline); }

.form-label { display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm); }
.form-group { margin-bottom: var(--space-16); }

/* Card component */
.card { background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard); }

.card:hover { box-shadow: var(--shadow-md); }
.card__body { padding: var(--space-16); }
.card__header,
.card__footer { padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner); }

/* Status indicators - simplified with CSS variables */
.status { display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm); }

.status--success { background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity)); }

.status--error { background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity)); }

.status--warning { background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity)); }

.status--info { background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity)); }

/* Container layout */
.container { width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16); }

@media (min-width: 640px) { .container { max-width: var(--container-sm); } }
@media (min-width: 768px) { .container { max-width: var(--container-md); } }
@media (min-width: 1024px) { .container { max-width: var(--container-lg); } }
@media (min-width: 1280px) { .container { max-width: var(--container-xl); } }

/* Utility classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-8 { gap: var(--space-8); }
.gap-16 { gap: var(--space-16); }

.m-0 { margin: 0; }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }
.mx-8 { margin-left: var(--space-8);
  margin-right: var(--space-8); }
.my-8 { margin-top: var(--space-8);
  margin-bottom: var(--space-8); }

.p-0 { padding: 0; }
.py-8 { padding-top: var(--space-8);
  padding-bottom: var(--space-8); }
.px-8 { padding-left: var(--space-8);
  padding-right: var(--space-8); }
.py-16 { padding-top: var(--space-16);
  padding-bottom: var(--space-16); }
.px-16 { padding-left: var(--space-16);
  padding-right: var(--space-16); }

.block { display: block; }
.hidden { display: none; }

/* Accessibility */
.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; }

:focus-visible { outline: var(--focus-outline);
  outline-offset: 2px; }

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline { border: 1px solid var(--color-border-secondary); }

@font-face { font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2'); }

/* END PERPLEXITY DESIGN SYSTEM */
:root { /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-blue-300: rgba(64, 169, 255, 1);
  --color-blue-400: rgba(0, 136, 254, 1);
  --color-blue-500: rgba(0, 120, 212, 1);
  --color-blue-600: rgba(0, 103, 184, 1);
  --color-blue-700: rgba(0, 90, 158, 1);
  --color-blue-800: rgba(0, 85, 149, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  --color-brown-600-rgb: 94, 82, 64;
  --color-blue-500-rgb: 0, 120, 212;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  --color-bg-1: rgba(59, 130, 246, 0.08);
  --color-bg-2: rgba(245, 158, 11, 0.08);
  --color-bg-3: rgba(34, 197, 94, 0.08);
  --color-bg-4: rgba(239, 68, 68, 0.08);
  --color-bg-5: rgba(147, 51, 234, 0.08);
  --color-bg-6: rgba(249, 115, 22, 0.08);
  --color-bg-7: rgba(236, 72, 153, 0.08);
  --color-bg-8: rgba(6, 182, 212, 0.08);

  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-blue-500);
  --color-primary-hover: var(--color-blue-600);
  --color-primary-active: var(--color-blue-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-blue-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-blue-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  --color-success-rgb: 0, 120, 212;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px; }

[data-theme="dark"] { /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-blue-300-rgb: 64, 169, 255;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Background color tokens (Dark Mode) */
  --color-bg-1: rgba(29, 78, 216, 0.15);
  --color-bg-2: rgba(180, 83, 9, 0.15);
  --color-bg-3: rgba(21, 128, 61, 0.15);
  --color-bg-4: rgba(185, 28, 28, 0.15);
  --color-bg-5: rgba(107, 33, 168, 0.15);
  --color-bg-6: rgba(194, 65, 12, 0.15);
  --color-bg-7: rgba(190, 24, 93, 0.15);
  --color-bg-8: rgba(8, 145, 178, 0.15);

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-blue-300);
  --color-primary-hover: var(--color-blue-400);
  --color-primary-active: var(--color-blue-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-blue-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-blue-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  --color-success-rgb: var(--color-blue-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb); }

@media (prefers-color-scheme: dark) { :root { --color-gray-400-rgb: 119, 124, 124;
    --color-blue-300-rgb: 64, 169, 255;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    --color-bg-1: rgba(29, 78, 216, 0.15);
    --color-bg-2: rgba(180, 83, 9, 0.15);
    --color-bg-3: rgba(21, 128, 61, 0.15);
    --color-bg-4: rgba(185, 28, 28, 0.15);
    --color-bg-5: rgba(107, 33, 168, 0.15);
    --color-bg-6: rgba(194, 65, 12, 0.15);
    --color-bg-7: rgba(190, 24, 93, 0.15);
    --color-bg-8: rgba(8, 145, 178, 0.15);

    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-blue-300);
    --color-primary-hover: var(--color-blue-400);
    --color-primary-active: var(--color-blue-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-blue-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-blue-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    --color-success-rgb: var(--color-blue-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb); } }

@font-face { font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2'); }

html { font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box; }

body { margin: 0;
  padding: 0; }

*, *::before, *::after { box-sizing: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight); }

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p { margin: 0 0 var(--space-16) 0; }

.btn:focus-visible { outline: none;
  box-shadow: var(--focus-ring); }

.btn--primary { background: var(--color-primary);
  color: var(--color-btn-primary-text); }

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

.btn--secondary { background: var(--color-secondary);
  color: var(--color-text); }

.btn--secondary:hover { background: var(--color-secondary-hover); }

.btn--outline { background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text); }

.btn--outline:hover { background: var(--color-secondary); }

.btn--sm { padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm); }

.btn--full-width { width: 100%; }

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

.btn--danger:hover { background: #b71c1c; }

.form-control { display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard); }

textarea.form-control { font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  resize: vertical; }

select.form-control { -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32); }

@media (prefers-color-scheme: dark) { select }

[data-theme="dark"] select

[data-theme="light"] select

.form-control:focus { border-color: var(--color-primary);
  outline: var(--focus-outline); }

.form-label { display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm); }

.form-group { margin-bottom: var(--space-16); }

.container { width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
  max-width: 100%; }

/* App Specific Styles */

/* Login Screen - SIGP SaÃºde Style */
.login-screen { display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #003d5c 0%, #005580 50%, #00425f 100%);
  position: relative;
  overflow: hidden; }

.login-screen.active { display: flex; }

.login-wrapper { width: 100%;
  max-width: 1200px;
  min-height: 600px;
  display: flex;
  background-color: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin: var(--space-32);
  position: relative;
  z-index: 1; }

.login-left { flex: 1;
  background: linear-gradient(135deg, #003d5c 0%, #005580 100%);
  padding: var(--space-32) var(--space-32);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden; }

.login-branding { max-width: 400px;
  text-align: center;
  z-index: 2; }

.login-title { font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-16);
  color: white;
  line-height: 1.2;
  animation: fadeInDown 0.8s ease-out 0.1s both; }

.login-tagline { font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-24);
  animation: fadeInDown 0.8s ease-out 0.2s both; }

.login-right { flex: 1;
  padding: var(--space-32);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white; }

.login-form-container { width: 100%;
  max-width: 400px;
  animation: fadeInUp 0.8s ease-out 0.2s both; }

.login-form-title { font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-12);
  color: #003d5c; }

.login-form-subtitle { color: var(--color-text-secondary);
  margin-bottom: var(--space-32);
  font-size: var(--font-size-base); }

.login-btn { background: linear-gradient(135deg, #005580 0%, #003d5c 100%);
  border: none;
  padding: var(--space-12) var(--space-24);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 61, 92, 0.2); }

.login-btn:hover { background: linear-gradient(135deg, #003d5c 0%, #002a40 100%);
  box-shadow: 0 6px 16px rgba(0, 61, 92, 0.3);
  transform: translateY(-2px); }

.login-error { color: var(--color-error);
  font-size: var(--font-size-sm);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
  padding: 0;
  min-height: 0; }

.login-waves { position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 1;
  pointer-events: none; }

.login-waves svg { width: 100%;
  height: 100%; }

.login-waves-2 { bottom: 10px;
  z-index: 0; }

@keyframes fadeInDown { from { opacity: 0;
    transform: translateY(-20px); }
  to { opacity: 1;
    transform: translateY(0); } }

@keyframes fadeInUp { from { opacity: 0;
    transform: translateY(20px); }
  to { opacity: 1;
    transform: translateY(0); } }

/* Responsive login screen */
@media (max-width: 968px) { .login-wrapper { flex-direction: column;
    margin: var(--space-16); }
  
  .login-left { padding: var(--space-32) var(--space-24);
    min-height: 300px; }
  
  .login-title { font-size: var(--font-size-2xl); }
  
  .login-tagline { font-size: var(--font-size-lg); }
  
  .login-description { font-size: var(--font-size-sm); }
  
  .login-right { padding: var(--space-24); }
  
  .login-form-title { font-size: var(--font-size-2xl); } }

.error-message { color: var(--color-error);
  font-size: var(--font-size-sm);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
  min-height: 20px; }

.main-app { display: none;
  min-height: 100vh;
  flex-direction: column; }

.main-app.active { display: flex; }

.app-header { position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #003d5c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-24) var(--space-24);
  box-shadow: var(--shadow-sm);
  z-index: 100; }

.header-content { display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-16);
  max-width: 100%; }

.header-user-info { display: flex;
  align-items: center;
  gap: var(--space-8); }

.user-welcome { font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9); }

.user-welcome strong { color: #ffffff;
  font-weight: var(--font-weight-semibold); }

.header-actions { display: flex;
  gap: var(--space-8);
  align-items: center; }

.app-header h1 { margin-bottom: var(--space-8);
  color: #ffffff; }

.subtitle { color: rgba(255, 255, 255, 0.8);
  margin: 0; }

/* --- LAYOUT PRINCIPAL (Ajustado para 230px) --- */

/* --- LAYOUT PRINCIPAL (Ajuste Fino: 210px) --- */

.app-layout {
  display: flex;
  min-height: calc(100vh - 100px);
  margin-top: 110px;
}

/* Barra Lateral - Mais Compacta */
.sidebar {
  position: fixed;
  top: 110px;
  left: 0;
  width: 210px; /* Reduzido para 210px */
  background-color: #003d5c;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-24) 0;
  height: calc(100vh - 110px);
  overflow-y: auto;
  z-index: 90;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px; /* Itens mais próximos verticalmente */
  padding: 0 8px; /* Padding lateral menor */
}

/* Botão da Sidebar - Ícone e Texto Próximos */
.sidebar-btn {
  background: transparent;
  border: none;
  width: 100%;
  
  /* Flexbox para alinhamento perfeito */
  display: flex;
  align-items: center; /* Centraliza verticalmente */
  justify-content: flex-start;
  
  /* Ajuste de Espaçamento */
  padding: 10px 8px; /* Padding reduzido */
  gap: 8px; /* Aproxima o texto do ícone (era 10px+) */
  
  /* Fonte */
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-standard);
  text-align: left;
  border-left: 3px solid transparent;
  line-height: 1; /* Remove altura extra de linha para centralizar melhor */
}

.sidebar-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-btn.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  border-left-color: #40A9FF;
  font-weight: var(--font-weight-semibold);
}

/* Ícone - Fixo e Centralizado */
.sidebar-icon {
  font-size: 18px;
  width: 20px; /* Largura fixa do ícone */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Conteúdo Principal - Acompanha a Sidebar */
.main-content {
  flex: 1;
  margin-left: 210px; /* Deve ser IGUAL à largura da sidebar */
  padding: var(--space-32) var(--space-32);
  overflow-y: auto;
  background-color: var(--color-background);
  min-height: calc(100vh - 110px);
}

.section-divider { height: 2px;
  background-color: var(--color-border);
  margin: var(--space-32) 0;
  border-radius: var(--radius-full); }

.section-subtitle { font-size: var(--font-size-xl);
  margin-bottom: var(--space-16);
  margin-top: var(--space-24);
  color: var(--color-text);
  font-weight: var(--font-weight-semibold); }

.tab-content { display: none; }

.tab-content.active { display: block; }

.section-header { display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-24);
  flex-wrap: wrap;
  gap: var(--space-16); }

.section-header h2 { margin: 0; }

.stats-cards { display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-16);
  margin-bottom: var(--space-32); }

.stat-card { background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  box-shadow: var(--shadow-sm); }

.stat-card h3 { font-size: var(--font-size-4xl);
  color: var(--color-primary);
  margin-bottom: var(--space-8); }

.stat-card p { color: var(--color-text-secondary);
  margin: 0;
  font-size: var(--font-size-sm); }

.filters-section { background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  margin-bottom: var(--space-32); }

.filters-grid { display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-16);
  margin-bottom: var(--space-16); }

.actions-bar { display: flex;
  justify-content: flex-end;
  gap: var(--space-8);
  margin-bottom: var(--space-24); }

.tasks-list { display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-bottom: var(--space-32); }

.tasks-table { background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-32); }

.tasks-table table { width: 100%;
  border-collapse: collapse; }

.tasks-table thead { background-color: var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 10; }

.tasks-table th { padding: var(--space-10) var(--space-12);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap; }

.tasks-table td { padding: var(--space-8) var(--space-12);
  border-bottom: 1px solid var(--color-card-border-inner);
  font-size: var(--font-size-sm);
  vertical-align: middle; }

.tasks-table tbody tr { transition: background-color var(--duration-fast) var(--ease-standard); }

.tasks-table tbody tr:hover { background-color: var(--color-bg-1); }

.tasks-table tbody tr:last-child td { border-bottom: none; }

.task-action-btn { background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-4);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-standard);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px; }

.task-action-btn:hover { background-color: var(--color-secondary); }

.task-action-btn.edit { color: var(--color-primary); }

.task-action-btn.delete { color: var(--color-error); }

.task-actions-compact { display: flex;
  gap: var(--space-4);
  align-items: center; }

.task-card { background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-normal) var(--ease-standard); }

.task-card:hover { box-shadow: var(--shadow-md); }

.task-header { display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-16);
  flex-wrap: wrap;
  gap: var(--space-12); }

.task-status { display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium); }

.task-status.completed { background-color: rgba(var(--color-success-rgb), 0.15);
  color: var(--color-success);
  border: 1px solid rgba(var(--color-success-rgb), 0.25); }

.task-status.pending { background-color: rgba(var(--color-warning-rgb), 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(var(--color-warning-rgb), 0.25); }

.task-status.cancelled { background-color: rgba(var(--color-error-rgb), 0.15);
  color: var(--color-error);
  border: 1px solid rgba(var(--color-error-rgb), 0.25); }

.task-actions { display: flex;
  gap: var(--space-8); }

.task-body { display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-16); }

.task-field { margin-bottom: var(--space-12); }

.task-field label { display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-medium); }

.task-field p { margin: 0;
  font-size: var(--font-size-base); }

.task-observations { grid-column: 1 / -1; }

.municipalities-table { background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-32); }

table { width: 100%;
  border-collapse: collapse; }

thead { background-color: var(--color-secondary); }

th { padding: var(--space-12);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border); }

td { padding: var(--space-12);
  border-bottom: 1px solid var(--color-card-border-inner);
  font-size: var(--font-size-sm); }

tbody tr:hover { background-color: var(--color-bg-1); }

.status-badge { display: inline-flex;
  align-items: center;
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium); }

.status-badge.active { background-color: rgba(var(--color-success-rgb), 0.15);
  color: var(--color-success);
  border: 1px solid rgba(var(--color-success-rgb), 0.25); }

.status-badge.blocked { background-color: rgba(var(--color-error-rgb), 0.15);
  color: var(--color-error);
  border: 1px solid rgba(var(--color-error-rgb), 0.25); }

.status-badge.stopped { background-color: rgba(var(--color-warning-rgb), 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(var(--color-warning-rgb), 0.25); }

.status-badge.not-deployed { background-color: rgba(var(--color-info-rgb), 0.15);
  color: var(--color-info);
  border: 1px solid rgba(var(--color-info-rgb), 0.25); }

.module-tags { display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  max-width: 100%; }

.module-tag { color: var(--color-white);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  display: inline-block;
  cursor: help;
  transition: all var(--duration-fast) var(--ease-standard); }

.module-tag:hover { transform: scale(1.05);
  filter: brightness(1.1); }

.charts-section { margin-bottom: var(--space-32); }

.charts-section h3,
.charts-section h4 { margin-bottom: var(--space-24);
  font-size: var(--font-size-xl); }

.charts-grid { display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24); }

.chart-card { background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  box-shadow: var(--shadow-sm); }

.chart-card h4 { margin-bottom: var(--space-16);
  font-size: var(--font-size-lg); }

.chart-card--wide { grid-column: 1 / -1; }

.chart-card canvas { max-height: 300px; }

/* Modal Styles */

.modal { display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s; }

.modal.show { display: flex;
  align-items: center;
  justify-content: center; }

@keyframes fadeIn { from { opacity: 0; }
  to { opacity: 1; } }

.modal-content { background-color: var(--color-surface);
  margin: auto;
  padding: 0;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  min-height: 200px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s; }

@keyframes slideIn { from { transform: translateY(-50px);
    opacity: 0; }
  to { transform: translateY(0);
    opacity: 1; } }

.modal-header { display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-24);
  border-bottom: 1px solid var(--color-border); }

.modal-header h3 { margin: 0; }

.close-btn { background: transparent;
  border: none;
  font-size: var(--font-size-3xl);
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-standard); }

.close-btn:hover { background-color: var(--color-secondary);
  color: var(--color-text); }

.modal-content form { padding: var(--space-24); }

.modal-actions { display: flex;
  justify-content: flex-end;
  gap: var(--space-12);
  margin-top: var(--space-24); }

.checkbox-group { display: flex;
  align-items: center; }

.checkbox-group label { display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: var(--font-weight-normal); }

.checkbox-group input[type="checkbox"] { margin-right: var(--space-8);
  width: 18px;
  height: 18px;
  cursor: pointer; }

/* --- Ajuste dos Checkboxes de Módulos (4 Colunas) --- */
.checkbox-grid { display: grid;
    /* Força exatamente 4 colunas de largura igual */
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px 12px; /* Reduzi levemente o gap horizontal para dar mais espaço ao texto */
    margin-top: 8px; }

.checkbox-grid label { display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px; /* Fonte levemente ajustada para caber melhor */
    color: var(--color-text);
    white-space: nowrap; /* Mantém o texto em uma linha só */
    overflow: hidden;    /* Segurança para não estourar se o nome for gigante */
    text-overflow: ellipsis; /* Adiciona "..." se cortar o texto */ }

.checkbox-grid input[type="checkbox"] { margin-right: 6px; /* Espaço um pouco menor entre caixa e texto */
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer; }

/* Responsividade para Tablet/Celular (Mantém a segurança) */
@media (max-width: 768px) { .checkbox-grid { /* No celular, volta para 2 colunas para ficar clicável */
        grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   TOAST NOTIFICATION (CORRIGIDO PARA O BOTÃO DESFAZER)
   ========================================================================== */

.toast {
    visibility: hidden;
    position: fixed;
    bottom: var(--space-32);
    right: var(--space-32);
    background-color: var(--color-slate-900);
    color: var(--color-white);
    padding: var(--space-16) var(--space-24);
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    font-size: var(--font-size-base);
    max-width: 400px;
    
    /* Configuração da Animação Suave (Transition) */
    opacity: 0;
    transform: translateX(100%); /* Começa escondido na direita */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(0); /* Desliza para a posição original */
    /* IMPORTANTE: Removemos a animação automática de saída aqui */
}

/* Tipos de Toast */
.toast.success { background-color: var(--color-success); }
.toast.error { background-color: var(--color-error); }
.toast.info { background-color: var(--color-info); }

/* --- Estilos do Botão Desfazer (NOVO) --- */
.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.btn-undo {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-left: 10px;
}

.btn-undo:hover {
    background-color: #ffffff;
    color: #333;
    border-color: #ffffff;
}

/* Footer */

.app-footer { background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-24) 0;
  margin-top: var(--space-32);
  text-align: center; }

.app-footer p { color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin: 0; }

/* Tooltip styles for header buttons */
.header-actions .btn { position: relative; }

.header-actions .btn[title]:hover::after { content: attr(title);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none; }

.header-actions .btn[title]:hover::before { content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  pointer-events: none; }

/* Results count styling */
.results-count { padding: var(--space-12) var(--space-16);
  background-color: var(--color-bg-1);
  border-radius: var(--radius-base);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-sm);
  color: var(--color-text); }

.results-count strong { color: var(--color-primary);
  font-weight: var(--font-weight-semibold); }

.filter-info { font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-top: var(--space-4); }

/* Character counter */
.char-counter { font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  text-align: right;
  margin-top: var(--space-4); }

.char-counter.limit-warning { color: var(--color-warning); }

.char-counter.limit-exceeded { color: var(--color-error); }

/* Settings Dropdown */
.settings-dropdown { position: relative;
  display: inline-block; }

.settings-menu { display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  z-index: 1000;
  overflow: hidden; }

.settings-menu.show { display: block;
  animation: fadeIn 0.2s ease-out; }

.settings-menu-item { display: flex;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
  padding: var(--space-12) var(--space-16);
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  text-align: left; }

.settings-menu-item:hover { background-color: var(--color-bg-1);
  color: var(--color-primary); }

.settings-divider { height: 1px;
  background-color: var(--color-border);
  margin: var(--space-4) 0; }

.empty-state { text-align: center;
  padding: var(--space-32);
  color: var(--color-text-secondary); }

.empty-state p { font-size: var(--font-size-lg);
  margin-bottom: var(--space-16); }

/* Backup and Restore Styles */
.backup-container { max-width: 800px;
  margin: 0 auto; }

.backup-card { background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  margin-bottom: var(--space-24);
  box-shadow: var(--shadow-sm); }

.backup-card h3 { font-size: var(--font-size-2xl);
  margin-bottom: var(--space-16);
  color: var(--color-text); }

.backup-description { color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
  font-size: var(--font-size-base);
  line-height: 1.6; }

.backup-message { margin-top: var(--space-16);
  padding: var(--space-12);
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  display: none; }

.backup-message.show { display: block; }

.backup-message.success { background-color: rgba(var(--color-success-rgb), 0.15);
  color: var(--color-success);
  border: 1px solid rgba(var(--color-success-rgb), 0.25); }

.backup-message.error { background-color: rgba(var(--color-error-rgb), 0.15);
  color: var(--color-error);
  border: 1px solid rgba(var(--color-error-rgb), 0.25); }

.backup-info { display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-12); }

.backup-info p { margin: var(--space-8) 0;
  font-size: var(--font-size-base);
  color: var(--color-text); }

.backup-info span { color: var(--color-primary);
  font-weight: var(--font-weight-semibold); }

.backup-warning { background-color: rgba(211, 47, 47, 0.1);
  border: 2px solid #d32f2f;
  border-radius: var(--radius-base);
  padding: var(--space-16);
  margin-bottom: var(--space-24); }

.backup-warning p { color: #d32f2f;
  margin: 0;
  font-size: var(--font-size-base); }

.backup-preview { background-color: var(--color-bg-1);
  border-radius: var(--radius-base);
  padding: var(--space-16);
  margin-bottom: var(--space-24); }

.backup-preview h4 { font-size: var(--font-size-lg);
  margin-bottom: var(--space-12);
  color: var(--color-text); }

.backup-preview ul { list-style: none;
  padding: 0;
  margin: 0; }

.backup-preview li { padding: var(--space-8) 0;
  font-size: var(--font-size-base);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border); }

.backup-preview li:last-child { border-bottom: none; }

.backup-preview li strong { color: var(--color-primary); }

/* Responsive */

/* ============================================
   CORREÃ‡Ã•ES IMPLEMENTADAS - SIGP SAÃšDE v4.0
   ============================================ */

/* CORREÃ‡ÃƒO 1: Login Screen - Labels e BotÃ£o LegÃ­veis âœ“ */
/* Login fields - Always uppercase */
#login-username,
#user-login { text-transform: uppercase; }

/* CORREÃ‡ÃƒO 1: Login labels - ALWAYS DARK for readability */
.login-form-container .form-label { color: #000000 !important;
  font-weight: var(--font-weight-semibold); }

/* CORREÃ‡ÃƒO 1: Login button text - ALWAYS WHITE */
.login-btn { color: #ffffff !important; }

/* CORREÃ‡ÃƒO 2: FormataÃ§Ã£o de Telefone (XX) XXXXX-XXXX âœ“ */
/* Implementado via JavaScript - formatPhoneNumber() */
/* Aplica em: Treinamentos, MunicÃ­pios, Orientadores, SolicitaÃ§Ãµes */

/* CORREÃ‡ÃƒO 3: BotÃ£o Nova ApresentaÃ§Ã£o Funcionando âœ“ */
/* Modal com checkboxes para seleÃ§Ã£o mÃºltipla de orientadores */
/* Implementado via JavaScript - showPresentationModal() */

/* CORREÃ‡ÃƒO 4: Cores dos MÃ³dulos Preservadas em Backup/RestauraÃ§Ã£o âœ“ */
/* Cores individuais salvas no backup e restauradas corretamente */
/* Implementado via JavaScript - createBackup() e confirmRestore() */

/* AJUSTE 1: Login and password fields - ALWAYS WHITE BACKGROUND */
#login-username,
#login-password { background-color: #ffffff !important;
  color: #000000 !important; }

#login-username::placeholder,
#login-password::placeholder { color: #999999 !important; }

@media (max-width: 768px) { .app-layout { flex-direction: column; }

  .sidebar { position: fixed;
    top: 110px;
    left: 0;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    z-index: 90; }

  .sidebar-nav { flex-direction: row;
    overflow-x: auto;
    padding: 0 var(--space-16); }

  .sidebar-btn { white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent; }

  .sidebar-btn.active { border-left-color: transparent;
    border-bottom-color: var(--color-primary); }

  .main-content { margin-left: 0;
    margin-top: 60px;
    padding: var(--space-24) var(--space-16); }

  .header-content { flex-direction: column;
    align-items: flex-start; }
  
  .header-actions { width: 100%;
    justify-content: flex-start; }
  
  .section-header { flex-direction: column;
    align-items: flex-start; }
  
  .filters-grid { grid-template-columns: 1fr; }
  
  .task-body { grid-template-columns: 1fr; }
  
  .charts-grid { grid-template-columns: 1fr; }
  
  .chart-card--wide { grid-column: 1; }
  
  .stats-cards { grid-template-columns: 1fr; }
  

  
  .modal-content { width: 95%;
    margin: var(--space-16); }
  
  table { font-size: var(--font-size-xs); }
  
  th, td { padding: var(--space-8); } }

```css
/* ==========================================================================
   📱 ESTILO V14 - CORREÇÃO DEFINITIVA PC VS CELULAR
   Substitua todo o final do arquivo style.css por este bloco.
   ========================================================================== */

/* Overlay do menu (sempre oculto por padrão) */
.sidebar-overlay { display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    backdrop-filter: blur(3px); }

/* ==========================================================================
   🖥️ COMPUTADOR (Telas maiores que 900px)
   Atualizado: Texto "MENU LATERAL" branco e bem visível.
   ========================================================================== */
@media (min-width: 901px) { /* Esconde o botão de menu do mobile */
    button.mobile-menu-toggle,
    .mobile-menu-toggle { display: none !important; }

    /* Sidebar fechada (padrão) */
    .sidebar { width: 70px !important;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-x: hidden;
        z-index: 1000;
        background-color: #003d5c;
        white-space: nowrap;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1); }

    /* Sidebar aberta (ao passar o mouse) - Largura 300px para caber o texto */
    .sidebar:hover { width: 300px !important;
        box-shadow: 5px 0 15px rgba(0,0,0,0.3); }

    /* Conteúdo principal se ajusta */
    .main-content { margin-left: 70px !important;
        width: calc(100% - 70px) !important;
        transition: margin-left 0.3s ease; }

    /* Estilo dos botões da sidebar */
    .sidebar-btn { padding: 10px 0;
        display: flex;
        align-items: center;
        justify-content: center; /* Centraliza ícone quando fechado */
        min-height: 50px;
        height: auto;
        position: relative; }

    /* Ícone sempre visível e centralizado */
    .sidebar-icon { margin: 0;
        min-width: 70px;
        font-size: 20px;
        text-align: center;
        flex-shrink: 0; }

    /* Texto do botão (some quando fechado) */
    .sidebar-btn span:last-child { opacity: 0;
        visibility: hidden;
        position: absolute;
        left: 70px;
        transition: opacity 0.2s ease;
        white-space: nowrap; }

    /* REGRAS AO PASSAR O MOUSE (ABERTO) */
    .sidebar:hover .sidebar-btn { justify-content: flex-start; }
    
    .sidebar:hover .sidebar-btn span:last-child { opacity: 1;
        visibility: visible;
        position: static;
        white-space: normal; /* Permite quebra de linha */
        line-height: 1.2;
        padding-right: 15px;
        font-size: 13px; }

    /* --- AQUI ESTÁ A ALTERAÇÃO DO MENU --- */
    
    /* Estado FECHADO (Ícone) */
    .sidebar-nav::before { content: "☰";
        display: block;
        text-align: center;
        color: #ffffff; /* Agora branco puro também no ícone */
        font-size: 24px;
        margin-bottom: 20px;
        cursor: default;
        height: 40px;
        line-height: 40px;
        opacity: 0.8; }
    
    /* Estado ABERTO (Texto) */
    .sidebar:hover .sidebar-nav::before { content: "Menu Lateral"; /* Alterado o texto */
        font-size: 14px;
        font-weight: 800; /* Negrito extra para destaque */
        letter-spacing: 1px;
        color: #ffffff !important; /* Branco total */
        opacity: 1;
        text-transform: uppercase; } }

/* ==========================================================================
   CORREÇÃO DE TABELAS E BADGES (AJUSTE VISUAL)
   ========================================================================== */

/* 1. Badges de Módulos (Quadrinhos) mais compactos */
.module-tags { display: flex;
    flex-wrap: wrap;
    gap: 2px; /* Menos espaço entre eles */
    align-items: center;
    max-width: 180px; /* Limita largura para não estourar */ }

.module-tag { font-size: 9px !important; /* Letra menor */
    padding: 1px 4px !important; /* Mais fino */
    border-radius: 3px;
    line-height: 1.2;
    font-weight: 600;
    display: inline-block; }

/* 2. Coluna de Status (Não quebrar linha) */
.status-badge { white-space: nowrap; /* Impede quebra de linha (Parou de usar) */
    font-size: 11px;
    padding: 4px 8px;
    display: inline-block; }

/* 3. Ajuste Geral da Tabela de Municípios */
#municipalities-table td { vertical-align: middle;
    padding: 8px 6px; /* Menos padding lateral */
    font-size: 13px; }

/* Garante largura mínima para colunas importantes */
#municipalities-table th:nth-child(1), /* Nome */
#municipalities-table td:nth-child(1) { min-width: 140px; }

#municipalities-table th:nth-child(2), /* Módulos */
#municipalities-table td:nth-child(2) { min-width: 120px; }

#municipalities-table th:last-child, /* Ações */
#municipalities-table td:last-child { min-width: 80px;
    text-align: center; }

/* ==========================================================================
   📱 REGRAS APENAS PARA CELULAR (Telas até 900px)
   Aqui nós montamos o layout mobile e mostramos o botão.
   ========================================================================== */
@media (max-width: 900px) { /* 1. BOTÃO MENU: Visível e Branco */
    html body .app-header .mobile-menu-toggle,
    button.mobile-menu-toggle { display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0 12px !important;
        margin-right: 10px !important;
        height: 36px !important;
        width: auto !important;
        border-radius: 4px;
        cursor: pointer;
        z-index: 1100;
        visibility: visible !important;
        
        /* Cores Brancas Fixas */
        color: #ffffff !important; 
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        background-color: rgba(0, 0, 0, 0.25) !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

    /* Ícone dentro do botão */
    button.mobile-menu-toggle * { color: #ffffff !important; }

    /* 2. Layout Principal */
    .app-layout { flex-direction: column;
        margin-top: 0; }

    /* 3. Cabeçalho Azul */
    .app-header { padding: 12px 15px;
        position: sticky;
        top: 0;
        z-index: 100;
        height: auto;
        background-color: #003d5c !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: white !important; }
    
    .app-header h1, .subtitle { color: #ffffff !important; }
    
    .header-content { display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start; }
    
    .header-user-info { display: none !important; }

    /* 4. Menu Lateral (Gaveta) */
    .sidebar { position: fixed;
        top: 0;
        left: -280px; 
        width: 240px;
        height: 100vh;
        background-color: #003d5c;
        transition: left 0.3s ease;
        z-index: 9999;
        box-shadow: 4px 0 15px rgba(0,0,0,0.6);
        padding-top: 10px;
        overflow-y: auto;
        display: block !important;
        border-right: 1px solid rgba(255,255,255,0.1); }

    .sidebar.mobile-open { left: 0; }

    .sidebar-nav { display: flex;
        flex-direction: column !important;
        width: 100%;
        padding: 0; }

    .sidebar-btn { display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 14px 15px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        border-left: 4px solid transparent;
        color: rgba(255,255,255,0.9) !important;
        background: transparent;
        height: auto;
        white-space: normal !important;
        text-align: left; }

    .sidebar-btn.active { background-color: rgba(255,255,255,0.15);
        border-left-color: #40A9FF;
        color: #ffffff !important;
        font-weight: 700; }

    .sidebar-icon { font-size: 18px;
        margin-right: 10px;
        min-width: 24px;
        text-align: center;
        color: #ffffff !important; }
    
    .sidebar-btn span:last-child { display: block; }

    /* 5. Conteúdo */
    .main-content { margin-left: 0;
        width: 100%;
        padding: 10px;
        padding-top: 15px; }

    /* 6. Botões do Topo (Alinhados) */
    .header-actions { width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 12px;
        gap: 8px;
        flex-wrap: nowrap; }
    
    .header-actions .btn { font-size: 11px;
        padding: 8px 0;
        flex: 1;
        min-width: 0;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center; }
    
    .header-actions .btn--outline,
    .header-actions .btn--secondary { background-color: rgba(255,255,255,0.1) !important;
        color: white !important;
        border: 1px solid rgba(255,255,255,0.3) !important; }

    /* Tabelas */
    .tasks-table, .municipalities-table { display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; }

    .sidebar-overlay.active { display: block; }
    
    .login-wrapper { margin: 0; border-radius: 0; min-height: 100vh; }
    .login-left { display: none; }
    .login-right { padding: 20px; } }

/* ==========================================================================
   CORREÇÕES FINAIS (MENU MOBILE + BADGES)
   Cole este bloco no FINAL do seu arquivo style.css original.
   ========================================================================== */

/* 1. ESTILOS PARA OS BADGES (Módulos Coloridos e Status) */
.module-tags { display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
    max-width: 200px; }

.module-tag { font-size: 10px !important;
    padding: 2px 6px !important;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    margin-bottom: 2px; }

.status-badge { white-space: nowrap;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600; }

/* 2. CORREÇÃO DE LARGURA DE TABELAS */
/* Garante que as colunas não fiquem espremidas */
table th, table td { white-space: nowrap; /* Impede quebra de linha em nomes/datas */
    vertical-align: middle; }

/* Quebra de linha permitida apenas na coluna de módulos se for muito grande */
table td .module-tags { white-space: normal; }

/* ==========================================================================
   3. MENU MOBILE (CORREÇÃO DEFINITIVA PC x CELULAR)
   ========================================================================== */

/* Oculta botão e overlay no PC (Telas Grandes) */
button.mobile-menu-toggle,
.mobile-menu-toggle,
.sidebar-overlay { display: none !important; }

/* REGRAS APENAS PARA CELULAR (Até 900px) */
@media (max-width: 900px) { /* Mostra Botão Menu (Branco) */
    html body .app-header .mobile-menu-toggle,
    button.mobile-menu-toggle { display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0 12px !important;
        margin-right: 10px !important;
        height: 36px !important;
        width: auto !important;
        border-radius: 4px;
        cursor: pointer;
        z-index: 1100;
        visibility: visible !important;
        
        color: #ffffff !important; 
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        background-color: rgba(0, 0, 0, 0.25) !important; }

    button.mobile-menu-toggle * { color: #ffffff !important; }

    /* Cabeçalho Azul Fixo */
    .app-header { padding: 10px 15px;
        position: sticky;
        top: 0;
        z-index: 100;
        background-color: #003d5c !important;
        color: white !important;
        height: auto; }
    
    .app-header h1, .subtitle { color: #ffffff !important; }

    .header-user-info { display: none !important; }

    .app-layout { flex-direction: column;
        margin-top: 0; }

    /* Menu Lateral (Gaveta) */
    .sidebar { position: fixed;
        top: 0;
        left: -280px; 
        width: 250px;
        height: 100vh;
        background-color: #003d5c;
        z-index: 9999;
        transition: left 0.3s ease;
        box-shadow: 4px 0 15px rgba(0,0,0,0.6);
        display: block !important;
        padding-top: 10px;
        overflow-y: auto; }

    .sidebar.mobile-open { left: 0; }

    .sidebar-nav { display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0; }

    .sidebar-btn { width: 100%;
        padding: 14px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        color: rgba(255,255,255,0.9) !important;
        text-align: left;
        white-space: normal !important; /* Permite nome grande quebrar linha */ }

    /* Botões do Topo Centralizados */
    .header-actions { width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
        gap: 8px;
        flex-wrap: nowrap; }

    .header-actions .btn { font-size: 11px;
        padding: 8px 0;
        flex: 1;
        text-align: center;
        min-width: 0;
        justify-content: center; }

    /* Conteúdo Principal */
    

    /* Overlay Ativo */
    .sidebar-overlay.active { display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.7);
        z-index: 9998; } }

/* ==========================================================================
   MENU RETRÁTIL (PC) + MENU MOBILE (CELULAR)
   Cole este bloco no FINAL do seu arquivo style.css
   ========================================================================== */

/* 1. Ajustes Globais para Tabelas (Para aproveitar o espaço extra) */
table th, table td { white-space: nowrap;
    vertical-align: middle; }
table td .module-tags { white-space: normal; /* Permite quebrar linha nos módulos */ }

/* Overlay do menu (fundo escuro no mobile) */
.sidebar-overlay { display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    backdrop-filter: blur(3px); }

/* ==========================================================================
   🖥️ COMPUTADOR (Telas maiores que 900px)
   Sidebar fina (só ícones) que abre ao passar o mouse
   ========================================================================== */
@media (min-width: 901px) { /* Esconde o botão de menu do mobile */
    button.mobile-menu-toggle,
    .mobile-menu-toggle { display: none !important; }

    /* Sidebar fechada (padrão) */
    .sidebar { width: 70px !important; /* Largura fina */
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-x: hidden;
        z-index: 1000;
        background-color: #003d5c;
        white-space: nowrap;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1); }

    /* Sidebar aberta (ao passar o mouse) */
    .sidebar:hover { width: 280px !important; /* Largura total */
        box-shadow: 5px 0 15px rgba(0,0,0,0.3); }

    /* Conteúdo principal se ajusta */
    .main-content { margin-left: 70px !important; /* Cola na sidebar fina */
        width: calc(100% - 70px) !important;
        transition: margin-left 0.3s ease; }

    /* Estilo dos botões da sidebar */
    .sidebar-btn { padding: 12px 0;
        justify-content: center; /* Centraliza ícone */
        height: 50px;
        position: relative; }

    /* Ícone sempre visível e centralizado */
    .sidebar-icon { margin: 0;
        min-width: 70px;
        font-size: 20px;
        text-align: center; }

    /* Texto do botão (some quando fechado) */
    .sidebar-btn span:last-child { opacity: 0;
        visibility: hidden;
        position: absolute;
        left: 70px;
        transition: opacity 0.2s ease;
        white-space: nowrap; }

    /* Texto aparece ao passar o mouse */
    .sidebar:hover .sidebar-btn { justify-content: flex-start; }
    
    .sidebar:hover .sidebar-btn span:last-child { opacity: 1;
        visibility: visible;
        position: static; }

    /* Ícone de "Menu" visual no topo */
    .sidebar-nav::before { content: "☰";
        display: block;
        text-align: center;
        color: rgba(255,255,255,0.5);
        font-size: 24px;
        margin-bottom: 20px;
        cursor: default;
        height: 40px;
        line-height: 40px; }
    .sidebar:hover .sidebar-nav::before { content: "MENU LATERAL";
        font-size: 14px;
        font-weight: bold;
        letter-spacing: 1px;
        color: rgba(255,255,255,0.3); } }

/* ==========================================================================
   📱 CELULAR (Telas menores ou iguais a 900px)
   Menu gaveta com botão no topo
   ========================================================================== */
@media (max-width: 900px) { /* Botão Menu Visível */
    html body .app-header .mobile-menu-toggle,
    button.mobile-menu-toggle { display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0 12px !important;
        margin-right: 10px !important;
        height: 36px !important;
        border-radius: 4px;
        visibility: visible !important;
        color: #ffffff !important; 
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        background-color: rgba(0, 0, 0, 0.25) !important; }

    button.mobile-menu-toggle * { color: #ffffff !important; }

    /* Header Ajustado */
    .app-header { padding: 10px 15px;
        position: sticky;
        top: 0;
        background-color: #003d5c !important;
        color: white !important;
        height: auto; }

    .app-layout { flex-direction: column; margin-top: 0; }
    .header-user-info { display: none !important; }

    /* Sidebar (Gaveta Escondida) */
    .sidebar { position: fixed;
        top: 0; left: -280px; 
        width: 250px !important;
        height: 100vh;
        background-color: #003d5c;
        z-index: 9999;
        transition: left 0.3s ease;
        box-shadow: 4px 0 15px rgba(0,0,0,0.6);
        display: block !important;
        padding-top: 10px; }

    .sidebar.mobile-open { left: 0; }

    .sidebar-nav { padding: 0; }
    .sidebar-nav::before { display: none; } /* Remove ícone visual no mobile */

    .sidebar-btn { width: 100%;
        padding: 14px 15px;
        justify-content: flex-start;
        color: rgba(255,255,255,0.9) !important;
        white-space: normal !important;
        height: auto; }
    
    .sidebar-btn span:last-child { opacity: 1;
        visibility: visible;
        position: static; }

    .sidebar-icon { font-size: 18px;
        margin-right: 10px;
        min-width: 24px;
        text-align: center; }

    .main-content { margin-left: 0 !important;
        width: 100% !important;
        padding: 10px 10px 50px 10px; }

    .sidebar-overlay.active { display: block; }

    .header-actions { width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
        gap: 8px; }
    .header-actions .btn { font-size: 11px;
        padding: 8px 0;
        flex: 1;
        text-align: center; } }

/* ==========================================================================
   CORREÇÃO FINAL V19 - BOTÕES FINOS (30px) + HEADER ALINHADO
   Substitua o bloco anterior no final do style.css
   ========================================================================== */

/* 1. GRID DO HEADER (Mantém o alinhamento Esq - Centro - Dir) */
.header-content { display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center;
    width: 100%;
    gap: 10px; }

/* 2. CENTRALIZAR BEM-VINDO */
.header-user-info { display: flex !important;
    justify-content: center !important;
    white-space: nowrap;
    width: 100%; }

/* 3. AJUSTE FINO DOS BOTÕES (30px de altura) */
.header-actions .btn { display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important; /* Reduzido de 38px para 30px (Mais fino) */
    padding: 0 12px !important;
    font-size: 12px !important; /* Tamanho de fonte equilibrado */
    line-height: 1 !important;
    vertical-align: middle !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    white-space: nowrap; /* Texto nunca quebra linha */ }

/* 4. REGRAS ESPECÍFICAS PARA COMPUTADOR (> 901px) */
@media (min-width: 901px) { .app-header { padding-left: 20px !important;
        padding-right: 20px !important; }

    .header-actions { justify-content: flex-end;
        display: flex;
        gap: 8px; }

    /* --- MENU LATERAL --- */
    
    /* Esconde botão mobile */
    button.mobile-menu-toggle, .mobile-menu-toggle { display: none !important; }

    /* Sidebar Fechada */
    .sidebar { width: 70px !important;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        background-color: #003d5c;
        white-space: nowrap; }

    /* Sidebar Aberta */
    .sidebar:hover { width: 300px !important;
        box-shadow: 5px 0 15px rgba(0,0,0,0.3); }

    /* Conteúdo */
    

    /* Botões da Sidebar */
    .sidebar-btn { padding: 10px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        height: auto; }

    .sidebar-icon { margin: 0;
        min-width: 70px;
        font-size: 20px;
        text-align: center;
        flex-shrink: 0; }

    /* Texto dos botões */
    .sidebar-btn span:last-child { opacity: 0;
        visibility: hidden;
        position: absolute;
        left: 70px;
        white-space: nowrap; }

    .sidebar:hover .sidebar-btn { justify-content: flex-start; }
    
    .sidebar:hover .sidebar-btn span:last-child { opacity: 1;
        visibility: visible;
        position: static;
        white-space: normal;
        line-height: 1.2;
        padding-right: 15px;
        font-size: 13px; }

    /* CABEÇALHO DO MENU LATERAL */
    .sidebar-nav::before { content: "☰";
        display: block;
        text-align: center;
        color: #ffffff;
        font-size: 24px;
        margin-bottom: 20px;
        height: 40px;
        line-height: 40px; }
    
    /* Texto MENU LATERAL no Hover */
    .sidebar:hover .sidebar-nav::before { content: "Menu Lateral" !important;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 1px;
        color: #ffffff !important;
        text-transform: uppercase; } }

/* 5. MOBILE (Segurança) */
@media (max-width: 900px) { .header-content { display: flex !important; flex-wrap: wrap; }
    .header-user-info { display: none !important; }
    
    html body .app-header .mobile-menu-toggle, button.mobile-menu-toggle { display: inline-flex !important; } }
/* ==========================================================================
   AJUSTES TABELA MUNICÍPIOS (COLUNAS E QUEBRAS)
   Adicione no FINAL do style.css
   ========================================================================== */

/* Permite que o cabeçalho da tabela quebre linha (ex: Data<br>Implantação) */
table th { vertical-align: bottom; /* Alinha texto do cabeçalho embaixo */
    line-height: 1.2;      /* Melhora leitura de texto quebrado */
    padding: 8px 6px;      /* Padding mais compacto */ }

/* Ajuste fino das larguras das colunas para aproximar informações */
/* Coluna 1: Município */
#municipalities-table td:nth-child(1) { width: 15%; 
    min-width: 120px; }

/* Coluna 2: Módulos (Bem compacta) */
#municipalities-table td:nth-child(2) { width: 10%; 
    min-width: 80px; }

/* Coluna 3: Gestor (Cola na coluna módulos) */
#municipalities-table td:nth-child(3) { width: 15%; }

/* Colunas de Datas (Centralizadas e compactas) */
#municipalities-table td:nth-child(5), /* Implantação */
#municipalities-table td:nth-child(6), /* Visita */
#municipalities-table td:nth-child(10) /* Data Fim */ { text-align: center;
    font-size: 12px; }
/* ==========================================================================
   CORREÇÃO ALINHAMENTO TABELA MUNICÍPIOS
   Adicione no FINAL do style.css
   ========================================================================== */

/* Força o cabeçalho das colunas de data a ficarem centralizados */
#municipalities-table th:nth-child(5),  /* Data Implantação */
#municipalities-table th:nth-child(6),  /* Última Visita */
#municipalities-table th:nth-child(10)  /* Data Bloqueio */ { text-align: center !important;
    vertical-align: middle !important; }

/* Garante que o conteúdo dessas colunas também esteja centralizado */
#municipalities-table td:nth-child(5),
#municipalities-table td:nth-child(6),
#municipalities-table td:nth-child(10) { text-align: center !important; }

/* ==========================================================================
   AJUSTE FINO: STATUS MAIS COMPACTOS (V20)
   Adicione no final do style.css
   ========================================================================== */

.task-status { padding: 2px 8px !important;  /* Reduzido o espaço interno (antes era 4px 10px) */
    font-size: 10px !important;   /* Letra um pouco menor (antes era 11px) */
    line-height: 1.2 !important;  /* Altura de linha mais justa */
    min-height: auto !important;  /* Remove altura mínima forçada */
    height: auto !important;
    font-weight: 700 !important;  /* Negrito para manter legibilidade */
    border-width: 1px !important; /* Borda fina */
    white-space: nowrap;          /* Garante que não quebra linha */
    display: inline-block;        /* Comportamento compacto */ }

/* ==========================================================================
   AJUSTE DE GRÁFICOS (OCUPAR 2 COLUNAS)
   Adicione no final do style.css
   ========================================================================== */
@media (min-width: 1100px) { .chart-card--span-2 { grid-column: span 2; } }
/* ==========================================================================
   CORREÇÃO DE CORES (TEMA CLARO/ESCURO) E REMOÇÃO DE NEGRITO
   Adicione ao final do style.css
   ========================================================================== */

/* Célula Principal (Nome do Município, Usuário, etc) */
.text-primary-cell { font-weight: normal !important; /* Remove o negrito (Pedido 1 e 2) */
    color: #000000;                 /* Cor Preta no modo Claro */
    font-size: 14px; }

/* Célula Secundária (Observações, Justificativas - estava cinza fixo #555) */
.text-secondary-cell { font-size: 12px;
    color: var(--color-text-secondary); /* Usa a variável do tema (Cinza escuro ou claro) */ }

/* --- REGRAS PARA O TEMA ESCURO (Pedido 3) --- */
/* Quando o atributo data-theme for "dark" ou data-color-scheme for "dark" */
[data-theme="dark"] .text-primary-cell,
[data-color-scheme="dark"] .text-primary-cell { color: #ffffff !important;      /* Muda para Branco no modo Escuro */ }

/* Garante que o texto secundário fique legível no escuro */
[data-theme="dark"] .text-secondary-cell,
[data-color-scheme="dark"] .text-secondary-cell { color: rgba(255, 255, 255, 0.7) !important; }

/* Removemos a cor preta forçada de links ou textos dentro das tabelas no modo escuro */
[data-theme="dark"] table td { color: var(--color-text); }

/* ==========================================================================
   CORREÇÃO: ÍCONES DE INPUT DATE E SELECTS (TEMA ESCURO)
   ========================================================================== */

/* Inverte a cor do ícone de calendário no input date para ficar branco */
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1);
    cursor: pointer; }

/* Opcional: Garante que o texto digitado dentro do input fique claro */
[data-theme="dark"] input[type="date"],
[data-theme="dark"] select.form-control,
[data-theme="dark"] input.form-control { color: var(--color-text);
    background-color: var(--color-surface); }
/* ==========================================================================
   CORREÇÃO: TEXTO DOS CARDS DE ESTATÍSTICA (RODAPÉ DAS TABELAS)
   Adicione ao final do style.css
   ========================================================================== */

/* Força a descrição (ex: "Total de Municípios") a ficar clara no tema escuro */
[data-theme="dark"] .stat-card p,
[data-color-scheme="dark"] .stat-card p { color: rgba(255, 255, 255, 0.7) !important; /* Cinza claro / Branco */ }

/* Opcional: Caso o número (Título) também esteja difícil de ler, use isto: */
[data-theme="dark"] .stat-card h3,
[data-color-scheme="dark"] .stat-card h3 { color: #ffffff !important; /* Garante que o número fique branco puro */ }

/* ==========================================================================
   CORREÇÃO DEFINITIVA: BADGES ALINHADOS E COMPACTOS
   Substitua o bloco anterior no final do style.css
   ========================================================================== */

/* 1. Célula da Tabela (Container) */
.module-tags-cell { display: table-cell !important;    /* Garante comportamento de tabela */
    vertical-align: middle !important; /* Alinha ao CENTRO verticalmente */
    white-space: normal !important;    /* Permite quebra de linha natural */
    padding: 4px 6px !important;       /* Espaçamento interno */
    width: auto !important;            /* Largura automática */
    min-width: 250px !important;       /* Largura mínima para caber vários */
    max-width: 400px !important;       /* Limite para não esticar demais */ }

/* 2. O Badge Individual (Quadradinho) */
.module-tag { display: inline-block !important;  /* Fica um ao lado do outro como texto */
    vertical-align: middle !important; /* Alinha com o texto vizinho */
    
    /* Tamanho e Espaçamento */
    font-size: 9px !important;
    font-weight: 800 !important;
    padding: 2px 5px !important;
    margin: 1px 1px !important;        /* Espacinho entre eles (Cima/Baixo/Lad) */
    border-radius: 3px !important;
    line-height: 1 !important;
    
    /* Cores Padrão (CLARO) - Azul Suave */
    background-color: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important; }

/* 3. Cores no TEMA ESCURO */
[data-theme="dark"] .module-tag,
[data-color-scheme="dark"] .module-tag { background-color: rgba(14, 165, 233, 0.2) !important; 
    color: #7dd3fc !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important; }
/* 

/* ==========================================================================
   CORREÇÃO FINAL V5.1 - TABELA PERFEITA + DESTAQUE AO PASSAR O MOUSE
   Substitua o final do style.css por este bloco
   ========================================================================== */

/* 1. FORÇAR COMPORTAMENTO DE TABELA */
#municipalities-table table { display: table !important;
    border-collapse: collapse !important;
    width: 100%;
    border-spacing: 0;
    border: none !important; }

#municipalities-table thead { display: table-header-group !important; }
#municipalities-table tbody { display: table-row-group !important; }

/* 2. ESTILO DAS LINHAS (TR) - AGORA COM EFEITO HOVER */
#municipalities-table tr { display: table-row !important; 
    border: none !important;
    background-color: transparent;
    transition: background-color 0.15s ease-in-out; /* Suaviza a mudança de cor */ }

/* --- AQUI ESTÁ O DESTAQUE QUE VOCÊ PEDIU --- */
#municipalities-table tbody tr:hover { background-color: var(--color-bg-1) !important; /* Cor de destaque do tema */
    cursor: default; }

/* 3. CÉLULAS UNIFICADAS E BORDAS SUAVES */
#municipalities-table th,
#municipalities-table td { display: table-cell !important;
    vertical-align: middle !important;
    
    /* Linha divisória sutil */
    border-bottom: 1px solid var(--color-border) !important; 
    
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    
    padding: 8px 6px !important;
    line-height: 1.25 !important;
    height: auto !important; }

/* 4. AJUSTE DA COLUNA DE MÓDULOS */
#municipalities-table td:nth-child(2),
#municipalities-table th:nth-child(2) { width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    white-space: normal !important; }

/* 5. CONTAINER DOS BADGES */
.module-tags-cell { display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 24px !important;
    width: 100%; }

/* 6. COLUNAS ESPECÍFICAS (Larguras) */
#municipalities-table th:nth-child(10), /* Bloqueio */
#municipalities-table td:nth-child(10) { width: 90px !important;
    max-width: 90px !important;
    white-space: normal !important;
    text-align: center !important;
    font-size: 11px !important; }

#municipalities-table th:nth-child(6), /* Visita */
#municipalities-table td:nth-child(6) { width: 100px !important;
    text-align: center !important; }

/* Centralização */
#municipalities-table td:nth-child(5),
#municipalities-table td:nth-child(7),
#municipalities-table td:nth-child(8),
#municipalities-table td:nth-child(9) { text-align: center !important; }

#municipalities-table th:nth-child(5),
#municipalities-table th:nth-child(6),
#municipalities-table th:nth-child(7),
#municipalities-table th:nth-child(8),
#municipalities-table th:nth-child(9),
#municipalities-table th:nth-child(10) { text-align: center !important; }

  /* ==========================================================================
   SISTEMA DE GRID COMPLETO (V25 - FINAL)
   ========================================================================== */

.form-grid { display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    padding: 8px 0; }

/* Todas as larguras de coluna possíveis */
.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

.form-grid .form-group { margin-bottom: 0; }

/* Responsividade: No celular vira 1 coluna */
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; }
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 { grid-column: span 1; } }

/* --- Ajuste dos Checkboxes de Módulos (4 Colunas) --- */
.checkbox-grid { display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px 12px;
    margin-top: 8px; }

.checkbox-grid label { display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; }

.checkbox-grid input[type="checkbox"] { margin-right: 6px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer; }

@media (max-width: 768px) { .checkbox-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   LARGURA DOS MODAIS (V27 - Ajuste Fino)
   ========================================================================== */

/* GRUPO 1: Modais LARGOS (900px)
   Para formulários complexos com muitas colunas */
#task-modal .modal-content,
#municipality-modal .modal-content,
#presentation-modal .modal-content,
#production-modal .modal-content,
#visit-modal .modal-content { max-width: 900px !important; }

/* GRUPO 2: Modais MÉDIOS (750px)
   Para formulários de 2 colunas */
#request-modal .modal-content,
#demand-modal .modal-content,
#user-modal .modal-content,
#orientador-modal .modal-content,
#modulo-modal .modal-content,
#municipality-list-modal .modal-content { max-width: 750px !important; }

/* GRUPO 3: Modais PEQUENOS (500px) - NOVO!
   Para formulários simples e rápidos */
#cargo-modal .modal-content,
#forma-apresentacao-modal .modal-content,
/* ==========================================================================
   AJUSTE FINO: Modal de Senha Compacto
   ========================================================================== */
#change-password-modal .modal-content { max-width: 400px !important; /* Bem estreito para focar na senha */ }

/* ==========================================================================
   RESPONSIVIDADE DO DASHBOARD (Novos Gráficos)
   ========================================================================== */
@media (max-width: 900px) { .charts-grid { grid-template-columns: 1fr !important; /* Força 1 coluna no celular/tablet */ } }
/* ==========================================================================
   AJUSTE MODAL DE BACKUP (Fixar largura)
   ========================================================================== */
#restore-confirm-modal .modal-content { max-width: 600px !important; }

/* Estilos para Datas de Vencimento na Integração */
.date-valid { color: #005580; /* Azul do tema */
    font-weight: bold; }

.date-expired { color: var(--color-error); /* Vermelho */
    font-weight: bold; }

.days-remaining-valid { color: var(--color-success);
    font-weight: 500; }

.days-remaining-expired { color: var(--color-error);
    font-weight: bold; }

/* ==========================================================================
   CORREÇÃO FINAL V46 - MUNICÍPIO E OBSERVAÇÕES AMPLIADOS
   ========================================================================== */

/* 1. Modais (Mantidos) */
/* GRUPO 3: Modais PEQUENOS (500px) - Apenas listas simples */
#api-list-modal .modal-content,
#colab-info-modal .modal-content { 
    width: 500px !important;
    max-width: 90% !important;
    margin: 5% auto !important; 
}

/* GRUPO 4: Modal de Integração (Personalizado: Largo e Compacto) */
#integration-modal .modal-content {
    width: 800px !important; /* Mais largo para caber os 3 campos */
    max-width: 95% !important;
    margin: 2% auto !important; /* Margem superior menor para subir o modal */
}

/* Reduzir espaçamento vertical APENAS neste modal */
#integration-modal .form-grid {
    gap: 10px !important; /* Reduz o espaço entre as linhas (era 16px) */
    padding-bottom: 0 !important;
}

#integration-modal form {
    padding: 15px 24px !important; /* Reduz padding superior/inferior */
}

#integration-modal .modal-header {
    padding: 15px 24px !important; /* Cabeçalho mais fino */
}

#integration-modal .modal-actions {
    margin-top: 10px !important; /* Aproxima os botões do formulário */
}

/* 2. Tabela Fixa */
#integrations-table table { border-collapse: collapse !important;
    width: 100%;
    border-spacing: 0 !important;
    table-layout: fixed !important; }

#integrations-table tr { background-color: transparent;
    border-bottom: 1px solid #cccccc !important; }

#integrations-table tr:last-child { border-bottom: none !important; }

#integrations-table td { border: none !important;
    vertical-align: middle !important;
    padding: 0 8px !important;
    height: 50px !important;
    overflow: hidden; }

/* 3. ALINHAMENTO DOS CABEÇALHOS */
#integrations-table th { vertical-align: middle !important;
    padding: 8px 8px !important;
    white-space: nowrap !important;
    font-weight: 600; }

/* --- DISTRIBUIÇÃO AMPLIADA --- */

/* COL 1: Município (Aumentado para 220px) */
#integrations-table th:nth-child(1),
#integrations-table td:nth-child(1) { width: 220px !important; 
    text-align: left !important; }
#integrations-table td:nth-child(1) { white-space: normal; 
    line-height: 1.2;
    font-size: 13px;
    font-weight: 500; }

/* COL 2: APIs (AUTOMÁTICO - Pega o que sobrar) */
#integrations-table th:nth-child(2),
#integrations-table td:nth-child(2) { width: auto !important; 
    text-align: left !important; }

/* COL 3: Vencimento (150px) */
#integrations-table th:nth-child(3),
#integrations-table td:nth-child(3) { width: 150px !important; 
    text-align: center !important; }
#integrations-table td:nth-child(3) { font-size: 12px; }

/* COL 4: Status (150px) */
#integrations-table th:nth-child(4),
#integrations-table td:nth-child(4) { width: 150px !important;
    text-align: center !important; }
#integrations-table td:nth-child(4) { font-size: 12px; white-space: nowrap; }

/* COL 5: Observações (Aumentado para 180px) */
#integrations-table th:nth-child(5),
#integrations-table td:nth-child(5) { width: 180px !important; 
    text-align: left !important; }
#integrations-table td:nth-child(5) { text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text-secondary);
    font-size: 12px; }

/* COL 6: Ações (90px) */
#integrations-table th:nth-child(6),
#integrations-table td:nth-child(6) { width: 90px !important;
    text-align: right !important;
    padding-right: 15px !important; }
#integrations-table td:last-child { overflow: visible; }

/* 4. Estilo das APIs (Tags) */
#integrations-table .module-tags-cell { display: flex !important;
    align-items: center !important;
    height: 100%;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 4px;
    padding: 0 !important;
    margin: 0 !important;
    scrollbar-width: none; }
#integrations-table .module-tags-cell::-webkit-scrollbar { display: none; }

#integrations-table .module-tag { font-size: 10px !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
    border-radius: 3px;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    height: 20px !important;
    margin: 0 !important;
    border-width: 1px !important;
    white-space: nowrap !important;
    flex-shrink: 0; }

/* ==========================================================================
   CORREÇÕES V47 - ABA COLABORADORES
   ========================================================================== */

/* 1. Modal de Colaborador (Pequeno) */
#colab-info-modal .modal-content { width: 500px !important;
    max-width: 90% !important;
    margin: 5% auto !important; }

/* 2. Badges de Status do Colaborador */
.status-badge-active { background-color: rgba(33, 150, 243, 0.15);
    color: #2196F3; /* Azul */
    border: 1px solid rgba(33, 150, 243, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap; }

.status-badge-terminated { background-color: rgba(244, 67, 54, 0.15);
    color: #F44336; /* Vermelho */
    border: 1px solid rgba(244, 67, 54, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap; }

/* 3. Ajuste de tabela para cálculos de tempo */
#colab-info-table td { white-space: nowrap; }
/* ==========================================================================
   CORREÇÃO V48 - TÍTULOS DAS TABELAS DE COLABORADORES
   ========================================================================== */

.colab-section-title { text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    padding: 8px;
    border-radius: 4px;
    letter-spacing: 0.5px; }

.title-active { color: #005580; /* Azul do tema */
    background-color: rgba(0, 85, 128, 0.05);
    border-bottom: 2px solid #005580; }

.title-terminated { color: #C85250; /* Vermelho do tema */
    background-color: rgba(200, 82, 80, 0.05);
    border-bottom: 2px solid #C85250;
    margin-top: 40px; /* Espaço entre a tabela de cima e esta */ }
/* ==========================================================================
   CORREÇÃO V49 - ALINHAMENTO TABELAS DE COLABORADORES
   ========================================================================== */

/* 1. Regra Geral: Centralizar Tudo (Cabeçalho e Dados) */
#colab-active-table th, 
#colab-active-table td,
#colab-terminated-table th, 
#colab-terminated-table td { text-align: center !important;
    vertical-align: middle !important; }

/* 2. Exceção: Primeira Coluna (Nome) à Esquerda */
#colab-active-table th:first-child, 
#colab-active-table td:first-child,
#colab-terminated-table th:first-child, 
#colab-terminated-table td:first-child { text-align: left !important;
    padding-left: 15px !important; }

/* 3. Ajuste de largura para evitar quebras feias */
#colab-active-table table,
#colab-terminated-table table { width: 100%;
    border-collapse: collapse; }

#colab-active-table tr,
#colab-terminated-table tr { border-bottom: 1px solid #e0e0e0; }
/* ==========================================================================
   CORREÇÃO V50 - CAMPOS DESABILITADOS (TEMA ESCURO)
   ========================================================================== */

/* Estilo padrão para inputs desabilitados (Modo Claro) */
input:disabled, select:disabled, textarea:disabled { background-color: rgba(0, 0, 0, 0.05); /* Cinza claro suave */
    color: var(--color-text-secondary);
    cursor: not-allowed;
    opacity: 0.7; }

/* Estilo para inputs desabilitados (Modo Escuro) */
[data-theme="dark"] input:disabled,
[data-theme="dark"] select:disabled,
[data-theme="dark"] textarea:disabled { background-color: rgba(255, 255, 255, 0.1) !important; /* Fundo escuro translúcido */
    color: rgba(255, 255, 255, 0.5) !important; /* Texto cinza claro */
    border-color: rgba(255, 255, 255, 0.1) !important; }
/* ==========================================================================
   SIDEBAR FULL HEIGHT + EMPURRAR HEADER
   ========================================================================== */

@media (min-width: 901px) { /* 1. SIDEBAR (Vai até o topo e fica fixa) */
    .sidebar { top: 0 !important;           /* Cola no teto */
        height: 100vh !important;    /* Altura total da tela */
        z-index: 1001 !important;    /* Fica ACIMA do header */
        padding-top: 20px !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        /* A transição será controlada pela classe do body */
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

    /* 2. HEADER (Deixa de ser 100% e vira vizinho da sidebar) */
    .app-header { position: fixed !important;
        top: 0 !important;
        /* Começa DEPOIS da sidebar recolhida (70px) */
        left: 70px !important; 
        /* Largura é o que sobra (100% - 70px) */
        width: calc(100% - 70px) !important; 
        z-index: 1000 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        /* Animação suave para acompanhar a sidebar */
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

    /* 3. CONTEÚDO PRINCIPAL (Sincronizado com o header) */
    .main-content { margin-top: 80px !important; /* Espaço para o header */
        margin-left: 70px !important; /* Espaço da sidebar recolhida */
        width: calc(100% - 70px) !important;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 20px !important; }

    /* --- ESTADOS EXPANDIDOS (Ativados via JS) --- */
    
    /* Quando o mouse entra, o BODY ganha a classe 'sidebar-is-expanded' */
    
    /* Sidebar Cresce */
    body.sidebar-is-expanded .sidebar { width: 300px !important; }

    /* Header é Empurrado */
    body.sidebar-is-expanded .app-header { left: 300px !important;
        width: calc(100% - 300px) !important; }

    /* Conteúdo é Empurrado */
    body.sidebar-is-expanded .main-content { margin-left: 300px !important;
        width: calc(100% - 300px) !important; }

    /* --- ESTILO DO ÍCONE DE MENU (GEMINI STYLE) --- */
    /* Remove o texto antigo e coloca o ícone Hamburger no topo */
    .sidebar-nav::before { content: "☰"; 
        font-size: 26px;
        color: rgba(255,255,255,0.8);
        display: block;
        text-align: center;
        margin-bottom: 30px;
        cursor: pointer;
        transition: color 0.3s; }
    
    /* Garante que o ícone continue lá no hover */
    .sidebar:hover .sidebar-nav::before { content: "☰"; 
        color: #ffffff; }
    
    /* Esconde o botão de fechar do mobile se aparecer */
    .mobile-menu-toggle { display: none !important; } }
/* ==========================================================================
   CORREÇÃO FINAL V55 - COLAR TÍTULO NA BARRA AZUL
   ========================================================================== */

@media (min-width: 901px) { /* 1. SIDEBAR (Configuração Padrão) */
    .sidebar { padding-top: 40px !important; 
        top: 0 !important;
        height: 100vh !important;
        z-index: 1001 !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

    /* 2. HEADER (Mantendo Grosso) */
    .app-header { position: fixed !important;
        top: 0 !important;
        left: 70px !important; 
        width: calc(100% - 70px) !important; 
        z-index: 1000 !important;
        
        /* Altura e Espessura */
        padding: 20px 24px !important; /* Ajustei levemente para alinhar melhor */
        height: auto !important; 
        
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

    /* 3. CONTEÚDO PRINCIPAL (Ajuste Fino de Posição) */
    .main-content { /* Define onde o conteúdo começa. 
           Se diminuir muito este valor, o texto entra DEBAIXO da barra azul. 
           80px é o ponto de equilíbrio. */
        margin-top: 80px !important; 
        
        /* Remove qualquer padding que empurre para baixo */
        padding-top: 0 !important; 
        
        margin-left: 70px !important;
        width: calc(100% - 70px) !important;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

    /* 4. TÍTULO DA ABA (A Mágica da Aproximação) */
    .section-header { /* Margem negativa para puxar o título para cima, colando na barra azul */
        margin-top: -10px !important; 
        padding-top: 10px !important;
        margin-bottom: 20px !important; }
    
    .section-header h2 { margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important; }

    /* --- REGRAS DE EXPANSÃO (Obrigatórias para o efeito funcionar) --- */
    body.sidebar-is-expanded .sidebar { width: 300px !important; }
    body.sidebar-is-expanded .app-header { left: 300px !important; width: calc(100% - 300px) !important; }
    body.sidebar-is-expanded .main-content { margin-left: 300px !important; width: calc(100% - 300px) !important; }
    
    .sidebar-nav::before { content: "☰"; font-size: 26px; color: rgba(255,255,255,0.8);
        display: block; text-align: center; margin-bottom: 30px; cursor: pointer; }
    .sidebar:hover .sidebar-nav::before { color: #ffffff; }
    .mobile-menu-toggle { display: none !important; } }
/* ==========================================================================
   FASE 3 - SISTEMA DE NOTIFICAÇÕES
   ========================================================================== */

/* Badge Vermelho (Contador) */
.notification-badge { position: absolute;
    top: -5px;
    right: -5px;
    background-color: #C85250;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--color-surface); /* Cria uma bordinha para destacar */ }

/* Menu de Notificações (Mais largo que o de configurações) */
.notification-menu { width: 320px;
    right: -50px; /* Ajuste para não sair da tela */
    max-height: 400px;
    overflow-y: auto; }

.notification-header { padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    font-weight: bold;
    background-color: var(--color-bg-1);
    color: var(--color-primary); }

.notification-item { padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: start;
    gap: 10px; }

.notification-item:hover { background-color: var(--color-bg-1); }

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

/* Tipos de Notificação */
.notif-icon { font-size: 16px; }
.notif-content { flex: 1; }
.notif-title { font-weight: 600; display: block; margin-bottom: 2px; }
.notif-desc { color: var(--color-text-secondary); font-size: 12px; }
.notif-time { font-size: 11px; color: #999; margin-top: 4px; display: block; }

/* Cores por Urgência */
.notif-warning .notif-icon { color: #E7B85F; } /* Amarelo */
.notif-danger .notif-icon { color: #C85250; }  /* Vermelho */
.notif-info .notif-icon { color: #005580; }    /* Azul */
/* ==========================================================================
   AJUSTE DE LAYOUT DO HEADER (ÍCONES)
   ========================================================================== */

/* Garante que a área de ações vá para a direita */
.header-actions { display: flex;
    align-items: center;
    gap: 8px; /* Espaço entre os ícones */
    margin-left: auto; /* Empurra tudo para a direita */ }

/* Classe nova para os botões de ícone no header */
.header-icon-btn { width: 36px !important;  /* Largura fixa */
    height: 36px !important; /* Altura fixa (igual a largura = quadrado) */
    padding: 0 !important;   /* Remove padding para centralizar o ícone */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 1.2rem !important; /* Tamanho do emoji */
    line-height: 1 !important; }

/* Ajuste fino para o botão "Sair" não ficar muito alto em relação aos ícones */
.header-actions .btn--secondary.btn--sm { height: 36px !important;
    display: flex;
    align-items: center; }

/* Ajuste de posição do Badge de notificação no botão quadrado */
.notification-badge { top: -6px !important;
    right: -6px !important; }
/* ==========================================================================
   CORREÇÃO FINAL V56 - TOOLTIPS E POSIÇÃO DE MENUS
   ========================================================================== */

/* 1. Remover Tooltips Customizados (Evita duplicidade) */
.header-actions .btn[title]:hover::after,
.header-actions .btn[title]:hover::before { display: none !important; }

/* 2. Posição do Menu de Configurações (Abaixo da Engrenagem) */
#settings-menu { right: 0 !important;
    top: 45px !important; /* Distância do botão */
    min-width: 220px; }

/* 3. Posição do Menu de Notificações (Abaixo do Sino) */
#notification-menu { right: -40px !important; /* Ajuste fino para não cortar */
    top: 45px !important; }

/* 4. Ajuste do container para menus relativos */
.settings-dropdown { position: relative !important; }
/* Correção do Menu de Configurações */
.settings-menu-item { width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px; /* Espaço entre ícone e texto */
    transition: background-color 0.2s;
    font-family: var(--font-family-base); /* Garante a mesma fonte do site */ }

.settings-menu-item:hover { background-color: var(--color-bg-1);
    color: var(--color-primary); }

.settings-divider { height: 1px;
    background-color: var(--color-border);
    margin: 4px 0; }
/* ==========================================================================
   CORREÇÃO FINAL V65 - LARGURA DO MENU E ALINHAMENTO BOTÃO SAIR
   ========================================================================== */

/* 1. Alinhamento Geral */
.header-actions { display: flex;
    align-items: center;
    gap: 6px; 
    margin-left: auto;
    height: 100%; /* Garante que o container ocupe a altura disponível */ }

/* 2. Botões Ícone Quadrados */
#home-btn.header-icon-btn,
#theme-toggle.header-icon-btn,
#notif-btn.header-icon-btn,
.header-actions .settings-dropdown .header-icon-btn { width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    margin: 0 !important; /* Remove margens externas */
    
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    transition: background-color 0.2s ease-in-out;
    box-shadow: none !important; }

/* Hover */
#home-btn.header-icon-btn:hover,
#theme-toggle.header-icon-btn:hover,
#notif-btn.header-icon-btn:hover,
.header-actions .settings-dropdown .header-icon-btn:hover { background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important; }

/* 3. Botão CONFIGURAÇÕES (Texto) */
.header-actions .settings-dropdown .header-text-btn { height: 30px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    gap: 5px !important;
    width: auto !important;
    white-space: nowrap !important;
    margin: 0 !important;
    
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    box-shadow: none !important; }
.header-actions .settings-dropdown .header-text-btn:hover { background-color: rgba(255, 255, 255, 0.15) !important; }

/* 4. Botão SAIR (CORREÇÃO DE ALTURA E ALINHAMENTO) */
.header-actions .btn--secondary.btn--sm.header-text-btn { /* Trava a altura exata */
    height: 30px !important;
    max-height: 30px !important;
    min-height: 30px !important;
    
    /* Largura */
    min-width: 60px !important;
    width: auto !important;
    padding: 0 12px !important;
    margin: 0 !important; /* Garante que não suba nem desça */
    
    /* Layout */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    
    /* Estilo */
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    box-shadow: none !important;
    transition: background-color 0.2s !important; }

/* Hover do Sair */
.header-actions .btn--secondary.btn--sm.header-text-btn:hover { background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important;
    color: #ffffff !important; }

/* 5. MENU DE CONFIGURAÇÕES (MAIS LARGO) */
#settings-menu { right: 0 !important;
    top: 40px !important;
    min-width: 260px !important; /* Aumentado de 240px para 300px */
    z-index: 2000; }

/* Itens do Menu (Evita quebra de linha) */
.settings-menu-item { white-space: nowrap !important; /* Força texto em uma linha */
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
    font-family: var(--font-family-base); }

/* 6. Menu de Notificações */
#notification-menu { right: -40px !important;
    top: 40px !important;
    width: 300px;
    z-index: 2000; }

/* 7. Badge */
.notification-badge { top: -5px !important;
    right: -5px !important;
    font-size: 9px !important;
    padding: 1px 4px !important; }
/* ==========================================================================
   CORREÇÃO FINAL V66 - MENU DE CONFIGURAÇÕES (TEXTO LEVE)
   ========================================================================== */

.settings-menu-item { /* Estrutura */
    white-space: nowrap !important;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: var(--font-family-base);
    
    /* ESTILO DE TEXTO (A Correção) */
    font-size: 14px;
    color: var(--color-text);
    font-weight: 400 !important; /* Define peso Normal (Tira o Negrito) */ }

/* Hover (Apenas cor de fundo e texto colorido, sem mudar peso) */
.settings-menu-item:hover { background-color: var(--color-bg-1);
    color: var(--color-primary); }
/* ==========================================================================
   CORREÇÃO FINAL V67 - ABRIR MENU AO PASSAR MOUSE (HOVER)
   ========================================================================== */

/* 1. Exibir menu automaticamente no Hover (Apenas Desktop) */
@media (min-width: 901px) { .settings-dropdown:hover .settings-menu { display: block !important;
        animation: fadeIn 0.2s ease-out; } }
/* 2. Classe "Mágica": Força o menu a fechar mesmo com o mouse em cima */
/* Isso é usado pelo JavaScript logo após o clique */
.settings-dropdown.temp-hidden .settings-menu {
    display: none !important;
}

/* 2. Cria uma "Ponte Invisível" */
/* Isso preenche o espaço entre o botão e o menu para o mouse não "cair" */
.settings-dropdown::after { content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px; /* Cobre o buraco de 10px entre o botão e o menu */
    background: transparent;
    z-index: 1999; }

/* 3. Ajuste Fino de Posição (Mais próximo) */
#settings-menu, #notification-menu { top: 35px !important; /* Subiu um pouco (era 40px) para facilitar o hover */
    margin-top: 0 !important; }

/* Animação Suave */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); } }
/* ==========================================================================
   FUNCIONALIDADE DESFAZER (UNDO)
   ========================================================================== */

/* Container do Toast para Flexbox (Texto + Botão) */
.toast-content { display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%; }

/* Botão Desfazer dentro do Toast */
.btn-undo { background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px; }

.btn-undo:hover { background-color: #ffffff;
    color: #333;
    border-color: #ffffff; }
/* ==========================================================================
   LINK ESQUECI MINHA SENHA
   ========================================================================== */
.forgot-password-link { color: var(--color-primary);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s; }

.forgot-password-link:hover { color: var(--color-primary-hover);
    text-decoration: underline; }

/* ==========================================================================
   CORREÇÃO FINAL V68 - OVERLAY MOBILE (CLIQUE FORA)
   ========================================================================== */

@media (max-width: 900px) { /* 1. Garante que o Overlay cubra TUDO */
    .sidebar-overlay { display: none; /* Escondido por padrão */
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw !important;  /* Largura total da viewport */
        height: 100vh !important; /* Altura total da viewport */
        background-color: rgba(0, 0, 0, 0.6) !important; /* Escurece o fundo */
        z-index: 9990 !important; /* Fica ACIMA de tudo, mas ABAIXO do menu */
        backdrop-filter: blur(2px); /* Efeito visual (opcional) */
        cursor: pointer; /* Indica que é clicável */ }

    /* 2. Quando ativo, FORÇA aparecer (display block) */
    .sidebar-overlay.active { display: block !important; }

    /* 3. Menu Lateral deve ficar ACIMA do Overlay */
    .sidebar { z-index: 9999 !important; } }

/* ==========================================================================
   MODO OFFLINE (AVISO)
   ========================================================================== */
.offline-banner { display: none; /* Escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #C85250; /* Vermelho do tema */
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    z-index: 100000; /* Acima de TUDO (Modais, Header, Sidebar) */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-out; }

.offline-banner.show { display: block; }

@keyframes slideDown { from { transform: translateY(-100%); }
    to { transform: translateY(0); } }

    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text-secondary);
    font-size: 12px; }

/* COL 6: Ações */
#integrations-table th:nth-child(6),
#integrations-table td:nth-child(6) { width: 8%;
    min-width: 90px !important;
    text-align: right !important;
    padding-right: 10px !important; }
#integrations-table td:last-child { overflow: visible; }

/* 3. Estilo das APIs (Tags) */
#integrations-table .module-tags-cell { display: flex !important;
    align-items: center !important;
    height: 100%;
    flex-wrap: wrap !important; /* Volta a quebrar linha se tiver MUITAS */
    gap: 4px;
    padding: 0 !important;
    margin: 0 !important; }

#integrations-table .module-tag { font-size: 10px !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
    border-radius: 3px;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    height: 20px !important;
    margin: 0 !important;
    border-width: 1px !important;
    white-space: nowrap !important;
    flex-shrink: 0; }

/* ==========================================================================
   TABELA DE INTEGRAÇÕES - VERSÃO MELHORADA (v4.5) - DEFINITIVA
   ========================================================================== */

/* Container com scroll lateral suave */
#integrations-table { width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--color-card-border);
    background: var(--color-surface); }

/* Tabela com largura mínima maior para caber tudo */
#integrations-table table { width: 100%;
    min-width: 1400px !important;  /* Aumentado para dar mais espaço */
    border-collapse: collapse;
    table-layout: fixed; /* Importante para controle preciso das colunas */ }

/* Cabeçalho */
#integrations-table th { background: var(--color-secondary) !important;
    padding: 12px 10px !important;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    font-size: 13px; }

/* Células gerais */
#integrations-table td { padding: 12px 10px !important;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    overflow: hidden; }

/* 1. Município (Reduzi um pouco para caber o contato) */
#integrations-table th:nth-child(1), 
#integrations-table td:nth-child(1) { 
    width: 150px !important;     
    text-align: left !important;
}

/* 2. APIs Integradas */
#integrations-table th:nth-child(2), 
#integrations-table td:nth-child(2) { 
    width: 280px !important;     
    text-align: left !important;
}

/* 3. Responsável */
#integrations-table th:nth-child(3), 
#integrations-table td:nth-child(3) { 
    width: 160px !important;     
    text-align: left !important;
    white-space: normal !important;
    font-size: 12px;
}

/* 4. NOVO: Contato */
#integrations-table th:nth-child(4), 
#integrations-table td:nth-child(4) { 
    width: 130px !important;     
    text-align: left !important;
    font-size: 12px;
}

/* 5. Vencimento (Era 4) */
#integrations-table th:nth-child(5), 
#integrations-table td:nth-child(5) { 
    width: 110px !important;     
    text-align: center !important;
}

/* 6. Status Vencimento (Era 5) */
#integrations-table th:nth-child(6), 
#integrations-table td:nth-child(6) { 
    width: 130px !important;     
    text-align: center !important;
}

/* 7. Observações (Era 6) */
#integrations-table th:nth-child(7), 
#integrations-table td:nth-child(7) { 
    width: 180px !important;     
    text-align: left !important;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 8. Ações (Era 7) */
#integrations-table th:nth-child(8), 
#integrations-table td:nth-child(8) { 
    width: 90px !important;     
    text-align: right !important;
    padding-right: 16px !important;
}

/* FORÇA AS APIs A FICAREM NA MESMA LINHA (SEM QUEBRA) */
#integrations-table .module-tags-cell { display: flex !important;
    flex-wrap: nowrap !important;     /* ← ESSA LINHA É O SEGREDO */
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent; }

#integrations-table .module-tag { flex-shrink: 0;                   /* Não encolhe nunca */
    font-size: 10px !important;
    padding: 3px 8px !important;
    white-space: nowrap !important;
    min-width: fit-content; }

/* ==========================================================================
   CORREÇÃO MENU DE NOTIFICAÇÕES NO CELULAR
   ========================================================================== */

@media (max-width: 900px) { #notification-menu { /* Muda de posição relativa ao botão para fixa na tela */
        position: fixed !important;
        
        /* Posiciona logo abaixo do cabeçalho */
        top: 60px !important; 
        
        /* Estica para ocupar a largura da tela com margens */
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        min-width: 0 !important;
        
        /* Garante que fique acima de tudo */
        z-index: 20001 !important; 
        
        /* Sombra mais forte para destacar */
        box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important; }
    
    /* Ajuste no cabeçalho da notificação para ficar bonito no mobile */
    .notification-header { padding: 15px !important;
        font-size: 14px !important; } }
/* ==========================================================================
   CENTRAL DE RELATÓRIOS (FASE 4)
   ========================================================================== */

.report-generator-container { max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px; }

.report-config-box { background-color: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease-out; }

.report-config-box h3 { margin-bottom: 16px;
    font-size: 16px;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px; }

.report-actions-box { text-align: right;
    margin-top: 10px; }

/* Modal de Preview (Estilo "Tela Cheia") */
.report-preview-content { width: 95% !important;  /* Quase toda a largura */
    height: 90vh !important; /* Quase toda a altura */
    max-width: 1200px !important;
    max-height: 95vh !important;
    display: flex;
    flex-direction: column; }

/* Ajuste para o iframe ocupar tudo */
#pdf-preview-frame { display: block;
    background-color: #525659; /* Cor de fundo padrão de visualizadores PDF */ }
/* ==========================================================================
   VISUAL DO RELATÓRIO - VISUALIZADOR PDF (CORRIGIDO)
   Substitua o bloco anterior no final do style.css
   ========================================================================== */

/* Fundo escuro atrás do modal */
#report-preview-modal { display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); /* Fundo bem escuro para foco total */
    z-index: 30000;
    align-items: center;
    justify-content: center; }

#report-preview-modal.show { display: flex !important; }

/* A Janela do Modal */
#report-preview-modal .report-preview-content { width: 95%;
    height: 95vh;
    max-width: 1600px; /* Bem largo para ver bem o PDF */
    background: #525659;
    border-radius: 4px;
    display: flex;
    flex-direction: column; /* Garante que cabeçalho fique em cima do corpo */
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5); }

/* Cabeçalho do Modal (Mantém apenas o título e o X de fechar) */
#report-preview-modal .modal-header { background: #f1f3f4;
    padding: 0 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    height: 45px; /* Altura fixa para o cabeçalho */ }

#report-preview-modal .modal-header h3 { margin: 0;
    font-size: 15px;
    color: #333;
    font-weight: 600; }

/* Corpo onde fica o PDF (Ocupa todo o resto do espaço) */
#report-preview-body { flex-grow: 1; /* Cresce para ocupar todo o espaço vertical disponível */
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background-color: #525659;
    position: relative; }

/* O Visualizador (Iframe) */
#pdf-preview-frame { width: 100%;
    height: 100%;
    border: none;
    display: block; }

/* --- CORREÇÃO DO LAYOUT --- */
/* Esconde o rodapé personalizado, pois o PDF já tem botões nativos */
#report-preview-modal .modal-actions { display: none !important; }
/* ==========================================================================
   CORREÇÃO FINAL DE GRÁFICOS E GRID (ALINHAMENTO PERFEITO)
   Adicione no final do arquivo style.css
   ========================================================================== */

/* Força o container de gráficos a respeitar 100% da largura disponível, sem estourar */
.charts-grid { display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Colunas exatas */
    gap: 24px; /* Mesmo espaçamento dos cards */
    width: 100%;
    margin-bottom: 32px;
    box-sizing: border-box; }

/* O SEGREDO: Impede que o Chart.js empurre a largura da coluna para fora */
.charts-grid .chart-card { min-width: 0; 
    width: 100%; }

/* Responsividade: Em telas menores (tablets/notebooks pequenos), vira 1 coluna */
@media (max-width: 1200px) { .charts-grid { grid-template-columns: 1fr; } }
/* ==========================================================================
   AJUSTE FINAL DE ESPAÇAMENTO (APROXIMAÇÃO DO TOPO)
   Adicione isto na última linha do style.css
   ========================================================================== */

@media (min-width: 901px) { /* 1. Ajuste da Barra Azul (Header) */
    /* Garante altura fixa para o conteúdo colar nela */
    .app-header { height: auto !important;
        min-height: 60px !important;
        padding-bottom: 15px !important; }

    /* 2. Conteúdo Principal (Sobe para encostar na barra) */
    .main-content { /* Reduzimos a margem para o conteúdo subir */
        margin-top: 65px !important; 
        
        /* Respiro interno de aproximadamente 1cm (20px) */
        padding-top: 25px !important; }

    /* 3. Título da Aba (Remove margens invisíveis que empurram para baixo) */
    .section-header { margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 20px !important; /* Espaço entre Título e Filtros */ }
    
    .section-header h2 { margin-top: 0 !important;
        line-height: 1 !important;
        padding-top: 0 !important; } }

/* ==========================================================================
   AJUSTE DE LAYOUT DESKTOP (V74 - Espaçamentos Compactos)
   Substitua o último bloco @media (min-width: 901px) por este.
   ========================================================================== */

@media (min-width: 901px) { 
    
    /* --- 1. CONFIGURAÇÕES GERAIS (Mantém igual) --- */
    .app-header { 
        position: fixed !important;
        top: 0 !important;
        left: 70px !important; 
        width: calc(100% - 70px) !important;
        z-index: 1000 !important;
        padding: 20px 24px !important; 
        height: auto !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    width 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    }

    .main-content { 
        margin-top: 0 !important; 
        padding-top: 30px !important; 
        margin-left: 70px !important;
        width: calc(100% - 70px) !important;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    width 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    }

    .section-header { 
        margin-top: 0 !important; 
        padding-top: 0 !important; 
        margin-bottom: 20px !important; 
    }
    .section-header h2 { 
        margin-top: 0 !important; 
        padding-top: 0 !important; 
        line-height: 1.2 !important; 
    }

    /* --- 2. BARRA EXPANDIDA (Largura 280px) --- */
    
    body.sidebar-is-expanded .sidebar { 
        width: 280px !important; /* Mantido o tamanho que ficou bom */
    }

    body.sidebar-is-expanded .app-header { 
        left: 280px !important; 
        width: calc(100% - 280px) !important; 
    }

    body.sidebar-is-expanded .main-content { 
        margin-left: 280px !important; 
        width: calc(100% - 280px) !important; 
    }

    /* --- 3. AJUSTE DOS ESPAÇAMENTOS (AQUI MUDOU) --- */
    
    body.sidebar-is-expanded .sidebar-btn {
        /* Espaço da Borda Esquerda */
        padding-left: 04px !important; /* Reduzido de 16px para 04px */
        
        /* Alinhamento */
        justify-content: flex-start !important;
        display: flex !important;
        align-items: center !important;
        
        /* Espaço entre Ícone e Texto */
        gap: 2px !important; /* Reduzido de 12px para 2px (Bem pertinho) */
        
        height: 45px !important;
    }
    
    /* Ícone Fixo */
    body.sidebar-is-expanded .sidebar-icon {
        width: 24px !important;
        display: flex;
        justify-content: center;
        margin-right: 0 !important;
    }

    /* Botão Hambúrguer */
    .sidebar-nav::before { 
        content: "☰"; 
        font-size: 26px; 
        color: rgba(255,255,255,0.8);
        display: block; 
        text-align: center; 
        margin-bottom: 30px; 
        cursor: pointer; 
    }
    .sidebar:hover .sidebar-nav::before { color: #ffffff; }
    
    .mobile-menu-toggle { display: none !important; } 
}

/* ==========================================================================
   AJUSTE DE LAYOUT: TABELA INTEGRAÇÕES (DEFINITIVO)
   Substitua o bloco anterior da tabela de integrações no style.css
   ========================================================================== */

/* 1. Estrutura da Tabela */
#integrations-table table {
    width: 100%;
    min-width: 1400px !important; /* Garante que não esprema */
    table-layout: fixed !important;
    border-collapse: collapse;
}

/* 2. Cabeçalhos (Padronizados) */
#integrations-table th {
    font-weight: 600 !important;
    font-size: 12px !important;
    color: var(--color-text) !important;
    background-color: var(--color-secondary);
    padding: 10px 8px;
    vertical-align: middle;
}

/* === LARGURAS DAS COLUNAS (SEUS 8 PONTOS) === */

/* 1. Município (Com corte de texto ...) */
#integrations-table th:nth-child(1),
#integrations-table td:nth-child(1) {
    width: 270px !important; /* Mesmo tamanho da aba Municípios */
}

/* 2. APIs (AUMENTADO para dar mais respiro) */
#integrations-table th:nth-child(2),
#integrations-table td:nth-child(2) {
    width: 280px !important; /* Aumentado de 140px para 190px */
}

/* 3. Responsável (Mantido) */
#integrations-table th:nth-child(3),
#integrations-table td:nth-child(3) {
    width: 220px !important;
}

/* 4. Contato (Mantido) */
#integrations-table th:nth-child(4),
#integrations-table td:nth-child(4) {
    width: 140px !important;
}

/* 5. Vencimento (Mantido - Centralizado) */
#integrations-table th:nth-child(5),
#integrations-table td:nth-child(5) {
    width: 110px !important;
    text-align: center !important;
}

/* 6. Status (Mantido - Centralizado) */
#integrations-table th:nth-child(6),
#integrations-table td:nth-child(6) {
    width: 160px !important;
    text-align: center !important;
}

/* 7. Observações (REDUZIDO - Cede espaço) */
#integrations-table th:nth-child(7),
#integrations-table td:nth-child(7) {
    width: auto !important;       /* Ocupa o que sobrar */
    min-width: 100px !important;  /* Reduzi a garantia mínima (era 250px) */
    
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: var(--color-text) !important;
}

/* 8. Ações (Mantido - Centralizado) */
#integrations-table th:nth-child(8),
#integrations-table td:nth-child(8) {
    width: 115px !important;
    text-align: center !important;
    padding-right: 0 !important;
}

/* === AJUSTE DOS BADGES DE API === */
/* Importante: Mudar para wrap para quebrar linha na coluna mais estreita */
#integrations-table .module-tags-cell {
    display: flex !important;
    flex-wrap: wrap !important; /* Permite cair para a linha de baixo */
    gap: 4px;
    padding: 2px 0 !important;
}

#integrations-table .module-tag {
    flex-shrink: 0;
    font-size: 10px !important;
    padding: 2px 6px !important;
    margin-bottom: 2px; /* Espaço vertical quando quebrar */
}

/* Cores de Data */
.date-expired { color: #C85250 !important; font-weight: bold; }
.date-valid { color: #005580; font-weight: 500; }
/* Regra CRÍTICA: Esconde o conteúdo da aplicação enquanto o JS carrega */
body.loading #main-app, 
body.loading #login-screen {
    /* Oculta completamente */
    display: none !important; 
    /* Adiciona um fundo para evitar o branco puro */
    background-color: var(--color-bg-2, #f4f6f8); 
    /* Você pode adicionar um spinner simples aqui, se quiser */
}

/* Opcional: Mostra uma mensagem simples de carregamento centralizada */
body.loading::after {
    content: 'Carregando Sistema... 🚀'; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-primary);
    font-size: 16px;
}
/* =========================================
   EFEITO HOVER UNIVERSAL (Correção de Contraste)
   ========================================= */

/* 1. TEMA CLARO (Padrão) */
/* Usa preto com 5% de opacidade -> Vira um cinza suave */
table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: inherit !important;
}

/* 2. TEMA ESCURO (Tenta adivinhar todos os nomes possíveis) */
/* Usa branco com 10% de opacidade -> Clareia o fundo escuro suavemente */
body.dark-mode table tbody tr:hover,
body.dark table tbody tr:hover,
body.dark-theme table tbody tr:hover,
body[data-theme='dark'] table tbody tr:hover,
html.dark-mode body table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}
.modal-inatividade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fundo escuro */
    z-index: 99999; /* Garante que fica em cima de tudo */
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-inatividade-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-inatividade.show {
    display: flex !important; /* Força aparecer quando o JS mandar */
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.rows-per-page label {
    margin-right: 10px;
    font-size: 14px;
    color: #666;
}

.rows-per-page select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.pagination-controls button {
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px 12px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 4px;
    color: #333;
}

.pagination-controls button:hover {
    background-color: #f0f0f0;
}

.pagination-controls button.active {
    background-color: #007bff; /* Cor do seu tema */
    color: white;
    border-color: #007bff;
}

.pagination-controls button:disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Estilo para Status "Não Implantado" (Verde) */
.task-status.not-implanted {
    background-color: rgba(40, 167, 69, 0.1); /* Fundo verde bem clarinho */
    color: #28a745; /* Texto verde escuro */
    border: 1px solid rgba(40, 167, 69, 0.3); /* Borda verde suave */
}
/* Estilo para notificação de Aniversário */
.notif-birthday {
    border-left: 4px solid #FFD700; /* Dourado */
    background-color: #fffae6;
}

.notif-birthday .notif-icon {
    font-size: 1.2rem;
}
/* ==========================================================================
   AJUSTE DASHBOARD - 5 CARDS E ESTILO MELHORADO (V2 - FONTE MAIOR E TEMA ESCURO)
   Substitua o bloco anterior no style.css
   ========================================================================== */

/* 1. Força 5 colunas em telas grandes */
.dashboard-grid-5 {
    display: grid;
    /* minmax(180px) garante que caibam 5 cards lado a lado */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important; 
    gap: 16px;
    margin-bottom: 24px;
}

/* 2. Centralização e Espaçamento Interno */
.dashboard-grid-5 .stat-card {
    text-align: center !important; /* Centraliza tudo */
    padding: 20px 10px !important; /* Mais respiro vertical */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* 3. Destaque dos Números (Contadores) */
.dashboard-grid-5 .stat-card h3 {
    font-size: 2.5rem !important; /* Número maior */
    margin-bottom: 8px !important;
    width: 100%;
    color: var(--color-primary); /* Cor padrão (Azul/Verde do tema) */
}

/* CORREÇÃO: Garante que o número fique Branco no Tema Escuro */
[data-theme="dark"] .dashboard-grid-5 .stat-card h3 {
    color: #ffffff !important;
}

/* 4. Destaque dos Textos (Descrições) - AJUSTADO */
.dashboard-grid-5 .stat-card p {
    font-size: 1.1rem !important;  /* AUMENTADO (Era 0.85rem) */
    font-weight: 700 !important;    /* Negrito mantido */
    letter-spacing: 0.5px;          
    color: #555 !important;         /* Cinza escuro (Para o Fundo Branco) */
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* CORREÇÃO: Garante que a descrição fique Branca no Tema Escuro */
[data-theme="dark"] .dashboard-grid-5 .stat-card p {
    color: #ffffff !important;      /* Branco Puro (Para o Fundo Escuro) */
    opacity: 0.9;                   /* Leve suavidade */
}

/* Ajuste Responsivo: No celular, volta para 1 ou 2 colunas */
@media (max-width: 900px) {
    .dashboard-grid-5 {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    }
}
/* ==========================================================================
   CORREÇÃO FINAL - QUEBRA DE TEXTO EM MÓDULOS
   Adicione isto ao final do style.css
   ========================================================================== */

/* 1. Força a tabela a respeitar limites de largura */
#modulos-table table {
    table-layout: fixed !important; /* Essencial para quebras de texto funcionarem */
    width: 100% !important;
}

/* 2. Configura a coluna de Descrição (3ª coluna) para quebrar o texto */
#modulos-table td:nth-child(3) {
    white-space: normal !important;       /* Permite a quebra de linha */
    word-wrap: break-word !important;     /* Quebra palavras longas */
    word-break: break-word !important;    /* Garante quebra mesmo sem espaços (ex: aaaaa...) */
    overflow-wrap: break-word !important; /* Compatibilidade moderna */
    line-height: 1.4 !important;          /* Melhora leitura de múltiplas linhas */
    max-width: 0;                         /* Truque para table-layout: fixed forçar o wrap */
}

/* 3. Ajuste de larguras para equilibrar a tabela */
#modulos-table th:nth-child(1), #modulos-table td:nth-child(1) { width: 25%; } /* Nome */
#modulos-table th:nth-child(2), #modulos-table td:nth-child(2) { width: 10%; text-align: center; } /* Abrev */
#modulos-table th:nth-child(3), #modulos-table td:nth-child(3) { width: 55%; } /* Descrição (Maior espaço) */
#modulos-table th:nth-child(4), #modulos-table td:nth-child(4) { width: 10%; text-align: right; } /* Ações */
/* ==========================================================================
   FILTROS GRID PERSONALIZADO (SOLICITAÇÕES)
   ========================================================================== */

/* Configuração do Grid com colunas de largura EXATA */
.filters-grid-custom {
    display: grid;
    grid-template-columns: 
        220px  /* Município */
        150px  /* Usuário */
        120px  /* Status */
        115px  /* Sol. Início */
        115px  /* Sol. Fim */
        115px  /* Real. Início */
        115px  /* Real. Fim */
        80px;  /* Botão Limpar */
    gap: 10px;
    align-items: end; /* Alinha tudo pela parte de baixo */
    width: 100%;
}

/* Ajustes finos nos inputs dentro deste grid */
.filters-grid-custom .form-control {
    width: 100%;
    font-size: 12px;
    padding: 4px 6px;
    height: 34px;
}

.filters-grid-custom .form-label {
    font-size: 11px;
    margin-bottom: 4px;
    white-space: nowrap;
}

/* RESPONSIVIDADE: Se a tela for menor que 1100px (Notebooks pequenos), quebra a linha */
@media (max-width: 1100px) {
    .filters-grid-custom {
        grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 colunas */
        grid-template-rows: auto auto; /* 2 linhas */
    }
}

/* RESPONSIVIDADE: Celular */
@media (max-width: 600px) {
    .filters-grid-custom {
        grid-template-columns: 1fr; /* 1 coluna (empilhado) */
    }
}
/* ==========================================================================
   GRID ESPECÍFICO - ABA SOLICITAÇÕES (RE-EQUILIBRADO)
   ========================================================================== */

.filters-grid-solicitacoes {
    display: grid;
    /* DISTRIBUIÇÃO OTIMIZADA:
       1. Município: minmax(180px, 1.5fr) -> Reduzi o peso (antes 2.5fr)
       2. Usuário:   minmax(140px, 1fr)   -> Reduzi o peso (antes 1.5fr)
       3. Status:    minmax(130px, 1fr)   -> Cresce igual ao usuário
       4-7. Datas:   minmax(125px, 1fr)   -> AGORA SÃO FLEXÍVEIS (Crescem para não ficar achatadas)
       8. Botão:     90px                 -> Largura fixa suficiente
    */
    grid-template-columns: 
        minmax(180px, 1.5fr) 
        minmax(140px, 1fr) 
        minmax(130px, 1fr) 
        minmax(125px, 1fr) 
        minmax(125px, 1fr) 
        minmax(125px, 1fr) 
        minmax(125px, 1fr) 
        90px;
    
    gap: 10px;
    align-items: end;
    width: 100%;
}

/* Garante que os inputs preencham toda a célula do grid */
.filters-grid-solicitacoes .form-group {
    margin-bottom: 0;
    min-width: 0;
    width: 100%;
}

.filters-grid-solicitacoes .form-control {
    width: 100%;
    height: 34px;
    padding: 4px 8px;
    font-size: 13px;
    box-sizing: border-box;
}

/* Data um pouco menor para caber bonito */
.filters-grid-solicitacoes input[type="date"].form-control {
    font-size: 12px;
    padding: 4px 2px;
}

/* Centraliza o botão limpar */
.filters-grid-solicitacoes .g-clear .btn {
    width: 100%;
    height: 34px;
    padding: 0;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* RESPONSIVIDADE: Notebooks menores que 1350px */
/* Quebra para 2 linhas mantendo organização */
@media (max-width: 1350px) {
    .filters-grid-solicitacoes {
        /* Linha 1: Município, Usuário, Status */
        /* Linha 2: Datas (4x) + Botão */
        grid-template-columns: 1.5fr 1fr 1fr; /* Grid base de 3 colunas */
        grid-template-rows: auto auto;
        gap: 10px;
    }

    /* REPOSICIONAMENTO DOS ITENS NO GRID DE 2 LINHAS */
    
    /* Linha 1: Ocupa topo */
    .filters-grid-solicitacoes .g-municipio { grid-column: span 1; }
    .filters-grid-solicitacoes .g-usuario   { grid-column: span 1; }
    .filters-grid-solicitacoes .g-status    { grid-column: span 1; }

    /* MUDANÇA DE ESTRATÉGIA NO QUEBRA DE LINHA */
    /* Quando quebrar, mudamos para Flexbox para acomodar as 5 colunas de baixo (4 datas + botão) */
    .filters-grid-solicitacoes {
        display: flex;
        flex-wrap: wrap;
    }
    
    /* Regras do Flexbox quando quebrado */
    .filters-grid-solicitacoes .g-municipio { flex: 2; min-width: 200px; }
    .filters-grid-solicitacoes .g-usuario { flex: 1.5; min-width: 150px; }
    .filters-grid-solicitacoes .g-status { flex: 1; min-width: 130px; }
    
    /* Datas e botão na linha de baixo */
    .filters-grid-solicitacoes .g-date { flex: 1; min-width: 120px; }
    .filters-grid-solicitacoes .g-clear { flex: 0; min-width: 90px; }
}
/* ==========================================================================
   GRID ESPECÍFICO - ABA VISITAS (8 COLUNAS BALANCEADAS)
   ========================================================================== */

.filters-grid-visitas {
    display: grid;
    /* 1. Município:   1.5fr (Cresce moderadamente)
       2. Status:      160px (Fixo - Bem largo)
       3. Solicitante: 1.5fr (Cresce moderadamente)
       4-7. Datas:     1fr (Cresce igual, mínimo 130px)
       8. Botão:       90px (Fixo)
    */
    grid-template-columns: 
        minmax(150px, 1.5fr)  /* 1. Município */
        160px                 /* 2. Status */
        minmax(150px, 1.5fr)  /* 3. Solicitante */
        minmax(130px, 1fr)    /* 4. Sol. Início */
        minmax(130px, 1fr)    /* 5. Sol. Fim */
        minmax(130px, 1fr)    /* 6. Visita Início */
        minmax(130px, 1fr)    /* 7. Visita Fim */
        90px;                 /* 8. Botão Limpar */
    
    gap: 10px;
    align-items: end;
    width: 100%;
}

/* Ajustes visuais internos */
.filters-grid-visitas .form-group {
    margin-bottom: 0;
    min-width: 0;
    width: 100%;
}

.filters-grid-visitas .form-control {
    width: 100%;
    height: 34px;
    padding: 4px 8px;
    font-size: 12px;
    box-sizing: border-box;
}

/* Fonte da data ajustada */
.filters-grid-visitas input[type="date"].form-control {
    font-size: 11px;
    padding: 4px 2px;
}

/* Botão centralizado */
.filters-grid-visitas .g-clear .btn {
    width: 100%;
    height: 34px;
    padding: 0;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* RESPONSIVIDADE: Notebooks menores que 1450px */
/* Quebra em 2 linhas se não couber tudo em 1 */
@media (max-width: 1450px) {
    .filters-grid-visitas {
        /* Linha 1: Mun, Status, Solicitante */
        grid-template-columns: 1.5fr 1fr 1.5fr; 
        grid-template-rows: auto auto;
        display: grid;
    }

    /* Posicionamento forçado na Linha 1 */
    .filters-grid-visitas .g-municipio { grid-column: 1; grid-row: 1; }
    .filters-grid-visitas .g-status    { grid-column: 2; grid-row: 1; }
    .filters-grid-visitas .g-applicant { grid-column: 3; grid-row: 1; }

    /* Linha 2 (Datas e Botão) muda para Flexbox */
    .filters-grid-visitas {
        display: flex;
        flex-wrap: wrap;
    }
    
    /* Configuração Flex quando quebrado */
    .filters-grid-visitas .g-municipio { flex: 2; min-width: 180px; }
    .filters-grid-visitas .g-applicant { flex: 2; min-width: 180px; }
    .filters-grid-visitas .g-status    { flex: 1; min-width: 140px; }
    
    .filters-grid-visitas .g-date      { flex: 1; min-width: 125px; margin-top: 5px; }
    .filters-grid-visitas .g-clear     { flex: 0; min-width: 90px; margin-top: 5px; }
}
/* --- ESTILOS DO INFORMATIVO NO HEADER --- */

/* Novo container que alinha o aviso e os botões à direita */
.header-right-container {
    display: flex;
    flex-direction: column; /* Empilha verticalmente */
    align-items: flex-end;  /* Alinha tudo à direita */
    justify-content: center;
    margin-left: auto;      /* Empurra para o canto direito */
    gap: 4px;
}

/* O texto do aviso em si */
.header-announcement {
    font-size: 13px;
    font-weight: bold;
    color: #FFD700; /* Cor padrão, mas será sobrescrita pelo JS */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
    animation: fadeIn 0.5s ease-out;
    margin-bottom: 12px;
    padding-right: 5px;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ajuste fino para não quebrar no mobile */
@media (max-width: 900px) {
    .header-right-container {
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }
    .header-announcement {
        font-size: 11px;
        margin-bottom: 5px;
        white-space: normal;
        text-align: center;
    }
}
/* --- CORREÇÃO FINAL V90: Badges dentro da tabela --- */

/* Garante que a célula TD seja uma célula normal (sem flex) */
#table-mun-active td,
#table-mun-inactive td {
    display: table-cell !important;
    vertical-align: middle !important;
    height: auto !important;
}

/* O container interno (DIV) é que será flex */
.module-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    width: 100%;
    min-width: 200px; /* Garante largura mínima para não espremer */
}
/* ==========================================================================
   CORREÇÃO TABELA DE CARGOS (QUEBRA DE TEXTO)
   ========================================================================== */

/* 1. Força a tabela a respeitar larguras fixas */
#cargos-table table {
    table-layout: fixed !important;
    width: 100%;
}

/* 2. Coluna Cargo (30%) */
#cargos-table th:nth-child(1),
#cargos-table td:nth-child(1) {
    width: 30%;
    min-width: 200px;
    vertical-align: middle;
}

/* 3. Coluna Descrição (60%) - A Mágica acontece aqui */
#cargos-table th:nth-child(2),
#cargos-table td:nth-child(2) {
    width: 60%;
    white-space: normal !important;       /* Permite quebra de linha */
    word-wrap: break-word !important;     /* Quebra palavras normais */
    word-break: break-word !important;    /* Quebra palavras gigantes sem espaço */
    overflow-wrap: break-word !important; /* Compatibilidade moderna */
    line-height: 1.4 !important;
    vertical-align: middle;
}

/* 4. Coluna Ações (10%) */
#cargos-table th:nth-child(3),
#cargos-table td:nth-child(3) {
    width: 10%;
    min-width: 100px;
    text-align: center;
    vertical-align: middle;
}
/* ==========================================================================
   AJUSTE DE LAYOUT V2: TABELA MUNICÍPIOS (CORREÇÃO DEFINITIVA)
   Substitua o bloco anterior no final do style.css
   ========================================================================== */

/* 1. CLASSE PARA CORTAR TEXTO (NOVO) 
   Isso será aplicado numa DIV dentro da célula via JS */
.text-truncate-container {
    max-width: 140px;        /* Largura máxima fixa */
    white-space: nowrap;     /* Não quebra linha */
    overflow: hidden;        /* Esconde o excesso */
    text-overflow: ellipsis; /* Coloca "..." */
    display: block;
}

/* ==========================================================================
   AJUSTE DE LAYOUT V5: DEFINITIVO (Módulos 120px)
   Substitua o bloco anterior no final do style.css
   ========================================================================== */

/* 1. CLASSE PARA CORTAR TEXTO (MUNICÍPIO) */
.text-truncate-container {
    max-width: 200px;        
    white-space: nowrap;     
    overflow: hidden;        
    text-overflow: ellipsis; 
    display: block;
}

/* 2. AJUSTE COLUNA MÓDULOS (120px - Sua Preferência) */
#municipalities-table td:nth-child(2),
#municipalities-table th:nth-child(2) {
    width: 120px !important;        /* Fixado em 120px */
    max-width: 120px !important;
    min-width: 120px !important;
    white-space: normal !important; /* Quebra linha */
    vertical-align: middle !important;
}

.module-tags-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;   
    gap: 3px !important;          
    align-items: center !important;
    width: 100%;
}

/* 3. COLUNAS DE TEXTO (Município, Gestor, Contato) */
#municipalities-table td:nth-child(1),
#municipalities-table th:nth-child(1) {
    width: 210px !important; 
}

/* Gestor ganha o espaço que sobrar */
#municipalities-table td:nth-child(3),
#municipalities-table th:nth-child(3) {
    width: auto !important;
}

/* Contato Fixo */
#municipalities-table td:nth-child(4),
#municipalities-table th:nth-child(4) {
    width: 120px !important;
    white-space: nowrap !important;
}

/* ==========================================================================
   AJUSTE DE LAYOUT V6: DATAS CURTAS vs TEMPOS LONGOS
   Substitua o bloco anterior no final do style.css
   ========================================================================== */

/* GRUPO A: Colunas de Datas Simples e Números (Estreitas)
   Colunas: 5 (Implantação), 7 (Última Visita), 9 (População) */
#municipalities-table th:nth-child(5), #municipalities-table td:nth-child(5), 
#municipalities-table th:nth-child(7), #municipalities-table td:nth-child(7), 
#municipalities-table th:nth-child(9), #municipalities-table td:nth-child(9)  
{
    width: 95px !important;
    max-width: 95px !important;
    text-align: center !important;
    font-size: 11px !important;
    padding: 4px !important;
    white-space: nowrap !important; /* Data não quebra */
}

/* GRUPO B: Colunas de CÁLCULO DE TEMPO (Largas e Negrito)
   Colunas: 6 (Tempo de Uso) e 8 (Tempo S/Visita) */
#municipalities-table th:nth-child(6), #municipalities-table td:nth-child(6), 
#municipalities-table th:nth-child(8), #municipalities-table td:nth-child(8)
{
    width: 140px !important;        /* Espaço para texto longo */
    min-width: 140px !important;    
    text-align: center !important;
    font-size: 11px !important;     /* Tamanho mantido */
    padding: 4px !important;
    white-space: nowrap !important; /* Texto em uma linha só */
    
    /* ALTERAÇÃO AQUI: Aplica negrito nas informações */
    font-weight: bold !important;   
}
/* ==========================================================================
   CORREÇÃO DE CORES: DATAS NO TEMA ESCURO (VISIBILIDADE)
   Adicione isto ao final do style.css
   ========================================================================== */

/* Força a cor BRANCA nas datas válidas quando o tema for escuro */
[data-theme="dark"] .date-valid,
[data-color-scheme="dark"] .date-valid {
    color: #ffffff !important; 
}

/* Opcional: Clareia um pouco o vermelho das datas vencidas no escuro para ler melhor */
[data-theme="dark"] .date-expired,
[data-color-scheme="dark"] .date-expired {
    color: #ff8a80 !important; /* Vermelho suave/claro */
}
