/* ===========================
   ESTOQUE ESMALTERIA
   Sistema de Gestão de Estoque
   =========================== */

/* ---- CSS Variables ---- */
:root {
  /* ── PALETA 03 (Vibrante & Premium) ── */
  --pink-dark:    #FF5294;   /* Rosa vibrante da marca */
  --pink-mid:     #FF85AD;   /* Rosa médio pastel */
  --pink-light:   #FFF3F6;   /* Rosa muito claro — fundos */
  --gray-dark:    #0D0D0D;   /* Quase preto — texto principal */
  --gray-mid:     #737373;   /* Cinza médio — texto secundário */
  --offwhite:     #F2F2F2;   /* Off-white — superfícies */
  --white:        #FFFFFF;

  /* Semantic */
  --bg:           #F8FAFC;   /* Slate 50 (Premium clean background) */
  --sidebar-bg:   #1E293B;   /* Slate 800 (Dark premium sidebar) */
  --sidebar-text: #94A3B8;   /* Slate 400 (Muted sidebar text) */
  --sidebar-hover-bg: rgba(255, 255, 255, 0.06);
  --sidebar-hover-text: #FFFFFF;
  --sidebar-active: #FFFFFF;
  --sidebar-active-bg: #FF5294;
  --topbar-bg:    #FFFFFF;
  --card-bg:      #FFFFFF;
  --border:       rgba(217,154,171,0.18);
  --shadow:       0 4px 20px rgba(15,23,42,0.05);
  --shadow-hover: 0 10px 30px rgba(15,23,42,0.1);

  /* Status */
  --green:        #BEDA90;
  --orange:       #F87171;   /* Light red for saída */
  --red:          #ef4444;
  --purple:       #295BC8;   /* Slate blue for profissionais */

  --sidebar-w:    200px;
  --sidebar-collapsed: 60px;
  --topbar-h:     60px;
  --radius:       14px;
  --radius-sm:    8px;
  --transition:   0.22s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 13px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-dark);
  background: var(--bg);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===========================
   SIDEBAR
   =========================== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: width var(--transition);
  box-shadow: 4px 0 24px rgba(15,23,42,0.15);
}

.sidebar.collapsed { width: var(--sidebar-collapsed); }

/* Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 80px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg {
  width: 18px !important;
  height: 18px !important;
}
.logo-icon svg circle:first-child {
  fill: rgba(255, 255, 255, 0.08) !important;
}
.logo-icon svg path {
  stroke: var(--pink-dark) !important;
}
.logo-icon svg circle:last-child {
  fill: rgba(255, 255, 255, 0.15) !important;
}

.logo-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--transition), width var(--transition);
}

.sidebar.collapsed .logo-text {
  opacity: 0;
  pointer-events: none;
}

.logo-name {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: #FFFFFF !important;
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.52rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: var(--pink-dark) !important;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sidebar-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 8px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  color: #FFFFFF;
  flex-shrink: 0;
}

.sidebar-toggle:hover { background: rgba(255, 255, 255, 0.15); }
.sidebar.collapsed .sidebar-toggle { transform: rotate(180deg); }

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--sidebar-text);
  font-weight: 500;
  font-size: 12.5px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  overflow: hidden;
}

.nav-link:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-hover-text);
}

.nav-link.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 82, 148, 0.3);
}

.nav-link.active .nav-icon {
  color: #FFFFFF;
}

.nav-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-dark);
  transition: color var(--transition);
}
.nav-icon svg {
  width: 16px !important;
  height: 16px !important;
}

.nav-label {
  transition: opacity var(--transition);
}

.sidebar.collapsed .nav-label {
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.user-avatar {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity var(--transition);
}

.sidebar.collapsed .user-details {
  opacity: 0;
  pointer-events: none;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}

.user-role {
  font-size: 0.72rem;
  color: var(--sidebar-text);
}

/* ===========================
   MAIN WRAPPER
   =========================== */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
  min-width: 0;
}

.main-wrapper.expanded { margin-left: var(--sidebar-collapsed); }

/* ===========================
   TOPBAR
   =========================== */
.topbar {
  position: sticky;
  top: 0; z-index: 100;
  height: var(--topbar-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 1px 8px rgba(217,154,171,0.06);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-dark);
  padding: 6px;
  border-radius: 8px;
  display: none;
  transition: background var(--transition);
}
.menu-btn:hover { background: var(--pink-light); color: var(--pink-dark); }


.page-title {
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.01em;
}

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

.search-wrap {
  display: flex;
  align-items: center;
  background: var(--offwhite);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 7px 14px;
  gap: 8px;
  transition: border-color var(--transition);
}

