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

:root {
  --color-primary: #001b7f;
  --color-primary-dark: #001b7f;
  --color-secondary: #ffcd34;
  --color-surface: #ffffff;
  --color-background: #f4f7fb;
  --color-muted: #9aa4b2;
  --color-text: #1d1d1d;
  --color-border: #e2e8f0;
  --color-success: #27ae60;
  --color-warning: #ffcd34;
  --color-danger: #e2133c;
  --shadow-soft: 0 20px 40px rgba(18, 33, 61, 0.08);
  --shadow-card: 0 10px 30px rgba(18, 33, 61, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-base: 0.2s ease;
  --sidebar-width: 260px;
  --sidebar-width-collapsed: 80px;
  --topbar-height: 60px;
  
  /* Typography - Desktop (default) */
  --font-size-base: 14px;
  --font-size-h1: 28px;
  --font-size-h2: 20px;
  --font-size-h3: 16px;
  --font-size-sidebar-link: 13px;
  --font-size-sidebar-submenu: 12px;
  --font-size-sidebar-caption: 10px;
  --font-size-micro: 11px;
  --font-size-breadcrumb: 13px;
  --font-size-topbar-brand: 16px;
  --font-size-topbar-user-name: 13px;
  --font-size-topbar-user-role: 11px;
  --font-size-topbar-notification-title: 14px;
  --line-height-base: 1.5;
  --line-height-heading: 1.3;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

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

p {
  margin: 0 0 16px;
  line-height: 1.6;
}

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

.sidebar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: #071628;
  color: #fff;
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: width 0.3s ease, padding 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 9;
}

.sidebar__toggle {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 16px;
  margin-bottom: 12px;
}

.sidebar__toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sidebar__toggle-icon {
  transition: transform 0.3s ease;
}

.sidebar--collapsed .sidebar__toggle-icon {
  transform: rotate(180deg);
}


.sidebar--collapsed {
  width: var(--sidebar-width-collapsed);
  padding: 0 12px 32px;
  top: var(--topbar-height);
}

.sidebar--collapsed .sidebar__brand {
  padding: 20px 0 16px;
  justify-content: center;
}

.sidebar--collapsed .sidebar__link-label,
.sidebar--collapsed .sidebar__link::after,
.sidebar--collapsed .sidebar__footer,
.sidebar--collapsed .lang-switch span,
.sidebar--collapsed .sidebar__brand-title,
.sidebar--collapsed .sidebar__link-arrow,
.sidebar--collapsed .sidebar__menu-caption {
  opacity: 0;
  visibility: hidden;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.sidebar--collapsed .sidebar__link {
  justify-content: center;
  padding: 14px;
  position: relative;
  align-items: center;
  gap: 0;
}

.sidebar--collapsed .sidebar__link-icon {
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex-shrink: 0;
  flex-grow: 0;
}

.sidebar--collapsed .sidebar__link-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
  padding: 0;
  flex-shrink: 0;
  vertical-align: middle;
  box-sizing: border-box;
  line-height: 0;
  position: relative;
  top: 0;
  left: 0;
}

.sidebar--collapsed .sidebar__bottom {
  align-items: center;
}

.sidebar--collapsed .lang-switch {
  justify-content: center;
}

.sidebar--collapsed .sidebar__brand {
  justify-content: center;
  margin-bottom: 24px;
}

.sidebar--collapsed .sidebar__brand-logo {
  margin: 0 auto;
}

.sidebar--collapsed .sidebar__toggle {
  width: 100%;
  justify-content: center;
}

.sidebar__menu {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  gap: 8px;
}

.sidebar__menu-caption {
  padding: 10px 12px 6px;
  margin-bottom: 2px;
}

.sidebar__menu-caption label {
  font-size: var(--font-size-sidebar-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  display: block;
}

.sidebar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 6px;
  margin-bottom: 0;
}

.sidebar__brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(12, 24, 39, 0.35);
  padding: 6px;
}

.sidebar__brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: var(--line-height-heading);
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: var(--font-size-sidebar-link);
  line-height: 1.4;
  color: #a7b1c2;
  position: relative;
  transition: all var(--transition-base);
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

.sidebar__link:not(.sidebar--collapsed .sidebar__link)::after {
  content: '\203A';
  position: absolute;
  right: 12px;
  font-size: 14px;
  color: currentColor;
  transition: color var(--transition-base);
}

.sidebar--collapsed .sidebar__link::after {
  content: none;
}

.sidebar__link-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  transition: color var(--transition-base);
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.sidebar__link-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

.sidebar__link-label {
  flex: 1;
  display: block;
  opacity: 1;
  visibility: visible;
  width: auto;
  height: auto;
  overflow: visible;
  font-size: var(--font-size-sidebar-link);
  font-weight: 500;
  line-height: 1.4;
  color: inherit;
}

.sidebar__link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateX(2px);
}

.sidebar__link--active {
  background-color: rgba(22, 65, 255, 0.18);
  color: #1641ff;
  font-weight: 600;
}

.sidebar__menu-item {
  margin-bottom: 6px;
}

.sidebar__link--has-submenu {
  cursor: pointer;
}

.sidebar__link--has-submenu::after {
  display: none;
}

.sidebar__link--has-submenu {
  position: relative;
}

.sidebar__link-arrow {
  margin-left: auto;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.sidebar__link--expanded .sidebar__link-arrow {
  transform: rotate(90deg);
}

.sidebar__submenu {
  display: none;
  margin-top: 4px;
  margin-left: 0;
  padding-left: 0;
  border-left: none;
  list-style: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
}

.sidebar__link--expanded + .sidebar__submenu {
  display: block !important;
  opacity: 1;
  max-height: 500px;
  animation: slideDown 0.3s ease;
}

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

.sidebar__submenu-link {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 18px;
  padding-left: 52px;
  border-radius: 8px;
  font-weight: 500;
  font-size: var(--font-size-sidebar-submenu);
  line-height: 1.5;
  color: #a7b1c2;
  transition: all var(--transition-base);
  margin-bottom: 2px;
}

.sidebar__submenu-link-icon {
  width: 0;
  height: 0;
  display: none;
}

.sidebar__submenu-link-icon svg {
  width: 20px;
  height: 20px;
}

.sidebar__submenu-link-label {
  flex: 1;
}

.sidebar__submenu-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding-left: 44px;
}

.sidebar__submenu-link--active {
  background-color: rgba(22, 65, 255, 0.18);
  color: #1641ff;
  font-weight: 600;
}

.sidebar--collapsed .sidebar__menu-item {
  position: relative;
}

.sidebar--collapsed .sidebar__link {
  position: relative;
}

.sidebar--collapsed .sidebar__link[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #1a1d29;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: var(--font-size-sidebar-submenu);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar--collapsed .sidebar__link[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

.sidebar--collapsed .sidebar__link[data-tooltip]::after {
  content: '';
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #1a1d29;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.sidebar--collapsed .sidebar__link[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}


.sidebar--collapsed .sidebar__menu-caption {
  display: none;
}

.sidebar--collapsed .sidebar__submenu {
  position: fixed;
  background: #1a1d29;
  border-radius: 12px;
  padding: 8px;
  margin: 0;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  margin-top: 0;
  pointer-events: none;
}

.sidebar--collapsed .sidebar__submenu.sidebar__submenu--visible {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}

.sidebar--collapsed .sidebar__submenu-link {
  padding: 12px 16px;
  padding-left: 16px;
  white-space: nowrap;
}

.sidebar--collapsed .sidebar__submenu-link-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.sidebar__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar__footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar__user-name {
  font-weight: 600;
}

.sidebar__user-email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  word-break: break-all;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--topbar-height);
  background: #071628;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 2px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  z-index: 10;
  overflow: visible;
}

.topbar__language {
  overflow: visible;
}

.topbar__hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
  flex-shrink: 0;
  margin-right: 6px;
}

.topbar__hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.topbar__hamburger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.topbar__spacer {
  flex: 1;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 2px;
}

.topbar__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

.topbar__action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.topbar__action-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.topbar__notifications {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-right: 0;
}

.topbar__notifications-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
  flex-shrink: 0;
}

.topbar__notifications-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.topbar__notifications-trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.topbar__notifications-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.topbar__notifications-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ffcd34;
  color: #071628;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.topbar__notifications-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 380px;
  max-width: calc(100vw - 48px);
  background: #ffffff;
  color: #071628;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(13, 34, 60, 0.2);
  display: none;
  flex-direction: column;
  z-index: 30;
  max-height: 600px;
  overflow: hidden;
}

.topbar__notifications--open .topbar__notifications-menu {
  display: flex;
}

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

.topbar__notifications-title {
  font-size: var(--font-size-topbar-notification-title);
  font-weight: 700;
  line-height: var(--line-height-heading);
  margin: 0;
  color: #071628;
}

.topbar__notifications-mark-all {
  font-size: 12px;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition-base);
}

.topbar__notifications-mark-all:hover {
  background: rgba(22, 65, 255, 0.1);
}

.topbar__notifications-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.topbar__notifications-loading,
.topbar__notifications-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
}

.topbar__notifications-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.topbar__notifications-item:hover {
  background: var(--color-background);
}

.topbar__notifications-item--unread {
  background: rgba(22, 65, 255, 0.04);
}

.topbar__notifications-item--unread:hover {
  background: rgba(22, 65, 255, 0.08);
}

.topbar__notifications-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-background);
}

.topbar__notifications-item-icon--order {
  background: rgba(22, 65, 255, 0.1);
  color: var(--color-primary);
}

.topbar__notifications-item-icon--invoice {
  background: rgba(39, 174, 96, 0.1);
  color: var(--color-success);
}

.topbar__notifications-item-icon--alert {
  background: rgba(255, 205, 52, 0.1);
  color: var(--color-warning);
}

.topbar__notifications-item-icon--system {
  background: rgba(167, 177, 194, 0.1);
  color: var(--color-muted);
}

.topbar__notifications-item-content {
  flex: 1;
  min-width: 0;
}

.topbar__notifications-item-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #071628;
}

.topbar__notifications-item-message {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.4;
}

.topbar__notifications-item-time {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 4px;
}

/* Garantir legibilidade do texto no menu de notificações */
.topbar__notifications-menu,
.topbar__notifications-menu * {
  color: #1d1d1d !important;
}

.topbar__notifications-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 6px;
}

.topbar__notifications-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.topbar__notifications-view-all {
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-base);
}

.topbar__notifications-view-all:hover {
  color: #1641ff;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: 0;
  padding-left: 0;
}

.topbar__brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(12, 24, 39, 0.35);
  padding: 6px;
}

.topbar__brand-logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.topbar__brand-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.topbar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar__brand-title {
  font-size: var(--font-size-topbar-brand);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: var(--line-height-heading);
  color: #fff;
}

.topbar__brand-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__user {
  display: inline-flex;
  align-items: center;
  gap: 0;
  position: relative;
  margin-left: 2px;
}

.topbar__user-info {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.78);
}

.topbar__user-name {
  font-size: var(--font-size-topbar-user-name);
  font-weight: 600;
  line-height: var(--line-height-base);
  color: #fff;
}

.topbar__user-role {
  font-size: var(--font-size-topbar-user-role);
  line-height: var(--line-height-base);
  color: rgba(255, 255, 255, 0.6);
}

.topbar__user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1641ff 0%, #001b7f 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(22, 65, 255, 0.25);
  overflow: hidden;
}

.topbar__user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.topbar__user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  color: inherit;
  padding: 6px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: background var(--transition-base);
}

.topbar__user-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.topbar__user-trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.topbar__user-caret {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform var(--transition-base);
}

.topbar__user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  background: #ffffff;
  color: #071628;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(13, 34, 60, 0.2);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
}

.topbar__user--open .topbar__user-caret {
  transform: rotate(180deg);
}

.topbar__user--open .topbar__user-menu {
  display: flex;
}

.topbar__user-menu-item {
  padding: 10px 12px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition-base), color var(--transition-base);
}

.topbar__user-menu-item:hover {
  background: rgba(22, 65, 255, 0.1);
  color: #1641ff;
}

.content {
  flex: 1;
  padding: calc(var(--topbar-height) + 32px) 32px 32px;
  padding-left: calc(var(--sidebar-width) + 32px);
  width: 100%;
  transition: padding-left 0.3s ease;
}

.sidebar--collapsed ~ .content {
  padding-left: calc(var(--sidebar-width-collapsed) + 32px);
}


.content__header {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.content__header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-right: 16px;
  margin-right: 0;
}

.content__header-actions .btn {
  white-space: nowrap;
}

.content__header-breadcrumb {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content__subtitle {
  font-size: var(--font-size-sidebar-submenu);
  line-height: var(--line-height-base);
  color: var(--color-muted);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-breadcrumb);
  line-height: var(--line-height-base);
  color: #6b7380;
}

.breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
  vertical-align: middle;
}

.breadcrumb__link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
  display: block;
  vertical-align: middle;
}

.breadcrumb__link:hover {
  color: #1641ff;
}

.breadcrumb__separator {
  color: rgba(107, 115, 128, 0.6);
}

.breadcrumb__current {
  color: #1641ff;
  font-weight: 600;
}

.content__title {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.content__subtitle {
  color: var(--color-muted);
  margin-top: 8px;
}

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

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card__content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-background);
  color: var(--color-primary);
  flex-shrink: 0;
}

.stat-card__icon svg {
  width: 28px;
  height: 28px;
}

.stat-card--open .stat-card__icon {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.stat-card--transit .stat-card__icon {
  background: rgba(22, 65, 255, 0.1);
  color: var(--color-primary);
}

.stat-card--completed .stat-card__icon {
  background: rgba(39, 174, 96, 0.1);
  color: var(--color-success);
}

.stat-card--revenue .stat-card__icon {
  background: rgba(156, 39, 176, 0.1);
  color: #9c27b0;
}

.stat-card--delayed .stat-card__icon {
  background: rgba(226, 19, 60, 0.1);
  color: var(--color-danger);
}

.stat-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.stat-card__label {
  color: var(--color-muted);
  font-size: var(--font-size-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.stat-card__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: var(--line-height-heading);
}

.stat-card--with-progress {
  padding-bottom: 20px;
}

.stat-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card__progress {
  width: 100%;
  height: 8px;
  background: var(--color-background);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.stat-card__progress-bar {
  height: 100%;
  border-radius: 4px;
  position: relative;
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.stat-card__progress-text {
  font-size: 11px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.table-card {
  margin-top: 32px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* Content inner: mesmo layout que billing_payment_view (max-width + padding) */
.billing-view-inner {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .billing-view-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Invoice / settlement view (driver_payment_settlement) */
.invoice-card {
  padding: 24px;
}

.invoice-card__header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.invoice-card__form-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}
.invoice-card__form-fields .invoice-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.invoice-card__form-fields .form-label {
  font-size: 12px;
  color: var(--color-text-muted, #6b7280);
  font-weight: 500;
}
.invoice-card__form-fields .form-input,
.invoice-card__form-fields .form-input--select {
  min-width: 140px;
}
.invoice-card__form-fields .invoice-form-field:first-child .form-input { min-width: 150px; }
.invoice-card__form-fields .invoice-form-field:nth-child(2) .form-input { min-width: 150px; }

.invoice-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary-dark, #1a1a2e);
  margin: 0 0 6px 0;
}

.invoice-card__meta {
  font-size: 13px;
  color: var(--color-text-muted, #6b7280);
  margin: 0;
}

.invoice-card__filter {
  color: var(--color-text-muted);
  font-weight: 500;
}

.invoice-card__table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.invoice-table thead th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted, #6b7280);
  background: var(--color-bg-subtle, #f8fafc);
  border-bottom: 2px solid var(--color-border, #e5e7eb);
}

.invoice-table thead th:first-child {
  border-top-left-radius: 8px;
}

.invoice-table thead th:last-child {
  border-top-right-radius: 8px;
}

/* Colunas Tipo, Valor e Status centralizadas */
.invoice-table thead th:nth-child(3),
.invoice-table thead th:nth-child(4),
.invoice-table thead th:nth-child(5) {
  text-align: center;
}
.invoice-table tbody td:nth-child(3),
.invoice-table tbody td:nth-child(4),
.invoice-table tbody td:nth-child(5) {
  text-align: center;
}

.invoice-table__amount {
  white-space: nowrap;
}
.invoice-table thead th.invoice-table__amount {
  padding-right: 14px;
}
.invoice-table tbody td.invoice-table__amount {
  padding-right: 14px;
  vertical-align: middle;
}
.invoice-table__amount .invoice-amount-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  justify-content: center;
}

.invoice-table__amount--negative {
  color: var(--color-danger, #dc2626);
}

.invoice-table .invoice-amount-input {
  width: 5.5em;
  min-width: 5.5em;
  padding: 2px 6px;
  font-size: inherit;
  font-family: inherit;
  text-align: right;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  -moz-appearance: textfield;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}
.invoice-table .invoice-amount-input::-webkit-outer-spin-button,
.invoice-table .invoice-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.invoice-table .invoice-amount-input:hover {
  border-color: var(--color-border, #e5e7eb);
  background: var(--color-surface, #fff);
}
.invoice-table .invoice-amount-input:focus {
  outline: none;
  border-color: var(--color-primary, #1641ff);
  background: var(--color-surface, #fff);
}
.invoice-table__amount--negative .invoice-amount-input {
  color: inherit;
}
.invoice-table .invoice-amount-sign {
  display: inline-block;
  width: 1.25em;
  min-width: 1.25em;
  text-align: right;
  flex-shrink: 0;
  margin-right: 2px;
}
.invoice-table .invoice-amount-input {
  margin-left: 0;
}
.invoice-table__type-cell {
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}
.invoice-table .previous-balance-type-toggle {
  border: none;
  margin: 0;
  min-width: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.invoice-table .previous-balance-type-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(22, 65, 255, 0.15);
}

.invoice-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  vertical-align: middle;
}

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

.invoice-table__row:hover {
  background: var(--color-bg-subtle, #f8fafc);
}

.invoice-table__row--clickable {
  cursor: pointer;
}

.invoice-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.invoice-type--entrada {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.invoice-type--saida {
  background: rgba(220, 38, 38, 0.08);
  color: var(--color-danger, #dc2626);
}

.invoice-status {
  font-size: 13px;
  color: var(--color-text, #374151);
}

.invoice-card__totals {
  background: var(--color-bg-subtle, #f8fafc);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  max-width: 320px;
  margin-left: auto;
}

.invoice-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}

.invoice-totals__label {
  color: var(--color-text-muted, #6b7280);
}

.invoice-totals__value {
  font-weight: 600;
  color: var(--color-text, #374151);
}

.invoice-totals__row--subtotal {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid var(--color-border, #e5e7eb);
  font-size: 15px;
}

.invoice-totals__row--subtotal .invoice-totals__value {
  font-size: 16px;
  color: var(--color-primary, #1641ff);
}

.invoice-card__form {
  margin-top: 0;
}

.invoice-card__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

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

.table-card thead {
  background: var(--color-primary);
  color: #fff;
}

.table-card thead th:first-child {
  border-top-left-radius: 12px;
}

.table-card thead th:last-child {
  border-top-right-radius: 12px;
}

.table-card th,
.table-card td {
  padding: 12px;
  font-size: 14px;
  text-align: left;
}

.table-card th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-card tbody tr:nth-child(even) {
  background-color: #f7f9fc;
}

.table-card tbody tr:hover {
  background-color: rgba(22, 65, 255, 0.08);
}

.table-card .table-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.table-card .table-link:hover {
  text-decoration: underline;
}

.table-card__toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  gap: 12px;
  padding: 16px 16px 0;
}

.table-card__toolbar + table {
  margin-top: 8px;
}

.table-card__toolbar--tight {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  gap: 12px;
  padding: 16px 16px 8px;
}

.table-card__toolbar--filters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  gap: 16px;
  padding: 16px;
  flex-wrap: wrap;
}

.table-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.table-filters__group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.table-filters__group .form-input {
  min-width: 120px;
  max-width: 200px;
  flex-shrink: 1;
  width: 100%;
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text);
  user-select: none;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.form-checkbox span {
  font-weight: 500;
  line-height: 1.4;
}

.table-filters__group .form-input--search {
  min-width: 100px;
  max-width: 150px;
  flex-shrink: 1;
  width: 100%;
}

.table-filters__group .form-input--select {
  min-width: 120px;
  max-width: 180px;
  flex-shrink: 1;
  width: 100%;
}

.table-filters__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.table-filters__spacer {
  flex: 1;
}

/* Settlement filters: duas linhas alinhadas – linha 1: data + período + botão; linha 2: motorista + tipo + método */
.table-filters--settlement {
  width: 100%;
  max-width: 960px;
}
.settlement-filters__col-date-driver {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.settlement-filters__row-date-ate {
  display: grid;
  grid-template-columns: 200px 200px 200px auto;
  align-items: end;
  gap: 16px;
}
.settlement-filters__row-driver-payment {
  display: grid;
  grid-template-columns: 200px 200px 200px;
  align-items: end;
  gap: 16px;
}
.settlement-filters__col-date-driver .table-filters__group {
  min-width: 0;
}
.settlement-filters__col-date-driver .table-filters__group--action {
  justify-self: start;
}
/* Todos os selects dos filtros de settlement com o mesmo tamanho padrão */
.table-filters--settlement .table-filters__group .form-input--select,
.table-filters--settlement .table-filters__group select.form-input {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}
.table-filters--settlement .table-filters__group input.form-input[type="date"] {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}
.settlement-filters__col-period {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.table-filters--settlement .table-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.table-filters--settlement .table-filters__row--rest {
  flex-shrink: 0;
  margin-left: auto;
}
.table-filters--settlement .table-filters__group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}
.table-filters--settlement .table-filters__group .form-input,
.table-filters--settlement .table-filters__group .form-input--select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.settlement-filters__col-period .table-filters__group .form-input {
  min-width: 130px;
  max-width: 160px;
}
.table-filters--settlement .table-filters__group--action .form-input {
  min-width: 0;
  max-width: none;
}
.settlement-filters__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted, #6b7280);
  margin: 0 0 2px 0;
}
.settlement-filters__label--hidden {
  visibility: hidden;
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 2px;
  min-height: 16px;
}
@media (max-width: 768px) {
  .settlement-filters__row-date-ate {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .settlement-filters__row-date-ate .table-filters__group--action {
    grid-column: 1 / -1;
  }
  .settlement-filters__row-driver-payment {
    grid-template-columns: 1fr;
  }
}

/* Subtotal: positivo = carrier a receber (verde); negativo = carrier a pagar ao driver (vermelho) - sobrescreve o azul da linha de subtotal */
.invoice-totals__row--subtotal .invoice-totals__value.settlement-subtotal--receives,
.invoice-totals__value.settlement-subtotal--receives,
.settlement-subtotal--receives {
  color: var(--color-success) !important;
  font-weight: 600;
}
.invoice-totals__row--subtotal .invoice-totals__value.settlement-subtotal--pays,
.invoice-totals__value.settlement-subtotal--pays,
.settlement-subtotal--pays {
  color: var(--color-danger) !important;
  font-weight: 600;
}

.settlement-drivers-table__footer {
  border-top: 2px solid var(--color-border, #e5e7eb);
  font-weight: 600;
  background: var(--color-surface-alt, rgba(0, 0, 0, 0.02));
}
.settlement-drivers-table__footer .settlement-drivers-table__footer-label {
  text-align: right;
  padding-right: 8px;
}

.settlement-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border, #e5e7eb);
  font-size: 12px;
  color: var(--color-text-muted, #6b7280);
}
.settlement-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.settlement-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}

.table-card__columns-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-size: 13px;
  font-weight: 500;
  gap: 8px;
}

.table-card__columns-button:hover {
  background: rgba(7, 22, 40, 0.06);
  border-color: rgba(7, 22, 40, 0.18);
}

.table-card__columns-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.table-card__columns-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  width: min(280px, 90vw);
  max-height: 360px;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: none;
  z-index: 40;
}

.table-card__columns-menu--open {
  display: block;
}

.table-card__columns-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.table-card__columns-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.columns-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--color-primary-dark);
}

.columns-menu__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.columns-menu__group + .columns-menu__group {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.columns-menu__group-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.columns-menu__item input[type='checkbox'] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.table-column--hidden {
  display: none !important;
}

.table-link--inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.table-link--inline:hover {
  text-decoration: underline;
}

.orders-table__row {
  cursor: pointer;
}

.orders-table__row:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--pending {
  background: rgba(255, 205, 52, 0.15);
  color: var(--color-warning);
}

.badge--assigned {
  background: rgba(22, 65, 255, 0.16);
  color: var(--color-primary-dark);
}

.badge--transit {
  background: rgba(64, 126, 255, 0.18);
  color: var(--color-primary);
}

.badge--delivered {
  background: rgba(39, 174, 96, 0.16);
  color: var(--color-success);
}

.badge--danger {
  background: rgba(226, 19, 60, 0.16);
  color: var(--color-danger);
}

.badge--success {
  background: rgba(39, 174, 96, 0.16);
  color: var(--color-success);
}

.badge--warning {
  background: rgba(255, 205, 52, 0.15);
  color: #b89500;
}

.badge--neutral {
  background: rgba(154, 164, 178, 0.16);
  color: var(--color-muted);
}

/* Badge Simple - para status de ofertas */
.badge-simple {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  background: #e5e7eb;
  color: #6b7280;
}

.badge-simple--green {
  background: #d1fae5 !important;
  color: #059669 !important;
}

.badge-simple--blue {
  background: #dbeafe !important;
  color: #2563eb !important;
}

.badge-simple--yellow {
  background: #fef3c7 !important;
  color: #d97706 !important;
}

.badge-simple--red {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

.badge-simple--orange {
  background: #ffedd5 !important;
  color: #ea580c !important;
}

.badge-simple--gray {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
}

.badge-simple--purple {
  background: #ede9fe !important;
  color: #7c3aed !important;
}

body[data-theme="dark"] .badge-simple {
  background: #374151;
  color: #9ca3af;
}

body[data-theme="dark"] .badge-simple--green {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
}

body[data-theme="dark"] .badge-simple--blue {
  background: rgba(59, 130, 246, 0.25) !important;
  color: #60a5fa !important;
}

body[data-theme="dark"] .badge-simple--yellow {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #fbbf24 !important;
}

body[data-theme="dark"] .badge-simple--red {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
}

body[data-theme="dark"] .badge-simple--orange {
  background: rgba(234, 88, 12, 0.25) !important;
  color: #fb923c !important;
}

body[data-theme="dark"] .badge-simple--gray {
  background: rgba(107, 114, 128, 0.25) !important;
  color: #9ca3af !important;
}

body[data-theme="dark"] .badge-simple--purple {
  background: rgba(139, 92, 246, 0.25) !important;
  color: #a78bfa !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.btn--primary {
  background: #001b7f !important;
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 24px rgba(0, 27, 127, 0.34);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(0, 27, 127, 0.42);
}

.btn--secondary {
  background: #001b7f;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 27, 127, 0.32);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border: 1px solid rgba(22, 65, 255, 0.3);
}

.btn--ghost:hover {
  background: rgba(22, 65, 255, 0.08);
}

.btn--danger {
  background: #e2133c;
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 20px rgba(226, 19, 60, 0.32);
}

.btn--danger:hover {
  background: #c01032;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(226, 19, 60, 0.42);
}

.btn--success {
  background: #10b981;
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.32);
}

.btn--success:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(16, 185, 129, 0.42);
}

.page-actions {
  display: flex;
  gap: 12px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 24px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.login-layout {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 20px;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 36px;
  gap: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(3, 9, 20, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.5);
  width: 100%;
  max-width: 440px;
  position: relative;
  overflow: hidden;
}


.login-card__wrapper {
  width: 100%;
}

.login-card__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
  text-align: center;
}

.login-card__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.login-card__logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.login-card__welcome {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-card__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.login-card__subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.login-form__fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.login-form__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group--login {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input--login {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid rgba(22, 65, 255, 0.2);
  border-radius: 12px;
  transition: all 0.2s ease;
  outline: none;
}

.form-input--login::placeholder {
  color: var(--color-muted);
  opacity: 0.6;
}

.form-input--login:hover {
  border-color: rgba(22, 65, 255, 0.35);
}

.form-input--login:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(22, 65, 255, 0.12);
  background: var(--color-surface);
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.btn--login {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: none;
  box-shadow: 0 8px 24px -8px rgba(22, 65, 255, 0.5);
  transition: all 0.2s ease;
  cursor: pointer;
  color: white;
}

.btn--login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(22, 65, 255, 0.6);
  filter: brightness(1.05);
}

.btn--login:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px -4px rgba(22, 65, 255, 0.5);
}

.btn--login svg {
  transition: transform 0.2s ease;
}

.btn--login:hover svg {
  transform: translateX(2px);
}

.login-card__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: var(--color-muted);
  margin-top: 0;
  margin-bottom: 20px;
}

.login-card__footer-link {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
  font-weight: 500;
}

.login-card__footer-link:hover {
  color: var(--color-primary-dark);
}

.login-card__register {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.login-card__register-text {
  color: var(--color-muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.login-card__register-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-base);
}

.login-card__register-link:hover {
  color: var(--color-primary-dark);
}

.login-layout__left::after {
  content: '';
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  position: absolute;
  top: 48px;
  right: 48px;
  filter: blur(0.5px);
  pointer-events: none;
}

.login-layout__left {
  position: relative;
}

.login-layout__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-layout__slogan {
  font-size: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.login-language__option {
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(22, 65, 255, 0.4);
  color: var(--color-primary-dark);
}

.login-language__option--active {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
}

.login-language__option:hover {
  border-color: var(--color-primary-dark);
  color: var(--color-primary-dark);
}

.login-layout__left,
.login-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.login-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px -18px rgba(13, 40, 157, 0.35);
}

.login-layout__left::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  pointer-events: none;
}

.login-collage {
  position: absolute;
  inset: -140px;
  z-index: 1;
}

.login-collage__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  grid-template-rows: repeat(2, minmax(200px, 1fr));
  gap: 32px;
  transform: rotate(-7deg) scale(1.25);
  grid-auto-flow: dense;
  opacity: 0.55;
}

.login-collage__tile {
  border-radius: 32px;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: 0 40px 80px rgba(3, 9, 20, 0.55);
}

.login-collage__tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(7, 22, 40, 0.08), rgba(7, 22, 40, 0.6));
}

.login-collage__tile--1 {
  background-image: url('../img/brand/login-1.jpg');
}

.login-collage__tile--2 {
  background-image: url('../img/brand/login-2.jpg');
}

.login-collage__tile--3 {
  background-image: url('../img/brand/login-3.jpg');
}

.login-collage__tile--4 {
  background-image: url('../img/brand/login-4.jpg');
}

.login-collage__tile--5 {
  background-image: url('../img/brand/login-5.jpg');
  grid-column: 2 / span 1;
  grid-row: 1 / span 2;
}

.login-collage__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(3, 9, 20, 0.25) 0%, rgba(3, 9, 20, 0.82) 70%);
}

.login-collage__logo {
  position: absolute;
  top: 56px;
  left: 72px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-collage__logo img {
  width: 60px;
  height: 60px;
}

.login-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.login-language {
  display: inline-flex;
  gap: 12px;
  margin-top: 28px;
}

.login-language--inline {
  justify-content: center;
}

.login-language__option {
  width: 50px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid rgba(7, 22, 40, 0.08);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.login-language__option img {
  width: 30px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.login-language__option:hover,
.login-language__option--active {
  transform: translateY(-2px);
  border-color: #1641ff;
  box-shadow: 0 12px 22px rgba(22, 65, 255, 0.22);
}

.login-card {
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
}

.login-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--color-muted);
}

.login-card__footer a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.login-card__footer a:hover {
  color: var(--color-primary-dark);
}

.login-form .btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: none;
  box-shadow: 0 12px 30px -12px rgba(22, 65, 255, 0.6);
}

.login-form .btn--primary:hover {
  filter: brightness(0.95);
}

.login-form .form-input {
  border: 1px solid rgba(22, 65, 255, 0.25);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.login-form .form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22, 65, 255, 0.18);
}

.login-layout__left::after {
  content: '';
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  position: absolute;
  top: 48px;
  right: 48px;
  filter: blur(0.5px);
  pointer-events: none;
}

.login-layout__left {
  position: relative;
}

.login-layout__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-layout__slogan {
  font-size: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.login-language__option {
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(22, 65, 255, 0.4);
  color: var(--color-primary-dark);
}

.login-language__option--active {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
}

.login-language__option:hover {
  border-color: var(--color-primary-dark);
  color: var(--color-primary-dark);
}

.login-layout__left,
.login-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.login-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px -18px rgba(13, 40, 157, 0.35);
}

.login-layout__left::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  pointer-events: none;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.alert--success {
  background: rgba(39, 174, 96, 0.16);
  color: var(--color-success);
  border: 1px solid rgba(39, 174, 96, 0.24);
}

.alert--danger {
  background: rgba(226, 19, 60, 0.16);
  color: var(--color-danger);
  border: 1px solid rgba(226, 19, 60, 0.24);
}

.alert-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-container--floating {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  max-width: min(360px, 90vw);
}

/* Notificações fixas no topo direito */
.flash-notifications {
  position: fixed;
  top: calc(var(--topbar-height) + 24px);
  right: 24px;
  z-index: 10000;
  max-width: min(400px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.flash-notification {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease-out;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flash-notification--success {
  background: rgba(39, 174, 96, 0.95);
  color: #fff;
  border: 1px solid rgba(39, 174, 96, 1);
}

.flash-notification--danger {
  background: rgba(226, 19, 60, 0.95);
  color: #fff;
  border: 1px solid rgba(226, 19, 60, 1);
}

.flash-notification--warning {
  background: rgba(255, 205, 52, 0.95);
  color: var(--color-text);
  border: 1px solid rgba(255, 205, 52, 1);
}

.flash-notification__close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.flash-notification__close:hover {
  opacity: 1;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.page-section {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-section + .profile-section-block,
.profile-section-block + .profile-section-block {
  margin-top: 32px;
}

.page-section--form {
  display: none;
}

#novo-usuario:target {
  display: flex;
}

.page-section--form.page-section--form-visible {
  display: flex;
}

.page-section__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.upload-card {
  border: 1px solid rgba(22, 65, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(22, 65, 255, 0.04);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.upload-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.upload-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.upload-card__description {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--color-muted);
}

.upload-card__badge {
  background: var(--color-primary);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.upload-card__dropzone {
  border: 2px dashed rgba(22, 65, 255, 0.25);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base), transform var(--transition-base);
}

.upload-card__dropzone:hover,
.upload-card--drag .upload-card__dropzone,
.upload-card--selected .upload-card__dropzone {
  border-color: var(--color-primary);
  background: rgba(22, 65, 255, 0.08);
  transform: translateY(-1px);
}

.upload-card__icon {
  color: var(--color-primary);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-card__dropzone-text span {
  display: block;
  font-size: 14px;
  color: var(--color-muted);
}

.upload-card__dropzone-text strong {
  display: block;
  font-size: 15px;
  color: var(--color-primary);
  margin-top: 4px;
}

.upload-card__preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-card__file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid rgba(22, 65, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.upload-card__file-icon {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-card__file-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-card__file-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-primary-dark);
  word-break: break-word;
}

.upload-card__file-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-muted);
}

.upload-card__file-status--success {
  color: var(--color-success);
}

.upload-card__file-status--error {
  color: var(--color-danger);
}

.upload-card__file-status--ready {
  color: var(--color-primary-dark);
}

.upload-card__message {
  font-size: 14px;
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.upload-card__message--success {
  background: rgba(39, 174, 96, 0.14);
  color: var(--color-success);
  border-color: rgba(39, 174, 96, 0.25);
}

.upload-card__message--error {
  background: rgba(226, 19, 60, 0.12);
  color: var(--color-danger);
  border-color: rgba(226, 19, 60, 0.24);
}

.upload-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.upload-card__footnote {
  font-size: 13px;
  color: var(--color-muted);
}

.upload-card--success .upload-card__badge {
  background: var(--color-success);
}

.upload-card--error .upload-card__badge {
  background: var(--color-danger);
}

.upload-card--success .upload-card__dropzone {
  border-color: rgba(39, 174, 96, 0.45);
}

.upload-card--error .upload-card__dropzone {
  border-color: rgba(226, 19, 60, 0.4);
}

.upload-card--ready .upload-card__dropzone {
  border-color: rgba(22, 65, 255, 0.35);
}

.upload-card--loading {
  position: relative;
  pointer-events: none;
}

/* Novo layout de upload seguindo modelo da marca */
.file-upload-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-upload-section__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.file-upload-section__description {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
}

.file-upload-section__help {
  margin: 0;
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.4;
}

.file-upload-dropzone {
  border: 2px dashed rgba(22, 65, 255, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(22, 65, 255, 0.02);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: border-color var(--transition-base), background var(--transition-base);
  cursor: pointer;
  min-height: 100px;
  text-align: center;
}

.file-upload-dropzone:hover {
  border-color: var(--color-primary);
  background: rgba(22, 65, 255, 0.06);
}

.file-upload-dropzone__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
}

.file-upload-dropzone__icon {
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-upload-dropzone__icon svg {
  width: 40px;
  height: 40px;
}

.file-upload-dropzone__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.file-upload-dropzone__text-primary {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
}

.file-upload-dropzone__text-secondary {
  font-size: 14px;
  color: var(--color-primary-dark);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.file-upload-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-upload-preview__file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.file-upload-preview__file:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(22, 65, 255, 0.1);
}

.file-upload-preview__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-upload-preview__icon svg {
  width: 20px;
  height: 20px;
}

.file-upload-preview__file:has(.file-upload-preview__status--success) .file-upload-preview__icon {
  color: var(--color-primary);
}

.file-upload-preview__file:has(.file-upload-preview__status--error) .file-upload-preview__icon {
  color: var(--color-danger);
}

/* Fallback para navegadores que não suportam :has() */
.file-upload-preview__file.file-upload-preview__file--success .file-upload-preview__icon {
  color: var(--color-primary);
}

.file-upload-preview__file.file-upload-preview__file--error .file-upload-preview__icon {
  color: var(--color-danger);
}

.file-upload-preview__info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.file-upload-preview__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  word-break: break-word;
  flex: 1;
}

.file-upload-preview__status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.file-upload-preview__status svg {
  width: 14px;
  height: 14px;
}

.file-upload-preview__status--success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--color-success);
}

.file-upload-preview__status--error {
  background: rgba(226, 19, 60, 0.1);
  color: var(--color-danger);
}

.file-upload-preview__message {
  font-size: 13px;
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.file-upload-preview__message--success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--color-success);
  border-color: rgba(39, 174, 96, 0.2);
}

.file-upload-preview__message--error {
  background: rgba(226, 19, 60, 0.1);
  color: var(--color-danger);
  border-color: rgba(226, 19, 60, 0.2);
}

.file-upload-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.file-upload-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
}

/* Navegação entre tabs */
.tab-navigation {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex-direction: row !important;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.tab-navigation .btn {
  min-width: 120px;
}

/* Estado de upload com progresso (futuro) */
.file-upload-preview__progress {
  width: 100%;
  height: 8px;
  background: var(--color-background);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
}

.file-upload-preview__progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 0 8px;
}

.upload-card--loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--radius-md);
}

.upload-card--loading .upload-card__dropzone {
  border-color: var(--color-primary);
  background: rgba(22, 65, 255, 0.08);
  position: relative;
}

.upload-card--loading .upload-card__file-status {
  position: relative;
}

.upload-card--loading .upload-card__file-status::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

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

.form-group {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  width: 100%;
}

.autocomplete-list[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Garantir que o autocomplete apareça logo após o input */
.form-group[data-has-autocomplete] {
  position: relative !important;
}

.form-group[data-has-autocomplete] .autocomplete-list {
  position: absolute;
  top: auto;
  bottom: auto;
  margin-top: 0;
}

/* Posicionar a lista logo após o input usando JavaScript inline style */
.form-group[data-has-autocomplete] .form-input[data-autocomplete-input] {
  position: relative;
}

/* Garantir que o autocomplete apareça abaixo do input correto */
.form-group:has([data-contact-autocomplete]) {
  position: relative !important;
}

.form-group:has(.autocomplete-list) {
  position: relative !important;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-base);
}

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

.autocomplete-item:hover,
.autocomplete-item--selected {
  background-color: rgba(22, 65, 255, 0.08);
}

.autocomplete-item strong {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.autocomplete-item__subtitle {
  display: block;
  font-size: 14px;
  color: var(--color-muted);
}

.form-group {
  position: relative;
}

.profile-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: min(100%, 1080px);
  margin: 0 auto;
  overflow: visible;
  min-height: auto;
  position: relative;
}

/* Garantir que todo o conteúdo das tabs esteja dentro do profile-card */
.profile-card .profile-form {
  width: 100%;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
}

.profile-card .profile-tab-content {
  width: 100%;
  overflow: visible;
  position: relative;
  display: none;
}

.profile-card .profile-tab-content--active {
  display: block !important;
}

/* Garantir que todas as tabs fiquem dentro do card */
.profile-card .profile-tab-content[data-tab-content] {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

/* Garantir que profile-stack e profile-stack__section fiquem dentro do card */
.profile-card .profile-stack,
.profile-card .profile-stack__section {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
}

/* Garantir que todos os campos fiquem dentro do card */
.profile-card .form-group,
.profile-card .form-double,
.profile-card .form-triple,
.profile-card .form-quad,
.profile-card .form-input,
.profile-card .form-label {
  width: 100%;
  max-width: 100%;
  position: relative;
}

.profile-card .profile-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  overflow: visible;
}

.profile-card .profile-tab-content--active {
  display: block !important;
  width: 100% !important;
  min-height: auto !important;
  overflow: visible !important;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-card .profile-tab-content--active > * {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-card .profile-tab-content--active .profile-section-block {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
}

.profile-card .profile-tab-content--active .profile-stack {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
}

.profile-card .profile-tab-content--active .profile-stack__section {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
}

/* Garantir que todos os elementos dentro do profile-tab-content--active sejam visíveis */
.profile-card .profile-tab-content--active h2,
.profile-card .profile-tab-content--active h3,
.profile-card .profile-tab-content--active .form-label,
.profile-card .profile-tab-content--active .form-input,
.profile-card .profile-tab-content--active .form-group,
.profile-card .profile-tab-content--active .form-double,
.profile-card .profile-tab-content--active .form-triple,
.profile-card .profile-tab-content--active .form-quad,
.profile-card .profile-tab-content--active select,
.profile-card .profile-tab-content--active textarea,
.profile-card .profile-tab-content--active button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-card .profile-tab-content--active .form-double,
.profile-card .profile-tab-content--active .form-triple,
.profile-card .profile-tab-content--active .form-quad {
  display: grid !important;
}

.profile-card .profile-tab-content--active .form-group {
  display: flex !important;
  flex-direction: column !important;
}

/* Forçar visibilidade absoluta de todos os elementos */
.profile-card .profile-tab-content--active,
.profile-card .profile-tab-content--active * {
  max-height: none !important;
  clip: auto !important;
  clip-path: none !important;
}

.profile-card .profile-tab-content--active .profile-avatar-preview,
.profile-card .profile-tab-content--active .profile-avatar-preview img {
  overflow: hidden !important;
}

/* Garantir que o profile-card não esteja escondendo o conteúdo */
.profile-card {
  overflow: visible !important;
  max-height: none !important;
}

.profile-card .profile-form {
  overflow: visible !important;
  max-height: none !important;
}

/* Forçar visibilidade absoluta - última tentativa */
.profile-card [data-tab-content].profile-tab-content--active,
.profile-card [data-tab-content].profile-tab-content--active * {
  display: revert !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  position: relative !important;
}

.profile-card [data-tab-content].profile-tab-content--active .profile-section-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

.profile-card [data-tab-content].profile-tab-content--active .profile-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
}

.profile-card [data-tab-content].profile-tab-content--active .profile-stack__section {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.profile-card [data-tab-content].profile-tab-content--active .form-double {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 18px !important;
}

.profile-card [data-tab-content].profile-tab-content--active .form-triple {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 18px !important;
}

.profile-card [data-tab-content].profile-tab-content--active .form-quad {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 18px !important;
}

.profile-card [data-tab-content].profile-tab-content--active .form-group {
  display: flex !important;
  flex-direction: column !important;
}

.profile-card [data-tab-content].profile-tab-content--active input,
.profile-card [data-tab-content].profile-tab-content--active select,
.profile-card [data-tab-content].profile-tab-content--active textarea,
.profile-card [data-tab-content].profile-tab-content--active label {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Garantir que o profile-card não esteja escondendo nada */
.profile-card {
  position: relative !important;
  z-index: 1 !important;
}

.profile-card .profile-form {
  position: relative !important;
  z-index: 1 !important;
}

.profile-card .profile-tab-content--active {
  position: relative !important;
  z-index: 2 !important;
}

.profile-card .profile-tab-content {
  width: 100%;
  min-height: auto;
}

.profile-card .profile-tab-content--active {
  display: block !important;
  width: 100%;
  min-height: auto;
  overflow: visible;
}

/* Forçar visibilidade de todos os elementos dentro do profile-tab-content--active */
.profile-card .profile-tab-content--active * {
  visibility: visible !important;
}

.profile-card .profile-tab-content--active .profile-section-block,
.profile-card .profile-tab-content--active .profile-stack,
.profile-card .profile-tab-content--active .profile-stack__section {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-card .profile-tab-content--active .form-group {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Exceção: form-groups dentro de vehicle-fields-single-row devem manter comportamento de grid item */
.profile-card .profile-tab-content--active .vehicle-fields-single-row .form-group {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.profile-card .profile-tab-content--active .form-double {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 18px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-card .profile-tab-content--active .form-triple {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 18px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-card .profile-tab-content--active input,
.profile-card .profile-tab-content--active select,
.profile-card .profile-tab-content--active textarea,
.profile-card .profile-tab-content--active label {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
  padding-bottom: 0;
}

.profile-tab {
  position: relative;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: #9aa4b2;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-base);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.profile-tab:hover {
  color: var(--color-text);
}

.profile-tab--active {
  color: #1d1d1d;
  font-weight: 700;
  border-bottom-color: var(--color-primary);
}

.profile-tab-content {
  display: none !important;
  position: relative;
}

.profile-tab-content--active {
  display: block !important;
  position: relative;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

.profile-card .profile-tab-content--active {
  display: block !important;
}

.profile-tab-content--active .profile-section-block {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-tab-content--active .profile-stack {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-tab-content--active .form-group {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Exceção: form-groups dentro de vehicle-fields-single-row devem manter comportamento de grid item */
.profile-tab-content--active .vehicle-fields-single-row .form-group {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.profile-tab-content--active .form-double {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-tab-content--active .form-triple {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-tab-content--active input,
.profile-tab-content--active select,
.profile-tab-content--active textarea,
.profile-tab-content--active label {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-divider {
  height: 1px;
  background: var(--color-border);
  margin: 12px 0 28px;
}

.profile-section-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.profile-stack__section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-section__header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 24px;
}

.profile-section__header--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 32px;
}

.profile-section__header--split .profile-section__title {
  margin: 0;
}

.profile-section__title--group {
  margin: 0;
}

.profile-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.profile-grid--split {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

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

.form-triple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.form-triple--compact {
  grid-template-columns: repeat(3, auto);
  gap: 12px 6px;
  max-width: 550px;
  width: auto;
}

.form-triple--compact .form-group {
  min-width: 0;
  max-width: 160px;
  width: 160px;
}

.form-triple--compact .form-group:nth-child(2) {
  margin-right: -4px;
}

.form-triple--compact .form-group:nth-child(3) {
  margin-left: -4px;
}

.form-quad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.form-five {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.form-group--inline {
  display: grid;
  grid-template-columns: minmax(160px, auto) 1fr;
  align-items: center;
  gap: 12px;
}

.form-group--inline .form-label {
  text-align: left !important;
  justify-self: start;
  display: block;
  width: auto;
  margin: 0;
}

.profile-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-section__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.profile-subsection__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-subsection__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-dark);
  letter-spacing: 0.01em;
}

.profile-avatar-preview,
.profile-avatar-preview[style*="cursor"],
.profile-avatar-preview[data-avatar-trigger],
.profile-avatar-preview[style*="flex-shrink"] {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  min-height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
  border-radius: 50% !important;
  background: rgba(22, 65, 255, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #1641ff !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-soft) !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-top: -16px !important;
  vertical-align: middle !important;
  aspect-ratio: 1 / 1 !important;
}

.profile-avatar-preview:not(:has(img)),
.profile-avatar-preview[style*="cursor"]:not(:has(img)),
.profile-avatar-preview[data-avatar-trigger]:not(:has(img)) {
  background: rgba(22, 65, 255, 0.12) !important;
}

.profile-avatar-preview img,
.profile-avatar-preview[style*="cursor"] img,
.profile-avatar-preview[data-avatar-trigger] img,
.profile-avatar-preview[style*="flex-shrink"] img,
.profile-avatar-preview > img,
div.profile-avatar-preview img,
div[data-avatar-trigger].profile-avatar-preview img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  vertical-align: top !important;
  overflow: hidden !important;
}

.profile-avatar-preview span,
.profile-avatar-preview > span {
  display: block !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #1641ff !important;
  line-height: 96px !important;
  text-align: center !important;
  width: 100% !important;
  height: 100% !important;
}

.d-flex {
  display: flex !important;
}

.justify-content-center {
  justify-content: center !important;
}

.align-items-center {
  align-items: center !important;
}

.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-muted);
}

.profile-form .form-group {
  margin-bottom: 12px;
}

.activity-feed {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}

.activity-feed::-webkit-scrollbar {
  width: 8px;
}

.activity-feed::-webkit-scrollbar-track {
  background: rgba(22, 65, 255, 0.08);
  border-radius: 4px;
}

.activity-feed::-webkit-scrollbar-thumb {
  background: rgba(22, 65, 255, 0.24);
  border-radius: 4px;
}

.activity-feed::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 65, 255, 0.36);
}


.activity-feed__row,
.activity-feed__row--legend {
  display: grid !important;
  grid-template-columns: minmax(100px, auto) minmax(70px, auto) 1fr minmax(150px, auto) !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.activity-feed__item .activity-feed__row {
  display: grid !important;
  grid-template-columns: minmax(100px, auto) minmax(70px, auto) 1fr minmax(150px, auto) !important;
}

.activity-feed__row--legend {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 6px;
}

.activity-feed__row--legend span:nth-child(3) {
  text-align: center;
}

.activity-feed__row--legend span:nth-child(4) {
  text-align: right;
}

.activity-feed__cell {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.activity-feed__cell--description {
  justify-content: center;
  text-align: center;
}

.activity-feed__cell--user {
  justify-content: flex-end;
}

.activity-feed__cell--user .activity-feed__identity {
  flex-direction: row;
}

.activity-feed__identity {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  width: auto !important;
}

.activity-feed__avatar {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(22, 65, 255, 0.12) !important;
  color: var(--color-primary) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
}

.activity-feed__avatar img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
}

.activity-feed__avatar span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  text-transform: uppercase !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #1641ff !important;
  line-height: 1 !important;
}

.activity-feed__info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  width: auto !important;
  flex-shrink: 1 !important;
}

.activity-feed__action {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-heading);
  text-align: center;
}

.activity-feed__item {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  width: 100% !important;
}

.activity-feed__item .activity-feed__row {
  display: grid !important;
  grid-template-columns: minmax(100px, auto) minmax(70px, auto) 1fr minmax(150px, auto) !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.activity-feed__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-feed__meta {
  font-size: 12px;
  color: var(--color-muted);
}

.placeholder {
  padding: 32px;
  border: 2px dashed rgba(22, 65, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  text-align: center;
  font-size: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 13px;
}

.lang-switch img {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-heading);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(12, 32, 68, 0.16);
  border-radius: .375rem;
  background: #fff;
  color: var(--color-heading);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-error {
  color: var(--color-danger);
  font-size: 12px;
}

.form-input:focus {
  border-color: rgba(22, 65, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(22, 65, 255, 0.16);
  background: #fff;
}

.form-input::placeholder {
  color: rgba(29, 41, 57, 0.4);
}

/* Campos de formulários create/edit com borda consistente */
.profile-form .form-input,
.profile-form select.form-input,
.profile-form textarea.form-input {
  border-width: 1px;
  border-radius: .375rem;
}

/* Mobile - max-width: 768px */
@media (max-width: 768px) {
  :root {
    --font-size-base: 14px;
    --font-size-h1: 24px;
    --font-size-h2: 19px;
    --font-size-h3: 16px;
    --font-size-sidebar-link: 13px;
    --font-size-sidebar-submenu: 12px;
    --font-size-topbar-brand: 15px;
    --font-size-topbar-user-name: 13px;
    --font-size-topbar-user-role: 11px;
    --font-size-topbar-notification-title: 14px;
    --topbar-height: 56px;
  }

  .app-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    top: var(--topbar-height);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: auto;
    min-height: auto;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .sidebar__menu {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 0;
    padding: 8px 0;
  }

  .sidebar__menu-item {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .sidebar__link {
    padding: 14px 16px;
    white-space: nowrap;
    min-width: fit-content;
    font-size: var(--font-size-sidebar-link);
  }

  .sidebar__link-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
  }

  .sidebar__link-icon svg {
    width: 18px;
    height: 18px;
  }

  .sidebar__link-label {
    display: block;
  }

  .sidebar__submenu {
    display: none !important;
  }

  .sidebar__toggle,
  .sidebar__brand,
  .sidebar__menu-caption,
  .sidebar__footer {
    display: none;
  }

  .topbar {
    position: sticky;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0 16px;
    height: var(--topbar-height);
  }

  .topbar__brand-title {
    font-size: var(--font-size-topbar-brand);
  }

  .topbar__user-name {
    display: none;
  }

  .topbar__user-role {
    display: none;
  }

  .topbar__notifications-menu {
    width: calc(100vw - 32px);
    max-width: 380px;
  }

  .topbar__notifications-title {
    font-size: var(--font-size-topbar-notification-title);
  }

  .content {
    padding: calc(var(--topbar-height) + 24px) 16px 24px;
    padding-left: 16px;
  }

  .sidebar--collapsed ~ .content {
    padding-left: 16px;
  }

  .content__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .content__header-actions {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .content__header-actions .btn {
    flex: 1;
    min-width: 120px;
  }

  .dashboard-section {
    padding: 16px;
    margin-top: 24px;
  }

  .dashboard-section__title {
    font-size: var(--font-size-h2);
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card__value {
    font-size: 24px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-metrics-grid {
    gap: 12px;
  }

  .dashboard-metric-card {
    padding: 16px;
  }

  .dashboard-metric-card__value {
    font-size: 24px;
  }

  .dashboard-metric-card__label {
    font-size: 13px;
  }

  .dashboard-section--equal-height {
    min-height: auto;
  }

  .drivers-map {
    height: 400px;
  }

  .login-layout {
    padding: 48px 16px;
  }

  .login-collage {
    inset: -70px;
  }

  .login-collage__grid {
    transform: rotate(-5deg) scale(1.05);
    gap: 18px;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    grid-template-rows: repeat(2, minmax(160px, 1fr));
  }

  .login-panel {
    padding: 32px 24px;
  }

  .top-driver-card {
    padding: 12px;
  }

  .top-driver-card__name {
    font-size: 15px;
  }

  .top-driver-card__stats {
    font-size: 13px;
  }
}

/* Mobile pequeno - max-width: 480px */
@media (max-width: 480px) {
  :root {
    --font-size-h1: 22px;
    --font-size-h2: 18px;
    --font-size-h3: 15px;
    --font-size-topbar-brand: 15px;
    --font-size-topbar-user-name: 13px;
    --font-size-topbar-user-role: 11px;
    --font-size-topbar-notification-title: 14px;
  }

  .content {
    padding: calc(var(--topbar-height) + 16px) 12px 16px;
  }

  .content__title {
    font-size: var(--font-size-h1);
  }

  .dashboard-section {
    padding: 12px;
    margin-top: 16px;
  }

  .dashboard-section__title {
    font-size: var(--font-size-h2);
  }

  .stat-card {
    padding: 12px;
  }

  .stat-card__value {
    font-size: 20px;
  }

  .stat-card__label {
    font-size: 11px;
  }

  .sidebar__link {
    padding: 10px 12px;
    font-size: 14px;
  }

  .topbar {
    padding: 0 12px;
  }

  .topbar__hamburger {
    width: 36px;
    height: 36px;
    margin-right: 4px;
  }

  .topbar__action-btn {
    width: 36px;
    height: 36px;
  }

  .topbar__notifications-trigger {
    width: 36px;
    height: 36px;
  }

  .topbar__brand-title {
    font-size: var(--font-size-topbar-brand);
  }

  .topbar__user-avatar {
    width: 32px;
    height: 32px;
  }

  .topbar__notifications-menu {
    width: calc(100vw - 24px);
    max-width: 360px;
  }

  .topbar__notifications-item {
    padding: 12px 16px;
  }

  .topbar__notifications-item-title {
    font-size: 13px;
  }

  .topbar__notifications-item-message {
    font-size: 12px;
  }

  .login-layout {
    padding: 32px 12px;
  }

  .login-panel {
    padding: 24px 16px;
  }

  .login-card {
    padding: 24px 16px;
  }

  .login-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn {
    width: 100%;
  }

  .page-actions {
    width: 100%;
  }

  .top-driver-card {
    padding: 10px;
    gap: 12px;
  }

  .top-driver-card__avatar {
    width: 40px;
    height: 40px;
  }

  .top-driver-card__name {
    font-size: 14px;
  }

  .top-driver-card__stats {
    font-size: 12px;
  }

  .top-driver-card__amount-value {
    font-size: 16px;
  }

  .dashboard-metrics-grid {
    gap: 10px;
  }

  .dashboard-metric-card {
    padding: 12px;
  }

  .dashboard-metric-card__value {
    font-size: 20px;
  }

  .dashboard-metric-card__label {
    font-size: 12px;
  }

  .dashboard-metric-card__icon {
    width: 36px;
    height: 36px;
  }

  .dashboard-metric-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .drivers-map {
    height: 300px;
  }

  .dashboard-section--equal-height {
    min-height: auto;
  }
}

/* Tablet - max-width: 1024px */
@media (max-width: 1024px) {
  :root {
    --font-size-base: 15px;
    --font-size-h1: 26px;
    --font-size-h2: 20px;
    --font-size-h3: 17px;
    --font-size-sidebar-link: 12px;
    --font-size-sidebar-submenu: 11px;
    --font-size-topbar-brand: 15px;
    --font-size-topbar-user-name: 13px;
    --font-size-topbar-user-role: 11px;
    --font-size-topbar-notification-title: 14px;
  }

  .sidebar {
    padding: 0 20px 28px;
  }

  .sidebar__link {
    padding: 11px 16px;
  }

  .sidebar__submenu-link {
    padding: 9px 16px;
    padding-left: 48px;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-collage {
    display: none;
  }

  .login-panel {
    width: 100%;
    padding: 32px 16px;
  }

  .login-card {
    padding: 32px 24px;
  }

  .content {
    padding: calc(var(--topbar-height) + 32px) 32px 32px;
    padding-left: calc(var(--sidebar-width) + 32px);
  }

  .sidebar--collapsed ~ .content {
    padding-left: calc(var(--sidebar-width-collapsed) + 32px);
  }

  .dashboard-section {
    padding: 20px;
  }

  .dashboard-section__header {
    margin-bottom: 20px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-card__value {
    font-size: 28px;
  }

  .dashboard-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dashboard-metrics-grid {
    gap: 10px;
  }
}

.login-card__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.login-card__logo-image {
  width: min(280px, 90%);
  height: auto;
  display: block;
}

.login-card__welcome h1 {
   font-size: 24px;
   font-weight: 700;
   margin: 0;
   color: var(--color-heading);
   text-align: center;
   letter-spacing: -0.01em;
}

.login-card__welcome p {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}




/* Dashboard Section */
.dashboard-section {
  margin-top: 32px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.dashboard-section--equal-height {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 450px;
}

.dashboard-section--equal-height .top-drivers-list,
.dashboard-section--equal-height .urgent-orders-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-section--equal-height .top-driver-card:last-child,
.dashboard-section--equal-height .urgent-order-card:last-child {
  margin-bottom: auto;
}

.dashboard-section__header {
  margin-bottom: 24px;
}

.dashboard-section__title {
  font-size: var(--font-size-h2);
  font-weight: 600;
  line-height: var(--line-height-heading);
  color: var(--color-text);
  margin: 0 0 8px;
}

.dashboard-section__subtitle {
  font-size: var(--font-size-sidebar-submenu);
  line-height: var(--line-height-base);
  color: var(--color-muted);
  margin: 0;
}

/* Top Drivers List */
.top-drivers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top-driver-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--color-background);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.top-driver-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.top-driver-card__rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.top-driver-card__rank-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-surface);
}

.top-driver-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-border);
}

.top-driver-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-driver-card__avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-border);
}

.top-driver-card__info {
  flex: 1;
  min-width: 0;
}

.top-driver-card__name {
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: var(--line-height-base);
  color: var(--color-text);
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-driver-card__stats {
  font-size: var(--font-size-sidebar-submenu);
  line-height: var(--line-height-base);
  color: var(--color-muted);
  margin: 0;
}

.top-driver-card__amount {
  text-align: right;
  flex-shrink: 0;
}

.top-driver-card__amount-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-success);
}

/* Dashboard Columns Layout */
.dashboard-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
  align-items: stretch;
}

.dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.dashboard-column .dashboard-section {
  margin-top: 0;
}

.dashboard-column--left {
  min-width: 0;
}

.dashboard-column--right {
  min-width: 0;
}

/* Dashboard Metrics Grid */
.dashboard-metrics-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--color-background);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.dashboard-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.dashboard-metric-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-metric-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dashboard-metric-card__label {
  font-size: 13px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-metric-card__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

/* Urgent Orders List */
.urgent-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.urgent-order-card {
  padding: 16px;
  background: var(--color-background);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-warning);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.urgent-order-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.urgent-order-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.urgent-order-card__load-id {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.urgent-order-card__route {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.urgent-order-card__location {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 120px;
}

.urgent-order-card__city {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.urgent-order-card__date {
  font-size: 12px;
  color: var(--color-muted);
}

.urgent-order-card__driver {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 500;
}

.urgent-order-card__arrow {
  font-size: 18px;
  color: var(--color-muted);
  font-weight: 600;
  flex-shrink: 0;
}

.urgent-order-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.urgent-order-card__amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-success);
}

.urgent-order-card__link {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-base);
}

.urgent-order-card__link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Responsive: Dashboard Columns - já incluído na media query acima */

/* Dashboard Map Section */
.dashboard-map-section {
  margin-top: 32px;
}

.drivers-map {
  width: 100%;
  height: 500px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--color-background);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.driver-marker,
.car-marker {
  background: transparent;
  border: none;
}

.car-marker {
  cursor: pointer;
}

.car-marker svg {
  transform-origin: center bottom;
  transition: transform 0.2s ease;
}

.car-marker:hover svg {
  transform: scale(1.2);
}

.drivers-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: var(--color-background);
  border-radius: var(--radius-sm);
}

.drivers-map-legend__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.drivers-map-legend__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.drivers-map-legend__avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.drivers-map-legend__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

/* Vehicle Section Styles */
.profile-section__header-with-action {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  width: 100%;
  flex-direction: row !important;
}

.profile-section__header-with-action .profile-section__title {
  margin-bottom: 0;
  flex: 1;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0%;
  max-width: none;
}

.profile-section__header-with-action .btn {
  margin-left: auto !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  margin-right: 0 !important;
  display: inline-flex !important;
}

.profile-section__header-with-action [data-add-vehicle] {
  margin-left: auto !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

.btn--icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
}

.btn--icon svg {
  flex-shrink: 0;
}

.vehicles-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.vehicle-item {
  position: relative;
  margin: 0 0 12px 0;
  background: transparent;
  border: none;
  box-sizing: border-box;
  padding: 0;
}

.vehicle-item:not(:first-child) {
  padding: 24px;
  background: var(--color-background);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.vehicle-item:first-child {
  border: none;
  background: transparent;
  padding: 0;
}

/* Garantir que o vehicle-fields-single-row use toda a largura disponível, mesmo com padding no vehicle-item */
.vehicle-item .vehicle-fields-single-row {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.form-group--with-remove {
  position: relative;
}

.form-group--with-remove .vehicle-item__remove {
  position: absolute;
  right: -48px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 12px;
}

.vehicle-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--color-danger);
  background: transparent;
  color: var(--color-danger);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.vehicle-item__remove:hover {
  background: var(--color-danger);
  color: #ffffff;
}

.vehicle-item__remove svg {
  width: 14px;
  height: 14px;
}

.vehicle-fields-single-row {
  display: grid !important;
  grid-template-columns: 1fr 0.8fr 1fr 1fr 1.5fr 0.9fr 0.9fr 0.9fr 1fr 1fr !important;
  gap: 12px !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: visible !important;
  box-sizing: border-box !important;
}

/* Garantir que funcione dentro das tabs */
.profile-tab-content--active .vehicle-fields-single-row,
.profile-card .profile-tab-content--active .vehicle-fields-single-row,
[data-tab-content].profile-tab-content--active .vehicle-fields-single-row {
  display: grid !important;
  grid-template-columns: 1fr 0.8fr 1fr 1fr 1.5fr 0.9fr 0.9fr 0.9fr 1fr 1fr !important;
  gap: 12px !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: visible !important;
  box-sizing: border-box !important;
}

/* Garantir que os form-groups dentro do vehicle-fields-single-row mantenham o comportamento de grid item */
.vehicle-fields-single-row .form-group,
.profile-tab-content--active .vehicle-fields-single-row .form-group,
.profile-card .profile-tab-content--active .vehicle-fields-single-row .form-group,
[data-tab-content].profile-tab-content--active .vehicle-fields-single-row .form-group {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.vehicle-fields-single-row .form-label {
  font-size: 12px;
  margin-bottom: 6px;
}

.vehicle-fields-single-row .form-input {
  font-size: 13px;
  padding: 8px 10px;
}

.vehicle-fields-single-row .form-group--with-remove {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
}

.vehicle-fields-single-row .form-group--with-remove .form-label {
  margin-bottom: 6px;
}

/* Wrapper para input e botão - input mantém tamanho, lixeira fica ao lado */
.vehicle-fields-single-row .form-group--with-remove .form-input-wrapper--with-button {
  position: relative;
  display: block !important;
  width: 100% !important;
}

.vehicle-fields-single-row .form-group--with-remove .form-input-wrapper--with-button .form-input {
  width: 100% !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

.vehicle-fields-single-row .form-group--with-remove .form-input-wrapper--with-button .vehicle-item__remove {
  position: absolute !important;
  right: -36px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin-top: 12px !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  width: 28px !important;
  height: 28px !important;
  z-index: 1 !important;
}

/* Map Button Styles */
.form-group--with-map {
  position: relative;
  width: 100%;
}

.form-group--with-map > .form-input-wrapper--map {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.form-input-wrapper--map {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.form-group .form-input-wrapper--map {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.profile-card .form-input-wrapper--map,
.profile-tab-content .form-input-wrapper--map,
.profile-card .form-group .form-input-wrapper--map,
.profile-tab-content .form-group .form-input-wrapper--map {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.form-input-wrapper--map .form-input {
  flex: 1 1 0%;
  min-width: 0;
  width: 0 !important;
  max-width: 100% !important;
}

.form-input-wrapper--map .btn-map {
  display: inline-flex !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

.form-input-wrapper--map .btn-map {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  min-width: 40px;
  max-width: 40px;
  padding: 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
  flex-grow: 0;
  margin: 0;
}

.btn-map {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  min-width: 40px;
  max-width: 40px;
  padding: 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
  flex-grow: 0;
  margin: 0;
}

.btn-map:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-map:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-map svg {
  width: 16px;
  height: 16px;
}

/* Map Modal Styles */
.map-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.map-modal--active {
  display: flex;
}

.map-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.map-modal__content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: 95vh;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 1;
  animation: mapModalFadeIn 0.3s ease-out;
  overflow: hidden;
}

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

.map-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.map-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
}

.map-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.map-modal__close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.map-modal__close svg {
  width: 20px;
  height: 20px;
}

.map-modal__body {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gps-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 24px;
  background: var(--color-background);
  border-radius: 0;
  flex-shrink: 0;
}

.gps-info__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
}

.gps-info__item strong {
  font-weight: 600;
  color: var(--color-primary-dark);
  min-width: 140px;
}


.map-modal__iframe,
.map-modal__map {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
  display: block;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Responsive */
@media (max-width: 768px) {
  .map-modal {
    padding: 0;
  }

  .map-modal__content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    height: 100%;
  }

  .map-modal__header {
    padding: 16px 20px;
  }

  .map-modal__title {
    font-size: 18px;
  }

  .map-modal__body {
    min-height: calc(100vh - 73px);
    height: calc(100vh - 73px);
  }

  .map-modal__iframe,
  .map-modal__map {
    min-height: calc(100vh - 73px);
    border-radius: 0;
  }
}

/* Leaflet Popup Styles */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
  margin: 0;
  width: auto !important;
  min-width: 200px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.driver-popup .leaflet-popup-content-wrapper {
  padding: 0;
  overflow: hidden;
}

.driver-popup .leaflet-popup-content {
  margin: 0;
  width: 200px !important;
  min-width: 200px;
  max-width: 220px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-overflow: ellipsis;
}

.driver-popup .leaflet-popup-content div {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Table Avatar Styles */
.table-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1641ff 0%, #001b7f 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
  overflow: hidden;
  flex-shrink: 0;
}

.table-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.table-avatar__initials {
  display: inline-block;
  line-height: 1;
}

.table td[data-column="avatar"] {
  width: 56px;
  padding: 8px 16px;
}

.table th[data-column="avatar"] {
  width: 56px;
  padding: 12px 16px;
  text-align: center;
}

/* Galeria de anexos/fotos */
.attachments-gallery {
  margin-top: 16px;
}

.attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.attachment-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.attachment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.attachment-item__preview {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: var(--color-muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.attachment-item__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-item__file-icon {
  width: 48px;
  height: 48px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.attachment-item__file-icon svg {
  width: 100%;
  height: 100%;
}

.attachment-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.attachment-item:hover .attachment-item__overlay {
  opacity: 1;
}

.attachment-item__view,
.attachment-item__delete {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.attachment-item__view:hover {
  background: #fff;
  transform: scale(1.1);
}

.attachment-item__delete:hover {
  background: #ff4444;
  color: #fff;
  transform: scale(1.1);
}

.attachment-item__view svg,
.attachment-item__delete svg {
  width: 16px;
  height: 16px;
}

.attachment-item__info {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.attachment-item__name {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-item__size {
  font-size: 10px;
  color: var(--color-muted);
}

/* Live Tracking Layout */
.tracking-filters {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.tracking-filters__form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.tracking-filters__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 150px;
}

.tracking-filters__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.tracking-filters__input {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.2s ease;
}

.tracking-filters__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.tracking-filters__actions {
  display: flex;
  gap: 12px;
}

.tracking-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  margin-top: 32px;
}

.tracking-list {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 300px);
  min-height: 600px;
  overflow: hidden;
  align-self: stretch;
}

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

.tracking-list__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.tracking-list__count {
  font-size: 14px;
  color: var(--color-muted);
}

.tracking-list__items {
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.tracking-driver {
  background: var(--color-background);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.tracking-driver:hover {
  border-color: var(--color-border);
}

.tracking-driver--expanded {
  border-color: var(--color-primary);
  background: rgba(22, 65, 255, 0.02);
}

.tracking-driver__header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tracking-driver__header:hover {
  background: rgba(255, 255, 255, 0.5);
}

.tracking-driver__info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.tracking-driver__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tracking-driver__avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

.tracking-driver__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.tracking-driver__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tracking-driver__count {
  font-size: 13px;
  color: var(--color-muted);
}

.tracking-driver__arrow {
  color: var(--color-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.tracking-driver--expanded .tracking-driver__arrow {
  transform: rotate(90deg);
}

.tracking-driver__orders {
  padding: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tracking-driver__empty {
  padding: 16px;
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
}

.tracking-item {
  background: var(--color-background);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.tracking-item:hover {
  background: #f0f4f8;
  border-color: var(--color-primary);
}

.tracking-item--selected {
  background: rgba(22, 65, 255, 0.05);
  border-color: var(--color-primary);
}

.tracking-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tracking-item__load-id {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
}

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

.tracking-item__location {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.tracking-item__city {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.tracking-item__date {
  font-size: 12px;
  color: var(--color-muted);
}

.tracking-item__arrow {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 18px;
}

.tracking-item__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.tracking-item__driver {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracking-item__driver-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.tracking-item__driver-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.tracking-item__driver-name {
  font-size: 13px;
  color: var(--color-text);
  font-weight: 500;
}

.tracking-item__amount {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.tracking-map {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(100vh - 300px);
  min-height: 600px;
  align-self: stretch;
}

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

.tracking-map__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.tracking-map__reset {
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tracking-map__reset:hover {
  background: var(--color-primary-dark);
}

.tracking-map__container {
  flex: 1;
  min-height: 0;
  width: 100%;
}

@media (max-width: 1200px) {
  .tracking-layout {
    grid-template-columns: 1fr;
  }

  .tracking-list {
    max-height: 400px;
  }

  .tracking-map__container {
    height: 500px;
    min-height: 500px;
  }
}

/* Página de Notificações */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-base);
}

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

.notification-item--unread {
  background: rgba(22, 65, 255, 0.04);
}

.notification-item--unread:hover {
  background: rgba(22, 65, 255, 0.08);
}

.notification-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-background);
}

.notification-icon--order {
  background: rgba(22, 65, 255, 0.1);
  color: var(--color-primary);
}

.notification-icon--invoice {
  background: rgba(39, 174, 96, 0.1);
  color: var(--color-success);
}

.notification-icon--alert {
  background: rgba(255, 205, 52, 0.1);
  color: var(--color-warning);
}

.notification-icon--system {
  background: rgba(167, 177, 194, 0.1);
  color: var(--color-muted);
}

.notification-item__content {
  flex: 1;
  min-width: 0;
}

.notification-item__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.notification-item__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #071628;
}

.notification-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.notification-item__message {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.notification-item__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.notification-item__time {
  font-size: 12px;
  color: var(--color-muted);
}

.notification-item__link {
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-base);
}

.notification-item__link:hover {
  color: #1641ff;
}

.notification-item__mark-read {
  font-size: 12px;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition-base), color var(--transition-base);
}

.notification-item__mark-read:hover {
  background: var(--color-background);
  color: var(--color-text);
}

/* Botão de alternância de visualização */
.view-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  position: relative;
}

.view-toggle-button:hover {
  background: rgba(7, 22, 40, 0.06);
  border-color: rgba(7, 22, 40, 0.18);
}

.view-toggle-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.view-toggle-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  transition: opacity 0.2s ease;
}

.view-toggle-icon--grid {
  display: none;
}

.view-toggle-icon--list {
  display: block;
}

/* Container de visualização */
.view-container {
  padding: 16px;
}

.view-container--cards {
  padding: 16px;
}

/* Grid de cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* Card de pedido */
.order-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.order-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(22, 65, 255, 0.15);
  transform: translateY(-2px);
}

.order-card:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.order-card__title {
  flex: 1;
  min-width: 0;
}

.order-card__link {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.order-card__link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.order-card__status {
  flex-shrink: 0;
  margin-left: 12px;
}

.order-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-card__field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}

.order-card__label {
  font-weight: 600;
  color: var(--color-muted);
  min-width: 80px;
  flex-shrink: 0;
}

.order-card__value {
  color: var(--color-text);
  flex: 1;
  word-break: break-word;
}

/* ============================================
   Login Card - UX Optimized Design
   ============================================ */

.login-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px;
}

.login-panel {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card-wrapper {
  width: 100%;
  max-width: 100%;
}

.login-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.login-card__logo-circle {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  overflow: hidden;
}

.login-card__logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.login-card__body {
  padding: 48px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-card__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: var(--color-text);
  text-align: center;
  letter-spacing: -0.2px;
}

.login-form-inner {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

.login-form-inner .form-group {
  margin-bottom: 16px;
}

.login-form-inner .form-group:last-of-type {
  margin-bottom: 0;
}

.login-form-inner .form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  outline: none;
  box-sizing: border-box;
}

.login-form-inner .form-control::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.login-form-inner .form-control:hover {
  border-color: #d0d0d0;
  background-color: rgba(255, 255, 255, 1);
}

.login-form-inner .form-control:focus {
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px rgba(22, 65, 255, 0.1);
}

.login-form__options {
  margin: 16px 0 0 0;
  display: flex;
  justify-content: center;
}

.login-form__submit {
  margin-top: 18px;
}

.login-form__submit .btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--color-primary);
  border: none;
  color: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22, 65, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-form__submit .btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 65, 255, 0.35);
}

.login-form__submit .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(22, 65, 255, 0.25);
}

.login-card__footer {
  margin-top: 16px;
  text-align: center;
}

.login-card__forgot {
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-card__forgot:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.login-card__register {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(224, 224, 224, 0.5);
  text-align: center;
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.4;
}

.login-card__register span {
  margin-right: 4px;
}

.login-card__register-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.login-card__register-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.login-language {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.login-language--inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-language__option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 0;
  border: 2px solid #e9ecef;
  background: #ffffff;
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.login-language__option img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
}

.login-language__option--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(22, 65, 255, 0.25);
}

.login-language__option:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 65, 255, 0.2);
}

/* Responsividade para Login */
@media (max-width: 768px) {
  .login-layout {
    padding: 40px 16px;
  }
  
  .login-panel {
    max-width: 100%;
  }
  
  .login-card {
    max-width: 100%;
    border-radius: 16px;
  }
  
  .login-card__body {
    padding: 64px 32px 32px;
  }
  
  .login-card__logo-circle {
    width: 80px;
    height: 80px;
    top: -40px;
    padding: 14px;
  }
  
  .login-card__title {
    font-size: 24px;
  }
  
  .login-card__subtitle {
    font-size: 14px;
  }
  
  .login-form-inner .form-control {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .login-form__submit .btn {
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .login-card__body {
    padding: 64px 24px 24px;
  }
  
  .login-card__title {
    font-size: 22px;
  }
  
  .login-form-inner .form-group {
    margin-bottom: 20px;
  }
}

/* ================================================================
   Page Header (Duralux Style)
   ================================================================ */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  padding: 0;
  flex-wrap: wrap;
}

.page-header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.page-header-title {
  margin: 0;
}

.page-header-title-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

/* Breadcrumb no page-header usa os mesmos estilos globais definidos acima */

.page-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

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

.page-header-right-close-toggle {
  display: none;
}

.page-header-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;
  transition: background var(--transition-base);
  font-size: 14px;
  font-weight: 500;
}

.page-header-back-btn:hover {
  background: var(--color-background);
}

.page-header-right-items-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reportrange-picker {
  position: relative;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.reportrange-picker:hover {
  border-color: var(--color-primary);
  background: rgba(22, 65, 255, 0.05);
}

.reportrange-picker-field {
  white-space: nowrap;
}

/* Date Range Dropdown */
.date-range-dropdown {
  display: none;
}

.date-range-dropdown.show,
.date-range-dropdown[style*="block"] {
  display: block !important;
}

.date-range-dropdown input[type="date"] {
  cursor: pointer;
}

.date-range-dropdown input[type="date"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22, 65, 255, 0.1);
}

.filter-dropdown {
  position: relative;
}

.btn-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-filter:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 65, 255, 0.3);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 8px;
  z-index: 1000;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.filter-dropdown-menu.show {
  display: block;
  animation: slideDown 0.2s ease;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 0;
  width: 100%;
  user-select: none;
}

.filter-checkbox-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.filter-checkbox-label {
  font-size: 14px;
  color: var(--color-text);
  flex: 1;
}

.dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 8px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  transition: background var(--transition-base);
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--color-background);
}

.page-header-right-open-toggle {
  display: none;
}

.page-header-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--color-text);
  transition: background var(--transition-base);
}

.page-header-menu-btn:hover {
  background: var(--color-background);
}

/* Responsividade */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    gap: 16px;
  }

  .page-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .page-header-right-items {
    flex: 1;
  }

  .page-header-right-close-toggle {
    display: block;
  }

  .page-header-right-open-toggle {
    display: flex;
  }

  .page-header-right-items-wrapper {
    position: fixed;
    top: var(--topbar-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--topbar-height));
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .page-header-right-items-wrapper.show {
    right: 0;
  }
}

/* ============================================
   Theme System (Light/Dark Mode)
   ============================================ */

/* Modo Claro (padrão) - Branco */
body[data-theme="light"],
body:not([data-theme]) {
  --color-primary: #001b7f;
  --color-primary-dark: #001b7f;
  --color-secondary: #ffcd34;
  --color-surface: #ffffff;
  --color-background: #f4f7fb;
  --color-muted: #9aa4b2;
  --color-text: #1d1d1d;
  --color-heading: #1d1d1d;
  --color-border: #e2e8f0;
  --color-success: #27ae60;
  --color-warning: #ffcd34;
  --color-danger: #e2133c;
  --shadow-soft: 0 20px 40px rgba(18, 33, 61, 0.08);
  --shadow-card: 0 10px 30px rgba(18, 33, 61, 0.1);
  
  background-color: var(--color-background);
  color: var(--color-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modo Escuro */
body[data-theme="dark"] {
  --color-primary: #4a7cff;
  --color-primary-dark: #6b8fff;
  --color-secondary: #ffcd34;
  --color-surface: #1e293b;
  --color-background: #0f172a;
  --color-muted: #64748b;
  --color-text: #f1f5f9;
  --color-heading: #ffffff;
  --color-border: #334155;
  --color-success: #22c55e;
  --color-warning: #fbbf24;
  --color-danger: #ef4444;
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
  
  background-color: var(--color-background);
  color: var(--color-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modo Azul - Fundo branco, topbar e menu azuis */
body[data-theme="blue"] {
  --color-primary: #001b7f;
  --color-primary-dark: #001b7f;
  --color-secondary: #ffcd34;
  --color-surface: #ffffff;
  --color-background: #ffffff;
  --color-muted: #64748b;
  --color-text: #1d1d1d;
  --color-heading: #1d1d1d;
  --color-border: #e2e8f0;
  --color-success: #27ae60;
  --color-warning: #ffcd34;
  --color-danger: #e2133c;
  --shadow-soft: 0 20px 40px rgba(18, 33, 61, 0.08);
  --shadow-card: 0 10px 30px rgba(18, 33, 61, 0.1);
  
  /* Sidebar e Topbar azuis */
  --sidebar-bg: #071628;
  --sidebar-text: #ffffff;
  --sidebar-text-muted: rgba(255, 255, 255, 0.8);
  --sidebar-border: rgba(255, 255, 255, 0.2);
  --sidebar-hover: rgba(255, 255, 255, 0.15);
  --sidebar-active: rgba(255, 255, 255, 0.25);
  --topbar-bg: #071628;
  --topbar-text: #ffffff;
  --topbar-border: rgba(255, 255, 255, 0.2);
  
  background-color: var(--color-background);
  color: var(--color-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Aplicar transições suaves para elementos principais */
body[data-theme="light"] *,
body[data-theme="dark"] *,
body[data-theme="blue"] * {
  transition: background-color 0.3s ease, 
              color 0.3s ease, 
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* Ajustes para modo claro - Sidebar e Topbar brancos */
body[data-theme="light"],
body:not([data-theme]) {
  --sidebar-bg: #ffffff;
  --sidebar-text: #1d1d1d;
  --sidebar-text-muted: #64748b;
  --sidebar-border: #e2e8f0;
  --sidebar-hover: #f4f7fb;
  --sidebar-active: rgba(22, 65, 255, 0.1);
  --topbar-bg: #ffffff;
  --topbar-text: #1d1d1d;
  --topbar-border: #e2e8f0;
}

body[data-theme="light"] .sidebar,
body:not([data-theme]) .sidebar {
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  border-right: 1px solid var(--sidebar-border);
}

body[data-theme="light"] .sidebar__brand-title,
body:not([data-theme]) .sidebar__brand-title {
  color: var(--sidebar-text);
}

body[data-theme="light"] .sidebar__link,
body:not([data-theme]) .sidebar__link {
  color: var(--sidebar-text-muted);
}

body[data-theme="light"] .sidebar__link:hover,
body:not([data-theme]) .sidebar__link:hover {
  background-color: var(--sidebar-hover);
  color: var(--sidebar-text);
}

body[data-theme="light"] .sidebar__link--active,
body:not([data-theme]) .sidebar__link--active {
  background-color: var(--sidebar-active);
  color: var(--color-primary);
  font-weight: 600;
}

body[data-theme="light"] .sidebar__link-icon svg,
body:not([data-theme]) .sidebar__link-icon svg {
  color: var(--sidebar-text-muted);
}

body[data-theme="light"] .sidebar__link--active .sidebar__link-icon svg,
body:not([data-theme]) .sidebar__link--active .sidebar__link-icon svg {
  color: var(--color-primary);
}

body[data-theme="light"] .sidebar__menu-caption label,
body:not([data-theme]) .sidebar__menu-caption label {
  color: var(--sidebar-text-muted);
}

body[data-theme="light"] .sidebar__toggle,
body:not([data-theme]) .sidebar__toggle {
  background: rgba(22, 65, 255, 0.1);
  color: var(--color-primary);
}

body[data-theme="light"] .sidebar__toggle:hover,
body:not([data-theme]) .sidebar__toggle:hover {
  background: rgba(22, 65, 255, 0.15);
}

body[data-theme="light"] .topbar,
body:not([data-theme]) .topbar {
  background-color: var(--topbar-bg);
  color: var(--topbar-text);
  border-bottom: 1px solid var(--topbar-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .topbar__action-btn,
body:not([data-theme]) .topbar__action-btn {
  color: var(--topbar-text);
}

body[data-theme="light"] .topbar__action-btn:hover,
body:not([data-theme]) .topbar__action-btn:hover {
  background-color: var(--sidebar-hover);
}

body[data-theme="light"] .topbar__brand-title,
body:not([data-theme]) .topbar__brand-title {
  color: var(--topbar-text);
}

body[data-theme="light"] .topbar__hamburger,
body:not([data-theme]) .topbar__hamburger {
  color: var(--topbar-text);
}

body[data-theme="light"] .topbar__hamburger:hover,
body:not([data-theme]) .topbar__hamburger:hover {
  background-color: var(--sidebar-hover);
}

body[data-theme="light"] .sidebar__submenu-link,
body:not([data-theme]) .sidebar__submenu-link {
  color: var(--sidebar-text-muted);
}

body[data-theme="light"] .sidebar__submenu-link:hover,
body:not([data-theme]) .sidebar__submenu-link:hover {
  background-color: var(--sidebar-hover);
  color: var(--sidebar-text);
}

body[data-theme="light"] .sidebar__submenu-link--active,
body:not([data-theme]) .sidebar__submenu-link--active {
  background-color: var(--sidebar-active);
  color: var(--color-primary);
}

body[data-theme="light"] .sidebar__brand-logo,
body:not([data-theme]) .sidebar__brand-logo {
  background: rgba(22, 65, 255, 0.1);
}

body[data-theme="light"] .topbar__notifications-trigger,
body:not([data-theme]) .topbar__notifications-trigger {
  color: var(--topbar-text);
}

body[data-theme="light"] .topbar__notifications-trigger:hover,
body:not([data-theme]) .topbar__notifications-trigger:hover {
  background-color: var(--sidebar-hover);
}

body[data-theme="light"] .topbar__user-trigger,
body:not([data-theme]) .topbar__user-trigger {
  color: var(--topbar-text);
}

body[data-theme="light"] .topbar__user-trigger:hover,
body:not([data-theme]) .topbar__user-trigger:hover {
  background-color: var(--sidebar-hover);
}

body[data-theme="light"] .topbar__user-info,
body:not([data-theme]) .topbar__user-info {
  color: var(--topbar-text);
}

body[data-theme="light"] .topbar__user-name,
body:not([data-theme]) .topbar__user-name {
  color: var(--topbar-text);
}

body[data-theme="light"] .topbar__user-role,
body:not([data-theme]) .topbar__user-role {
  color: var(--sidebar-text-muted);
}

body[data-theme="light"] .topbar__user-caret,
body:not([data-theme]) .topbar__user-caret {
  color: var(--sidebar-text-muted);
}

body[data-theme="light"] .topbar__brand-subtitle,
body:not([data-theme]) .topbar__brand-subtitle {
  color: var(--sidebar-text-muted);
}

body[data-theme="light"] .topbar__brand-logo-circle,
body:not([data-theme]) .topbar__brand-logo-circle {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body[data-theme="dark"] .topbar__brand-logo-circle {
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body[data-theme="light"] .topbar__notifications-icon,
body:not([data-theme]) .topbar__notifications-icon {
  color: var(--topbar-text);
}

body[data-theme="light"] .topbar__notifications-badge,
body:not([data-theme]) .topbar__notifications-badge {
  background-color: var(--color-danger);
  color: #ffffff;
}

body[data-theme="light"] .sidebar__footer,
body:not([data-theme]) .sidebar__footer {
  border-top-color: var(--sidebar-border);
  color: var(--sidebar-text-muted);
}

body[data-theme="light"] .sidebar__user-name,
body:not([data-theme]) .sidebar__user-name {
  color: var(--sidebar-text);
}

body[data-theme="light"] .sidebar__user-email,
body:not([data-theme]) .sidebar__user-email {
  color: var(--sidebar-text-muted);
}

body[data-theme="light"] .lang-switch,
body:not([data-theme]) .lang-switch {
  background: rgba(22, 65, 255, 0.1);
  color: var(--color-primary);
}

body[data-theme="light"] .lang-switch:hover,
body:not([data-theme]) .lang-switch:hover {
  background: rgba(22, 65, 255, 0.15);
}

body[data-theme="light"] .topbar__user-menu,
body:not([data-theme]) .topbar__user-menu {
  background-color: #ffffff;
  border: 1px solid var(--sidebar-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .topbar__user-menu-item,
body:not([data-theme]) .topbar__user-menu-item {
  color: var(--sidebar-text);
}

body[data-theme="light"] .topbar__user-menu-item:hover,
body:not([data-theme]) .topbar__user-menu-item:hover {
  background-color: var(--sidebar-hover);
  color: var(--sidebar-text);
}

body[data-theme="light"] .topbar__notifications-menu,
body:not([data-theme]) .topbar__notifications-menu {
  background-color: #ffffff;
  border: 1px solid var(--sidebar-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .topbar__notifications-header,
body:not([data-theme]) .topbar__notifications-header {
  border-bottom-color: var(--sidebar-border);
}

body[data-theme="light"] .topbar__notifications-title,
body:not([data-theme]) .topbar__notifications-title {
  color: var(--sidebar-text);
}

body[data-theme="light"] .topbar__notifications-item,
body:not([data-theme]) .topbar__notifications-item {
  color: var(--sidebar-text);
}

body[data-theme="light"] .topbar__notifications-item:hover,
body:not([data-theme]) .topbar__notifications-item:hover {
  background-color: var(--sidebar-hover);
}

body[data-theme="light"] .topbar__notifications-item-title,
body:not([data-theme]) .topbar__notifications-item-title {
  color: var(--sidebar-text);
}

body[data-theme="light"] .topbar__notifications-item-message,
body:not([data-theme]) .topbar__notifications-item-message {
  color: var(--color-muted);
}

body[data-theme="light"] .topbar__notifications-item-time,
body:not([data-theme]) .topbar__notifications-item-time {
  color: var(--color-muted);
}

body[data-theme="light"] .topbar__notifications-mark-all,
body:not([data-theme]) .topbar__notifications-mark-all {
  color: var(--color-primary);
}

body[data-theme="light"] .topbar__notifications-view-all,
body:not([data-theme]) .topbar__notifications-view-all {
  color: var(--color-primary);
}

body[data-theme="light"] .topbar__notifications-view-all:hover,
body:not([data-theme]) .topbar__notifications-view-all:hover {
  background-color: var(--sidebar-hover);
}

body[data-theme="light"] .sidebar--collapsed .sidebar__link[data-tooltip]::before,
body:not([data-theme]) .sidebar--collapsed .sidebar__link[data-tooltip]::before {
  background: #1a1d29;
  color: #ffffff;
}

body[data-theme="light"] .sidebar--collapsed .sidebar__link[data-tooltip]::after,
body:not([data-theme]) .sidebar--collapsed .sidebar__link[data-tooltip]::after {
  border-right-color: #1a1d29;
}

body[data-theme="light"] .sidebar__submenu,
body:not([data-theme]) .sidebar__submenu {
  background: var(--sidebar-bg);
  border: 1px solid var(--sidebar-border);
}

body[data-theme="light"] .sidebar--collapsed .sidebar__submenu,
body:not([data-theme]) .sidebar--collapsed .sidebar__submenu {
  background: #ffffff;
  border: 1px solid var(--sidebar-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Ajustes específicos para modo escuro */
body[data-theme="dark"] {
  --sidebar-bg: #1e293b;
  --sidebar-text: #f1f5f9;
  --sidebar-text-muted: #94a3b8;
  --sidebar-border: #334155;
  --sidebar-hover: #334155;
  --sidebar-active: rgba(74, 124, 255, 0.2);
  --topbar-bg: #1e293b;
  --topbar-text: #f1f5f9;
  --topbar-border: #334155;
}

body[data-theme="dark"] .sidebar {
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  border-right-color: var(--sidebar-border);
}

body[data-theme="dark"] .sidebar__link {
  color: var(--sidebar-text-muted);
}

body[data-theme="dark"] .sidebar__link:hover {
  background-color: var(--sidebar-hover);
  color: var(--sidebar-text);
}

body[data-theme="dark"] .sidebar__link--active {
  background-color: var(--sidebar-active);
  color: var(--color-primary);
}

body[data-theme="dark"] .topbar {
  background-color: var(--topbar-bg);
  color: var(--topbar-text);
  border-bottom-color: var(--topbar-border);
}

body[data-theme="dark"] .content {
  background-color: var(--color-background);
}

body[data-theme="dark"] .table-card,
body[data-theme="dark"] .profile-card,
body[data-theme="dark"] .login-card {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

body[data-theme="dark"] .form-input {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

body[data-theme="dark"] .form-input:focus {
  background-color: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-text);
}

body[data-theme="dark"] .btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
}

body[data-theme="dark"] .btn--ghost:hover {
  background-color: rgba(74, 124, 255, 0.1);
  border-color: var(--color-primary);
}

body[data-theme="dark"] .breadcrumb__link {
  color: var(--color-muted);
}

body[data-theme="dark"] .breadcrumb__link:hover {
  color: var(--color-primary);
}

body[data-theme="dark"] .table-link {
  color: var(--color-primary);
}

body[data-theme="dark"] .table-link:hover {
  color: var(--color-primary-dark);
}

body[data-theme="dark"] .badge {
  color: var(--color-text);
}

body[data-theme="dark"] .empty-state {
  color: var(--color-muted);
}

/* Estilos para modo azul - Sidebar e Topbar azuis */
body[data-theme="blue"] .sidebar {
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  border-right: 1px solid var(--sidebar-border);
}

body[data-theme="blue"] .sidebar__brand-title {
  color: var(--sidebar-text);
}

body[data-theme="blue"] .sidebar__link {
  color: var(--sidebar-text-muted);
}

body[data-theme="blue"] .sidebar__link:hover {
  background-color: var(--sidebar-hover);
  color: var(--sidebar-text);
}

body[data-theme="blue"] .sidebar__link--active {
  background-color: var(--sidebar-active);
  color: #ffffff;
  font-weight: 600;
}

body[data-theme="blue"] .sidebar__link-icon svg {
  color: var(--sidebar-text-muted);
}

body[data-theme="blue"] .sidebar__link--active .sidebar__link-icon svg {
  color: #ffffff;
}

body[data-theme="blue"] .sidebar__menu-caption label {
  color: var(--sidebar-text-muted);
}

body[data-theme="blue"] .sidebar__toggle {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body[data-theme="blue"] .sidebar__toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

body[data-theme="blue"] .topbar {
  background-color: var(--topbar-bg);
  color: var(--topbar-text);
  border-bottom: 1px solid var(--topbar-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body[data-theme="blue"] .topbar__action-btn {
  color: var(--topbar-text);
}

body[data-theme="blue"] .topbar__action-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

body[data-theme="blue"] .topbar__brand-title {
  color: var(--topbar-text);
}

body[data-theme="blue"] .topbar__hamburger {
  color: var(--topbar-text);
}

body[data-theme="blue"] .topbar__hamburger:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

body[data-theme="blue"] .sidebar__submenu-link {
  color: var(--sidebar-text-muted);
}

body[data-theme="blue"] .sidebar__submenu-link:hover {
  background-color: var(--sidebar-hover);
  color: var(--sidebar-text);
}

body[data-theme="blue"] .sidebar__submenu-link--active {
  background-color: var(--sidebar-active);
  color: #ffffff;
}

body[data-theme="blue"] .sidebar__brand-logo {
  background: rgba(255, 255, 255, 0.15);
}

body[data-theme="blue"] .topbar__notifications-trigger {
  color: var(--topbar-text);
}

body[data-theme="blue"] .topbar__notifications-trigger:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

body[data-theme="blue"] .topbar__user-trigger {
  color: var(--topbar-text);
}

body[data-theme="blue"] .topbar__user-trigger:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

body[data-theme="blue"] .topbar__user-info {
  color: var(--topbar-text);
}

body[data-theme="blue"] .topbar__user-name {
  color: var(--topbar-text);
}

body[data-theme="blue"] .topbar__user-role {
  color: var(--sidebar-text-muted);
}

body[data-theme="blue"] .topbar__user-caret {
  color: var(--sidebar-text-muted);
}

body[data-theme="blue"] .topbar__brand-subtitle {
  color: var(--sidebar-text-muted);
}

body[data-theme="blue"] .topbar__brand-logo-circle {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body[data-theme="blue"] .topbar__notifications-icon {
  color: var(--topbar-text);
}

body[data-theme="blue"] .topbar__notifications-badge {
  background-color: var(--color-danger);
  color: #ffffff;
}

body[data-theme="blue"] .sidebar__footer {
  border-top-color: var(--sidebar-border);
  color: var(--sidebar-text-muted);
}

body[data-theme="blue"] .sidebar__user-name {
  color: var(--sidebar-text);
}

body[data-theme="blue"] .sidebar__user-email {
  color: var(--sidebar-text-muted);
}

body[data-theme="blue"] .lang-switch {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body[data-theme="blue"] .lang-switch:hover {
  background: rgba(255, 255, 255, 0.25);
}

body[data-theme="blue"] .topbar__user-menu {
  background-color: #ffffff;
  border: 1px solid var(--sidebar-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body[data-theme="blue"] .topbar__user-menu-item {
  color: #1d1d1d;
}

body[data-theme="blue"] .topbar__user-menu-item:hover {
  background-color: rgba(22, 65, 255, 0.1);
  color: #1641ff;
}

body[data-theme="blue"] .topbar__notifications-menu {
  background-color: #ffffff;
  border: 1px solid var(--sidebar-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body[data-theme="blue"] .topbar__notifications-header {
  border-bottom-color: var(--sidebar-border);
}

body[data-theme="blue"] .topbar__notifications-title {
  color: var(--color-text);
}

body[data-theme="blue"] .topbar__notifications-item {
  color: var(--color-text);
}

body[data-theme="blue"] .topbar__notifications-item:hover {
  background-color: var(--sidebar-hover);
}

body[data-theme="blue"] .topbar__notifications-item-title {
  color: var(--color-text);
}

body[data-theme="blue"] .topbar__notifications-item-message {
  color: var(--color-muted);
}

body[data-theme="blue"] .topbar__notifications-item-time {
  color: var(--color-muted);
}

/* ============================================
   System Action Buttons (exclude Driver App)
   ============================================ */
body:not(.driver-app) .btn--primary,
body:not(.driver-app) .btn--secondary,
body:not(.driver-app) .btn-filter {
  background: #ffcd34 !important;
  border-color: #ffcd34 !important;
  color: #1d1d1d !important;
  box-shadow: 0 10px 20px rgba(255, 205, 52, 0.34) !important;
}

body:not(.driver-app) .btn--primary:hover,
body:not(.driver-app) .btn--secondary:hover,
body:not(.driver-app) .btn-filter:hover {
  background: #f2c01f !important;
  border-color: #f2c01f !important;
  box-shadow: 0 18px 30px rgba(242, 192, 31, 0.42) !important;
}
