/**
 * GCT — Dataryon · tema visual de alto impacto
 * (Classes wash-* mantidas para compatibilidade com templates.)
 * Tipografia: Plus Jakarta Sans (títulos e corpo legíveis, sem “esticado”.)
 */

:root {
  --wash-font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --gct-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  --bs-primary: #06b6d4;
  --bs-primary-rgb: 6, 182, 212;
  --bs-link-color: #0891b2;
  --bs-link-hover-color: #0e7490;

  --wash-bg0: #030712;
  --wash-bg1: #0f172a;
  --wash-bg2: #1e1b4b;
  --wash-surface: rgba(255, 255, 255, 0.97);
  --wash-surface-2: rgba(255, 255, 255, 0.78);
  --wash-ink: #0f172a;
  --wash-ink-muted: #64748b;
  --wash-ink-soft: #94a3b8;

  --wash-primary: #06b6d4;
  --wash-primary-deep: #0891b2;
  --wash-primary-hover: #22d3ee;
  --wash-primary-soft: rgba(6, 182, 212, 0.15);
  --wash-accent: #a855f7;
  --wash-accent-soft: rgba(168, 85, 247, 0.12);
  --wash-success: #10b981;

  --wash-border: rgba(15, 23, 42, 0.12);
  --wash-border-strong: rgba(71, 85, 105, 0.26);
  --wash-border-field: rgba(100, 116, 139, 0.34);
  --wash-field-bg: rgba(255, 255, 255, 0.98);
  --wash-glow: 0 0 40px rgba(6, 182, 212, 0.12);
  --wash-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --wash-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --wash-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --wash-radius: 18px;
  --wash-radius-sm: 12px;
  --wash-radius-pill: 9999px;
  --wash-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body.wash-app {
  font-family: var(--wash-font);
  color: var(--wash-ink);
  font-size: 0.9375rem;
  line-height: 1.55;
  min-height: 100vh;
  letter-spacing: 0;
  position: relative;
  background-color: #020617;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -40%, rgba(6, 182, 212, 0.35), transparent 50%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(168, 85, 247, 0.2), transparent 45%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(8, 145, 178, 0.18), transparent 45%),
    linear-gradient(165deg, #020617 0%, #0f172a 38%, #1e1b4b 72%, #0c4a6e 100%);
  background-attachment: fixed;
}

body.wash-app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.03'%3E%3Cpath d='M0 40h80M40 0v80'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
}

/* main sem z-index: senão o backdrop do Bootstrap (1050) cobre todo o <main>,
   incluindo o modal, e os campos ficam inacessíveis. Nav/footer mantêm z-index
   para ficarem acima do fundo decorativo (body::before). */
body.wash-app > nav,
body.wash-app > footer {
  position: relative;
  z-index: 1;
}

body.wash-app > main {
  position: relative;
}

/* ——— Navbar ——— */
.navbar-wash {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(248, 250, 252, 0.88) 100%
  ) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 0 rgba(6, 182, 212, 0.08) inset;
  padding: 0.65rem 0;
}

.navbar-wash .navbar-brand {
  transition: transform var(--wash-transition), filter var(--wash-transition);
  color: var(--wash-ink) !important;
}

.navbar-wash .navbar-brand:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.navbar-wash .navbar-brand:hover .gct-brand-text {
  filter: brightness(1.08);
}

/* Logo colmeia (hexágonos) — PNG inclui restos da marca à direita (texto + traço); recorte só o ícone. */
.gct-logo-hive {
  width: 1.55rem;
  min-height: 0.85rem;
  height: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
  /* Mostrar ~metade esquerda do bitmap (colmeia); esconder texto/traço acidental à direita */
  clip-path: inset(0 46% 0 0);
  -webkit-clip-path: inset(0 46% 0 0);
  /* Linhas e hexágonos mais legíveis em tamanho pequeno */
  filter: contrast(1.28) brightness(0.97) drop-shadow(0 0 0.65px rgba(30, 41, 59, 0.35));
}

/* SVG da colmeia: viewBox já é só os hexágonos — sem recorte (o clip do PNG cortaria o ícone). */
.gct-logo-hive[src$=".svg"] {
  clip-path: none;
  -webkit-clip-path: none;
}

.navbar-wash .navbar-brand .gct-logo-hive {
  width: 1.55rem;
}