.search-wrap:focus-within {
  border-color: var(--pink-dark);
  box-shadow: 0 0 0 3px rgba(217,154,171,0.18);
}

.search-icon { color: #aaa; flex-shrink: 0; }

.search-input {
  border: none;
  background: transparent;
  font-size: 0.88rem;
  color: var(--gray-dark);
  outline: none;
  width: 180px;
}

.notif-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-dark);
  padding: 8px;
  border-radius: 10px;
  transition: background var(--transition);
}
.notif-btn:hover { background: var(--pink-light); color: var(--pink-dark); }

.notif-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--pink-dark);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 600;
  border-radius: 99px;
  min-width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.topbar-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C4879A, #D9B0B7);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(217,154,171,0.35);
}

/* ===========================
   CONTENT / PAGES
   =========================== */
.content { padding: 28px; flex: 1; }

.page { display: none; animation: fadeIn 0.35s ease; }
.page.active { display: block; }

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

/* ===========================
   SECTION HEADERS
   =========================== */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 0.8rem;
  color: #8b8190;
  margin-top: 2px;
}

.date-badge {
  background: var(--pink-light);
  color: var(--pink-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  white-space: nowrap;
  align-self: center;
}

.sub-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-dark);
}

/* ===========================
   KPI CARDS
   =========================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px 0 0 2px;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.kpi-alert::before { background: var(--orange); }
.kpi-primary::before { background: var(--pink-dark); }
.kpi-success::before { background: var(--green); }
.kpi-info::before { background: var(--purple); }

.kpi-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi-icon svg {
  width: 22px !important;
  height: 22px !important;
}

.kpi-alert .kpi-icon { background: rgba(205,191,170,0.18); color: var(--gray-dark); }
.kpi-primary .kpi-icon { background: rgba(217,154,171,0.18); color: var(--gray-dark); }
.kpi-success .kpi-icon { background: rgba(190,218,144,0.18); color: var(--gray-dark); }
.kpi-info .kpi-icon { background: rgba(204,51,231,0.12); color: var(--gray-dark); }

.kpi-body { display: flex; flex-direction: column; }
.kpi-label { font-size: 0.7rem; font-weight: 700; color: var(--gray-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi-value { font-size: 1.45rem; font-weight: 700; font-family: 'Josefin Sans', sans-serif; color: var(--gray-dark); line-height: 1.1; margin: 2px 0; }
.kpi-desc { font-size: 0.7rem; color: var(--gray-mid); }

/* ===========================
   SHORTCUTS
   =========================== */
.shortcuts-section { margin-bottom: 28px; }
.shortcuts-section .sub-title { margin-bottom: 14px; }

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

.shortcut-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow);
}

.shortcut-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--pink-mid);
}

.shortcut-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shortcut-icon svg {
  width: 22px !important;
  height: 22px !important;
}

