:root {
  --brand-navy: #122140;
  --brand-navy-2: #1d3557;
  --brand-blue: #66a7d5;
  --brand-blue-soft: #e9f3fa;
  --surface: #ffffff;
  --canvas: #f3f7fb;
  --line: #dbe6ef;
  --text: #17263a;
  --muted: #6f8092;
  --success: #25a85a;
  --shadow-sm: 0 2px 8px rgba(18, 33, 64, 0.06);
  --shadow-md: 0 10px 30px rgba(18, 33, 64, 0.09);
  --shadow-lg: 0 20px 60px rgba(18, 33, 64, 0.14);
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 95% 0%, rgba(102, 167, 213, 0.12), transparent 27rem),
    var(--canvas);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(102, 167, 213, 0.28);
  color: var(--brand-navy);
}

.sidebar {
  position: sticky !important;
  top: 0;
  min-height: 100vh !important;
  width: 258px !important;
  padding: 26px 18px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%) !important;
  border-right: 1px solid rgba(102, 167, 213, 0.25) !important;
  box-shadow: 8px 0 32px rgba(18, 33, 64, 0.055);
  z-index: 10;
}

.sidebar img {
  filter: drop-shadow(0 4px 10px rgba(18, 33, 64, 0.08));
}

.nav-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-btn {
  position: relative;
  width: 100%;
  min-height: 43px;
  padding: 11px 14px 11px 17px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #43576b !important;
  font-weight: 500 !important;
  text-align: left !important;
  letter-spacing: 0.005em;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.nav-btn::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: var(--brand-blue);
  transform: translateY(-50%);
  transition: height 160ms ease;
}

.nav-btn:hover {
  background: rgba(102, 167, 213, 0.11) !important;
  border-color: rgba(102, 167, 213, 0.2) !important;
  color: var(--brand-navy) !important;
  transform: translateX(2px);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2)) !important;
  border-color: var(--brand-navy) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(18, 33, 64, 0.19);
}

.nav-btn.active::before {
  height: 21px;
}

.sidebar + div {
  width: calc(100% - 258px);
  min-width: 0;
  padding: 34px 40px 46px !important;
}

h1, h2, h3 {
  letter-spacing: -0.018em;
}

button, a, input, select, textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

button:not(.nav-btn):hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
}

button:not(.nav-btn):active {
  transform: translateY(0);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(102, 167, 213, 0.28) !important;
  outline-offset: 2px !important;
}

input, select, textarea {
  background-color: rgba(255, 255, 255, 0.96) !important;
  border-color: #c9d8e4 !important;
}

input:hover, select:hover, textarea:hover {
  border-color: #9dbbd1 !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand-blue) !important;
  box-shadow: 0 0 0 4px rgba(102, 167, 213, 0.13) !important;
}

#root > div > div:not(.sidebar) [style*="background: rgb(255, 255, 255)"][style*="border"] {
  border-color: rgba(189, 207, 221, 0.72) !important;
  box-shadow: var(--shadow-sm);
}

table {
  border-collapse: separate !important;
  border-spacing: 0;
}

thead th {
  background: linear-gradient(180deg, #f3f7fa 0%, #eaf1f6 100%) !important;
  color: #4c6275 !important;
  letter-spacing: 0.035em;
}

tbody tr {
  transition: background 140ms ease, box-shadow 140ms ease;
}

tbody tr:hover {
  background: #f1f8fc !important;
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

tbody td {
  border-bottom-color: #e5edf3 !important;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #b9cbd8;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #91aec2;
  border: 2px solid transparent;
  background-clip: padding-box;
}

@keyframes premium-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.sidebar + div > * {
  animation: premium-enter 260ms ease both;
}

@media (max-width: 900px) {
  #root > div:has(> .sidebar) {
    display: block !important;
  }

  .sidebar {
    position: relative !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 18px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .sidebar img {
    max-width: 210px;
  }

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

  .sidebar + div {
    width: 100%;
    padding: 24px 18px 36px !important;
  }
}

@media (max-width: 560px) {
  .nav-row {
    grid-template-columns: 1fr;
  }

  .sidebar + div {
    padding: 20px 12px 30px !important;
  }

  h1 {
    font-size: 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

thead {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
}

thead tr {
  position: relative !important;
  z-index: 20;
  background: #eef4f8 !important;
}

thead th {
  position: relative;
  z-index: 21;
}

tbody td a[href^="https://wa.me/"] {
  position: relative;
  top: 1px;
  margin-left: 5px !important;
  width: 24px !important;
  height: 24px !important;
}

tbody td a[href^="https://wa.me/"] svg {
  width: 16px;
  height: 16px;
}
/* Premium v11: navegação iconográfica e cartões com acesso direto */
.nav-btn {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
}

.premium-nav-icon {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 8px;
  background: rgba(102, 167, 213, 0.12);
  color: #3d759d;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.premium-nav-icon svg {
  width: 16px;
  height: 16px;
}

.nav-btn:hover .premium-nav-icon {
  background: rgba(102, 167, 213, 0.2);
  transform: scale(1.04);
}

.nav-btn.active .premium-nav-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.premium-action-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  padding-bottom: 36px !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease !important;
}

.premium-action-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, #66a7d5, #122140);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.premium-action-card:hover,
.premium-action-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(102, 167, 213, 0.62) !important;
  box-shadow: 0 14px 32px rgba(18, 33, 64, 0.12) !important;
}

.premium-action-card:hover::after,
.premium-action-card:focus-visible::after {
  transform: scaleX(1);
}

.premium-card-link {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: #568eb8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sidebar + div > div[style*="grid"] > div[style*="background"] {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sidebar + div > div[style*="grid"] > div[style*="background"]:hover {
  border-color: rgba(102, 167, 213, 0.48) !important;
  box-shadow: 0 12px 28px rgba(18, 33, 64, 0.1) !important;
}

@media (max-width: 900px) {
  .premium-nav-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }
}