.gct-logo-hive--auth {
  width: 2.4rem;
}

/* Logo no modal de leitura dos relatórios */
.gct-logo-hive--read-modal {
  width: 2.35rem;
  margin-top: 0.15rem;
}

.gct-read-modal-brand {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #64748b !important;
}

.navbar-wash .nav-link {
  color: var(--wash-ink-muted) !important;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--wash-radius-sm);
  transition: color var(--wash-transition), background var(--wash-transition), box-shadow var(--wash-transition);
}

.navbar-wash .nav-link:hover {
  color: var(--wash-ink) !important;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.08));
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.15);
}

.navbar-wash .nav-link i {
  opacity: 0.88;
}

.navbar-wash .navbar-toggler {
  border-color: var(--wash-border-strong);
  border-radius: var(--wash-radius-sm);
}

.wash-main {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem) !important;
  padding-right: clamp(1rem, 3vw, 2rem) !important;
  padding-bottom: 3rem !important;
}

/* ——— Page header ——— */
.wash-page-head {
  margin-bottom: 1.85rem;
  padding-bottom: 1.25rem;
  border-bottom: none;
  position: relative;
}

.wash-page-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100%, 12rem);
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6, transparent);
  opacity: 0.95;
}

.wash-page-head h1,
.wash-page-head .wash-title {
  font-family: var(--gct-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.wash-page-head .text-secondary,
.wash-page-head .text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* Hero do dashboard: fundo claro — título escuro */
.gct-dashboard-hero .wash-page-head h1,
.gct-dashboard-hero .wash-page-head .wash-title {
  color: #0f172a;
  text-shadow: none;
}

/* ——— Cards ——— */
.wash-card,
.card.wash-card,
.card {
  background: var(--wash-surface);
  border: 1px solid rgba(203, 213, 225, 0.88) !important;
  border-radius: var(--wash-radius) !important;
  box-shadow: var(--wash-shadow), 0 0 0 1px rgba(71, 85, 105, 0.1) !important;
  transition: box-shadow var(--wash-transition), border-color var(--wash-transition), transform var(--wash-transition);
  overflow: hidden;
}

.wash-card:hover,
.card:hover {
  box-shadow: var(--wash-shadow-lg), var(--wash-glow) !important;
  border-color: rgba(6, 182, 212, 0.18) !important;
  transform: translateY(-2px);
}

.card.overflow-hidden:hover,
.wash-card--raised:hover,
.wash-card-panel:hover {
  transform: none;
}

/* Painel de conteúdo elevado (listas, formulários, portal) */
.wash-card--raised,
.wash-card-panel {
  background: var(--wash-surface);
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  border-radius: var(--wash-radius) !important;
  box-shadow: var(--wash-shadow-lg), 0 0 0 1px rgba(71, 85, 105, 0.11) !important;
}

.wash-card-panel {
  padding: 1.5rem 1.65rem;
}

/* Formulários estreitos (alterar senha, etc.) */
.gct-form-card-narrow {
  max-width: 480px;
}

.card .card-body {
  padding: 1.4rem 1.55rem;
}

.card-title,
h5.card-title {
  font-family: var(--gct-display);
  font-weight: 700;
  color: var(--wash-ink);
  letter-spacing: -0.03em;
}

/* ——— Stat cards (dashboard) ——— */
.wash-stat-card {
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: var(--wash-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  box-shadow: var(--wash-shadow);
  padding: 1.4rem 1.45rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: transform var(--wash-transition), box-shadow var(--wash-transition), border-color var(--wash-transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.wash-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
  pointer-events: none;
}

a.wash-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wash-shadow-lg), 0 0 32px rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.25);
  color: inherit;
}

.wash-stat-card .wash-stat-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.wash-stat-card .wash-stat-icon.c1 {
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.2), rgba(8, 145, 178, 0.12));
  color: #0891b2;
}

.wash-stat-card .wash-stat-icon.c2 {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
  color: #059669;
}

.wash-stat-card .wash-stat-icon.c3 {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.22), rgba(6, 182, 212, 0.12));
  color: #7c3aed;
}

.wash-stat-card .wash-stat-value {
  font-family: var(--gct-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wash-ink);
  line-height: 1.15;
}