.sc-pink   { background: linear-gradient(135deg, #C4879A, #D9B0B7); color: #fff; }
.sc-green  { background: linear-gradient(135deg, #BEDA90, #AEC880); color: var(--gray-dark); }
.sc-orange { background: linear-gradient(135deg, #FFA1A1, #F87171); color: #fff; }
.sc-purple { background: linear-gradient(135deg, #5A8FDD, #295BC8); color: #fff; }

.shortcut-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-dark);
}

.shortcut-desc {
  font-size: 0.7rem;
  color: #8b8190;
  text-align: center;
}

/* ===========================
   TWO COLUMN DASHBOARD
   =========================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.dash-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.badge-tag {
  background: var(--pink-light);
  color: var(--pink-dark);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}

.alert-tag {
  background: rgba(249,115,22,0.12);
  color: var(--orange);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
}

.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-dot.entrada { background: var(--green); }
.activity-dot.saida   { background: var(--orange); }

.activity-info { flex: 1; }
.activity-product { font-weight: 500; color: var(--gray-dark); }
.activity-meta   { font-size: 0.7rem; color: #888; }
.activity-qty    { font-weight: 500; font-size: 16px; color: #000000 !important; font-family: 'Josefin Sans', sans-serif; }

.critical-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(249,115,22,0.07);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--orange);
  font-size: 0.84rem;
}

.critical-name { font-weight: 600; }
.critical-qty  { font-size: 0.8rem; color: #888; }
.critical-item .status-badge {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #000000 !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0;
}

/* ===========================
   FILTER BAR
   =========================== */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-input, .filter-select {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--gray-dark);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-input:focus, .filter-select:focus {
  border-color: var(--pink-mid);
  box-shadow: 0 0 0 3px rgba(244,114,161,0.12);
}

.filter-input { flex: 1; min-width: 180px; }
.filter-select { min-width: 160px; }

/* ===========================
   TABLE
   =========================== */
.table-wrap {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.data-table thead tr {
  background: linear-gradient(90deg, #EFE8EA 0%, #F5F2F3 100%);
  border-bottom: 1.5px solid var(--border);
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--pink-dark);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--gray-dark);
  vertical-align: middle;
}

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

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: #EFE8EA;
}

.empty-row {
  text-align: center;
  color: #b0a0a8;
  padding: 40px 16px !important;
  font-size: 0.9rem;
}

/* ===========================
   STATUS BADGES
   =========================== */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
}

.status-normal  { background: rgba(34,197,94,0.13); color: #16a34a; }
.status-baixo   { background: rgba(249,115,22,0.13); color: #ea580c; }
.status-zerado  { background: rgba(239,68,68,0.13); color: #dc2626; }
.status-ativo   { background: rgba(34,197,94,0.13); color: #16a34a; }
.status-inativo { background: rgba(156,163,175,0.18); color: #6b7280; }

/* ===========================
   ACTION BUTTONS IN TABLE
   =========================== */
.action-btns { display: flex; gap: 6px; }

.btn-icon {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 5px 8px;
  cursor: pointer;
  color: var(--gray-dark);
  font-size: 0.76rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
}

.btn-icon:hover { background: var(--pink-light); border-color: var(--pink-mid); color: var(--pink-dark); }
.btn-icon.delete:hover { background: rgba(239,68,68,0.1); border-color: #f87171; color: var(--red); }

/* ===========================
   PROFISSIONAL CARDS
   =========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.prof-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prof-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.prof-header { display: flex; align-items: center; gap: 14px; }

.prof-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C4879A, #D9B0B7);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prof-info .prof-name { font-size: 1rem; font-weight: 700; color: var(--gray-dark); }
.prof-info .prof-esp  { font-size: 0.82rem; color: #8b8190; margin-top: 2px; }

.prof-details { display: flex; flex-direction: column; gap: 5px; }

.prof-detail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #666;
}

.prof-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* ===========================
   REPORT CARDS
   =========================== */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.report-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.report-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-icon svg {
  width: 22px !important;
  height: 22px !important;
}

.report-card h3 { font-size: 0.88rem; font-weight: 600; color: var(--gray-dark); }
.report-card p  { font-size: 0.74rem; color: #8b8190; line-height: 1.5; }

.btn-report {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pink-dark);
  margin-top: 4px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  background: linear-gradient(135deg, var(--pink-dark), #C4879A);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(217,154,171,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,154,171,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--pink-dark);
  border: 1.5px solid var(--pink-dark);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-outline:hover { background: var(--pink-light); }

.btn-danger {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* ===========================
   MODALS
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(13,13,13,0.2);
  animation: slideUp 0.25s ease;
}

.modal-sm { max-width: 380px; padding: 28px; }
.modal-sm .modal-header { margin-bottom: 16px; }

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

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-dark);
}

.modal-close {
  background: var(--offwhite);
  border: none;
  border-radius: 8px;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--pink-light); color: var(--pink-dark); }

/* ===========================
   FORM
   =========================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px 24px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b5f68;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--gray-dark);
  background: var(--offwhite);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pink-mid);
  box-shadow: 0 0 0 3px rgba(244,114,161,0.15);
  background: var(--white);
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px 22px;
  border-top: 1.5px solid var(--border);
}

/* ===========================
   TOAST
   =========================== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gray-dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }

/* ===========================
   EMPTY STATE
   =========================== */
.empty-state {
  text-align: center;
  color: #b0a0a8;
  font-size: 0.9rem;
  padding: 32px 0;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w) !important;
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-wrapper { margin-left: 0 !important; }
  .menu-btn { display: flex; }
  .content { padding: 18px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .search-input { width: 120px; }
  .topbar { padding: 0 16px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  
  /* Mobile Logo Header */
  .page-title { display: none !important; }
  .mobile-logo-header { display: flex !important; }
  
  /* Responsive Topbar-Right to fit on small mobile screens */
  .search-wrap { display: none !important; } /* Hide search shortcut */
  .sheets-btn span { display: none !important; } /* Hide Sheets button text */
  .sync-text { display: none !important; } /* Hide sync text, keeping only the dot */
}

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

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(217,154,171,0.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(217,154,171,0.45); }

/* ===========================
   SHEETS BUTTON & SYNC STATUS
   =========================== */
.sheets-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--gray-dark);
  cursor: pointer;
  transition: all var(--transition);
}

.sheets-btn:hover {
  border-color: var(--pink-mid);
  background: var(--pink-light);
  color: var(--pink-dark);
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--offwhite);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  cursor: default;
}

.sync-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #aaa;
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.sync-text {
  font-size: 0.76rem;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
}

/* ===========================
   CONFIG BANNER
   =========================== */
.config-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, var(--pink-light), var(--white));
  border-bottom: 1.5px solid var(--pink-mid);
  padding: 12px 28px;
  color: var(--gray-dark);
  font-size: 0.88rem;
  animation: fadeIn 0.5s ease;
}

.config-banner svg { color: var(--pink-dark); flex-shrink: 0; }

.config-banner span { flex: 1; }

.config-banner-btn {
  background: var(--pink-dark);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.config-banner-btn:hover { opacity: 0.9; }

.config-banner-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 1rem;
  padding: 4px;
  flex-shrink: 0;
  transition: color var(--transition);
}

.config-banner-close:hover { color: var(--pink-dark); }

/* ===========================
   CONFIG STEPS (modal)
   =========================== */
.config-steps {
  margin-top: 16px;
  background: var(--offwhite);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}

.config-steps-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 10px;
}

.config-steps ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.config-steps li {
  font-size: 0.84rem;
  color: #555;
  line-height: 1.5;
}

.config-steps a {
  color: var(--pink-dark);
  font-weight: 600;
  text-decoration: none;
}

.config-steps a:hover { text-decoration: underline; }

/* ===========================
   LOADING OVERLAY
   =========================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.35);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-card {
  background: #fff;
  border-radius: 18px;
  padding: 36px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 20px 60px rgba(13,13,13,0.2);
}

.loading-spinner {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 4px solid var(--pink-light);
  border-top-color: var(--pink-dark);
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-dark);
  text-align: center;
}


.product-table-name {
  font-weight: 300;
  font-size: 16px;
  color: var(--gray-dark);
}

/* ===========================
   3-COLUMN PRODUCT WORKSPACE
   =========================== */
.product-workspace {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.product-list-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-details-pane {
  position: sticky;
  top: calc(var(--topbar-h) + 28px);
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 480px;
  animation: fadeIn 0.25s ease;
}

/* Product list row (Kyte-like) */
.product-list-container {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}

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

.product-item-row:hover {
  background: #F8FAFC;
  transform: translateX(4px);
}

.product-item-row.selected {
  background: var(--pink-light);
  border-left: 4px solid var(--pink-dark);
  padding-left: 16px; /* Offset the 4px border */
}

.product-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.product-avatar-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink-light), var(--pink-mid));
  color: var(--pink-dark);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.product-meta-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-meta-sub {
  font-size: 0.76rem;
  color: var(--gray-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-item-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-qty-display {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-dark);
  text-align: right;
  white-space: nowrap;
}

.product-qty-unit {
  font-size: 0.72rem;
  color: var(--gray-mid);
  font-weight: 400;
  margin-left: 2px;
}

/* Product details pane elements */
.detail-header-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 16px;
}

.detail-title-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-dark);
}

.detail-title-block p {
  font-size: 0.8rem;
  color: var(--gray-mid);
  margin-top: 4px;
}

.stock-highlight-card {
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
}

.stock-highlight-value-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stock-highlight-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stock-highlight-value {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--pink-dark);
  line-height: 1;
}

