﻿@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --bg-0: #f0f7ff;
  --bg-1: #e3edf7;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #1a3a5c;
  --muted: #5a7a9a;
  --border: #c8daf0;
  --primary: #3b9eff;
  --primary-strong: #2070c7;
  --sidebar-1: #e8f4ff;
  --sidebar-2: #d4e8f8;
  --sidebar-width: 292px;
  --ok: #168a59;
  --danger: #c0362c;
  --shadow-lg: 0 18px 45px rgba(31, 111, 235, 0.1);
  --shadow-md: 0 10px 30px rgba(31, 111, 235, 0.08);
  --radius-xl: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% -10%, #e8f4ff 0%, transparent 45%),
    radial-gradient(circle at 90% -15%, #d4e8f8 0%, transparent 42%),
    linear-gradient(180deg, #f5faff 0%, #e3edf7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
}

.sidebar-eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
strong,
.menu-item,
.btn-primary,
.btn-ghost {
  font-family: "Manrope", "Source Sans 3", sans-serif;
}

.muted,
.hint {
  color: var(--muted);
}

.hint {
  display: block;
  margin-top: 10px;
}

.form-stack,
.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: #2a3950;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #92b8fa;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.14);
}

textarea {
  resize: vertical;
}

button {
  border: none;
  border-radius: 11px;
  cursor: pointer;
  padding: 10px 14px;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

button:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #3b9eff, #2080e0);
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 158, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2d8fef, #1868c8);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: #fff;
  color: #1a3a5c;
}

.btn-danger {
  background: linear-gradient(135deg, #e05045, #c92d28);
  color: #fff;
  box-shadow: 0 8px 18px rgba(201, 45, 40, 0.25);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c53d33, #a7261f);
}

.feedback {
  margin: 0;
  min-height: 20px;
  font-size: 0.9rem;
}

.report-progress {
  margin-top: 6px;
  margin-bottom: 10px;
}

.report-progress-track {
  width: 100%;
  height: 9px;
  border-radius: 6px;
  background: #d8e2f2;
  overflow: hidden;
}

.report-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1f6feb, #33a1ff);
  transition: width 180ms linear;
}

.report-progress-text {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #4a5a74;
}

.report-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

.report-loading-overlay.hidden {
  display: none;
}

#tabTable {
  position: relative;
  min-height: 200px;
}

.report-loading-content {
  text-align: center;
  padding: 20px;
}

.report-loading-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 5px solid #e5e7eb;
  border-top-color: #1f6feb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.report-loading-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a3a5c;
  margin: 0 0 6px;
}

.report-loading-subtext {
  font-size: 0.9rem;
  color: #5a7a9a;
  margin: 0;
}

.layout {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(165deg, #f0f7ff, #dce9f6);
  color: #1a3a5c;
  padding: 20px;
  position: fixed;
  inset: 0 auto 0 0;
  transform: translateX(-100%);
  transition: transform 230ms ease, box-shadow 230ms ease;
  z-index: 20;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.is-open {
  transform: translateX(0);
  box-shadow: 0 0 0 9999px rgba(26, 58, 92, 0.15);
}

.sidebar-header {
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(59, 158, 255, 0.2);
}

.sidebar-header h2 {
  margin: 7px 0 0;
  font-size: 1.22rem;
}

.sidebar-close-btn {
  position: absolute;
  top: 84px;
  right: -24px;
  width: 28px;
  height: 72px;
  border: 1px solid rgba(59, 158, 255, 0.3);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #e8f4ff, #d4e8f8);
  color: #2070c7;
  box-shadow: 0 10px 22px rgba(31, 111, 235, 0.15);
  font-size: 0.92rem;
  z-index: 2;
}

.sidebar-close-btn:hover {
  background: linear-gradient(180deg, #d4e8f8, #bddcf2);
}

.sidebar-tab {
  position: fixed;
  top: 50%;
  left: -1px;
  transform: translateY(-50%);
  width: 34px;
  height: 108px;
  border: 1px solid rgba(59, 158, 255, 0.4);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  clip-path: polygon(0 0, 100% 12%, 100% 88%, 0 100%);
  background: linear-gradient(180deg, #e8f4ff, #d4e8f8);
  color: #2070c7;
  box-shadow: 0 12px 26px rgba(31, 111, 235, 0.12);
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 80;
  transition: left 220ms ease, background 160ms ease;
}

.sidebar-tab-icon {
  font-size: 1.08rem;
  line-height: 1;
  transform: translateX(1px);
}

body.sidebar-open .sidebar-tab {
  left: calc(var(--sidebar-width) - 1px);
}

.sidebar-tab:hover {
  transform: translateY(-50%);
  background: linear-gradient(180deg, #d4e8f8, #bddcf2);
}

.menu-item {
  width: 100%;
  display: block;
  text-align: left;
  color: #1a3a5c;
  background: transparent;
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 6px;
}

.menu-item:hover,
.menu-item.active {
  background: rgba(59, 158, 255, 0.15);
  color: #2070c7;
}

.menu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 0 0 8px;
  transition:
    max-height 280ms cubic-bezier(.25,.8,.25,1),
    opacity 220ms ease,
    padding 280ms cubic-bezier(.25,.8,.25,1);
}

.submenu.is-open {
  max-height: 980px;
  opacity: 1;
  padding: 6px 0 0 8px;
}

.content-wrap {
  width: 100%;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid rgba(59, 158, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-button {
  font-size: 1.2rem;
  color: #1a3a5c;
  background: #fff;
  border: 1px solid var(--border);
}

.page-main {
  padding: 20px;
}


.topbar-home {
  background: linear-gradient(105deg, #3b9eff, #5cb3ff);
  color: #ffffff;
  border-bottom: 0;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.topbar-brand-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.topbar-brand-link:hover {
  opacity: 0.92;
}

.topbar-brand-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 4px;
  border-radius: 8px;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #7de9ff, #52b7e6);
  box-shadow: 0 5px 14px rgba(8, 23, 50, 0.35);
}

.brand-mark-image {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  transform: none;
  background: transparent;
  box-shadow: none;
}

.topbar-home-right {
  gap: 14px;
}

.topbar-search {
  min-width: 220px;
}

.topbar-search input {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.5);
}

.calc-trigger-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.calc-trigger-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

.welcome-pill {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 32, 67, 0.25);
}

.home-main {
  display: grid;
  gap: 16px;
}

.home-hero {
  min-height: 236px;
  background:
    linear-gradient(108deg, rgba(32, 112, 199, 0.6), rgba(91, 179, 255, 0.4)),
    linear-gradient(120deg, #a8d4ff 0%, #d4e8f8 50%, #e8f4ff 100%);
  border: none;
  overflow: visible;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-right: 0;
}

.home-calendar-card {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  max-width: 320px;
  width: 100%;
  margin-left: 0;
}

.home-calendar-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--text);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.19), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.14), transparent 30%);
  margin-left: 340px;
  margin-right: 20px;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 500px;
  color: #f8fcff;
  flex: 1;
  padding-right: 20px;
  margin-left: 340px;
  margin-right: 20px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b8dcff;
  max-width: 400px;
}

.home-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  margin-bottom: 10px;
  max-width: 400px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: #d7e9ff;
  margin-bottom: 0;
  max-width: 400px;
}

.home-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-info-card h3 {
  margin-bottom: 10px;
}

.home-info-body {
  border-top: 1px solid #e4ebf7;
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.home-info-body h4 {
  margin: 0;
  font-size: 1.3rem;
  color: #1f3250;
}

.home-info-body p {
  margin: 0;
  color: #556682;
}

.home-info-body .btn-primary {
  justify-self: start;
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  background: linear-gradient(180deg, #f8fbff, #f3f7fd);
  max-height: 120px;
  overflow: auto;
}

.shortcut-item {
  border: 1px solid #d8e3f4;
  border-radius: 14px;
  padding: 12px 10px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  background: #fff;
}

.shortcut-item:hover {
  border-color: #9ab9e9;
  transform: translateY(-1px);
}

.shortcut-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1952a3;
  background: linear-gradient(135deg, #d5e8ff, #edf5ff);
}

.home-trio {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 16px;
}

.home-list-card h3 {
  margin-bottom: 12px;
}

.home-list-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-list-card li {
  border-top: 1px solid #e5ecf6;
  padding: 10px 0;
}

.home-list-card li:first-child {
  border-top: 0;
  padding-top: 0;
}

.home-list-card a {
  color: #2052a1;
}

#homeNoticesList {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

#homeNoticesList a {
  display: block;
}

.home-notice-item {
  display: grid;
  gap: 6px;
}

.notice-title-main {
  display: block;
  margin-bottom: 4px;
  color: #153a78;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.32;
}

.notice-meta {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.notice-description {
  display: block;
  margin-top: 0;
  color: #5f7090;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
}

.notice-description-text {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.notice-user-prefix {
  margin-right: 4px;
  color: #2b4f8f;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: underline;
}

.notice-toggle-btn {
  justify-self: flex-start;
  border: 0;
  border-radius: 8px;
  background: #e8f0fd;
  color: #18468f;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}

.notice-toggle-btn:hover {
  background: #d8e6fb;
}

.notice-toggle-btn:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.3);
  outline-offset: 2px;
}

.task-counter {
  font-weight: 700;
  margin-bottom: 8px;
}

.task-progress {
  height: 9px;
  border-radius: 99px;
  background: #e7eef8;
  margin-bottom: 12px;
  overflow: hidden;
}

.task-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, #28a368, #1f8b53);
}

.task-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.task-list small {
  color: #607493;
  font-weight: 600;
}

.forecast-list {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.home-highlights > .home-list-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-highlights > .home-list-card .forecast-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.home-highlights > .home-list-card .forecast-row,
.home-highlights > .home-list-card .forecast-row-sub {
  align-items: flex-start;
}

.home-highlights > .home-list-card .forecast-row span,
.home-highlights > .home-list-card .forecast-row-sub span {
  flex: 1 1 auto;
  min-width: 0;
}

.home-highlights > .home-list-card .forecast-row small,
.home-highlights > .home-list-card .forecast-row-sub small {
  flex: 0 0 auto;
  white-space: nowrap;
}

.video-card {
  overflow: hidden;
}

.video-card .task-counter {
  margin-bottom: 4px;
}

.video-container {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 8px 0 14px;
  margin-left: -18px;
  margin-right: -18px;
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  margin-right: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d4e1f4;
  background: #0f172a;
  box-shadow: 0 12px 26px rgba(13, 24, 42, 0.2);
}

.home-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a3a5c;
}

.video-info {
  padding: 0 18px;
}

.video-info h4 {
  margin: 0 0 4px;
  color: #2070c7;
  font-size: 1.02rem;
}

.video-info p {
  margin: 0;
  color: #4e6180;
  line-height: 1.35;
  min-height: 2.5em;
}

.video-nav {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 3;
}

.video-nav-btn {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(229, 238, 251, 0.95);
  background: rgba(20, 33, 56, 0.78);
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(8, 14, 25, 0.22);
}

.video-nav-btn:hover {
  background: rgba(30, 47, 79, 0.9);
}

.video-nav-btn:focus-visible {
  outline: 2px solid #8dc0ff;
  outline-offset: 2px;
}

.video-container.is-sliding-next .video-player-wrapper,
.video-container.is-sliding-next .video-info {
  animation: videoCardSlideNext 220ms ease;
}

.video-container.is-sliding-prev .video-player-wrapper,
.video-container.is-sliding-prev .video-info {
  animation: videoCardSlidePrev 220ms ease;
}

@keyframes videoCardSlideNext {
  0% {
    opacity: 0.4;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes videoCardSlidePrev {
  0% {
    opacity: 0.4;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.forecast-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.forecast-row-sub {
  border-top: 0;
  padding-top: 0;
  color: #516481;
}

.forecast-title {
  font-weight: 700;
}

.forecast-error small {
  color: #b42318;
}

.home-highlights {
  display: grid;
  gap: 16px;
  grid-template-columns: 0.95fr 1.05fr;
}

.spotlight-card {
  padding: 0;
  overflow: hidden;
}

.spotlight-card h3 {
  padding: 16px 18px 0;
  margin: 0;
}

.spotlight-media {
  margin-top: 12px;
  min-height: 220px;
  background:
    radial-gradient(circle at 55% 28%, #f0f7ff 0%, #d2e7ff 34%, #9ebce8 72%),
    linear-gradient(160deg, #d7e8fd, #93b4e0);
}

.spotlight-content {
  padding: 16px 18px 18px;
}

.spotlight-content h4 {
  margin: 0 0 6px;
}

.spotlight-content p {
  color: #516481;
  white-space: pre-wrap;
}

.home-resources h2 {
  margin-bottom: 10px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.resource-item {
  text-align: center;
  font-weight: 700;
  color: #2070c7;
  background: linear-gradient(180deg, #ffffff, #e8f4ff);
}.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-md);
  animation: fadeUp 260ms ease;
}

.maintenance-card {
  min-height: 340px;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 111, 235, 0.08), transparent 45%),
    var(--surface);
}

.narrow {
  max-width: 560px;
}

.filters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.report-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.margin-report-summary {
  margin: 8px 0 4px;
  font-weight: 700;
  color: #1f3658;
}

.margin-report-note {
  margin: 0 0 14px;
}

.margin-report-table-wrap {
  position: relative;
  min-height: 220px;
}

.margin-report-pagination {
  justify-content: space-between;
}

.stock-report-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

.stock-report-metric-card {
  padding: 14px 16px;
  border: 1px solid rgba(59, 158, 255, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(59, 158, 255, 0.12), transparent 44%),
    linear-gradient(180deg, #ffffff, #eef6ff);
  box-shadow: 0 10px 26px rgba(31, 111, 235, 0.08);
}

.stock-report-metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
  color: #183a67;
}

.stock-report-metric-label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b7ba0;
}

.margin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
}

.margin-pill-positive {
  background: rgba(34, 197, 94, 0.14);
  color: #146c43;
}

.margin-pill-negative {
  background: rgba(220, 38, 38, 0.14);
  color: #9f1239;
}

.stock-report-table thead tr:first-child th {
  background: linear-gradient(180deg, #dfeeff, #d1e6fb);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.stock-report-table thead tr:nth-child(2) th {
  background: #edf5ff;
}

.stock-report-table thead tr:first-child th:not(:last-child) {
  border-right: 2px solid #bfd6ee;
}

.stock-report-table thead tr:nth-child(2) th:nth-child(6),
.stock-report-table tbody td:nth-child(6) {
  border-right: 2px solid #d6e4f2;
}

.stock-report-table thead tr:nth-child(2) th:nth-child(9),
.stock-report-table tbody td:nth-child(9) {
  border-right: 2px solid #d6e4f2;
}

.stock-performance-cell {
  display: grid;
  gap: 2px;
}

.stock-performance-cell strong {
  color: #1b3d68;
}

.stock-performance-cell span {
  color: #5b7696;
  font-size: 0.8rem;
}

.stock-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.stock-status-pill-critical {
  background: rgba(220, 38, 38, 0.14);
  color: #9f1239;
}

.stock-status-pill-moderate {
  background: rgba(245, 158, 11, 0.18);
  color: #9a5b06;
}

.stock-status-pill-light {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}

.hidden {
  display: none;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}

.tab {
  border: 1px solid #d8e0ef;
  background: #eef3fb;
  color: #344763;
}

.tab.active {
  border-color: transparent;
  background: linear-gradient(135deg, #1f6feb, #1b82d9);
  color: #fff;
}

.tab-content {
  display: none;
}

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

.tabs-group {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid #d8e0ef;
  background: #eef3fb;
  color: #344763;
  font-weight: 700;
}

.tab-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, #1f6feb, #1b82d9);
  color: #fff;
}

.preview-section {
  display: none;
  margin-top: 18px;
}

.preview-section.active {
  display: block;
}

.preview-section > h3 {
  margin-bottom: 10px;
}

.spotlight-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}

.spotlight-preview-placeholder {
  width: 100%;
  min-height: 220px;
  background: linear-gradient(160deg, #d7e8fd, #93b4e0);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  border-radius: 14px 14px 0 0;
}

.spotlight-editor-shortcut {
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.spotlight-editor-shortcut:hover {
  box-shadow: 0 14px 28px rgba(31, 111, 235, 0.17);
}

.spotlight-editor-shortcut:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.38);
  outline-offset: 2px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1400px;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid #e7edf6;
  padding: 11px;
  text-align: left;
  font-size: 0.9rem;
  vertical-align: top;
}

th {
  background: #f7fafe;
  color: #243651;
  position: sticky;
  top: 0;
}

.charts-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.chart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.pie-chart,
.line-chart,
.bar-chart {
  min-height: 170px;
}

.pie-chart {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  margin: 6px auto;
  background: conic-gradient(#1f6feb 0deg, #1f6feb 138deg, #4cb0ff 138deg, #4cb0ff 258deg, #26a269 258deg, #26a269 360deg);
}

.line-chart {
  position: relative;
  background: linear-gradient(180deg, #f4f9ff, #ffffff);
  border-radius: 10px;
}

.line-chart::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-left: 2px solid #97abc8;
  border-bottom: 2px solid #97abc8;
}

.line-chart::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 26px;
  bottom: 34px;
  height: 3px;
  background: linear-gradient(90deg, transparent 6%, #1f6feb 24%, #1b82d9 40%, #34a853 62%, #4cb0ff 85%);
  transform: skewY(-10deg);
  border-radius: 20px;
}

.line-chart.has-data::before,
.line-chart.has-data::after {
  display: none;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 0;
}

.bar {
  flex: 1;
  background: linear-gradient(180deg, #83b8ff, #1f6feb);
  border-radius: 7px 7px 0 0;
  min-height: 40px;
}

.expand-btn {
  padding: 7px 10px;
  background: #e8f0fe;
  color: #1f4c99;
  border: 1px solid #c9dafb;
  border-radius: 8px;
}

.detail-row td {
  background: #f8fbff;
  padding: 0;
}

.detail-panel {
  padding: 12px;
}

.detail-panel h4 {
  margin: 0 0 8px;
  color: #2a3d5c;
}

.details-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.details-table th,
.details-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e1e9f7;
  background: #ffffff;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.checkbox-label {
  align-items: center;
  grid-auto-flow: column;
  justify-content: start;
  gap: 8px;
}

.checkbox-label input {
  width: auto;
}

.users-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.user-card {
  border: 1px solid #d9e2f1;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 6px 16px rgba(19, 32, 51, 0.08);
}

.user-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.user-card-head strong {
  font-size: 1.05rem;
  color: #1f2f49;
}

.user-card-title-wrap {
  display: grid;
  gap: 3px;
}

.user-card-role {
  color: #587093;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.user-card-email {
  margin: 8px 0 10px;
  color: #2f4f79;
  font-weight: 600;
  word-break: break-all;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-card-gear {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border-color: #bfd0ea;
  color: #294b7d;
  font-size: 1.05rem;
}

.user-card-access {
  border: 1px solid #bfd0ea;
  background: linear-gradient(135deg, #edf4ff, #dfeeff);
  color: #204b82;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px 10px;
  min-width: 74px;
}

.user-card-meta-grid {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.user-card-meta-grid p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #3f5878;
  font-size: 0.9rem;
  border-bottom: 1px dashed #e3ebf7;
  padding-bottom: 5px;
}

.user-card-meta-grid p span {
  color: #617898;
}

.user-card-meta-grid p strong {
  color: #203a5e;
  font-weight: 700;
}

.user-access-summary {
  margin: 10px 0 0;
  color: #4a6486;
  font-size: 0.84rem;
  font-weight: 700;
}

.user-access-list {
  display: grid;
  gap: 10px;
  max-height: min(64vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  overscroll-behavior: contain;
}

.user-access-row {
  border: 1px solid #d6e2f2;
  border-radius: 12px;
  background: #f9fbff;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.user-access-text strong {
  color: #193a61;
  font-size: 0.96rem;
}

.user-access-text p {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.user-access-toggle {
  min-width: 95px;
  justify-content: flex-start;
}

.user-access-toggle span {
  font-size: 0.86rem;
  color: #2f4d72;
  font-weight: 700;
}

.config-tabs {
  margin-bottom: 12px;
}

@media (max-width: 1080px) {
  .users-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .users-cards {
    grid-template-columns: 1fr;
  }

  .user-access-row {
    grid-template-columns: 1fr;
  }

  .user-actions {
    justify-content: flex-start;
  }
}

.bio-admin-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.bio-admin-card {
  border: 1px solid #d9e3f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 35, 60, 0.09);
  display: grid;
  grid-template-columns: 96px 1fr;
  overflow: hidden;
}

.bio-admin-image-wrap {
  background: #edf4ff;
  border-right: 1px solid #d6e3f7;
  min-height: 96px;
  display: grid;
  place-items: center;
}

.bio-admin-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-admin-image-placeholder {
  color: #5f7391;
  font-size: 0.78rem;
  padding: 8px;
  text-align: center;
}

.bio-admin-content {
  padding: 10px 12px;
}

.bio-admin-content p {
  margin: 0 0 6px;
}

.bio-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#quickLinksModal .ti-modal-card {
  width: min(94vw, 760px);
}

#quickLinksModal .ti-modal-form {
  padding-bottom: 14px;
}

#quickLinksModal h4 {
  margin: 0 22px 10px;
  font-size: 1rem;
  color: #1f3a61;
  letter-spacing: 0.01em;
}

#quickLinksList {
  margin: 0;
  padding: 0 22px 22px;
  max-height: 42vh;
  overflow-y: auto;
}

.quick-link-admin-card {
  grid-template-columns: 1fr;
  border-color: #cdddf5;
  background: linear-gradient(160deg, #ffffff 0%, #f5f9ff 100%);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.quick-link-admin-card:hover {
  transform: translateY(-1px);
  border-color: #aac7f0;
  box-shadow: 0 12px 26px rgba(22, 52, 97, 0.14);
}

.quick-link-admin-content {
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.quick-link-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-link-admin-title {
  margin: 0;
  color: #17355b;
  line-height: 1.25;
}

.quick-link-admin-host {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #c8daf7;
  background: #eaf2ff;
  color: #2a4a78;
  font-size: 0.78rem;
  font-weight: 700;
}

.quick-link-admin-url {
  margin: 0;
  color: #526989;
  font-size: 0.88rem;
  line-height: 1.42;
  word-break: break-all;
}

.quick-link-admin-actions {
  align-items: center;
}

.quick-link-admin-actions .btn-ghost,
.quick-link-admin-actions .btn-danger {
  min-width: 92px;
  padding: 8px 12px;
}

.quick-link-open {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  #quickLinksModal .ti-modal-card {
    width: min(96vw, 760px);
  }

  #quickLinksModal h4 {
    margin: 0 14px 8px;
  }

  #quickLinksList {
    padding: 0 14px 16px;
    max-height: 46vh;
  }

  .quick-link-admin-content {
    padding: 12px;
  }

  .quick-link-admin-actions .btn-ghost,
  .quick-link-admin-actions .btn-danger {
    flex: 1 1 120px;
  }
}

.videos-settings-card {
  max-width: 980px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 0% 0%, rgba(36, 94, 174, 0.08), transparent 40%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.videos-settings-card h1 {
  margin-bottom: 4px;
}

.video-form-shell {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #d6e4f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #f3f8ff);
}

.video-form-shell label {
  font-weight: 700;
}

.video-form-shell input[type="file"] {
  background: #ffffff;
  border-color: #c5d8f2;
}

.video-form-shell .hint {
  margin-top: 6px;
  font-size: 0.82rem;
}

.videos-list-title {
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.videos-list-title span {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #c9ddfa;
  background: #eef5ff;
  color: #234876;
  font-size: 0.85rem;
}

#videoFeedback {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7e4f8;
  background: #f8fbff;
}

#videoList > .muted {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed #c7d8ef;
  background: #f8fbff;
}

.video-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.video-admin-card {
  min-height: 124px;
  grid-template-columns: 138px 1fr;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.video-admin-card:hover {
  transform: translateY(-2px);
  border-color: #bdd2f0;
  box-shadow: 0 12px 22px rgba(13, 34, 63, 0.12);
}

.video-admin-thumbnail {
  border-right: 1px solid #d6e3f7;
  background-color: #dce9fc;
  background-position: center;
  background-size: cover;
}

.video-admin-thumbnail.is-empty {
  background-image:
    radial-gradient(circle at 25% 22%, rgba(255, 255, 255, 0.55), transparent 40%),
    linear-gradient(140deg, #e9f1ff, #d6e5fa);
}

.video-admin-content h4 {
  margin: 0 0 6px;
  color: #173b69;
}

.video-admin-content p {
  margin: 0 0 8px;
}

.video-admin-meta {
  margin: 0 0 10px;
  color: #607493;
  font-size: 0.83rem;
}

.video-admin-content {
  display: flex;
  flex-direction: column;
}

.video-admin-content .bio-admin-actions {
  margin-top: auto;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.span-2 {
  grid-column: 1 / -1;
}

.rh-notices-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.rh-notice-card {
  grid-template-columns: 1fr;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  min-height: 210px;
}

.rh-notice-head {
  display: grid;
  gap: 6px;
}

.rh-notice-title {
  margin: 0;
  font-size: 1.1rem;
  color: #193455;
  line-height: 1.35;
}

.rh-notice-meta {
  margin: 0;
  color: #506480;
  font-size: 0.86rem;
  font-weight: 600;
}

.rh-notice-description {
  margin: 0;
  color: #2b425f;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex: 1;
}

.rh-notice-actions {
  margin-top: auto;
}

.calendar-alerts-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.calendar-alert-card {
  grid-template-columns: 1fr;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  min-height: 230px;
}

.calendar-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-alert-date {
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  background: #eaf3ff;
  border: 1px solid #c7dcfb;
  color: #1d4f8d;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 5px 10px;
}

.calendar-alert-time {
  color: #5a7090;
  font-weight: 700;
  font-size: 0.82rem;
}

.calendar-alert-title {
  margin: 0;
  color: #163455;
  font-size: 1.03rem;
  line-height: 1.35;
}

.calendar-alert-description {
  margin: 0;
  color: #304966;
  line-height: 1.48;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex: 1;
}

.calendar-alert-meta {
  margin: 0;
  color: #506480;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.calendar-alert-actions {
  margin-top: auto;
}

.linkbio-body {
  min-height: 100vh;
  margin: 0;
  color: #fff;
  background: linear-gradient(145deg, #132a4f 0%, #164f9f 45%, #1f90c8 100%);
  overflow-x: hidden;
}

.linkbio-parallax {
  position: fixed;
  inset: 0;
  pointer-events: none;
  transition: transform 140ms ease-out;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.4px);
  opacity: 0.48;
}

.blob-a {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -70px;
  background: radial-gradient(circle at 30% 30%, #7ce2ff, #2f7ce0);
}

.blob-b {
  width: 420px;
  height: 420px;
  right: -100px;
  top: 15%;
  background: radial-gradient(circle at 35% 35%, #9affdf, #2b9ca5);
}

.blob-c {
  width: 360px;
  height: 360px;
  left: 50%;
  bottom: -140px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 40% 40%, #f6a5ff, #8a57de);
}

.linkbio-main {
  position: relative;
  z-index: 1;
  width: min(760px, 92vw);
  margin: 0 auto;
  padding: 46px 0 60px;
}

.linkbio-header {
  text-align: center;
  margin-bottom: 20px;
}

.linkbio-header h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.linkbio-header p {
  margin: 8px 0 0;
  color: rgba(235, 245, 255, 0.88);
}

.linkbio-public-list {
  display: grid;
  gap: 14px;
}

.bio-public-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(7px);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.bio-public-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(5, 17, 34, 0.34);
  background: rgba(255, 255, 255, 0.28);
}

.bio-public-image {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.bio-public-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #a8d9ff;
  justify-self: center;
}

.calendar-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  margin-top: 10px;
}

.calendar-legend {
  align-self: start;
  border: 1px solid #d7e1ef;
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
}

.calendar-legend p {
  margin: 0 0 8px;
  color: #38506f;
}

.calendar-legend p:last-child {
  margin-bottom: 0;
}

.legend-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}

.legend-holiday {
  background: #ef7d5a;
}

.legend-alert {
  background: #84c9ff;
}

/* Legenda inline do calendário (home) */
.calendar-legend-inline {
  display: flex;
  gap: 16px;
  padding: 8px 0 0;
  margin-top: 8px;
  border-top: 1px solid #e5ecf6;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  color: #5f7391;
  font-weight: 600;
}

.legend-item.today-alerts {
  flex: 1 1 320px;
  align-items: center;
  color: #1f4c99;
  font-weight: 700;
  white-space: normal;
}

.calendar-widget {
  border: 1px solid #d7e0ee;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  min-height: 265px;
}

.cal-header {
  text-transform: capitalize;
  font-weight: 800;
  color: #203653;
  margin-bottom: 8px;
  font-family: "Manrope", "Source Sans 3", sans-serif;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
}

.cal-title {
  text-align: center;
}

.cal-nav-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #cfe0f6;
  border-radius: 10px;
  padding: 0;
  background: #f3f8ff;
  color: #2a4f86;
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.cal-nav-btn:hover {
  background: #e5f0ff;
  border-color: #9fc0ee;
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.cal-day-label {
  font-size: 0.78rem;
  color: #5f7391;
  text-align: center;
  font-weight: 700;
}

.cal-day {
  min-height: 34px;
  border: 1px solid #e2e9f5;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  background: #f9fbff;
  position: relative;
}

.cal-day.empty {
  border-style: dashed;
  background: #fbfdff;
  opacity: 0.65;
}

.cal-day.has-holiday {
  border-color: #ef7d5a;
  background: #fff3ee;
}

.cal-day.has-alert {
  box-shadow: 0 0 0 2px #84c9ff inset;
  background: #eef8ff;
}

.cal-day.is-today {
  border-color: #1f6feb;
  box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.45) inset;
  background: linear-gradient(180deg, #2e79ea, #1f6feb);
  font-weight: 700;
  color: #ffffff;
}

.cal-day.has-holiday.has-alert {
  background: linear-gradient(180deg, #fff1ea, #eaf6ff);
}

.cal-day[data-tooltip]:not([data-tooltip=""]) {
  cursor: help;
}

.cal-day[data-tooltip]:not([data-tooltip=""])::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 230px;
  border-radius: 10px;
  background: rgba(16, 28, 47, 0.96);
  color: #f4f8ff;
  font-size: 0.76rem;
  line-height: 1.35;
  padding: 8px 10px;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  transition: opacity 140ms ease;
}

.cal-day[data-tooltip]:not([data-tooltip=""]):hover::after {
  opacity: 1;
}

/* Home v2: layout quase identico ao referencia */
.topbar-home {
  background: linear-gradient(100deg, #15478e, #2a66b8);
  color: #f4f9ff;
  min-height: 66px;
}

.topbar-brand {
  gap: 12px;
  font-size: 1.05rem;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 2px;
}

.brand-mark-image {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.topbar-search input,
.welcome-pill,
.home-main .btn-primary,
.home-main .card,
.resource-item {
  border-radius: 4px;
}

.home-main {
  gap: 14px;
}

.home-main .card {
  box-shadow: 0 1px 6px rgba(16, 33, 61, 0.09);
  border-color: #d4dce8;
  padding: 0;
}

.home-hero {
  min-height: 290px;
  background:
    linear-gradient(105deg, rgba(21, 40, 72, 0.76), rgba(58, 116, 178, 0.35)),
    linear-gradient(120deg, #8ea8c4 0%, #b9c9dc 45%, #dce7f1 100%);
  padding-left: 340px;
}

.hero-overlay {
  padding: 36px 30px;
  margin-left: 0;
}

.home-hero h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  max-width: 400px;
}

.home-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-info-card h3,
.home-list-card h3,
.spotlight-card h3 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #dde5f0;
}

.home-info-body {
  padding: 16px;
  gap: 12px;
}

.home-info-body h4 {
  font-size: 2rem;
  line-height: 1.08;
}

.home-info-body p {
  font-size: 1.05rem;
}

.home-info-body .btn-primary {
  justify-self: end;
  min-width: 140px;
}

.home-shortcuts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  background: #eff3f8;
  padding: 10px 8px;
}

.shortcut-item {
  border-right: 1px solid #d8e0ec;
  border-radius: 0;
  background: transparent;
  padding: 12px 10px 14px;
}

.shortcut-item:last-child {
  border-right: 0;
}

.shortcut-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.shortcut-item:hover {
  background: #e7edf6;
}

.shortcut-icon {
  width: 56px;
  height: 56px;
  border-radius: 2px;
  font-size: 0.85rem;
}

.home-trio {
  grid-template-columns: 0.95fr 1.2fr 1.05fr;
  gap: 14px;
}

.home-list-card ul {
  padding: 12px 16px 10px;
}

.task-counter {
  padding: 12px 16px 0;
}

.task-progress {
  margin-left: 16px;
  margin-right: 16px;
  border-radius: 2px;
}

.home-trio .btn-primary,
.home-highlights .btn-primary {
  margin: 4px 16px 16px;
  width: calc(100% - 32px);
}

.home-highlights {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.spotlight-card {
  padding: 0 0 14px;
}

.spotlight-media {
  margin-top: 0;
  min-height: 220px;
}

.spotlight-content {
  padding: 12px 16px;
}

.spotlight-tag {
  display: inline-block;
  border: 1px solid #bfd3ee;
  background: #f0f6ff;
  color: #33629a;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.spotlight-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 4px;
}

.spotlight-profiles-list {
  display: grid;
  gap: 10px;
  padding: 10px 14px 4px;
}

.spotlight-profile-item {
  border: 1px solid #d4e1f2;
  background: #f8fbff;
  border-radius: 12px;
  overflow: hidden;
}

.spotlight-profile-item .spotlight-profile {
  padding: 10px 12px 2px;
}

.spotlight-profile-item .spotlight-content {
  padding: 0 12px 10px;
}

.spotlight-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8e7fa, #b9d1f0);
  border: 1px solid #bfd1e8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-avatar.has-image {
  background: #e7f0fb;
}

.spotlight-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.spotlight-profile p {
  margin: 2px 0 0;
  color: #637896;
}

.perfil-destaque-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.perfil-destaque-list {
  margin-top: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.perfil-destaque-item {
  border: 1px solid #c9d9ef;
  border-radius: 12px;
  background: #f6faff;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.perfil-destaque-item.is-active {
  border-color: #3f82e6;
  box-shadow: 0 0 0 2px rgba(63, 130, 230, 0.15);
}

.perfil-destaque-item-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.perfil-destaque-avatar {
  width: 56px;
  height: 56px;
}

.perfil-destaque-item-text {
  min-width: 0;
}

.perfil-destaque-item-text h4 {
  margin: 0;
  color: #1e2c44;
}

.perfil-destaque-item-role {
  margin: 2px 0 4px;
  color: #46618a;
  font-size: 0.88rem;
}

.perfil-destaque-item-description {
  margin: 0;
  color: #455a76;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.perfil-destaque-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1280px) {
  .perfil-destaque-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .perfil-destaque-item {
    flex-direction: column;
  }

  .perfil-destaque-list {
    grid-template-columns: 1fr;
  }
}

.home-resources h2 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 1.9rem;
}

.resource-item {
  padding: 16px;
}

.spotlight-photo-card .btn-primary,
.spotlight-profile-card .btn-primary {
  width: auto;
  min-width: 180px;
}

.spotlight-profile-card .btn-primary {
  margin-left: 16px;
}

.ti-modal {
  position: fixed;
  inset: 0;
  z-index: 9999 !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.ti-modal.hidden,
.ti-modal[aria-hidden="true"] {
  display: none !important;
}

.ti-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0 !important;
  background:
    radial-gradient(circle at 20% 10%, rgba(49, 112, 196, 0.18), transparent 50%),
    rgba(8, 16, 31, 0.52);
  backdrop-filter: blur(2px);
}

.ti-modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 620px);
  margin: 0;
  max-height: calc(100vh - 48px);
  background: #ffffff;
  border: 1px solid #c9d8ee;
  border-radius: 16px;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ti-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #d7e1ef;
  background: linear-gradient(120deg, #f5f9ff 0%, #ebf3ff 100%);
}

.ti-modal-header h3 {
  margin: 0;
  font-size: 1.65rem;
  color: #1d2f4d;
}

.ti-close {
  border-radius: 10px;
  padding: 9px 14px;
  border-color: #c8d6ea;
  background: #ffffff;
}

.ti-modal-form {
  display: grid;
  gap: 10px;
  padding: 18px 22px 22px;
  overflow-y: auto;
}

.form-label {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #243b63;
  text-align: center;
  background: linear-gradient(135deg, #f8fbff 0%, #f4f9ff 100%);
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid #e1e9f5;
}

.ti-modal-form select,
.ti-modal-form textarea {
  width: 100%;
  border: 1px solid #c3d2e8;
  border-radius: 11px;
  padding: 12px 14px;
  font: inherit;
  background: #fbfdff;
}

.ti-modal-form textarea {
  resize: vertical;
  min-height: 170px;
  line-height: 1.5;
}

.ti-modal-form textarea:focus,
.ti-modal-form select:focus {
  outline: none;
  border-color: #73a0e6;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.14);
  background: #ffffff;
}

.ti-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.ti-actions .btn-primary {
  width: auto;
  margin: 0;
  min-width: 140px;
  border-radius: 11px;
  font-size: 1.1rem;
  padding: 12px 20px;
}

.form-group {
  margin-bottom: 20px;
}

.radio-group {
  display: grid;
  gap: 12px;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #2c446d;
  cursor: pointer;
  width: fit-content;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8fbff, #f3f8ff);
  border: 2px solid #e2ecff;
  border-radius: 12px;
  transition: all 0.2s ease;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 158, 255, 0.1);
}

.radio-option:hover,
.checkbox-option:hover {
  background: linear-gradient(135deg, #f0f7ff, #ebf3ff);
  border-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 158, 255, 0.2);
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: #b548df;
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.hidden-fields {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #243b63;
}

.ti-modal-form textarea,
.ti-modal-form input[type="text"],
.ti-modal-form select {
  width: 100%;
  border: 1px solid #bfd0ea;
  border-radius: 10px;
  background: #f9fbfe;
  color: #243b63;
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.ti-modal-form textarea {
  min-height: 160px;
  resize: vertical;
}

.ti-modal-form textarea:focus,
.ti-modal-form input[type="text"]:focus,
.ti-modal-form select:focus {
  border-color: #6ea8ff;
  box-shadow: 0 0 0 4px rgba(63, 130, 255, 0.12);
  background: #fff;
}

.discount-form {
  gap: 8px;
}

.discount-form label {
  font-size: 0.89rem;
  font-weight: 700;
  color: #2a456f;
}

.discount-form input[readonly] {
  background: #eef4ff;
  color: #183153;
  font-weight: 700;
}


#tiSupportFeedback {
  margin-top: 4px;
  font-weight: 600;
  min-height: 22px;
}

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

@media (max-width: 760px) {
  .topbar-search,
  .welcome-pill {
    display: none;
  }

  :root {
    --sidebar-width: 250px;
  }

  .page-main {
    padding: 14px;
  }

  .login-card {
    padding: 24px;
  }

  .topbar-home {
    gap: 8px;
  }

  .topbar-brand {
    font-size: 0.97rem;
  }

  .home-hero {
    min-height: 205px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .home-duo,
  .home-shortcuts,
  .home-trio,
  .home-highlights,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .shortcut-item {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
    display: grid;
  }

  .video-container {
    margin-left: 0;
    margin-right: 0;
    padding: 8px 4px 12px 0;
  }

  .video-player-wrapper {
    width: 100%;
    margin-right: 0;
  }

  .video-info {
    padding: 0 8px 0 10px;
  }

  .video-nav {
    left: 8px;
    right: 8px;
  }

  .video-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  .calendar-panel {
    grid-template-columns: 1fr;
  }

  .bio-admin-card {
    grid-template-columns: 1fr;
  }

  .bio-admin-image-wrap {
    border-right: 0;
    border-bottom: 1px solid #d6e3f7;
    min-height: 140px;
  }

  .bio-public-card {
    grid-template-columns: 46px 1fr;
    font-size: 1rem;
  }

  .bio-public-image {
    width: 46px;
    height: 46px;
  }

  .videos-settings-card {
    max-width: 100%;
  }

  .video-form-shell {
    padding: 12px;
  }

  .videos-list-title {
    flex-wrap: wrap;
  }
}

/* Modais personalizados */
.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 31, 0.52);
  backdrop-filter: blur(2px);
}

.custom-modal-card {
  position: relative;
  width: min(92vw, 480px);
  background: #ffffff;
  border: 1px solid #c9d8ee;
  border-radius: 16px;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.3);
  overflow: hidden;
  animation: fadeUp 200ms ease;
}

.custom-modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid #d7e1ef;
  background: linear-gradient(120deg, #f5f9ff 0%, #ebf3ff 100%);
}

.custom-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #1d2f4d;
}

.custom-modal-body {
  padding: 18px 22px;
}

.custom-modal-body p {
  margin: 0 0 12px;
  color: #253857;
  font-size: 1rem;
  line-height: 1.5;
}

.custom-modal-input {
  width: 100%;
  border: 1px solid #c3d2e8;
  border-radius: 11px;
  padding: 12px 14px;
  font: inherit;
  background: #fbfdff;
  margin-top: 8px;
}

.custom-modal-input-multiline {
  min-height: 170px;
  resize: vertical;
  line-height: 1.45;
}

.custom-modal-input:focus {
  outline: none;
  border-color: #73a0e6;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.14);
  background: #ffffff;
}

.custom-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid #d7e1ef;
  background: #f8fafc;
}

.custom-modal-actions button {
  min-width: 100px;
}

.image-crop-modal .custom-modal-card {
  width: min(92vw, 560px);
}

.image-crop-body {
  display: grid;
  gap: 12px;
}

.image-crop-size-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.image-crop-size-controls label {
  display: grid;
  gap: 6px;
  color: #2d4567;
  font-size: 0.86rem;
  font-weight: 600;
}

.image-crop-size-controls input[type="number"] {
  width: 100%;
  border: 1px solid #c3d2e8;
  border-radius: 9px;
  padding: 8px 10px;
  font: inherit;
  background: #fbfdff;
}

.image-crop-stage {
  position: relative;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #c5d5ea;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  touch-action: none;
  cursor: grab;
}

.image-crop-stage.is-dragging {
  cursor: grabbing;
}

.image-crop-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.image-crop-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.image-crop-grid::before,
.image-crop-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
}

.image-crop-grid::before {
  background-image:
    linear-gradient(to right, transparent 33.33%, rgba(255, 255, 255, 0.5) 33.33%, rgba(255, 255, 255, 0.5) 34.33%, transparent 34.33%),
    linear-gradient(to right, transparent 66.66%, rgba(255, 255, 255, 0.5) 66.66%, rgba(255, 255, 255, 0.5) 67.66%, transparent 67.66%);
}

.image-crop-grid::after {
  background-image:
    linear-gradient(to bottom, transparent 33.33%, rgba(255, 255, 255, 0.5) 33.33%, rgba(255, 255, 255, 0.5) 34.33%, transparent 34.33%),
    linear-gradient(to bottom, transparent 66.66%, rgba(255, 255, 255, 0.5) 66.66%, rgba(255, 255, 255, 0.5) 67.66%, transparent 67.66%);
}

.image-crop-zoom {
  display: grid;
  gap: 6px;
  color: #2d4567;
  font-size: 0.92rem;
  font-weight: 600;
}

.image-crop-zoom input[type="range"] {
  width: 100%;
}

.image-crop-hint {
  margin: 0;
}

@media (max-width: 520px) {
  .image-crop-size-controls {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   NOVOS ESTILOS PARA IMPLEMENTAÇÃO TASK
   ======================================== */

/* ========================================
   ESTILOS VISUALIZADOR DE SUGESTÕES (resultados.html)
   ======================================= */

/* Container principal */
.sugestoes-filtros {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.sugestoes-filtros h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
}

.sugestoes-filtros p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

#contador-mensagens {
  font-weight: 700;
  color: var(--primary);
}

/* Filtros */
.filtros {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.filtro-grupo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filtro-grupo label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

#limpar-filtros {
  white-space: nowrap;
  padding: 10px 18px;
}

/* Card da lista */
.sugestoes-lista-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.sugestoes-lista {
  max-height: 75vh;
  overflow-y: auto;
  padding: 0;
}

.sugestoes-card {
  border-bottom: 1px solid #e8f0ff;
  padding: 20px;
  transition: background 0.2s ease;
}

.sugestoes-card:hover {
  background: #f8fbff;
}

.sugestoes-card:last-child {
  border-bottom: none;
}

.sugestoes-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sugestoes-tipo {
  padding: 4px 10px;
  border-radius: 20px;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 80px;
  text-align: center;
}

.sugestoes-tipo[data-tipo="reclamacao"] { background: #ef4444; }
.sugestoes-tipo[data-tipo="sugestao"] { background: #3b82f6; }
.sugestoes-tipo[data-tipo="elogio"] { background: #10b981; }

.sugestoes-data {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.sugestoes-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  padding: 10px;
  background: #f8fbff;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.sugestoes-loja,
.sugestoes-nome {
  font-size: 0.9rem;
  color: #374151;
}

.sugestoes-loja {
  font-weight: 600;
}

.sugestoes-mensagem {
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: 1rem;
  color: var(--text);
}

.sugestoes-mensagem p {
  margin: 0;
}

/* Estados */
.loading,
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.loading::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
  display: block;
}

#empty-filtro-hint {
  font-weight: 500;
  color: var(--primary);
}

.sugestoes-erro {
  background: #fef2f2;
  color: #dc2626;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #ef4444;
  text-align: center;
}

/* Responsivo */
@media (max-width: 768px) {
  .filtros {
    grid-template-columns: 1fr;
  }
  
  .sugestoes-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .sugestoes-info {
    padding: 8px;
    font-size: 0.9rem;
  }
}

/* ========================================
   FIM ESTILOS SUGESTÕES
   ======================================= */

/* 1. Botão Mari.png no header - todas páginas */
.mari-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.mari-btn:hover {
  transform: scale(1.05) translateY(-1px);
  background: rgba(255,255,255,0.35);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.mari-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* 2. Home: Ramais sobreposto ao banner */
.home-hero {
  padding-left: 360px; /* Espaço para ramais */
}
.ramais-card {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000 !important;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  max-width: 90vw;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(148, 185, 255, 0.3);
}
.ramais-card h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: var(--text);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}
.ramais-section {
  margin-bottom: 18px;
}
.ramais-section:last-child {
  margin-bottom: 0;
}
.ramais-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-strong);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ramais-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ramais-list li {
  padding: 6px 0;
  border-bottom: 1px solid #e8f0ff;
  font-size: 0.9rem;
  color: #2a3d5c;
}
.ramais-list li:last-child {
  border-bottom: none;
}
.pdf-btn {
  background: linear-gradient(135deg, var(--ok), #137333);
  color: white;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.pdf-btn:hover {
  transform: translateY(-1px);
}
.close-ramais-btn {
  font-size: 1.3rem;
  line-height: 1;
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.close-ramais-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

/* 3. Tooltips datas melhorados - lista organizada */
.cal-day[data-tooltip]:not([data-tooltip=""])::after {
  white-space: pre-line;
  width: min(340px, calc(100vw - 36px));
  max-width: min(340px, calc(100vw - 36px));
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  max-height: 190px;
  overflow-y: auto;
}

/* 4. Suporte TI - adicionar CANDIAS */
#tiSupportTitle::after {
  content: " (CANDIAS)";
  font-size: 0.85em;
  color: var(--ok);
  font-weight: 600;
}

/* 5. Menu lateral submenus melhorados */
.submenu .menu-item {
  font-size: 0.88rem !important;
  font-weight: 600;
  padding: 9px 12px !important;
  border-left: 3px solid transparent;
}
.submenu .menu-item:hover,
.submenu .menu-item.active {
  border-left-color: var(--primary);
  background: rgba(148, 185, 255, 0.15) !important;
  transform: translateX(4px);
}

/* 6. Links rápidos melhorados */
#homeQuickLinksList {
  padding: 0;
}
#homeQuickLinksList li {
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8fbff, #f0f5ff);
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  border: 1px solid #e2ecff;
  transition: all 0.2s ease;
}
#homeQuickLinksList li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
#homeQuickLinksList li:last-child {
  margin-bottom: 0;
}
#homeQuickLinksList a {
  font-weight: 600;
  color: var(--primary-strong);
  display: block;
}

/* 7. Troca senha modal (configuracoes) - PASSO 2/4 ✅ */
.password-change-section {
  background: linear-gradient(135deg, #fff7e6, #ffecd6);
  border: 2px solid #ffd580;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}

.password-change-section h3 {
  margin: 0 0 12px;
  color: #b45309;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-change-section h3::before {
  content: "🔑";
}

.password-change-section p {
  margin: 0 0 16px;
  color: #92400e;
  line-height: 1.5;
  font-size: 1rem;
}

.password-change-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.password-change-section li {
  padding: 8px 0;
  border-left: 3px solid #fbbf24;
  padding-left: 12px;
  color: #7c2d12;
  margin-bottom: 4px;
}

.password-change-section li::before {
  content: "•";
  color: #f59e0b;
  font-weight: bold;
  margin-right: 8px;
}

/* Botão troca senha nos user-cards */
.change-password-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid #f3f4f6;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.change-password-btn:hover {
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
  color: #92400e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.change-password-btn:active {
  transform: translateY(0);
}

@media (max-width: 760px) {
  .password-change-section {
    margin: 16px -8px;
    border-radius: 12px;
    border-width: 1px;
  }
}

/* 8. Banner da home */
.home-hero {
  --home-hero-banner-image: none;
  background-image:
    linear-gradient(105deg, rgba(21, 40, 72, 0.76), rgba(58, 116, 178, 0.35)),
    var(--home-hero-banner-image),
    linear-gradient(120deg, #8ea8c4 0%, #b9c9dc 45%, #dce7f1 100%);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.banner-settings-card {
  margin-bottom: 0;
}

.banner-settings-form .hint {
  margin-top: 6px;
  font-size: 0.82rem;
}

.banner-current-image {
  margin: 8px 0 4px;
  font-size: 0.84rem;
  word-break: break-word;
}

.banner-preview-hero {
  min-height: 290px;
}

.banner-preview-hero .hero-overlay {
  max-width: 560px;
}

@media (max-width: 760px) {
  .banner-preview-hero {
    min-height: 220px;
  }
}



/* ========================================
   REFRESH VISUAL 2026 - MODERNO
   ======================================== */
:root {
  --bg-0: #f4f7fb;
  --bg-1: #eaf0f8;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-soft: rgba(247, 250, 255, 0.92);
  --text: #11233f;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.24);
  --primary: #4f8cff;
  --primary-strong: #335eea;
  --sidebar-1: #0f172a;
  --sidebar-2: #172554;
  --shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.14);
  --shadow-md: 0 16px 38px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-md: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(79, 140, 255, 0.18), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.16), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 50%, #f6f9fd 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 75%);
  opacity: 0.35;
}

.layout,
.app-container {
  min-height: 100vh;
}

.card,
.sugestoes-lista-card,
.sugestoes-filtros,
.chart-card,
.filters,
.banner-settings-card,
.videos-settings-card,
.video-form-shell,
.calendar-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow-md);
}

.card {
  position: relative;
  overflow: hidden;
}

/* Calendar tooltips can expand outside the card bounds without being clipped. */
.card.calendar-card {
  overflow: visible;
}

.card::after,
.sugestoes-lista-card::after,
.sugestoes-filtros::after,
.chart-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0));
  pointer-events: none;
}

.sidebar,
.app-container .sidebar {
  width: var(--sidebar-width);
  padding: 22px 18px;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(19, 36, 82, 0.97));
  color: #dbe8ff;
  border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow: 26px 0 60px rgba(15, 23, 42, 0.22);
}

.sidebar-header {
  margin-bottom: 18px;
  padding: 0 4px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header h2,
.app-container .sidebar-header h2 {
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.sidebar-eyebrow {
  color: rgba(191, 219, 254, 0.82);
}

.menu-item,
.app-container .sidebar-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 16px;
  color: rgba(226, 232, 240, 0.88);
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.menu-item:hover,
.menu-item.active,
.app-container .sidebar-nav a:hover,
.app-container .sidebar-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.26), rgba(99, 102, 241, 0.2));
  border-color: rgba(147, 197, 253, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateX(4px);
}

.menu-toggle span:last-child {
  opacity: 0.75;
}

.submenu {
  padding-left: 10px;
}

.submenu .menu-item {
  min-height: 42px;
  border-radius: 14px;
  font-size: 0.95rem;
  color: rgba(191, 219, 254, 0.82);
}

.content-wrap,
.app-container .main-content {
  width: 100%;
  padding-left: 88px;
}

.topbar,
.main-header {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 16px 16px 0;
  padding: 16px 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.topbar-home {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.72), rgba(59, 130, 246, 0.48)),
    rgba(255,255,255,0.16);
  color: #f8fbff;
}

.topbar-home .btn-ghost,
.topbar-home .welcome-pill,
.topbar-home .topbar-search input {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.topbar-search input::placeholder {
  color: rgba(255,255,255,0.72);
}

.page-main,
.content-wrapper {
  padding: 18px 16px 24px;
}

.home-main {
  gap: 20px;
}

.home-hero,
.banner-preview-hero {
  min-height: 340px;
  display: grid;
  align-items: end;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.45);
  background:
    linear-gradient(120deg, rgba(7, 15, 43, 0.82), rgba(40, 83, 190, 0.52)),
    radial-gradient(circle at 80% 18%, rgba(255,255,255,0.22), transparent 20%),
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.26), transparent 28%),
    linear-gradient(135deg, #13213f 0%, #1d4ed8 48%, #59c6ff 100%);
  background-image:
    linear-gradient(120deg, rgba(7, 15, 43, 0.82), rgba(40, 83, 190, 0.52)),
    var(--home-hero-banner-image),
    radial-gradient(circle at 80% 18%, rgba(255,255,255,0.22), transparent 20%),
    linear-gradient(135deg, #13213f 0%, #1d4ed8 48%, #59c6ff 100%);
  background-size: cover, cover, auto, auto;
  background-position: center, center, center, center;
}

.home-hero::before,
.banner-preview-hero::before {
  inset: 0;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(8, 15, 36, 0.42), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(255,255,255,0.14), transparent 22%),
    radial-gradient(circle at 70% 80%, rgba(125, 211, 252, 0.18), transparent 20%);
}

.home-hero::after,
.banner-preview-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.2), rgba(255,255,255,0));
  pointer-events: none;
}

.hero-overlay,
.banner-preview-hero .hero-overlay {
  margin: 0;
  padding-right: 0;
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  color: #dbeafe;
  font-size: 0.74rem;
}

.home-hero h1,
.banner-preview-hero h1 {
  max-width: 11ch;
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin: 16px 0 14px;
}

.hero-subtitle {
  max-width: 56ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(241, 245, 249, 0.88);
}

.home-shortcuts {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  max-height: none;
  padding: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-shortcuts::after {
  display: none;
}

.shortcut-item,
.shortcut-button {
  min-height: 110px;
  align-content: start;
  justify-items: start;
  text-align: left;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.78);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(244,248,255,0.92));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.shortcut-item strong,
.shortcut-button strong {
  font-size: 1rem;
  line-height: 1.3;
  color: #0f172a;
}

.shortcut-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79,140,255,0.18), rgba(34,211,238,0.14));
  color: #274690;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.home-trio,
.home-highlights,
.resource-grid,
.video-admin-grid,
.users-cards {
  gap: 20px;
}

.home-trio {
  grid-template-columns: 1.05fr 1.2fr 0.9fr;
}

.home-highlights {
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
}

.home-list-card h3,
.spotlight-card h3,
.chart-card h3,
.home-resources h2,
.sugestoes-filtros h2 {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.home-list-card ul li,
#homeNoticesList a,
#homeQuickLinksList li,
.spotlight-profile-item {
  border-radius: 16px;
}

.home-list-card li {
  border-top: 0;
  margin-bottom: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(248,250,252,0.92), rgba(241,245,249,0.72));
}

.home-list-card li:last-child {
  margin-bottom: 0;
}

.notice-title-main,
.home-list-card a,
.resource-item,
.spotlight-content h4 {
  color: #183b72;
}

.calendar-widget,
#homeCalendar {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248,250,252,0.96), rgba(241,245,249,0.92));
}

.video-card .video-container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 18px;
  align-items: center;
}

.video-player-wrapper,
.home-video-player,
.spotlight-media,
.resource-item,
.bio-public-card,
.sugestoes-card {
  border-radius: 22px;
}

.home-video-player,
.spotlight-media {
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.spotlight-card {
  padding: 14px;
}

.spotlight-card h3 {
  padding: 0;
}

.spotlight-media {
  margin-top: 6px;
  min-height: 240px;
}

.spotlight-content {
  padding: 16px 4px 4px;
}

.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.resource-item {
  text-align: left;
  position: relative;
  padding: 22px;
  min-height: 120px;
  display: flex;
  align-items: end;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(239,246,255,0.96));
  overflow: hidden;
}

.resource-item::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,140,255,0.16), rgba(34,211,238,0.12));
}

.filters,
.tabs,
.config-tabs {
  border-radius: 22px;
}

.filters {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  padding: 18px;
}

.tabs {
  gap: 10px;
  margin: 14px 0 18px;
}

.tab,
.tab-btn {
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(148,163,184,0.18);
  color: #334155;
}

.tab.active,
.tab-btn.active {
  background: linear-gradient(135deg, #3876ff, #4f8cff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(56,118,255,0.24);
}

.table-wrap {
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.18);
  overflow: auto;
  background: rgba(255,255,255,0.86);
}

table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef4ff;
}

table th,
table td {
  padding: 13px 14px;
}

table tbody tr:nth-child(even) {
  background: rgba(248,250,252,0.78);
}

table tbody tr:hover {
  background: rgba(224, 236, 255, 0.58);
}

.chart-card {
  padding: 18px;
}

.linkbio-parallax {
  transform: none !important;
  transition: none !important;
}

.linkbio-header {
  text-align: center;
  margin-bottom: 24px;
}

.bio-public-card {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
}

.app-container {
  display: flex;
}

.app-container .sidebar {
  position: fixed;
  inset: 16px auto 16px 16px;
  width: 280px;
  transform: none;
  border-radius: 28px;
  overflow: hidden;
}

.app-container .sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-container .sidebar-nav a {
  text-decoration: none;
}

.main-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  letter-spacing: -0.04em;
}

.results-container {
  display: grid;
  gap: 18px;
}

.sugestoes-filtros,
.sugestoes-lista-card {
  position: relative;
  border-radius: 28px;
  padding: 24px;
}

.sugestoes-lista {
  max-height: none;
  display: grid;
  gap: 14px;
  padding: 0;
}

.sugestoes-card {
  border: 1px solid rgba(148,163,184,0.16);
  border-bottom: none;
  padding: 18px;
  background: linear-gradient(180deg, rgba(248,250,252,0.88), rgba(255,255,255,0.96));
  box-shadow: 0 12px 26px rgba(15,23,42,0.05);
}

.sugestoes-card:hover {
  background: linear-gradient(180deg, rgba(239,246,255,0.98), rgba(255,255,255,1));
}

.sugestoes-header {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.sugestoes-tipo {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
}

.sugestoes-info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sugestoes-loja,
.sugestoes-nome {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 700;
}

.sugestoes-mensagem {
  line-height: 1.7;
  color: #334155;
  white-space: pre-wrap;
}

.loading,
.empty-state,
.sugestoes-erro {
  padding: 18px 0;
  text-align: center;
  color: #64748b;
}

@media (max-width: 1180px) {
  .home-trio,
  .home-highlights {
    grid-template-columns: 1fr;
  }

  .video-card .video-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .content-wrap,
  .app-container .main-content {
    padding-left: 0;
  }

  .app-container .sidebar {
    inset: 0 auto 0 0;
    transform: translateX(-100%);
    border-radius: 0 28px 28px 0;
    width: min(86vw, 300px);
    z-index: 30;
  }

  .app-container .sidebar.open,
  .app-container .sidebar.is-open {
    transform: translateX(0);
  }

  .topbar,
  .main-header {
    margin-top: 12px;
  }
}

@media (max-width: 720px) {
  .topbar,
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .home-hero,
  .banner-preview-hero {
    min-height: 300px;
    padding: 22px;
  }

  .home-hero h1,
  .banner-preview-hero h1 {
    max-width: none;
  }

  .home-shortcuts {
    grid-template-columns: 1fr 1fr;
  }

  .resource-grid,
  .filters,
  .filtros {
    grid-template-columns: 1fr;
  }
}

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

  .page-main,
  .content-wrapper {
    padding: 14px 10px 20px;
  }

  .topbar,
  .main-header {
    margin-left: 10px;
    margin-right: 10px;
    padding: 14px 16px;
    border-radius: 20px;
  }

  .sugestoes-filtros,
  .sugestoes-lista-card,
  .card {
    border-radius: 22px;
  }
}


/* ===== Home redesign v3 fixes ===== */
body.home-redesign {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.09), transparent 24%),
    linear-gradient(180deg, #eef3f8 0%, #f6f8fb 100%);
  color: #122033;
}

body.home-redesign .content-wrap {
  padding-left: 28px;
}

body.home-redesign .page-main.home-main {
  padding: 24px 18px 32px;
  display: grid;
  gap: 22px;
}

body.home-redesign .sidebar-tab {
  width: 24px;
  height: 92px;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

body.home-redesign .topbar.topbar-home {
  margin: 18px 18px 0;
  padding: 14px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.90), rgba(37, 99, 235, 0.74));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

body.home-redesign .topbar-home .topbar-search input,
body.home-redesign .topbar-home .welcome-pill,
body.home-redesign .topbar-home .btn-ghost {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.14);
}

body.home-redesign .topbar-brand strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

body.home-redesign .home-hero {
  min-height: 230px;
  padding: 26px 34px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.68);
  background:
    linear-gradient(115deg, rgba(3, 12, 35, 0.93), rgba(21, 64, 160, 0.76) 50%, rgba(56, 189, 248, 0.60) 100%),
    var(--home-hero-banner-image),
    radial-gradient(circle at 88% 20%, rgba(255,255,255,0.16), transparent 18%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

body.home-redesign .home-hero::after {
  width: 180px;
  height: 180px;
  top: auto;
  bottom: -50px;
  right: -30px;
  background: radial-gradient(circle, rgba(255,255,255,0.20), rgba(255,255,255,0));
}

body.home-redesign .hero-eyebrow {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.14);
  font-size: 0.76rem;
}

body.home-redesign .home-hero h1 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 4.8vw, 5rem);
  line-height: 0.9;
  margin-bottom: 16px;
}

body.home-redesign .hero-subtitle {
  max-width: 46ch;
  font-size: 1.03rem;
}

body.home-redesign .home-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
}

body.home-redesign .shortcut-item,
body.home-redesign .shortcut-button {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 18px 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
  border: 1px solid rgba(181, 198, 223, 0.65);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

body.home-redesign .shortcut-item::before,
body.home-redesign .shortcut-button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

body.home-redesign .shortcut-item:hover,
body.home-redesign .shortcut-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.14);
}

body.home-redesign .shortcut-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.16));
}

body.home-redesign .shortcut-item strong,
body.home-redesign .shortcut-button strong {
  color: #10223a;
  font-size: 1.02rem;
}

body.home-redesign .card {
  border-radius: 28px;
  border: 1px solid rgba(190, 205, 224, 0.72);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

body.home-redesign .home-trio,
body.home-redesign .home-highlights {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

body.home-redesign .home-trio {
  grid-template-columns: 0.9fr 1.1fr 0.9fr;
}

body.home-redesign .home-highlights {
  grid-template-columns: 1.12fr 0.92fr 0.96fr;
}

body.home-redesign .home-list-card,
body.home-redesign .spotlight-card,
body.home-redesign .video-card {
  padding: 0;
  overflow: hidden;
}

body.home-redesign .home-list-card.calendar-card {
  overflow: visible;
}

body.home-redesign .home-list-card h3,
body.home-redesign .spotlight-card h3,
body.home-redesign .video-card h3 {
  margin: 0;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(208, 219, 234, 0.85);
  font-size: 1.25rem;
  color: #10223a;
}

body.home-redesign .home-list-card ul {
  padding: 16px;
  margin: 0;
}

body.home-redesign .home-list-card li {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(219, 229, 241, 0.95);
  background: #f8fbff;
  border-radius: 18px;
}

body.home-redesign #homeCalendar {
  margin: 16px;
  height: auto !important;
}

body.home-redesign .calendar-legend-inline {
  padding: 0 16px 16px;
}

body.home-redesign .video-card {
  padding-bottom: 14px;
}

body.home-redesign .video-card .task-counter {
  padding: 14px 22px 0;
  margin: 0;
}

body.home-redesign .video-card .video-container {
  padding: 16px 22px 22px;
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.92fr);
}

body.home-redesign .video-player-wrapper {
  min-height: 280px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

body.home-redesign .spotlight-media {
  margin: 16px;
  min-height: 250px;
  border-radius: 24px;
}

body.home-redesign .spotlight-content {
  padding: 0 18px 20px;
}

body.home-redesign .spotlight-profiles-list {
  padding: 16px;
}

body.home-redesign .spotlight-profile-item {
  background: linear-gradient(180deg, #f8fbff, #f3f7fc);
  border: 1px solid rgba(216, 226, 238, 0.95);
  border-radius: 22px;
  padding: 16px;
}

body.home-redesign .home-resources h2 {
  margin: 2px 4px 14px;
  font-size: 1.45rem;
}

body.home-redesign .resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.home-redesign .resource-item {
  min-height: 150px;
  border-radius: 24px;
  padding: 24px;
  font-size: 1.08rem;
}

@media (max-width: 1280px) {
  body.home-redesign .home-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  body.home-redesign .content-wrap {
    padding-left: 12px;
  }

  body.home-redesign .home-trio,
  body.home-redesign .home-highlights,
  body.home-redesign .resource-grid,
  body.home-redesign .home-shortcuts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body.home-redesign .topbar.topbar-home {
    margin: 12px 12px 0;
  }

  body.home-redesign .page-main.home-main {
    padding: 16px 12px 28px;
  }

  body.home-redesign .home-trio,
  body.home-redesign .home-highlights,
  body.home-redesign .resource-grid,
  body.home-redesign .home-shortcuts {
    grid-template-columns: 1fr;
  }

  body.home-redesign .video-card .video-container {
    grid-template-columns: 1fr;
  }

  body.home-redesign .home-hero {
    min-height: 205px;
    padding: 20px 24px;
  }

  body.home-redesign .home-hero h1 {
    max-width: none;
    font-size: clamp(2.3rem, 9vw, 3.4rem);
  }
}




/* Home v4 refinements: banner dinâmico + card de vídeo corrigido */
body.home-redesign .video-card {
  padding-bottom: 0;
}

body.home-redesign .video-card .video-container {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 14px 0 18px;
  margin-left: 0;
  margin-right: 0;
}

body.home-redesign .video-card .video-player-wrapper {
  height: 430px;
  min-height: 430px;
  max-height: 430px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
  background: #081225;
}

body.home-redesign .video-card .home-video-player {
  display: block;
  width: 100%;
  height: 430px;
  min-height: 430px;
  max-height: 430px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
  background: #081225;
}

body.home-redesign .video-card .video-nav {
  left: 16px;
  right: 16px;
}

body.home-redesign .video-card .video-info {
  padding: 18px 22px 2px;
}

body.home-redesign .video-card .video-info h4 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  color: #10223a;
}

body.home-redesign .video-card .video-info p {
  min-height: auto;
  line-height: 1.6;
  color: #475569;
}

body.home-redesign .home-hero,
.banner-preview-hero {
  background-size: cover, cover, cover, auto;
  background-position: center, center, center, center;
}

body.home-redesign .home-hero.has-custom-banner,
.banner-preview-hero.has-custom-banner {
  background-image:
    linear-gradient(90deg, rgba(4, 10, 24, 0.74) 0%, rgba(4, 10, 24, 0.32) 48%, rgba(4, 10, 24, 0.10) 100%),
    linear-gradient(180deg, rgba(4, 10, 24, 0.08) 0%, rgba(4, 10, 24, 0.56) 100%),
    var(--home-hero-banner-image);
  background-size: cover, cover, cover;
  background-position: center, center, center;
}

body.home-redesign .home-hero.has-custom-banner::before,
.banner-preview-hero.has-custom-banner::before {
  background: linear-gradient(90deg, rgba(4, 10, 24, 0.42) 0%, rgba(4, 10, 24, 0.12) 42%, rgba(4, 10, 24, 0) 70%);
}

body.home-redesign .home-hero::after,
.banner-preview-hero::after,
body.home-redesign .home-hero.has-custom-banner::after,
.banner-preview-hero.has-custom-banner::after {
  display: none;
}

@media (max-width: 760px) {
  body.home-redesign .video-card .video-player-wrapper,
  body.home-redesign .video-card .home-video-player {
    height: 430px;
    min-height: 430px;
    max-height: 430px;
  }

  body.home-redesign .video-card .video-info {
    padding: 16px 18px 0;
  }
}

/* Global spacing fix */
.content-wrap,
.app-container .main-content {
  padding-left: 28px;
}
@media (max-width: 980px) {
  .content-wrap,
  .app-container .main-content {
    padding-left: 0;
  }
}

/* Modal scroll fix: Suporte TI + Reclamações/Sugestões */
#tiSupportModal .ti-modal-card,
#sugestoesModal .ti-modal-card {
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

#tiSupportModal .ti-modal-form,
#sugestoesModal #sugestoesIntro,
#sugestoesModal #sugestoesFormContainer {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#sugestoesModal #sugestoesIntro {
  padding: 18px 22px 22px;
}

#sugestoesModal #sugestoesFormContainer {
  padding: 16px 0 22px !important;
}

#tiSupportModal .ti-modal-form,
#sugestoesModal #sugestoesIntro,
#sugestoesModal #sugestoesFormContainer {
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 111, 235, 0.35) rgba(201, 216, 238, 0.28);
}

#tiSupportModal .ti-modal-form::-webkit-scrollbar,
#sugestoesModal #sugestoesIntro::-webkit-scrollbar,
#sugestoesModal #sugestoesFormContainer::-webkit-scrollbar {
  width: 10px;
}

#tiSupportModal .ti-modal-form::-webkit-scrollbar-track,
#sugestoesModal #sugestoesIntro::-webkit-scrollbar-track,
#sugestoesModal #sugestoesFormContainer::-webkit-scrollbar-track {
  background: rgba(201, 216, 238, 0.28);
  border-radius: 999px;
}

#tiSupportModal .ti-modal-form::-webkit-scrollbar-thumb,
#sugestoesModal #sugestoesIntro::-webkit-scrollbar-thumb,
#sugestoesModal #sugestoesFormContainer::-webkit-scrollbar-thumb {
  background: rgba(31, 111, 235, 0.35);
  border-radius: 999px;
}

#tiSupportModal .ti-modal-form::-webkit-scrollbar-thumb:hover,
#sugestoesModal #sugestoesIntro::-webkit-scrollbar-thumb:hover,
#sugestoesModal #sugestoesFormContainer::-webkit-scrollbar-thumb:hover {
  background: rgba(31, 111, 235, 0.5);
}

@media (max-width: 760px) {
  #tiSupportModal .ti-modal-card,
  #sugestoesModal .ti-modal-card {
    max-height: 90vh;
  }
}

/* Shell navigation, search and administrative lists */
.topbar {
  gap: 16px;
}

.topbar .topbar-right {
  min-width: 0;
  margin-left: auto;
}

.topbar-search {
  position: relative;
  width: min(34vw, 380px);
  min-width: 250px;
}

.topbar-search input {
  height: 42px;
  padding-left: 40px;
  background:
    linear-gradient(90deg, rgba(32, 112, 199, 0.12), rgba(32, 112, 199, 0.12)) 14px 50% / 14px 14px no-repeat,
    rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(15, 55, 105, 0.08);
}

.topbar-search::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid #2a6eb7;
  border-radius: 50%;
  transform: translateY(-62%);
  z-index: 1;
  pointer-events: none;
}

.topbar-search::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 25px;
  width: 7px;
  height: 2px;
  background: #2a6eb7;
  border-radius: 999px;
  transform: rotate(45deg);
  z-index: 1;
  pointer-events: none;
}

.topbar-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 120;
  padding: 8px;
  border: 1px solid #c8daf0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(16, 45, 83, 0.18);
  max-height: min(420px, 72vh);
  overflow-y: auto;
}

.topbar-search-result {
  display: flex;
  padding: 10px 11px;
  border-radius: 7px;
  color: #183a5c;
}

.topbar-search-result:hover,
.topbar-search-result:focus {
  background: #eef5ff;
  color: #185fae;
}

.topbar-search-result span {
  display: grid;
  gap: 1px;
}

.topbar-search-result strong {
  font-size: 0.94rem;
}

.topbar-search-result small,
.topbar-search-empty {
  color: #657b99;
  font-size: 0.82rem;
}

.topbar-search-empty {
  margin: 0;
  padding: 10px 11px;
}

.sidebar {
  width: min(var(--sidebar-width), calc(100vw - 48px));
  padding: 16px 14px;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  border-right: 1px solid #cfe0f5;
}

.sidebar.is-open {
  box-shadow:
    0 0 0 9999px rgba(15, 35, 64, 0.24),
    16px 0 34px rgba(20, 55, 92, 0.14);
}

.sidebar-header {
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #d8e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.sidebar nav {
  display: grid;
  gap: 4px;
}

.menu-item {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 10px;
  line-height: 1.25;
}

.menu-item:hover,
.menu-item.active {
  border-color: #c8ddf7;
  background: #edf5ff;
}

.menu-toggle span {
  margin-left: auto;
  transition: transform 160ms ease;
}

.menu-toggle.is-open .menu-chevron {
  transform: rotate(180deg);
}

.submenu {
  margin: 2px 0 8px 10px;
  padding-left: 8px;
  border-left: 1px solid #d7e5f6;
}

.submenu .menu-item {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 0.93rem;
}

.sidebar-tab {
  top: 18px;
  left: 0;
  width: 42px;
  height: 46px;
  clip-path: none;
  border-radius: 0 8px 8px 0;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 55, 105, 0.15);
}

.sidebar-tab:hover {
  transform: none;
}

.sidebar-tab-icon {
  font-size: 1.1rem;
  transform: none;
}

body.sidebar-open .sidebar-tab {
  left: calc(min(var(--sidebar-width), calc(100vw - 48px)) - 1px);
}

.page-main {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.page-main > .card > .card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.bio-admin-list {
  gap: 12px;
}

.bio-admin-list > .muted,
.users-cards:empty::before {
  content: "Nenhum item cadastrado.";
  margin: 0;
  padding: 16px;
  border: 1px dashed #c8daf0;
  border-radius: 8px;
  background: #f8fbff;
}

.bio-admin-card,
.user-card,
.user-access-row {
  border-radius: 8px;
  border-color: #d5e2f2;
  box-shadow: none;
}

.bio-admin-card {
  background: #ffffff;
}

.bio-admin-content {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.bio-admin-content p,
.quick-link-admin-title,
.quick-link-admin-url {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bio-admin-actions {
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #edf2f8;
}

.bio-admin-actions .btn-ghost,
.bio-admin-actions .btn-danger,
.user-actions .btn-ghost {
  border-radius: 8px;
}

.rh-notices-grid,
.calendar-alerts-grid {
  grid-template-columns: 1fr;
}

.rh-notice-card,
.calendar-alert-card {
  min-height: auto;
}

.rh-notice-title,
.calendar-alert-title {
  font-size: 1rem;
}

.rh-notice-meta,
.calendar-alert-meta,
.calendar-alert-time {
  color: #60738f;
}

@media (min-width: 900px) {
  .rh-notice-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
  }

  .rh-notice-head {
    grid-column: 1;
  }

  .rh-notice-description {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .rh-notice-actions,
  .rh-notice-card > .muted {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    min-width: 112px;
  }

  .calendar-alert-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
  }

  .calendar-alert-head {
    grid-column: 1;
    display: grid;
    justify-content: start;
  }

  .calendar-alert-title,
  .calendar-alert-description,
  .calendar-alert-meta {
    grid-column: 2;
  }

  .calendar-alert-actions,
  .calendar-alert-card > .muted {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
    min-width: 112px;
  }
}

.users-cards {
  grid-template-columns: 1fr;
  gap: 12px;
}

.user-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1fr);
  gap: 8px 18px;
  background: #ffffff;
}

.user-card-head,
.user-card-email,
.user-access-summary {
  grid-column: 1;
}

.user-card-meta-grid {
  grid-column: 2;
  grid-row: 1 / span 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.user-card-meta-grid p {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #e4ecf7;
  border-radius: 8px;
  background: #f8fbff;
}

.user-access-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.user-access-chips span,
.user-access-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #d6e5f7;
  border-radius: 999px;
  background: #eef6ff;
  color: #2b527e;
  font-size: 0.78rem;
  font-weight: 700;
}

.user-access-row {
  background: #ffffff;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto) minmax(90px, auto);
}

.user-access-row.is-disabled {
  background: #f7f9fc;
  color: #6c7c91;
}

.user-access-row.is-disabled .user-access-state {
  border-color: #d9e0ea;
  background: #edf1f6;
  color: #6a7788;
}

.user-access-text {
  display: grid;
  gap: 5px;
}

.user-access-text p {
  margin: 0;
}

.user-access-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #2070c7;
}

@media (max-width: 980px) {
  .topbar {
    align-items: stretch;
  }

  .topbar .topbar-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .topbar-search {
    order: 5;
    width: 100%;
    min-width: min(100%, 220px);
  }

  .user-card {
    grid-template-columns: 1fr;
  }

  .user-card-head,
  .user-card-email,
  .user-card-meta-grid,
  .user-access-summary,
  .user-access-chips {
    grid-column: 1;
    grid-row: auto;
  }

  .user-card-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sidebar {
    width: min(88vw, var(--sidebar-width));
  }

  body.sidebar-open .sidebar-tab {
    left: calc(min(88vw, var(--sidebar-width)) - 1px);
  }

  .topbar-search-results {
    position: fixed;
    top: 70px;
    left: 12px;
    right: 12px;
  }

  .bio-admin-card {
    grid-template-columns: 1fr;
  }

  .bio-admin-image-wrap,
  .video-admin-thumbnail {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid #d6e3f7;
  }
}

/* Ajustes finos: restaura largura geral, sidebar antigo e listas cardeadas */
.content-wrap,
.app-container .main-content {
  padding-left: 0;
}

.page-main,
.content-wrapper {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 20px;
}

.videos-settings-card,
.banner-settings-card {
  max-width: none;
  margin: 0;
}

.topbar:not(.topbar-home),
.topbar:not(.topbar-home) .btn-ghost,
.topbar:not(.topbar-home) #welcomeUser,
.topbar:not(.topbar-home) .welcome-pill {
  color: #102a46;
}

.topbar:not(.topbar-home) .topbar-search input {
  color: #102a46;
  background:
    linear-gradient(90deg, rgba(32, 112, 199, 0.12), rgba(32, 112, 199, 0.12)) 14px 50% / 14px 14px no-repeat,
    #ffffff;
}

.topbar:not(.topbar-home) .topbar-search input::placeholder {
  color: #49617c;
}

.sidebar {
  width: var(--sidebar-width);
  max-width: calc(100vw - 48px);
  background: linear-gradient(165deg, #f0f7ff, #dce9f6);
  color: #102a46;
  padding: 20px;
  position: fixed;
  inset: 0 auto 0 0;
  transform: translateX(-100%);
  transition: transform 230ms ease, box-shadow 230ms ease;
  z-index: 20;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 0;
}

.sidebar.is-open {
  transform: translateX(0);
  box-shadow: 0 0 0 9999px rgba(26, 58, 92, 0.15);
}

.sidebar-header {
  padding: 0 0 14px;
  margin: 0 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(59, 158, 255, 0.2);
  border-radius: 0;
  background: transparent;
}

.sidebar-header h2,
.menu-item,
.submenu .menu-item {
  color: #102a46;
}

.sidebar nav {
  display: block;
}

.menu-item {
  min-height: auto;
  width: 100%;
  display: block;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 6px;
  line-height: normal;
}

.menu-item:hover,
.menu-item.active {
  border: 0;
  background: rgba(59, 158, 255, 0.15);
  color: #134c88;
}

.menu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle span {
  margin-left: 8px;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-left: 8px;
  margin: 0;
  border-left: 0;
  transition:
    max-height 280ms cubic-bezier(.25,.8,.25,1),
    opacity 220ms ease,
    padding 280ms cubic-bezier(.25,.8,.25,1);
}

.submenu.is-open {
  max-height: 980px;
  opacity: 1;
  padding: 6px 0 0 8px;
}

.submenu .menu-item {
  min-height: auto;
  padding: 11px 12px;
  font-size: 1rem;
}

.sidebar-tab {
  position: fixed;
  top: 50%;
  left: -1px;
  transform: translateY(-50%);
  width: 34px;
  height: 108px;
  border: 1px solid rgba(59, 158, 255, 0.4);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  clip-path: polygon(0 0, 100% 12%, 100% 88%, 0 100%);
  background: linear-gradient(180deg, #e8f4ff, #d4e8f8);
  color: #104f8d;
  box-shadow: 0 12px 26px rgba(31, 111, 235, 0.12);
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 80;
  transition: left 220ms ease, background 160ms ease;
}

.sidebar-tab:hover {
  transform: translateY(-50%);
  background: linear-gradient(180deg, #d4e8f8, #bddcf2);
}

.sidebar-tab-icon {
  font-size: 1.08rem;
  line-height: 1;
  transform: translateX(1px);
}

body.sidebar-open .sidebar-tab {
  left: calc(var(--sidebar-width) - 1px);
}

.calendar-picker-panel {
  margin: 16px 0 10px;
}

.legend-selected {
  background: #1f6feb;
}

#datasCalendar .cal-day[data-cal-date] {
  cursor: pointer;
}

#datasCalendar .cal-day[data-cal-date]:hover {
  border-color: #1f6feb;
  background: #eaf4ff;
}

.cal-day.is-selected {
  border-color: #134c88;
  background: linear-gradient(180deg, #1f6feb, #155bbd);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.22);
  font-weight: 800;
}

.cal-day.is-selected::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 7px;
  pointer-events: none;
}

.calendar-selection-hint {
  min-height: auto;
  margin: 4px 0 12px;
  padding: 10px 12px;
  border: 1px solid #c8daf0;
  border-radius: 10px;
  background: #f8fbff;
  color: #23415f;
}

.calendar-alerts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.calendar-alert-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.rh-notices-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.video-admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#videoList > .muted {
  grid-column: 1 / -1;
}

.video-admin-card {
  min-height: 0;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: 10px;
}

.video-admin-thumbnail {
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-right: 0;
  border-bottom: 1px solid #d6e3f7;
}

.video-admin-content {
  padding: 14px;
  gap: 8px;
}

.video-admin-content h4 {
  margin-bottom: 0;
  color: #102f56;
  line-height: 1.25;
}

.video-admin-content p {
  color: #354b65;
  line-height: 1.42;
}

.video-admin-meta {
  color: #586d86;
}

@media (max-width: 1180px) {
  .calendar-alerts-grid,
  .video-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-main,
  .content-wrapper {
    padding: 14px;
  }

  .calendar-alerts-grid,
  .video-admin-grid {
    grid-template-columns: 1fr;
  }

  body.sidebar-open .sidebar-tab {
    left: calc(min(var(--sidebar-width), calc(100vw - 48px)) - 1px);
  }
}

/* Ajuste de layout da página de RH: evita cards estreitos e textos quebrados verticalmente. */
#rhNoticeForm {
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.3fr) auto;
  align-items: end;
  gap: 14px;
}

#rhNoticeForm label {
  align-self: stretch;
}

#rhTitle {
  min-height: 46px;
}

#rhDescription {
  min-height: 116px;
  resize: vertical;
}

#rhNoticeForm .btn-primary {
  min-width: 240px;
  min-height: 46px;
  align-self: end;
  padding: 12px 22px;
}

#rhNoticesList.rh-notices-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

#rhNoticesList .rh-notice-card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px 18px;
  min-height: 0;
  padding: 16px;
  overflow: visible;
}

#rhNoticesList .rh-notice-head {
  grid-column: 1;
  min-width: 0;
}

#rhNoticesList .rh-notice-title,
#rhNoticesList .rh-notice-description,
#rhNoticesList .rh-notice-meta {
  overflow-wrap: anywhere;
  word-break: normal;
}

#rhNoticesList .rh-notice-description {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

#rhNoticesList .rh-notice-actions,
#rhNoticesList .rh-notice-card > .muted {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 112px;
}

@media (max-width: 900px) {
  #rhNoticeForm {
    grid-template-columns: 1fr;
  }

  #rhNoticeForm .btn-primary {
    width: 100%;
    min-width: 0;
  }

  #rhNoticesList .rh-notice-card {
    grid-template-columns: 1fr;
  }

  #rhNoticesList .rh-notice-head,
  #rhNoticesList .rh-notice-description,
  #rhNoticesList .rh-notice-actions,
  #rhNoticesList .rh-notice-card > .muted {
    grid-column: 1;
    grid-row: auto;
  }
}

/* RH comunicados: cards compactos em 3 colunas com "Ver mais" para textos longos. */
#rhNoticesList.rh-notices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
}

#rhNoticesList .rh-notice-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 230px;
  height: 100%;
  padding: 16px;
  overflow: hidden;
}

#rhNoticesList .rh-notice-head,
#rhNoticesList .rh-notice-body,
#rhNoticesList .rh-notice-actions,
#rhNoticesList .rh-notice-card > .muted {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
}

#rhNoticesList .rh-notice-title {
  margin: 0 0 8px;
  line-height: 1.25;
}

#rhNoticesList .rh-notice-meta {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

#rhNoticesList .rh-notice-body {
  flex: 1 1 auto;
}

#rhNoticesList .rh-notice-description {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#rhNoticesList .rh-notice-description.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 7.3em;
}

#rhNoticesList .rh-see-more {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1767c7;
  font-weight: 700;
  cursor: pointer;
}

#rhNoticesList .rh-see-more:hover {
  text-decoration: underline;
}

#rhNoticesList .rh-notice-actions,
#rhNoticesList .rh-notice-card > .muted {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: auto;
}

@media (max-width: 1180px) {
  #rhNoticesList.rh-notices-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 760px) {
  #rhNoticesList.rh-notices-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Front refresh 2026-05-09
   Escopo: visual, responsividade e fluidez do front.
   Mantem IDs, classes e JS existentes para preservar funcoes.
   ========================================================= */
:root {
  --bg-0: #f6f9ff;
  --bg-1: #edf4fb;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --text: #16324f;
  --muted: #61748d;
  --border: #dbe6f3;
  --primary: #2388e8;
  --primary-strong: #1267bd;
  --sidebar-1: #ffffff;
  --sidebar-2: #eef6ff;
  --ok: #0f8a5f;
  --danger: #c13b31;
  --shadow-lg: 0 18px 45px rgba(27, 75, 128, 0.12);
  --shadow-md: 0 10px 26px rgba(27, 75, 128, 0.09);
  --radius-xl: 22px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% -8%, rgba(76, 157, 239, 0.18), transparent 34rem),
    radial-gradient(circle at 95% 0%, rgba(97, 203, 255, 0.16), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(22, 50, 79, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 50, 79, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 70%);
}

input,
select,
textarea {
  min-height: 44px;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #c3d5ec;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(35, 136, 232, 0.78);
  box-shadow: 0 0 0 4px rgba(35, 136, 232, 0.13);
}

button,
.btn-primary,
.btn-ghost,
.menu-item,
.shortcut-item,
.resource-item,
.user-card,
.bio-admin-card,
.quick-link-admin-card,
.stock-report-metric-card {
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease, opacity 140ms ease;
}

button:active,
.shortcut-item:active,
.resource-item:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary {
  background: linear-gradient(135deg, #1f8ff2, #146bc3);
  box-shadow: 0 10px 22px rgba(20, 107, 195, 0.23);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #177ede, #105da9);
  box-shadow: 0 12px 26px rgba(20, 107, 195, 0.28);
}

.btn-ghost,
.menu-button {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(200, 218, 240, 0.9);
  box-shadow: 0 6px 16px rgba(27, 75, 128, 0.07);
}

.btn-ghost:hover,
.menu-button:hover {
  border-color: rgba(35, 136, 232, 0.34);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(27, 75, 128, 0.11);
}

.layout {
  isolation: isolate;
}

.sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,247,255,0.98));
  border-right: 1px solid rgba(194, 214, 239, 0.7);
  box-shadow: 18px 0 45px rgba(27, 75, 128, 0.08);
  transform: translate3d(-100%, 0, 0);
  will-change: transform;
  scrollbar-width: thin;
}

.sidebar.is-open {
  transform: translate3d(0, 0, 0);
  box-shadow: 0 0 0 9999px rgba(16, 42, 67, 0.18), 18px 0 45px rgba(27, 75, 128, 0.12);
}

.sidebar-header {
  border-bottom-color: rgba(35, 136, 232, 0.16);
}

.sidebar-header h2 {
  letter-spacing: -0.02em;
}

.sidebar-tab,
.sidebar-close-btn {
  background: linear-gradient(180deg, #ffffff, #eaf5ff);
  border-color: rgba(35, 136, 232, 0.24);
  color: var(--primary-strong);
  box-shadow: 0 10px 24px rgba(27, 75, 128, 0.12);
}

.menu-item {
  position: relative;
  border: 1px solid transparent;
}

.menu-item:hover,
.menu-item.active {
  background: rgba(35, 136, 232, 0.1);
  border-color: rgba(35, 136, 232, 0.14);
  color: #0f5fae;
  box-shadow: inset 3px 0 0 rgba(35, 136, 232, 0.72);
}

.submenu .menu-item {
  font-size: 0.95rem;
  padding-left: 14px;
}

.content-wrap {
  min-width: 0;
}

.topbar {
  min-height: 68px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(202, 219, 241, 0.72);
  box-shadow: 0 10px 24px rgba(27, 75, 128, 0.06);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.topbar-home {
  background: linear-gradient(105deg, rgba(21, 111, 205, 0.98), rgba(55, 160, 239, 0.96));
  box-shadow: 0 14px 34px rgba(16, 95, 174, 0.16);
}

.topbar-brand strong,
.topbar-brand-link strong {
  letter-spacing: -0.02em;
}

.brand-mark,
.brand-mark-image {
  filter: drop-shadow(0 6px 14px rgba(17, 82, 155, 0.18));
}

.topbar-search input {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.welcome-pill {
  border: 1px solid rgba(255,255,255,0.34);
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(4px);
}

.page-main {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(16px, 2.2vw, 30px);
}

.card,
.chart-card,
.home-list-card,
.home-info-card,
.preview-section,
.maintenance-card,
.user-card,
.bio-admin-card,
.stock-report-metric-card,
.ti-modal-card {
  border: 1px solid rgba(207, 222, 241, 0.88);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.card,
.home-list-card,
.home-info-card,
.chart-card,
.preview-section,
.maintenance-card {
  content-visibility: auto;
  contain-intrinsic-size: 260px;
}

.card:hover,
.home-list-card:hover,
.home-info-card:hover,
.chart-card:hover,
.preview-section:hover,
.user-card:hover,
.stock-report-metric-card:hover {
  border-color: rgba(35, 136, 232, 0.22);
  box-shadow: var(--shadow-lg);
}

.home-main {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.home-hero {
  min-height: clamp(240px, 32vw, 410px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 82, 156, 0.88), rgba(32, 142, 224, 0.72)),
    radial-gradient(circle at 78% 24%, rgba(255,255,255,0.28), transparent 18rem),
    linear-gradient(135deg, #1267bd, #36a4ef);
}

.home-hero::before {
  opacity: 0.32;
  transform: translateZ(0);
}

.hero-overlay {
  max-width: 760px;
}

.hero-eyebrow {
  width: fit-content;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(3px);
}

.home-hero h1 {
  font-size: clamp(2rem, 4.3vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-subtitle {
  max-width: 62ch;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.home-shortcuts,
.resource-grid,
.home-trio,
.home-duo,
.home-highlights,
.charts-grid,
.users-cards,
.stock-report-metrics {
  gap: clamp(12px, 1.6vw, 18px);
}

.home-shortcuts {
  background: rgba(255,255,255,0.74);
  backdrop-filter: blur(4px);
}

.shortcut-item,
.resource-item {
  border: 1px solid rgba(210, 225, 243, 0.9);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 8px 20px rgba(27, 75, 128, 0.07);
}

.shortcut-item:hover,
.resource-item:hover {
  transform: translateY(-2px);
  border-color: rgba(35, 136, 232, 0.3);
  box-shadow: 0 14px 28px rgba(27, 75, 128, 0.13);
}

.shortcut-icon {
  background: linear-gradient(135deg, #eef7ff, #d9edff);
  color: #1267bd;
  border: 1px solid rgba(35, 136, 232, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.home-list-card h3,
.home-info-body h4,
.spotlight-content h4,
.chart-card h3,
.preview-section > h3,
.maintenance-card h3 {
  letter-spacing: -0.02em;
}

.forecast-row,
.forecast-row-sub,
.home-list-card li,
.bio-admin-card,
.quick-link-admin-card {
  border-color: rgba(214, 227, 244, 0.95);
}

.notice-toggle-btn,
.expand-btn,
.tab,
.tab-btn,
.pagination button {
  border: 1px solid rgba(200, 218, 240, 0.9);
  background: rgba(255,255,255,0.9);
}

.tab.active,
.tab-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2388e8, #146bc3);
  box-shadow: 0 10px 22px rgba(20, 107, 195, 0.2);
}

.table-wrap,
.margin-report-table-wrap {
  border-radius: 18px;
  border: 1px solid rgba(207, 222, 241, 0.9);
  background: #fff;
  box-shadow: 0 10px 24px rgba(27, 75, 128, 0.08);
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

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

th {
  background: #f1f7ff;
  color: #17355b;
}

td,
th {
  border-color: rgba(218, 229, 244, 0.92);
}

tbody tr {
  transition: background-color 120ms ease;
}

tbody tr:hover {
  background: #f7fbff;
}

.report-loading-overlay {
  background: rgba(247, 251, 255, 0.84);
  backdrop-filter: blur(3px);
}

.report-loading-spinner {
  border-top-color: #2388e8;
}

.video-player-wrapper,
.home-video-player,
.spotlight-media,
.bio-admin-image-wrap {
  background: linear-gradient(135deg, #eef6ff, #f8fbff);
}

.video-container.is-sliding-next .video-player-wrapper,
.video-container.is-sliding-next .video-info,
.video-container.is-sliding-prev .video-player-wrapper,
.video-container.is-sliding-prev .video-info {
  will-change: transform, opacity;
}

.ti-modal-backdrop {
  background: rgba(15, 34, 58, 0.42) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
}

.ti-modal-card {
  box-shadow: 0 28px 80px rgba(15, 34, 58, 0.28) !important;
}

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

::-webkit-scrollbar-thumb {
  background: #c4d5ea;
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #9fbadd;
}

@media (max-width: 980px) {
  .topbar,
  .topbar-right,
  .topbar-home-right {
    gap: 10px;
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topbar-right,
  .topbar-home-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .topbar-search {
    flex: 1 1 260px;
  }

  .topbar-search input {
    width: 100%;
  }
}

@media (max-width: 720px) {
  :root {
    --sidebar-width: min(88vw, 320px);
  }

  .page-main {
    padding: 14px;
  }

  .home-hero {
    min-height: 270px;
  }

  .home-shortcuts,
  .resource-grid,
  .home-trio,
  .home-duo,
  .home-highlights,
  .charts-grid,
  .users-cards,
  .stock-report-metrics {
    grid-template-columns: 1fr !important;
  }

  .shortcut-item,
  .resource-item {
    min-height: 74px;
  }

  .login-card {
    padding: 24px;
  }

  .card,
  .home-list-card,
  .home-info-card,
  .chart-card,
  .preview-section,
  .maintenance-card,
  .user-card,
  .stock-report-metric-card {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== Correção Marcelo: largura total + mobile real (front only) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(59, 130, 246, 0.12), transparent 30rem),
    radial-gradient(circle at 92% 10%, rgba(124, 58, 237, 0.10), transparent 34rem),
    linear-gradient(180deg, #eef4fb 0%, #f8fbff 100%);
}

.layout,
.app-container,
.content-wrap,
.app-container .main-content {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.content-wrap,
.app-container .main-content,
body.home-redesign .content-wrap {
  padding-left: 0 !important;
}

.topbar,
.main-header,
body.home-redesign .topbar.topbar-home {
  width: calc(100% - clamp(24px, 3vw, 48px)) !important;
  max-width: none !important;
  margin: clamp(12px, 1.5vw, 22px) auto 0 !important;
  border-radius: clamp(18px, 1.7vw, 28px) !important;
}

.page-main,
.content-wrapper,
body.home-redesign .page-main.home-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(16px, 2vw, 30px) clamp(18px, 3vw, 54px) clamp(28px, 3vw, 48px) !important;
}

body.home-redesign .page-main.home-main,
.home-main {
  gap: clamp(18px, 2vw, 30px) !important;
}

body.home-redesign .home-hero,
.home-hero,
.banner-preview-hero {
  width: 100% !important;
  max-width: none !important;
  min-height: clamp(280px, 27vw, 470px) !important;
  border-radius: clamp(22px, 2.1vw, 36px) !important;
  padding: clamp(28px, 3.2vw, 62px) !important;
  box-shadow: 0 22px 56px rgba(15, 37, 68, 0.16) !important;
}

body.home-redesign .home-hero.has-custom-banner,
.banner-preview-hero.has-custom-banner {
  background-image:
    linear-gradient(90deg, rgba(3, 7, 18, 0.74) 0%, rgba(3, 7, 18, 0.36) 42%, rgba(3, 7, 18, 0.08) 76%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.08) 0%, rgba(3, 7, 18, 0.46) 100%),
    var(--home-hero-banner-image) !important;
  background-size: cover, cover, cover !important;
  background-position: center, center, center !important;
}

body.home-redesign .hero-overlay,
.hero-overlay,
.banner-preview-hero .hero-overlay {
  max-width: min(620px, 92%) !important;
}

body.home-redesign .home-hero h1,
.home-hero h1,
.banner-preview-hero h1 {
  max-width: 12ch !important;
  font-size: clamp(3.3rem, 5vw, 6.4rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.07em !important;
}

body.home-redesign .hero-subtitle,
.hero-subtitle {
  max-width: 58ch !important;
  font-size: clamp(1rem, 1.05vw, 1.18rem) !important;
}

.card,
.home-list-card,
.home-info-card,
.chart-card,
.preview-section,
.maintenance-card,
.banner-settings-card,
.videos-settings-card,
.video-form-shell,
.sugestoes-lista-card,
.sugestoes-filtros,
.filters,
.results-container,
.calendar-panel {
  border-radius: clamp(18px, 1.5vw, 28px) !important;
  border: 1px solid rgba(195, 212, 233, 0.88) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 14px 34px rgba(15, 45, 86, 0.08) !important;
}

body.home-redesign .home-shortcuts {
  width: 100% !important;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  gap: clamp(14px, 1.4vw, 24px) !important;
}

body.home-redesign .shortcut-item,
body.home-redesign .shortcut-button,
.shortcut-item,
.shortcut-button {
  min-height: clamp(112px, 9vw, 150px) !important;
  border-radius: clamp(18px, 1.4vw, 28px) !important;
}

body.home-redesign .home-trio {
  grid-template-columns: minmax(260px, 0.95fr) minmax(360px, 1.45fr) minmax(260px, 0.95fr) !important;
  gap: clamp(16px, 1.6vw, 26px) !important;
}

body.home-redesign .home-highlights {
  grid-template-columns: minmax(360px, 1.2fr) minmax(300px, 0.9fr) minmax(360px, 1.15fr) !important;
  gap: clamp(16px, 1.6vw, 26px) !important;
}

body.home-redesign .resource-grid,
.resource-grid,
.charts-grid,
.stock-report-metrics {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

.filters,
.filtros,
.report-filters,
.margin-report-filters,
.stock-report-filters,
.video-form,
.banner-form,
#rhNoticeForm {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  align-items: end !important;
}

.filters .btn-primary,
.filtros .btn-primary,
.report-filters .btn-primary,
.margin-report-filters .btn-primary,
.stock-report-filters .btn-primary,
.video-form .btn-primary,
.banner-form .btn-primary,
#rhNoticeForm .btn-primary {
  width: 100%;
  min-width: 0 !important;
}

.table-wrap,
.margin-report-table-wrap,
.results-table-wrap,
.stock-report-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

table {
  min-width: 720px;
}

.video-admin-grid,
.calendar-alerts-grid,
.rh-notices-grid,
.users-cards,
.bio-admin-list {
  width: 100%;
}

.video-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

.calendar-alerts-grid,
.rh-notices-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

.user-card,
.user-access-row,
.bio-admin-card,
.quick-link-admin-card,
.video-admin-card,
.rh-notice-card,
.calendar-alert-card {
  min-width: 0 !important;
}

img,
video,
iframe,
.home-video-player {
  max-width: 100%;
}

@media (max-width: 1320px) {
  body.home-redesign .home-shortcuts {
    grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
  }

  body.home-redesign .home-trio,
  body.home-redesign .home-highlights {
    grid-template-columns: 1fr 1fr !important;
  }

  body.home-redesign .calendar-card,
  body.home-redesign .video-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .topbar,
  .main-header,
  body.home-redesign .topbar.topbar-home {
    width: calc(100% - 24px) !important;
    padding: 14px !important;
    align-items: stretch !important;
  }

  .topbar-brand,
  .main-header h1 {
    width: 100%;
  }

  .topbar-right,
  .topbar-home-right,
  .topbar .topbar-right {
    width: 100% !important;
    margin-left: 0 !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto auto;
    gap: 10px !important;
    align-items: center !important;
  }

  .topbar-search {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0 !important;
    order: initial !important;
  }

  .welcome-pill {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.home-redesign .home-shortcuts,
  body.home-redesign .home-trio,
  body.home-redesign .home-highlights,
  .home-duo,
  .resource-grid,
  .charts-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  .topbar,
  .main-header,
  body.home-redesign .topbar.topbar-home {
    width: calc(100% - 16px) !important;
    margin-top: 8px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    position: sticky;
    top: 6px;
  }

  .topbar-brand strong {
    font-size: 1rem !important;
  }

  .brand-mark,
  .calc-trigger-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  .topbar-right,
  .topbar-home-right,
  .topbar .topbar-right {
    grid-template-columns: 42px 1fr 76px !important;
  }

  .topbar-search {
    grid-column: 1 / -1 !important;
  }

  .topbar-search input {
    height: 44px !important;
    font-size: 16px !important;
  }

  .welcome-pill {
    font-size: 0.82rem !important;
    padding: 9px 10px !important;
  }

  #logoutBtn,
  .topbar .btn-ghost {
    min-height: 40px !important;
    padding: 8px 12px !important;
  }

  .page-main,
  .content-wrapper,
  body.home-redesign .page-main.home-main {
    padding: 12px 10px 26px !important;
  }

  body.home-redesign .home-hero,
  .home-hero,
  .banner-preview-hero {
    min-height: 360px !important;
    padding: 22px !important;
    align-items: end !important;
    border-radius: 22px !important;
    background-position: center !important;
  }

  body.home-redesign .home-hero.has-custom-banner,
  .banner-preview-hero.has-custom-banner {
    background-image:
      linear-gradient(180deg, rgba(3, 7, 18, 0.20) 0%, rgba(3, 7, 18, 0.78) 78%),
      var(--home-hero-banner-image) !important;
    background-size: cover, cover !important;
    background-position: center, center !important;
  }

  body.home-redesign .home-hero h1,
  .home-hero h1,
  .banner-preview-hero h1 {
    max-width: none !important;
    font-size: clamp(2.35rem, 13vw, 3.45rem) !important;
    line-height: 0.94 !important;
  }

  body.home-redesign .hero-subtitle,
  .hero-subtitle {
    font-size: 0.98rem !important;
    line-height: 1.45 !important;
  }

  body.home-redesign .home-shortcuts,
  body.home-redesign .home-trio,
  body.home-redesign .home-highlights,
  .home-duo,
  .resource-grid,
  .charts-grid,
  .stock-report-metrics,
  .calendar-alerts-grid,
  .rh-notices-grid,
  .video-admin-grid,
  .users-cards,
  .filters,
  .filtros,
  .report-filters,
  .margin-report-filters,
  .stock-report-filters,
  .video-form,
  .banner-form,
  #rhNoticeForm {
    grid-template-columns: 1fr !important;
  }

  body.home-redesign .shortcut-item,
  body.home-redesign .shortcut-button,
  .shortcut-item,
  .shortcut-button,
  .resource-item {
    min-height: 82px !important;
    padding: 14px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  .shortcut-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  .card,
  .home-list-card,
  .home-info-card,
  .chart-card,
  .preview-section,
  .maintenance-card,
  .banner-settings-card,
  .videos-settings-card,
  .video-form-shell,
  .sugestoes-lista-card,
  .sugestoes-filtros,
  .filters,
  .results-container,
  .calendar-panel {
    border-radius: 18px !important;
  }

  .home-list-card h3,
  .spotlight-card h3,
  .video-card h3,
  .card-header h2,
  .section-title,
  .main-header h1 {
    font-size: 1.08rem !important;
  }

  body.home-redesign .video-card .video-container,
  .video-container {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }

  body.home-redesign .video-card .video-player-wrapper,
  body.home-redesign .video-card .home-video-player,
  .video-player-wrapper,
  .home-video-player {
    height: auto !important;
    min-height: 210px !important;
    max-height: none !important;
    aspect-ratio: 16 / 9;
  }

  .spotlight-media,
  body.home-redesign .spotlight-media {
    min-height: 220px !important;
    margin: 12px !important;
  }

  .bio-admin-actions,
  .user-actions,
  .video-admin-actions,
  .calendar-alert-actions,
  .rh-notice-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .bio-admin-actions button,
  .user-actions button,
  .video-admin-actions button,
  .calendar-alert-actions button,
  .rh-notice-actions button {
    width: 100% !important;
  }

  .sidebar {
    width: min(88vw, 340px) !important;
    max-width: min(88vw, 340px) !important;
    padding: 18px !important;
  }

  .sidebar-tab {
    top: auto !important;
    bottom: 16px !important;
    left: 14px !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 18px !important;
    clip-path: none !important;
    transform: none !important;
    z-index: 120 !important;
    box-shadow: 0 16px 34px rgba(15, 55, 105, 0.24) !important;
  }

  .sidebar-tab:hover {
    transform: none !important;
  }

  body.sidebar-open .sidebar-tab {
    left: calc(min(88vw, 340px) - 26px) !important;
  }

  .sidebar-tab-icon {
    transform: none !important;
    font-size: 1rem !important;
  }

  .ti-modal {
    padding: 10px !important;
    align-items: flex-end !important;
  }

  .ti-modal-card,
  .ramais-card {
    width: 100% !important;
    max-height: 92vh !important;
    border-radius: 20px 20px 0 0 !important;
  }
}

@media (max-width: 420px) {
  .topbar-right,
  .topbar-home-right,
  .topbar .topbar-right {
    grid-template-columns: 40px 1fr 66px !important;
  }

  .welcome-pill {
    display: none !important;
  }

  body.home-redesign .home-hero,
  .home-hero,
  .banner-preview-hero {
    min-height: 320px !important;
  }

  body.home-redesign .home-hero h1,
  .home-hero h1,
  .banner-preview-hero h1 {
    font-size: clamp(2.05rem, 14vw, 3rem) !important;
  }

  .page-main,
  .content-wrapper,
  body.home-redesign .page-main.home-main {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* =========================================================
   Enfoque Intranet - camada interativa profissional
   Somente front-end: microinteracoes, mobile, modais, feedbacks
   ========================================================= */
:root {
  --enf-motion-fast: 160ms;
  --enf-motion-med: 260ms;
  --enf-ease: cubic-bezier(.2,.8,.2,1);
  --enf-focus: 0 0 0 4px rgba(55, 118, 255, .18);
}

body.enf-interactive-ready {
  scroll-behavior: smooth;
}

body.enf-interactive-ready .card,
body.enf-interactive-ready .shortcut-item,
body.enf-interactive-ready .home-list-card,
body.enf-interactive-ready .bio-admin-card,
body.enf-interactive-ready .stat-card,
body.enf-interactive-ready .video-card,
body.enf-interactive-ready .link-card,
body.enf-interactive-ready .report-card,
body.enf-interactive-ready .config-card {
  transition: transform var(--enf-motion-med) var(--enf-ease), box-shadow var(--enf-motion-med) var(--enf-ease), border-color var(--enf-motion-med) var(--enf-ease), background var(--enf-motion-med) var(--enf-ease);
  will-change: transform;
}

body.enf-interactive-ready .shortcut-item:hover,
body.enf-interactive-ready .home-list-card:hover,
body.enf-interactive-ready .bio-admin-card:hover,
body.enf-interactive-ready .video-card:hover,
body.enf-interactive-ready .link-card:hover,
body.enf-interactive-ready .config-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(24, 44, 82, .13) !important;
  border-color: rgba(59, 130, 246, .28) !important;
}

body.enf-interactive-ready .shortcut-icon,
body.enf-interactive-ready .brand-mark,
body.enf-interactive-ready .calc-trigger-btn svg {
  transition: transform var(--enf-motion-med) var(--enf-ease), filter var(--enf-motion-med) var(--enf-ease);
}

body.enf-interactive-ready .shortcut-item:hover .shortcut-icon,
body.enf-interactive-ready .topbar-brand:hover .brand-mark,
body.enf-interactive-ready .calc-trigger-btn:hover svg {
  transform: translateY(-1px) scale(1.035);
  filter: saturate(1.08);
}

body.enf-interactive-ready a:focus-visible,
body.enf-interactive-ready button:focus-visible,
body.enf-interactive-ready input:focus-visible,
body.enf-interactive-ready select:focus-visible,
body.enf-interactive-ready textarea:focus-visible {
  outline: none !important;
  box-shadow: var(--enf-focus) !important;
}

/* Busca do topo mais informativa */
.topbar-search {
  position: relative !important;
}
.topbar-search-results {
  display: grid;
  gap: 6px;
  position: absolute;
  z-index: 180;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  min-width: min(520px, calc(100vw - 28px));
  max-height: min(420px, 70vh);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar-search-results.hidden { display: none !important; }
.topbar-search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  text-decoration: none;
  color: #14213d;
  background: rgba(248, 250, 252, .78);
  border: 1px solid rgba(226, 232, 240, .86);
  transition: transform var(--enf-motion-fast) var(--enf-ease), background var(--enf-motion-fast), border-color var(--enf-motion-fast);
}
.topbar-search-result:hover {
  transform: translateX(2px);
  background: #eef5ff;
  border-color: rgba(59, 130, 246, .26);
}
.topbar-search-result small,
.topbar-search-empty {
  color: #64748b;
}

/* Drawer mobile mais claro */
.enf-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(15, 23, 42, .34);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--enf-motion-med) var(--enf-ease);
}
body.sidebar-open .enf-sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.sidebar .menu-item {
  position: relative;
}
.sidebar .menu-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%) scale(0);
  opacity: .55;
  transition: transform var(--enf-motion-fast) var(--enf-ease);
}
.sidebar .menu-item.active::before,
.sidebar .menu-item:hover::before {
  transform: translateY(-50%) scale(1);
}
.sidebar .menu-item.active,
.sidebar .menu-item:hover {
  padding-left: 28px !important;
}

/* Comunicados e modais */
.home-notice-item {
  cursor: default;
  position: relative;
}
.notice-category-pill,
.enf-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 9px;
  margin-bottom: 7px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #1d4ed8;
  background: #eaf2ff;
  border: 1px solid rgba(37, 99, 235, .18);
}
.notice-toggle-btn,
.rh-see-more,
.enf-inline-action {
  border: 1px solid rgba(37, 99, 235, .22) !important;
  background: #f8fbff !important;
  color: #1d4ed8 !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  font-weight: 800 !important;
  transition: transform var(--enf-motion-fast) var(--enf-ease), box-shadow var(--enf-motion-fast) var(--enf-ease), background var(--enf-motion-fast) !important;
}
.notice-toggle-btn:hover,
.rh-see-more:hover,
.enf-inline-action:hover {
  transform: translateY(-1px);
  background: #edf5ff !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
}
.enf-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 22px;
}
.enf-modal.hidden { display: none !important; }
.enf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.enf-modal-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(86vh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .88);
  box-shadow: 0 28px 90px rgba(15, 23, 42, .30);
  animation: enfModalIn var(--enf-motion-med) var(--enf-ease);
}
.enf-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.enf-modal-title { margin: 0; color: #0f172a; font-size: clamp(1.18rem, 2vw, 1.55rem); }
.enf-modal-meta { display: block; margin-top: 5px; color: #64748b; font-size: .88rem; }
.enf-modal-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.25rem;
  cursor: pointer;
}
.enf-modal-body {
  padding: 20px 24px 24px;
  overflow: auto;
  color: #334155;
  line-height: 1.65;
}
@keyframes enfModalIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Calendario: eventos e popup/tooltip */
.calendar-widget .cal-day.has-alert span::after,
.calendar-widget .cal-day.has-holiday span::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  margin: 2px auto 0;
  border-radius: 999px;
  background: #2563eb;
}
.calendar-widget .cal-day.has-holiday span::after { background: #f97316; }
.calendar-widget .cal-day.has-alert.has-holiday span::after {
  width: 18px;
  background: linear-gradient(90deg, #2563eb 0 46%, transparent 46% 54%, #f97316 54% 100%);
}
.calendar-widget .cal-day[data-tooltip]:not([data-tooltip=""]):hover::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: .76rem;
  line-height: 1.35;
  box-shadow: 0 14px 30px rgba(15,23,42,.22);
  pointer-events: none;
  white-space: normal;
}
.calendar-widget .cal-day { position: relative; }
.calendar-widget .cal-day[data-tooltip]::after { content: none !important; display: none !important; }
.calendar-floating-tooltip { position: fixed; z-index: 99999; padding: 9px 11px; border-radius: 12px; background: #0f172a; color: #fff; font-size: .76rem; line-height: 1.4; white-space: pre-line; pointer-events: none; opacity: 0; visibility: hidden; }
.calendar-floating-tooltip.is-visible { opacity: 1; visibility: visible; }

/* Feedback em botoes */
.enf-ripple {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(255,255,255,.58);
  pointer-events: none;
  z-index: 2147483647;
  animation: enfRipple .62s var(--enf-ease) forwards;
}
@keyframes enfRipple {
  to { opacity: 0; transform: translate(-50%, -50%) scale(9); }
}
button.enf-is-loading,
.btn.enf-is-loading,
.btn-primary.enf-is-loading {
  position: relative;
  pointer-events: none;
  opacity: .78;
}
button.enf-is-loading::after,
.btn.enf-is-loading::after,
.btn-primary.enf-is-loading::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  vertical-align: -2px;
  animation: enfSpin .75s linear infinite;
}
@keyframes enfSpin { to { transform: rotate(360deg); } }

/* Skeleton loading discreto */
.enf-skeleton,
.enf-skeleton-line,
.home-list-card li:has(span:only-child):has(span:not(:empty)) {
  border-radius: 12px;
}
.enf-skeleton-line {
  display: block;
  height: 14px;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 240% 100%;
  animation: enfSkeleton 1.15s ease-in-out infinite;
}
@keyframes enfSkeleton { to { background-position: -240% 0; } }

/* Tabelas virando cards no celular */
@media (max-width: 760px) {
  table.enf-responsive-table,
  table.enf-responsive-table thead,
  table.enf-responsive-table tbody,
  table.enf-responsive-table tr,
  table.enf-responsive-table th,
  table.enf-responsive-table td {
    display: block !important;
    width: 100% !important;
  }
  table.enf-responsive-table thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }
  table.enf-responsive-table tr {
    margin: 0 0 12px !important;
    padding: 12px !important;
    border: 1px solid rgba(203, 213, 225, .82) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07) !important;
  }
  table.enf-responsive-table td {
    display: grid !important;
    grid-template-columns: minmax(110px, 42%) 1fr !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 4px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(226, 232, 240, .8) !important;
    text-align: right !important;
  }
  table.enf-responsive-table td:last-child { border-bottom: 0 !important; }
  table.enf-responsive-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-weight: 800;
    text-align: left;
  }
}

/* Modo compacto */
.enf-compact-toggle {
  white-space: nowrap;
}
body.enf-compact-density .card,
body.enf-compact-density .home-list-card,
body.enf-compact-density .shortcut-item,
body.enf-compact-density .bio-admin-card {
  border-radius: 18px !important;
}
body.enf-compact-density .page-main,
body.enf-compact-density .content-wrapper,
body.enf-compact-density body.home-redesign .page-main.home-main {
  gap: 12px !important;
}
body.enf-compact-density .home-shortcuts {
  gap: 10px !important;
}
body.enf-compact-density .shortcut-item {
  min-height: 82px !important;
  padding: 14px !important;
}
body.enf-compact-density .home-list-card,
body.enf-compact-density .card {
  padding: 16px !important;
}
body.enf-compact-density .home-hero {
  min-height: 300px !important;
}

/* Entrada suave dos blocos */
.enf-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 480ms var(--enf-ease), transform 480ms var(--enf-ease);
}
.enf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navegacao inferior mobile */
.enf-mobile-nav {
  position: fixed;
  z-index: 130;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(203, 213, 225, .78);
  box-shadow: 0 18px 50px rgba(15,23,42,.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.enf-mobile-nav a,
.enf-mobile-nav button {
  min-width: 0;
  border: 0;
  border-radius: 17px;
  padding: 9px 6px;
  background: transparent;
  color: #334155;
  font-size: .72rem;
  font-weight: 850;
  text-decoration: none;
  text-align: center;
}
.enf-mobile-nav a.active,
.enf-mobile-nav button.active {
  background: #eef5ff;
  color: #1d4ed8;
}
.enf-back-to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 120;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 16px 36px rgba(37,99,235,.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--enf-motion-med), transform var(--enf-motion-med);
}
.enf-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 760px) {
  body { padding-bottom: 84px !important; }
  .enf-mobile-nav { display: grid; }
  .enf-back-to-top { bottom: 94px; right: 14px; }
  .topbar-search-results {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 78px;
    min-width: 0;
  }
  .enf-modal {
    align-items: end;
    padding: 10px;
  }
  .enf-modal-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 14px 14px;
  }
  .enf-modal-header,
  .enf-modal-body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .calendar-widget .cal-day[data-tooltip]:hover::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.enf-interactive-ready .card,
  body.enf-interactive-ready .shortcut-item,
  body.enf-interactive-ready .home-list-card,
  body.enf-interactive-ready .bio-admin-card,
  .enf-reveal,
  .enf-modal-card,
  .enf-ripple {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ===== Correção: menu lateral sem overlay/blur no desktop =====
   Mantém o drawer com fundo escuro apenas em telas de celular/tablet.
*/
@media (min-width: 761px) {
  .enf-sidebar-backdrop,
  body.sidebar-open .enf-sidebar-backdrop {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .sidebar.is-open,
  .app-container .sidebar.is-open,
  .app-container .sidebar.open {
    box-shadow: 18px 0 45px rgba(27, 75, 128, 0.12) !important;
  }

  body.sidebar-open .app-container,
  body.sidebar-open .main-content,
  body.sidebar-open .topbar,
  body.sidebar-open .hero,
  body.sidebar-open .home-grid,
  body.sidebar-open .shortcut-grid,
  body.sidebar-open main {
    filter: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 760px) {
  body.sidebar-open .enf-sidebar-backdrop {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .sidebar.is-open,
  .app-container .sidebar.is-open,
  .app-container .sidebar.open {
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.10), 18px 0 45px rgba(27, 75, 128, 0.16) !important;
  }
}

/* ===== Hotfix Marcelo: sidebar mobile acima do overlay e longe da barra inferior =====
   Corrige: botao da sidebar atras da navegacao inferior e drawer mobile com efeito de blur/overlay pesado.
*/
@media (max-width: 760px) {
  .enf-mobile-nav {
    z-index: 120 !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }

  .enf-back-to-top {
    z-index: 125 !important;
  }

  .enf-sidebar-backdrop,
  body.sidebar-open .enf-sidebar-backdrop {
    z-index: 150 !important;
    background: rgba(15, 23, 42, 0.22) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .sidebar,
  .app-container .sidebar {
    z-index: 170 !important;
  }

  .sidebar.is-open,
  .app-container .sidebar.is-open,
  .app-container .sidebar.open {
    box-shadow: 18px 0 45px rgba(15, 23, 42, 0.20) !important;
  }

  .sidebar-tab {
    z-index: 190 !important;
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    left: 14px !important;
  }

  body.sidebar-open .sidebar-tab {
    left: calc(min(88vw, 340px) - 26px) !important;
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }

  body.sidebar-open .app-container,
  body.sidebar-open .main-content,
  body.sidebar-open .topbar,
  body.sidebar-open .hero,
  body.sidebar-open .home-grid,
  body.sidebar-open .shortcut-grid,
  body.sidebar-open main {
    filter: none !important;
    opacity: 1 !important;
  }
}

/* ===== Marcelo: revisao completa do mobile (somente visual/front) =====
   Objetivo: estabilizar celular sem alterar funcoes, dados, cards, banners ou videos.
   Mantem desktop praticamente intacto e sobrescreve apenas regras mobile problemáticas.
*/
.enf-sidebar-backdrop {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

@media (max-width: 760px) {
  :root {
    --mobile-page-x: 12px;
    --mobile-bottom-nav-height: 74px;
    --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
    --sidebar-width: min(86vw, 330px) !important;
  }

  html,
  body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    scroll-padding-top: 92px;
  }

  body {
    padding: 0 0 calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 22px) !important;
    background: linear-gradient(180deg, #f2f7fd 0%, #f8fbff 100%) !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.sidebar-open {
    overflow: hidden !important;
    touch-action: none;
  }

  body.sidebar-open .app-container,
  body.sidebar-open .layout,
  body.sidebar-open .main-content,
  body.sidebar-open .content-wrap,
  body.sidebar-open .page-main,
  body.sidebar-open .topbar,
  body.sidebar-open main {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .layout,
  .app-container,
  .content-wrap,
  .app-container .main-content,
  .main-content,
  main,
  .page-main,
  .content-wrapper,
  body.home-redesign .page-main.home-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-main,
  .content-wrapper,
  body.home-redesign .page-main.home-main {
    padding: 12px var(--mobile-page-x) 18px !important;
    gap: 14px !important;
  }

  .topbar,
  .main-header,
  body.home-redesign .topbar.topbar-home {
    position: sticky !important;
    top: 6px !important;
    z-index: 80 !important;
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin: 8px auto 0 !important;
    padding: 10px !important;
    border-radius: 18px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: stretch !important;
    box-shadow: 0 12px 32px rgba(15, 45, 86, 0.16) !important;
  }

  .topbar-brand,
  .brand,
  .main-header h1 {
    min-width: 0 !important;
    width: 100% !important;
  }

  .topbar-brand strong,
  .brand strong {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 0.98rem !important;
  }

  .topbar-right,
  .topbar-home-right,
  .topbar .topbar-right {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .topbar-search {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    order: -1 !important;
  }

  .topbar-search input,
  input[type="search"] {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
  }

  .calc-trigger-btn,
  .brand-mark {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 14px !important;
  }

  .welcome-pill,
  .user-pill,
  .role-pill {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding: 9px 10px !important;
    font-size: 0.78rem !important;
  }

  #logoutBtn,
  .topbar .btn-ghost,
  .btn-ghost.enf-compact-toggle {
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .btn-ghost.enf-compact-toggle {
    display: none !important;
  }

  .topbar-search-results {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 76px !important;
    width: auto !important;
    min-width: 0 !important;
    max-height: min(60vh, 420px) !important;
    overflow: auto !important;
    z-index: 5000 !important;
    border-radius: 18px !important;
  }

  body.home-redesign .home-hero,
  .home-hero,
  .banner-preview-hero {
    width: 100% !important;
    min-height: 315px !important;
    max-height: none !important;
    padding: 20px !important;
    border-radius: 22px !important;
    display: flex !important;
    align-items: flex-end !important;
    overflow: hidden !important;
    box-shadow: 0 14px 36px rgba(15, 45, 86, 0.14) !important;
  }

  body.home-redesign .home-hero.has-custom-banner,
  .banner-preview-hero.has-custom-banner {
    background-image:
      linear-gradient(180deg, rgba(3, 7, 18, 0.06) 0%, rgba(3, 7, 18, 0.82) 82%),
      var(--home-hero-banner-image) !important;
    background-position: center !important;
    background-size: cover !important;
  }

  body.home-redesign .hero-overlay,
  .hero-overlay,
  .banner-preview-hero .hero-overlay {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.home-redesign .home-hero h1,
  .home-hero h1,
  .banner-preview-hero h1 {
    max-width: 12ch !important;
    font-size: clamp(2.15rem, 13vw, 3.25rem) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.055em !important;
  }

  body.home-redesign .hero-subtitle,
  .hero-subtitle {
    max-width: 100% !important;
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }

  body.home-redesign .home-shortcuts,
  body.home-redesign .home-trio,
  body.home-redesign .home-highlights,
  .home-duo,
  .resource-grid,
  .charts-grid,
  .stock-report-metrics,
  .calendar-alerts-grid,
  .rh-notices-grid,
  .video-admin-grid,
  .users-cards,
  .bio-admin-list,
  .quick-links-admin-list,
  .links-admin-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .card,
  .home-list-card,
  .home-info-card,
  .chart-card,
  .preview-section,
  .maintenance-card,
  .banner-settings-card,
  .videos-settings-card,
  .video-form-shell,
  .sugestoes-lista-card,
  .sugestoes-filtros,
  .filters,
  .results-container,
  .calendar-panel,
  .user-card,
  .bio-admin-card,
  .quick-link-admin-card,
  .video-admin-card,
  .rh-notice-card,
  .calendar-alert-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-radius: 18px !important;
    padding: 14px !important;
    box-shadow: 0 10px 26px rgba(15, 45, 86, 0.08) !important;
  }

  .home-list-card h3,
  .spotlight-card h3,
  .video-card h3,
  .card-header h2,
  .section-title,
  .main-header h1,
  .page-title {
    font-size: 1.08rem !important;
    line-height: 1.2 !important;
  }

  body.home-redesign .shortcut-item,
  body.home-redesign .shortcut-button,
  .shortcut-item,
  .shortcut-button,
  .resource-item {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 78px !important;
    padding: 13px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    text-align: left !important;
    border-radius: 18px !important;
  }

  .shortcut-icon,
  .resource-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 14px !important;
  }

  .filters,
  .filtros,
  .report-filters,
  .margin-report-filters,
  .stock-report-filters,
  .video-form,
  .banner-form,
  #rhNoticeForm,
  form:not(.login-form) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 11px !important;
    width: 100% !important;
  }

  input,
  select,
  textarea,
  button,
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-danger {
    max-width: 100% !important;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .menu-button,
  button[type="submit"] {
    min-height: 44px !important;
    border-radius: 14px !important;
  }

  .bio-admin-actions,
  .user-actions,
  .video-admin-actions,
  .calendar-alert-actions,
  .rh-notice-actions,
  .form-actions,
  .actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .bio-admin-actions button,
  .user-actions button,
  .video-admin-actions button,
  .calendar-alert-actions button,
  .rh-notice-actions button,
  .form-actions button,
  .actions button {
    width: 100% !important;
  }

  .table-wrap,
  .margin-report-table-wrap,
  .results-table-wrap,
  .stock-report-table-wrap,
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 18px !important;
  }

  table:not(.enf-responsive-table) {
    min-width: 640px !important;
  }

  table.enf-responsive-table td {
    grid-template-columns: minmax(96px, 38%) minmax(0, 1fr) !important;
    gap: 10px !important;
    text-align: right !important;
    overflow-wrap: anywhere !important;
  }

  .video-container,
  body.home-redesign .video-card .video-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 10px !important;
    gap: 12px !important;
  }

  .video-player-wrapper,
  .home-video-player,
  body.home-redesign .video-card .video-player-wrapper,
  body.home-redesign .video-card .home-video-player,
  iframe,
  video {
    width: 100% !important;
    height: auto !important;
    min-height: 190px !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 16px !important;
  }

  .calendar-widget,
  .calendar-grid,
  .calendar-panel {
    width: 100% !important;
    min-width: 0 !important;
  }

  .calendar-widget .cal-day,
  .calendar-grid button,
  .calendar-grid .day {
    min-width: 0 !important;
    min-height: 38px !important;
    border-radius: 11px !important;
  }

  .enf-mobile-nav {
    display: grid !important;
    left: 8px !important;
    right: 8px !important;
    bottom: max(8px, var(--mobile-safe-bottom)) !important;
    z-index: 1200 !important;
    min-height: 58px !important;
    padding: 7px !important;
    border-radius: 22px !important;
  }

  .enf-mobile-nav a,
  .enf-mobile-nav button {
    min-height: 42px !important;
    display: grid !important;
    place-items: center !important;
    padding: 7px 4px !important;
    border-radius: 16px !important;
    line-height: 1.05 !important;
  }

  .enf-back-to-top {
    right: 12px !important;
    bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 18px) !important;
    z-index: 1210 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 15px !important;
  }

  /* Sidebar mobile: drawer real, sem blur permanente e sem empurrar layout. */
  .enf-sidebar-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2000 !important;
    background: rgba(15, 23, 42, 0.30) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: opacity 180ms ease, visibility 180ms ease !important;
  }

  body.sidebar-open .enf-sidebar-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .sidebar,
  .app-container .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: var(--sidebar-width) !important;
    max-width: var(--sidebar-width) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 18px 16px calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 20px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease !important;
    z-index: 2010 !important;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%) !important;
    border-right: 1px solid rgba(189, 212, 238, 0.95) !important;
    box-shadow: none !important;
  }

  .sidebar.is-open,
  .app-container .sidebar.is-open,
  .app-container .sidebar.open {
    transform: translate3d(0, 0, 0) !important;
    box-shadow: 18px 0 48px rgba(15, 23, 42, 0.22) !important;
  }

  .sidebar-header {
    position: sticky !important;
    top: -18px !important;
    z-index: 1 !important;
    margin: -18px -16px 14px !important;
    padding: 18px 16px 14px !important;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.94) 100%) !important;
    border-bottom: 1px solid rgba(208, 224, 244, 0.9) !important;
  }

  .sidebar-header h2,
  .app-container .sidebar-header h2 {
    font-size: 1.06rem !important;
    line-height: 1.2 !important;
  }

  .sidebar nav,
  .sidebar-nav,
  .sidebar .menu-section {
    width: 100% !important;
    min-width: 0 !important;
  }

  .sidebar nav ul,
  .sidebar-nav ul,
  .sidebar ul {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .sidebar .menu-item,
  .app-container .sidebar-nav a,
  .sidebar a {
    width: 100% !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 12px !important;
    border-radius: 14px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .sidebar .menu-item:hover,
  .sidebar .menu-item.active,
  .app-container .sidebar-nav a:hover,
  .app-container .sidebar-nav a.active {
    padding-left: 12px !important;
  }

  .sidebar .menu-item::before {
    display: none !important;
  }

  .sidebar-close-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
    clip-path: none !important;
    z-index: 3 !important;
  }

  .sidebar-tab {
    position: fixed !important;
    top: auto !important;
    left: 12px !important;
    right: auto !important;
    bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 18px) !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 18px !important;
    clip-path: none !important;
    transform: none !important;
    z-index: 2020 !important;
    display: grid !important;
    place-items: center !important;
    background: linear-gradient(180deg, #ffffff, #eaf5ff) !important;
    box-shadow: 0 14px 34px rgba(15, 55, 105, 0.24) !important;
  }

  .sidebar-tab:hover,
  .sidebar-tab:focus-visible {
    transform: none !important;
  }

  body.sidebar-open .sidebar-tab {
    left: calc(var(--sidebar-width) - 28px) !important;
    bottom: calc(var(--mobile-bottom-nav-height) + var(--mobile-safe-bottom) + 18px) !important;
  }

  .sidebar-tab-icon {
    transform: none !important;
    font-size: 1rem !important;
    line-height: 1 !important;
  }

  .enf-modal {
    align-items: end !important;
    padding: 8px !important;
    z-index: 10000 !important;
  }

  .enf-modal-card,
  .ti-modal-card,
  .ramais-card {
    width: 100% !important;
    max-height: 90dvh !important;
    border-radius: 24px 24px 14px 14px !important;
  }

  .enf-modal-header,
  .enf-modal-body {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 420px) {
  :root {
    --mobile-page-x: 10px;
    --sidebar-width: min(88vw, 318px) !important;
  }

  .topbar-right,
  .topbar-home-right,
  .topbar .topbar-right {
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
  }

  .welcome-pill,
  .user-pill,
  .role-pill {
    font-size: 0.72rem !important;
  }

  body.home-redesign .home-hero,
  .home-hero,
  .banner-preview-hero {
    min-height: 290px !important;
    padding: 18px !important;
  }

  body.home-redesign .home-hero h1,
  .home-hero h1,
  .banner-preview-hero h1 {
    font-size: clamp(2rem, 13.5vw, 2.85rem) !important;
  }

  .enf-mobile-nav a,
  .enf-mobile-nav button {
    font-size: 0.68rem !important;
  }
}

/* ===== Hotfix Marcelo: sidebar mobile clicavel e clara =====
   Corrige o drawer no celular quando o backdrop ficava por cima do menu,
   deixando a sidebar escura e bloqueando cliques.
*/
@media (max-width: 760px) {
  body.sidebar-open .enf-sidebar-backdrop {
    left: var(--sidebar-width) !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    z-index: 900 !important;
    background: rgba(15, 23, 42, 0.16) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .enf-sidebar-backdrop {
    z-index: 900 !important;
  }

  .sidebar,
  .app-container .sidebar,
  body.sidebar-open .sidebar,
  body.sidebar-open .app-container .sidebar,
  .sidebar.is-open,
  .app-container .sidebar.is-open,
  .app-container .sidebar.open,
  body.sidebar-open .sidebar.is-open,
  body.sidebar-open .app-container .sidebar.is-open,
  body.sidebar-open .app-container .sidebar.open {
    z-index: 3000 !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto !important;
    background: #ffffff !important;
    color: #15223a !important;
    transform: translate3d(0, 0, 0) !important;
  }

  body:not(.sidebar-open) .sidebar:not(.is-open):not(.open),
  body:not(.sidebar-open) .app-container .sidebar:not(.is-open):not(.open) {
    transform: translate3d(-105%, 0, 0) !important;
    pointer-events: none !important;
  }

  body.sidebar-open .sidebar *,
  body.sidebar-open .app-container .sidebar * {
    pointer-events: auto !important;
    opacity: 1 !important;
    filter: none !important;
  }

  body.sidebar-open .sidebar a,
  body.sidebar-open .sidebar button,
  body.sidebar-open .sidebar .menu-item,
  body.sidebar-open .app-container .sidebar a,
  body.sidebar-open .app-container .sidebar button,
  body.sidebar-open .app-container .sidebar .menu-item {
    color: #15223a !important;
    background: transparent !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
  }

  body.sidebar-open .sidebar a:hover,
  body.sidebar-open .sidebar a:focus-visible,
  body.sidebar-open .sidebar button:hover,
  body.sidebar-open .sidebar button:focus-visible,
  body.sidebar-open .sidebar .menu-item:hover,
  body.sidebar-open .sidebar .menu-item:focus-visible,
  body.sidebar-open .sidebar .menu-item.active,
  body.sidebar-open .app-container .sidebar-nav a:hover,
  body.sidebar-open .app-container .sidebar-nav a:focus-visible,
  body.sidebar-open .app-container .sidebar-nav a.active {
    background: #eaf3ff !important;
    color: #1d4ed8 !important;
  }

  .sidebar-tab,
  body.sidebar-open .sidebar-tab {
    z-index: 3010 !important;
    pointer-events: auto !important;
  }
}

/* ===== Marcelo hotfix: mobile sem menu inferior + permissões reais na sidebar ===== */
.hidden,
[hidden],
.sidebar .hidden,
.sidebar [hidden],
.sidebar .menu-item.hidden,
.sidebar .menu-toggle.hidden,
.sidebar a.hidden,
.sidebar button.hidden,
#toggleRelatorios.hidden,
#toggleConfiguracoes.hidden,
#menuDatas.hidden,
#menuLinkBio.hidden,
#menuQuickLinks.hidden,
#menuBanner.hidden,
#menuDestaques.hidden,
#menuVideos.hidden,
#menuRh.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Remove definitivamente o mini menu inferior criado na versão interativa. */
.enf-mobile-nav,
#enfMobileNav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 860px) {
  :root {
    --mobile-bottom-nav-height: 0px !important;
  }

  html,
  body {
    overflow-x: hidden !important;
  }

  body,
  body.home-redesign,
  .app-container,
  .main-content {
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .enf-sidebar-backdrop {
    z-index: 1900 !important;
    background: rgba(15, 23, 42, 0.24) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .sidebar,
  .app-container .sidebar {
    z-index: 2100 !important;
    background: #ffffff !important;
    color: #12213a !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    pointer-events: auto !important;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .sidebar.is-open,
  .app-container .sidebar.is-open,
  .app-container .sidebar.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .sidebar *,
  .app-container .sidebar * {
    filter: none !important;
    -webkit-filter: none !important;
  }

  .sidebar a:not(.hidden),
  .sidebar button:not(.hidden),
  .sidebar .menu-item:not(.hidden),
  .app-container .sidebar a:not(.hidden),
  .app-container .sidebar button:not(.hidden) {
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .sidebar .menu-item.hidden,
  .sidebar .menu-toggle.hidden,
  .sidebar a.hidden,
  .sidebar button.hidden,
  .sidebar [hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .sidebar-tab {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 2110 !important;
  }

  body.sidebar-open .sidebar-tab {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .enf-back-to-top {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Ajuste fino do relatorio de estoque: centralizacao dos grupos e grade leve */
.stock-report-table thead tr:first-child th {
  text-align: center !important;
  vertical-align: middle;
}

.stock-report-table thead tr:nth-child(2) th {
  text-align: center;
  vertical-align: middle;
}

.stock-report-table th,
.stock-report-table td {
  border-bottom: 1px solid #e4edf7;
}

.stock-report-table th:not(:last-child),
.stock-report-table td:not(:last-child) {
  border-right: 1px solid #e8f0f8;
}

.stock-report-table tbody td {
  vertical-align: middle;
}

.stock-report-table tbody tr:last-child td {
  border-bottom: 0;
}

.stock-report-table thead tr:first-child th:not(:last-child),
.stock-report-table thead tr:nth-child(2) th:nth-child(6),
.stock-report-table tbody td:nth-child(6),
.stock-report-table thead tr:nth-child(2) th:nth-child(9),
.stock-report-table tbody td:nth-child(9) {
  border-right: 2px solid #cbdff3;
}

/* Monitor VPN Boss */
.vpn-monitor-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  min-width: auto;
}

.vpn-monitor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d9488, #2563eb);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.vpn-monitor-label {
  font-weight: 800;
}

.vpn-monitor-page {
  display: grid;
  gap: 1rem;
}

.vpn-monitor-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.1)), #fff;
}

.vpn-monitor-hero h1 {
  margin-bottom: 0.35rem;
}

.section-eyebrow {
  margin: 0 0 0.35rem;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vpn-updated-at {
  margin: 0.6rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.vpn-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

.vpn-stat-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.vpn-stat-card span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.vpn-stat-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1;
}

.vpn-monitor-card {
  overflow: hidden;
}

.vpn-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vpn-card-head h2 {
  margin: 0 0 0.25rem;
}

.vpn-filters {
  align-items: end;
  grid-template-columns: minmax(220px, 1fr) 150px 150px;
  margin: 0;
}

.vpn-filters.compact {
  grid-template-columns: 150px 150px;
}

.vpn-table-wrap {
  max-height: 68vh;
}

.vpn-table td small {
  display: block;
  margin-top: 0.2rem;
  color: #94a3b8;
  font-size: 0.72rem;
  word-break: break-all;
}

.vpn-type-pill,
.vpn-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.vpn-type-pill {
  background: #eff6ff;
  color: #1d4ed8;
}

.vpn-status-pill.is-online {
  background: #dcfce7;
  color: #166534;
}

.vpn-status-pill.is-offline {
  background: #fee2e2;
  color: #991b1b;
}

.vpn-history-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  gap: 1rem;
}

.vpn-history-panel {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  padding: 1rem;
  background: #f8fafc;
}

.vpn-history-panel h3 {
  margin-top: 0;
}

.vpn-ranking-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vpn-ranking-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  border-radius: 16px;
  padding: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.vpn-ranking-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
}

.vpn-ranking-item small {
  display: block;
  color: #64748b;
  margin-top: 0.15rem;
}

.vpn-ranking-empty {
  color: #64748b;
}

.vpn-history-chart {
  display: flex;
  align-items: end;
  gap: 5px;
  min-height: 260px;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.7), rgba(255, 255, 255, 0.95));
}

.vpn-chart-bar {
  flex: 1;
  min-width: 6px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #2563eb, #14b8a6);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

@media (max-width: 1180px) {
  .vpn-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vpn-card-head,
  .vpn-monitor-hero,
  .vpn-history-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .vpn-filters,
  .vpn-filters.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .vpn-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vpn-monitor-label {
    display: none;
  }

  .vpn-monitor-icon {
    width: 30px;
    height: 30px;
  }
}

/* Relatorio comparativo de despesas financeiras */
.expense-report-page {
  display: grid;
  gap: 18px;
}

.expense-report-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.expense-actions,
.table-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.expense-filter-card {
  overflow: visible;
  z-index: 80;
  contain: none;
  content-visibility: visible;
}

.expense-filters {
  align-items: end;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.report-loading-inline {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
}

.expense-summary-grid,
.expense-ranking-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.expense-summary-card {
  display: grid;
  gap: 8px;
}

.expense-summary-card span {
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
}

.expense-summary-card span small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: none;
}

.expense-summary-card strong {
  font-size: clamp(1.35rem, 2vw, 2rem);
  color: #0f172a;
}

.expense-summary-card em {
  color: #475569;
  font-style: normal;
  font-weight: 700;
}

.expense-chart-card h2,
.expense-ranking-card h2 {
  margin-top: 0;
}

.expense-chart-bars {
  display: grid;
  gap: 12px;
}

.expense-bar-row {
  display: grid;
  grid-template-columns: 110px minmax(120px, 1fr) 150px;
  align-items: center;
  gap: 12px;
}

.expense-bar-label {
  color: #475569;
  font-weight: 700;
}

.expense-bar-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.expense-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.expense-ranking-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.expense-ranking-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.expense-ranking-list li:last-child {
  border-bottom: 0;
}

.expense-ranking-list span,
.expense-ranking-list strong,
.expense-ranking-list small {
  display: block;
}

.expense-ranking-list span {
  color: #0f172a;
  font-weight: 700;
}

.expense-ranking-list small {
  color: #64748b;
}

.expense-table-wrap {
  overflow: auto;
  max-height: 70vh;
}

.expense-table-wrap table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #f8fafc;
  box-shadow: 0 1px 0 #dbe4ee;
}

.expense-table-separator-left {
  border-left: 2px solid #cbd5e1 !important;
}

.expense-table-wrap table th button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.positive {
  color: #b42318;
  font-weight: 800;
}

.negative {
  color: #047857;
  font-weight: 800;
}

.equal {
  color: #b45309;
  font-weight: 800;
}

.expense-filters label {
  position: relative;
}

.expense-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  max-height: min(360px, 55vh);
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  padding: 6px;
}

.expense-autocomplete button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 0.92rem;
  padding: 9px 10px;
  text-align: left;
}

.expense-autocomplete button:hover,
.expense-autocomplete button:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.empty-state {
  padding: 22px !important;
  color: #64748b;
  text-align: center;
}

@media (max-width: 1100px) {
  .expense-summary-grid,
  .expense-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .expense-report-hero,
  .expense-actions {
    display: grid;
    width: 100%;
  }

  .expense-summary-grid,
  .expense-ranking-grid {
    grid-template-columns: 1fr;
  }

  .expense-bar-row {
    grid-template-columns: 1fr;
  }
}

@media print {
  .sidebar,
  .topbar,
  .expense-filters,
  .expense-actions,
  .sidebar-tab,
  #expenseReportFeedback,
  #expenseReportLoading {
    display: none !important;
  }

  .content-wrap,
  .page-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
}

/* Ajustes finais - relatorio comparativo de despesas */
.expense-table-wrap table {
  font-size: 0.82rem;
}

.expense-table-wrap table th,
.expense-table-wrap table td {
  vertical-align: middle;
}

.expense-table-wrap table th:first-child,
.expense-table-wrap table td:first-child {
  text-align: left;
}

.expense-table-wrap table th:not(:first-child),
.expense-table-wrap table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.expense-table-wrap table th button {
  display: inline-flex;
  justify-content: inherit;
  text-align: inherit;
}

.expense-table-wrap table th:not(:first-child) button {
  justify-content: flex-end;
  width: 100%;
}

.expense-table-wrap table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: #f8fafc;
  border-top: 2px solid #cbd5e1;
  color: #0f172a;
  font-weight: 900;
  box-shadow: 0 -1px 0 #dbe4ee;
}

.equal {
  color: #eab308;
  font-weight: 800;
}

.not-applicable {
  color: #0f172a;
  font-weight: 700;
}


/* Ajustes finais: cores neutras e filtro direto na tabela */
.equal,
.not-applicable {
  color: inherit;
  font-weight: inherit;
}

.expense-table-actions {
  align-items: end;
}

.expense-table-filter {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.expense-table-filter select {
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  padding: 0 12px;
}

@media (max-width: 760px) {
  .expense-table-filter {
    width: 100%;
  }
}


/* Hotfix: relatorio de despesas nao deve cobrir o menu lateral aberto */
.sidebar,
.app-container .sidebar {
  z-index: 1200 !important;
}

.enf-sidebar-backdrop {
  z-index: 1190 !important;
}

.expense-filter-card {
  position: relative;
  z-index: 30;
}

.expense-autocomplete {
  z-index: 1100;
}

/* Hotfix final: sidebar acima de qualquer card/filtro do relatorio de despesas */
body.sidebar-open .sidebar,
body.sidebar-open .sidebar.is-open,
body.sidebar-open .app-container .sidebar,
body.sidebar-open .app-container .sidebar.is-open,
body.sidebar-open .app-container .sidebar.open {
  position: fixed !important;
  z-index: 2147483000 !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate !important;
  background: linear-gradient(165deg, #f0f7ff, #dce9f6) !important;
}

body.sidebar-open .sidebar-tab {
  z-index: 2147483001 !important;
}

body.sidebar-open .enf-sidebar-backdrop {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  z-index: 2147482990 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  background: rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.sidebar-open .content-wrap,
body.sidebar-open .page-main,
body.sidebar-open main,
body.sidebar-open .topbar,
body.sidebar-open .expense-report-page,
body.sidebar-open .expense-filter-card,
body.sidebar-open .expense-filters,
body.sidebar-open .expense-autocomplete {
  z-index: 1 !important;
}

body.sidebar-open .expense-filter-card,
body.sidebar-open .expense-filters,
body.sidebar-open .expense-autocomplete {
  position: relative !important;
}

/* Hotfix: sidebar clicavel e sem escurecer o menu */
body.sidebar-open .enf-sidebar-backdrop,
body.menu-open .enf-sidebar-backdrop,
body.sidebar-expanded .enf-sidebar-backdrop {
  z-index: 900 !important;
  pointer-events: none !important;
  background: transparent !important;
  opacity: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.sidebar-open .sidebar,
body.menu-open .sidebar,
body.sidebar-expanded .sidebar,
body.sidebar-open .app-container .sidebar,
body.menu-open .app-container .sidebar,
body.sidebar-expanded .app-container .sidebar {
  z-index: 5000 !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.sidebar-open .sidebar *,
body.menu-open .sidebar *,
body.sidebar-expanded .sidebar * {
  pointer-events: auto !important;
}

body.sidebar-open .expense-filter-card,
body.sidebar-open .expense-filters,
body.sidebar-open .expense-autocomplete,
body.menu-open .expense-filter-card,
body.menu-open .expense-filters,
body.menu-open .expense-autocomplete {
  z-index: 10 !important;
}


/* Portal de relatórios */
.reports-shortcut-icon {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: .04em;
}

.reports-shortcut-icon-img {
  width: 24px;
  height: 24px;
  display: block;
}

.reports-portal-modal {
  z-index: 10020 !important;
}

.reports-portal-card {
  width: min(94vw, 900px) !important;
  max-height: min(92vh, 760px) !important;
  overflow: hidden !important;
}

.reports-portal-header {
  align-items: flex-start !important;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, .28);
}

.reports-portal-eyebrow {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reports-portal-subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: .94rem;
  line-height: 1.45;
}

.reports-honeycomb-wrap {
  padding: 28px 24px 34px;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.reports-honeycomb-grid {
  --hex-size: 148px;
  --hex-height: 130px;
  position: relative;
  width: min(100%, 620px);
  max-width: 100%;
  min-height: 320px;
}

.reports-hex {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--hex-size);
  height: var(--hex-height);
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
  transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0) scale(1);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
  isolation: isolate;
}

.reports-hex::before {
  content: "";
  position: absolute;
  inset: 7px;
  clip-path: inherit;
  border: 1px solid rgba(255, 255, 255, .34);
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0));
  z-index: -1;
}

.reports-hex::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.18), transparent 55%);
  opacity: .65;
  z-index: -1;
}

.reports-hex:hover,
.reports-hex:focus-visible {
  transform: translate3d(var(--hx, 0px), calc(var(--hy, 0px) - 8px), 0) scale(1.08);
  box-shadow: 0 26px 56px rgba(37, 99, 235, .34), 0 0 0 4px rgba(147, 197, 253, .38);
  filter: brightness(1.06) saturate(1.08);
  outline: none;
  z-index: 3;
}

.reports-hex-inner {
  width: 84%;
  min-height: 74%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  text-align: center;
}

.reports-hex-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.reports-hex-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.reports-hex-title {
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 1px 4px rgba(15, 23, 42, .28);
}

.reports-hex-description {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: .71rem;
  font-weight: 600;
  line-height: 1.2;
  transition: max-height .22s ease, opacity .22s ease;
}

.reports-hex:hover .reports-hex-description,
.reports-hex:focus-visible .reports-hex-description {
  max-height: 100px;
  opacity: 1;
}

/* DriftWall da Central de Relatórios */
.reports-portal-card {
  width: min(96vw, 1180px) !important;
  max-height: min(94vh, 820px) !important;
}

.reports-drift-wrap {
  position: relative;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(59, 130, 246, .12), transparent 48%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.reports-drift-wall {
  --dw-tile-w: 200px;
  --dw-tile-h: 132px;
  --dw-gap: 18px;
  --dw-radius: 14px;
  position: relative;
  width: 100%;
  height: min(64vh, 600px);
  min-height: 520px;
  overflow: hidden;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  -webkit-mask-image: radial-gradient(ellipse 88% 88% at 50% 48%, #000 42%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 88% at 50% 48%, #000 42%, transparent 100%);
}

.reports-drift-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: row;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}

.reports-drift-col {
  position: relative;
  width: calc(var(--dw-tile-w) + var(--dw-gap));
  transform-style: preserve-3d;
}

.reports-drift-track {
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
}

.reports-drift-tile {
  position: relative;
  display: block;
  width: 100%;
  height: calc(var(--dw-tile-h) + var(--dw-gap));
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  outline: none;
  transform-style: preserve-3d;
}

.reports-drift-inner {
  position: absolute;
  inset: calc(var(--dw-gap) / 2);
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--dw-accent, #2563eb) 38%, white);
  border-radius: var(--dw-radius);
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.26), transparent 40%),
    linear-gradient(145deg, color-mix(in srgb, var(--dw-accent, #2563eb) 84%, #0f172a), color-mix(in srgb, var(--dw-accent, #2563eb) 48%, #020617));
  box-shadow: 0 16px 38px -18px rgba(15, 23, 42, .58);
  opacity: .55;
  transform: translateZ(0);
  pointer-events: none;
  transition: transform .42s cubic-bezier(.22,1,.36,1), opacity .42s cubic-bezier(.22,1,.36,1), box-shadow .42s cubic-bezier(.22,1,.36,1), filter .42s cubic-bezier(.22,1,.36,1);
}

.reports-drift-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 0, 16, .18);
  pointer-events: none;
  transition: opacity .42s cubic-bezier(.22,1,.36,1);
}

.reports-drift-title {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: #fff;
  font-size: .98rem;
  font-weight: 850;
  line-height: 1.18;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(2, 6, 23, .72);
}

.reports-drift-tile.is-active .reports-drift-inner,
.reports-drift-tile:hover .reports-drift-inner,
.reports-drift-tile:focus-visible .reports-drift-inner {
  opacity: 1;
  transform: translateZ(64px);
  filter: saturate(1.08) brightness(1.06);
  box-shadow: 0 28px 66px -20px rgba(15, 23, 42, .72), 0 0 0 2px rgba(255,255,255,.82);
}

.reports-drift-tile.is-active .reports-drift-inner::after,
.reports-drift-tile:hover .reports-drift-inner::after,
.reports-drift-tile:focus-visible .reports-drift-inner::after {
  opacity: 0;
}

body.reports-portal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .reports-portal-card {
    width: min(97vw, 1180px) !important;
  }

  .reports-drift-wrap {
    min-height: 500px;
  }

  .reports-drift-wall {
    --dw-tile-w: 154px;
    --dw-tile-h: 108px;
    --dw-gap: 12px;
    min-height: 470px;
    height: 58vh;
  }

  .reports-drift-title {
    font-size: .82rem;
  }
}


/* Relatorio de cotas por loja */
.quota-report-card h1 { margin-bottom: 6px; }
.quota-editor-panel { margin-top: 18px; padding: 16px; border: 1px solid #bfdbfe; border-radius: 16px; background: linear-gradient(180deg, #eff6ff, #ffffff); }
.quota-editor-panel.hidden { display: none !important; }
.quota-editor-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.quota-editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.quota-editor-field { display: grid; gap: 5px; font-weight: 700; color: #1e3a8a; }
.quota-editor-field input { text-align: right; font-weight: 700; }
.quota-report-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.quota-report-actions label { min-width: 170px; }
.quota-report-table-wrap { margin-top: 16px; overflow: auto; border: 1px solid #94a3b8; border-radius: 12px; background: #fff; }
.store-quota-table { min-width: 760px; width: 100%; border-collapse: collapse; font-size: .9rem; color: #0f172a; }
.store-quota-table th, .store-quota-table td { border: 1px solid #111827; padding: 6px 8px; text-align: right; white-space: nowrap; }
.store-quota-table th:first-child, .store-quota-table td:first-child { text-align: left; font-weight: 800; background: #f8fafc; }
.store-quota-table thead th { text-align: center; background: #d9d9d9; font-weight: 900; }
.store-quota-table .quota-red-row th { color: #e11d48; }
.store-quota-table .quota-blue-row th, .store-quota-table .quota-blue-row td { background: #9dc3e6; font-weight: 900; }
.store-quota-table .quota-green-row th, .store-quota-table .quota-green-row td { background: #a9d18e; font-weight: 900; }
.store-quota-table .quota-yellow-row th, .store-quota-table .quota-yellow-row td { background: #ffc000; font-weight: 900; }
.store-quota-note { margin-top: 10px; }
@media (max-width: 720px) { .quota-report-actions label { min-width: 100%; } .quota-editor-header { display: grid; } }

/* Configuração de acessos por tópicos */
.user-access-group {
  border: 1px solid #d9e7f8;
  border-radius: 16px;
  background: #f8fbff;
  overflow: hidden;
}

.user-access-group + .user-access-group {
  margin-top: 12px;
}

.user-access-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  color: #14375f;
  background: linear-gradient(135deg, #eef7ff, #ffffff);
  list-style: none;
}

.user-access-group-summary::-webkit-details-marker {
  display: none;
}

.user-access-group-summary::before {
  content: "▸";
  flex: 0 0 auto;
  color: #2070c7;
  font-weight: 900;
  transition: transform .18s ease;
}

.user-access-group[open] .user-access-group-summary::before {
  transform: rotate(90deg);
}

.user-access-group-summary span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.user-access-group-summary strong {
  font-size: .98rem;
}

.user-access-group-summary small {
  color: #64748b;
  line-height: 1.35;
}

.user-access-group-summary em {
  flex: 0 0 auto;
  min-width: 92px;
  text-align: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f2ff;
  color: #1d4f86;
  font-style: normal;
  font-weight: 800;
  font-size: .78rem;
}

.user-access-group-body {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #d9e7f8;
  max-height: min(46vh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.user-access-group-body .user-access-row {
  margin: 0;
}

.user-access-parent-block {
  display: grid;
  gap: 8px;
}

.user-access-children-toggle {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding: 7px 11px;
  border-radius: 9px;
  color: #185da5;
  font-size: .78rem;
  font-weight: 850;
}

.user-access-children-toggle small {
  color: #64748b;
  font-size: .72rem;
  font-weight: 750;
}

.user-access-children-toggle[aria-expanded="true"] {
  border-color: #93c5fd;
  background: #eaf4ff;
}

.user-access-children[hidden] {
  display: none !important;
}

.user-access-children {
  display: grid;
  gap: 8px;
  margin-left: 18px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #60a5fa;
  border-radius: 12px;
  background: #f5faff;
}

.user-access-children-heading {
  display: grid;
  gap: 3px;
  padding: 2px 4px 7px;
  color: #164e86;
}

.user-access-children-heading span {
  color: #64748b;
  font-size: .8rem;
}

.user-access-row--nested {
  background: #fff;
}

@media (max-width: 720px) {
  .user-access-group-summary {
    align-items: flex-start;
  }

  .user-access-group-summary em {
    min-width: auto;
  }

  .user-access-children {
    margin-left: 0;
  }

  .user-access-children-toggle {
    align-items: flex-start;
    flex-direction: column;
  }
}


.user-access-list::-webkit-scrollbar,
.user-access-group-body::-webkit-scrollbar {
  width: 8px;
}

.user-access-list::-webkit-scrollbar-thumb,
.user-access-group-body::-webkit-scrollbar-thumb {
  background: #b8d4f0;
  border-radius: 999px;
}

.user-access-list::-webkit-scrollbar-track,
.user-access-group-body::-webkit-scrollbar-track {
  background: #eef6ff;
  border-radius: 999px;
}


/* Arquivos - atalho animado da Home */
.home-files-shortcut { border:0; background:transparent; font:inherit; }
.home-files-mini-icon { overflow:visible !important; }
.home-files-mini-folder { --folder-color:#5227ff; --folder-back-color:#4521d9; position:relative; display:block; width:34px; height:27px; transform:scale(.82); transform-origin:center; }
.home-files-mini-folder::after { position:absolute; z-index:0; bottom:98%; left:0; content:""; width:11px; height:4px; border-radius:3px 3px 0 0; background:var(--folder-back-color); }
.home-files-mini-folder { background:var(--folder-back-color); border-radius:0 5px 5px 5px; }
.home-files-mini-paper { position:absolute; z-index:2; bottom:9%; left:50%; width:70%; height:80%; border-radius:4px; background:#e6e6e6; transform:translate(-50%,10%); }
.home-files-mini-paper-2 { width:80%; height:70%; background:#f2f2f2; }
.home-files-mini-paper-3 { width:90%; height:60%; background:#fff; }
.home-files-mini-front { position:absolute; z-index:3; inset:0; border-radius:3px 5px 5px 5px; background:var(--folder-color); }
.home-files-experience { position:fixed; inset:0; z-index:10120; pointer-events:none; }
.home-files-experience.hidden { display:none !important; }
.home-files-backdrop { position:absolute; inset:0; background:rgba(7,12,30,.42); backdrop-filter:blur(8px); opacity:1; pointer-events:auto; transition:opacity .22s ease; }
.home-files-stage { position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; overflow:hidden; }
.home-files-close { position:fixed; top:22px; right:24px; z-index:3; width:42px; height:42px; border:1px solid rgba(255,255,255,.28); border-radius:999px; color:#fff; background:rgba(15,23,42,.44); backdrop-filter:blur(8px); font-size:1.45rem; cursor:pointer; pointer-events:auto; }
.home-files-stage-copy { position:fixed; top:9vh; left:50%; transform:translateX(-50%); width:min(420px,calc(100vw - 40px)); text-align:center; color:#fff; opacity:1; transition:opacity .22s ease .18s, transform .22s ease .18s; pointer-events:none; }
.home-files-stage-copy .home-files-kicker { display:block; margin-bottom:4px; color:#c4b5fd; font-size:.72rem; font-weight:850; letter-spacing:.11em; text-transform:uppercase; }
.home-files-stage-copy h3 { margin:0; color:#fff; font-size:clamp(1.45rem,3vw,2.15rem); }
.home-files-stage-copy p { margin:7px 0 0; color:#dbe4f0; font-size:.88rem; }
.home-files-folder-wrap { --files-enter-x:0px; --files-enter-y:0px; --files-enter-scale:.25; width:220px; height:176px; display:grid; place-items:center; transform:translate(0,0) scale(1); opacity:1; transition:transform .58s cubic-bezier(.18,.9,.2,1.12), opacity .24s ease; pointer-events:auto; }
.home-files-experience.is-arriving .home-files-folder-wrap { transform:translate(var(--files-enter-x),var(--files-enter-y)) scale(var(--files-enter-scale)); opacity:.35; }
.home-files-experience.is-closing .home-files-backdrop { opacity:0; }
.home-files-experience.is-closing .home-files-folder-wrap { transform:scale(.78); opacity:0; }
.home-files-experience.is-closing .home-files-stage-copy { opacity:0; transform:translate(-50%,-8px); }
.home-files-folder { --folder-color:#5227ff; --folder-back-color:#4521d9; --paper-1:#e6e6e6; --paper-2:#f2f2f2; --paper-3:#fff; cursor:pointer; transition:all .2s ease-in; outline:none; }
.home-files-folder:not(.open):hover { transform:translateY(-8px); }
.home-files-folder:not(.open):hover .home-files-paper { transform:translate(-50%,0%); }
.home-files-folder:not(.open):hover .home-files-folder-front { transform:skew(15deg) scaleY(.6); }
.home-files-folder:not(.open):hover .home-files-folder-front.right { transform:skew(-15deg) scaleY(.6); }
.home-files-folder.open { transform:translateY(-8px); }
.home-files-folder-back { position:relative; width:170px; height:136px; background:var(--folder-back-color); border-radius:0 17px 17px 17px; filter:drop-shadow(0 28px 38px rgba(20,10,70,.32)); }
.home-files-folder-back::after { position:absolute; z-index:0; bottom:98%; left:0; content:""; width:52px; height:17px; background:var(--folder-back-color); border-radius:9px 9px 0 0; }
.home-files-paper { --magnet-x:0px; --magnet-y:0px; position:absolute; z-index:2; bottom:10%; left:50%; transform:translate(calc(-50% + var(--magnet-x)),calc(10% + var(--magnet-y))); width:70%; height:80%; background:var(--paper-1); border-radius:16px; transition:transform .3s ease-in-out,height .3s ease-in-out,width .3s ease-in-out,opacity .2s ease; display:flex; align-items:flex-start; justify-content:center; padding:15px 10px; color:#172033; text-align:center; overflow:hidden; }
.home-files-paper.is-empty { opacity:.28; pointer-events:none; }
.home-files-folder.open .home-files-paper.has-file { cursor:pointer; }
.home-files-paper-name { display:-webkit-box; max-width:100%; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; font-size:.72rem; font-weight:850; line-height:1.15; overflow-wrap:anywhere; text-shadow:0 1px 0 rgba(255,255,255,.8); }
.home-files-paper-2 { background:var(--paper-2); width:80%; height:70%; }
.home-files-paper-3 { background:var(--paper-3); width:90%; height:60%; }
.home-files-folder-front { position:absolute; z-index:3; width:100%; height:100%; background:var(--folder-color); border-radius:9px 17px 17px 17px; transform-origin:bottom; transition:all .3s ease-in-out; }
.home-files-folder.open .home-files-paper-1 { transform:translate(calc(-120% + var(--magnet-x)),calc(-70% + var(--magnet-y))) rotateZ(-15deg); }
.home-files-folder.open .home-files-paper-1:hover { transform:translate(-120%,-70%) rotateZ(-15deg) scale(1.04); z-index:4; }
.home-files-folder.open .home-files-paper-2 { transform:translate(calc(10% + var(--magnet-x)),calc(-70% + var(--magnet-y))) rotateZ(15deg); height:80%; }
.home-files-folder.open .home-files-paper-2:hover { transform:translate(10%,-70%) rotateZ(15deg) scale(1.04); z-index:4; }
.home-files-folder.open .home-files-paper-3 { transform:translate(calc(-50% + var(--magnet-x)),calc(-100% + var(--magnet-y))) rotateZ(5deg); height:80%; }
.home-files-folder.open .home-files-paper-3:hover { transform:translate(-50%,-100%) rotateZ(5deg) scale(1.04); z-index:4; }
.home-files-folder.open .home-files-folder-front { transform:skew(15deg) scaleY(.6); }
.home-files-folder.open .home-files-folder-front.right { transform:skew(-15deg) scaleY(.6); }
.home-files-folder:focus-visible { outline:3px solid rgba(255,255,255,.9); outline-offset:14px; border-radius:18px; }
body.home-files-open { overflow:hidden; }
@media (max-width:620px) { .home-files-folder-wrap{width:190px;height:152px}.home-files-folder-back{width:145px;height:116px}.home-files-stage-copy{top:11vh}.home-files-close{top:14px;right:14px} }
@media (prefers-reduced-motion:reduce) { .home-files-folder-wrap,.home-files-backdrop,.home-files-stage-copy,.home-files-folder,.home-files-paper,.home-files-folder-front{transition:none!important} }

/* Arquivos da Home - administração */
.home-files-admin-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.home-files-admin-head h2 { margin:2px 0 6px; }
.home-files-admin-grid { display:grid; gap:12px; }
.home-files-admin-slot { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:14px; padding:15px; border:1px solid #dfe6f1; border-radius:18px; background:#f9fbff; }
.home-files-admin-slot-number { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; color:#fff; background:linear-gradient(145deg,#5227ff,#6d4aff); font-weight:900; }
.home-files-admin-slot-copy { min-width:0; }
.home-files-admin-slot-copy strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#172033; }
.home-files-admin-slot-copy small { display:block; margin-top:4px; color:#77839a; }
.home-files-admin-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.home-files-admin-upload { cursor:pointer; }
@media(max-width:760px){.home-files-admin-slot{grid-template-columns:42px 1fr}.home-files-admin-actions{grid-column:1/-1;justify-content:flex-start}}

/* Enfoque Cognitiva - chat consultivo global aberto pelo cabeçalho */
.home-cognitiva-root { position: fixed; inset: 0; z-index: 10045; pointer-events: none; }
.home-cognitiva-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.18); backdrop-filter: blur(2px); pointer-events: auto; }
.home-cognitiva-backdrop.hidden,.home-cognitiva-drawer.hidden { display: none !important; }
.home-cognitiva-drawer { position: fixed; top: 0; right: 0; width: min(430px, 96vw); height: 100dvh; display: grid; grid-template-rows: auto auto 1fr auto; border-left: 1px solid rgba(148,163,184,.28); background: rgba(250,252,255,.99); box-shadow: -26px 0 70px rgba(15,23,42,.2); pointer-events: auto; animation: homeCognitivaDrawerIn .22s cubic-bezier(.2,.8,.2,1) both; }
.home-cognitiva-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 18px 14px; border-bottom:1px solid #e2e8f0; background:linear-gradient(135deg,#f8fffe,#effcf9); }
.home-cognitiva-brand { display:flex; align-items:center; gap:11px; min-width:0; }
.home-cognitiva-mark { display:grid; place-items:center; width:38px; height:38px; flex:0 0 38px; border-radius:13px; color:#fff; background:linear-gradient(145deg,#0f766e,#14b8a6); box-shadow:0 8px 22px rgba(13,148,136,.22); font-size:1.1rem; }
.home-cognitiva-brand small { display:block; color:#0f766e; font-size:.68rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.home-cognitiva-brand h3 { margin:2px 0 0; color:#0f172a; font-size:1.05rem; }
.home-cognitiva-close { width:34px; height:34px; border:0; border-radius:999px; background:#e6fffa; color:#134e4a; font-size:1.35rem; cursor:pointer; }
.home-cognitiva-policy { display:flex; align-items:center; gap:8px; padding:9px 18px; border-bottom:1px solid #e2e8f0; color:#475569; background:#fff; font-size:.72rem; font-weight:650; }
.home-cognitiva-policy span { width:8px; height:8px; border-radius:999px; background:#10b981; box-shadow:0 0 0 4px rgba(16,185,129,.1); }
.home-cognitiva-messages { min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:12px; padding:18px; overscroll-behavior:contain; }
.home-cognitiva-message { display:flex; flex-direction:column; gap:5px; max-width:88%; }
.home-cognitiva-message > div { padding:11px 13px; border-radius:16px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.88rem; line-height:1.5; }
.home-cognitiva-message.assistant { align-self:flex-start; }
.home-cognitiva-message.assistant > div { color:#1e293b; background:#fff; border:1px solid #e2e8f0; border-bottom-left-radius:6px; box-shadow:0 7px 20px rgba(15,23,42,.05); }
.home-cognitiva-message.user { align-self:flex-end; }
.home-cognitiva-message.user > div { color:#fff; background:linear-gradient(145deg,#0f766e,#0d9488); border-bottom-right-radius:6px; }
.home-cognitiva-message small { padding:0 4px; color:#94a3b8; font-size:.66rem; }
.home-cognitiva-message.is-loading > div { color:#64748b; font-style:italic; }
.home-cognitiva-form { display:grid; grid-template-columns:1fr auto; align-items:end; gap:9px; padding:13px 14px calc(13px + env(safe-area-inset-bottom)); border-top:1px solid #e2e8f0; background:#fff; }
.home-cognitiva-form textarea { width:100%; min-height:44px; max-height:132px; resize:none; border:1px solid #cbd5e1; border-radius:16px; padding:11px 13px; color:#0f172a; background:#f8fafc; font:inherit; line-height:1.35; outline:none; }
.home-cognitiva-form textarea:focus { border-color:#14b8a6; box-shadow:0 0 0 3px rgba(20,184,166,.12); background:#fff; }
.home-cognitiva-form button { width:44px; height:44px; border:0; border-radius:14px; color:#fff; background:linear-gradient(145deg,#0f766e,#0d9488); cursor:pointer; font-size:1.1rem; box-shadow:0 8px 20px rgba(13,148,136,.2); }
.home-cognitiva-form button:disabled { opacity:.55; cursor:wait; }
@keyframes homeCognitivaDrawerIn { from { transform:translateX(100%); opacity:.7; } to { transform:translateX(0); opacity:1; } }
@media (max-width: 620px) { .home-cognitiva-drawer { width:100vw; } }

/* Top 5 vendedores - botão flutuante da home */
.top-sellers-floating-root {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 10040;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none;
}

.top-sellers-fab,
.top-sellers-popover {
  pointer-events: auto;
}

.top-sellers-fab {
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  box-shadow: 0 20px 48px rgba(37, 99, 235, .34);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.top-sellers-fab:hover,
.top-sellers-fab:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 28px 60px rgba(37, 99, 235, .42);
  filter: brightness(1.05);
  outline: none;
}

.top-sellers-fab-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.top-sellers-fab-text {
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
}

.top-sellers-popover {
  position: absolute;
  left: 0;
  bottom: 88px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(74vh, 480px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 24px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
  transform-origin: left bottom;
  animation: topSellersPopoverIn .18s ease both;
}

.top-sellers-popover.hidden {
  display: none;
}

.top-sellers-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, .92);
}

.top-sellers-popover-head h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #0f172a;
}

.top-sellers-eyebrow {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.top-sellers-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e293b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.top-sellers-body {
  max-height: 360px;
  overflow-y: auto;
  padding: 14px 16px 18px;
}

.top-sellers-period {
  margin: 0 0 10px;
  color: #64748b;
  font-size: .82rem;
}

.top-sellers-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-seller-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, .9);
}

.top-seller-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  font-weight: 900;
}

.top-seller-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.top-seller-info strong {
  color: #0f172a;
  font-size: .9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-seller-info small {
  color: #64748b;
  font-size: .74rem;
}

.top-seller-value {
  color: #0f172a;
  font-size: .86rem;
  font-weight: 900;
  white-space: nowrap;
}

@keyframes topSellersPopoverIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .top-sellers-floating-root {
    left: 14px;
    bottom: 94px;
  }

  .top-sellers-fab {
    width: 64px;
    height: 64px;
  }

  .top-sellers-popover {
    bottom: 78px;
    width: min(340px, calc(100vw - 28px));
  }

  .top-seller-item {
    grid-template-columns: 30px 1fr;
  }

  .top-seller-value {
    grid-column: 2;
    justify-self: start;
  }
}

/* Dashboard base */
.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  align-items: center;
  gap: 24px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f1f7ff 100%);
}

.dashboard-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.dashboard-hero p {
  max-width: 760px;
  margin: 0;
  color: #475467;
  font-size: 1.02rem;
  line-height: 1.65;
}

.dashboard-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-status-card {
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
}

.dashboard-status-card span,
.dashboard-kpi-card span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-status-card strong {
  display: block;
  margin: 8px 0 6px;
  color: #0f172a;
  font-size: 1.35rem;
}

.dashboard-status-card small,
.dashboard-kpi-card small {
  color: #64748b;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-kpi-card {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.dashboard-kpi-card strong {
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.06em;
}

.dashboard-main-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
}

.dashboard-panel {
  min-height: 320px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.dashboard-panel-large {
  min-height: 420px;
}

.dashboard-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.dashboard-panel-header h2 {
  margin: 10px 0 0;
  color: #0f172a;
  font-size: 1.25rem;
}

.dashboard-chart-placeholder {
  min-height: 300px;
  display: grid;
  grid-template-columns: repeat(6, minmax(34px, 1fr));
  align-items: end;
  gap: 14px;
  border: 1px dashed rgba(37, 99, 235, 0.26);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.85), rgba(255, 255, 255, 0.95));
}

.dashboard-chart-placeholder span {
  display: block;
  min-height: 64px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.72), rgba(14, 165, 233, 0.28));
}

.dashboard-chart-placeholder span:nth-child(2) { min-height: 132px; }
.dashboard-chart-placeholder span:nth-child(3) { min-height: 96px; }
.dashboard-chart-placeholder span:nth-child(4) { min-height: 210px; }
.dashboard-chart-placeholder span:nth-child(5) { min-height: 164px; }
.dashboard-chart-placeholder span:nth-child(6) { min-height: 248px; }

.dashboard-filter-list {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-filter-list label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 700;
}

.dashboard-filter-list select {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  color: #667085;
}

.dashboard-checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-checklist li {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 13px 14px;
  background: #f8fafc;
  color: #344054;
  font-weight: 700;
}

.dashboard-empty-state {
  max-width: 760px;
}

.dashboard-empty-state h1 {
  margin: 12px 0;
}

.dashboard-edit-note {
  background: linear-gradient(135deg, #ffffff, #f7fee7);
}

@media (max-width: 1080px) {
  .dashboard-grid-kpis,
  .dashboard-main-grid,
  .dashboard-hero {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-grid-kpis,
  .dashboard-main-grid,
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-panel-header {
    flex-direction: column;
  }

  .dashboard-chart-placeholder {
    grid-template-columns: repeat(3, minmax(34px, 1fr));
  }
}

/* Dashboard consolidado por marcadores de relatorio */
.dashboard-hero-compact {
  margin-bottom: 0;
}

.dashboard-book {
  position: relative;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.dashboard-bookmarks {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 26px;
  min-height: 56px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.dashboard-bookmark-tab {
  position: relative;
  min-width: 118px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, #1d4ed8, #1e40af);
  padding: 13px 18px 15px;
  border-radius: 18px 18px 0 0;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 -10px 22px rgba(15, 23, 42, 0.12) inset, 0 8px 20px rgba(15, 23, 42, 0.12);
  transform: translateY(12px);
  transition: transform 0.18s ease, min-width 0.18s ease, filter 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.dashboard-bookmark-tab::before,
.dashboard-bookmark-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: inherit;
  z-index: -1;
}

.dashboard-bookmark-tab::before {
  left: -9px;
  transform: skewX(-18deg);
  border-radius: 14px 0 0 0;
}

.dashboard-bookmark-tab::after {
  right: -9px;
  transform: skewX(18deg);
  border-radius: 0 14px 0 0;
}

.dashboard-bookmark-tab:hover,
.dashboard-bookmark-tab.is-active {
  transform: translateY(0);
  filter: saturate(1.04) brightness(1.02);
}

.dashboard-bookmark-tab.is-active {
  min-width: 148px;
  z-index: 3;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.dashboard-book-body {
  position: relative;
  z-index: 2;
  min-height: 620px;
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(145deg, #ffffff, #eef5ff);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.dashboard-report-summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.dashboard-report-summary h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  color: #0f172a;
}

.dashboard-report-summary p {
  max-width: 760px;
  margin: 0;
  color: #475569;
  font-weight: 650;
  line-height: 1.6;
}

.dashboard-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.dashboard-report-metrics article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.dashboard-report-metrics span,
.dashboard-report-metrics small {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-report-metrics strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 2rem;
  color: #0f172a;
}

.dashboard-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
  align-items: stretch;
}

.dashboard-report-preview,
.dashboard-report-notes {
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  padding: 22px;
  color: #ffffff;
  min-height: 380px;
  overflow: hidden;
}

.dashboard-report-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-report-chart-card {
  position: relative;
  width: min(620px, 100%);
  min-height: 330px;
}

.dashboard-mini-card {
  width: 52%;
  min-width: 260px;
  border-radius: 14px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 0 0 12px rgba(79, 70, 229, 0.75);
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-rows: repeat(3, 22px);
  gap: 12px 18px;
}

.dashboard-mini-card::before {
  content: "";
  grid-row: 1 / span 3;
  border-radius: 999px;
  background: conic-gradient(#ef4444 0 30%, #f59e0b 30% 62%, #2563eb 62% 100%);
  box-shadow: inset 0 0 0 26px #ffffff;
}

.dashboard-mini-card span {
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0 58%, #e5e7eb 58% 100%);
}

.dashboard-mini-card span:nth-child(2) {
  background: linear-gradient(90deg, #dc2626 0 42%, #e5e7eb 42% 100%);
}

.dashboard-mini-card span:nth-child(3) {
  background: linear-gradient(90deg, #f59e0b 0 66%, #e5e7eb 66% 100%);
}

.dashboard-line-demo {
  position: absolute;
  left: 6%;
  bottom: 46px;
  width: 44%;
  height: 140px;
}

.dashboard-line-demo span {
  position: absolute;
  inset: 0;
  border-bottom: 4px solid #22c55e;
  border-left: 4px solid transparent;
  transform: skewY(-17deg) translateY(8px);
}

.dashboard-line-demo span:nth-child(2) {
  border-bottom-color: #2563eb;
  transform: skewY(-31deg) translateY(-14px);
}

.dashboard-line-demo span:nth-child(3) {
  border-bottom-color: #f97316;
  transform: skewY(19deg) translateY(-2px);
}

.dashboard-bar-demo {
  position: absolute;
  right: 2%;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 190px;
  padding: 0 14px 14px;
  border-left: 8px solid #38bdf8;
  border-bottom: 8px solid #38bdf8;
}

.dashboard-bar-demo span {
  display: block;
  width: 48px;
  border: 8px solid #6366f1;
  border-bottom: 0;
  height: 82px;
}

.dashboard-bar-demo span:nth-child(2) { height: 118px; border-color: #818cf8; }
.dashboard-bar-demo span:nth-child(3) { height: 162px; border-color: #38bdf8; }

.dashboard-report-notes {
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.dashboard-report-notes h3 {
  margin: 0 0 16px;
  font-size: 1.3rem;
}

.dashboard-report-notes .dashboard-checklist li {
  background: rgba(241, 245, 249, 0.92);
}

.dashboard-report-notes .muted {
  color: #64748b;
}

.dashboard-edit-note {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.dashboard-embed-details {
  margin-top: 22px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  overflow: hidden;
}

.dashboard-embed-details summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 850;
  color: #1d4ed8;
}

.dashboard-report-frame {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
}

@media (max-width: 1100px) {
  .dashboard-report-metrics,
  .dashboard-report-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-report-summary {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .dashboard-bookmarks {
    padding: 0 14px;
  }
  .dashboard-bookmark-tab {
    min-width: 104px;
    padding-inline: 14px;
  }
  .dashboard-book-body {
    padding: 20px;
    border-radius: 22px;
  }
  .dashboard-mini-card {
    width: 100%;
    min-width: 0;
  }
  .dashboard-bar-demo,
  .dashboard-line-demo {
    position: relative;
    right: auto;
    left: auto;
    bottom: auto;
    margin-top: 24px;
  }
}

/* Dashboard: relatorios reais em abas */
.dashboard-page-compact {
  gap: 14px;
  padding-top: 14px;
}

.dashboard-book-live {
  min-height: calc(100vh - 112px);
}

.dashboard-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px 10px;
}

.dashboard-topline h1 {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.dashboard-mode-pill {
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 0.86rem;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

.dashboard-bookmarks-live {
  position: sticky;
  top: 74px;
  z-index: 9;
  padding-top: 4px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(246, 250, 255, 0));
}

.dashboard-bookmarks-live .dashboard-bookmark-tab {
  min-width: 132px;
  padding: 14px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 0;
  opacity: 1;
  filter: brightness(0.72);
}

.dashboard-bookmarks-live .dashboard-bookmark-tab.is-active {
  min-width: 164px;
  opacity: 1;
  filter: brightness(1);
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  box-shadow: 0 -10px 22px rgba(15, 23, 42, 0.13) inset, 0 14px 30px rgba(15, 23, 42, 0.16);
}

.dashboard-book-body-live {
  min-height: calc(100vh - 218px);
  padding: 10px;
  border-radius: 28px;
  background: #ffffff;
}

.dashboard-report-frame-live {
  height: calc(100vh - 238px);
  min-height: 720px;
  border: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.dashboard-report-frame-live[hidden] {
  display: none;
}

body.dashboard-embedded-report {
  background: #ffffff;
}

body.dashboard-embedded-report .sidebar,
body.dashboard-embedded-report .sidebar-tab,
body.dashboard-embedded-report .sidebar-close-btn,
body.dashboard-embedded-report .topbar,
body.dashboard-embedded-report .topbar-home,
body.dashboard-embedded-report .back-to-top {
  display: none !important;
}

body.dashboard-embedded-report .layout {
  min-height: 100vh;
  display: block;
}

body.dashboard-embedded-report .content-wrap,
body.dashboard-embedded-report .page-main,
body.dashboard-embedded-report .content-wrapper {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.dashboard-embedded-report .page-main,
body.dashboard-embedded-report .content-wrapper {
  padding: 14px !important;
}

@media (max-width: 720px) {
  .dashboard-topline {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 16px;
  }

  .dashboard-mode-pill {
    white-space: normal;
  }

  .dashboard-bookmarks-live {
    top: 58px;
  }

  .dashboard-report-frame-live {
    height: 76vh;
    min-height: 620px;
  }
}

/* Ajuste visual das linguetas do Dashboard: glass + cor base */
.dashboard-bookmarks,
.dashboard-bookmarks-live {
  align-items: flex-end;
  gap: 10px;
  min-height: 62px;
  padding: 10px 18px 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.10), rgba(79, 140, 255, 0.03));
  border: 1px solid rgba(79, 140, 255, 0.16);
  border-bottom: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  overflow-x: auto;
  scrollbar-width: thin;
}

.dashboard-bookmarks-live {
  position: sticky;
  top: 74px;
  z-index: 9;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.dashboard-bookmark-tab,
.dashboard-bookmarks-live .dashboard-bookmark-tab {
  min-width: 132px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-bottom: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(51, 94, 234, 0.72), rgba(29, 78, 216, 0.86));
  padding: 14px 20px 15px;
  border-radius: 20px 20px 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -16px 24px rgba(15, 23, 42, 0.13),
    0 10px 24px rgba(31, 111, 235, 0.16);
  filter: none;
  opacity: 0.92;
  transform: none;
  transition: background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, min-width 0.18s ease, translate 0.18s ease;
}

.dashboard-bookmark-tab::before,
.dashboard-bookmark-tab::after {
  display: none;
}

.dashboard-bookmark-tab:hover,
.dashboard-bookmarks-live .dashboard-bookmark-tab:hover {
  opacity: 1;
  translate: 0 -2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.82), rgba(37, 99, 235, 0.94));
}

.dashboard-bookmark-tab.is-active,
.dashboard-bookmarks-live .dashboard-bookmark-tab.is-active {
  min-width: 164px;
  opacity: 1;
  translate: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.10)),
    linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -18px 28px rgba(15, 23, 42, 0.08),
    0 16px 34px rgba(31, 111, 235, 0.24);
}

.dashboard-book-body-live {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(79, 140, 255, 0.08);
}

/* Dashboard gerencial configuravel */
.dashboard-gerencial-panel {
  width: 100%;
  min-height: 62vh;
}
.dashboard-gerencial-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
  margin-bottom: 1rem;
}
.dashboard-gerencial-toolbar h2 { margin: .15rem 0 .25rem; }
.dashboard-gerencial-toolbar p { margin: 0; color: #64748b; }
.dashboard-gerencial-actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
}
.dashboard-gerencial-actions label {
  display: grid;
  gap: .25rem;
  font-size: .8rem;
  color: #475569;
  font-weight: 700;
}
.dashboard-gerencial-actions input,
.dashboard-widget-editor input,
.dashboard-widget-editor select {
  border: 1px solid rgba(148, 163, 184, .45);
  border-radius: 10px;
  padding: .55rem .65rem;
  background: #fff;
}
.dashboard-gerencial-status { margin-bottom: 1rem; }
.dashboard-gerencial-status-card {
  border-radius: 16px;
  padding: .9rem 1rem;
  border: 1px solid rgba(148, 163, 184, .35);
  background: #f8fafc;
}
.dashboard-gerencial-status-card.ok { background: #ecfdf5; border-color: rgba(16, 185, 129, .28); }
.dashboard-gerencial-status-card.warn { background: #fffbeb; border-color: rgba(245, 158, 11, .28); }
.dashboard-gerencial-status-card.error { background: #fef2f2; border-color: rgba(239, 68, 68, .28); }
.dashboard-status-line { display: flex; justify-content: space-between; gap: 1rem; }
.dashboard-progress {
  height: 10px;
  background: rgba(15, 23, 42, .1);
  border-radius: 999px;
  overflow: hidden;
  margin: .55rem 0;
}
.dashboard-progress span { display: block; height: 100%; background: #2563eb; border-radius: inherit; }
.dashboard-error { color: #b91c1c; font-weight: 700; }
.dashboard-gerencial-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}
.dashboard-gerencial-summary > div {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: .9rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}
.dashboard-gerencial-summary span,
.dashboard-gerencial-summary small { display:block; color:#64748b; font-size:.78rem; font-weight:700; }
.dashboard-gerencial-summary strong { display:block; margin-top:.25rem; font-size:1.25rem; color:#0f172a; }
.dashboard-gerencial-widgets {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1rem;
}
.dashboard-widget {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
  min-width: 0;
}
.dashboard-widget header {
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
  margin-bottom:.8rem;
}
.dashboard-widget header span { display:block; font-weight:800; color:#0f172a; }
.dashboard-widget header small { display:block; color:#94a3b8; font-size:.75rem; margin-top:.15rem; }
.btn-small { padding: .45rem .7rem; font-size: .78rem; }
.dashboard-widget-editor {
  display:grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap:.65rem;
  padding:.8rem;
  border-radius:14px;
  background:#f8fafc;
  margin-bottom:.9rem;
}
.dashboard-widget-editor[hidden] { display:none; }
.dashboard-widget-editor label { display:grid; gap:.25rem; font-size:.75rem; color:#475569; font-weight:700; }
.dashboard-bars { display:grid; gap:.55rem; }
.dashboard-bar-row { display:grid; grid-template-columns: minmax(110px, 1fr) 2fr auto; gap:.6rem; align-items:center; font-size:.82rem; }
.dashboard-bar-row > span { color:#334155; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-bar-row > strong { color:#0f172a; font-size:.8rem; white-space:nowrap; }
.dashboard-bar-track { height:12px; background:#e2e8f0; border-radius:999px; overflow:hidden; }
.dashboard-bar-track i { display:block; height:100%; background:#2563eb; border-radius:inherit; }
.theme-executivo .dashboard-bar-track i { background:#0f172a; }
.theme-suave .dashboard-bar-track i { background:#14b8a6; }
.dashboard-bars.is-line .dashboard-bar-track { height:4px; }
.dashboard-donut-list { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:.55rem; }
.dashboard-donut-list div { border:1px solid rgba(148,163,184,.25); border-radius:12px; padding:.6rem; background:#f8fafc; }
.dashboard-donut-list span { display:block; color:#475569; font-size:.78rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-donut-list strong { display:block; color:#0f172a; margin-top:.2rem; }
.dashboard-mini-table { width:100%; border-collapse: collapse; font-size:.82rem; }
.dashboard-mini-table th,
.dashboard-mini-table td { padding:.5rem; border-bottom:1px solid rgba(148,163,184,.22); text-align:right; }
.dashboard-mini-table th:first-child,
.dashboard-mini-table td:first-child { text-align:left; }
.dashboard-gerencial-empty,
.dashboard-chart-empty { padding:1rem; border-radius:14px; background:#f8fafc; color:#64748b; }
@media (max-width: 980px) {
  .dashboard-gerencial-toolbar { flex-direction: column; }
  .dashboard-gerencial-summary,
  .dashboard-gerencial-widgets { grid-template-columns: 1fr; }
  .dashboard-widget-editor { grid-template-columns: 1fr; }
  .dashboard-bar-row { grid-template-columns: 1fr; }
}

/* Dashboard gerencial: visuais de gráficos adicionais */
.dashboard-line-chart { display:grid; gap:.45rem; }
.dashboard-line-chart svg { width:100%; min-height:210px; border-radius:16px; background:linear-gradient(180deg, rgba(248,250,252,.95), rgba(241,245,249,.55)); overflow:visible; }
.dashboard-line-chart line { stroke:#cbd5e1; stroke-width:1; }
.dashboard-line-chart polyline { fill:none; stroke:#4f46e5; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; }
.dashboard-line-chart polygon { fill:rgba(79,70,229,.16); stroke:none; }
.dashboard-line-chart circle { fill:#fff; stroke:#4f46e5; stroke-width:3; }
.theme-executivo .dashboard-line-chart polyline,
.theme-executivo .dashboard-line-chart circle { stroke:#0f172a; }
.theme-executivo .dashboard-line-chart polygon { fill:rgba(15,23,42,.14); }
.theme-suave .dashboard-line-chart polyline,
.theme-suave .dashboard-line-chart circle { stroke:#14b8a6; }
.theme-suave .dashboard-line-chart polygon { fill:rgba(20,184,166,.16); }
.dashboard-axis-labels { display:flex; justify-content:space-between; gap:.4rem; color:#64748b; font-size:.68rem; }
.dashboard-axis-labels span { max-width:70px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.dashboard-columns { height:260px; display:flex; align-items:end; gap:.55rem; padding:.8rem .4rem .2rem; border-radius:16px; background:linear-gradient(180deg, rgba(248,250,252,.95), rgba(241,245,249,.5)); overflow-x:auto; }
.dashboard-columns > div { min-width:56px; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:.35rem; }
.dashboard-column-bar { width:30px; min-height:8px; border-radius:10px 10px 4px 4px; background:#4f46e5; box-shadow:0 12px 24px rgba(79,70,229,.18); }
.theme-executivo .dashboard-column-bar { background:#0f172a; box-shadow:0 12px 24px rgba(15,23,42,.16); }
.theme-suave .dashboard-column-bar { background:#14b8a6; box-shadow:0 12px 24px rgba(20,184,166,.18); }
.dashboard-columns span { max-width:72px; min-height:24px; color:#475569; font-size:.66rem; text-align:center; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.dashboard-columns strong { color:#0f172a; font-size:.68rem; white-space:nowrap; }

.dashboard-pie-wrap { display:grid; grid-template-columns: minmax(160px, 220px) 1fr; gap:1rem; align-items:center; }
.dashboard-pie-wrap svg { width:100%; max-width:220px; justify-self:center; transform:rotate(0deg); }
.dashboard-pie-wrap svg path { stroke:#fff; stroke-width:2; }
.dashboard-pie-wrap.is-donut svg circle { fill:#fff; stroke:#fff; stroke-width:2; }
.dashboard-pie-legend { display:grid; gap:.42rem; max-height:250px; overflow:auto; }
.dashboard-pie-legend div { display:grid; grid-template-columns:12px minmax(0, 1fr) auto; align-items:center; gap:.45rem; font-size:.76rem; }
.dashboard-pie-legend i { width:10px; height:10px; border-radius:999px; display:block; }
.dashboard-pie-legend span { color:#475569; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-pie-legend strong { color:#0f172a; white-space:nowrap; }
.slice-0 { fill:#4f46e5; background:#4f46e5; }
.slice-1 { fill:#2563eb; background:#2563eb; }
.slice-2 { fill:#7c3aed; background:#7c3aed; }
.slice-3 { fill:#0ea5e9; background:#0ea5e9; }
.slice-4 { fill:#14b8a6; background:#14b8a6; }
.slice-5 { fill:#22c55e; background:#22c55e; }
.slice-6 { fill:#f59e0b; background:#f59e0b; }
.slice-7 { fill:#ef4444; background:#ef4444; }
.slice-8 { fill:#64748b; background:#64748b; }
.slice-9 { fill:#0f172a; background:#0f172a; }
.theme-executivo .slice-0 { fill:#0f172a; background:#0f172a; }
.theme-executivo .slice-1 { fill:#334155; background:#334155; }
.theme-executivo .slice-2 { fill:#475569; background:#475569; }
.theme-suave .slice-0 { fill:#14b8a6; background:#14b8a6; }
.theme-suave .slice-1 { fill:#06b6d4; background:#06b6d4; }
.theme-suave .slice-2 { fill:#22c55e; background:#22c55e; }

.dashboard-card-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:.75rem; }
.dashboard-card-grid div { border:1px solid rgba(148,163,184,.24); border-radius:16px; padding:.85rem; background:linear-gradient(180deg, #fff, #f8fafc); box-shadow:0 8px 18px rgba(15,23,42,.04); }
.dashboard-card-grid small { color:#64748b; font-size:.7rem; font-weight:800; }
.dashboard-card-grid span { display:block; margin-top:.25rem; color:#334155; font-size:.78rem; min-height:2.1em; overflow:hidden; }
.dashboard-card-grid strong { display:block; margin-top:.4rem; color:#0f172a; font-size:1rem; }
.dashboard-card-grid em { display:block; margin-top:.15rem; color:#64748b; font-size:.7rem; font-style:normal; }

.dashboard-heatmap { display:grid; grid-template-columns:minmax(120px, 1.3fr) repeat(8, minmax(82px, 1fr)); gap:4px; overflow:auto; font-size:.7rem; }
.dashboard-heatmap b,
.dashboard-heatmap strong,
.dashboard-heatmap span { border-radius:10px; padding:.5rem; min-height:34px; display:flex; align-items:center; }
.dashboard-heatmap b { color:#475569; background:#f1f5f9; justify-content:center; text-align:center; }
.dashboard-heatmap strong { color:#334155; background:#f8fafc; font-weight:800; }
.dashboard-heatmap span { justify-content:center; color:#0f172a; font-weight:800; background:rgba(79,70,229, calc(.08 + var(--heat) * .5)); white-space:nowrap; }
.theme-executivo .dashboard-heatmap span { background:rgba(15,23,42, calc(.08 + var(--heat) * .46)); color:#0f172a; }
.theme-suave .dashboard-heatmap span { background:rgba(20,184,166, calc(.08 + var(--heat) * .5)); color:#064e3b; }
.dashboard-heatmap-simple { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:.55rem; }
.dashboard-heatmap-simple span { border-radius:14px; padding:.75rem; background:rgba(79,70,229, calc(.08 + var(--heat) * .5)); }
.dashboard-heatmap-simple b { display:block; color:#334155; font-size:.76rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-heatmap-simple strong { display:block; color:#0f172a; margin-top:.25rem; }

@media (max-width: 760px) {
  .dashboard-pie-wrap { grid-template-columns:1fr; }
  .dashboard-card-grid,
  .dashboard-heatmap-simple { grid-template-columns:1fr; }
}

/* Dashboard: linguetas por tema e cards de relatórios por permissão */
.dashboard-bookmark-tab small,
.dashboard-bookmarks-live .dashboard-bookmark-tab small {
  display: block;
  margin-top: 4px;
  font-size: .68rem;
  line-height: 1;
  opacity: .78;
  font-weight: 800;
}

.dashboard-theme-reports {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-theme-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(14, 165, 233, .08));
}

.dashboard-theme-head h2 {
  margin: .15rem 0 .25rem;
  color: #0f172a;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -.03em;
}

.dashboard-theme-head p {
  margin: 0;
  max-width: 720px;
  color: #64748b;
  line-height: 1.55;
}

.dashboard-theme-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  flex-wrap: wrap;
}

.dashboard-theme-head strong {
  padding: .55rem .8rem;
  border-radius: 999px;
  color: #1d4ed8;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, .16);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
  font-size: .82rem;
}

.dashboard-theme-toggle {
  appearance: none;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  padding: .58rem .85rem;
  background: linear-gradient(135deg, #fff, rgba(239, 246, 255, .9));
  color: #1d4ed8;
  font-weight: 900;
  font-size: .8rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dashboard-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .36);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .1);
}

.dashboard-theme-reports.is-collapsed {
  margin-bottom: .75rem;
}

.dashboard-report-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .85rem;
}

.dashboard-report-card {
  appearance: none;
  width: 100%;
  min-height: 150px;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 20px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
  cursor: pointer;
  display: grid;
  align-content: start;
  gap: .45rem;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dashboard-report-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--report-accent, #2563eb);
}

.dashboard-report-card span {
  color: var(--report-accent, #2563eb);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.dashboard-report-card strong {
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.2;
}

.dashboard-report-card small {
  color: #64748b;
  line-height: 1.45;
  font-size: .86rem;
}

.dashboard-report-card:hover,
.dashboard-report-card.is-active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--report-accent, #2563eb) 38%, white);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.dashboard-report-card.is-active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--report-accent, #2563eb) 10%, white), #fff 62%);
}

@media (max-width: 720px) {
  .dashboard-theme-head {
    flex-direction: column;
  }
  .dashboard-theme-actions {
    justify-content: flex-start;
  }
  .dashboard-theme-head strong {
    align-self: flex-start;
  }
}

.ramais-admin-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.ramais-admin-actions .btn-primary,
.ramais-admin-actions .btn-secondary,
.ramais-admin-actions .btn-ghost,
.ramal-add-btn,
.ramal-remove-btn {
  width: 100%;
}

.ramais-edit-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.35fr) minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.ramais-edit-row input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.9rem;
  color: #24324a;
  background: #fff;
}

.ramal-add-btn {
  margin-top: 10px;
}

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

/* Ajuste pontual: modal de acessos sem corte nos últimos itens */
#userAccessModal.ti-modal {
  align-items: stretch;
  padding: clamp(12px, 2vw, 24px);
}

#userAccessModal .ti-modal-card {
  width: min(96vw, 980px);
  max-height: calc(100dvh - clamp(24px, 4vw, 48px));
  min-height: min(720px, calc(100dvh - clamp(24px, 4vw, 48px)));
}

#userAccessModal .ti-modal-header {
  flex: 0 0 auto;
}

#userAccessModal .ti-modal-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

#userAccessModal #userAccessName {
  flex: 0 0 auto;
  margin: 0 0 8px;
}

#userAccessModal .user-access-list {
  flex: 1 1 auto;
  min-height: 240px;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  padding-bottom: 26px;
  scroll-padding-bottom: 90px;
}

#userAccessModal .user-access-group-body {
  max-height: none;
  overflow: visible;
}

#userAccessModal .ti-actions {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 0 -22px;
  padding: 14px 22px 18px;
  border-top: 1px solid #d7e1ef;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), #ffffff 42%);
  box-shadow: 0 -10px 24px rgba(15, 34, 58, 0.08);
}

#userAccessModal #userAccessFeedback {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0 14px;
}

@media (max-width: 720px) {
  #userAccessModal.ti-modal {
    padding: 8px;
  }

  #userAccessModal .ti-modal-card {
    width: 100%;
    min-height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }

  #userAccessModal .ti-modal-form {
    padding-left: 14px;
    padding-right: 14px;
  }

  #userAccessModal .ti-actions {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Correção definitiva: modal de acessos com rolagem real e sem corte */
#userAccessModal.ti-modal {
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
  overflow: hidden !important;
}

#userAccessModal .ti-modal-backdrop {
  position: fixed !important;
}

#userAccessModal .ti-modal-card {
  width: min(94vw, 1040px) !important;
  height: min(88dvh, 820px) !important;
  min-height: 0 !important;
  max-height: min(88dvh, 820px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

#userAccessModal .ti-modal-header {
  flex: 0 0 auto !important;
  padding: 16px 22px !important;
}

#userAccessModal .ti-modal-header h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
}

#userAccessModal #userAccessForm.ti-modal-form {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 16px 22px 18px !important;
  overflow: hidden !important;
}

#userAccessModal #userAccessName {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 0 4px !important;
}

#userAccessModal #userAccessList.user-access-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: block !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 10px 18px 0 !important;
  margin: 0 !important;
  scroll-padding-bottom: 140px !important;
  overscroll-behavior: contain !important;
}

#userAccessModal .user-access-group {
  margin: 0 0 12px !important;
  background: #f8fbff !important;
}

#userAccessModal .user-access-group-summary {
  min-height: 58px !important;
  padding: 12px 14px !important;
  align-items: center !important;
}

#userAccessModal .user-access-group-summary span {
  flex: 1 1 auto !important;
}

#userAccessModal .user-access-group-summary em {
  white-space: nowrap !important;
}

#userAccessModal .user-access-group-body {
  max-height: none !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  padding: 10px !important;
}

#userAccessModal .user-access-row {
  min-height: 64px !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 12px !important;
  padding: 10px 12px !important;
}

#userAccessModal .user-access-row label,
#userAccessModal .user-access-row .checkbox-option {
  white-space: nowrap !important;
}

#userAccessModal .ti-actions {
  flex: 0 0 auto !important;
  position: static !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 12px 0 0 !important;
  border-top: 1px solid #d7e1ef !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

#userAccessModal #userAccessFeedback {
  flex: 0 0 auto !important;
  margin: 0 !important;
  min-height: 18px !important;
}

#userAccessModal #userAccessList::-webkit-scrollbar {
  width: 10px !important;
}

#userAccessModal #userAccessList::-webkit-scrollbar-thumb {
  background: #9fc2ea !important;
  border-radius: 999px !important;
  border: 2px solid #eef6ff !important;
}

#userAccessModal #userAccessList::-webkit-scrollbar-track {
  background: #eef6ff !important;
  border-radius: 999px !important;
}

@media (max-width: 760px) {
  #userAccessModal.ti-modal {
    padding: 8px !important;
  }

  #userAccessModal .ti-modal-card {
    width: 100% !important;
    height: calc(100dvh - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    border-radius: 14px !important;
  }

  #userAccessModal #userAccessForm.ti-modal-form {
    padding: 14px !important;
  }

  #userAccessModal .user-access-group-summary {
    align-items: flex-start !important;
    gap: 10px !important;
  }

  #userAccessModal .user-access-row {
    grid-template-columns: 1fr !important;
    align-items: flex-start !important;
  }
}

/* Consulta rápida de produto */
.product-lookup-root {
  position: fixed !important;
  right: 0 !important;
  top: 156px !important;
  z-index: 2147483000 !important;
  font-family: inherit;
  display: block !important;
  pointer-events: auto !important;
}

.product-lookup-tab {
  width: 22px;
  height: 52px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #1d4ed8;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  opacity: 0.48;
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.product-lookup-tab:hover,
.product-lookup-tab[aria-expanded="true"] {
  opacity: 1;
  transform: translateX(-3px);
  background: #ffffff;
}

.product-lookup-tab span {
  display: inline-block;
  font-size: 16px;
  transform: rotate(-8deg);
  margin-left: -1px;
}

.product-lookup-panel {
  position: fixed;
  right: 34px;
  top: 118px;
  width: min(410px, calc(100vw - 60px));
  max-height: min(620px, calc(100vh - 145px));
  transform: none;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.product-lookup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.product-lookup-head h3 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 20px;
}

.product-lookup-search {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.product-lookup-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  padding: 11px 12px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
}

.product-lookup-search input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.product-lookup-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.product-lookup-body {
  max-height: min(430px, calc(100vh - 240px));
  overflow: auto;
  padding: 14px 18px 18px;
}

.product-lookup-result-count {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}


.product-lookup-result-shell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.product-lookup-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.product-lookup-option {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.product-lookup-option:hover,
.product-lookup-option.active {
  transform: translateX(2px);
  border-color: rgba(37, 99, 235, 0.55);
  background: #eef2ff;
  color: #1d4ed8;
}

.product-lookup-option.active {
  box-shadow: inset 3px 0 0 #2563eb, 0 10px 20px rgba(37, 99, 235, 0.12);
}

.product-lookup-option span {
  display: block;
  white-space: nowrap;
}

.product-lookup-detail {
  min-width: 0;
}

.product-lookup-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.product-lookup-card + 
.product-lookup-result-shell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.product-lookup-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.product-lookup-option {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.product-lookup-option:hover,
.product-lookup-option.active {
  transform: translateX(2px);
  border-color: rgba(37, 99, 235, 0.55);
  background: #eef2ff;
  color: #1d4ed8;
}

.product-lookup-option.active {
  box-shadow: inset 3px 0 0 #2563eb, 0 10px 20px rgba(37, 99, 235, 0.12);
}

.product-lookup-option span {
  display: block;
  white-space: nowrap;
}

.product-lookup-detail {
  min-width: 0;
}

.product-lookup-card {
  margin-top: 12px;
}

.product-lookup-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.product-lookup-card-title strong {
  color: #0f172a;
  line-height: 1.25;
}

.product-lookup-card-title span {
  flex: 0 0 auto;
  max-width: 120px;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-lookup-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.product-lookup-info div {
  min-width: 0;
  border-radius: 14px;
  background: #f8fafc;
  padding: 9px 10px;
}

.product-lookup-info dt {
  margin: 0 0 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.product-lookup-info dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-lookup-stores {
  margin-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding-top: 10px;
}

.product-lookup-stores summary {
  cursor: pointer;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.product-lookup-store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.product-lookup-store-grid span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-radius: 12px;
  background: #f1f5f9;
  padding: 8px 9px;
  color: #334155;
}

.product-lookup-store-grid strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-lookup-store-grid em {
  color: #0f172a;
  font-style: normal;
  font-weight: 900;
}

.product-lookup-no-stock {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .product-lookup-root {
    top: auto !important;
    bottom: 138px;
  }
  .product-lookup-panel {
    position: fixed;
    right: 14px;
    left: 14px;
    top: auto;
    bottom: 84px;
    width: auto;
    transform: none;
  }
  .product-lookup-result-shell {
    grid-template-columns: 1fr;
  }
  .product-lookup-options {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .product-lookup-option {
    flex: 0 0 64px;
  }
  .product-lookup-info,
  .product-lookup-store-grid {
    grid-template-columns: 1fr;
  }
}

/* Calculadora da consulta rápida */
.product-lookup-price-row dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-lookup-price-row dd span {
  min-width: 0;
}

.product-lookup-calc-open {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #2563eb;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.product-lookup-calc-open:hover {
  transform: translateY(-1px);
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.42);
}

.product-calc-modal {
  position: fixed;
  right: 460px;
  top: 132px;
  width: min(310px, calc(100vw - 70px));
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  z-index: 2147483001;
}

.product-calc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.product-calc-head h3 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 18px;
}

.product-calc-content {
  padding: 14px 16px 16px;
}

.product-calc-display {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 16px;
  padding: 12px 13px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  text-align: right;
  outline: none;
}

.product-calc-display:focus {
  border-color: rgba(37, 99, 235, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.product-calc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.product-calc-grid button {
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 13px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}

.product-calc-grid button:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.38);
  background: #eef2ff;
}

.product-calc-grid .product-calc-equals {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-color: transparent;
  color: #fff;
}

.product-calc-feedback {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .product-calc-modal {
    right: 14px;
    left: 14px;
    top: auto;
    bottom: 24px;
    width: auto;
  }
}

.product-lookup-title-with-calc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-lookup-calc-head-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #49B95A;
  border-color: rgba(73, 185, 90, 0.35);
}

.product-lookup-calc-head-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

.product-lookup-calc-head-btn[hidden] {
  display: none !important;
}

/* ========================================================================== */
/* Modernizacao visual 2026-05-17 - somente camada visual                     */
/* Mantem HTML, JS, rotas, endpoints, permissoes e comportamento originais.    */
/* ========================================================================== */
:root {
  --bg-0: #eef5ff;
  --bg-1: #e7eef8;
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --surface-elevated: rgba(255, 255, 255, 0.92);
  --text: #10233f;
  --muted: #60758f;
  --border: #d8e4f2;
  --primary: #2563eb;
  --primary-strong: #174bb6;
  --primary-soft: #eaf2ff;
  --sidebar-1: #0f2747;
  --sidebar-2: #173f73;
  --ok: #0f8a5f;
  --danger: #d13d36;
  --warning: #b7791f;
  --shadow-lg: 0 26px 70px rgba(15, 39, 71, 0.14);
  --shadow-md: 0 16px 42px rgba(15, 39, 71, 0.10);
  --shadow-sm: 0 8px 24px rgba(15, 39, 71, 0.08);
  --radius-xl: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
  background: #eef5ff;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 8% -8%, rgba(37, 99, 235, 0.16), transparent 34%),
    radial-gradient(circle at 94% 0%, rgba(14, 165, 233, 0.16), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 48%, #e9f0f8 100%);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: rgba(37, 99, 235, 0.18);
}

body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.user-access-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.user-access-list::-webkit-scrollbar-thumb {
  background: #bfd0e5;
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

body::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track,
.user-access-list::-webkit-scrollbar-track {
  background: transparent;
}

h1,
h2,
h3,
h4 {
  color: #10233f;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: 1.08;
}

h2 {
  line-height: 1.15;
}

p,
li,
td,
label,
input,
select,
textarea {
  line-height: 1.5;
}

input,
select,
textarea {
  min-height: 44px;
  border-color: #d6e2f1;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 0 rgba(15, 39, 71, 0.02);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #b9cbe2;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13), 0 10px 24px rgba(15, 39, 71, 0.06);
}

button,
.btn-primary,
.btn-ghost,
.tab,
.tab-btn,
.menu-item,
.shortcut-item,
.video-nav-btn,
.expand-btn,
.calc-trigger-btn,
.user-card-access,
.user-card-gear {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease;
}

button:active,
.btn-primary:active,
.btn-ghost:active,
.tab:active,
.tab-btn:active,
.menu-item:active,
.shortcut-item:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary,
.tab.active,
.tab-btn.active {
  border: 0;
  background: linear-gradient(135deg, #2563eb 0%, #1d8cf8 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover,
.tab.active:hover,
.tab-btn.active:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.30);
}

.btn-ghost,
.menu-button,
.tab,
.tab-btn,
.expand-btn,
.video-nav-btn,
.calc-trigger-btn,
.user-card-gear,
.user-card-access {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d8e4f2;
  box-shadow: 0 8px 20px rgba(15, 39, 71, 0.06);
}

.btn-ghost:hover,
.menu-button:hover,
.tab:hover,
.tab-btn:hover,
.expand-btn:hover,
.video-nav-btn:hover,
.calc-trigger-btn:hover,
.user-card-gear:hover,
.user-card-access:hover {
  border-color: #b7cbe4;
  box-shadow: 0 12px 26px rgba(15, 39, 71, 0.09);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.22);
}

.sidebar {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent 38%),
    linear-gradient(180deg, var(--sidebar-2) 0%, var(--sidebar-1) 100%);
  color: #eef6ff;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 24px 0 70px rgba(15, 39, 71, 0.22);
}

.sidebar-header {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.sidebar-header h2,
.sidebar .sidebar-eyebrow {
  color: #ffffff;
}

.sidebar .sidebar-eyebrow {
  opacity: 0.72;
}

.sidebar .menu-item {
  color: rgba(238, 246, 255, 0.86);
  border: 1px solid transparent;
  border-radius: 14px;
}

.sidebar .menu-item:hover,
.sidebar .menu-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-close-btn,
.sidebar-tab {
  background: linear-gradient(180deg, #ffffff, #eaf2ff);
  color: #173f73;
  border-color: rgba(23, 63, 115, 0.18);
  box-shadow: 0 18px 42px rgba(15, 39, 71, 0.16);
}

.topbar {
  background: rgba(255, 255, 255, 0.80);
  border-bottom: 1px solid rgba(216, 228, 242, 0.85);
  box-shadow: 0 10px 30px rgba(15, 39, 71, 0.06);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.topbar-home {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.20), transparent 30%),
    linear-gradient(105deg, #123b6d 0%, #2563eb 55%, #0ea5e9 100%);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.18);
}

.brand-mark {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 8px 18px rgba(15, 39, 71, 0.18);
}

.page-main,
.home-main {
  max-width: 1680px;
  margin-inline: auto;
}

.card,
.home-info-card,
.home-list-card,
.spotlight-card,
.video-card,
.chart-card,
.user-card,
.bio-admin-card,
.stock-report-metric-card,
.maintenance-card,
.filters,
.table-wrap,
.home-calendar-card,
.resource-item,
.shortcut-item {
  border-color: rgba(216, 228, 242, 0.92);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.card:hover,
.home-info-card:hover,
.home-list-card:hover,
.spotlight-card:hover,
.video-card:hover,
.chart-card:hover,
.user-card:hover,
.bio-admin-card:hover,
.stock-report-metric-card:hover,
.resource-item:hover,
.shortcut-item:hover {
  border-color: rgba(183, 203, 228, 0.95);
  box-shadow: var(--shadow-md);
}

.home-hero {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 80px rgba(15, 39, 71, 0.18);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(8, 25, 49, 0.72), rgba(8, 25, 49, 0.26));
}

.hero-eyebrow,
.welcome-pill,
.task-counter,
.margin-pill,
.stock-status-pill {
  letter-spacing: 0.04em;
}

.home-shortcuts,
.resource-grid,
.home-trio,
.home-duo,
.home-highlights,
.charts-grid,
.stock-report-metrics,
.users-cards {
  gap: 16px;
}

.shortcut-item,
.resource-item {
  border-radius: 18px;
}

.shortcut-item:hover,
.resource-item:hover {
  transform: translateY(-3px);
}

.shortcut-icon {
  background: linear-gradient(135deg, #eaf2ff, #dff5ff);
  color: #174bb6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.filters {
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.86);
}

.table-wrap {
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

table {
  background: #ffffff;
}

th {
  background: linear-gradient(180deg, #f8fbff, #edf4ff);
  color: #10233f;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: inset 0 -1px 0 #dfe9f6;
}

td {
  color: #213a5f;
}

tbody tr {
  transition: background-color 140ms ease;
}

tbody tr:hover {
  background: #f7fbff;
}

.report-progress-track {
  background: #e6eef8;
  border-radius: 999px;
}

.report-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.35);
}

.report-loading-content,
.ti-modal-card,
.ramais-card {
  border: 1px solid rgba(216, 228, 242, 0.95) !important;
  border-radius: 24px !important;
  box-shadow: 0 34px 90px rgba(15, 39, 71, 0.22) !important;
}

.report-loading-overlay,
.ti-modal-backdrop {
  background: rgba(15, 39, 71, 0.34) !important;
  backdrop-filter: blur(10px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(125%) !important;
}

.notice-toggle-btn,
.user-access-toggle,
.checkbox-label {
  border-radius: 999px;
}

.stock-status-pill-critical,
.margin-pill-negative {
  background: #fee2e2;
  color: #991b1b;
}

.stock-status-pill-moderate {
  background: #fef3c7;
  color: #92400e;
}

.stock-status-pill-light,
.margin-pill-positive {
  background: #dcfce7;
  color: #166534;
}

.feedback:not(:empty),
.hint,
.muted,
.report-progress-text,
.notice-meta,
.notice-description,
.user-card-role,
.user-access-summary,
.stock-report-metric-label {
  color: var(--muted);
}

@media (min-width: 1280px) {
  .page-main {
    padding: 28px 34px 40px;
  }

  .topbar {
    padding-inline: 28px;
  }
}

@media (max-width: 720px) {
  :root {
    --radius-xl: 18px;
    --radius-md: 12px;
  }

  .page-main,
  .home-main {
    padding-inline: 14px;
  }

  .topbar {
    padding: 12px 14px;
  }

  .login-card {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .card,
  .filters,
  .table-wrap,
  .home-info-card,
  .home-list-card,
  .spotlight-card,
  .video-card,
  .chart-card,
  .user-card {
    border-radius: 16px;
  }
}

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

/* ========================================================================== */
/* Visual corporativo 2026-05-17 - camada final somente visual                */
/* Preserva HTML, IDs, classes, JS, endpoints, dados e comportamento.          */
/* ========================================================================== */
:root {
  --bg-0: #f4f6f8;
  --bg-1: #e8edf3;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-elevated: rgba(255, 255, 255, 0.96);
  --text: #172033;
  --muted: #667085;
  --border: #d8dee8;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --primary-soft: #e6f4f2;
  --secondary: #2563eb;
  --secondary-soft: #e8efff;
  --accent: #d97706;
  --accent-soft: #fff4df;
  --sidebar-1: #111827;
  --sidebar-2: #1f2937;
  --ok: #15803d;
  --danger: #b42318;
  --warning: #a16207;
  --sidebar-width: 288px;
  --shadow-lg: 0 22px 50px rgba(23, 32, 51, 0.14);
  --shadow-md: 0 14px 34px rgba(23, 32, 51, 0.10);
  --shadow-sm: 0 6px 18px rgba(23, 32, 51, 0.07);
  --radius-xl: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
}

html {
  background: var(--bg-0);
}

body {
  isolation: isolate;
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 246, 248, 0.94)),
    linear-gradient(135deg, #f8fafc 0%, #eef2f6 44%, #f5f7f9 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 78%);
  opacity: 0.9;
}

body::selection {
  background: rgba(15, 118, 110, 0.18);
}

body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.user-access-list::-webkit-scrollbar,
.sugestoes-lista::-webkit-scrollbar,
.forecast-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.user-access-list::-webkit-scrollbar-thumb,
.sugestoes-lista::-webkit-scrollbar-thumb,
.forecast-list::-webkit-scrollbar-thumb {
  background: #aeb8c6;
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

h1,
h2,
h3,
h4,
strong,
.menu-item,
.btn-primary,
.btn-ghost,
.tab,
.tab-btn {
  font-family: "Manrope", "Source Sans 3", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  color: #111827;
  line-height: 1.16;
}

h1 {
  font-size: 2.05rem;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.08rem;
}

p,
li,
td,
label,
input,
select,
textarea {
  line-height: 1.5;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

.hidden,
[hidden] {
  display: none !important;
}

.muted,
.hint,
.report-progress-text,
.notice-meta,
.notice-description,
.user-card-role,
.user-access-summary,
.stock-report-metric-label,
.careers-file-note {
  color: var(--muted) !important;
}

.layout {
  min-height: 100vh;
}

.content-wrap {
  width: 100%;
  min-width: 0;
  padding-left: 64px;
}

.page-main,
.home-main {
  width: min(100%, 1680px);
  margin-inline: auto;
  padding: 24px 28px 40px;
}

.card,
.chart-card,
.filters,
.banner-settings-card,
.videos-settings-card,
.video-form-shell,
.calendar-panel,
.home-info-card,
.home-list-card,
.spotlight-card,
.video-card,
.user-card,
.bio-admin-card,
.stock-report-metric-card,
.maintenance-card,
.resource-item,
.shortcut-item,
.sugestoes-filtros,
.sugestoes-lista-card,
.vpn-stat-card,
.vpn-history-panel,
.expense-summary-card,
.expense-ranking-card,
.dashboard-book,
.dashboard-widget,
.dashboard-panel,
.dashboard-kpi-card,
.dashboard-status-card,
.product-lookup-card {
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background: var(--surface-elevated) !important;
  box-shadow: var(--shadow-sm) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
}

.card::after,
.sugestoes-lista-card::after,
.sugestoes-filtros::after,
.chart-card::after,
.home-shortcuts::after {
  display: none !important;
}

.card:hover,
.shortcut-item:hover,
.resource-item:hover,
.user-card:hover,
.bio-admin-card:hover,
.chart-card:hover,
.stock-report-metric-card:hover {
  border-color: #c5cfdd !important;
  box-shadow: var(--shadow-md) !important;
}

.card.calendar-card {
  overflow: visible;
}

.sidebar {
  width: var(--sidebar-width);
  padding: 18px 14px;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.18), transparent 190px),
    linear-gradient(180deg, var(--sidebar-2), var(--sidebar-1));
  color: #f8fafc;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 28px 0 58px rgba(17, 24, 39, 0.22);
}

.sidebar.is-open {
  box-shadow: 0 0 0 9999px rgba(17, 24, 39, 0.26), 28px 0 58px rgba(17, 24, 39, 0.20);
}

.sidebar-header {
  padding: 6px 8px 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.sidebar-header h2 {
  margin-top: 6px;
  color: #ffffff;
  font-size: 1.18rem;
}

.sidebar-eyebrow {
  color: #9ce2d9;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.menu-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(248, 250, 252, 0.86);
  background: transparent;
  font-weight: 700;
  transform: none !important;
}

.menu-item:hover,
.menu-item.active,
.menu-toggle.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 3px 0 0 var(--primary);
}

.submenu {
  padding-left: 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.submenu .menu-item {
  min-height: 38px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.92rem;
  font-weight: 650;
}

.sidebar-tab,
.sidebar-close-btn {
  border-radius: 0 8px 8px 0;
  border-color: #cbd5e1;
  background: #ffffff;
  color: var(--sidebar-1);
  box-shadow: var(--shadow-md);
}

.topbar {
  min-height: 64px;
  margin: 16px 24px 0;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar-home {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.96)),
    #111827;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
}

.topbar-right,
.topbar-home-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-brand {
  gap: 10px;
  min-width: 0;
}

.topbar-brand strong {
  white-space: nowrap;
}

.brand-mark,
.brand-mark-image {
  border-radius: 8px;
  box-shadow: none;
}

.topbar-search {
  min-width: min(280px, 44vw);
}

.topbar-search input,
.topbar-home .topbar-search input {
  background: #ffffff;
  color: var(--text);
  border-color: #cbd5e1;
}

.topbar-search input::placeholder {
  color: #94a3b8;
}

.welcome-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #111827;
  font-weight: 700;
}

.topbar-home .welcome-pill,
.topbar-home .btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.hamburger,
.menu-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

input,
select,
textarea {
  min-height: 42px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: none;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #b8c3d3;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

label,
.form-label {
  color: #344054;
  font-weight: 700;
}

button,
.btn-primary,
.btn-ghost,
.btn-danger,
.tab,
.tab-btn,
.expand-btn,
.video-nav-btn,
.calc-trigger-btn,
.user-card-gear,
.user-card-access {
  border-radius: 8px;
  font-weight: 800;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active,
.btn-primary:active,
.btn-ghost:active,
.tab:active,
.tab-btn:active,
.shortcut-item:active {
  transform: translateY(0);
}

.btn-primary,
.tab.active,
.tab-btn.active {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary), #128c7e);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.btn-primary:hover,
.tab.active:hover,
.tab-btn.active:hover {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.26);
}

.btn-ghost,
.menu-button,
.hamburger,
.tab,
.tab-btn,
.expand-btn,
.video-nav-btn,
.calc-trigger-btn,
.user-card-gear,
.user-card-access {
  border: 1px solid var(--border);
  background: #ffffff;
  color: #243044;
  box-shadow: none;
}

.btn-ghost:hover,
.menu-button:hover,
.hamburger:hover,
.tab:hover,
.tab-btn:hover,
.expand-btn:hover,
.video-nav-btn:hover,
.calc-trigger-btn:hover,
.user-card-gear:hover,
.user-card-access:hover {
  border-color: #b8c3d3;
  background: #f8fafc;
}

.btn-danger {
  background: #b42318;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(180, 35, 24, 0.18);
}

.btn-danger:hover {
  background: #991b1b;
}

.form-grid,
.filters,
.tabs-group,
.config-tabs,
.report-filter-actions,
.form-actions,
.ti-actions,
.expense-actions,
.table-header-actions,
.quota-report-actions,
.dashboard-gerencial-actions {
  gap: 12px;
}

.filters,
.config-tabs,
.tabs,
.tabs-group,
.quota-report-actions,
.dashboard-gerencial-actions {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc !important;
  padding: 14px;
  box-shadow: none !important;
}

.tabs,
.tabs-group,
.config-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.tab,
.tab-btn {
  min-height: 38px;
  padding: 8px 14px;
}

.table-wrap,
.quota-report-table-wrap,
.expense-table-wrap,
.vpn-table-wrap {
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

table {
  background: #ffffff;
}

th,
td {
  border-bottom: 1px solid #e5eaf1;
  color: #243044;
}

th,
table thead th {
  background: #f1f5f9 !important;
  color: #111827;
  font-weight: 850;
  letter-spacing: 0;
}

tbody tr {
  transition: background-color 120ms ease;
}

tbody tr:nth-child(even) {
  background: #fbfcfe;
}

tbody tr:hover {
  background: #f0f7f5;
}

.pagination {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.report-progress-track,
.dashboard-progress {
  height: 9px;
  border-radius: 999px;
  background: #e5eaf1;
}

.report-progress-bar,
.dashboard-progress span {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.report-loading-overlay,
.ti-modal-backdrop,
.custom-modal-backdrop,
.product-calc-modal {
  background: rgba(17, 24, 39, 0.48) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.report-loading-content,
.ti-modal-card,
.custom-modal-card,
.ramais-card {
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: var(--shadow-lg) !important;
}

.ti-modal-header,
.custom-modal-header {
  border-bottom: 1px solid #eef2f7;
  background: #ffffff !important;
}

.ti-close {
  width: auto;
  min-width: 38px;
}

.radio-option,
.checkbox-option,
.checkbox-label,
.user-access-row,
.quick-link-admin-card,
.bio-admin-card,
.rh-notice-card,
.calendar-alert-card,
.perfil-destaque-item {
  border-radius: 8px !important;
}

.checkbox-label,
.radio-option,
.checkbox-option {
  background: #ffffff;
  border: 1px solid var(--border);
}

.login-card {
  max-width: 450px;
  padding: 32px;
}

.login-card h1 {
  margin-bottom: 8px;
}

body.home-redesign {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(244, 246, 248, 0.94)),
    linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
  color: var(--text);
}

body.home-redesign .content-wrap {
  padding-left: 64px;
}

body.home-redesign .page-main.home-main,
.home-main {
  display: grid;
  gap: 18px;
  padding: 24px 28px 42px;
}

.home-hero,
body.home-redesign .home-hero,
.banner-preview-hero {
  min-height: 252px;
  display: grid;
  align-items: end;
  padding: 28px;
  border-radius: 8px !important;
  border: 1px solid rgba(17, 24, 39, 0.18) !important;
  overflow: hidden;
  background-image:
    linear-gradient(110deg, rgba(17, 24, 39, 0.90), rgba(17, 24, 39, 0.70) 48%, rgba(15, 118, 110, 0.58)),
    var(--home-hero-banner-image),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.10) 0 1px, transparent 1px 14px);
  background-size: cover, cover, auto;
  background-position: center, center, center;
  box-shadow: var(--shadow-md) !important;
}

.home-hero::before,
.home-hero::after,
.banner-preview-hero::before,
.banner-preview-hero::after {
  display: none !important;
}

.hero-overlay,
body.home-redesign .hero-overlay,
.banner-preview-hero .hero-overlay {
  max-width: 680px;
  margin: 0;
  padding: 0;
  background: none !important;
  color: #ffffff;
}

.hero-eyebrow,
body.home-redesign .hero-eyebrow {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #d1fae5;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.home-hero h1,
body.home-redesign .home-hero h1,
.banner-preview-hero h1 {
  max-width: 760px;
  margin: 12px 0 10px;
  color: #ffffff;
  font-size: 2.8rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-subtitle,
body.home-redesign .hero-subtitle {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
}

.home-shortcuts,
body.home-redesign .home-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  max-height: none;
  overflow: visible;
}

.shortcut-item,
.shortcut-button,
body.home-redesign .shortcut-item,
body.home-redesign .shortcut-button {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  text-align: left;
  overflow: hidden;
}

.shortcut-item::before,
.shortcut-button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.shortcut-icon,
body.home-redesign .shortcut-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  box-shadow: none;
}

.shortcut-item strong,
.shortcut-button strong,
body.home-redesign .shortcut-item strong,
body.home-redesign .shortcut-button strong {
  color: var(--text);
  font-size: 0.98rem;
}

.home-duo,
.home-trio,
.home-highlights,
.resource-grid,
.stock-report-metrics,
.charts-grid,
.users-cards,
.video-admin-grid,
.rh-notices-grid,
.calendar-alerts-grid,
.expense-summary-grid,
.expense-ranking-grid,
.vpn-summary-grid,
.vpn-history-grid,
.dashboard-gerencial-summary,
.dashboard-gerencial-widgets {
  gap: 14px;
}

.home-trio,
body.home-redesign .home-trio {
  grid-template-columns: minmax(250px, 0.9fr) minmax(280px, 1.2fr) minmax(260px, 0.9fr);
}

.home-highlights,
body.home-redesign .home-highlights {
  grid-template-columns: minmax(360px, 1.15fr) minmax(260px, 0.85fr) minmax(260px, 0.85fr);
}

.home-list-card li,
#homeQuickLinksList li,
#homeNoticesList a,
.spotlight-profile-item {
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #f8fafc;
}

.notice-title-main,
.home-list-card a,
.spotlight-content h4,
.resource-item {
  color: #17324d;
}

.video-card .video-container {
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  gap: 16px;
}

.video-player-wrapper,
.home-video-player,
.spotlight-media,
.bio-public-card,
.sugestoes-card {
  border-radius: 8px !important;
}

.spotlight-card {
  padding: 16px;
}

.spotlight-card h3 {
  padding: 0;
}

.spotlight-media {
  min-height: 220px;
  margin-top: 10px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(217, 119, 6, 0.12)),
    linear-gradient(135deg, #f8fafc, #e8edf3);
}

.spotlight-tag,
.section-eyebrow,
.dashboard-kicker,
.reports-portal-eyebrow,
display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.resource-item {
  min-height: 96px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: #ffffff !important;
}

.resource-item::before {
  display: none;
}

.calendar-widget,
#homeCalendar {
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid #edf1f6;
}

.cal-day {
  border-radius: 6px;
}

.cal-day.is-today {
  background: var(--primary) !important;
  color: #ffffff !important;
}

.cal-day.has-alert {
  box-shadow: inset 0 -3px 0 var(--accent);
}

.cal-day.has-holiday {
  box-shadow: inset 0 -3px 0 var(--secondary);
}

.chart-card,
.pie-chart,
.line-chart,
.bar-chart {
  background: #ffffff;
}

.pie-chart {
  background: conic-gradient(var(--primary) 0 40%, var(--secondary) 40% 68%, var(--accent) 68% 84%, #94a3b8 84% 100%);
}

.line-chart::before {
  background: linear-gradient(135deg, transparent 40%, rgba(15, 118, 110, 0.14) 40% 58%, transparent 58%);
}

.bar {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.stock-report-metric-card,
.expense-summary-card,
.vpn-stat-card,
.dashboard-status-card,
.dashboard-kpi-card,
.dashboard-gerencial-summary > div {
  background:
    linear-gradient(180deg, #ffffff, #f8fafc) !important;
  border-left: 4px solid var(--primary) !important;
}

.stock-report-metric-card strong,
.expense-summary-card strong,
.vpn-stat-card strong,
.dashboard-kpi-card strong,
.dashboard-gerencial-summary strong {
  color: #111827;
}

.margin-pill-positive,
.stock-status-pill-light,
.vpn-status-pill.is-online {
  background: #dcfce7 !important;
  color: #166534 !important;
}

.margin-pill-negative,
.stock-status-pill-critical,
.vpn-status-pill.is-offline {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

.stock-status-pill-moderate {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.vpn-monitor-page,
.expense-report-page,
.dashboard-page {
  display: grid;
  gap: 16px;
}

.vpn-monitor-hero,
.expense-report-hero,
.dashboard-hero,
.dashboard-theme-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(135deg, #ffffff, #f8fafc) !important;
}

.vpn-card-head,
.dashboard-topline,
.dashboard-panel-header,
.dashboard-widget header,
.quota-editor-header,
.videos-list-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vpn-history-panel,
.expense-ranking-card,
.dashboard-widget,
.dashboard-panel {
  padding: 16px;
}

.vpn-type-pill {
  background: var(--secondary-soft) !important;
  color: #1d4ed8 !important;
}

.vpn-history-chart,
.expense-chart-bars,
.dashboard-line-chart svg,
.dashboard-columns {
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #f8fafc !important;
}

.expense-autocomplete {
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.expense-table-wrap table th button {
  color: #111827;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}

.quota-editor-panel {
  border-color: var(--border) !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
}

.quota-report-table-wrap {
  overflow: auto;
}

.store-quota-table th,
.store-quota-table td {
  border: 1px solid #d8dee8 !important;
}

.store-quota-table thead th {
  background: #eef2f6 !important;
}

.store-quota-table .quota-blue-row th,
.store-quota-table .quota-blue-row td {
  background: #dbeafe !important;
}

.store-quota-table .quota-green-row th,
.store-quota-table .quota-green-row td {
  background: #dcfce7 !important;
}

.store-quota-table .quota-yellow-row th,
.store-quota-table .quota-yellow-row td {
  background: #fef3c7 !important;
}

.dashboard-page-compact {
  max-width: 1680px;
}

.dashboard-book-live {
  padding: 18px;
}

.dashboard-bookmarks,
.dashboard-bookmarks-live {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
}

.dashboard-bookmark-tab,
.dashboard-bookmarks-live .dashboard-bookmark-tab,
.dashboard-report-card,
.dashboard-theme-toggle {
  border-radius: 8px !important;
  border: 1px solid var(--border);
  background: #ffffff;
}

.dashboard-bookmark-tab.is-active,
.dashboard-bookmarks-live .dashboard-bookmark-tab.is-active,
.dashboard-report-card.is-active {
  border-color: rgba(15, 118, 110, 0.34);
  background: var(--primary-soft);
  color: var(--primary-strong);
  box-shadow: inset 0 3px 0 var(--primary);
}

.dashboard-book-body-live,
.dashboard-report-frame-live {
  border-radius: 8px;
  border-color: var(--border);
  background: #ffffff;
}

.dashboard-widget-editor,
.dashboard-card-grid div,
.dashboard-donut-list div,
.dashboard-gerencial-status-card,
.dashboard-chart-empty,
.dashboard-gerencial-empty {
  border-radius: 8px !important;
  border-color: var(--border) !important;
  background: #f8fafc !important;
}

.slice-0 { fill: #0f766e; background: #0f766e; }
.slice-1 { fill: #2563eb; background: #2563eb; }
.slice-2 { fill: #d97706; background: #d97706; }
.slice-3 { fill: #7c3aed; background: #7c3aed; }
.slice-4 { fill: #0891b2; background: #0891b2; }

.sugestoes-lista {
  display: grid;
  gap: 12px;
}

.sugestoes-card {
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #ffffff !important;
  box-shadow: none;
}

.sugestoes-tipo {
  border-radius: 999px;
}

.sugestoes-loja,
.sugestoes-nome {
  background: var(--secondary-soft);
  color: #1d4ed8;
}

.password-change-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.user-card {
  padding: 16px;
}

.user-card-head,
.user-actions,
.bio-admin-actions,
.rh-notice-actions,
.calendar-alert-actions,
.perfil-destaque-item-actions {
  flex-wrap: wrap;
}

.linkbio-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.84)),
    linear-gradient(135deg, #111827, #0f766e);
  color: #ffffff;
}

.linkbio-body::before {
  display: none;
}

.blob {
  display: none !important;
}

.linkbio-main {
  width: min(100%, 720px);
}

.linkbio-header h1,
.linkbio-header p {
  color: #ffffff;
}

.bio-public-card {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.10) !important;
  color: #ffffff;
}

.bio-public-card:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}

.bio-public-dot {
  background: var(--accent);
}

.careers-shell {
  gap: 18px;
}

.careers-grid {
  gap: 14px;
}

.careers-grid label {
  color: #344054 !important;
}

.reports-portal-card {
  max-width: min(100%, 980px);
}

.reports-honeycomb-grid,
.reports-honeycomb-wrap {
  background: #ffffff;
}

.reports-honeycomb-item,
.reports-portal-report {
  border-radius: 8px !important;
}

.product-lookup-tab,
.product-lookup-panel,
.product-lookup-option,
.product-lookup-card,
.product-calc-content,
.product-calc-display,
.product-calc-grid button {
  border-radius: 8px !important;
}

.product-lookup-tab {
  background: var(--primary);
}

.product-lookup-option.active,
.product-lookup-option:hover {
  border-color: rgba(15, 118, 110, 0.34);
  background: var(--primary-soft);
}

.mari-btn {
  border-radius: 999px;
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

@media (min-width: 1280px) {
  .page-main,
  .home-main {
    padding: 28px 34px 44px;
  }
}

@media (max-width: 1180px) {
  .home-shortcuts,
  body.home-redesign .home-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-trio,
  body.home-redesign .home-trio,
  .home-highlights,
  body.home-redesign .home-highlights,
  .video-card .video-container,
  .vpn-history-grid,
  .expense-ranking-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .content-wrap,
  body.home-redesign .content-wrap {
    padding-left: 0;
  }

  .topbar {
    margin: 12px 12px 0;
  }

  .page-main,
  .home-main,
  body.home-redesign .page-main.home-main {
    padding: 18px 12px 30px;
  }

  .sidebar {
    width: min(86vw, 306px);
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 1.62rem;
  }

  h2 {
    font-size: 1.24rem;
  }

  .topbar,
   .topbar-home,
   .vpn-monitor-hero,
   .expense-report-hero,
   .dashboard-theme-head {
     flex-direction: column;
    align-items: stretch;
  }

  .topbar-right,
  .topbar-home-right {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-search {
    width: 100%;
    min-width: 0;
  }

  .home-hero,
  body.home-redesign .home-hero,
  .banner-preview-hero {
    min-height: 230px;
    padding: 20px;
  }

  .home-hero h1,
  body.home-redesign .home-hero h1,
  .banner-preview-hero h1 {
    font-size: 2rem;
  }

  .home-shortcuts,
  body.home-redesign .home-shortcuts,
  .resource-grid,
  .filters,
  .form-grid,
  .careers-grid,
  .expense-summary-grid,
  .vpn-summary-grid,
  .dashboard-gerencial-summary,
  .dashboard-gerencial-widgets {
    grid-template-columns: 1fr;
  }

  .shortcut-item,
  .shortcut-button,
  body.home-redesign .shortcut-item,
  body.home-redesign .shortcut-button {
    min-height: 96px;
  }

  .table-header-actions,
  .vpn-card-head,
  .dashboard-topline,
  .quota-editor-header {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .login-body {
    padding: 16px;
  }

  .login-card {
    padding: 24px 18px;
  }

  .card,
  .filters,
  .table-wrap,
  .ti-modal-card,
  .custom-modal-card {
    border-radius: 8px !important;
  }

  .page-main,
  .home-main,
  body.home-redesign .page-main.home-main {
    padding-inline: 10px;
  }
}

/* Ajustes finais apos verificacao visual */
.topbar {
  border-radius: 8px !important;
}

body.home-redesign .topbar.topbar-home,
.topbar-home {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.96)) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
}

body.home-redesign .topbar-home .topbar-search input,
body.home-redesign .topbar-home .welcome-pill,
body.home-redesign .topbar-home .btn-ghost,
.topbar-home .topbar-search input,
.topbar-home .welcome-pill,
.topbar-home .btn-ghost {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.10) !important;
  color: #ffffff !important;
}

body.home-redesign .topbar-home .topbar-search input::placeholder,
.topbar-home .topbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.66) !important;
}

.home-hero,
body.home-redesign .home-hero,
.banner-preview-hero {
  min-height: 252px !important;
  padding: 28px !important;
  border-radius: 8px !important;
  background:
    linear-gradient(110deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.72) 48%, rgba(15, 118, 110, 0.64)),
    var(--home-hero-banner-image, linear-gradient(135deg, #111827, #0f766e)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.10) 0 1px, transparent 1px 14px) !important;
  background-size: cover, cover, auto !important;
  background-position: center, center, center !important;
}

body.home-redesign .hero-overlay,
.hero-overlay,
.banner-preview-hero .hero-overlay {
  max-width: 760px !important;
}

body.home-redesign .home-hero h1,
.home-hero h1,
.banner-preview-hero h1 {
  max-width: 760px !important;
  font-size: 2.8rem !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

body.home-redesign .hero-subtitle,
.hero-subtitle {
  max-width: 720px !important;
  font-size: 1.04rem !important;
}

.vpn-monitor-header-btn,
.vpn-monitor-label {
  min-width: max-content;
  white-space: nowrap;
}

.dashboard-report-card,
.dashboard-bookmark-tab,
.dashboard-bookmarks-live .dashboard-bookmark-tab {
  color: var(--text) !important;
  opacity: 1 !important;
  filter: none !important;
}

.dashboard-report-card span,
.dashboard-report-card strong,
.dashboard-report-card small,
.dashboard-bookmark-tab span,
.dashboard-bookmark-tab strong,
.dashboard-bookmark-tab small,
.dashboard-bookmarks-live .dashboard-bookmark-tab span,
.dashboard-bookmarks-live .dashboard-bookmark-tab strong,
.dashboard-bookmarks-live .dashboard-bookmark-tab small {
  color: inherit !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}

.dashboard-report-card::before,
.dashboard-bookmark-tab::before,
.dashboard-bookmark-tab::after {
  opacity: 0 !important;
}

.dashboard-report-card.is-active,
.dashboard-bookmark-tab.is-active,
.dashboard-bookmarks-live .dashboard-bookmark-tab.is-active {
  color: var(--primary-strong) !important;
}

.linkbio-body .muted,
.linkbio-body .hint {
  color: rgba(255, 255, 255, 0.68) !important;
}

/* ========================================================================== */
/* Tema azul-ciano e movimento leve                                           */
/* ========================================================================== */
:root {
  --bg-0: #f2f8fc;
  --bg-1: #e6f3fb;
  --surface: #ffffff;
  --surface-soft: #f5fbff;
  --surface-elevated: rgba(255, 255, 255, 0.97);
  --text: #0f1f33;
  --muted: #61748a;
  --border: #cfe1ee;
  --primary: #0891b2;
  --primary-strong: #0e7490;
  --primary-soft: #e0f7ff;
  --secondary: #2563eb;
  --secondary-soft: #eaf1ff;
  --accent: #f59e0b;
  --accent-soft: #fff7e6;
  --sidebar-1: #0b1f33;
  --sidebar-2: #0e3a53;
  --shadow-lg: 0 22px 54px rgba(8, 74, 110, 0.16);
  --shadow-md: 0 14px 34px rgba(8, 74, 110, 0.11);
  --shadow-sm: 0 6px 18px rgba(8, 74, 110, 0.075);
  --enf-focus: 0 0 0 4px rgba(14, 165, 233, 0.20);
  --enf-motion-fast: 150ms;
  --enf-motion-med: 340ms;
  --enf-motion-slow: 520ms;
  --enf-ease: cubic-bezier(.2,.8,.2,1);
  --enf-parallax-y: 0px;
  --enf-pointer-x: 0px;
  --enf-pointer-y: 0px;
}

body {
  background:
    radial-gradient(circle at 8% -10%, rgba(34, 211, 238, 0.15), transparent 30%),
    radial-gradient(circle at 94% 4%, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(180deg, #f8fcff 0%, #edf7fd 48%, #f6fbff 100%) !important;
}

body::selection {
  background: rgba(14, 165, 233, 0.22) !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: var(--enf-focus) !important;
}

body.home-redesign .vpn-monitor-header-btn {
  display: none !important;
}

.sidebar {
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.20), transparent 34%),
    linear-gradient(180deg, var(--sidebar-2), var(--sidebar-1)) !important;
}

.sidebar-eyebrow,
.hero-eyebrow,
body.home-redesign .hero-eyebrow,
.section-eyebrow,
.dashboard-kicker,
.reports-portal-eyebrow {
  color: #a5f3fc !important;
}

.menu-item:hover,
.menu-item.active,
.menu-toggle.active {
  box-shadow: inset 3px 0 0 #22d3ee !important;
}

.topbar-home,
body.home-redesign .topbar.topbar-home {
  background:
    linear-gradient(90deg, rgba(8, 31, 51, 0.98), rgba(10, 61, 86, 0.96)) !important;
}

.btn-primary,
.tab.active,
.tab-btn.active {
  background: linear-gradient(135deg, #0891b2, #0ea5e9) !important;
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.24) !important;
}

.btn-primary:hover,
.tab.active:hover,
.tab-btn.active:hover {
  background: linear-gradient(135deg, #0e7490, #0284c7) !important;
  box-shadow: 0 16px 34px rgba(8, 145, 178, 0.30) !important;
}

.shortcut-item::before,
.shortcut-button::before {
  background: linear-gradient(90deg, #2563eb, #22d3ee) !important;
}

.shortcut-icon,
body.home-redesign .shortcut-icon,
.spotlight-tag,
.section-eyebrow,
.dashboard-kicker,
.reports-portal-eyebrow,
.notice-category-pill,
.enf-category-pill {
  background: var(--primary-soft) !important;
  color: var(--primary-strong) !important;
  border-color: rgba(8, 145, 178, 0.20) !important;
}

.reports-shortcut-icon {
  background: linear-gradient(135deg, #2563eb, #0891b2) !important;
  color: #ffffff !important;
}

.reports-shortcut-icon-img {
  filter: drop-shadow(0 2px 4px rgba(8, 31, 51, 0.22));
  opacity: 1 !important;
}

.home-hero,
body.home-redesign .home-hero,
.banner-preview-hero {
  background:
    linear-gradient(110deg, rgba(7, 24, 42, 0.92), rgba(8, 47, 73, 0.74) 45%, rgba(14, 165, 233, 0.58)),
    var(--home-hero-banner-image, linear-gradient(135deg, #0b1f33, #0891b2)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 14px) !important;
  background-position:
    center calc(50% + var(--enf-parallax-y)),
    center calc(50% + var(--enf-parallax-y)),
    center !important;
  transition: background-position 80ms linear, box-shadow var(--enf-motion-med) var(--enf-ease), transform var(--enf-motion-med) var(--enf-ease) !important;
}

body.enf-interactive-ready .home-hero .hero-overlay,
body.enf-interactive-ready .banner-preview-hero .hero-overlay {
  transform: translate3d(calc(var(--enf-pointer-x) * -0.28), calc(var(--enf-pointer-y) * -0.22), 0);
  transition: transform 180ms linear;
  will-change: transform;
}

body.enf-page-enter .content-wrap,
body.enf-page-enter .login-card,
body.enf-page-enter .linkbio-main {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.992);
  filter: blur(3px);
}

body.enf-page-ready .content-wrap,
body.enf-page-ready .login-card,
body.enf-page-ready .linkbio-main {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  transition:
    opacity 360ms var(--enf-ease),
    transform 420ms var(--enf-ease),
    filter 420ms var(--enf-ease);
}

body.enf-page-leaving .content-wrap,
body.enf-page-leaving .login-card,
body.enf-page-leaving .linkbio-main {
  opacity: 0;
  transform: translate3d(0, -8px, 0) scale(0.992);
  filter: blur(3px);
  transition:
    opacity 170ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

body.enf-interactive-ready .card,
body.enf-interactive-ready .shortcut-item,
body.enf-interactive-ready .resource-item,
body.enf-interactive-ready .bio-admin-card,
body.enf-interactive-ready .chart-card,
body.enf-interactive-ready .user-card,
body.enf-interactive-ready .dashboard-report-card,
body.enf-interactive-ready .dashboard-bookmark-tab,
body.enf-interactive-ready .expense-summary-card,
body.enf-interactive-ready .vpn-stat-card {
  transition:
    transform var(--enf-motion-med) var(--enf-ease),
    opacity var(--enf-motion-med) var(--enf-ease),
    filter var(--enf-motion-med) var(--enf-ease),
    box-shadow var(--enf-motion-med) var(--enf-ease),
    border-color var(--enf-motion-med) var(--enf-ease),
    background var(--enf-motion-med) var(--enf-ease) !important;
}

body.enf-interactive-ready .shortcut-item:hover,
body.enf-interactive-ready .resource-item:hover,
body.enf-interactive-ready .bio-admin-card:hover,
body.enf-interactive-ready .user-card:hover,
body.enf-interactive-ready .dashboard-report-card:hover,
body.enf-interactive-ready .dashboard-bookmark-tab:hover,
body.enf-interactive-ready .expense-summary-card:hover,
body.enf-interactive-ready .vpn-stat-card:hover {
  transform: translate3d(0, -3px, 0) scale(1.006) !important;
  border-color: rgba(14, 165, 233, 0.34) !important;
  box-shadow: 0 18px 42px rgba(8, 74, 110, 0.13) !important;
}

.enf-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  filter: blur(5px);
  transition:
    opacity 560ms var(--enf-ease),
    transform 620ms var(--enf-ease),
    filter 620ms var(--enf-ease) !important;
  will-change: opacity, transform;
}

.enf-reveal-left {
  transform: translate3d(-20px, 8px, 0);
}

.enf-reveal-right {
  transform: translate3d(20px, 8px, 0);
}

.enf-reveal-zoom {
  transform: translate3d(0, 12px, 0) scale(0.975);
}

.enf-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.home-hero .hero-eyebrow,
.home-hero h1,
.home-hero .hero-subtitle,
.banner-preview-hero .hero-eyebrow,
.banner-preview-hero h1,
.banner-preview-hero .hero-subtitle {
  animation: enfHeroTextIn 620ms var(--enf-ease) both;
}

.home-hero h1,
.banner-preview-hero h1 {
  animation-delay: 80ms;
}

.home-hero .hero-subtitle,
.banner-preview-hero .hero-subtitle {
  animation-delay: 150ms;
}

@keyframes enfHeroTextIn {
  from {
    opacity: 0;
    transform: translate3d(-12px, 10px, 0) scale(0.985);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

.report-loading-spinner {
  border-top-color: #0ea5e9 !important;
}

.report-progress-bar,
.dashboard-progress span,
.dashboard-bar-track i,
.dashboard-column-bar,
.bar,
.expense-bar-fill,
.vpn-chart-bar span {
  background: linear-gradient(90deg, #0891b2, #0ea5e9) !important;
}

.pie-chart {
  background: conic-gradient(#0891b2 0 40%, #2563eb 40% 68%, #22d3ee 68% 84%, #f59e0b 84% 100%) !important;
}

.slice-0 { fill: #0891b2 !important; background: #0891b2 !important; }
.slice-1 { fill: #2563eb !important; background: #2563eb !important; }
.slice-2 { fill: #22d3ee !important; background: #22d3ee !important; }
.slice-3 { fill: #f59e0b !important; background: #f59e0b !important; }

.mari-btn,
.enf-back-to-top {
  background: linear-gradient(135deg, #0891b2, #0ea5e9) !important;
  box-shadow: 0 16px 36px rgba(8, 145, 178, 0.26) !important;
}

.ti-modal:not(.hidden) .ti-modal-backdrop,
.enf-modal:not(.hidden) .enf-modal-backdrop {
  animation: enfModalBackdropIn 280ms ease both;
}

.ti-modal:not(.hidden) .ti-modal-card,
.enf-modal:not(.hidden) .enf-modal-card,
.custom-modal .custom-modal-card {
  transform-origin: 50% 115%;
  animation: enfMagicLampIn 520ms var(--enf-ease) both !important;
  will-change: transform, opacity, filter;
}

.ti-modal.enf-magic-closing .ti-modal-backdrop,
.enf-modal.enf-magic-closing .enf-modal-backdrop,
.custom-modal.enf-magic-closing .custom-modal-backdrop {
  animation: enfModalBackdropOut 420ms ease both !important;
}

.ti-modal.enf-magic-closing .ti-modal-card,
.enf-modal.enf-magic-closing .enf-modal-card,
.custom-modal.enf-magic-closing .custom-modal-card {
  animation: enfMagicLampOut 420ms cubic-bezier(.7,0,.84,0) both !important;
}

.ti-modal-card::after,
.enf-modal-card::after,
.custom-modal-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 150px;
  height: 42px;
  pointer-events: none;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, rgba(34, 211, 238, 0.24), rgba(34, 211, 238, 0) 66%);
  opacity: 0;
}

.ti-modal:not(.hidden) .ti-modal-card::after,
.enf-modal:not(.hidden) .enf-modal-card::after,
.custom-modal .custom-modal-card::after {
  animation: enfMagicSmoke 620ms ease-out both;
}

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

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

@keyframes enfMagicLampIn {
  0% {
    opacity: 0;
    transform: translate3d(-44px, 34px, 0) scale(0.28, 0.08) rotate(-7deg) skewX(-16deg);
    filter: blur(12px) saturate(1.35);
  }
  42% {
    opacity: 1;
    transform: translate3d(8px, -8px, 0) scale(1.04, 0.94) rotate(2deg) skewX(3deg);
    filter: blur(1px) saturate(1.14);
  }
  72% {
    transform: translate3d(0, 3px, 0) scale(0.992, 1.012) rotate(-0.8deg) skewX(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0) skewX(0);
    filter: blur(0) saturate(1);
  }
}

@keyframes enfMagicLampOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0) saturate(1);
  }
  38% {
    opacity: 0.92;
    transform: translate3d(10px, -6px, 0) scale(0.96, 1.02) rotate(2deg) skewX(5deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(48px, 36px, 0) scale(0.18, 0.06) rotate(9deg) skewX(18deg);
    filter: blur(14px) saturate(1.45);
  }
}

@keyframes enfMagicSmoke {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.5);
    filter: blur(10px);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-34px) scale(1.35);
    filter: blur(18px);
  }
}

@media (max-width: 760px) {
  .home-hero,
  body.home-redesign .home-hero,
  .banner-preview-hero {
    min-height: 224px !important;
    padding: 20px !important;
  }

  body.home-redesign .home-hero h1,
  .home-hero h1,
  .banner-preview-hero h1 {
    font-size: 2rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.enf-page-enter .content-wrap,
  body.enf-page-enter .login-card,
  body.enf-page-enter .linkbio-main,
  body.enf-page-ready .content-wrap,
  body.enf-page-ready .login-card,
  body.enf-page-ready .linkbio-main,
  body.enf-page-leaving .content-wrap,
  body.enf-page-leaving .login-card,
  body.enf-page-leaving .linkbio-main,
  .enf-reveal,
  .home-hero .hero-eyebrow,
  .home-hero h1,
  .home-hero .hero-subtitle,
  .ti-modal-card,
  .enf-modal-card,
  .custom-modal-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

/* ===== Correção 2026-05-17: sidebar legível + remoção visual do Monitor VPN ===== */
.sidebar,
.app-container .sidebar {
  background: linear-gradient(180deg, #f8fbff 0%, #e6f1ff 100%) !important;
  color: #102a46 !important;
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow: none !important;
  border-right: 1px solid #b9d2ee !important;
}

.sidebar-header,
.app-container .sidebar-header {
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: #c4d9f2 !important;
}

.sidebar-header h2,
.app-container .sidebar-header h2,
.sidebar .sidebar-eyebrow,
.sidebar .menu-item,
.sidebar .submenu .menu-item,
.app-container .sidebar-nav a {
  color: #102a46 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.sidebar .sidebar-eyebrow {
  color: #16709f !important;
  font-weight: 800 !important;
}

.sidebar .menu-item,
.app-container .sidebar-nav a {
  background: rgba(255, 255, 255, 0.54) !important;
  border: 1px solid transparent !important;
  font-weight: 700 !important;
}

.sidebar .menu-item:hover,
.sidebar .menu-item.active,
.app-container .sidebar-nav a:hover,
.app-container .sidebar-nav a.active {
  background: #dff0ff !important;
  border-color: #8fc5ee !important;
  color: #073b66 !important;
  box-shadow: inset 4px 0 0 #16b7d8 !important;
}

.sidebar .submenu .menu-item {
  color: #1f466c !important;
}

.sidebar a[href="relatorio-vpn.html"],
.sidebar a[href="dashboard.html?report=vpn"],
a.vpn-monitor-header-btn,
.vpn-monitor-header-btn {
  display: none !important;
}

/* Tela cheia para relatórios */
.report-fullscreen-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 14px;
  position: sticky;
  top: 12px;
  z-index: 30;
  pointer-events: none;
}

.report-fullscreen-actions > button {
  pointer-events: auto;
}

.report-fullscreen-enter {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(29, 78, 216, 0.18);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
  font-weight: 800;
}

.report-fullscreen-exit {
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  font-weight: 900;
}

body.report-fullscreen-active {
  overflow: hidden;
}

body.report-fullscreen-active .sidebar,
body.report-fullscreen-active .topbar,
body.report-fullscreen-active .enf-back-to-top,
body.report-fullscreen-active .enf-mobile-nav,
body.report-fullscreen-active .compact-density-toggle {
  display: none !important;
}

.report-fullscreen-target {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: auto !important;
  border-radius: 0 !important;
  background: linear-gradient(135deg, #f8fbff 0%, #eef8ff 48%, #ffffff 100%) !important;
  box-shadow: none !important;
  padding: 22px clamp(14px, 2vw, 30px) 34px !important;
}

.report-fullscreen-target .report-fullscreen-actions {
  position: sticky;
  top: 0;
  margin: -4px 0 12px;
  padding: 6px 0 8px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(248, 251, 255, 0.78));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.report-fullscreen-target .report-fullscreen-enter {
  display: none !important;
}

.report-fullscreen-target .report-fullscreen-exit {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.report-fullscreen-target table {
  font-size: 0.94rem;
}

.report-fullscreen-target .table-wrapper,
.report-fullscreen-target .margin-report-table-wrapper,
.report-fullscreen-target .stock-report-table-wrapper,
.report-fullscreen-target .expense-report-table-wrapper,
.report-fullscreen-target .quota-report-table-wrapper {
  max-height: none;
}

.report-fullscreen-target .dashboard-report-frame,
.report-fullscreen-target iframe {
  min-height: calc(100vh - 150px);
}

@media (max-width: 720px) {
  .report-fullscreen-actions {
    justify-content: stretch;
  }

  .report-fullscreen-actions > button {
    width: 100%;
    justify-content: center;
  }

  .report-fullscreen-target {
    padding: 14px 10px 26px !important;
  }
}


/* Ajustes solicitados - dashboard */
.dashboard-report-card strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* Ajustes dashboard: nomenclatura, novos gráficos e mais paletas */
.dashboard-pie-wrap.has-nomenclature { grid-template-columns: minmax(260px, 380px) 1fr; }
.dashboard-pie-wrap.has-nomenclature svg { max-width: 340px; overflow: visible; }
.dashboard-pie-callout-line { fill: none; stroke-width: 1.35; stroke: #000; opacity: 1; stroke-linecap: square; shape-rendering: geometricPrecision; }
.dashboard-pie-callout-text { font-size: 8.5px; font-weight: 800; dominant-baseline: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; letter-spacing: .01em; }
.dashboard-widget-editor [data-widget-nomenclature] { align-self: end; padding: .28rem .5rem; min-height: auto; font-size: .68rem; line-height: 1.05; border-radius: 999px; }
.slice-text-0 { fill:#0891b2 !important; }
.slice-text-1 { fill:#2563eb !important; }
.slice-text-2 { fill:#22d3ee !important; }
.slice-text-3 { fill:#f59e0b !important; }
.slice-text-4 { fill:#14b8a6 !important; }
.slice-text-5 { fill:#22c55e !important; }
.slice-text-6 { fill:#a855f7 !important; }
.slice-text-7 { fill:#ef4444 !important; }
.slice-text-8 { fill:#64748b !important; }
.slice-text-9 { fill:#0f172a !important; }
.slice-text-10 { fill:#84cc16 !important; }
.slice-text-11 { fill:#eab308 !important; }
.slice-text-12 { fill:#f97316 !important; }
.slice-text-13 { fill:#ec4899 !important; }
.slice-text-14 { fill:#8b5cf6 !important; }
.slice-text-15 { fill:#06b6d4 !important; }
.dashboard-ranked-list { display: grid; gap: .45rem; padding: 0; margin: 0; list-style: none; }
.dashboard-ranked-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: .55rem; align-items: center; border: 1px solid rgba(148,163,184,.24); border-radius: 13px; padding: .55rem .65rem; background: linear-gradient(180deg,#fff,#f8fafc); }
.dashboard-ranked-list b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: #e0f2fe; color: #075985; font-size: .78rem; }
.dashboard-ranked-list span { color: #334155; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-ranked-list strong { color: #0f172a; font-size: .82rem; white-space: nowrap; }
.dashboard-mini-table-compact td { padding: .38rem .45rem; }
.dashboard-bubble-chart { display: flex; align-items: center; justify-content: center; gap: .65rem; flex-wrap: wrap; min-height: 250px; padding: .75rem; border-radius: 16px; background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(241,245,249,.55)); }
.dashboard-bubble-chart span { width: var(--bubble); height: var(--bubble); border-radius: 999px; display: grid; place-items: center; text-align: center; color: #fff; padding: .45rem; box-shadow: 0 14px 30px rgba(15,23,42,.14); }
.dashboard-bubble-chart b { max-width: 95%; font-size: .64rem; line-height: 1.1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dashboard-bubble-chart strong { font-size: .68rem; margin-top: .15rem; }
.slice-0, .slice-stroke-0 { fill:#0891b2 !important; background:#0891b2 !important; stroke:#0891b2 !important; }
.slice-1, .slice-stroke-1 { fill:#2563eb !important; background:#2563eb !important; stroke:#2563eb !important; }
.slice-2, .slice-stroke-2 { fill:#22d3ee !important; background:#22d3ee !important; stroke:#22d3ee !important; }
.slice-3, .slice-stroke-3 { fill:#f59e0b !important; background:#f59e0b !important; stroke:#f59e0b !important; }
.slice-4, .slice-stroke-4 { fill:#14b8a6 !important; background:#14b8a6 !important; stroke:#14b8a6 !important; }
.slice-5, .slice-stroke-5 { fill:#22c55e !important; background:#22c55e !important; stroke:#22c55e !important; }
.slice-6, .slice-stroke-6 { fill:#a855f7 !important; background:#a855f7 !important; stroke:#a855f7 !important; }
.slice-7, .slice-stroke-7 { fill:#ef4444 !important; background:#ef4444 !important; stroke:#ef4444 !important; }
.slice-8, .slice-stroke-8 { fill:#64748b !important; background:#64748b !important; stroke:#64748b !important; }
.slice-9, .slice-stroke-9 { fill:#0f172a !important; background:#0f172a !important; stroke:#0f172a !important; }
.slice-10, .slice-stroke-10 { fill:#84cc16 !important; background:#84cc16 !important; stroke:#84cc16 !important; }
.slice-11, .slice-stroke-11 { fill:#eab308 !important; background:#eab308 !important; stroke:#eab308 !important; }
.slice-12, .slice-stroke-12 { fill:#f97316 !important; background:#f97316 !important; stroke:#f97316 !important; }
.slice-13, .slice-stroke-13 { fill:#ec4899 !important; background:#ec4899 !important; stroke:#ec4899 !important; }
.slice-14, .slice-stroke-14 { fill:#8b5cf6 !important; background:#8b5cf6 !important; stroke:#8b5cf6 !important; }
.slice-15, .slice-stroke-15 { fill:#06b6d4 !important; background:#06b6d4 !important; stroke:#06b6d4 !important; }
.theme-vibrante .dashboard-bar-track i, .theme-vibrante .dashboard-column-bar { background: linear-gradient(90deg,#ec4899,#8b5cf6,#06b6d4); }
.theme-calor .dashboard-bar-track i, .theme-calor .dashboard-column-bar { background: linear-gradient(90deg,#ef4444,#f97316,#f59e0b); }
.theme-frio .dashboard-bar-track i, .theme-frio .dashboard-column-bar { background: linear-gradient(90deg,#0ea5e9,#2563eb,#14b8a6); }
.theme-vibrante .dashboard-line-chart polyline, .theme-vibrante .dashboard-line-chart circle { stroke:#ec4899; }
.theme-vibrante .dashboard-line-chart polygon { fill:rgba(236,72,153,.16); }
.theme-calor .dashboard-line-chart polyline, .theme-calor .dashboard-line-chart circle { stroke:#f97316; }
.theme-calor .dashboard-line-chart polygon { fill:rgba(249,115,22,.16); }
.theme-frio .dashboard-line-chart polyline, .theme-frio .dashboard-line-chart circle { stroke:#0ea5e9; }
.theme-frio .dashboard-line-chart polygon { fill:rgba(14,165,233,.16); }
@media (max-width: 760px) {
  .dashboard-pie-wrap.has-nomenclature { grid-template-columns: 1fr; }
  .dashboard-ranked-list li { grid-template-columns: 28px minmax(0, 1fr); }
  .dashboard-ranked-list strong { grid-column: 2; }
}

/* Monitor VPN - controle de pausa por dispositivo */
.vpn-status-pill.is-paused {
  background: #fef3c7;
  color: #92400e;
}

.vpn-table tr.is-vpn-paused {
  background: #fff7ed;
}

.vpn-action-btn {
  min-width: 82px;
  white-space: nowrap;
  padding: 0.38rem 0.7rem;
}

.vpn-action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

/* Relatorio de vendas por categoria */
.category-sales-report-card {
  display: grid;
  gap: 18px;
}

.category-sales-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.category-sales-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: end;
}

.category-sales-actions label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--muted, #64748b);
  min-width: 180px;
}

.category-sales-summary {
  margin: 0;
}

.category-sales-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-sales-cards article {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.category-sales-cards span,
.category-sales-cards small {
  display: block;
  color: var(--muted, #64748b);
}

.category-sales-cards strong {
  display: block;
  margin: 6px 0;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  color: var(--text, #0f172a);
}

.category-sales-table-wrap {
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
}

.category-sales-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.category-sales-table th,
.category-sales-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  text-align: right;
  white-space: nowrap;
}

.category-sales-table th:first-child,
.category-sales-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: rgba(255, 255, 255, 0.96);
  z-index: 1;
}

.category-sales-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #64748b);
  background: rgba(248, 250, 252, 0.96);
}

.category-sales-table tbody tr:hover td {
  background: rgba(147, 51, 234, 0.055);
}

.category-sales-table .is-positive,
.category-sales-cards .is-positive {
  color: #15803d;
  font-weight: 700;
}

.category-sales-table .is-negative,
.category-sales-cards .is-negative {
  color: #b42318;
  font-weight: 700;
}

@media (max-width: 980px) {
  .category-sales-header {
    display: grid;
  }

  .category-sales-actions {
    justify-content: flex-start;
  }

  .category-sales-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .category-sales-cards {
    grid-template-columns: 1fr;
  }
}

/* Correções pontuais do Dashboard Gerencial: matriz categoria x loja e eixo cronológico de horários. */
.dashboard-heatmap-matrix {
  grid-template-columns: minmax(150px, 1.2fr) repeat(var(--heatmap-cols, 8), minmax(110px, 1fr));
  overflow-x: auto;
}
.dashboard-heatmap-matrix > strong {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
  justify-content: flex-start;
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 8px 0 12px rgba(15, 23, 42, 0.04);
}
.dashboard-heatmap-corner {
  position: sticky;
  left: 0;
  z-index: 3;
  font-weight: 800;
  color: #334155;
  background: rgba(241, 245, 249, 0.98);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.dashboard-heatmap-matrix b {
  min-width: 110px;
}
.dashboard-line-chart .dashboard-axis-labels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(42px, 1fr);
  overflow-x: auto;
}
.dashboard-line-chart .dashboard-axis-labels span {
  white-space: nowrap;
}

/* Builder da página separada de relatórios por categoria */
.category-report-builder-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.9));
}

.category-report-builder-panel h2 {
  margin: 4px 0 6px;
  color: var(--text, #0f172a);
}

.category-custom-reports {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.category-custom-report {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(147, 51, 234, 0.18);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  min-width: 0;
}

.category-custom-report > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.category-custom-report > header span {
  display: inline-flex;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.1);
  color: #6d28d9;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.category-custom-report h3 {
  margin: 8px 0 4px;
  color: var(--text, #0f172a);
}

.category-custom-report p {
  margin: 0;
  color: var(--muted, #64748b);
  font-size: 0.86rem;
}

.category-custom-report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.category-custom-report-actions .danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.22);
}

.category-report-list {
  display: grid;
  gap: 8px;
}

.category-report-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(241, 245, 249, 0.82);
}

.category-report-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text, #0f172a);
}

.category-report-list span {
  color: #312e81;
  font-weight: 800;
}

.category-report-list small,
.category-report-source-note {
  grid-column: 1 / -1;
  color: var(--muted, #64748b);
}

.category-sales-matrix {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(var(--category-report-cols, 7), minmax(108px, 1fr));
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-sales-matrix > * {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 8px;
  font-size: 0.78rem;
}

.category-sales-matrix .matrix-corner,
.category-sales-matrix b {
  background: rgba(241, 245, 249, 0.95);
  color: #334155;
  font-weight: 800;
  text-align: center;
}

.category-sales-matrix strong {
  justify-content: flex-start;
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
  box-shadow: 8px 0 12px rgba(15, 23, 42, 0.05);
}

.category-sales-matrix span {
  background: rgba(147, 51, 234, calc(0.08 + (var(--heat, 0.2) * 0.35)));
  color: #1e1b4b;
  font-weight: 800;
  white-space: nowrap;
}

.category-hour-bars {
  display: grid;
  gap: 9px;
}

.category-hour-bars > div {
  display: grid;
  grid-template-columns: 42px minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.category-hour-bars span {
  color: var(--muted, #64748b);
  font-size: 0.8rem;
}

.category-hour-bars b {
  height: 12px;
  width: var(--bar, 20%);
  min-width: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.35), rgba(79, 70, 229, 0.9));
}

.category-hour-bars strong {
  color: var(--text, #0f172a);
  font-size: 0.82rem;
}

.category-report-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.category-report-editor {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.category-report-editor header,
.category-report-editor footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.category-report-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted, #64748b);
  font-weight: 700;
}

.category-report-editor input,
.category-report-editor select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  color: var(--text, #0f172a);
  background: #fff;
}


.category-custom-reports {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.category-custom-report {
  grid-column: span var(--category-card-span, 6);
  min-height: var(--category-card-height, auto);
}

.category-custom-report.theme-executivo {
  border-color: rgba(15, 23, 42, 0.22);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.96));
}

.category-custom-report.theme-suave {
  border-color: rgba(14, 165, 233, 0.18);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.72), rgba(255, 255, 255, 0.95));
}

.category-custom-report.theme-suave > header span {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}

.category-custom-report.theme-executivo > header span {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.category-custom-report-body {
  min-height: 0;
  overflow: auto;
}

.category-report-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.category-report-editor-grid label:first-child {
  grid-column: 1 / -1;
}

.category-report-editor footer .danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.25);
}

@media (max-width: 960px) {
  .category-custom-report {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .category-report-editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .category-custom-report > header,
  .category-report-editor header,
  .category-report-editor footer {
    display: grid;
  }

  .category-custom-report-actions {
    justify-content: flex-start;
  }
}


/* Ajustes da pagina separada de relatorios por categoria */
.category-create-report-btn {
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}
.category-report-builder-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.category-report-builder-panel-header .btn-primary {
  flex: 0 0 auto;
}
.category-evolution-bars span {
  min-width: 90px;
}
@media (max-width: 900px) {
  .category-report-builder-panel-header {
    display: grid;
  }
  .category-report-builder-panel-header .btn-primary,
  .category-create-report-btn {
    width: fit-content;
  }
}

.category-report-bars {
  display: grid;
  gap: 10px;
}
.category-report-bars > div {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(120px, 2fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.75);
}
.category-report-bars > div > span {
  font-weight: 800;
  color: var(--text, #0f172a);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-report-bars b {
  display: block;
  width: var(--bar, 20%);
  min-width: 8px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.35), rgba(79, 70, 229, 0.9));
}
.category-report-bars strong {
  color: #312e81;
  font-size: 0.86rem;
}
.category-report-bars small {
  grid-column: 1 / -1;
  color: var(--muted, #64748b);
}
.category-report-bars.is-column {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  align-items: end;
  min-height: 220px;
}
.category-report-bars.is-column > div {
  grid-template-columns: 1fr;
  align-content: end;
  min-height: 180px;
  text-align: center;
}
.category-report-bars.is-column b {
  width: 100%;
  height: var(--bar, 20%);
  min-height: 8px;
  align-self: end;
}
.category-card-grid.dashboard-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.category-mini-table {
  width: 100%;
}

/* Ajustes reais - relatório de categorias separado */
.category-base-report-fixed {
  display: grid;
  gap: 12px;
}

.category-base-report-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.category-base-report-head h2 {
  margin: 4px 0 6px;
  color: var(--text, #0f172a);
}

.category-report-builder-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.category-pie-chart {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.category-pie-disc {
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--pie, #4f46e5 0 100%));
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 18px 34px rgba(15, 23, 42, 0.12);
  justify-self: center;
  position: relative;
  display: grid;
  place-items: center;
}

.category-pie-chart.is-donut .category-pie-disc::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.category-pie-disc span,
.category-pie-disc strong {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.category-pie-disc span {
  color: var(--muted, #64748b);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.category-pie-disc strong {
  max-width: 110px;
  color: var(--text, #0f172a);
  font-size: 0.82rem;
  line-height: 1.2;
}

.category-pie-legend {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.category-pie-legend div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.82);
}

.category-pie-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.category-pie-legend span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text, #0f172a);
  font-weight: 700;
}

.category-pie-legend strong {
  color: #312e81;
  font-size: 0.82rem;
}

.user-access-category-scope {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed rgba(147, 51, 234, 0.28);
  border-radius: 14px;
  background: rgba(250, 245, 255, 0.72);
}

.user-access-category-scope > strong {
  color: var(--text, #0f172a);
}

.user-access-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

@media (max-width: 820px) {
  .category-report-builder-panel-header,
  .category-base-report-head {
    display: grid;
  }

  .category-pie-chart {
    grid-template-columns: 1fr;
  }
}

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

.sr-only-label {
  gap: 0 !important;
}

/* Ajustes Vendas por Categoria: grupos de comparativo na tabela */
.category-sales-table thead .category-sales-table-groups th {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.category-sales-table thead .category-sales-table-groups th:nth-child(2),
.category-sales-table thead .category-sales-table-groups th:nth-child(3) {
  border-left: 2px solid #cbd5e1;
  border-right: 2px solid #cbd5e1;
}
.category-sales-table tbody td:nth-child(3),
.category-sales-table tbody td:nth-child(6),
.category-sales-table thead tr:nth-child(2) th:nth-child(3),
.category-sales-table thead tr:nth-child(2) th:nth-child(6) {
  border-left: 2px solid #cbd5e1;
}
.category-sales-table tbody td:nth-child(5),
.category-sales-table tbody td:nth-child(8),
.category-sales-table thead tr:nth-child(2) th:nth-child(5),
.category-sales-table thead tr:nth-child(2) th:nth-child(8) {
  border-right: 2px solid #cbd5e1;
}

/* Tabela de Preço */
.tabela-preco-page .content-wrap {
  background: #f5f7fb;
}

.tabela-preco-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
  display: grid;
  gap: 20px;
}

.tabela-preco-hero,
.tabela-preco-selector,
.tabela-preco-history,
.tabela-preco-products {
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.tabela-preco-hero {
  padding: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(231, 245, 255, 0.92));
}

.tabela-preco-hero h1,
.tabela-preco-selector h2,
.tabela-preco-history h2 {
  margin: 6px 0 0;
  color: #0f172a;
}

.tabela-preco-hero p {
  margin: 12px 0 0;
  max-width: 760px;
  color: #475569;
  line-height: 1.6;
}

.tabela-preco-selector {
  position: relative;
  overflow: visible !important;
  z-index: 2;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 20px;
  align-items: center;
}

.tabela-preco-selector.card {
  overflow: visible !important;
  contain: none !important;
  content-visibility: visible !important;
}

.tabela-preco-page .topbar.topbar-home {
  z-index: 100;
}

.price-table-dropdown {
  position: relative;
  z-index: 3;
}

.price-table-toggle {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.price-table-toggle:hover,
.price-table-toggle:focus-visible {
  border-color: #2563eb;
  outline: none;
}

.price-table-caret {
  color: #2563eb;
  font-size: 0.95rem;
}

.price-table-options {
  position: absolute;
  z-index: 4;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 6px;
  border: 1px solid #d7dde6;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  max-height: min(360px, calc(100vh - 180px));
  overflow-y: auto;
}

.price-table-options button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  background: #ffffff;
  color: #1e293b;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.price-table-options button:last-child {
  border-bottom: 0;
}

.price-table-options button:hover,
.price-table-options button:focus-visible {
  background: #eef6ff;
  color: #0f4c99;
  outline: none;
}

.tabela-preco-history {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.price-table-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
}

.price-history-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #f8fafc;
  padding: 28px;
  text-align: center;
  color: #475569;
}

.price-history-empty strong {
  display: block;
  color: #0f172a;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.price-history-table-wrap {
  overflow-x: auto;
}

.price-history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.price-history-table th,
.price-history-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.price-history-table th {
  color: #334155;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #64748b;
  font-weight: 700;
}

.price-filter-toggle-row {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.price-filter-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #2563eb;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.price-filter-toggle:hover,
.price-filter-toggle:focus-visible,
.price-filter-toggle.is-open {
  border-color: #2563eb;
  background: #eff6ff;
  outline: none;
}

.price-filter-panel {
  border-top: 1px solid #e2e8f0;
  padding-top: 18px;
}

.price-filter-panel h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 1.15rem;
}

.price-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) minmax(170px, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.price-filter-grid label {
  display: grid;
  gap: 7px;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 700;
}

.price-filter-grid input,
.price-filter-grid select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  padding: 0 10px;
  color: #0f172a;
  font: inherit;
}

.price-filter-grid input:focus,
.price-filter-grid select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.price-filter-button {
  min-height: 38px;
  padding: 0 16px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .tabela-preco-selector,
  .price-filter-grid {
    grid-template-columns: 1fr;
  }

  .price-filter-button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .tabela-preco-main {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .tabela-preco-hero,
  .tabela-preco-selector,
  .tabela-preco-history,
  .tabela-preco-products {
    padding: 18px;
  }

  .section-header-row,
  .price-pagination {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Tabela de Preço - integração MeuSIGE */
.tabela-preco-products {
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.price-table-helper,
.price-section-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.price-filter-toggle-row {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.price-filter-toggle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #2563eb;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.price-filter-toggle:hover,
.price-filter-toggle:focus-visible {
  border-color: #2563eb;
  outline: none;
}

.price-filter-panel-open {
  border-top: 1px solid #e2e8f0;
  padding-top: 18px;
}

.price-filter-grid-compact {
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
}

.price-loading-box {
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  padding: 18px 20px;
  color: #1e3a8a;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.10);
}

.price-loading-box strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
}

.price-loading-box p {
  margin: 0;
}

.price-products-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.price-products-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.price-products-table th,
.price-products-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

.price-products-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-products-table tbody tr:hover {
  background: #f8fbff;
}

.price-products-table td small {
  color: #64748b;
}

.price-sale-input {
  width: 110px;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 0 10px;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
}

.price-sale-input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.price-save-button {
  min-height: 36px;
  padding: 0 14px;
  white-space: nowrap;
}

.price-save-button:disabled,
#priceLoadButton:disabled,
.price-table-toggle:disabled {
  cursor: wait;
  opacity: 0.68;
}

@media (max-width: 980px) {
  .price-filter-grid-compact {
    grid-template-columns: 1fr;
  }

  .tabela-preco-products {
    padding: 18px;
  }
}


/* Ajustes Tabela de Preço - regras, massa e modais */
.tabela-preco-page .topbar,
.tabela-preco-page .topbar-home {
  position: sticky;
  top: 0;
  z-index: 120 !important;
}

.tabela-preco-selector {
  z-index: 5 !important;
  overflow: visible !important;
}

.tabela-preco-selector.card {
  overflow: visible !important;
  contain: none !important;
  content-visibility: visible !important;
}

.price-table-dropdown {
  z-index: 6 !important;
}

.price-table-options {
  z-index: 7 !important;
  max-height: 360px;
  overflow-y: auto;
}

.price-rule-header {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.price-rule-header h2 {
  margin: 6px 0 0;
  color: #0f172a;
}

.price-rule-actions,
.price-row-actions,
.price-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.price-filter-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.price-sale-input {
  min-width: 96px;
}

.price-base-hint {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.75rem;
  white-space: nowrap;
}

.price-row-actions .btn-primary,
.price-row-actions .btn-ghost {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.btn-secondary {
  border: 1px solid #b9d7ef;
  border-radius: 10px;
  background: #eef7ff;
  color: #14518a;
  font-weight: 800;
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #dff0ff;
  outline: none;
}

.price-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
}

.price-modal-card {
  width: min(560px, 100%);
  position: relative;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  padding: 24px;
}

.price-modal-card h2 {
  margin: 8px 0 8px;
  color: #0f172a;
}

.price-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe5f1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 1.3rem;
  cursor: pointer;
}

.price-modal-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.price-modal-form label {
  display: grid;
  gap: 6px;
  color: #0f172a;
  font-weight: 800;
}

.price-modal-form input,
.price-modal-form select {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
}

@media (max-width: 1100px) {
  .price-filter-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .price-rule-header {
    display: grid;
  }
}

@media (max-width: 720px) {
  .price-filter-grid {
    grid-template-columns: 1fr;
  }

  .price-row-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Ajustes visuais finais - filtros e autocomplete */
.tabela-preco-products,
.tabela-preco-products.card,
.price-filter-panel,
.price-filter-grid,
.price-field,
.price-products-table-wrap,
.price-history-table-wrap {
  overflow: visible;
}

.price-field {
  min-width: 0;
}

.price-filter-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  align-items: end;
}

.price-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.price-filter-actions .price-filter-button {
  flex: 0 0 auto;
}

.price-autocomplete {
  position: relative;
  width: 100%;
}

.price-autocomplete.is-open input {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.price-autocomplete-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.16);
  max-height: 320px;
  overflow-y: auto;
}

.price-autocomplete-option {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.price-autocomplete-option:hover,
.price-autocomplete-option:focus-visible {
  background: #eff6ff;
  color: #1d4ed8;
  outline: none;
}

.price-products-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.price-products-table th:last-child,
.price-products-table td:last-child {
  min-width: 150px;
}

@media (max-width: 1100px) {
  .price-filter-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 720px) {
  .price-filter-grid {
    grid-template-columns: 1fr;
  }

  .price-filter-actions {
    align-items: stretch;
  }

  .price-filter-actions .price-filter-button {
    width: 100%;
  }
}

/* Ajustes regra de preço - modal simplificado */
.price-rule-simple-note {
  margin: 8px 0 0;
  color: #475569;
  line-height: 1.45;
}

.price-rule-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 170px);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}

.price-rule-preview-result {
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #ffffff;
}

.price-rule-preview-result small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-rule-preview-result strong {
  color: #1d4ed8;
  font-size: 1.2rem;
}

@media (max-width: 640px) {
  .price-rule-preview {
    grid-template-columns: 1fr;
  }
}


/* Preview da regra automática por produto */
.price-row-rule-preview {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.price-row-rule-preview.is-active {
  color: #1d4ed8;
}

.price-row-mass-preview {
  background: #f0fdf4;
}

.price-row-mass-preview .price-sale-input {
  border-color: #86efac;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

/* Preview de alterações em massa - Tabela de Preço */
.price-preview-card {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.price-preview-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #eff6ff;
  color: #1e3a8a;
}

.price-preview-summary strong {
  color: #0f172a;
}

.price-preview-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.price-preview-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.price-preview-table th,
.price-preview-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.price-preview-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-preview-table td:last-child {
  color: #14518a;
}

/* Corporate blue refresh - camada final visual */
:root {
  --bg-0: #f3f7fc;
  --bg-1: #e7eef8;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --surface-elevated: rgba(255, 255, 255, 0.98);
  --text: #15243b;
  --muted: #5f7089;
  --border: #d8e3f2;
  --primary: #1d4ed8;
  --primary-strong: #163f9f;
  --primary-soft: #eaf2ff;
  --secondary: #0f9abf;
  --secondary-soft: #e7f8fd;
  --accent: #2563eb;
  --accent-soft: #edf5ff;
  --sidebar-1: #0c1f3f;
  --sidebar-2: #123c74;
  --ok: #15803d;
  --danger: #b42318;
  --warning: #a16207;
  --shadow-lg: 0 22px 54px rgba(21, 36, 59, 0.14);
  --shadow-md: 0 14px 34px rgba(21, 36, 59, 0.10);
  --shadow-sm: 0 8px 22px rgba(21, 36, 59, 0.07);
}

body {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(243, 247, 252, 0.96)),
    linear-gradient(135deg, #f8fbff 0%, #edf3fb 48%, #f5f9fd 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.035) 1px, transparent 1px);
  opacity: 0.72;
}

body::selection {
  background: rgba(29, 78, 216, 0.18);
}

h1,
h2,
h3,
h4 {
  color: #10213d;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: rgba(29, 78, 216, 0.26);
}

.card,
.chart-card,
.filters,
.banner-settings-card,
.videos-settings-card,
.video-form-shell,
.calendar-panel,
.home-info-card,
.home-list-card,
.spotlight-card,
.video-card,
.user-card,
.bio-admin-card,
.stock-report-metric-card,
.maintenance-card,
.resource-item,
.shortcut-item,
.sugestoes-filtros,
.sugestoes-lista-card,
.vpn-stat-card,
.vpn-history-panel,
.expense-summary-card,
.expense-ranking-card,
.dashboard-book,
.dashboard-widget,
.dashboard-panel,
.dashboard-kpi-card,
.dashboard-status-card,
.product-lookup-card,
.tabela-preco-selector,
.tabela-preco-history,
.tabela-preco-products {
  border-color: rgba(148, 163, 184, 0.26) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.98)) !important;
  box-shadow: var(--shadow-sm) !important;
}

.card:hover,
.shortcut-item:hover,
.shortcut-button:hover,
.resource-item:hover,
.user-card:hover,
.bio-admin-card:hover,
.chart-card:hover,
.stock-report-metric-card:hover,
.dashboard-report-card:hover,
.dashboard-bookmark-tab:hover {
  border-color: rgba(29, 78, 216, 0.22) !important;
  box-shadow: var(--shadow-md) !important;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.22), transparent 230px),
    linear-gradient(180deg, var(--sidebar-2), var(--sidebar-1));
  color: #edf5ff;
}

.sidebar-header {
  border-bottom-color: rgba(219, 234, 254, 0.15);
}

.sidebar-header h2 {
  color: #ffffff;
}

.sidebar-eyebrow {
  color: #bfdbfe;
}

.menu-item,
.app-container .sidebar-nav a {
  color: rgba(239, 246, 255, 0.88);
  background: rgba(255, 255, 255, 0.035);
}

.menu-item:hover,
.menu-item.active,
.app-container .sidebar-nav a:hover,
.app-container .sidebar-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.38), rgba(14, 165, 233, 0.18));
  border-color: rgba(191, 219, 254, 0.24);
}

.submenu .menu-item {
  color: rgba(219, 234, 254, 0.78);
}

.topbar,
.main-header {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(216, 227, 242, 0.86);
  box-shadow: 0 14px 32px rgba(21, 36, 59, 0.08);
}

body.home-redesign .topbar.topbar-home,
.topbar-home {
  background:
    linear-gradient(135deg, rgba(14, 30, 58, 0.80), rgba(29, 78, 216, 0.58)),
    rgba(255, 255, 255, 0.14);
  color: #f8fbff;
  border-color: rgba(191, 219, 254, 0.18);
}

.btn-primary,
.primary-action,
button[type="submit"].btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: 1px solid rgba(29, 78, 216, 0.2) !important;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.24) !important;
}

.btn-primary:hover,
.primary-action:hover,
button[type="submit"].btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #163f9f) !important;
}

.btn-secondary,
.shortcut-button,
.price-filter-button.btn-secondary {
  background: linear-gradient(135deg, #eaf2ff, #dbeafe) !important;
  color: #1d4ed8 !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
}

.btn-ghost,
.tab,
.tab-btn,
.dashboard-theme-toggle,
.price-table-toggle,
.price-filter-toggle {
  border-color: rgba(148, 163, 184, 0.34) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #1f3b64 !important;
}

.btn-ghost:hover,
.tab:hover,
.tab.active,
.tab-btn:hover,
.tab-btn.active,
.dashboard-theme-toggle:hover,
.price-table-toggle:hover,
.price-filter-toggle:hover {
  border-color: rgba(29, 78, 216, 0.28) !important;
  background: #f3f8ff !important;
  color: #1d4ed8 !important;
}

input,
select,
textarea {
  border-color: #cfdaea;
  background: #ffffff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

table th,
.report-table th,
.stock-table th,
.price-products-table th,
.price-preview-table th {
  background: #f1f6fd !important;
  color: #294467 !important;
  border-bottom-color: #dbe6f5 !important;
}

table td,
.report-table td,
.stock-table td,
.price-products-table td,
.price-preview-table td {
  border-bottom-color: #e7eef8 !important;
}

.dashboard-kicker,
.hero-eyebrow,
.price-table-chip,
.quick-link-admin-host,
.spotlight-tag {
  color: #1d4ed8;
  background: #eaf2ff;
  border-color: rgba(37, 99, 235, 0.16);
}

body.home-redesign .hero-eyebrow,
body.home-redesign .topbar-home .welcome-pill {
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

body.home-redesign .home-hero,
.banner-preview-hero {
  background:
    linear-gradient(115deg, rgba(10, 24, 50, 0.82), rgba(29, 78, 216, 0.54)),
    var(--home-hero-banner-image),
    linear-gradient(135deg, #0f2c57 0%, #1d4ed8 58%, #0ea5e9 100%) !important;
  background-size: cover, cover, cover !important;
  background-position: center, center, center !important;
}

body.home-redesign .home-hero::before,
.banner-preview-hero::before,
body.home-redesign .home-hero::after,
.banner-preview-hero::after {
  display: none !important;
}

body.home-redesign .shortcut-icon,
.shortcut-icon {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.20);
}

.dashboard-bookmark-tab,
.dashboard-bookmarks-live .dashboard-bookmark-tab,
.dashboard-report-card {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.dashboard-bookmark-tab.is-active,
.dashboard-bookmarks-live .dashboard-bookmark-tab.is-active,
.dashboard-report-card.is-active {
  background: linear-gradient(180deg, #f8fbff, #eef5ff) !important;
  border-color: rgba(29, 78, 216, 0.35) !important;
}

.dashboard-report-card::before,
.dashboard-bookmark-tab::before,
.dashboard-bookmark-tab::after {
  background: linear-gradient(90deg, var(--report-accent, #2563eb), #0ea5e9) !important;
}

.dashboard-progress span,
.report-progress-bar,
.dashboard-bar-track i,
.dashboard-column-bar {
  background: linear-gradient(90deg, #2563eb, #0ea5e9) !important;
}

.user-access-group {
  border-color: rgba(148, 163, 184, 0.30) !important;
  background: #ffffff !important;
}

.user-access-group-summary {
  background: linear-gradient(180deg, #f8fbff, #f1f6fd);
}

.user-access-row {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: #ffffff !important;
}

.user-access-row:not(.is-disabled) {
  border-color: rgba(29, 78, 216, 0.24) !important;
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
}

.user-access-chips span,
.user-access-state,
.price-preview-summary {
  background: #eaf2ff !important;
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
}

.price-row-rule-preview.is-active {
  color: #1d4ed8;
}

.price-row-mass-preview {
  background: #eff6ff !important;
}

.price-row-mass-preview .price-sale-input {
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
}

.feedback.error,
.dashboard-error {
  color: var(--danger) !important;
}

@media (max-width: 720px) {
  .topbar,
  .main-header {
    margin: 10px 10px 0;
    border-radius: 8px;
  }

  .page-main,
  .home-main,
  body.home-redesign .page-main.home-main {
    padding-inline: 14px;
  }
}

/* Atualização de cadastro */
.cadastro-products-page {
  display: grid;
  gap: 18px;
}

.cadastro-products-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.96));
}

.cadastro-products-hero h1 {
  margin: 4px 0 8px;
}

.cadastro-products-hero-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
  font-weight: 700;
  font-size: 0.84rem;
}

.cadastro-products-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.cadastro-autocomplete-field {
  position: relative;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.cadastro-autocomplete-field input {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 0 12px;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
}

.cadastro-autocomplete-field input:focus {
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cadastro-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  max-height: 260px;
  overflow: auto;
}

.cadastro-suggestion-item {
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 9px 10px;
  text-align: left;
  color: #0f172a;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.25;
}

.cadastro-suggestion-item:hover,
.cadastro-suggestion-item:focus {
  background: rgba(37, 99, 235, 0.1);
  outline: none;
}

.cadastro-products-actions,
.cadastro-products-results-header,
.cadastro-products-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cadastro-products-actions {
  margin-top: 16px;
}

.cadastro-products-results-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.cadastro-products-results h2 {
  margin: 0 0 4px;
}

.cadastro-products-table-wrap {
  max-height: 65vh;
}

.cadastro-products-table {
  min-width: 1100px;
}

.cadastro-products-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}

.cadastro-products-table td,
.cadastro-products-table th {
  vertical-align: top;
}

.center-cell {
  text-align: center;
  padding: 24px !important;
}

@media (max-width: 1100px) {
  .cadastro-products-filter-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 700px) {
  .cadastro-products-hero {
    flex-direction: column;
  }
  .cadastro-products-filter-grid {
    grid-template-columns: 1fr;
  }
  .cadastro-products-results-header {
    align-items: flex-start;
  }
}

/* Fix: autocomplete da atualização de cadastro precisa sair para fora do card sem ser cortado. */
.cadastro-products-filters {
  overflow: visible !important;
  position: relative;
  z-index: 40;
}

.cadastro-products-results {
  position: relative;
  z-index: 1;
}

.cadastro-products-filter-grid,
.cadastro-autocomplete-field {
  overflow: visible !important;
}

.cadastro-suggestions {
  z-index: 9999;
  max-height: min(320px, 48vh);
  min-width: min(420px, 92vw);
}

.cadastro-suggestion-item {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Atualização de cadastro v5: dropdown fora do card para nunca cortar. */
.cadastro-products-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cadastro-floating-suggestions {
  position: fixed;
  z-index: 2147483000;
  display: grid;
  gap: 4px;
  padding: 8px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
}

.cadastro-floating-suggestions .cadastro-suggestion-item {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  color: #0f172a;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cadastro-floating-suggestions .cadastro-suggestion-item:hover,
.cadastro-floating-suggestions .cadastro-suggestion-item:focus {
  background: rgba(37, 99, 235, 0.1);
  outline: none;
}

/* Atualização de cadastro v6: tabela com rolagem e paginação fixa/visível. */
.cadastro-products-results {
  overflow: visible !important;
}

.cadastro-products-table-wrap {
  max-height: 62vh !important;
  overflow: auto !important;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: #fff;
}

.cadastro-products-table-wrap::-webkit-scrollbar,
.cadastro-floating-suggestions::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.cadastro-products-table-wrap::-webkit-scrollbar-thumb,
.cadastro-floating-suggestions::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.45);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.cadastro-products-table-wrap::-webkit-scrollbar-track,
.cadastro-floating-suggestions::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.7);
  border-radius: 999px;
}

.cadastro-products-table th {
  top: 0;
  z-index: 3;
}

.cadastro-products-pagination-bottom {
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.cadastro-products-table td:nth-child(2) {
  min-width: 360px;
}

.cadastro-products-table td:nth-child(5) {
  min-width: 260px;
}

/* Atualização de cadastro v8: edição em tabela e salvamento por linha. */
.cadastro-products-table td {
  vertical-align: top;
}

.cadastro-table-input {
  width: 100%;
  min-width: 130px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.88rem;
  background: #fff;
  color: #111827;
}

.cadastro-table-input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.cadastro-table-input-wide {
  min-width: 230px;
}

.cadastro-table-number {
  min-width: 96px;
  text-align: right;
}

.cadastro-save-row {
  padding: 7px 12px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.cadastro-row-status {
  margin-top: 5px;
  font-size: 0.72rem;
  line-height: 1.15;
  max-width: 120px;
}

.cadastro-product-id {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 500;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cadastro-products-table th:last-child,
.cadastro-products-table td:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 2;
  box-shadow: -8px 0 14px rgba(15, 23, 42, 0.06);
}

.cadastro-products-table th:last-child {
  background: #f8fafc;
  z-index: 4;
}

/* Atualizacao de cadastro v9: custo somente leitura, avancado e alteracao em massa */
.cadastro-mass-action-btn,
.cadastro-advanced-btn {
  white-space: nowrap;
}

.cadastro-readonly-money {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  background: #f4f7fb;
  color: #263650;
  font-weight: 800;
  border: 1px solid #dbe5f3;
}

.cadastro-products-table .cadastro-advanced-col {
  display: none;
}

body.cadastro-advanced-enabled .cadastro-products-table .cadastro-advanced-col {
  display: table-cell;
}

.cadastro-table-select {
  min-width: 100px;
}

.cadastro-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(3px);
}

.cadastro-modal-backdrop.hidden {
  display: none !important;
}

.cadastro-modal-card {
  position: relative;
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #dbe5f3;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  padding: 24px;
}

.cadastro-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #dbe5f3;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.cadastro-mass-config {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.cadastro-mass-config label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: #1d2b44;
}

.cadastro-mass-config select,
.cadastro-mass-config input {
  min-height: 44px;
  border: 1px solid #cbd8ea;
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 800;
  color: #1f2d44;
  background: #fff;
}

.cadastro-mass-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  grid-column: 1 / -1;
}

.cadastro-mass-preview-summary {
  margin: 16px 0 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eef4ff;
  border: 1px solid #bdd2ff;
  color: #214070;
  font-weight: 800;
}

.cadastro-mass-preview-table-wrap {
  max-height: 380px;
  overflow: auto;
  border: 1px solid #dbe5f3;
  border-radius: 14px;
}

.cadastro-mass-preview-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.cadastro-mass-preview-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5fb;
  color: #243957;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.cadastro-mass-preview-table th,
.cadastro-mass-preview-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e3ebf7;
  text-align: left;
  vertical-align: top;
}

.cadastro-mass-pagination {
  justify-content: center;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .cadastro-mass-config {
    grid-template-columns: 1fr;
  }
  .cadastro-modal-card {
    width: calc(100vw - 24px);
    padding: 18px;
  }
}

.cadastro-mass-full {
  grid-column: 1 / -1;
}

.cadastro-mass-grid {
  display: contents;
}

.cadastro-mass-text-cell {
  min-width: 220px;
  white-space: normal;
  line-height: 1.35;
}

/* Atualizacao cadastro - selector visivel para tipo de alteracao em massa */
.cadastro-mass-type-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: -4px;
  margin-bottom: 4px;
}

.cadastro-mass-type-tab {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1f2a44;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.cadastro-mass-type-tab:hover {
  border-color: #9db7f8;
  background: #f2f6ff;
}

.cadastro-mass-type-tab.active {
  border-color: #2f5bea;
  background: #eaf1ff;
  color: #1640b8;
  box-shadow: 0 14px 30px rgba(47, 91, 234, 0.16);
}

@media (max-width: 720px) {
  .cadastro-mass-type-tabs {
    grid-template-columns: 1fr;
  }
}

/* Atualizacao de cadastro v13: avancado compacto sem coluna prateleira. */
.cadastro-products-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0 !important;
}

.cadastro-products-table th,
.cadastro-products-table td {
  padding-left: 10px;
  padding-right: 10px;
}

.cadastro-products-table th:nth-child(1),
.cadastro-products-table td:nth-child(1) { width: 9%; }
.cadastro-products-table th:nth-child(2),
.cadastro-products-table td:nth-child(2) { width: 20%; }
.cadastro-products-table th:nth-child(3),
.cadastro-products-table td:nth-child(3) { width: 9%; }
.cadastro-products-table th:nth-child(4),
.cadastro-products-table td:nth-child(4) { width: 12%; }
.cadastro-products-table th:nth-child(5),
.cadastro-products-table td:nth-child(5) { width: 14%; }
.cadastro-products-table th:nth-child(6),
.cadastro-products-table td:nth-child(6) { width: 7%; }
.cadastro-products-table th:nth-child(7),
.cadastro-products-table td:nth-child(7) { width: 7%; }
.cadastro-products-table th:nth-child(8),
.cadastro-products-table td:nth-child(8) { width: 6%; }
.cadastro-products-table th:nth-child(9),
.cadastro-products-table td:nth-child(9) { width: 6%; }
.cadastro-products-table th:nth-child(10),
.cadastro-products-table td:nth-child(10),
.cadastro-products-table th:nth-child(11),
.cadastro-products-table td:nth-child(11) { width: 8%; }
.cadastro-products-table th:nth-child(12),
.cadastro-products-table td:nth-child(12),
.cadastro-products-table th:nth-child(13),
.cadastro-products-table td:nth-child(13),
.cadastro-products-table th:nth-child(14),
.cadastro-products-table td:nth-child(14) { width: 6%; }
.cadastro-products-table th:last-child,
.cadastro-products-table td:last-child { width: 7%; }

.cadastro-products-table td:nth-child(2),
.cadastro-products-table td:nth-child(5) {
  min-width: 0 !important;
}

.cadastro-table-input,
.cadastro-table-select {
  min-width: 0 !important;
  font-size: 0.8rem;
  padding: 7px 8px;
}

.cadastro-table-input-wide {
  min-width: 0 !important;
}

.cadastro-table-number {
  min-width: 0 !important;
}

.cadastro-products-table td,
.cadastro-products-table th {
  overflow: hidden;
}

.cadastro-products-table input,
.cadastro-products-table select {
  max-width: 100%;
}

.cadastro-readonly-money {
  min-height: 34px;
  padding: 0 7px;
  font-size: 0.8rem;
}

.cadastro-save-row {
  padding: 7px 9px;
  font-size: 0.78rem;
}

.cadastro-product-id {
  display: none;
}

body.cadastro-advanced-enabled .cadastro-products-table th:nth-child(2),
body.cadastro-advanced-enabled .cadastro-products-table td:nth-child(2) { width: 17%; }
body.cadastro-advanced-enabled .cadastro-products-table th:nth-child(4),
body.cadastro-advanced-enabled .cadastro-products-table td:nth-child(4) { width: 10%; }
body.cadastro-advanced-enabled .cadastro-products-table th:nth-child(5),
body.cadastro-advanced-enabled .cadastro-products-table td:nth-child(5) { width: 11%; }
body.cadastro-advanced-enabled .cadastro-products-table th:nth-child(10),
body.cadastro-advanced-enabled .cadastro-products-table td:nth-child(10) { width: 7%; }
body.cadastro-advanced-enabled .cadastro-products-table th:nth-child(11),
body.cadastro-advanced-enabled .cadastro-products-table td:nth-child(11) { width: 9%; }

/* Atualizacao de cadastro: mantem a tabela antiga visivel, mas desfocada, enquanto uma nova busca carrega. */
.cadastro-products-table-wrap {
  position: relative;
}

.cadastro-products-table-wrap.cadastro-table-refreshing .cadastro-products-table {
  filter: blur(3px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.cadastro-products-table-wrap.cadastro-table-refreshing::after {
  content: "Carregando novo catalogo...";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: #1f2937;
  font-weight: 800;
  letter-spacing: -0.01em;
  backdrop-filter: blur(2px);
  z-index: 25;
}

/* Atualização de cadastro v17: filtro de nota alinhado aos demais campos. */
.cadastro-note-filter-field {
  align-self: start;
}

/* Atualizacao de cadastro v18: colunas extras quando catalogo vem por nota fiscal. */
.cadastro-products-table .cadastro-note-col {
  display: none;
}

body.cadastro-note-catalog-enabled .cadastro-products-table .cadastro-note-col {
  display: table-cell;
}

body.cadastro-note-catalog-enabled .cadastro-products-table {
  table-layout: auto;
  min-width: 2400px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th,
body.cadastro-note-catalog-enabled .cadastro-products-table td {
  white-space: normal;
}

body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(2) {
  min-width: 300px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table .cadastro-note-col {
  min-width: 110px;
  font-size: 0.78rem;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th.cadastro-note-col {
  background: #eef4ff;
  color: #1e3a8a;
}

body.cadastro-note-catalog-enabled .cadastro-products-table td.cadastro-note-col {
  background: rgba(239, 246, 255, 0.45);
}

/* Atualizacao de cadastro v19: tabela de nota seguindo o padrao do Excel. */
body.cadastro-note-catalog-enabled .cadastro-products-table {
  min-width: 1850px !important;
}
body.cadastro-note-catalog-enabled .cadastro-products-table th,
body.cadastro-note-catalog-enabled .cadastro-products-table td {
  font-size: 0.78rem;
}
body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(2),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(2) {
  min-width: 300px !important;
}
body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(3),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(3),
body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(4),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(4) {
  min-width: 130px;
}
body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(5),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(5) {
  min-width: 230px;
}
body.cadastro-note-catalog-enabled .cadastro-products-table th.cadastro-note-col {
  background: #eef4ff;
  color: #1e3a8a;
}
body.cadastro-note-catalog-enabled .cadastro-products-table td.cadastro-note-col {
  background: rgba(239, 246, 255, 0.45);
}
.cadastro-products-table [data-margin-cell],
.cadastro-products-table [data-current-margin-cell] {
  font-weight: 800;
  color: #284d8f;
}


/* Atualizacao de cadastro v20: ajuste visual de nota, custo unitario com imposto e grupo de venda nova. */
body.cadastro-note-catalog-enabled .cadastro-products-table th.cadastro-note-qty-col,
body.cadastro-note-catalog-enabled .cadastro-products-table td.cadastro-note-qty-col {
  min-width: 58px !important;
  width: 58px !important;
  max-width: 66px;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}

.cadastro-products-table .cadastro-new-price-col {
  border-left: 3px solid #93b4ee !important;
  background-clip: padding-box;
}

.cadastro-products-table th.cadastro-new-price-col {
  background: #eef4ff;
  color: #1e3a8a;
}

.cadastro-products-table td.cadastro-new-price-col {
  background: rgba(239, 246, 255, 0.62);
}

.cadastro-products-table .cadastro-new-price-input {
  min-width: 104px !important;
  width: 104px;
  text-align: right;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th.cadastro-new-price-col,
body.cadastro-note-catalog-enabled .cadastro-products-table td.cadastro-new-price-col {
  min-width: 126px !important;
  width: 126px !important;
}

/* Atualizacao de cadastro v21: tabela de nota mais compacta e cards de totais. */
.cadastro-note-summary-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cadastro-note-summary-card {
  border: 1px solid #d9e4f7;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.cadastro-note-summary-card span {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cadastro-note-summary-card strong {
  display: block;
  color: #16233c;
  font-size: 1rem;
  font-weight: 900;
}

body.cadastro-note-catalog-enabled .cadastro-products-table {
  min-width: 1550px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th,
body.cadastro-note-catalog-enabled .cadastro-products-table td {
  font-size: 0.72rem !important;
  padding: 8px 8px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table input,
body.cadastro-note-catalog-enabled .cadastro-products-table select {
  min-height: 34px;
  padding: 7px 8px;
  font-size: 0.72rem;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(1),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(1) {
  min-width: 95px !important;
  max-width: 115px;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(2),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(2) {
  min-width: 240px !important;
  max-width: 280px;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(3),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(3) {
  min-width: 100px !important;
  max-width: 120px;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(4),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(4) {
  min-width: 115px !important;
  max-width: 135px;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(5),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(5) {
  min-width: 185px !important;
  max-width: 220px;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th.cadastro-note-qty-col,
body.cadastro-note-catalog-enabled .cadastro-products-table td.cadastro-note-qty-col {
  min-width: 44px !important;
  width: 44px !important;
  max-width: 50px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table .cadastro-note-col {
  min-width: 82px !important;
  max-width: 105px;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th.cadastro-new-price-col,
body.cadastro-note-catalog-enabled .cadastro-products-table td.cadastro-new-price-col {
  min-width: 126px !important;
  width: 126px !important;
}

@media (max-width: 1200px) {
  .cadastro-note-summary-cards {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

body.cadastro-note-catalog-enabled .cadastro-hide-on-note {
  display: none !important;
}

/* Atualizacao de cadastro v24: tabela de nota mais compacta e separacao dos totais novos. */
body.cadastro-note-catalog-enabled .cadastro-products-table {
  min-width: 1420px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th,
body.cadastro-note-catalog-enabled .cadastro-products-table td {
  font-size: 0.68rem !important;
  padding: 6px 6px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table input,
body.cadastro-note-catalog-enabled .cadastro-products-table select {
  min-height: 30px !important;
  padding: 5px 6px !important;
  font-size: 0.68rem !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(2),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(2) {
  min-width: 210px !important;
  max-width: 240px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(3),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(3) {
  min-width: 86px !important;
  max-width: 100px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(4),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(4) {
  min-width: 105px !important;
  max-width: 120px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(5),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(5) {
  min-width: 165px !important;
  max-width: 190px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table .cadastro-note-col {
  min-width: 70px !important;
  max-width: 88px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th.cadastro-new-price-col,
body.cadastro-note-catalog-enabled .cadastro-products-table td.cadastro-new-price-col {
  min-width: 112px !important;
  width: 112px !important;
  border-left: 2px solid rgba(37, 99, 235, 0.38) !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table .cadastro-new-price-input {
  min-width: 86px !important;
  width: 86px !important;
}

.cadastro-note-summary-card-new {
  border-left: 4px solid rgba(37, 99, 235, 0.55) !important;
  margin-left: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%) !important;
}

@media (max-width: 1200px) {
  .cadastro-note-summary-card-new {
    margin-left: 0;
  }
}

/* Atualizacao de cadastro v25: corrigir campo Venda (novo) em catalogos que nao sao nota. */
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table {
  table-layout: auto !important;
  min-width: 1320px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th.cadastro-new-price-col,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td.cadastro-new-price-col {
  min-width: 150px !important;
  width: 150px !important;
  max-width: 170px !important;
  overflow: visible !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table .cadastro-new-price-input {
  box-sizing: border-box !important;
  display: block !important;
  width: 124px !important;
  min-width: 124px !important;
  max-width: 124px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  text-align: right !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(14),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(14) {
  min-width: 100px !important;
  width: 100px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:last-child,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:last-child {
  min-width: 95px !important;
  width: 95px !important;
}

/* Atualizacao de cadastro v26: ajustes de tabela, cards e selecao em massa. */
.cadastro-products-table .cadastro-select-col {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  text-align: center !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

.cadastro-products-table .cadastro-select-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.cadastro-products-table th.cadastro-new-price-col span,
.cadastro-products-table th small {
  display: block;
  line-height: 1.05;
}

.cadastro-products-table th small {
  font-size: 0.72rem;
  font-weight: 900;
  color: #203250;
}

.cadastro-note-summary-cards {
  display: flex !important;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.cadastro-note-summary-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.cadastro-note-summary-group-current {
  flex: 0 1 auto;
}

.cadastro-note-summary-group-new {
  margin-left: auto;
  padding-left: 22px;
  border-left: 2px solid rgba(37, 99, 235, 0.35);
  justify-content: flex-end;
}

.cadastro-note-summary-card {
  min-width: 170px;
}

.cadastro-note-summary-card-new {
  margin-left: 0 !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table {
  min-width: 1420px !important;
  font-size: 0.78rem;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th,
body.cadastro-note-catalog-enabled .cadastro-products-table td {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(2),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(2) {
  width: 118px !important;
  min-width: 118px !important;
  padding-right: 4px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(3),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(3) {
  padding-left: 4px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(2),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(2) {
  width: 125px !important;
  min-width: 125px !important;
  padding-right: 4px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(3),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(3) {
  padding-left: 4px !important;
}

.cadastro-selected-action-btn:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
  background: #eff6ff;
}

@media (max-width: 1300px) {
  .cadastro-note-summary-cards,
  .cadastro-note-summary-group {
    flex-wrap: wrap;
  }
  .cadastro-note-summary-group-new {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

/* Atualizacao de cadastro v27: fonte maior, marca menor e cards novos fixos a direita. */
.cadastro-products-results {
  position: relative;
}

.cadastro-products-table {
  font-size: 0.86rem !important;
}

.cadastro-products-table th {
  font-size: 0.78rem !important;
}

.cadastro-products-table td {
  font-size: 0.84rem !important;
}

.cadastro-products-table .cadastro-table-input,
.cadastro-products-table .cadastro-table-number,
.cadastro-products-table select {
  font-size: 0.84rem !important;
}

.cadastro-products-table .cadastro-readonly-money,
.cadastro-products-table [data-current-margin-cell],
.cadastro-products-table [data-margin-cell] {
  font-size: 0.86rem !important;
}

.cadastro-products-table .btn-primary,
.cadastro-products-table .cadastro-save-row {
  font-size: 0.84rem !important;
}

/* Marca mais compacta na tabela principal. A coluna atual e a normal ficam na 4a coluna. */
.cadastro-products-table th:nth-child(4),
.cadastro-products-table td:nth-child(4) {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 130px !important;
}

.cadastro-products-table td:nth-child(4) .cadastro-table-input {
  width: 108px !important;
  min-width: 108px !important;
  max-width: 108px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(4),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(4) {
  width: 112px !important;
  min-width: 112px !important;
  max-width: 120px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(4) .cadastro-table-input {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
}

/* Posicao dos cards novos igual ao ajuste feito no DevTools. */
.cadastro-note-summary-cards {
  position: relative !important;
  padding-right: 355px !important;
  min-height: 74px;
}

.cadastro-note-summary-group-new {
  position: absolute !important;
  right: 22px !important;
  top: 0 !important;
  margin-left: 0 !important;
  padding-left: 22px !important;
  border-left: 2px solid rgba(37, 99, 235, 0.35) !important;
}

@media (max-width: 1350px) {
  .cadastro-note-summary-cards {
    padding-right: 0 !important;
    min-height: 0;
  }

  .cadastro-note-summary-group-new {
    position: static !important;
    right: auto !important;
    top: auto !important;
    padding-left: 0 !important;
    border-left: 0 !important;
  }
}

/* Atualizacao de cadastro v28: tabela mais legivel e cards novos abaixo da paginacao. */
.cadastro-products-table,
body.cadastro-note-catalog-enabled .cadastro-products-table,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table {
  font-size: 0.92rem !important;
}

.cadastro-products-table th,
body.cadastro-note-catalog-enabled .cadastro-products-table th,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th {
  font-size: 0.82rem !important;
  line-height: 1.18 !important;
}

.cadastro-products-table td,
body.cadastro-note-catalog-enabled .cadastro-products-table td,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td {
  font-size: 0.9rem !important;
  line-height: 1.24 !important;
}

.cadastro-products-table .cadastro-table-input,
.cadastro-products-table .cadastro-table-number,
.cadastro-products-table .cadastro-table-select,
.cadastro-products-table select,
body.cadastro-note-catalog-enabled .cadastro-products-table input,
body.cadastro-note-catalog-enabled .cadastro-products-table select,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table input,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table select {
  font-size: 0.88rem !important;
  min-height: 34px !important;
}

.cadastro-products-table .cadastro-readonly-money,
.cadastro-products-table [data-current-margin-cell],
.cadastro-products-table [data-margin-cell],
body.cadastro-note-catalog-enabled .cadastro-products-table .cadastro-readonly-money,
body.cadastro-note-catalog-enabled .cadastro-products-table [data-current-margin-cell],
body.cadastro-note-catalog-enabled .cadastro-products-table [data-margin-cell] {
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
}

.cadastro-products-table .btn-primary,
.cadastro-products-table .cadastro-save-row,
body.cadastro-note-catalog-enabled .cadastro-products-table .btn-primary,
body.cadastro-note-catalog-enabled .cadastro-products-table .cadastro-save-row {
  font-size: 0.88rem !important;
  padding: 9px 13px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th,
body.cadastro-note-catalog-enabled .cadastro-products-table td {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table {
  min-width: 1500px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table .cadastro-new-price-input,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table .cadastro-new-price-input {
  font-size: 0.88rem !important;
}

.cadastro-products-results-header {
  position: relative;
  align-items: flex-start !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-results-header {
  min-height: 138px;
}

/* Mantem os cards de cadastro à esquerda e posiciona os cards novos abaixo da paginação. */
.cadastro-note-summary-cards {
  position: static !important;
  padding-right: 0 !important;
  min-height: 0 !important;
  max-width: calc(100% - 360px);
}

.cadastro-note-summary-group-current {
  flex-wrap: wrap;
}

.cadastro-note-summary-group-new {
  position: absolute !important;
  right: 22px !important;
  top: 58px !important;
  margin-left: 0 !important;
  padding-left: 22px !important;
  border-left: 2px solid rgba(37, 99, 235, 0.35) !important;
  justify-content: flex-end !important;
}

.cadastro-note-summary-group-new .cadastro-note-summary-card {
  min-width: 150px;
}

@media (max-width: 1350px) {
  body.cadastro-note-catalog-enabled .cadastro-products-results-header {
    min-height: 0;
  }

  .cadastro-note-summary-cards {
    max-width: 100%;
  }

  .cadastro-note-summary-group-new {
    position: static !important;
    right: auto !important;
    top: auto !important;
    padding-left: 0 !important;
    border-left: 0 !important;
  }
}

/* Atualizacao de cadastro v29: produto maior, categoria menor e botao Alterar por selecao. */
.cadastro-products-actions .cadastro-selected-action-btn.hidden {
  display: none !important;
}

.cadastro-products-actions .cadastro-selected-action-btn:not(.hidden) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  min-width: 112px;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

.cadastro-selected-value-field {
  position: relative;
}

.cadastro-selected-value-field small {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
}

/* Com a coluna de selecao, Produto e a 3a coluna, Marca a 4a, Categoria a 5a. */
.cadastro-products-table th:nth-child(3),
.cadastro-products-table td:nth-child(3) {
  width: 230px !important;
  min-width: 230px !important;
  max-width: 250px !important;
}

.cadastro-products-table td:nth-child(3) .cadastro-table-input {
  width: 214px !important;
  min-width: 214px !important;
  max-width: 226px !important;
}

.cadastro-products-table th:nth-child(5),
.cadastro-products-table td:nth-child(5) {
  width: 190px !important;
  min-width: 190px !important;
  max-width: 205px !important;
}

.cadastro-products-table td:nth-child(5) .cadastro-table-input {
  width: 174px !important;
  min-width: 174px !important;
  max-width: 188px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(3),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(3) {
  width: 250px !important;
  min-width: 250px !important;
  max-width: 270px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(3) .cadastro-table-input {
  width: 232px !important;
  min-width: 232px !important;
  max-width: 250px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(5),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(5) {
  width: 185px !important;
  min-width: 185px !important;
  max-width: 198px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(5) .cadastro-table-input {
  width: 170px !important;
  min-width: 170px !important;
  max-width: 182px !important;
}

/* Atualizacao de cadastro v31: reorganiza espacamentos do catalogo normal priorizando Produto/Nome. */
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 1320px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td {
  padding-left: 8px !important;
  padding-right: 8px !important;
  vertical-align: middle !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table .cadastro-table-input,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table .cadastro-table-number,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table select {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table .cadastro-readonly-money {
  min-width: 0 !important;
  width: 100% !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* Colunas visiveis no catalogo normal. */
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(1),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(1) {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  text-align: center !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(2),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(2) {
  width: 132px !important;
  min-width: 132px !important;
  max-width: 132px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(3),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(3) {
  width: 310px !important;
  min-width: 310px !important;
  max-width: 310px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(4),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(4) {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(5),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(5) {
  width: 190px !important;
  min-width: 190px !important;
  max-width: 190px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(8),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(8),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(10),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(10) {
  width: 105px !important;
  min-width: 105px !important;
  max-width: 105px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(12),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(12),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(15),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(15) {
  width: 105px !important;
  min-width: 105px !important;
  max-width: 105px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(13),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(13) {
  width: 136px !important;
  min-width: 136px !important;
  max-width: 136px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(16),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(16) {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  text-align: center !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:last-child,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:last-child {
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table .cadastro-save-row {
  width: 100% !important;
  min-width: 82px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* Atualizacao de cadastro v37: nome mais largo e salvamento em lote via selecao. */
body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(3),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(3) {
  width: 270px !important;
  min-width: 270px !important;
  max-width: 270px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(3) .cadastro-table-input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(4),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(4) {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(5),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(5) {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(2),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(2) {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table {
  min-width: 1510px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(3),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(3) {
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(4),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(4) {
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(5),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(5) {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table {
  min-width: 1380px !important;
}

/* Atualizacao de cadastro v38: codigo compacto, nome maior e categoria menor sem reduzir fonte. */
.cadastro-products-table .cadastro-code-cell strong {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(2),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(2) {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(3),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(3) {
  width: 390px !important;
  min-width: 390px !important;
  max-width: 390px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(5),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(5) {
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(5) .cadastro-table-input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table {
  min-width: 1510px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(2),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(2) {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(3),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(3) {
  width: 430px !important;
  min-width: 430px !important;
  max-width: 430px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(5),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(5) {
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table {
  min-width: 1370px !important;
}


/* Atualizacao de cadastro v41: codigo normal e tabela mais compacta priorizando Produto/Nome. */
.cadastro-products-table th,
.cadastro-products-table td {
  padding-left: 7px !important;
  padding-right: 7px !important;
}

.cadastro-products-table .cadastro-select-col,
.cadastro-products-table th:first-child,
.cadastro-products-table td:first-child {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  padding-left: 3px !important;
  padding-right: 3px !important;
  text-align: center !important;
}

.cadastro-products-table .cadastro-row-select,
.cadastro-products-table th:first-child input,
.cadastro-products-table td:first-child input {
  margin: 0 auto !important;
}

.cadastro-products-table .cadastro-code-cell strong {
  display: inline-block !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(2),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(2) {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  padding-left: 5px !important;
  padding-right: 5px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(3),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(3) {
  width: 450px !important;
  min-width: 450px !important;
  max-width: 450px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(4),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(4) {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(5),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(5) {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(6),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(6) {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  text-align: center !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(7),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(7),
body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(8),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(8),
body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(9),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(9),
body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(10),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(10),
body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(11),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(11),
body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(12),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(12),
body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(13),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(13),
body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(14),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(14) {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:last-child,
body.cadastro-note-catalog-enabled .cadastro-products-table td:last-child {
  width: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table .cadastro-save-row {
  min-width: 72px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(3) .cadastro-table-input,
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(4) .cadastro-table-input,
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(5) .cadastro-table-input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table {
  min-width: 1520px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(2),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(2) {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  padding-left: 5px !important;
  padding-right: 5px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(3),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(3) {
  width: 500px !important;
  min-width: 500px !important;
  max-width: 500px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(4),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(4) {
  width: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(5),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(5) {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(3) .cadastro-table-input,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(4) .cadastro-table-input,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(5) .cadastro-table-input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table {
  min-width: 1340px !important;
}


/* Atualizacao de cadastro v42: cards de cadastro fixos e lingueta com valor completo. */
.cadastro-full-value-tip {
  position: fixed;
  z-index: 1000000;
  max-height: 180px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #ffffff;
  color: #16233c;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
}

.cadastro-full-value-tip::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 18px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #ffffff;
  border-left: 1px solid #bfdbfe;
  border-top: 1px solid #bfdbfe;
}

/* Portal Enfoque global menu */
a[data-portal-enfoque-link="1"].menu-item,
.sidebar a[data-portal-enfoque-link="1"] {
  position: relative;
}

/* Portal Enfoque page */
.portal-enfoque-page {
  display: grid;
  gap: 18px;
}
.portal-enfoque-hero {
  padding: 28px;
}
.portal-enfoque-hero h1 {
  margin: 2px 0 12px;
  font-size: clamp(30px, 3vw, 48px);
  letter-spacing: -0.04em;
}
.portal-enfoque-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.portal-enfoque-cards .card {
  padding: 20px;
  min-height: 118px;
}
.portal-enfoque-cards span {
  display: block;
  margin-bottom: 10px;
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}
.portal-enfoque-cards strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}
.portal-enfoque-panel {
  padding: 22px;
}
@media (max-width: 1100px) {
  .portal-enfoque-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .portal-enfoque-cards { grid-template-columns: 1fr; }
}

/* Portal Enfoque v50: sidebar igual ao shell principal */
body.portal-enfoque-body {
  --portal-bg: #f3f7fb;
  --portal-panel: #ffffff;
  --portal-ink: #102033;
  --portal-muted: #64748b;
  --portal-line: #d9e4ef;
  --portal-teal: #0f766e;
  --portal-blue: #2563eb;
  --portal-amber: #f59e0b;
  --portal-red: #e11d48;
  min-height: 100vh;
  color: var(--portal-ink);
  background:
    linear-gradient(180deg, #f7fbff 0%, var(--portal-bg) 48%, #edf3f7 100%) !important;
}

body.portal-enfoque-body h1,
body.portal-enfoque-body h2,
body.portal-enfoque-body h3,
body.portal-enfoque-body strong {
  letter-spacing: 0;
}

.portal-layout {
  align-items: stretch;
  min-height: 100vh;
}

body.portal-enfoque-body .portal-sidebar {
  width: var(--sidebar-width);
  transform: translateX(-100%) !important;
  box-shadow: none !important;
  z-index: 80;
  padding: 18px;
}

body.portal-enfoque-body .portal-sidebar.is-open {
  transform: translateX(0) !important;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.18), 0 24px 80px rgba(15, 23, 42, 0.20) !important;
}

.portal-sidebar nav {
  display: grid;
  gap: 6px;
}

.portal-sidebar-group {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 118, 110, 0.14);
}

.portal-sidebar-label {
  padding: 0 10px 2px;
  color: #557086;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.portal-enfoque-body .portal-sidebar .menu-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  border-radius: 8px;
}

.portal-content {
  width: 100%;
  min-width: 0;
  margin-left: 0;
}

.portal-topbar {
  min-height: 72px;
  color: var(--portal-ink) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--portal-line) !important;
  box-shadow: 0 10px 28px rgba(15, 32, 51, 0.06);
}

.portal-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.portal-topbar .brand-mark {
  transform: none;
  background: linear-gradient(135deg, var(--portal-teal), #38bdf8);
}

.portal-topbar .topbar-search input {
  min-height: 42px;
  border-color: var(--portal-line);
  background: #ffffff;
}

.portal-topbar .welcome-pill {
  color: #0f3b52;
  border-color: rgba(15, 118, 110, 0.18);
  background: #e6f6f4;
}

.portal-enfoque-page {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 24px;
  gap: 18px;
}

.portal-enfoque-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(12, 74, 110, 0.96), rgba(15, 118, 110, 0.90) 58%, rgba(37, 99, 235, 0.78)),
    linear-gradient(135deg, #0f766e, #2563eb);
  box-shadow: 0 18px 38px rgba(15, 32, 51, 0.16);
}

.portal-enfoque-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 56px);
}

.portal-hero-copy {
  max-width: 760px;
}

.portal-hero-copy .sidebar-eyebrow {
  color: #a7f3d0 !important;
}

.portal-hero-copy h1 {
  margin: 8px 0 12px;
  max-width: 720px;
  font-size: clamp(2rem, 4.3vw, 4.25rem);
  line-height: 0.98;
}

.portal-hero-copy p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: #e6f7ff;
  font-size: 1.08rem;
}

.portal-hero-badge {
  flex: 0 0 auto;
  min-width: 198px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.portal-hero-badge span,
.portal-kpi-card span {
  display: block;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-hero-badge strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.portal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.portal-kpi-card,
.portal-panel {
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: var(--portal-panel);
  box-shadow: 0 14px 32px rgba(15, 32, 51, 0.07);
}

.portal-kpi-card {
  min-height: 142px;
  padding: 20px;
  border-top: 4px solid var(--portal-teal);
}

.portal-kpi-card:nth-child(2) {
  border-top-color: var(--portal-blue);
}

.portal-kpi-card:nth-child(3) {
  border-top-color: #0891b2;
}

.portal-kpi-card.is-attention {
  border-top-color: var(--portal-amber);
  background: linear-gradient(180deg, #ffffff 0%, #fff8eb 100%);
}

.portal-kpi-card span {
  color: var(--portal-muted);
}

.portal-kpi-card strong {
  display: block;
  margin-top: 12px;
  color: var(--portal-ink);
  font-size: clamp(1.55rem, 2.1vw, 2.08rem);
  line-height: 1.05;
}

.portal-kpi-card small {
  display: block;
  margin-top: 10px;
  color: var(--portal-muted);
  font-weight: 700;
}

.portal-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.36fr);
  gap: 18px;
  align-items: start;
}

.portal-panel {
  padding: 20px;
}

.portal-orders-panel {
  min-width: 0;
}

.portal-section-header {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.portal-section-header h2 {
  margin: 3px 0 0;
  font-size: 1.18rem;
}

.portal-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.portal-filter-row span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #cfe0ec;
  border-radius: 999px;
  color: #355068;
  background: #f7fafc;
  font-size: 0.86rem;
  font-weight: 800;
}

.portal-table-wrap {
  max-height: 470px;
  border-radius: 8px;
}

.portal-table-wrap table {
  min-width: 980px;
}

.portal-status {
  min-width: 96px;
  display: inline-flex;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.portal-status.is-ok {
  color: #116043;
  background: #dcfce7;
}

.portal-status.is-alert {
  color: #92400e;
  background: #fef3c7;
}

.portal-insights {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.portal-progress-list {
  display: grid;
  gap: 15px;
}

.portal-progress-list div {
  display: grid;
  gap: 8px;
}

.portal-progress-list span,
.portal-store-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-progress-list small {
  color: var(--portal-muted);
  font-weight: 800;
}

.portal-progress-list i {
  position: relative;
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef5;
}

.portal-progress-list i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--portal-progress);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--portal-teal), #38bdf8);
}

.portal-store-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-store-list li {
  padding: 12px 0;
  border-top: 1px solid #e8eef4;
}

.portal-store-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.portal-store-list span {
  color: #40596f;
  font-weight: 800;
}

.portal-store-list strong {
  color: var(--portal-ink);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .portal-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-workspace {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 960px) {
  body.portal-enfoque-body .portal-sidebar {
    width: min(86vw, 320px);
  }

  .portal-topbar {
    min-height: 64px;
  }
}

@media (max-width: 760px) {
  .portal-enfoque-page {
    padding: 14px;
    gap: 14px;
  }

  .portal-topbar {
    padding: 12px 14px !important;
  }

  .portal-topbar .topbar-search {
    order: 4;
    flex-basis: 100%;
    min-width: 0;
  }

  .portal-topbar .topbar-right,
  .portal-topbar .topbar-home-right {
    width: 100%;
  }

  .portal-enfoque-hero {
    min-height: 260px;
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .portal-hero-copy h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
    line-height: 1.02;
  }

  .portal-hero-badge {
    width: 100%;
  }

  .portal-kpi-grid,
  .portal-insights {
    grid-template-columns: 1fr;
  }

  .portal-panel,
  .portal-kpi-card {
    padding: 16px;
  }

  .portal-section-header {
    flex-direction: column;
  }
}

/* Atualizacao de cadastro v44: salvar novo, nome com quebra e tabela mais compacta. */
.cadastro-save-all-btn {
  white-space: nowrap;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.16);
}

.cadastro-products-table th,
.cadastro-products-table td,
body.cadastro-note-catalog-enabled .cadastro-products-table th,
body.cadastro-note-catalog-enabled .cadastro-products-table td,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td {
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.cadastro-products-table .cadastro-select-col,
.cadastro-products-table th:first-child,
.cadastro-products-table td:first-child,
body.cadastro-note-catalog-enabled .cadastro-products-table .cadastro-select-col,
body.cadastro-note-catalog-enabled .cadastro-products-table th:first-child,
body.cadastro-note-catalog-enabled .cadastro-products-table td:first-child,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table .cadastro-select-col,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:first-child,
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:first-child {
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  padding-left: 1px !important;
  padding-right: 1px !important;
}

.cadastro-products-table .cadastro-select-col input[type="checkbox"],
.cadastro-products-table th:first-child input[type="checkbox"],
.cadastro-products-table td:first-child input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
}

.cadastro-products-table .cadastro-code-cell strong {
  display: inline !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.cadastro-name-textarea {
  resize: none !important;
  overflow: hidden !important;
  line-height: 1.22 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  min-height: 34px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(2),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(2) {
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(3),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(3) {
  width: 560px !important;
  min-width: 560px !important;
  max-width: 560px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(4),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(4) {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(5),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(5) {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table th:nth-child(6),
body.cadastro-note-catalog-enabled .cadastro-products-table td:nth-child(6) {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
}

body.cadastro-note-catalog-enabled .cadastro-products-table {
  min-width: 1540px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(2),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(2) {
  width: 110px !important;
  min-width: 110px !important;
  max-width: 110px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(3),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(3) {
  width: 560px !important;
  min-width: 560px !important;
  max-width: 560px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(4),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(4) {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table th:nth-child(5),
body:not(.cadastro-note-catalog-enabled) .cadastro-products-table td:nth-child(5) {
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
}

body:not(.cadastro-note-catalog-enabled) .cadastro-products-table {
  min-width: 1320px !important;
}


.cadastro-note-total-warning {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 700;
}


/* Dashboard separado dos relatórios: tela inteira para o gerencial */
.dashboard-gerencial-full-page {
  padding: 18px;
  min-height: calc(100vh - 64px);
}

.dashboard-gerencial-shell {
  width: 100%;
  min-height: calc(100vh - 104px);
  border-radius: 24px;
  padding: 26px;
}

.dashboard-gerencial-topline {
  padding: 0 0 18px;
}

.dashboard-gerencial-topline p {
  margin: 8px 0 0;
  color: #64748b;
  font-weight: 650;
}

.dashboard-gerencial-full-page .dashboard-gerencial-panel {
  width: 100%;
}

.dashboard-gerencial-full-page .dashboard-gerencial-widgets {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

/* Portal Enfoque - comparativo de lojas mockado */
.portal-store-page {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portal-store-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 94, 89, 0.92));
  color: #ffffff;
  border: 0;
}

.portal-store-hero h1 {
  margin: 8px 0 10px;
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.portal-store-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
}

.portal-store-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-store-hero .portal-store-kicker {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.portal-store-period-card {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.portal-store-period-card span,
.portal-store-period-card small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.portal-store-period-card strong {
  font-size: 1.45rem;
  color: #fff;
}

.portal-store-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
}

.portal-store-toolbar div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.portal-store-toolbar label {
  font-size: 0.78rem;
  font-weight: 900;
  color: #334155;
}

.portal-store-toolbar select {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  padding: 0 12px;
}

.portal-store-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.portal-store-kpi {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-store-kpi span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-store-kpi strong {
  color: #0f172a;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.portal-store-kpi small {
  color: #64748b;
  font-weight: 700;
}

.portal-store-kpi.is-leader {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.96));
}

.portal-store-grid {
  display: grid;
  gap: 18px;
}

.portal-store-grid-main {
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.7fr);
}

.portal-store-grid-tables {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-store-panel {
  padding: 0;
  overflow: hidden;
}

.portal-store-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.portal-store-section-head.compact {
  border-bottom: 0;
  padding-bottom: 8px;
}

.portal-store-section-head h2 {
  margin: 8px 0 0;
  color: #0f172a;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.portal-store-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 900;
}

.portal-store-table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  max-height: none;
}

.portal-store-table-wrap.small {
  max-height: 360px;
}

.portal-store-table {
  min-width: 760px;
}

.portal-store-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-store-table td,
.portal-store-table th {
  padding: 13px 14px;
  border-color: #e2e8f0;
}

.portal-store-table td {
  color: #1e293b;
  font-weight: 700;
}

.portal-store-side-stack {
  display: grid;
  gap: 18px;
}

.portal-store-bars {
  display: grid;
  gap: 14px;
  padding: 8px 20px 20px;
}

.portal-store-bars div {
  display: grid;
  grid-template-columns: 90px 1fr 44px;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-weight: 900;
}

.portal-store-bars i {
  position: relative;
  display: block;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.portal-store-bars i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #0f766e);
}

.portal-store-highlight-box {
  padding: 22px;
  background: linear-gradient(135deg, #0f172a, #115e59);
  color: #fff;
}

.portal-store-highlight-box .portal-store-kicker {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.portal-store-highlight-box h2 {
  margin: 12px 0 10px;
  color: #fff;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.portal-store-highlight-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.portal-store-metric-list {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
}

.portal-store-metric-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.portal-store-metric-list span {
  color: #0f172a;
  font-weight: 900;
}

.portal-store-metric-list strong {
  color: #0f766e;
}

.portal-store-metric-list small {
  grid-column: 1 / -1;
  color: #64748b;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .portal-store-grid-main,
  .portal-store-grid-tables,
  .portal-store-kpi-grid,
  .portal-store-toolbar {
    grid-template-columns: 1fr;
  }

  .portal-store-period-card {
    flex-basis: auto;
  }

  .portal-store-hero {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .portal-store-page {
    padding: 16px;
  }

  .portal-store-hero {
    padding: 22px;
  }
}


/* Ajuste Dashboard Gerencial - evita cards espremidos lado a lado */
.dashboard-gerencial-full-page .dashboard-gerencial-widgets {
  grid-template-columns: repeat(2, minmax(420px, 1fr));
  align-items: stretch;
}

.dashboard-gerencial-full-page .dashboard-widget {
  min-width: 0;
  overflow: hidden;
}

.dashboard-gerencial-full-page .dashboard-widget-editor {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.dashboard-gerencial-full-page .dashboard-widget-editor .btn-small {
  width: 100%;
  min-height: 40px;
  align-self: end;
}

@media (min-width: 1500px) {
  .dashboard-gerencial-full-page .dashboard-gerencial-widgets {
    grid-template-columns: repeat(2, minmax(480px, 1fr));
  }
}

@media (max-width: 1100px) {
  .dashboard-gerencial-full-page .dashboard-gerencial-widgets,
  .dashboard-gerencial-full-page .dashboard-gerencial-summary {
    grid-template-columns: 1fr;
  }
}

/* Ajuste global final da lingueta do menu lateral
   Mantem o menu fechado por padrao, cola a lingueta na borda do menu quando aberto
   e evita deslocamento ao passar o mouse. */
.sidebar-tab,
body .sidebar-tab,
body.home-redesign .sidebar-tab {
  position: fixed !important;
  top: 50% !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  min-width: 42px !important;
  height: auto !important;
  min-height: 108px !important;
  padding: 12px 10px !important;
  border: 1px solid rgba(8,58,98,.78) !important;
  border-left: 0 !important;
  border-radius: 0 14px 14px 0 !important;
  clip-path: none !important;
  background: linear-gradient(180deg, rgba(20,101,154,.98), rgba(9,67,111,.98)) !important;
  color: #f7fbff !important;
  box-shadow: 8px 14px 28px rgba(4,22,48,.20), inset 0 1px 0 rgba(255,255,255,.08) !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  transform: translateY(-50%) !important;
  transition: left 180ms ease, background 160ms ease, box-shadow 160ms ease !important;
  z-index: 2147483001 !important;
}
.sidebar-tab:hover,
.sidebar-tab:focus-visible,
body.home-redesign .sidebar-tab:hover,
body.home-redesign .sidebar-tab:focus-visible {
  background: linear-gradient(180deg, rgba(23,113,166,.96), rgba(13,78,126,.96)) !important;
  transform: translateY(-50%) !important;
  box-shadow: 8px 14px 28px rgba(4,22,48,.22), inset 0 1px 0 rgba(255,255,255,.10) !important;
}
.sidebar-tab-icon,
body .sidebar-tab-icon,
body.home-redesign .sidebar-tab-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  transform: none !important;
}
.sidebar-tab-label,
body .sidebar-tab-label,
body.home-redesign .sidebar-tab-label {
  display: inline-block !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  line-height: 1 !important;
}
body.sidebar-open .sidebar-tab,
body.sidebar-open body.home-redesign .sidebar-tab {
  left: calc(min(var(--sidebar-width, 280px), calc(100vw - 58px)) + 8px) !important;
  transform: translateY(-50%) !important;
}
@media (max-width: 760px) {
  .sidebar-tab,
  body .sidebar-tab,
  body.home-redesign .sidebar-tab {
    top: auto !important;
    left: 12px !important;
    bottom: calc(var(--mobile-bottom-nav-height, 0px) + var(--mobile-safe-bottom, 0px) + 18px) !important;
    min-width: 54px !important;
    width: 54px !important;
    min-height: 54px !important;
    height: 54px !important;
    padding: 0 !important;
    border-radius: 18px !important;
    border-left: 1px solid rgba(148, 163, 184, .35) !important;
    flex-direction: row !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
  }
  .sidebar-tab-label,
  body .sidebar-tab-label,
  body.home-redesign .sidebar-tab-label {
    display: none !important;
  }
  .sidebar-tab:hover,
  .sidebar-tab:focus-visible {
    transform: none !important;
  }
  body.sidebar-open .sidebar-tab {
    left: calc(min(var(--sidebar-width, 280px), calc(100vw - 58px)) - 28px) !important;
    bottom: calc(var(--mobile-bottom-nav-height, 0px) + var(--mobile-safe-bottom, 0px) + 18px) !important;
    transform: none !important;
  }
}
body.home-redesign.sidebar-open .sidebar-tab {
  left: calc(min(var(--sidebar-width, 280px), calc(100vw - 58px)) - 2px) !important;
  transform: translateY(-50%) !important;
}
@media (max-width: 760px) {
  body.home-redesign.sidebar-open .sidebar-tab {
    left: calc(min(var(--sidebar-width, 280px), calc(100vw - 58px)) - 28px) !important;
    transform: none !important;
  }
}

/* Ajuste final: manter a lingueta visivel, removendo apenas o texto "Menu". */
.sidebar-tab,
body .sidebar-tab,
body.home-redesign .sidebar-tab {
  width: 42px !important;
  min-width: 42px !important;
  height: 108px !important;
  min-height: 108px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}
.sidebar-tab-label,
body .sidebar-tab-label,
body.home-redesign .sidebar-tab-label {
  display: none !important;
}
.sidebar-tab-icon,
body .sidebar-tab-icon,
body.home-redesign .sidebar-tab-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
@media (max-width: 760px) {
  .sidebar-tab,
  body .sidebar-tab,
  body.home-redesign .sidebar-tab {
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
  }
}

/* Relatorio Vendas por Vendedor */
.seller-sales-report-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.seller-sales-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.seller-sales-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  min-width: min(680px, 100%);
  align-items: end;
}
.seller-sales-actions label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #475467;
  font-weight: 700;
}
.seller-sales-actions input,
.seller-sales-actions select {
  min-height: 40px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  color: #101828;
}
.seller-sales-summary {
  margin: -6px 0 0;
}
.seller-sales-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.seller-sales-card {
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}
.seller-sales-card span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.seller-sales-card strong {
  color: #101828;
  font-size: 18px;
  line-height: 1.25;
}
.seller-sales-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.seller-sales-section {
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  overflow: hidden;
}
.seller-sales-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #101828;
}
.seller-sales-table-wrap {
  overflow: auto;
  max-height: 420px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
}
.seller-sales-details-wrap {
  max-height: 560px;
}
.seller-sales-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 13px;
}
.seller-sales-table th,
.seller-sales-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
}
.seller-sales-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.seller-sales-table tbody tr:hover {
  background: #f9fafb;
}
@media (max-width: 920px) {
  .seller-sales-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 100%; }
  .seller-sales-grid-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .seller-sales-actions { grid-template-columns: 1fr; }
}

/* Loading do relatório Vendas por Vendedor */
.seller-sales-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  color: #1e3a8a;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .10);
}
.seller-sales-loading[hidden] {
  display: none !important;
}
.seller-sales-loading strong,
.seller-sales-loading small {
  display: block;
}
.seller-sales-loading small {
  color: #475569;
  margin-top: 2px;
}
.seller-sales-spinner,
.btn-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid rgba(37, 99, 235, .20);
  border-top-color: #2563eb;
  animation: sellerSalesSpin .8s linear infinite;
  flex: 0 0 auto;
}
.btn-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, .35);
  border-top-color: #fff;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
}
.btn-primary.is-loading,
.btn-primary:disabled {
  cursor: not-allowed;
  opacity: .78;
}
@keyframes sellerSalesSpin {
  to { transform: rotate(360deg); }
}

/* Vendas por Vendedor - autocomplete de lojas */
.seller-sales-store-field {
  position: relative;
}
.seller-store-suggestions {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  padding: 6px;
}
.seller-store-option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  color: #10213f;
  cursor: pointer;
}
.seller-store-option:hover,
.seller-store-option:focus {
  outline: none;
  background: #eef5ff;
}
.seller-store-option strong {
  display: block;
  font-size: 0.86rem;
}
.seller-store-option span,
.seller-store-empty {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 0.75rem;
}
.seller-store-empty {
  padding: 10px 12px;
}

/* Loading padrao da intranet - inspirado em Produtos sem venda */
.enfoque-loading-zone {
  position: relative !important;
}

.enfoque-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.enfoque-loading-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.enfoque-loading-overlay.is-local {
  position: absolute;
  z-index: 45;
  border-radius: inherit;
  background: rgba(248, 251, 255, 0.90);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.enfoque-loading-card,
.report-loading-content {
  width: min(560px, calc(100% - 28px));
  max-width: 100%;
  border: 1px solid rgba(219, 234, 254, 0.95) !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  padding: 26px !important;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25) !important;
  text-align: center;
  color: #17233c;
}

.enfoque-loading-overlay.is-local .enfoque-loading-card {
  width: min(460px, 100%);
  padding: 20px !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16) !important;
}

.enfoque-loading-spinner,
.report-loading-spinner {
  width: 58px !important;
  height: 58px !important;
  margin: 0 auto 16px !important;
  border-radius: 50%;
  border: 6px solid #dbeafe !important;
  border-top-color: #2563eb !important;
  animation: spin 0.9s linear infinite;
}

.enfoque-loading-title,
.report-loading-text {
  margin: 0 0 8px !important;
  color: #0f172a !important;
  font-size: 1.38rem !important;
  font-weight: 900 !important;
  line-height: 1.2;
}

.enfoque-loading-text,
.report-loading-subtext {
  min-height: 1.35em;
  margin: 0 !important;
  color: #475569 !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1.45;
}

.report-loading-content::after,
.price-loading-box::after,
.seller-sales-loading::after,
.report-loading-inline::after,
.portal-loading-card::after {
  display: block;
  height: 9px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(90deg, #2563eb, #38bdf8) 0 0 / 18% 100% no-repeat,
    #e2e8f0;
  animation: enfoqueLoadingMove 1.15s ease-in-out infinite alternate;
}

.enfoque-loading-progress {
  height: 9px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
  width: 100%;
}

.enfoque-loading-progress span {
  display: block;
  height: 100%;
  width: 18%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 0.25s ease;
}

.enfoque-loading-progress.is-indeterminate span {
  animation: enfoqueLoadingSlide 1.15s ease-in-out infinite alternate;
}

.enfoque-loading-steps {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  text-align: left;
}

.enfoque-loading-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #64748b;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.35;
}

.enfoque-loading-step::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
  flex: 0 0 auto;
}

.enfoque-loading-step.active {
  color: #1d4ed8;
}

.enfoque-loading-step.active::before {
  background: #2563eb;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, .12);
}

.enfoque-loading-step.done {
  color: #047857;
}

.enfoque-loading-step.done::before {
  background: #10b981;
}

.report-loading-content::after,
.price-loading-box::after,
.seller-sales-loading::after,
.report-loading-inline::after,
.portal-loading-card::after {
  content: "";
}

.report-loading-overlay {
  background: rgba(15, 23, 42, 0.24) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

.portal-loading-overlay {
  background: rgba(15, 23, 42, 0.24) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

.portal-loading-card {
  width: min(560px, calc(100% - 28px)) !important;
  border: 1px solid rgba(219, 234, 254, 0.95) !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  padding: 26px !important;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25) !important;
  color: #17233c !important;
  text-align: center !important;
}

.portal-loading-spinner {
  width: 58px !important;
  height: 58px !important;
  margin: 0 auto 16px !important;
  border-radius: 50% !important;
  border: 6px solid #dbeafe !important;
  border-top-color: #2563eb !important;
  animation: spin 0.9s linear infinite !important;
}

.price-loading-box,
.seller-sales-loading,
.report-loading-inline {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(219, 234, 254, 0.95) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12) !important;
}

.seller-sales-loading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.seller-sales-loading::after {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.seller-sales-spinner {
  width: 44px !important;
  height: 44px !important;
  border-width: 5px !important;
  border-color: #dbeafe !important;
  border-top-color: #2563eb !important;
}

.top-sellers-body.enfoque-loading-zone {
  min-height: 214px;
}

.top-sellers-body .enfoque-loading-overlay.is-local {
  inset: 0;
  border-radius: 0 0 24px 24px;
}

.top-sellers-body .enfoque-loading-title {
  font-size: 1.02rem !important;
}

.top-sellers-body .enfoque-loading-text {
  font-size: 0.84rem !important;
}

@keyframes enfoqueLoadingMove {
  from {
    background-position: -8% 0, 0 0;
  }
  to {
    background-position: 100% 0, 0 0;
  }
}

@keyframes enfoqueLoadingSlide {
  from {
    transform: translateX(-30%);
  }
  to {
    transform: translateX(460%);
  }
}

@media (max-width: 640px) {
  .enfoque-loading-card,
  .report-loading-content {
    padding: 20px !important;
  }

  .enfoque-loading-spinner,
  .report-loading-spinner {
    width: 50px !important;
    height: 50px !important;
  }

  .enfoque-loading-title,
  .report-loading-text {
    font-size: 1.08rem !important;
  }
}

/* Ajuste global do menu lateral: scroll completo e submenus sem cortes */
.sidebar {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.sidebar-header {
  flex: 0 0 auto !important;
}
.sidebar nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 6px !important;
  padding-bottom: 96px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, .45) rgba(219, 234, 254, .65);
  -webkit-overflow-scrolling: touch;
}
.sidebar nav::-webkit-scrollbar {
  width: 8px;
}
.sidebar nav::-webkit-scrollbar-track {
  background: rgba(219, 234, 254, .65);
  border-radius: 999px;
}
.sidebar nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(37, 99, 235, .65), rgba(14, 165, 233, .55));
  border-radius: 999px;
  border: 2px solid rgba(219, 234, 254, .65);
}
.sidebar nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(29, 78, 216, .85), rgba(2, 132, 199, .75));
}
.submenu.is-open {
  max-height: 1200px !important;
}
.menu-item {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* Loading processual compartilhado */
.enfoque-process-loading { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 22px; background: rgba(15, 23, 42, .52); backdrop-filter: blur(4px); transition: opacity .18s ease; }
.enfoque-process-loading.is-local { position: absolute; min-height: 260px; border-radius: inherit; }
.enfoque-process-loading.is-leaving { opacity: 0; pointer-events: none; }
.enfoque-process-loading-card { width: min(520px, 100%); max-height: calc(100vh - 44px); overflow: auto; padding: 22px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.28); }
.enfoque-process-loading-head { display: flex; gap: 14px; align-items: center; }
.enfoque-process-loading-head strong { display: block; color: #0f172a; font-size: 18px; }
.enfoque-process-loading-head p { margin: 4px 0 0; color: #64748b; font-size: 13px; }
.enfoque-process-spinner { width: 34px; height: 34px; flex: 0 0 auto; border: 4px solid #dbeafe; border-top-color: #2563eb; border-radius: 50%; animation: enfoque-process-spin .8s linear infinite; }
.enfoque-process-progress { height: 10px; margin-top: 18px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.enfoque-process-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2563eb,#0ea5e9); transition: width .3s ease; }
.enfoque-process-percent { margin-top: 6px; color: #2563eb; text-align: right; font-size: 12px; font-weight: 900; }
.enfoque-process-steps { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.enfoque-process-steps li { display: grid; grid-template-columns: 25px 1fr; gap: 9px; align-items: center; color: #94a3b8; }
.enfoque-process-steps li span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #e2e8f0; color: #64748b; font-size: 11px; font-weight: 900; }
.enfoque-process-steps li em { font-style: normal; font-size: 12px; }
.enfoque-process-steps li.active { color: #1d4ed8; font-weight: 800; }
.enfoque-process-steps li.active span { background: #dbeafe; color: #1d4ed8; }
.enfoque-process-steps li.done { color: #15803d; }
.enfoque-process-steps li.done span { background: #dcfce7; color: #15803d; }
@keyframes enfoque-process-spin { to { transform: rotate(360deg); } }

/* Dashboard principal de vendas por loja e vendedor */
.dashboard-vendas-principal{display:grid;gap:18px;margin:18px 0 26px}.dashboard-vendas-main-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;padding:22px;border:1px solid rgba(18,72,126,.14);border-radius:22px;background:linear-gradient(135deg,#f7fbff,#fff)}.dashboard-vendas-main-header h2{margin:4px 0 6px}.dashboard-vendas-main-header p{margin:0;color:#64748b}.dashboard-vendas-main-total{text-align:right;display:grid;gap:3px}.dashboard-vendas-main-total>span{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b}.dashboard-vendas-main-total strong{font-size:1.8rem;color:#0f4c81}.dashboard-vendas-main-total small{color:#64748b}.dashboard-vendas-lojas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dashboard-vendas-loja-card{border:1px solid rgba(18,72,126,.14);border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(15,76,129,.07);overflow:hidden}.dashboard-vendas-loja-card>header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:18px 20px;background:linear-gradient(135deg,#0f4c81,#1769aa);color:#fff}.dashboard-vendas-loja-card h3{margin:2px 0 0;color:#fff}.dashboard-vendas-loja-card header span,.dashboard-vendas-loja-card header small{opacity:.82}.dashboard-vendas-loja-total{text-align:right;display:grid}.dashboard-vendas-loja-total strong{font-size:1.35rem}.dashboard-vendas-desconto{padding:9px 20px;background:#fff7ed;color:#9a3412;font-size:.84rem;border-bottom:1px solid #fed7aa}.dashboard-vendas-table-wrap{overflow:auto}.dashboard-vendas-table{width:100%;border-collapse:collapse;min-width:650px}.dashboard-vendas-table th,.dashboard-vendas-table td{padding:12px 14px;border-bottom:1px solid #eef2f7;text-align:right;white-space:nowrap}.dashboard-vendas-table th:first-child,.dashboard-vendas-table td:first-child{text-align:left}.dashboard-vendas-table th{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b;background:#f8fafc}.dashboard-vendas-percent{display:grid;grid-template-columns:minmax(70px,1fr) auto;align-items:center;gap:8px}.dashboard-vendas-percent:before{content:"";grid-column:1;grid-row:1;height:7px;border-radius:99px;background:#e2e8f0}.dashboard-vendas-percent i{grid-column:1;grid-row:1;height:7px;border-radius:99px;background:#1769aa;z-index:1}.dashboard-vendas-percent b{grid-column:2;grid-row:1;font-size:.82rem}.dashboard-vendas-loading,.dashboard-vendas-error{padding:24px;border-radius:18px;background:#f8fafc;display:grid;gap:4px}.dashboard-vendas-error{background:#fff1f2;color:#9f1239}@media(max-width:1100px){.dashboard-vendas-lojas{grid-template-columns:1fr}}@media(max-width:700px){.dashboard-vendas-main-header{align-items:flex-start;flex-direction:column}.dashboard-vendas-main-total{text-align:left}.dashboard-vendas-loja-card>header{align-items:flex-start;flex-direction:column}.dashboard-vendas-loja-total{text-align:left}}

/* =========================================================
   ENFOQUE DESIGN SYSTEM
   Redesign exclusivamente visual
   ========================================================= */

/* 1. Tokens */
:root {
  --enf-primary: #1556a3;
  --enf-primary-hover: #104985;
  --enf-primary-active: #0d3b6d;
  --enf-primary-05: rgba(21, 86, 163, 0.05);
  --enf-primary-08: rgba(21, 86, 163, 0.08);
  --enf-primary-10: rgba(21, 86, 163, 0.10);
  --enf-primary-15: rgba(21, 86, 163, 0.15);
  --enf-primary-20: rgba(21, 86, 163, 0.20);
  --enf-primary-40: rgba(21, 86, 163, 0.40);

  --enf-navy: #121b30;
  --enf-navy-soft: #1d2946;
  --enf-navy-hover: #243653;

  --enf-page-bg: #f5f6f8;
  --enf-surface: #ffffff;
  --enf-surface-soft: #fafbfc;
  --enf-surface-muted: #f0f3f6;

  --enf-text: #121b30;
  --enf-text-secondary: #4f596b;
  --enf-text-muted: #737d8f;
  --enf-text-disabled: #a2a9b5;
  --enf-text-on-dark: #ffffff;

  --enf-border: #dce1e7;
  --enf-border-soft: #e8ebef;
  --enf-border-strong: #c5cbd3;

  --enf-success: #198754;
  --enf-success-bg: #eaf7f0;
  --enf-warning: #b86f00;
  --enf-warning-bg: #fff6df;
  --enf-danger: #d64545;
  --enf-danger-hover: #bd3535;
  --enf-danger-bg: #fff0f0;
  --enf-info: #2878c8;
  --enf-info-bg: #edf6ff;

  --enf-shadow-xs: 0 1px 2px rgba(18, 27, 48, 0.04);
  --enf-shadow-sm: 0 2px 7px rgba(18, 27, 48, 0.07);
  --enf-shadow-md: 0 8px 22px rgba(18, 27, 48, 0.10);
  --enf-shadow-lg: 0 18px 45px rgba(18, 27, 48, 0.14);

  --enf-radius-xs: 5px;
  --enf-radius-sm: 8px;
  --enf-radius-md: 12px;
  --enf-radius-lg: 16px;
  --enf-radius-pill: 999px;

  --enf-transition-fast: 120ms ease;
  --enf-transition: 180ms ease;
  --enf-transition-slow: 260ms cubic-bezier(.25, .8, .25, 1);
  --enf-focus-ring: 0 0 0 3px rgba(21, 86, 163, 0.18);

  --enf-font-xs: 0.6875rem;
  --enf-font-sm: 0.75rem;
  --enf-font-md: 0.875rem;
  --enf-font-lg: 1rem;
  --enf-font-xl: 1.125rem;
  --enf-font-2xl: 1.375rem;
  --enf-font-3xl: 1.75rem;

  --chart-1: #1556a3;
  --chart-2: #2f7bc1;
  --chart-3: #59a0db;
  --chart-4: #7c8798;
  --chart-success: #198754;
  --chart-warning: #d39323;
  --chart-danger: #d64545;

  /* Aliases mantêm os componentes legados integrados ao tema. */
  --bg-0: var(--enf-page-bg);
  --bg-1: var(--enf-surface-muted);
  --surface: var(--enf-surface);
  --surface-soft: var(--enf-surface-soft);
  --surface-elevated: var(--enf-surface);
  --text: var(--enf-text);
  --muted: var(--enf-text-muted);
  --border: var(--enf-border);
  --primary: var(--enf-primary);
  --primary-strong: var(--enf-primary-hover);
  --primary-soft: var(--enf-primary-08);
  --secondary: var(--enf-info);
  --secondary-soft: var(--enf-info-bg);
  --sidebar-1: var(--enf-navy);
  --sidebar-2: var(--enf-navy-soft);
  --ok: var(--enf-success);
  --danger: var(--enf-danger);
  --warning: var(--enf-warning);
  --shadow-lg: var(--enf-shadow-lg);
  --shadow-md: var(--enf-shadow-md);
  --shadow-sm: var(--enf-shadow-sm);
  --radius-xl: var(--enf-radius-lg);
  --radius-md: var(--enf-radius-md);
  --radius-sm: var(--enf-radius-sm);
}

/* 2. Base global */
html {
  background: var(--enf-page-bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
}

body {
  color: var(--enf-text);
  background: var(--enf-page-bg);
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: var(--enf-font-md);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:not(.login-body),
body.home-redesign {
  background: var(--enf-page-bg) !important;
}

body::before {
  display: none;
}

::selection {
  color: var(--enf-text);
  background: var(--enf-primary-20);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #b6bfcb transparent;
}

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

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

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: var(--enf-radius-pill);
  background: #b6bfcb;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  border: 2px solid transparent;
  background: #929dab;
  background-clip: padding-box;
}

/* 3. Tipografia */
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
strong,
.menu-item,
.btn-primary,
.btn-ghost,
.tab,
.tab-btn {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

h1,
.page-title {
  color: var(--enf-text);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h2,
.section-title {
  color: var(--enf-text);
  font-size: var(--enf-font-xl);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

h3,
.card-title {
  color: var(--enf-text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.muted,
.hint,
.form-help,
.help-text,
.field-description {
  color: var(--enf-text-muted) !important;
}

/* 4. Menu e cabeçalho */
.sidebar {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, var(--enf-navy-soft), var(--enf-navy));
  border-right-color: rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 18px rgba(18, 27, 48, 0.10);
}

.sidebar-header {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.sidebar-header h2 {
  color: var(--enf-text-on-dark);
  font-weight: 600;
}

.sidebar-eyebrow,
.sidebar .sidebar-eyebrow {
  color: #91c8ff;
  font-weight: 600;
}

.sidebar .menu-item,
.sidebar .submenu .menu-item {
  color: rgba(255, 255, 255, 0.74);
  border-color: transparent;
  border-radius: var(--enf-radius-sm);
  background: transparent;
  font-weight: 500;
  transition:
    color var(--enf-transition),
    background-color var(--enf-transition),
    border-color var(--enf-transition);
}

.sidebar .menu-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  box-shadow: none;
}

.sidebar .menu-item.active,
.sidebar .menu-toggle.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-color: transparent;
  box-shadow: inset 3px 0 0 #5ba7f2;
}

.sidebar nav {
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.sidebar nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar nav::-webkit-scrollbar-thumb,
.sidebar nav::-webkit-scrollbar-thumb:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.28);
  background-clip: padding-box;
}

.sidebar-tab,
.sidebar-close-btn {
  color: var(--enf-navy);
  background: var(--enf-surface);
  border-color: var(--enf-border);
  border-radius: 0 var(--enf-radius-sm) var(--enf-radius-sm) 0;
  box-shadow: var(--enf-shadow-sm);
}

.topbar {
  color: var(--enf-text);
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--enf-border-soft);
  border-radius: var(--enf-radius-md);
  box-shadow: var(--enf-shadow-xs);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar-home {
  color: #ffffff;
  background: linear-gradient(100deg, var(--enf-navy), var(--enf-navy-soft)) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: var(--enf-shadow-sm);
}

.topbar-home .welcome-pill,
.topbar-home .btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.topbar-home .welcome-pill:hover,
.topbar-home .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* 5. Superfícies e cards */
.card,
.panel,
.dashboard-card,
.widget,
.chart-card,
.filters,
.home-info-card,
.home-list-card,
.spotlight-card,
.video-card,
.user-card,
.bio-admin-card,
.stock-report-metric-card,
.maintenance-card,
.resource-item,
.shortcut-item,
.table-wrap,
.dashboard-panel,
.dashboard-widget,
.dashboard-kpi-card,
.dashboard-status-card,
.product-lookup-card,
.dashboard-vendas-main-header,
.dashboard-vendas-loja-card {
  color: var(--enf-text);
  background: var(--enf-surface) !important;
  border-color: var(--enf-border-soft) !important;
  border-radius: var(--enf-radius-md) !important;
  box-shadow: var(--enf-shadow-xs) !important;
}

.card:hover,
.dashboard-card:hover,
.shortcut-item:hover,
.resource-item:hover,
.user-card:hover,
.chart-card:hover {
  border-color: var(--enf-primary-20) !important;
  box-shadow: var(--enf-shadow-sm) !important;
}

.shortcut-item:hover,
.resource-item:hover {
  transform: translateY(-1px);
}

.filters {
  background: var(--enf-surface-soft) !important;
}

/* 6. Botões */
button,
.btn {
  border-radius: var(--enf-radius-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    color var(--enf-transition),
    background-color var(--enf-transition),
    border-color var(--enf-transition),
    box-shadow var(--enf-transition),
    transform var(--enf-transition-fast);
}

.btn-primary {
  color: #ffffff !important;
  background: var(--enf-primary) !important;
  border-color: var(--enf-primary) !important;
  box-shadow: 0 2px 5px var(--enf-primary-20) !important;
}

.btn-primary:hover {
  color: #ffffff !important;
  background: var(--enf-primary-hover) !important;
  border-color: var(--enf-primary-hover) !important;
  box-shadow: 0 4px 10px var(--enf-primary-20) !important;
  transform: translateY(-1px);
}

.btn-primary:active {
  background: var(--enf-primary-active) !important;
  transform: translateY(0);
}

.btn-ghost,
.btn-secondary,
.btn-outline,
.menu-button,
.hamburger,
.tab,
.tab-btn {
  color: var(--enf-text);
  background: var(--enf-surface);
  border-color: var(--enf-border);
  box-shadow: none;
}

.btn-ghost:hover,
.btn-secondary:hover,
.btn-outline:hover,
.menu-button:hover,
.hamburger:hover,
.tab:hover,
.tab-btn:hover {
  color: var(--enf-primary);
  background: var(--enf-primary-05);
  border-color: var(--enf-primary-40);
}

.btn-danger {
  color: #ffffff;
  background: var(--enf-danger);
  border-color: var(--enf-danger);
  box-shadow: 0 2px 5px rgba(214, 69, 69, 0.20);
}

.btn-danger:hover {
  color: #ffffff;
  background: var(--enf-danger-hover);
  border-color: var(--enf-danger-hover);
}

button:disabled,
.btn:disabled,
.btn.disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

/* 7. Formulários */
input,
select,
textarea,
.form-control {
  color: var(--enf-text);
  background: var(--enf-surface);
  border-color: var(--enf-border);
  border-radius: var(--enf-radius-sm);
  font-family: inherit;
  outline: none;
  box-shadow: none;
  transition:
    border-color var(--enf-transition),
    box-shadow var(--enf-transition),
    background-color var(--enf-transition);
}

input:hover,
select:hover,
textarea:hover,
.form-control:hover {
  border-color: var(--enf-border-strong);
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: var(--enf-primary);
  box-shadow: var(--enf-focus-ring);
}

::placeholder {
  color: var(--enf-text-disabled);
  opacity: 1;
}

input:disabled,
select:disabled,
textarea:disabled {
  color: var(--enf-text-muted);
  background: var(--enf-surface-muted);
  cursor: not-allowed;
}

label,
.form-label {
  color: var(--enf-text-secondary);
  font-weight: 600;
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--enf-danger);
}

.field-error,
.error-message {
  color: var(--enf-danger);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--enf-primary);
}

/* 8. Tabelas */
.table-wrap,
.table-wrapper,
.quota-report-table-wrap,
.expense-table-wrap,
.vpn-table-wrap,
.dashboard-vendas-table-wrap {
  overflow-x: auto;
  background: var(--enf-surface) !important;
  border-color: var(--enf-border-soft) !important;
  border-radius: var(--enf-radius-md) !important;
}

table {
  color: var(--enf-text);
  background: var(--enf-surface);
}

th,
table thead th {
  color: var(--enf-text-secondary);
  background: var(--enf-surface-muted) !important;
  border-bottom-color: var(--enf-border);
  font-weight: 600;
  box-shadow: none;
}

td {
  color: var(--enf-text);
  border-bottom-color: var(--enf-border-soft);
}

tbody tr {
  transition: background-color var(--enf-transition-fast);
}

tbody tr:nth-child(even) {
  background: var(--enf-surface-soft);
}

tbody tr:hover {
  background: var(--enf-primary-05);
}

tbody tr:last-child td {
  border-bottom-color: transparent;
}

/* 9. Abas, paginação e menus flutuantes */
.tabs,
.nav-tabs {
  border-color: var(--enf-border);
}

.tab,
.nav-tabs a {
  color: var(--enf-text-muted);
  font-weight: 500;
}

.tab.active,
.tab-btn.active,
.nav-tabs .active a {
  color: #ffffff !important;
  background: var(--enf-primary) !important;
  border-color: var(--enf-primary) !important;
  box-shadow: 0 2px 6px var(--enf-primary-20) !important;
}

.pagination button,
.pagination a {
  color: var(--enf-text-secondary);
  background: var(--enf-surface);
  border-color: var(--enf-border);
  border-radius: var(--enf-radius-sm);
}

.pagination .active {
  color: #ffffff;
  background: var(--enf-primary);
  border-color: var(--enf-primary);
}

.dropdown-menu,
.context-menu,
.topbar-search-results {
  color: var(--enf-text);
  background: var(--enf-surface);
  border-color: var(--enf-border-soft);
  border-radius: var(--enf-radius-md);
  box-shadow: var(--enf-shadow-md);
}

.dropdown-menu a,
.dropdown-item,
.topbar-search-result {
  color: var(--enf-text);
  transition:
    color var(--enf-transition-fast),
    background-color var(--enf-transition-fast);
}

.dropdown-menu a:hover,
.dropdown-item:hover,
.topbar-search-result:hover {
  color: var(--enf-primary);
  background: var(--enf-primary-05);
}

/* 10. Status, feedback e notificações */
.badge,
.status-badge {
  border-radius: var(--enf-radius-pill);
  font-weight: 600;
}

.status-success {
  color: var(--enf-success);
  background: var(--enf-success-bg);
}

.status-warning {
  color: var(--enf-warning);
  background: var(--enf-warning-bg);
}

.status-danger {
  color: var(--enf-danger);
  background: var(--enf-danger-bg);
}

.status-info {
  color: var(--enf-info);
  background: var(--enf-info-bg);
}

.feedback:not(:empty),
.toast,
.notification {
  border-color: var(--enf-border-soft);
  border-radius: var(--enf-radius-md);
}

.toast,
.notification {
  background: var(--enf-surface);
  box-shadow: var(--enf-shadow-md);
  animation: enf-toast-in 220ms ease both;
}

.tooltip,
.tooltip-inner,
[data-tooltip]::after {
  color: #ffffff;
  background: rgba(18, 27, 48, 0.96);
  border-radius: var(--enf-radius-sm);
  box-shadow: var(--enf-shadow-sm);
}

/* 11. Modais e loading */
.modal-backdrop,
.dialog-backdrop,
.report-loading-overlay,
.ti-modal-backdrop,
.custom-modal-backdrop,
.product-calc-modal,
.enfoque-loading-overlay,
.enfoque-process-loading {
  background: rgba(18, 27, 48, 0.56) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

.modal-content,
.dialog,
.report-loading-content,
.ti-modal-card,
.custom-modal-card,
.ramais-card,
.enfoque-loading-card,
.enfoque-process-loading-card {
  color: var(--enf-text);
  background: var(--enf-surface) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  border-radius: var(--enf-radius-lg) !important;
  box-shadow: var(--enf-shadow-lg) !important;
}

.modal-header,
.ti-modal-header,
.custom-modal-header {
  border-bottom-color: var(--enf-border-soft);
}

.modal-footer {
  border-top-color: var(--enf-border-soft);
}

.spinner,
.loader,
.report-loading-spinner,
.enfoque-loading-spinner,
.enfoque-process-spinner {
  border-color: var(--enf-primary-15) !important;
  border-top-color: var(--enf-primary) !important;
  animation: enf-spin 700ms linear infinite;
}

.report-progress-track,
.dashboard-progress,
.enfoque-loading-progress,
.enfoque-process-progress {
  background: var(--enf-surface-muted);
}

.report-progress-bar,
.dashboard-progress span,
.enfoque-loading-progress span,
.enfoque-process-progress i {
  background: linear-gradient(90deg, var(--enf-primary), var(--enf-info));
}

@keyframes enf-spin {
  to { transform: rotate(360deg); }
}

@keyframes enf-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes enf-toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* 12. Acessibilidade e responsividade visual */
:focus-visible {
  outline: 2px solid var(--enf-primary);
  outline-offset: 2px;
  box-shadow: var(--enf-focus-ring);
}

@media (max-width: 760px) {
  .card,
  .filters,
  .table-wrap,
  .table-wrapper,
  .modal-content,
  .dialog,
  .ti-modal-card,
  .custom-modal-card {
    border-radius: var(--enf-radius-sm) !important;
  }

  .table-wrap,
  .table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-content,
  .dialog,
  .ti-modal-card,
  .custom-modal-card {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.sidebar .menu-item.menu-sige-copilot {
  margin-block: 6px;
  border: 1px solid rgba(111, 82, 205, .2);
  color: #5743a7;
  background: linear-gradient(135deg, rgba(238, 234, 253, .92), rgba(235, 242, 255, .92));
  font-weight: 750;
}

.sidebar .menu-item.menu-sige-copilot:hover,
.sidebar .menu-item.menu-sige-copilot.active {
  border-color: rgba(92, 68, 183, .36);
  color: #3f2c91;
  background: linear-gradient(135deg, #e7e0fc, #e1ecff);
  box-shadow: 0 8px 20px rgba(75, 63, 153, .12);
}


/* COTAS V3 20260804 */
.quota-week-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:18px 0;padding:16px 18px;border:1px solid #dbe7f5;border-radius:16px;background:linear-gradient(135deg,#eff6ff,#fff)}
.quota-week-toolbar>div{display:grid;gap:4px}.quota-week-toolbar>div span{color:#64748b;font-size:.72rem;font-weight:800;text-transform:uppercase}.quota-week-toolbar>div strong{color:#15345f;font-size:1.08rem}.quota-week-toolbar label{display:grid;gap:6px;min-width:260px;color:#475569;font-size:.78rem;font-weight:800}.quota-week-toolbar select{min-height:40px;border:1px solid #cbd8e8;border-radius:10px;background:#fff;padding:0 11px}
.quota-chart-heading span{color:#64748b;font-size:.72rem;font-weight:800;text-transform:uppercase}.quota-chart-heading h3{margin:4px 0 18px}.quota-progress-item{display:grid;gap:8px;padding:12px 0;border-bottom:1px solid #edf2f7}.quota-progress-item:last-child{border-bottom:0}.quota-progress-head,.quota-progress-line,.quota-progress-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}.quota-progress-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quota-progress-head span{padding:4px 9px;border-radius:999px;background:#e8f1ff;color:#1d4ed8;font-weight:900}.quota-progress-line .quota-chart-track{flex:1}.quota-progress-total{min-width:120px;text-align:right}.quota-progress-foot{color:#64748b;font-size:.75rem}
.seller-quota-batch{display:grid;grid-template-columns:minmax(190px,1fr) minmax(210px,280px) auto auto;align-items:end;gap:12px;margin:16px 0;padding:15px;border:1px solid #bfdbfe;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#fff)}.seller-quota-batch>div{display:grid;gap:4px}.seller-quota-batch>div span{color:#64748b;font-size:.82rem}.seller-quota-batch label{display:grid;gap:5px;font-weight:700}.seller-quota-input{min-width:110px;max-width:145px;text-align:right;font-weight:800;border:1px solid #cbdcf0;border-radius:8px;padding:7px 9px}.quota-select-cell{width:42px!important;text-align:center!important}.quota-select-cell input{width:17px;height:17px;accent-color:#2563eb}.quota-progress-pill{display:inline-flex;justify-content:center;min-width:70px;padding:5px 9px;border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:800}
@media(max-width:900px){.seller-quota-batch{grid-template-columns:1fr 1fr}.quota-week-toolbar{align-items:stretch;flex-direction:column}.quota-week-toolbar label{min-width:0}.quota-progress-line{align-items:flex-start;flex-direction:column}.quota-progress-line .quota-chart-track{width:100%}.quota-progress-total{min-width:0;text-align:left}}@media(max-width:620px){.seller-quota-batch{grid-template-columns:1fr}}

/* Topo do menu lateral: atalho para a pagina principal */
.sidebar-header .sidebar-home-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-header .sidebar-home-link:hover,
.sidebar-header .sidebar-home-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.sidebar-header .sidebar-home-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Cotas por Loja: separacao visual entre indicadores mensais e diarios dos vendedores. */
#sellerQuotaTableHead .seller-quota-group-row th {
  vertical-align: middle;
}
#sellerQuotaTableHead .seller-quota-group {
  text-align: center;
  font-weight: 800;
  letter-spacing: .02em;
}
#sellerQuotaTableHead .seller-quota-group-monthly,
#sellerQuotaTableHead .seller-quota-column-row th:nth-last-child(5) {
  border-right-width: 3px;
}
#sellerQuotaTableBody tr > td:nth-last-child(5) {
  border-right-width: 3px;
}
#sellerQuotaTableHead .seller-quota-group-daily {
  border-left-width: 3px;
}

/* Cotas por Loja: posiciona a quantidade de vendas no fim util da barra. */
.quota-progress-foot{padding-right:132px}
.quota-progress-foot .quota-progress-quantity{margin-left:auto;min-width:112px;text-align:right;font-weight:800;color:#475569}
@media(max-width:900px){.quota-progress-foot{padding-right:0;flex-wrap:wrap}.quota-progress-foot .quota-progress-quantity{margin-left:auto}}


/* Cotas por Loja: alinhamento dos indicadores abaixo da barra e cores de mensal/diaria. */
#sellerQuotaTableHead .seller-name-header,
#sellerQuotaTableHead .seller-store-header,
#sellerQuotaTableBody .seller-name-cell,
#sellerQuotaTableBody .seller-store-cell { text-align:left; }
.seller-name-with-vr{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:190px}
.seller-name-with-vr>strong{min-width:0;overflow:hidden;text-overflow:ellipsis}
.seller-special-role-actions{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.seller-vr-toggle{flex:0 0 auto;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#475569;padding:5px 9px;font:700 .68rem/1 inherit;cursor:pointer;white-space:nowrap;transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}
.seller-vr-toggle:hover{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.seller-vr-toggle.is-active{border-color:#60a5fa;background:#dbeafe;color:#1d4ed8;box-shadow:0 0 0 2px rgba(59,130,246,.08)}
.seller-vr-toggle:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.seller-quota-manual-cell{display:grid;gap:4px;min-width:150px}
.seller-quota-manual-toggle{display:flex;align-items:center;gap:5px;font-size:.72rem;font-weight:700;color:#475569}
.seller-quota-manual-toggle input{margin:0}
.seller-quota-manual-cell small{font-size:.68rem;color:#64748b;white-space:nowrap}
@media(max-width:760px){.seller-name-with-vr{align-items:flex-start;flex-direction:column;gap:5px;min-width:150px}.seller-special-role-actions{align-items:flex-start}.seller-quota-manual-cell{min-width:132px}}
#sellerQuotaTableHead .seller-quota-group-monthly { background:#dbeafe; color:#1d4ed8; border-right-width:3px; }
#sellerQuotaTableHead .seller-quota-group-daily { background:#bbf7d0; color:#166534; border-left:3px solid #4ade80; }
#sellerQuotaTableHead .seller-quota-subhead-monthly { background:#eff6ff; color:#1e40af; }
#sellerQuotaTableHead .seller-quota-subhead-daily { background:#dcfce7; color:#166534; border-bottom-color:#86efac; }
#sellerQuotaTableHead .seller-quota-monthly-last,
#sellerQuotaTableBody .seller-quota-monthly-last { border-right-width:3px; }
.quota-progress-foot-row{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:10px;align-items:start}
.quota-progress-foot{display:grid;gap:10px;align-items:start;color:#64748b;font-size:.72rem;line-height:1.25;min-width:0}
.quota-progress-foot-metrics-4{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr) minmax(0,.95fr) minmax(0,.92fr)}
.quota-progress-foot-metrics-3{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(0,.95fr)}
.quota-progress-meta{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quota-progress-meta-start{justify-self:start;text-align:left}
.quota-progress-meta-mid-left{justify-self:center;text-align:center}
.quota-progress-meta-mid-right{justify-self:center;text-align:center}
.quota-progress-meta-end{justify-self:end;text-align:right}
.quota-progress-foot .quota-progress-quantity{font-weight:800;color:#475569}
@media(max-width:1180px){.quota-progress-foot-row{grid-template-columns:minmax(0,1fr) 108px;gap:8px}.quota-progress-foot{font-size:.7rem;gap:8px}}
@media(max-width:900px){.quota-progress-foot-row{grid-template-columns:1fr}.quota-progress-foot-spacer{display:none}.quota-progress-foot,.quota-progress-foot-metrics-4,.quota-progress-foot-metrics-3{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:6px}.quota-progress-meta-mid-left,.quota-progress-meta-mid-right,.quota-progress-meta-end{justify-self:start;text-align:left}.quota-progress-meta{white-space:normal;overflow:visible;text-overflow:clip}}
@media(max-width:620px){.quota-progress-foot,.quota-progress-foot-metrics-4,.quota-progress-foot-metrics-3{grid-template-columns:1fr}}


/* Cotas por Loja: destaque visual exclusivo do bloco Diario. */
#sellerQuotaTableHead .seller-quota-group-daily {
  background:#a7f3d0 !important;
  color:#065f46 !important;
  border-left:3px solid #34d399 !important;
}
#sellerQuotaTableHead .seller-quota-subhead-daily {
  background:#d1fae5 !important;
  color:#065f46 !important;
  border-color:#6ee7b7 !important;
}
#sellerQuotaTableBody tr > td:nth-last-child(-n+4) {
  background:#f0fdf4 !important;
}
#sellerQuotaTableBody tr:nth-child(even) > td:nth-last-child(-n+4) {
  background:#e8fbee !important;
}
#sellerQuotaTableBody tr:hover > td:nth-last-child(-n+4) {
  background:#dcfce7 !important;
}
#sellerQuotaTableBody tr > td:nth-last-child(4) {
  border-left:3px solid #86efac !important;
}

/* ========================================================================== */
/* Menu lateral compartilhado                                                 */
/* Inspirado na referencia: painel escuro, icones lineares e selecao clara.   */
/* ========================================================================== */
.shared-sidebar {
  --shared-sidebar-surface: #0d1120;
  --shared-sidebar-surface-2: #141a2e;
  --shared-sidebar-text: #eef2ff;
  --shared-sidebar-muted: #919bb6;
  --shared-sidebar-active: #f8fafc;
  --shared-sidebar-active-text: #151a2b;
  width: var(--sidebar-width);
  inset: 12px auto 12px 12px;
  height: auto;
  padding: 18px 14px 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% -8%, rgba(91,115,255,.20), transparent 31%),
    linear-gradient(165deg, var(--shared-sidebar-surface-2), var(--shared-sidebar-surface) 62%) !important;
  color: var(--shared-sidebar-text);
  box-shadow: 18px 24px 52px rgba(9,14,31,.30);
  transform: translateX(calc(-100% - 18px));
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}

.shared-sidebar.is-open { transform: translateX(0); }

.shared-sidebar::-webkit-scrollbar { width: 5px; }
.shared-sidebar::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(255,255,255,.18); }

.shared-sidebar .sidebar-header {
  margin: 0 2px 14px;
  padding: 2px 4px 18px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.shared-sidebar .sidebar-home-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  color: var(--shared-sidebar-text) !important;
  text-decoration: none;
}

.sidebar-brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(121,150,255,.55);
  border-radius: 13px;
  background: rgba(56,70,135,.22);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.025);
}

.sidebar-brand-mark img { width: 30px; height: 30px; }
.sidebar-brand-copy { min-width: 0; }
.shared-sidebar .sidebar-eyebrow,
.shared-sidebar .sidebar-brand-copy strong { display: block; }
.shared-sidebar .sidebar-eyebrow {
  margin: 0 0 3px;
  color: #c9e5ff;
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}
.shared-sidebar .sidebar-brand-copy strong {
  color: #fff;
  font-size: 1.08rem;
  letter-spacing: -.01em;
}

.shared-sidebar .sidebar-nav { display: block; }
.shared-sidebar .sidebar-menu-group { margin: 0 0 17px; }
.shared-sidebar .sidebar-menu-group:last-child { margin-bottom: 0; }
.shared-sidebar .sidebar-menu-group:not(:has(.menu-item:not(.hidden):not([hidden]))) { display: none; }
.shared-sidebar .sidebar-section-label {
  margin: 0 10px 7px;
  color: #c9e5ff;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.shared-sidebar .menu-item,
.shared-sidebar .sidebar-nav a {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  gap: 11px;
  margin: 0 0 5px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  box-shadow: none;
  color: #c8d0e5;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  transform: none;
}

.shared-sidebar .menu-item:hover,
.shared-sidebar .sidebar-nav a:hover {
  border-color: rgba(255,255,255,.07);
  background: rgba(255,255,255,.065);
  color: #fff;
  transform: translateX(2px);
}

.shared-sidebar .menu-item.active,
.shared-sidebar .sidebar-nav a.active {
  border-color: rgba(255,255,255,.82);
  background: var(--shared-sidebar-active) !important;
  color: var(--shared-sidebar-active-text) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.20), inset 0 0 0 1px rgba(15,23,42,.04);
  font-weight: 750;
  transform: none;
}

.shared-sidebar .menu-item-icon {
  display: grid;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  place-items: center;
  color: #9ba7c5;
}
.shared-sidebar .menu-item-icon svg,
.shared-sidebar .menu-chevron svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}
.shared-sidebar .menu-item.active .menu-item-icon { color: #4d5872; }
.shared-sidebar .menu-item-label { min-width: 0; flex: 1; }
.shared-sidebar .menu-chevron {
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  color: #7d89a8;
  transition: transform 260ms cubic-bezier(.25,.8,.25,1);
}
.shared-sidebar .menu-chevron svg { width: 17px; height: 17px; }
.shared-sidebar .menu-toggle.is-open .menu-chevron { transform: rotate(180deg); }

.shared-sidebar .submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 0 0 32px;
  transition:
    max-height 280ms cubic-bezier(.25,.8,.25,1),
    opacity 220ms ease,
    padding 280ms cubic-bezier(.25,.8,.25,1);
}
.shared-sidebar .submenu.is-open {
  max-height: 980px;
  opacity: 1;
  padding: 6px 0 0 32px;
}
.shared-sidebar .menu-item-nested {
  min-height: 38px;
  margin-bottom: 3px;
  padding: 8px 10px 8px 14px;
  border-radius: 11px;
  color: #9da8c2;
  font-size: .84rem;
  font-weight: 550;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.shared-sidebar .submenu.is-open .menu-item-nested {
  opacity: 1;
  transform: translateY(0);
}
.shared-sidebar .submenu:not(.is-open) .menu-item-nested {
  transition-delay: 0s;
}
.shared-sidebar .submenu.is-open .menu-item-nested {
  transition-delay: calc(20ms * var(--i, 0));
}
.shared-sidebar .menu-item-nested::before {
  content: "";
  position: absolute;
  left: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #596681;
}
.shared-sidebar .menu-item-nested.active::before { background: #3f4a64; }

.shared-sidebar .menu-favorite-star { color: #77829f !important; }
.shared-sidebar .menu-favorite-star.is-favorite { color: #fbbf24 !important; }
.shared-sidebar .favorites-empty { color: #8e99b5; border-color: rgba(255,255,255,.14); }

body.sidebar-open .sidebar-tab { left: calc(12px + var(--sidebar-width) - 1px); }
.shared-sidebar + .content-wrap { min-width: 0; }

@media (max-width: 640px) {
  .shared-sidebar {
    width: min(86vw, 292px);
    inset: 8px auto 8px 8px;
    border-radius: 22px;
  }
  body.sidebar-open .sidebar-tab { left: calc(min(86vw, 292px) + 7px); }
}

/* As folhas antigas possuem correcoes de alta especificidade para o menu
   anterior. Estes seletores garantem que elas nao clareiem o componente novo. */
body .sidebar.shared-sidebar,
body.sidebar-open .sidebar.shared-sidebar,
body.sidebar-open .sidebar.shared-sidebar.is-open {
  inset: 12px auto 12px 12px !important;
  width: var(--sidebar-width) !important;
  max-width: calc(100vw - 24px) !important;
  height: calc(100dvh - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  padding: 18px 14px 20px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 18% -8%, rgba(91,115,255,.20), transparent 31%),
    linear-gradient(165deg, #141a2e, #0d1120 62%) !important;
  color: #eef2ff !important;
  box-shadow: 18px 24px 52px rgba(9,14,31,.30) !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
}
body .sidebar.shared-sidebar { transform: translate3d(calc(-100% - 18px),0,0) !important; }
body.sidebar-open .sidebar.shared-sidebar,
body.sidebar-open .sidebar.shared-sidebar.is-open { transform: translate3d(0,0,0) !important; }

body .shared-sidebar .sidebar-header,
body.sidebar-open .shared-sidebar .sidebar-header {
  position: static !important;
  margin: 0 2px 14px !important;
  padding: 2px 4px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
body .shared-sidebar nav,
body.sidebar-open .shared-sidebar nav {
  display: block !important;
  padding: 0 4px 70px 0 !important;
  scrollbar-color: rgba(255,255,255,.18) transparent !important;
}
body .shared-sidebar .menu-item,
body .shared-sidebar .sidebar-nav a,
body.sidebar-open .shared-sidebar .menu-item,
body.sidebar-open .shared-sidebar .sidebar-nav a {
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #c8d0e5 !important;
  box-shadow: none !important;
}
body .shared-sidebar .menu-item:hover,
body .shared-sidebar .sidebar-nav a:hover,
body.sidebar-open .shared-sidebar .menu-item:hover,
body.sidebar-open .shared-sidebar .sidebar-nav a:hover {
  border-color: rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.065) !important;
  color: #fff !important;
  box-shadow: none !important;
}
body .shared-sidebar .menu-item.active,
body .shared-sidebar .sidebar-nav a.active,
body.sidebar-open .shared-sidebar .menu-item.active,
body.sidebar-open .shared-sidebar .sidebar-nav a.active {
  border-color: rgba(255,255,255,.82) !important;
  background: #f8fafc !important;
  color: #151a2b !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.20), inset 0 0 0 1px rgba(15,23,42,.04) !important;
}

@media (max-width: 640px) {
  body .sidebar.shared-sidebar,
  body.sidebar-open .sidebar.shared-sidebar,
  body.sidebar-open .sidebar.shared-sidebar.is-open {
    inset: 8px auto 8px 8px !important;
    width: min(86vw, 292px) !important;
    height: calc(100dvh - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    border-radius: 22px !important;
  }
}

/* ========================================================================== */
/* Cabecalho compartilhado                                                    */
/* Barra flutuante, navegacao compacta e contexto da pagina em um unico shell.*/
/* ========================================================================== */
body .topbar.shared-header {
  position: sticky !important;
  top: 14px !important;
  z-index: 120 !important;
  display: grid !important;
  grid-template-columns: auto auto minmax(130px, 1fr) auto !important;
  min-height: 74px !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 14px 18px 8px !important;
  padding: 10px 12px !important;
  overflow: visible !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 48% -120%, rgba(93,116,255,.38), transparent 54%),
    linear-gradient(135deg, rgba(18,25,48,.96), rgba(9,14,29,.94)) !important;
  color: #eef2ff !important;
  box-shadow: 0 18px 44px rgba(15,23,42,.22), inset 0 1px 0 rgba(255,255,255,.08) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
  isolation: isolate;
}

body .topbar.shared-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255,255,255,.20), transparent 32%, rgba(113,132,255,.24), transparent 75%);
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* GlareHover adaptado para o shell inteiro do cabeçalho. */
body .topbar.shared-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(-30deg, transparent 0 58%, rgba(255,255,255,.30) 68%, transparent 78% 100%);
  background-size: 300% 300%;
  background-position: -135% -135%;
  opacity: .82;
  transition: background-position 800ms ease;
}
body .topbar.shared-header:hover::after { background-position: 125% 125%; }
body .topbar.shared-header > * { position: relative; z-index: 1; }

.shared-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  padding: 4px 8px 4px 4px;
  border-radius: 14px;
  color: #fff !important;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.shared-header-brand:hover { background: rgba(255,255,255,.06); transform: translateY(-1px); }
.shared-header-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(142,161,255,.48);
  border-radius: 12px;
  background: rgba(80,96,178,.18);
}
.shared-header-brand-mark img { width: 28px; height: 28px; }
.shared-header-brand-copy small,
.shared-header-brand-copy strong { display: block; white-space: nowrap; }
.shared-header-brand-copy small { color: #8f9abb; font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.shared-header-brand-copy strong { margin-top: 2px; color: #fff; font-size: .96rem; }

.shared-header-navigation {
  display: flex;
  position: relative;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  isolation: isolate;
}
.shared-header-nav-button,
body .shared-header .shared-header-nav-button {
  display: inline-flex;
  min-width: 42px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 11px !important;
  overflow: hidden;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #bdc7df !important;
  font-size: .8rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: gap 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease !important;
}
.shared-header-nav-button > span:last-child:not(.shared-header-icon) {
  max-width: 0;
  opacity: 0;
  transition: max-width 200ms ease, opacity 150ms ease;
  white-space: nowrap;
}
.shared-header-nav-button:hover,
.shared-header-nav-button:focus-visible,
.shared-header-nav-button.active {
  gap: 7px;
  border-color: rgba(156,172,255,.26) !important;
  background: rgba(91,111,232,.22) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.shared-header-nav-button:hover > span:last-child:not(.shared-header-icon),
.shared-header-nav-button:focus-visible > span:last-child:not(.shared-header-icon),
.shared-header-nav-button.active > span:last-child:not(.shared-header-icon) { max-width: 88px; opacity: 1; }
.shared-header-home { gap: 0; }
.shared-header-home:hover,
.shared-header-home:focus-visible { gap: 7px; }
.shared-header-home .shared-header-home-label { max-width: 0 !important; opacity: 0 !important; overflow: hidden; white-space: nowrap; transition: max-width 200ms ease, opacity 150ms ease; }
.shared-header-home:hover .shared-header-home-label,
.shared-header-home:focus-visible .shared-header-home-label { max-width: 70px !important; opacity: 1 !important; }

/* GooeyNav adaptado aos três atalhos do cabeçalho. */
.shared-header-navigation .shared-header-nav-button { position: relative; z-index: 3; overflow: visible; }
.shared-header-navigation .shared-header-nav-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 11px;
  background: #fff;
  opacity: 0;
  transform: scale(.25);
  transition: transform .3s ease, opacity .3s ease;
}
.shared-header-navigation .shared-header-nav-button.active { color: #111827 !important; text-shadow: none; background: transparent !important; border-color: transparent !important; }
.shared-header-navigation .shared-header-nav-button.active::after { opacity: 1; transform: scale(1); }
.shared-header-navigation .shared-header-nav-button.gooey-burst::after { animation: sharedHeaderGooeyPill .3s ease both; }
.shared-header-gooey-particle,
.shared-header-gooey-point { display:block; width:16px; height:16px; border-radius:999px; pointer-events:none; }
.shared-header-gooey-particle {
  position:absolute;
  z-index:-2;
  left:calc(50% - 8px);
  top:calc(50% - 8px);
  animation:sharedHeaderGooeyParticle var(--particle-time) ease 1 -350ms;
}
.shared-header-gooey-point { background:var(--particle-color); opacity:0; animation:sharedHeaderGooeyPoint var(--particle-time) ease 1 -350ms; }
@keyframes sharedHeaderGooeyPill { to { transform:scale(1); opacity:1; } }
@keyframes sharedHeaderGooeyParticle {
  0% { transform:rotate(0deg) translate(var(--start-x),var(--start-y)); opacity:1; animation-timing-function:cubic-bezier(.55,0,1,.45); }
  70% { transform:rotate(var(--particle-rotate)) translate(var(--end-x),var(--end-y)); opacity:1; }
  85% { transform:rotate(var(--particle-rotate)) translate(var(--end-x),var(--end-y)); opacity:1; }
  100% { transform:rotate(var(--particle-rotate)) translate(0,0); opacity:1; }
}
@keyframes sharedHeaderGooeyPoint {
  0% { transform:scale(0); opacity:0; }
  25% { transform:scale(.25); }
  38%,85% { opacity:1; }
  65%,85% { transform:scale(var(--particle-scale)); }
  100% { transform:scale(0); opacity:0; }
}

.shared-header-icon { display: grid; position: relative; z-index: 2; flex: 0 0 20px; width: 20px; height: 20px; place-items: center; color: inherit; opacity: 1 !important; visibility: visible !important; }
.shared-header-icon svg { display: block; position: relative; z-index: 2; width: 19px; height: 19px; fill: none !important; stroke: currentColor !important; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; opacity: 1 !important; visibility: visible !important; }
.shared-header-navigation .shared-header-home .shared-header-home-icon { position: relative; z-index: 6 !important; display: grid !important; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; opacity: 1 !important; visibility: visible !important; }
.shared-header-navigation .shared-header-home:not(.active) .shared-header-home-icon { color: #dbeafe !important; }
.shared-header-navigation .shared-header-home.active .shared-header-home-icon { color: #123d66 !important; }
.shared-header-navigation .shared-header-home .shared-header-home-icon svg { display: block !important; width: 19px !important; height: 19px !important; opacity: 1 !important; visibility: visible !important; overflow: visible; }
.shared-header-navigation .shared-header-home .shared-header-home-icon svg path { fill: none !important; stroke: currentColor !important; stroke-width: 1.9 !important; stroke-linecap: round; stroke-linejoin: round; opacity: 1 !important; visibility: visible !important; }

.shared-header-context {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 8px;
  text-align: center;
}
.shared-header-context-copy small,
.shared-header-context-copy strong { display: block; }
.shared-header-context-copy small { color: #7f8aa8; font-size: .59rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.shared-header-context-copy strong { max-width: 270px; margin-top: 2px; overflow: hidden; color: #f8faff; font-size: .94rem; text-overflow: ellipsis; white-space: nowrap; }
.shared-header-description {
  max-width: 270px;
  overflow: hidden;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.10);
  color: #8f9ab7;
  font-size: .69rem;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .shared-header .shared-header-right {
  display: flex !important;
  min-width: 0;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}
.shared-header-page-actions { display: flex; align-items: center; gap: 5px; }
body .shared-header .shared-header-action,
body .shared-header .shared-header-logout {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,.045) !important;
  color: #c5cde1 !important;
  font-size: .74rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease !important;
}
body .shared-header .shared-header-action:hover,
body .shared-header .shared-header-logout:hover {
  border-color: rgba(147,164,255,.25) !important;
  background: rgba(91,111,232,.18) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.shared-header-user {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 4px 9px 4px 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
}
.shared-header-avatar {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(151,167,255,.30);
  border-radius: 10px;
  background: linear-gradient(135deg, #596fe8, #7549c9);
  color: #fff;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .03em;
  box-shadow: 0 6px 16px rgba(64,74,174,.30);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}
.shared-header-avatar.has-photo { color: transparent; }
body .shared-header .shared-header-user-name {
  max-width: 145px;
  overflow: hidden;
  color: #cbd3e6 !important;
  font-size: .7rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shared-header-profile-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 12050;
  width: min(330px, calc(100vw - 24px));
  padding: 16px;
  border: 1px solid rgba(165,176,214,.24);
  border-radius: 22px;
  background: rgba(15,23,42,.98);
  box-shadow: 0 26px 70px rgba(2,6,23,.42);
  color: #eef2ff;
  cursor: default;
}
.shared-header-profile-popover.hidden { display: none !important; }
.shared-profile-photo-wrap { display:grid; place-items:center; gap:10px; margin-bottom:14px; }
.shared-profile-photo { width: 148px; height: 148px; display:grid; place-items:center; border-radius:28px; background:linear-gradient(135deg,#596fe8,#7549c9); background-position:center; background-size:cover; color:#fff; font-size:2rem; font-weight:900; box-shadow:0 18px 38px rgba(36,44,120,.28); overflow:hidden; }
.shared-profile-photo.has-photo span { display:none; }
.shared-profile-photo-edit { display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding:0 12px; border:1px solid rgba(255,255,255,.12); border-radius:11px; background:rgba(255,255,255,.06); color:#dbe3ff; font-size:.72rem; font-weight:800; cursor:pointer; }
.shared-profile-copy { display:grid; gap:4px; text-align:center; }
.shared-profile-copy strong { font-size:1rem; }
.shared-profile-copy span { color:#aeb8d1; font-size:.75rem; overflow-wrap:anywhere; }
.shared-profile-copy small { justify-self:center; margin-top:3px; padding:4px 9px; border-radius:999px; background:rgba(99,102,241,.18); color:#c7d2fe; font-size:.65rem; font-weight:800; }
.shared-profile-password-btn { width:100%; min-height:40px; margin-top:14px; border:0; border-radius:12px; background:linear-gradient(135deg,#596fe8,#6d4ed6); color:#fff; font-weight:850; cursor:pointer; }
.shared-profile-feedback { min-height:16px; margin:9px 0 0; color:#aeb8d1; font-size:.7rem; text-align:center; }
.user-profile-admin-photo { display:grid; grid-template-columns:92px 1fr; align-items:center; gap:16px; padding:14px; border:1px solid #dfe6f1; border-radius:18px; background:#f8faff; }
.user-profile-admin-preview { width:92px; height:92px; display:grid; place-items:center; border-radius:22px; background:linear-gradient(135deg,#596fe8,#7549c9); background-position:center; background-size:cover; color:#fff; font-size:1.15rem; font-weight:900; box-shadow:0 10px 24px rgba(60,74,170,.18); }
.user-profile-admin-photo p { margin:4px 0 9px; }
.user-profile-admin-upload { display:inline-flex; cursor:pointer; }
.user-perm-password-action { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; border:1px solid #dfe6f1; border-radius:14px; background:#f9fbff; }
.user-perm-password-action span { display:grid; gap:3px; }
.user-perm-password-action small { color:#77839a; font-size:.72rem; }
body .shared-header .topbar-search { width: clamp(120px, 14vw, 205px); }
body .shared-header .topbar-search input {
  height: 40px;
  border-color: rgba(255,255,255,.09) !important;
  background: rgba(255,255,255,.05) !important;
  color: #eef2ff !important;
}
body .shared-header .topbar-search input::placeholder { color: #7e89a5; }
body .shared-header .topbar-search-results { top: calc(100% + 12px); }
body .shared-header #enfCompactToggle,
body .shared-header .vpn-monitor-header-btn {
  height: 40px;
  margin: 0;
  padding: 0 10px !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,.045) !important;
  color: #c5cde1 !important;
  font-size: .7rem;
}

@media (max-width: 1180px) {
  body .topbar.shared-header { grid-template-columns: auto auto 1fr auto !important; gap: 8px !important; }
  .shared-header-description,
  .shared-header-user-name { display: none; }
  body .shared-header .topbar-search { width: 130px; }
  .shared-header-action > span:last-child:not(.shared-header-icon) { display: none; }
}

@media (max-width: 820px) {
  body .topbar.shared-header {
    top: 8px !important;
    min-height: 64px !important;
    grid-template-columns: auto auto 1fr auto !important;
    margin: 8px 10px 6px !important;
    padding: 8px !important;
    border-radius: 18px !important;
  }
  .shared-header-brand-copy,
  .shared-header-context-copy small,
  body .shared-header .topbar-search,
  #enfCompactToggle { display: none !important; }
  .shared-header-context { justify-content: flex-start; padding: 0 4px; text-align: left; }
  .shared-header-context-copy strong { max-width: 30vw; font-size: .82rem; }
  body .shared-header .shared-header-action,
  body .shared-header .shared-header-logout { width: 38px; min-width: 38px; height: 38px; padding: 0 !important; }
  .shared-header-action > span:last-child:not(.shared-header-icon),
  .shared-header-logout > span:last-child:not(.shared-header-icon) { display: none; }
}

@media (max-width: 520px) {
  body .topbar.shared-header { grid-template-columns: auto auto minmax(0,1fr) auto !important; gap: 5px !important; }
  .shared-header-brand { display: none; }
  .shared-header-context-copy strong { max-width: 32vw; }
  .shared-header-page-actions .shared-header-action:nth-child(n+2) { display: none !important; }
}

/* ========================================================================== */
/* Home: galeria expansivel de Links, Comunicados e Datas                     */
/* ========================================================================== */
body.home-redesign .home-trio.home-hover-gallery {
  display: flex !important;
  grid-template-columns: none !important;
  width: 100%;
  height: 390px;
  align-items: stretch;
  gap: 10px !important;
  overflow: visible;
  perspective: 1200px;
}

body.home-redesign .home-hover-gallery > .home-list-card {
  position: relative !important;
  flex: 0 0 82px;
  min-width: 0 !important;
  height: 100%;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(119,137,190,.22) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 50% 12%, rgba(105,130,255,.22), transparent 34%),
    linear-gradient(180deg, #151d35, #0d1427) !important;
  box-shadow: 0 15px 30px rgba(15,23,42,.14) !important;
  cursor: pointer;
  isolation: isolate;
  transform: none !important;
  transform-origin: center;
  transition:
    flex-basis 480ms cubic-bezier(.2,.85,.25,1),
    flex-grow 480ms cubic-bezier(.2,.85,.25,1),
    border-color 280ms ease,
    box-shadow 360ms ease,
    transform 360ms cubic-bezier(.2,.85,.25,1),
    background 360ms ease !important;
}

body.home-redesign .home-hover-gallery > .home-list-card:nth-child(1) {
  background: radial-gradient(circle at 50% 12%, rgba(52,173,255,.24), transparent 35%), linear-gradient(180deg,#14233b,#0d1627) !important;
}
body.home-redesign .home-hover-gallery > .home-list-card:nth-child(2) {
  background: radial-gradient(circle at 50% 12%, rgba(143,101,255,.26), transparent 35%), linear-gradient(180deg,#20193e,#111229) !important;
}
body.home-redesign .home-hover-gallery > .home-list-card:nth-child(3) {
  background: radial-gradient(circle at 50% 12%, rgba(34,211,190,.22), transparent 35%), linear-gradient(180deg,#112d35,#0c1825) !important;
}

body.home-redesign .home-hover-gallery > .home-list-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.16), transparent 24%, transparent 78%, rgba(255,255,255,.06));
  opacity: .45;
  pointer-events: none;
}
body.home-redesign .home-hover-gallery > .home-list-card::after {
  content: attr(data-gallery-index);
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: rgba(226,232,255,.32);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  transition: color 250ms ease, bottom 360ms ease;
  pointer-events: none;
}

body.home-redesign .home-hover-gallery > .home-list-card.is-active {
  flex: 1 1 0;
  cursor: default;
  border-color: rgba(99,123,220,.25) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,244,255,.94)) !important;
  box-shadow: 0 24px 48px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.92) !important;
  transform: translateY(-4px) !important;
}
body.home-redesign .home-hover-gallery > .home-list-card:nth-child(2).is-active {
  background: linear-gradient(145deg, #fff, #f2efff 68%, #ece8ff) !important;
}
body.home-redesign .home-hover-gallery > .home-list-card:nth-child(3).is-active {
  background: linear-gradient(145deg, #fff, #eafaf8 70%, #e2f5f4) !important;
}
body.home-redesign .home-hover-gallery > .home-list-card.is-active::after { bottom: 18px; color: rgba(56,70,110,.32); }

body.home-redesign .home-hover-gallery > .home-list-card > h3 {
  position: absolute;
  inset: 18px 0 42px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 !important;
  color: #e9eeff !important;
  font-size: .81rem !important;
  font-weight: 850 !important;
  letter-spacing: .07em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: color 260ms ease, transform 380ms ease, font-size 280ms ease;
}
body.home-redesign .home-hover-gallery > .home-list-card > h3::before {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #aebdff;
  font-size: 1rem;
  writing-mode: horizontal-tb;
  transform: rotate(180deg);
}
body.home-redesign .home-hover-gallery > .home-list-card:nth-child(1) > h3::before { content: "↗"; color: #72cfff; }
body.home-redesign .home-hover-gallery > .home-list-card:nth-child(2) > h3::before { content: "✦"; color: #c0a2ff; }
body.home-redesign .home-hover-gallery > .home-list-card:nth-child(3) > h3::before { content: "▦"; color: #70dfd1; }

body.home-redesign .home-hover-gallery > .home-list-card.is-active > h3 {
  position: relative;
  inset: auto;
  justify-content: flex-start;
  margin: 0 0 16px !important;
  color: #17213a !important;
  font-size: 1.08rem !important;
  letter-spacing: -.01em;
  text-transform: none;
  writing-mode: horizontal-tb;
  transform: none;
}
body.home-redesign .home-hover-gallery > .home-list-card.is-active > h3::before {
  border-color: rgba(84,104,190,.16);
  background: rgba(91,111,232,.10);
  transform: none;
}

body.home-redesign .home-hover-gallery > .home-list-card > :not(h3) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.985);
  pointer-events: none;
  transition: opacity 160ms ease, visibility 0s linear 180ms, transform 260ms ease;
}
body.home-redesign .home-hover-gallery > .home-list-card.is-active > :not(h3) {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 280ms ease 170ms, visibility 0s linear, transform 340ms ease 120ms;
}
body.home-redesign .home-hover-gallery > .home-list-card.is-active > ul {
  max-height: 305px !important;
  overflow-y: auto !important;
  padding-right: 5px;
}
body.home-redesign .home-hover-gallery > .home-list-card:focus-visible {
  outline: 3px solid rgba(96,119,238,.48) !important;
  outline-offset: 3px;
}

@media (max-width: 860px), (hover: none) {
  body.home-redesign .home-trio.home-hover-gallery {
    display: grid !important;
    height: auto;
    gap: 9px !important;
  }
  body.home-redesign .home-hover-gallery > .home-list-card {
    width: 100%;
    height: 66px;
    min-height: 66px !important;
    padding: 15px 17px !important;
    transition: height 420ms cubic-bezier(.2,.85,.25,1), box-shadow 280ms ease, transform 280ms ease !important;
  }
  body.home-redesign .home-hover-gallery > .home-list-card.is-active {
    height: 370px;
    transform: none !important;
  }
  body.home-redesign .home-hover-gallery > .home-list-card > h3 {
    position: relative;
    inset: auto;
    justify-content: flex-start;
    height: 34px;
    writing-mode: horizontal-tb;
    transform: none;
  }
  body.home-redesign .home-hover-gallery > .home-list-card > h3::before { transform: none; }
  body.home-redesign .home-hover-gallery > .home-list-card.is-active > h3 { margin-bottom: 14px !important; }
  body.home-redesign .home-hover-gallery > .home-list-card::after { right: 18px; top: 25px; bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
  body.home-redesign .home-hover-gallery > .home-list-card,
  body.home-redesign .home-hover-gallery > .home-list-card > * { transition-duration: 1ms !important; }
}

/* Home: galeria de Videos, Colaborador e Perfis */
body.home-redesign .home-highlights.home-feature-gallery {
  display: flex !important;
  grid-template-columns: none !important;
  width: 100%;
  min-height: 500px;
  align-items: stretch;
  gap: 14px !important;
  perspective: 1400px;
}

body.home-redesign .home-feature-gallery > .card {
  --feature-accent: 87, 121, 255;
  position: relative !important;
  flex: 1 1 0;
  width: 0;
  min-width: 0 !important;
  height: 500px;
  min-height: 500px !important;
  max-height: 500px;
  margin: 0 !important;
  padding: 18px !important;
  overflow: hidden !important;
  contain: none !important;
  content-visibility: visible !important;
  border: 1px solid rgba(var(--feature-accent), .22) !important;
  border-radius: 24px !important;
  background: radial-gradient(circle at 82% 4%, rgba(var(--feature-accent), .17), transparent 34%), linear-gradient(145deg, rgba(255,255,255,.99), rgba(244,247,255,.95)) !important;
  box-shadow: 0 18px 38px rgba(23,34,68,.12), inset 0 1px 0 #fff !important;
  isolation: isolate;
  transform: translateZ(0) !important;
  transform-origin: center;
  transition: flex 460ms cubic-bezier(.2,.8,.2,1), border-color 300ms ease, box-shadow 380ms ease, transform 380ms cubic-bezier(.2,.8,.2,1), filter 300ms ease, opacity 300ms ease !important;
}

body.home-redesign .home-feature-gallery > .video-card { --feature-accent: 48, 158, 255; }
body.home-redesign .home-feature-gallery > .spotlight-photo-card { --feature-accent: 124, 91, 244; }
body.home-redesign .home-feature-gallery > .spotlight-profile-card { --feature-accent: 21, 180, 154; }

body.home-redesign .home-feature-gallery > .card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgb(var(--feature-accent)), transparent);
  opacity: .82;
  pointer-events: none;
}

body.home-redesign .home-feature-gallery > .card::after {
  content: attr(data-feature-index);
  position: absolute;
  z-index: -1;
  right: 15px;
  bottom: 10px;
  color: rgba(var(--feature-accent), .12);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

body.home-redesign .home-feature-gallery.has-feature-active > .card:not(.is-feature-active) {
  flex: .76 1 0;
  filter: saturate(.82);
  opacity: .88;
}

body.home-redesign .home-feature-gallery > .card.is-feature-active {
  flex: 1.48 1 0;
  border-color: rgba(var(--feature-accent), .48) !important;
  box-shadow: 0 28px 55px rgba(23,34,68,.2), 0 0 0 1px rgba(var(--feature-accent), .1) !important;
  transform: translateY(-7px) translateZ(18px) !important;
}

body.home-redesign .home-feature-gallery > .card:focus-visible {
  outline: 3px solid rgba(var(--feature-accent), .42) !important;
  outline-offset: 3px;
}

body.home-redesign .home-feature-gallery > .card > h3 {
  min-height: 42px;
  margin: 0 0 13px !important;
  padding: 0 42px 11px 0;
  border-bottom: 1px solid rgba(var(--feature-accent), .14);
  color: #17213a !important;
  font-size: clamp(.94rem, 1.2vw, 1.08rem) !important;
  line-height: 1.2;
}

body.home-redesign .home-feature-gallery > .card > h3::after {
  content: "";
  position: absolute;
  top: 17px;
  right: 18px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(var(--feature-accent), .2);
  border-radius: 10px;
  background: radial-gradient(circle, rgba(var(--feature-accent), .7) 0 2px, rgba(var(--feature-accent), .1) 3px 100%);
  box-shadow: 0 7px 18px rgba(var(--feature-accent), .13);
}

body.home-redesign .home-feature-gallery .video-card .task-counter {
  min-height: 18px;
  margin: -5px 0 10px !important;
  color: #69748e !important;
  font-size: .73rem !important;
}
body.home-redesign .home-feature-gallery .video-container { gap: 12px !important; }
body.home-redesign .home-feature-gallery .video-card .video-player-wrapper,
body.home-redesign .home-feature-gallery .video-card .home-video-player {
  height: 292px !important;
  min-height: 292px !important;
  max-height: 292px !important;
  border-radius: 18px !important;
}
body.home-redesign .home-feature-gallery .video-card .video-player-wrapper {
  overflow: hidden;
  border: 1px solid rgba(84,114,214,.2) !important;
  background: #08101f !important;
  box-shadow: 0 15px 28px rgba(8,16,31,.2) !important;
}
body.home-redesign .home-feature-gallery .video-card .home-video-player {
  width: 100% !important;
  object-fit: cover !important;
  transition: transform 500ms ease !important;
}
body.home-redesign .home-feature-gallery .video-card.is-feature-active .home-video-player { transform: scale(1.018); }
body.home-redesign .home-feature-gallery .video-info { min-width: 0; padding: 0 4px !important; }
body.home-redesign .home-feature-gallery .video-info h4,
body.home-redesign .home-feature-gallery .video-info p {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
}
body.home-redesign .home-feature-gallery .video-info h4 { -webkit-line-clamp: 1; }
body.home-redesign .home-feature-gallery .video-info p { -webkit-line-clamp: 2; }

body.home-redesign .home-feature-gallery .spotlight-photo-card .spotlight-media {
  position: relative;
  height: 300px;
  min-height: 300px !important;
  margin: 0 0 14px !important;
  overflow: hidden;
  border: 1px solid rgba(var(--feature-accent), .18);
  border-radius: 18px !important;
  background: #e9edfa;
  box-shadow: 0 15px 30px rgba(42,38,92,.16);
}
body.home-redesign .home-feature-gallery .spotlight-photo-card .spotlight-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(9,12,29,.25));
  pointer-events: none;
}
body.home-redesign .home-feature-gallery .spotlight-media-image,
body.home-redesign .home-feature-gallery .spotlight-media > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  image-rendering: auto;
  filter: saturate(1.06) contrast(1.035) brightness(1.015);
  transform: scale(1.002);
  transition: transform 650ms cubic-bezier(.2,.8,.2,1), filter 400ms ease;
}
body.home-redesign .home-feature-gallery .spotlight-photo-card.is-feature-active .spotlight-media-image,
body.home-redesign .home-feature-gallery .spotlight-photo-card.is-feature-active .spotlight-media > img {
  filter: saturate(1.1) contrast(1.045) brightness(1.02);
  transform: scale(1.055);
}
body.home-redesign .home-feature-gallery .spotlight-photo-card .spotlight-content { padding: 0 3px !important; }
body.home-redesign .home-feature-gallery .spotlight-photo-card .spotlight-content h4 { margin: 7px 0 4px !important; font-size: 1.06rem !important; }
body.home-redesign .home-feature-gallery .spotlight-photo-card .spotlight-content > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.home-redesign .home-feature-gallery .spotlight-profiles-list {
  display: grid !important;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  height: 404px;
  min-height: 0;
  gap: 9px !important;
  padding: 2px 3px 2px 0 !important;
  overflow: visible !important;
}
body.home-redesign .home-feature-gallery .spotlight-profile-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 12px 12px 10px 15px !important;
  overflow: hidden;
  border: 1px solid rgba(var(--feature-accent), .16) !important;
  border-radius: 17px !important;
  background: linear-gradient(120deg, rgba(255,255,255,.98), rgba(var(--feature-accent), .065)) !important;
  box-shadow: 0 9px 20px rgba(21,47,74,.08) !important;
  transform: translateX(calc(var(--profile-order, 0) * 5px));
  transition: transform 340ms cubic-bezier(.2,.8,.2,1), border-color 260ms ease, box-shadow 300ms ease !important;
}
body.home-redesign .home-feature-gallery .spotlight-profile-item::after {
  content: attr(data-profile-rank);
  position: absolute;
  right: 10px;
  top: 9px;
  color: rgba(var(--feature-accent), .38);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
}
body.home-redesign .home-feature-gallery .spotlight-profile-item:nth-child(2) { --feature-accent: 93, 109, 224; }
body.home-redesign .home-feature-gallery .spotlight-profile-item:nth-child(3) { --feature-accent: 160, 91, 218; }
body.home-redesign .home-feature-gallery .spotlight-profile-card.is-feature-active .spotlight-profile-item { transform: translateX(0); }
body.home-redesign .home-feature-gallery .spotlight-profile-item:hover {
  z-index: 2;
  border-color: rgba(var(--feature-accent), .38) !important;
  box-shadow: 0 14px 26px rgba(var(--feature-accent), .15) !important;
  transform: translateX(-5px) scale(1.025) !important;
}
body.home-redesign .home-feature-gallery .spotlight-profile-item .spotlight-profile { gap: 10px !important; padding-right: 22px; }
body.home-redesign .home-feature-gallery .spotlight-profile-item .spotlight-avatar {
  flex: 0 0 45px;
  width: 45px !important;
  height: 45px !important;
  border: 2px solid rgba(255,255,255,.96) !important;
  box-shadow: 0 0 0 2px rgba(var(--feature-accent), .3), 0 7px 16px rgba(var(--feature-accent), .16) !important;
}
body.home-redesign .home-feature-gallery .spotlight-avatar-image { image-rendering: auto; object-fit: cover; }
body.home-redesign .home-feature-gallery .spotlight-profile-item h4 { margin: 0 0 2px !important; font-size: .9rem !important; }
body.home-redesign .home-feature-gallery .spotlight-profile-item .spotlight-profile p {
  color: rgb(var(--feature-accent)) !important;
  font-size: .68rem !important;
  font-weight: 800;
}
body.home-redesign .home-feature-gallery .spotlight-profile-item .spotlight-content { padding: 6px 0 0 55px !important; }
body.home-redesign .home-feature-gallery .spotlight-profile-item .spotlight-content p {
  display: -webkit-box;
  margin: 0 !important;
  overflow: hidden;
  color: #69748a !important;
  font-size: .71rem !important;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1080px) {
  body.home-redesign .home-highlights.home-feature-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-height: 0;
  }
  body.home-redesign .home-feature-gallery > .card {
    width: 100%;
    height: 470px;
    min-height: 470px !important;
    max-height: 470px;
  }
  body.home-redesign .home-feature-gallery > .spotlight-profile-card { grid-column: 1 / -1; }
  body.home-redesign .home-feature-gallery.has-feature-active > .card:not(.is-feature-active) { filter: none; opacity: 1; }
  body.home-redesign .home-feature-gallery > .card.is-feature-active { transform: translateY(-4px) !important; }
}

@media (max-width: 680px) {
  body.home-redesign .home-highlights.home-feature-gallery { grid-template-columns: 1fr !important; gap: 12px !important; }
  body.home-redesign .home-feature-gallery > .card,
  body.home-redesign .home-feature-gallery > .spotlight-profile-card {
    grid-column: auto;
    height: 455px;
    min-height: 455px !important;
    max-height: 455px;
  }
  body.home-redesign .home-feature-gallery .video-card .video-player-wrapper,
  body.home-redesign .home-feature-gallery .video-card .home-video-player {
    height: 255px !important;
    min-height: 255px !important;
    max-height: 255px !important;
  }
  body.home-redesign .home-feature-gallery .spotlight-photo-card .spotlight-media { height: 270px; min-height: 270px !important; }
  body.home-redesign .home-feature-gallery .spotlight-profiles-list { height: 360px; }
}

@media (hover: none) {
  body.home-redesign .home-feature-gallery > .card { transform: none !important; }
  body.home-redesign .home-feature-gallery.has-feature-active > .card:not(.is-feature-active) { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.home-redesign .home-feature-gallery > .card,
  body.home-redesign .home-feature-gallery .spotlight-media-image,
  body.home-redesign .home-feature-gallery .spotlight-profile-item { transition-duration: 1ms !important; }
}

/* Home: modal de visualizacao ampliada para Videos, Destaque e Perfil */
body.home-redesign .home-feature-gallery > .card .feature-card-expand-btn {
  position: absolute;
  z-index: 18;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(var(--feature-accent), .24);
  border-radius: 10px;
  background: rgba(255,255,255,.88);
  color: rgb(var(--feature-accent));
  box-shadow: 0 8px 20px rgba(20,34,70,.12);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
body.home-redesign .home-feature-gallery > .card .feature-card-expand-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.home-redesign .home-feature-gallery > .card .feature-card-expand-btn:hover,
body.home-redesign .home-feature-gallery > .card .feature-card-expand-btn:focus-visible {
  transform: scale(1.08);
  border-color: rgba(var(--feature-accent), .5);
  background: #fff;
  box-shadow: 0 10px 24px rgba(var(--feature-accent), .19);
  outline: none;
}
body.home-redesign .home-feature-gallery > .card > h3 { padding-right: 54px !important; }
body.home-redesign .home-feature-gallery > .card > h3::after { display: none !important; }

body.feature-card-modal-open { overflow: hidden !important; }
body.home-redesign .feature-card-modal {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
body.home-redesign .feature-card-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease;
}
body.home-redesign .feature-card-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,12,28,.64);
  backdrop-filter: blur(14px) saturate(.85);
  -webkit-backdrop-filter: blur(14px) saturate(.85);
}
body.home-redesign .feature-card-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 94vw);
  max-height: min(820px, 91vh);
  padding: 18px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 30px;
  background: rgba(239,244,255,.9);
  box-shadow: 0 34px 100px rgba(4,11,31,.38), inset 0 1px 0 rgba(255,255,255,.9);
  transform: translateY(16px) scale(.975);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
  overflow: auto;
}
body.home-redesign .feature-card-modal.is-open .feature-card-modal__dialog { transform: translateY(0) scale(1); }
body.home-redesign .feature-card-modal__close {
  position: absolute;
  z-index: 30;
  top: 27px;
  right: 27px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  border: 1px solid rgba(30,46,84,.15);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: #16213a;
  box-shadow: 0 8px 24px rgba(16,30,62,.14);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}
body.home-redesign .feature-card-modal__gallery {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
body.home-redesign .feature-card-modal__gallery > .feature-card-modal__card {
  --feature-accent: 87, 121, 255;
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: min(720px, calc(91vh - 76px)) !important;
  min-height: 540px !important;
  max-height: none !important;
  flex: none !important;
  margin: 0 !important;
  padding: 24px !important;
  overflow: auto !important;
  border: 1px solid rgba(var(--feature-accent), .28) !important;
  border-radius: 24px !important;
  background: radial-gradient(circle at 82% 4%, rgba(var(--feature-accent), .14), transparent 34%), linear-gradient(145deg, rgba(255,255,255,.99), rgba(244,247,255,.97)) !important;
  box-shadow: 0 24px 60px rgba(23,34,68,.18), inset 0 1px 0 #fff !important;
  transform: none !important;
  box-sizing: border-box !important;
}
body.home-redesign .feature-card-modal__gallery > .video-card { --feature-accent: 48, 158, 255; }
body.home-redesign .feature-card-modal__gallery > .spotlight-photo-card { --feature-accent: 124, 91, 244; }
body.home-redesign .feature-card-modal__gallery > .spotlight-profile-card { --feature-accent: 21, 180, 154; }
body.home-redesign .feature-card-modal__gallery > .feature-card-modal__card > h3 {
  margin: 0 0 16px !important;
  padding: 0 52px 12px 0 !important;
  border-bottom: 1px solid rgba(var(--feature-accent), .16) !important;
  color: #17213a !important;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem) !important;
}
body.home-redesign .feature-card-modal__gallery > .feature-card-modal__card > h3::after { display: none !important; }
body.home-redesign .feature-card-modal__gallery .video-card .video-player-wrapper,
body.home-redesign .feature-card-modal__gallery .video-card .home-video-player {
  height: min(520px, calc(91vh - 230px)) !important;
  min-height: 360px !important;
  max-height: 520px !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-photo-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-photo-card .spotlight-media {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: min(500px, 58vh) !important;
  min-height: 320px !important;
  margin: 0 0 18px !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  background: #eef3fb !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-photo-card .spotlight-media::after {
  display: none !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-photo-card .spotlight-media-image,
body.home-redesign .feature-card-modal__gallery .spotlight-photo-card .spotlight-media > img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  filter: none !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-photo-card .spotlight-content {
  position: static !important;
  z-index: auto !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 4px 8px !important;
  overflow: visible !important;
  background: transparent !important;
  box-sizing: border-box !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-photo-card .spotlight-tag {
  margin: 0 0 10px !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-photo-card .spotlight-content h4 {
  margin: 0 0 8px !important;
  color: #17213a !important;
  font-size: 1.12rem !important;
  line-height: 1.35 !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-photo-card .spotlight-content > p {
  margin: 0 !important;
  color: #53627a !important;
  font-size: .95rem !important;
  line-height: 1.55 !important;
  white-space: pre-wrap !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-photo-card .spotlight-content > p,
body.home-redesign .feature-card-modal__gallery .video-info p,
body.home-redesign .feature-card-modal__gallery .video-info h4,
body.home-redesign .feature-card-modal__gallery .spotlight-profile-item .spotlight-content p {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-profile-card .spotlight-profiles-list {
  grid-template-rows: repeat(3, minmax(150px, 1fr)) !important;
  height: auto !important;
  min-height: 520px !important;
  gap: 14px !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-profile-item {
  padding: 18px 20px !important;
  transform: none !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-profile-item .spotlight-avatar {
  width: 64px !important;
  height: 64px !important;
  flex-basis: 64px !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-profile-item h4 { font-size: 1.05rem !important; }
body.home-redesign .feature-card-modal__gallery .spotlight-profile-item .spotlight-profile p { font-size: .8rem !important; }
body.home-redesign .feature-card-modal__gallery .spotlight-profile-item .spotlight-content {
  padding: 10px 0 0 74px !important;
}
body.home-redesign .feature-card-modal__gallery .spotlight-profile-item .spotlight-content p {
  font-size: .82rem !important;
  line-height: 1.5;
}

@media (max-width: 680px) {
  body.home-redesign .feature-card-modal { padding: 12px; }
  body.home-redesign .feature-card-modal__dialog {
    width: 100%;
    max-height: 94vh;
    padding: 10px;
    border-radius: 22px;
  }
  body.home-redesign .feature-card-modal__close { top: 18px; right: 18px; }
  body.home-redesign .feature-card-modal__gallery > .feature-card-modal__card {
    width: 100% !important;
    height: auto !important;
    min-height: min(700px, calc(94vh - 42px)) !important;
    padding: 18px !important;
  }
  body.home-redesign .feature-card-modal__gallery .video-card .video-player-wrapper,
  body.home-redesign .feature-card-modal__gallery .video-card .home-video-player {
    height: min(390px, 48vh) !important;
    min-height: 240px !important;
  }
  body.home-redesign .feature-card-modal__gallery .spotlight-photo-card .spotlight-media {
    height: min(420px, 46vh) !important;
    min-height: 260px !important;
    margin-bottom: 14px !important;
  }
  body.home-redesign .feature-card-modal__gallery .spotlight-profile-card .spotlight-profiles-list {
    min-height: 0 !important;
  }
  body.home-redesign .feature-card-modal__gallery .spotlight-profile-item .spotlight-content { padding-left: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.home-redesign .feature-card-modal,
  body.home-redesign .feature-card-modal__dialog,
  body.home-redesign .home-feature-gallery > .card .feature-card-expand-btn { transition-duration: 1ms !important; }
}

/* Home: atalhos expansivos com iconografia funcional */
body.home-redesign .home-shortcuts.home-shortcuts-gallery {
  display: flex !important;
  grid-template-columns: none !important;
  width: 100% !important;
  min-height: 154px;
  gap: 11px !important;
  padding: 8px !important;
  overflow: visible !important;
  border: 1px solid rgba(204,216,237,.72) !important;
  border-radius: 28px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(239,244,253,.8)) !important;
  box-shadow: 0 17px 38px rgba(19,35,67,.08) !important;
}

body.home-redesign .home-shortcuts-gallery > .shortcut-item {
  --shortcut-accent: 66, 115, 235;
  position: relative;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  min-height: 138px !important;
  padding: 17px 15px 14px !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 9px !important;
  overflow: hidden !important;
  border: 1px solid rgba(var(--shortcut-accent), .16) !important;
  border-radius: 21px !important;
  background: radial-gradient(circle at 88% 5%, rgba(var(--shortcut-accent), .16), transparent 40%), linear-gradient(145deg, #fff, #f7f9fe) !important;
  box-shadow: 0 8px 19px rgba(22,36,70,.07), inset 0 1px 0 #fff !important;
  isolation: isolate;
  transform: translateZ(0) !important;
  transition: flex 420ms cubic-bezier(.2,.8,.2,1), transform 350ms cubic-bezier(.2,.8,.2,1), border-color 280ms ease, box-shadow 320ms ease, opacity 280ms ease, filter 280ms ease !important;
}

body.home-redesign .home-shortcuts-gallery > [data-shortcut-tone="support"] { --shortcut-accent: 20, 154, 171; }
body.home-redesign .home-shortcuts-gallery > [data-shortcut-tone="feedback"] { --shortcut-accent: 139, 92, 246; }
body.home-redesign .home-shortcuts-gallery > [data-shortcut-tone="extensions"] { --shortcut-accent: 238, 114, 49; }
body.home-redesign .home-shortcuts-gallery > [data-shortcut-tone="finance"] { --shortcut-accent: 31, 166, 105; }

body.home-redesign .home-shortcuts-gallery > .shortcut-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto !important;
  height: 3px !important;
  background: linear-gradient(90deg, transparent 4%, rgb(var(--shortcut-accent)) 50%, transparent 96%) !important;
  opacity: .72;
  transition: height 280ms ease, opacity 280ms ease;
}

body.home-redesign .home-shortcuts-gallery > .shortcut-item::after {
  content: "0" counter(shortcut-card);
  position: absolute;
  z-index: -1;
  right: 10px;
  bottom: -7px;
  color: rgba(var(--shortcut-accent), .07);
  font-size: 3.8rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.08em;
  pointer-events: none;
}

body.home-redesign .home-shortcuts-gallery { counter-reset: shortcut-card; }
body.home-redesign .home-shortcuts-gallery > .shortcut-item { counter-increment: shortcut-card; }

body.home-redesign .home-shortcuts-gallery.has-shortcut-active > .shortcut-item:not(.is-shortcut-active) {
  flex: .82 1 0;
  opacity: .82;
  filter: saturate(.78);
}

body.home-redesign .home-shortcuts-gallery > .shortcut-item.is-shortcut-active {
  flex: 1.55 1 0;
  z-index: 2;
  border-color: rgba(var(--shortcut-accent), .44) !important;
  box-shadow: 0 18px 34px rgba(var(--shortcut-accent), .18), 0 0 0 1px rgba(var(--shortcut-accent), .08) !important;
  transform: translateY(-6px) translateZ(14px) !important;
}

body.home-redesign .home-shortcuts-gallery > .shortcut-item.is-shortcut-active::before {
  height: 4px !important;
  opacity: 1;
}

body.home-redesign .home-shortcuts-gallery > .shortcut-item .shortcut-icon {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 54px !important;
  height: 54px !important;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(var(--shortcut-accent), .19) !important;
  border-radius: 17px !important;
  background: linear-gradient(145deg, rgba(var(--shortcut-accent), .16), rgba(var(--shortcut-accent), .055)) !important;
  color: rgb(var(--shortcut-accent)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(var(--shortcut-accent), .1) !important;
  transition: transform 380ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms ease, background 300ms ease !important;
}

body.home-redesign .home-shortcuts-gallery > .shortcut-item.is-shortcut-active .shortcut-icon {
  background: linear-gradient(145deg, rgb(var(--shortcut-accent)), rgba(var(--shortcut-accent), .76)) !important;
  color: #fff !important;
  box-shadow: 0 13px 24px rgba(var(--shortcut-accent), .28) !important;
  transform: translateY(-2px) rotate(-3deg) scale(1.08);
}

body.home-redesign .home-shortcuts-gallery .shortcut-symbol {
  display: block;
  width: 31px;
  height: 31px;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

body.home-redesign .home-shortcuts-gallery .shortcut-symbol-accent {
  stroke-width: 3;
  transition: filter 280ms ease;
}

body.home-redesign .home-shortcuts-gallery > .shortcut-item.is-shortcut-active .shortcut-symbol-accent {
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.18));
}

body.home-redesign .home-shortcuts-gallery > .shortcut-item strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 15ch;
  color: #18233a !important;
  font-size: clamp(.8rem, 1vw, .98rem) !important;
  font-weight: 820;
  line-height: 1.22;
  text-align: left;
  transition: color 260ms ease, transform 320ms ease;
}

body.home-redesign .home-shortcuts-gallery > .shortcut-item.is-shortcut-active strong {
  color: rgb(var(--shortcut-accent)) !important;
  transform: translateX(3px);
}

body.home-redesign .home-shortcuts-gallery > .shortcut-item:focus-visible {
  outline: 3px solid rgba(var(--shortcut-accent), .4) !important;
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  body.home-redesign .home-shortcuts.home-shortcuts-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  body.home-redesign .home-shortcuts-gallery > .shortcut-item {
    width: 100%;
    min-height: 126px !important;
  }
  body.home-redesign .home-shortcuts-gallery.has-shortcut-active > .shortcut-item:not(.is-shortcut-active) { opacity: 1; filter: none; }
  body.home-redesign .home-shortcuts-gallery > .shortcut-item.is-shortcut-active { transform: translateY(-4px) scale(1.018) !important; }
}

@media (max-width: 720px) {
  body.home-redesign .home-shortcuts.home-shortcuts-gallery { grid-template-columns: 1fr 1fr !important; }
  body.home-redesign .home-shortcuts-gallery > .shortcut-item {
    min-height: 112px !important;
    padding: 14px !important;
  }
  body.home-redesign .home-shortcuts-gallery > .shortcut-item .shortcut-icon {
    width: 47px !important;
    height: 47px !important;
  }
  body.home-redesign .home-shortcuts-gallery .shortcut-symbol { width: 27px; height: 27px; }
}

@media (max-width: 430px) {
  body.home-redesign .home-shortcuts.home-shortcuts-gallery { grid-template-columns: 1fr !important; }
  body.home-redesign .home-shortcuts-gallery > .shortcut-item {
    width: 100%;
    min-height: 82px !important;
    flex-direction: row;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  body.home-redesign .home-shortcuts-gallery > .shortcut-item strong { max-width: none; }
}

@media (hover: none) {
  body.home-redesign .home-shortcuts-gallery > .shortcut-item { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.home-redesign .home-shortcuts-gallery > .shortcut-item,
  body.home-redesign .home-shortcuts-gallery > .shortcut-item .shortcut-icon { transition-duration: 1ms !important; }
}

/* Arquivo compartilhado da area de trabalho */
.workspace-file-wrap{position:relative;display:flex;align-items:center}.workspace-file-bubble{position:relative;width:42px;height:42px;border:1px solid rgba(255,255,255,.12);border-radius:50%;background:rgba(255,255,255,.055);color:#dce3ff;display:grid;place-items:center;cursor:pointer;transition:.18s ease}.workspace-file-bubble:hover{background:rgba(255,255,255,.11);transform:translateY(-1px)}.workspace-file-bubble-icon{display:grid;place-items:center}.workspace-file-bubble-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.workspace-file-dot{position:absolute;right:2px;top:2px;width:9px;height:9px;border-radius:50%;background:#44d492;border:2px solid #11182a}.workspace-file-modal[hidden]{display:none!important}.workspace-file-modal{position:fixed;inset:0;z-index:10050;display:grid;place-items:start center;padding:88px 18px 24px}.workspace-file-backdrop{position:absolute;inset:0;border:0;background:rgba(4,8,18,.62);backdrop-filter:blur(7px);cursor:default}.workspace-file-panel{position:relative;width:min(520px,calc(100vw - 28px));border:1px solid rgba(124,139,184,.2);border-radius:24px;background:#fff;box-shadow:0 28px 80px rgba(2,6,23,.36);padding:22px;color:#172033}.workspace-file-panel-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.workspace-file-panel-head small{display:block;color:#7a859f;font-size:.68rem;font-weight:850;text-transform:uppercase;letter-spacing:.11em}.workspace-file-panel-head h3{margin:4px 0 0;font-size:1.14rem}.workspace-file-close{border:0;background:#f2f4f9;color:#65708b;width:34px;height:34px;border-radius:11px;font-size:24px;line-height:1;cursor:pointer}.workspace-file-empty{margin-top:22px;padding:27px;border:1px dashed #d6dbe8;border-radius:18px;text-align:center;color:#7c879d}.workspace-file-card{margin-top:20px;display:flex;align-items:center;gap:14px;padding:16px;border:1px solid #e3e7ef;border-radius:18px;background:#f8faff}.workspace-file-large-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#e9edff;color:#4258cc}.workspace-file-large-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7}.workspace-file-info{min-width:0}.workspace-file-info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.95rem}.workspace-file-info small{display:block;margin-top:4px;color:#78839a;font-size:.72rem}.workspace-file-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.workspace-file-download,.workspace-file-upload{min-height:42px;padding:0 15px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:850;font-size:.8rem;text-decoration:none;cursor:pointer}.workspace-file-download{background:#172554;color:#fff!important}.workspace-file-upload{background:#eef1f7;color:#29334c}.workspace-file-download svg,.workspace-file-upload svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.workspace-file-upload.is-busy{opacity:.55;pointer-events:none}.workspace-file-progress{margin-top:15px;height:7px;border-radius:999px;background:#edf0f5;overflow:hidden;position:relative}.workspace-file-progress>span{display:block;height:100%;width:0;background:currentColor;color:#5267d9;transition:width .15s}.workspace-file-progress>small{position:absolute;left:0;top:10px}.workspace-file-message{margin:13px 0 0;font-size:.78rem;color:#6d7891}.workspace-file-message.is-success{color:#16835d}.workspace-file-message.is-error{color:#c43d4e}.workspace-file-modal-open{overflow:hidden}
html[data-color-mode="dark"] .workspace-file-panel{background:#111625;color:#eef2ff;border-color:rgba(144,157,195,.22)}html[data-color-mode="dark"] .workspace-file-close{background:#20283b;color:#cbd4ed}html[data-color-mode="dark"] .workspace-file-card{background:#181f31;border-color:#29334a}html[data-color-mode="dark"] .workspace-file-large-icon{background:#242d50;color:#aebaff}html[data-color-mode="dark"] .workspace-file-upload{background:#242b3b;color:#e5eafa}html[data-color-mode="dark"] .workspace-file-empty{border-color:#333d55;color:#9da8c2}
@media(max-width:760px){.workspace-file-bubble{width:38px;height:38px}.workspace-file-modal{padding-top:72px}.workspace-file-panel{border-radius:20px;padding:18px}.workspace-file-actions{display:grid;grid-template-columns:1fr}.workspace-file-download,.workspace-file-upload{width:100%}}
.workspace-file-card:not([hidden]){cursor:pointer}.workspace-file-card:not([hidden]):hover{border-color:#c8d0e2;background:#f3f6fb}
html[data-color-mode="dark"] .workspace-file-card:not([hidden]):hover{background:#1d2538;border-color:#3a4661}

/* ===== Performance 2026-09-02: movimento leve e pintura estavel ===== */
body.enf-performance-mode {
  scroll-behavior: auto;
}

body.enf-performance-mode .content-wrap,
body.enf-performance-mode .login-card,
body.enf-performance-mode .linkbio-main,
body.enf-performance-mode .enf-reveal,
body.enf-performance-mode .enf-reveal.is-visible {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
}

.home-hero .hero-eyebrow,
.home-hero h1,
.home-hero .hero-subtitle,
.banner-preview-hero .hero-eyebrow,
.banner-preview-hero h1,
.banner-preview-hero .hero-subtitle {
  animation: none !important;
}

body.enf-performance-mode .home-hero,
body.enf-performance-mode .banner-preview-hero {
  background-position: center, center, center !important;
  transition: box-shadow 140ms ease !important;
}

body.enf-performance-mode .home-hero .hero-overlay,
body.enf-performance-mode .banner-preview-hero .hero-overlay {
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

body.enf-performance-mode :is(
  .card,
  .shortcut-item,
  .resource-item,
  .home-list-card,
  .bio-admin-card,
  .chart-card,
  .user-card,
  .dashboard-report-card,
  .dashboard-bookmark-tab,
  .expense-summary-card,
  .vpn-stat-card
) {
  will-change: auto !important;
  transition-property: transform, border-color, background-color, box-shadow !important;
  transition-duration: 140ms !important;
  transition-timing-function: ease-out !important;
}

body.enf-performance-mode :is(
  .shortcut-item,
  .resource-item,
  .home-list-card,
  .bio-admin-card,
  .user-card,
  .dashboard-report-card,
  .dashboard-bookmark-tab,
  .expense-summary-card,
  .vpn-stat-card
):hover {
  transform: translateY(-2px) !important;
}

body.enf-performance-mode :is(.ti-modal-backdrop, .enf-modal-backdrop, .workspace-file-backdrop) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.enf-performance-mode :is(.ti-modal-card, .enf-modal-card, .custom-modal-card),
body.enf-performance-mode :is(.ti-modal-card, .enf-modal-card, .custom-modal-card)::after,
body.enf-performance-mode :is(.ti-modal-backdrop, .enf-modal-backdrop) {
  animation: none !important;
  filter: none !important;
  will-change: auto !important;
}

/* Galerias mantem o visual, mas nao recalculam a largura dos irmaos no hover. */
body.home-redesign.enf-performance-mode .home-shortcuts-gallery > .shortcut-item,
body.home-redesign.enf-performance-mode .home-shortcuts-gallery.has-shortcut-active > .shortcut-item:not(.is-shortcut-active),
body.home-redesign.enf-performance-mode .home-shortcuts-gallery > .shortcut-item.is-shortcut-active {
  flex: 1 1 0 !important;
  opacity: 1 !important;
  filter: none !important;
}

body.home-redesign.enf-performance-mode .home-shortcuts-gallery > .shortcut-item.is-shortcut-active {
  transform: translateY(-2px) !important;
}

body.home-redesign.enf-performance-mode .home-shortcuts-gallery > .shortcut-item .shortcut-icon {
  transition: transform 140ms ease-out, background-color 140ms ease-out !important;
}

body.home-redesign.enf-performance-mode .home-highlights.home-feature-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  min-height: 0 !important;
}

body.home-redesign.enf-performance-mode .home-feature-gallery > .card,
body.home-redesign.enf-performance-mode .home-feature-gallery.has-feature-active > .card:not(.is-feature-active) {
  width: 100% !important;
  flex: none !important;
  opacity: 1 !important;
  filter: none !important;
}

body.home-redesign.enf-performance-mode .home-feature-gallery > .card.is-feature-active {
  transform: translateY(-2px) !important;
}

body.home-redesign.enf-performance-mode .home-feature-gallery .spotlight-media-image,
body.home-redesign.enf-performance-mode .home-feature-gallery .spotlight-media > img,
body.home-redesign.enf-performance-mode .home-feature-gallery .spotlight-profile-item {
  filter: none !important;
  transition: transform 160ms ease-out, border-color 140ms ease-out, box-shadow 140ms ease-out !important;
}

@media (max-width: 1080px) {
  body.home-redesign.enf-performance-mode .home-highlights.home-feature-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  body.home-redesign.enf-performance-mode .home-highlights.home-feature-gallery {
    grid-template-columns: 1fr !important;
  }
}


.seller-manual-registry{display:grid;gap:12px;margin:16px 0;padding:15px;border:1px solid #bfdbfe;border-radius:14px;background:#f8fbff}
.seller-manual-registry-copy{display:grid;gap:3px}.seller-manual-registry-copy span{color:#64748b;font-size:.82rem}
.seller-manual-registry-controls{display:grid;grid-template-columns:minmax(220px,1fr) minmax(190px,260px) auto;align-items:end;gap:10px}
.seller-manual-registry-controls label{display:grid;gap:5px;font-weight:700}.seller-manual-registry-controls input,.seller-manual-registry-controls select{min-height:38px;border:1px solid #cbd5e1;border-radius:9px;padding:7px 9px;background:#fff}
.seller-manual-search-results{display:grid;gap:7px}.seller-manual-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #dbeafe;border-radius:10px;background:#fff}.seller-manual-result small{display:block;color:#64748b;margin-top:2px}
.seller-manual-badge{display:inline-flex;align-items:center;border-radius:999px;background:#f1f5f9;color:#475569;padding:3px 7px;font-size:.66rem;font-weight:800}
@media(max-width:760px){.seller-manual-registry-controls{grid-template-columns:1fr}.seller-manual-result{align-items:flex-start;flex-direction:column}}

.seller-exclude-actions{display:flex;align-items:center;gap:6px}
.seller-exclude-toggle{border:1px solid #fecaca;border-radius:999px;background:#fff7f7;color:#b91c1c;padding:5px 9px;font:700 .68rem/1 inherit;cursor:pointer;white-space:nowrap}
.seller-exclude-toggle:hover{background:#fef2f2;border-color:#fca5a5}
.seller-excluded-registry{display:grid;gap:8px;margin-top:4px;padding-top:12px;border-top:1px solid #dbeafe}.seller-excluded-registry>div:first-child{display:grid;gap:2px}.seller-excluded-registry>div:first-child span{color:#64748b;font-size:.78rem}
.seller-excluded-list{display:grid;gap:7px}.seller-excluded-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #fecaca;border-radius:10px;background:#fffafa}.seller-excluded-row small{display:block;color:#64748b;margin-top:2px}
@media(max-width:760px){.seller-excluded-row{align-items:flex-start;flex-direction:column}}

/* Modelos de acesso e aplicação em lote - 2026-09-09 */
.user-bulk-access-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0 18px;padding:12px 14px;border:1px solid #d7e5f6;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#eef6ff);box-shadow:0 10px 26px rgba(15,39,71,.06)}
.user-bulk-access-toolbar.hidden{display:none!important}.user-bulk-select-all{margin:0}.user-bulk-access-toolbar>strong{font-size:.86rem;color:#1e3a5f}.user-bulk-access-actions{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap}.user-bulk-access-actions button:disabled{opacity:.5;cursor:not-allowed}
.user-card.is-selected-for-access{border-color:#60a5fa!important;box-shadow:0 0 0 3px rgba(59,130,246,.11),0 18px 38px rgba(15,39,71,.1)!important}.user-card-title-area{display:flex;align-items:flex-start;gap:10px;min-width:0}.user-card-selection{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:0 0 26px;margin-top:1px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;cursor:pointer}.user-card-selection input{width:16px;height:16px;min-height:0;margin:0;accent-color:#2563eb}.user-access-template-badge{display:inline-flex;width:max-content;max-width:100%;align-items:center;margin-top:5px;padding:4px 8px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.68rem;font-weight:800;line-height:1.1}
.access-template-modal-card{width:min(760px,calc(100vw - 28px));max-height:min(760px,calc(100dvh - 32px));overflow:hidden}.access-template-list{display:grid;gap:10px;max-height:54vh;overflow:auto;padding:2px}.access-template-choice{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:flex-start;padding:14px;border:1px solid #dbe5f3;border-radius:15px;background:#fff;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.access-template-choice:has(input:checked){border-color:#60a5fa;background:#f5f9ff;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.access-template-choice>input{width:18px;height:18px;min-height:0;margin-top:2px;accent-color:#2563eb}.access-template-choice-body{display:grid;gap:4px;min-width:0}.access-template-choice-body strong{color:#10233f;font-size:.96rem}.access-template-choice-body small{color:#64748b;line-height:1.4}.access-template-choice-body em{font-style:normal;font-size:.72rem;font-weight:800;color:#2563eb}.access-template-actions{justify-content:space-between!important}
.access-template-manager-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.access-template-manager-head>span{font-weight:800;color:#1e3a5f}.access-template-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid #dbe5f3;border-radius:15px;background:#fff}.access-template-card>div{display:grid;gap:4px;min-width:0}.access-template-card strong{color:#10233f}.access-template-card p{margin:0;color:#64748b;font-size:.82rem;line-height:1.35}.access-template-card small{color:#2563eb;font-weight:700}.access-template-card button{flex:0 0 auto}
.access-template-editor-card{width:min(1120px,calc(100vw - 28px));height:min(860px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);overflow:hidden;display:flex!important;flex-direction:column}.access-template-editor-card #accessTemplateEditorForm{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}.access-template-editor-meta{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(260px,1.35fr);gap:12px}.access-template-editor-list{display:block!important;flex:1 1 auto;min-height:0;max-height:none!important;overflow:auto;padding-right:8px}.access-template-editor-list .user-access-group{display:block!important;margin:0 0 12px!important;overflow:hidden!important}.access-template-editor-list .user-access-group[open]{overflow:visible!important}.access-template-editor-list .user-access-group:not([open])>.user-access-group-body{display:none!important}.access-template-editor-list .user-access-group[open]>.user-access-group-body{display:grid!important;max-height:none!important;overflow:visible!important}.access-template-editor-list .user-access-row{grid-template-columns:minmax(0,1fr) auto auto}.access-template-editor-card .ti-actions{flex:0 0 auto}
@media(max-width:760px){.user-bulk-access-toolbar{align-items:stretch}.user-bulk-access-actions{width:100%;margin-left:0}.user-bulk-access-actions button{flex:1}.access-template-card{align-items:flex-start;flex-direction:column}.access-template-editor-meta{grid-template-columns:1fr}.access-template-editor-card{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:14px!important}.access-template-editor-list .user-access-row{grid-template-columns:1fr}.access-template-modal-card{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}}

/* Lista de vendedores excluídos recolhida por padrão */
.seller-excluded-toggle-btn{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border:1px solid #fecaca;border-radius:12px;background:#fffafa;color:#7f1d1d;text-align:left;cursor:pointer}.seller-excluded-toggle-btn>span:first-child{display:grid;gap:2px}.seller-excluded-toggle-btn small{color:#64748b;font-size:.76rem;font-weight:500}.seller-excluded-toggle-meta{display:flex;align-items:center;gap:8px;flex:0 0 auto}.seller-excluded-toggle-meta b{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#fee2e2;color:#b91c1c;font-size:.72rem}.seller-excluded-toggle-meta em{font-style:normal;font-size:.74rem;font-weight:800;color:#b91c1c;white-space:nowrap}.seller-excluded-toggle-meta i{font-style:normal;font-size:1rem;transition:transform .18s ease}.seller-excluded-toggle-btn[aria-expanded="true"] .seller-excluded-toggle-meta i{transform:rotate(180deg)}.seller-excluded-panel{padding-top:8px}.seller-excluded-panel.hidden{display:none!important}
@media(max-width:760px){.seller-excluded-toggle-btn{align-items:flex-start;flex-direction:column}.seller-excluded-toggle-meta{width:100%;justify-content:space-between}}

/* Cotas por Loja: melhora de legibilidade sem alterar o layout dos graficos. */
.quota-progress-head strong{color:#0f172a;font-weight:850}
.quota-progress-head span{font-size:.82rem}
.quota-progress-total{color:#0f172a;font-weight:850}
.quota-progress-foot{color:#475569;font-size:.78rem;line-height:1.35;font-weight:600}
.quota-progress-meta{color:#475569;font-weight:650}
.quota-progress-foot .quota-progress-quantity{color:#334155;font-weight:850}
@media(max-width:1180px){.quota-progress-foot{font-size:.76rem}}


/* Mobile floating controls: keep helpers clear of primary content. */
@media (max-width: 760px) {
  .top-sellers-floating-root {
    left: auto !important;
    right: 10px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    z-index: 900 !important;
  }

  .top-sellers-fab {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    gap: 0 !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .28) !important;
  }

  .top-sellers-fab-icon { font-size: 1rem !important; }
  .top-sellers-fab-text { display: none !important; }

  .top-sellers-popover {
    left: auto !important;
    right: 0 !important;
    bottom: 62px !important;
    width: min(350px, calc(100vw - 20px)) !important;
    max-height: min(68dvh, 460px) !important;
    border-radius: 18px !important;
    transform-origin: right bottom !important;
  }

  .sidebar-tab,
  body .sidebar-tab,
  body.home-redesign .sidebar-tab {
    left: 10px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    border-radius: 16px !important;
    z-index: 901 !important;
  }

  body.sidebar-open .sidebar-tab,
  body.home-redesign.sidebar-open .sidebar-tab {
    left: calc(min(var(--sidebar-width, 280px), calc(100vw - 58px)) + 7px) !important;
  }
}


/* Grainient animado no fundo do menu lateral compartilhado */
body .shared-sidebar {
  isolation: isolate;
}
body .shared-sidebar > .sidebar-grainient {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
body .shared-sidebar > .sidebar-grainient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,22,48,.36), rgba(3,18,42,.58));
  pointer-events: none;
}
body .shared-sidebar .sidebar-grainient__canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: .78;
}
body .shared-sidebar > .sidebar-header,
body .shared-sidebar > .sidebar-nav {
  position: relative;
  z-index: 2;
}

/* ========================================================================== */
/* Shared sidebar - LineSidebar interaction                                    */
/* Applies to every page using assets/sidebar.js.                              */
/* ========================================================================== */
body .shared-sidebar.line-sidebar-shell {
  --line-sidebar-accent: #d9f2ff;
  --line-sidebar-text: #f7fbff;
  --line-sidebar-marker: #6c6c6c;
  --line-sidebar-marker-length: 60px;
  --line-sidebar-max-shift: 30px;
}

body .shared-sidebar.line-sidebar-shell .sidebar-nav {
  position: relative;
}

body .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item,
body .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item,
body.sidebar-open .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item,
body.sidebar-open .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item {
  --effect: 0;
  position: relative !important;
  padding-left: 18px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: color-mix(in srgb, var(--line-sidebar-accent) calc(var(--effect) * 100%), var(--line-sidebar-text)) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: translateX(calc(var(--effect) * var(--line-sidebar-max-shift))) !important;
  transition: none !important;
  overflow: visible !important;
}

body .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item:hover,
body .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item:hover,
body.sidebar-open .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item:hover,
body.sidebar-open .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item:hover {
  color: color-mix(in srgb, var(--line-sidebar-accent) calc(var(--effect) * 100%), var(--line-sidebar-text)) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item.active,
body .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item.active,
body.sidebar-open .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item.active,
body.sidebar-open .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item.active {
  color: var(--line-sidebar-accent) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  font-weight: 750 !important;
}

body .shared-sidebar.line-sidebar-shell .line-sidebar-marker {
  display: none !important;
  position: absolute;
  top: 50%;
  left: 8px;
  width: var(--line-sidebar-marker-length);
  height: 1px;
  pointer-events: none;
  background: color-mix(in srgb, var(--line-sidebar-accent) calc(var(--effect) * 100%), var(--line-sidebar-marker));
  transform: translateY(-50%) scaleX(calc(.7 + var(--effect) * .5));
  transform-origin: left center;
}

body .shared-sidebar.line-sidebar-shell .line-sidebar-index {
  display: none !important;
  position: absolute;
  left: 70px;
  top: 50%;
  width: 26px;
  pointer-events: none;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--line-sidebar-accent) calc(var(--effect) * 100%), var(--line-sidebar-text));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .70rem;
  font-weight: 650;
  line-height: 1;
  opacity: calc(.55 + var(--effect) * .45);
}

body .shared-sidebar.line-sidebar-shell .line-sidebar-item:not(:last-child)::after {
  display: none !important;
  content: "";
  position: absolute;
  left: 8px;
  bottom: -3px;
  width: calc(var(--line-sidebar-marker-length) * .5);
  height: 1px;
  pointer-events: none;
  background: var(--line-sidebar-marker);
  opacity: .5;
  transform: scaleX(calc(.7 + var(--effect) * .6));
  transform-origin: left center;
}

body .shared-sidebar.line-sidebar-shell .menu-item-icon {
  display: none !important;
}

body .shared-sidebar.line-sidebar-shell .menu-item-label {
  min-width: 0;
}

body .shared-sidebar.line-sidebar-shell .menu-chevron {
  color: color-mix(in srgb, var(--line-sidebar-accent) calc(var(--effect) * 100%), #7d89a8) !important;
}

body .shared-sidebar.line-sidebar-shell .submenu {
  padding-left: 0 !important;
}

body .shared-sidebar.line-sidebar-shell .submenu.is-open {
  padding-left: 0 !important;
}

body .shared-sidebar.line-sidebar-shell .menu-item-nested::before {
  display: none !important;
}

body .shared-sidebar.line-sidebar-shell .menu-item-nested {
  font-size: .92rem !important;
  font-weight: 600 !important;
}

/* Mantem a estrela de favoritos dentro do menu quando o item ativo se desloca. */
body .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item.active .menu-favorite-star,
body .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item.active .menu-favorite-star,
body.sidebar-open .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item.active .menu-favorite-star,
body.sidebar-open .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item.active .menu-favorite-star {
  position: relative;
  left: -30px;
}

body .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item.active .menu-favorite-star:hover,
body .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item.active .menu-favorite-star:hover,
body.sidebar-open .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item.active .menu-favorite-star:hover,
body.sidebar-open .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item.active .menu-favorite-star:hover {
  transform: scale(1.08);
}

@media (max-width: 640px) {
  body .shared-sidebar.line-sidebar-shell {
    --line-sidebar-marker-length: 44px;
    --line-sidebar-max-shift: 16px;
  }

  body .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item,
  body .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item,
  body.sidebar-open .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item,
  body.sidebar-open .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item {
    padding-left: 16px !important;
  }

  body .shared-sidebar.line-sidebar-shell .line-sidebar-index {
    left: 52px;
    font-size: .66rem;
  }

  body .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item.active .menu-favorite-star,
  body .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item.active .menu-favorite-star,
  body.sidebar-open .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item.active .menu-favorite-star,
  body.sidebar-open .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item.active .menu-favorite-star {
    left: -16px;
  }
}

@media (hover: none), (pointer: coarse) {
  body .shared-sidebar.line-sidebar-shell .menu-item.line-sidebar-item,
  body .shared-sidebar.line-sidebar-shell .sidebar-nav a.line-sidebar-item {
    transform: none !important;
  }
}

/* Settings users: native/chat source selector. */
.settings-user-source-tabs{display:flex;gap:10px;align-items:center;margin:0 0 14px;flex-wrap:wrap}.settings-user-source-tabs .btn-ghost{border:1px solid rgba(27,153,219,.24);border-radius:10px;padding:9px 15px;background:#fff;color:#425466;box-shadow:none;transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}.settings-user-source-tabs .btn-ghost.active,.settings-user-source-tabs .btn-ghost[aria-selected="true"]{border:0!important;background:linear-gradient(135deg,#2563eb 0%,#1d8cf8 100%)!important;color:#fff!important;box-shadow:0 14px 30px rgba(37,99,235,.24)!important;font-weight:800}.settings-user-source-tabs .btn-ghost.active:hover,.settings-user-source-tabs .btn-ghost[aria-selected="true"]:hover{background:linear-gradient(135deg,#1d4ed8 0%,#0ea5e9 100%)!important;box-shadow:0 18px 38px rgba(37,99,235,.30)!important}.settings-user-source-tabs .btn-ghost:not(.active):not([aria-selected="true"]){opacity:.78}#chatUsersHint{margin:-2px 0 18px}.chat-users-store-heading{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;margin:14px 0 2px;padding:10px 14px;border-radius:12px;background:rgba(31,151,211,.09);border:1px solid rgba(31,151,211,.17);color:#0b5076}.chat-users-store-heading span{font-weight:800}.chat-users-store-heading small{font-weight:700;opacity:.7}.user-origin-chat-badge{background:rgba(14,165,233,.12)!important;border-color:rgba(14,165,233,.28)!important;color:#0876a8!important}