.wash-stat-card .wash-stat-label {
  font-size: 0.8rem;
  color: var(--wash-ink-muted);
  font-weight: 600;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wash-stat-card .wash-stat-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0891b2;
  margin-top: 0.4rem;
  display: inline-block;
}

.wash-stat-card .wash-stat-link:hover {
  text-decoration: underline;
  color: #06b6d4;
}

/* ——— Filter bar ——— */
.wash-filter-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92));
  border: 1px solid var(--wash-border-strong);
  border-radius: var(--wash-radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--wash-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

/* ——— Forms ——— */
.form-control,
.form-select,
textarea.form-control {
  border-radius: var(--wash-radius-sm);
  border: 1px solid var(--wash-border-field);
  background-color: var(--wash-field-bg);
  padding: 0.55rem 0.95rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color var(--wash-transition), box-shadow var(--wash-transition), background-color var(--wash-transition);
}

.form-control-sm,
.form-select-sm {
  border: 1px solid var(--wash-border-field);
  background-color: var(--wash-field-bg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.form-control:hover:not(:focus):not(:disabled):not([readonly]),
.form-select:hover:not(:focus):not(:disabled) {
  border-color: rgba(71, 85, 105, 0.42);
}

.form-control:focus,
.form-select:focus {
  border-color: #06b6d4;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2), 0 1px 2px rgba(15, 23, 42, 0.05);
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
  border-color: var(--wash-border-strong);
  background-color: rgba(248, 250, 252, 0.92);
}

.form-check-input {
  border: 1px solid var(--wash-border-field);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.form-check-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--wash-ink);
  margin-bottom: 0.4rem;
}

/* Agrupamento de campos (planilhas CA02–CA05) */
.gct-fieldset {
  border: 1px solid var(--wash-border-field);
  border-radius: var(--wash-radius-sm);
  padding: 1rem 1rem 0.5rem;
  background: rgba(248, 250, 252, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.gct-fieldset-legend {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wash-ink-muted);
  padding: 0 0.35rem;
  float: none;
  width: auto;
}

/* Obrigatório — asterisco vermelho (padrão GCT) */
.gct-req {
  color: #dc2626;
  font-weight: 700;
  margin-left: 0.12em;
}

/* Seções expansíveis (ex.: cliente após Identificação) */
.gct-fieldset-collapse {
  border: 1px solid var(--wash-border-field);
  border-radius: var(--wash-radius-sm);
  background: rgba(248, 250, 252, 0.72);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.gct-fieldset-collapse-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wash-ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.gct-fieldset-collapse-toggle:hover {
  background: rgba(255, 255, 255, 0.95);
}

.gct-fieldset-collapse-icon {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--wash-ink-muted);
  transition: transform 0.2s ease;
}

.gct-fieldset-collapse-toggle[aria-expanded="true"] .gct-fieldset-collapse-icon {
  transform: rotate(180deg);
}

.gct-fieldset-collapse-body {
  padding: 0.75rem 1rem 0.85rem;
  border-top: 1px solid var(--wash-border-strong);
}

/* ——— Buttons ——— */
.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 45%, #0e7490 100%);
  border: none;
  font-weight: 700;
  border-radius: var(--wash-radius-pill);
  padding: 0.55rem 1.45rem;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transition: transform 0.15s ease, box-shadow var(--wash-transition), filter var(--wash-transition);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 50%, #0891b2 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
  filter: brightness(1.02);
}

.btn-success {
  border-radius: var(--wash-radius-pill);
  font-weight: 600;
}

.btn-outline-secondary {
  border-radius: var(--wash-radius-pill);
  border-color: var(--wash-border-strong);
  color: var(--wash-ink-muted);
  font-weight: 600;
}

.btn-outline-secondary:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--wash-ink-soft);
  color: var(--wash-ink);
}

.btn-sm {
  border-radius: var(--wash-radius-sm);
  font-weight: 600;
}

.btn-outline-primary {
  border-color: rgba(6, 182, 212, 0.45);
  color: #0891b2;
}

.btn-outline-primary:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: #06b6d4;
  color: #0e7490;
}

/* ——— Tables ——— */
.table-responsive {
  border: 1px solid var(--wash-border-strong);
  border-radius: var(--wash-radius-sm);
  box-shadow: var(--wash-shadow-sm);
}

.table {
  --bs-table-border-color: var(--wash-border-strong);
}