.detail-grid-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.detail-info-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gray-mid);
  text-transform: uppercase;
}

.detail-info-val {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-top: 2px;
}

.detail-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-dark);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-timeline-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.timeline-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.timeline-icon.entrada {
  background: rgba(190, 218, 144, 0.2);
  color: #16a34a;
}

.timeline-icon.saida {
  background: rgba(248, 113, 113, 0.15);
  color: var(--orange);
}

.timeline-info {
  display: flex;
  flex-direction: column;
}

.timeline-title {
  font-weight: 600;
  color: var(--gray-dark);
}

.timeline-meta {
  font-size: 0.7rem;
  color: var(--gray-mid);
}

.timeline-qty {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.timeline-qty.entrada {
  color: #16a34a;
}

.timeline-qty.saida {
  color: var(--orange);
}

.detail-actions-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1.5px solid var(--border);
  padding-top: 16px;
}

.detail-actions-footer {
  display: flex;
  gap: 8px;
}

.detail-actions-footer button {
  flex: 1;
}

/* Empty pane illustration */
.details-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  color: var(--gray-mid);
  gap: 16px;
  padding: 40px 10px;
}

.details-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pink-light);
  color: var(--pink-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1.5px dashed var(--pink-dark);
}

.details-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-dark);
}

.details-empty-desc {
  font-size: 0.82rem;
  max-width: 240px;
  line-height: 1.5;
}