.table thead th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #64748b;
  border-bottom: 2px solid rgba(6, 182, 212, 0.2);
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 1), rgba(241, 245, 249, 0.95));
}

.table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom-color: var(--wash-border-strong);
}

.table-hover tbody tr {
  transition: background var(--wash-transition), transform var(--wash-transition);
}

.table-hover tbody tr:hover {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.06), rgba(139, 92, 246, 0.04)) !important;
}

.table-light thead th {
  background: linear-gradient(180deg, rgba(248, 250, 252, 1), rgba(241, 245, 249, 0.98));
}

/* ——— Alerts ——— */
.alert {
  border-radius: var(--wash-radius-sm);
  border: none;
  box-shadow: var(--wash-shadow-sm);
  border-left: 4px solid;
}

.alert-success {
  border-left-color: #10b981;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), #fff);
}

.alert-danger,
.alert-error {
  border-left-color: #ef4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08), #fff);
}

.alert-info {
  border-left-color: #06b6d4;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.08), #fff);
}

.alert-warning {
  border-left-color: #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), #fff);
}

/* ——— Footer ——— */
.footer-wash {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), #020617);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(6, 182, 212, 0.15);
  padding: 1.35rem 1.5rem;
  font-size: 0.78rem;
  color: #fff;
  margin-top: auto;
  letter-spacing: 0.02em;
}

.footer-wash::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.35), transparent);
  margin: -1.35rem -1.5rem 1rem;
}

.gct-footer-legal-block {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-wash .gct-footer-legal-primary {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.footer-wash .gct-footer-legal-secondary {
  font-size: 0.74rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.wash-auth-footer .gct-footer-legal-primary {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.wash-auth-footer .gct-footer-legal-secondary {
  font-size: 0.74rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ——— Utilities ——— */
h1.h4,
.h4 {
  font-family: var(--gct-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wash-ink);
}

.text-muted {
  color: var(--wash-ink-muted) !important;
}

.badge {
  font-weight: 700;
  border-radius: 8px;
  padding: 0.4em 0.7em;
  letter-spacing: 0.02em;
}

.bg-success {
  background: linear-gradient(135deg, #10b981, #059669) !important;
}

.bg-warning.text-dark {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
}

.bg-danger {
  background: linear-gradient(135deg, #f87171, #ef4444) !important;
}

/* ——— Modals ——— */
.modal-content {
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: var(--wash-radius) !important;
  box-shadow: var(--wash-shadow-lg), 0 0 0 1px rgba(71, 85, 105, 0.12), 0 0 60px rgba(6, 182, 212, 0.08);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, rgba(248, 250, 252, 1), rgba(241, 245, 249, 0.95));
  border-bottom: 1px solid var(--wash-border-strong);
}

.modal-title {
  font-family: var(--gct-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.modal-backdrop.show {
  backdrop-filter: blur(6px);
}

/* ——— Relatórios: modal de leitura (tipografia limpa) ——— */
.gct-btn-read {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.gct-btn-read:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5);
}

.gct-report-modal-read {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--wash-shadow-lg) !important;
}

.gct-report-read {
  font-size: 1rem;
  line-height: 1.65;
  color: #0f172a;
}

.gct-read-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 0;
}

.gct-read-sheet {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--wash-radius-sm);
  overflow: hidden;
  background: #fff;
}

.gct-read-table {
  margin-bottom: 0;
  --bs-table-bg: transparent;
}
.gct-read-table thead th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 2px solid rgba(15, 23, 42, 0.08);
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
  background: rgba(248, 250, 252, 0.95);
}
.gct-read-table tbody td,
.gct-read-table tbody th {
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
  border-color: rgba(15, 23, 42, 0.06);
}
.gct-read-table tbody tr:last-child td {
  border-bottom: none;
}

.gct-read-index li a {
  color: #0e7490;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(14, 116, 144, 0.25);
}
.gct-read-index li a:hover {
  color: #155e75;
  border-bottom-color: rgba(21, 94, 117, 0.45);
}

.nav-select-empresa {
  min-width: 160px;
  max-width: 220px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wash-ink);
  cursor: pointer;
  border: 1px solid var(--wash-border);
  border-radius: var(--wash-radius-sm);
  background: var(--wash-surface);
  padding: 0.35rem 2rem 0.35rem 0.65rem;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 0.85rem;
}

.nav-select-empresa:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px var(--wash-primary-soft);
}

/* ========== Auth pages ========== */
body.wash-auth {
  font-family: var(--wash-font);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
  background-color: #020617;
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -20%, rgba(6, 182, 212, 0.45), transparent 55%),
    radial-gradient(ellipse 80% 60% at 110% 50%, rgba(139, 92, 246, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 50% at -10% 80%, rgba(8, 145, 178, 0.3), transparent 50%),
    linear-gradient(165deg, #020617 0%, #0f172a 40%, #1e1b4b 100%);
  color: var(--wash-ink);
}

body.wash-auth::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

body.wash-auth > * {
  position: relative;
  z-index: 1;
}

.wash-auth-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.92) 100%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  box-shadow:
    0 32px 64px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(71, 85, 105, 0.1),
    0 -1px 0 rgba(6, 182, 212, 0.15) inset;
  padding: 2.5rem 2.25rem;
  animation: gct-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gct-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wash-auth-card .wash-auth-logo {
  font-family: var(--gct-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #0e7490;
}

.wash-auth-card .wash-auth-logo span {
  line-height: 1;
}

.wash-auth-card .wash-auth-sub {
  font-size: 0.92rem;
  color: var(--wash-ink-muted);
  line-height: 1.5;
  margin-bottom: 1.85rem;
  font-weight: 500;
}

.wash-auth-card .form-control,
.wash-auth-card .form-select {
  padding: 0.7rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--wash-border-field);
  background-color: var(--wash-field-bg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wash-auth-card .form-label {
  font-weight: 700;
  color: var(--wash-ink);
  text-transform: none;
  letter-spacing: 0;
}

.wash-auth-card .btn-wash-submit {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--wash-radius-pill);
  border: none;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.45);
  margin-top: 0.5rem;
  transition: transform 0.15s ease, box-shadow var(--wash-transition);
  letter-spacing: 0.02em;
}

.wash-auth-card .btn-wash-submit:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(6, 182, 212, 0.55);
}

.wash-auth-card .btn-wash-outline {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  line-height: 1.4;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--wash-radius-pill);
  border: 2px solid #06b6d4;
  background: transparent;
  color: #0891b2;
  text-decoration: none;
  transition: background var(--wash-transition), color var(--wash-transition);
}

.wash-auth-card .btn-wash-outline:hover {
  background: rgba(6, 182, 212, 0.12);
  color: #0e7490;
}

.wash-auth-footer {
  margin-top: 2.75rem;
  text-align: center;
  font-size: 0.74rem;
  color: #fff;
  max-width: 440px;
  line-height: 1.6;
}

.wash-auth-footer p {
  margin: 0.35rem 0;
}

.wash-link-muted {
  font-size: 0.9rem;
  color: #22d3ee;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--wash-transition);
}

.wash-link-muted:hover {
  color: #a5f3fc;
  text-decoration: underline;
}

/* Chart card */
.wash-chart-card {
  border: 1px solid rgba(203, 213, 225, 0.88) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95)) !important;
  position: relative;
  overflow: hidden;
}

.wash-chart-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--wash-radius) var(--wash-radius) 0 0;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6, #06b6d4);
  opacity: 0.65;
  pointer-events: none;
}

.wash-chart-card .card-body {
  padding: 1.55rem 1.6rem;
}

.wash-chart-card .card-title {
  font-family: var(--gct-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

@media (max-width: 991.98px) {
  .navbar-wash .navbar-collapse {
    padding-top: 0.85rem;
    border-top: 1px solid var(--wash-border);
    margin-top: 0.5rem;
  }
}

/* Agendamento público — compatibilidade Lava_jato */
.wash-auth-card--agendar {
  max-width: 460px;
}

.agendar-bloco-datahora {
  border-radius: 14px;
  border: 1px solid var(--wash-border);
  background: rgba(6, 182, 212, 0.06);
  padding: 1rem 1rem 0.35rem;
}

.agendar-datahora-row > [class*="col-"] {
  min-width: 0;
}

.agendar-input-datahora {
  width: 100%;
}

@media (max-width: 767.98px) {
  .wash-auth-card--agendar {
    padding: 1.65rem 1.25rem;
    max-width: 100%;
  }
  .agendar-datahora-titulo {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wash-ink-muted);
    margin-bottom: 0.5rem !important;
  }
  .agendar-bloco-datahora {
    padding: 0.85rem 0.75rem 0.65rem;
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.18);
  }
  .agendar-datahora-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wash-ink-muted);
    margin-bottom: 0.3rem !important;
    display: block;
  }
  .agendar-input-datahora {
    min-height: 3rem;
    padding: 0.55rem 0.5rem;
    font-size: 16px;
    line-height: 1.35;
  }
}