/* ===========================
   VENDAS & PEDIDOS WORKSPACE
   =========================== */
.vendas-workspace {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: start;
}

.vendas-form-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
}

.vendas-list-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* ===========================
   ESTATÍSTICAS & METRICS
   =========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stats-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.stats-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--pink-dark);
}

.stats-card.stats-green::after {
  background: #BEDA90;
}

.stats-card.stats-orange::after {
  background: var(--orange);
}

.stats-card.stats-purple::after {
  background: var(--purple);
}

.stats-card-val {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gray-dark);
}

.stats-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.stats-chart-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-chart-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

.chart-svg-container {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 0.76rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Responsive adjust for 3-columns and metrics */
@media (max-width: 1024px) {
  .product-workspace {
    grid-template-columns: 1fr;
  }
  .product-details-pane {
    position: static;
    min-height: auto;
  }
  .vendas-workspace {
    grid-template-columns: 1fr;
  }
  .stats-charts-row {
    grid-template-columns: 1fr;
  }
}

@media print {
  .sidebar, .topbar, .filter-bar, .btn-primary, .btn-outline, .report-grid { display: none !important; }
  .main-wrapper { margin-left: 0; }
  #relatorioArea { display: block !important; }
}

/* =========================================================
   AUTENTICAÇÃO & LOGIN SPLIT-SCREEN (SUPABASE)
   ========================================================= */
.login-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background-color: #FAFAFA;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-y: auto;
}

.login-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 100vh;
  width: 100%;
}

/* LADO ESQUERDO: Form */
.login-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  background: #FFFFFF;
}

.login-brand-header {
  margin-bottom: 24px;
}

.logo-wrap-login {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text-login {
  display: flex;
  flex-direction: column;
}

.logo-name-login {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #0D0D0D;
  letter-spacing: -0.02em;
}

.pink-accent {
  color: var(--pink-dark);
}

.logo-sub-login {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--pink-dark);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.login-box {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.login-title-group h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0D0D0D;
  margin-bottom: 8px;
}

.login-title-group p {
  font-size: 0.95rem;
  color: #737373;
  margin-bottom: 32px;
}

.login-alert {
  padding: 12px 16px;
  border-radius: 10px;
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.input-group-modern {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.input-group-modern label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
  color: #9CA3AF;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 0.95rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  background: #F9FAFB;
  color: #111827;
  outline: none;
  transition: all 0.2s ease;
}

.input-with-icon input:focus {
  border-color: var(--pink-dark);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255, 82, 148, 0.12);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #4B5563;
  cursor: pointer;
}

.btn-login-primary {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink-dark), #E03E7B);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(255, 82, 148, 0.3);
  transition: all 0.2s ease;
}

.btn-login-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(255, 82, 148, 0.4);
}

.login-footer-text {
  text-align: center;
  font-size: 0.8rem;
  color: #9CA3AF;
  margin-top: 32px;
}

/* LADO DIREITO: Branding */
.login-right {
  position: relative;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 50%, #1E1B2E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  color: #FFFFFF;
  overflow: hidden;
}

.login-right-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 82, 148, 0.25), transparent 60%);
  pointer-events: none;
}

.login-right-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.sparkle-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 82, 148, 0.15);
  border: 1px solid rgba(255, 82, 148, 0.3);
  color: #FF85AD;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.login-right-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-right-content p {
  font-size: 1.05rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 36px;
}

.login-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #E2E8F0;
}

.feature-tag svg {
  color: var(--pink-dark);
}

/* RESPONSIVIDADE LOGIN */
@media (max-width: 900px) {
  .login-split {
    grid-template-columns: 1fr;
  }
  .login-right {
    display: none;
  }
  .login-left {
    padding: 32px 24px;
  }
}

/* =========================================================
   USER HEADER PILL & RBAC BADGES
   ========================================================= */
.header-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 14px;
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.pill-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-dark);
}

.badge-role {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-role-admin {
  background: rgba(255, 82, 148, 0.15);
  color: var(--pink-dark);
}

.badge-role-operacional {
  background: rgba(41, 91, 200, 0.15);
  color: var(--purple);
}

.btn-logout-icon {
  background: none;
  border: none;
  color: var(--gray-mid);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.btn-logout-icon:hover {
  color: var(--red);
}

.btn-logout-sidebar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #94A3B8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout-sidebar:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.3);
}

/* RBAC HIDE OPERACIONAL RULES */
body[data-role="operacional"] .rbac-money-hidden,
body[data-role="operacional"] .rbac-admin-only {
  display: none !important;
}