@media (min-width: 768px) {
  .agendar-datahora-titulo {
    display: none;
  }
  .agendar-bloco-datahora {
    background: transparent;
    border: none;
    padding: 0;
  }
  .agendar-datahora-label {
    font-size: inherit;
    text-transform: none;
    letter-spacing: normal;
    color: inherit;
    margin-bottom: 0.375rem !important;
  }
  .agendar-input-datahora {
    min-height: unset;
    font-size: inherit;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .agenda-mob-datahora-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wash-ink-muted, #6c757d);
    margin-bottom: 0.3rem !important;
  }
  .agenda-input-datahora {
    min-height: 3rem;
    font-size: 16px;
    padding: 0.55rem 0.5rem;
  }
  .agenda-col-datahora {
    min-width: 0;
  }
}

/* Seleção de texto — detalhe premium */
::selection {
  background: rgba(6, 182, 212, 0.25);
  color: inherit;
}

/* ——— Marca GCT na navbar ——— */
.gct-brand-text {
  font-family: var(--gct-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
  color: #0e7490;
}

.gct-brand-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(139, 92, 246, 0.1));
  color: #0e7490;
  border: 1px solid rgba(6, 182, 212, 0.28);
  line-height: 1;
}

@media (max-width: 575.98px) {
  .gct-brand-badge {
    display: none;
  }
}

.gct-user-pill {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(6, 182, 212, 0.06)) !important;
  border-radius: 999px !important;
  border: 1px solid rgba(6, 182, 212, 0.12);
  font-weight: 600 !important;
  color: var(--wash-ink) !important;
}

/* Login — eyebrow e cartão */
.gct-login-card {
  max-width: 460px;
}

.gct-login-card .wash-auth-logo {
  color: #0f172a;
}

.gct-login-card .wash-auth-logo span {
  color: #0e7490;
}

.gct-login-card .btn-outline-primary {
  border-radius: var(--wash-radius-pill);
  border-width: 2px;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  color: #0891b2;
  border-color: rgba(6, 182, 212, 0.55);
}

.gct-login-card .btn-outline-primary:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: #06b6d4;
  color: #0e7490;
}

.gct-login-eyebrow {
  font-family: var(--gct-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0891b2;
}

/* Portal — marca na navbar */
.gct-portal-brand .gct-brand-text {
  color: #06b6d4;
}

/* KPI compacto (portal e painéis) */
.gct-kpi-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: var(--wash-radius-sm);
  box-shadow: var(--wash-shadow-sm);
  padding: 1.25rem 1.35rem;
  height: 100%;
}

.gct-kpi-card .gct-kpi-label {
  font-size: 0.8rem;
  color: var(--wash-ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gct-kpi-card .gct-kpi-value {
  font-family: var(--gct-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--wash-ink);
  line-height: 1.15;
  margin-top: 0.15rem;
}

/* Botão de ação principal em destaque (portal) */
.gct-btn-action-pill {
  border-radius: var(--wash-radius-pill) !important;
  padding: 1rem 1.5rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 100%;
  width: 100%;
}

.gct-btn-action-pill i {
  font-size: 1.15rem;
}

/* Título de secção dentro de cartões */
.gct-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wash-ink-muted);
  margin-bottom: 1rem;
}

/* Lista de relatórios */
.gct-report-list {
  border-radius: var(--wash-radius) !important;
  overflow: hidden;
  border: 1px solid var(--wash-border-strong) !important;
  box-shadow: var(--wash-shadow) !important;
  background: var(--wash-surface);
}

.gct-report-list .list-group-item {
  border-color: var(--wash-border-strong);
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--wash-ink);
  transition: background var(--wash-transition);
}

.gct-report-list .list-group-item:hover {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.06), rgba(139, 92, 246, 0.04));
  color: var(--wash-ink);
}

.gct-report-list .list-group-item i.bi-chevron-right {
  opacity: 0.45;
}

/* Modais de formulário e colunas de tabela */
.gct-modal-form .modal-body {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.gct-table-id {
  width: 3.5rem;
}

/* Dashboard — faixa de boas-vindas */
.gct-dashboard-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.88) 100%);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: var(--wash-radius);
  padding: 1.35rem 1.6rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--wash-shadow), 0 0 40px rgba(6, 182, 212, 0.06);
  backdrop-filter: blur(12px);
}

.gct-dashboard-hero .wash-page-head {
  margin-bottom: 0;
  padding-bottom: 0;
}

.gct-dashboard-hero .wash-page-head::after {
  display: none;
}

/* ——— Seletor de idioma — estilo OwMae (flagcdn + flutter) ——— */
@keyframes gct-flag-flutter {
  0%, 100% { transform: rotate(-6deg) skewX(-3deg) scale(1); }
  25% { transform: rotate(5deg) skewX(4deg) scale(1.02); }
  50% { transform: rotate(-3deg) skewX(-2deg) scale(1); }
  75% { transform: rotate(7deg) skewX(3deg) scale(1.02); }
}

.gct-lang-flags {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.gct-lang-flags--inline {
  justify-content: center;
  margin-bottom: 1rem;
}

.gct-lang-flags--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  max-width: min(15.5rem, 92vw);
  margin: 0 auto 1rem;
}

.gct-lang-flag-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.2rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.gct-lang-flags--stacked .gct-lang-flag-btn {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--wash-shadow-sm);
}

.gct-lang-flag-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.gct-lang-flags--stacked .gct-lang-flag-btn:hover {
  background: #fff;
  border-color: rgba(6, 182, 212, 0.28);
}

.gct-lang-flag-btn--active {
  border-color: rgba(6, 182, 212, 0.85);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.35);
}

.gct-lang-flags--stacked .gct-lang-flag-btn--active {
  border-color: rgba(6, 182, 212, 0.45);
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06), 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.gct-lang-flag-fi {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 1.35rem;
  transform-origin: 12% 88%;
  animation: gct-flag-flutter 2.4s ease-in-out infinite;
}

.gct-lang-flag-fi--delay-1 {
  animation-delay: 0.15s;
}

.gct-lang-flag-fi--delay-2 {
  animation-delay: 0.3s;
}

.gct-lang-flag-img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.gct-lang-flag-emoji {
  display: none;
  font-size: 1.1rem;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.gct-lang-flag-fi--fallback .gct-lang-flag-img {
  display: none;
}

.gct-lang-flag-fi--fallback .gct-lang-flag-emoji {
  display: block;
}

.gct-lang-flag-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.06rem;
  min-width: 0;
  flex: 1 1 auto;
}

.gct-lang-flag-btn:has(.gct-lang-flag-fi:not(.gct-lang-flag-fi--fallback)) .gct-lang-flag-code {
  display: none;
}

.gct-lang-flag-code {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.1;
  color: var(--wash-ink-muted);
}

.gct-lang-flag-lbl {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--wash-ink);
  line-height: 1.22;
}

.navbar .gct-lang-flags--inline {
  margin-bottom: 0;
  gap: 0.3rem;
}

.navbar .gct-lang-flag-fi {
  width: 1.75rem;
  height: 1.1rem;
}

.navbar .gct-lang-flag-btn {
  padding: 0.1rem;
}

@media (prefers-reduced-motion: reduce) {
  .gct-lang-flag-fi {
    animation: none;
  }
}

/* ——— Impressão: relatório em modal de leitura ——— */
@media print {
  body.wash-app > nav.navbar,
  body.wash-app > footer {
    display: none !important;
  }
  .wash-main > *:not(.modal) {
    display: none !important;
  }
  .modal-backdrop {
    display: none !important;
  }
  .modal.gct-report-read-modal {
    position: static !important;
    display: block !important;
    overflow: visible !important;
    height: auto !important;
  }
  .modal.gct-report-read-modal .modal-dialog {
    margin: 0 !important;
    max-width: 100% !important;
  }
  .modal.gct-report-read-modal .modal-content {
    border: none !important;
    box-shadow: none !important;
  }
  .modal.gct-report-read-modal .modal-header .btn-close,
  .modal.gct-report-read-modal .modal-footer {
    display: none !important;
  }
  body.wash-app {
    background: #fff !important;
  }
}
