/* Premium Glassmorphism Design System - SureBet Manager */

:root {
  /* Dark Space Theme Tokens */
  --bg-app: #06080d;
  --bg-sidebar: rgba(10, 14, 23, 0.65);
  --bg-card: rgba(21, 29, 47, 0.45);
  --bg-card-hover: rgba(28, 39, 63, 0.55);
  --bg-modal: #0d1220;
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  
  --text-primary: #ffffff;
  --text-secondary: #8c9ba5;
  --text-muted: #576573;
  
  /* Accent Color Palette */
  --orange-primary: #ff6600;
  --orange-hover: #ff7d26;
  --orange-light: rgba(255, 102, 0, 0.08);
  --orange-border: rgba(255, 102, 0, 0.25);
  
  --yellow-primary: #eab308;
  --yellow-light: rgba(234, 179, 8, 0.08);
  --yellow-border: rgba(234, 179, 8, 0.25);
  
  --green-primary: #00e676;
  --green-light: rgba(0, 230, 118, 0.08);
  --green-border: rgba(0, 230, 118, 0.2);
  
  --red-primary: #ff3d00;
  --red-light: rgba(255, 61, 0, 0.08);
  --red-border: rgba(255, 61, 0, 0.2);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
  
  --glow-orange: 0 0 20px rgba(255, 102, 0, 0.25);
  --glow-green: 0 0 20px rgba(0, 230, 118, 0.2);
  --glow-red: 0 0 20px rgba(255, 61, 0, 0.2);
  
  --blue-primary: #00b0ff;
  --blue-light: rgba(0, 176, 255, 0.08);
  --blue-border: rgba(0, 176, 255, 0.2);
}

/* Core Settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body {
  background-color: var(--bg-app);
  background: radial-gradient(circle at 30% 30%, #0f1c3f 0%, #06080d 70%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange-primary);
}

/* Radial Glow Backdrops */
.radial-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.15;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: #00d2ff;
  top: 15%;
  left: 5%;
}

.glow-2 {
  width: 550px;
  height: 550px;
  background: var(--orange-primary);
  bottom: 10%;
  right: 5%;
}

/* APP GRID CONTAINER */
.app-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* SIDEBAR STYLING */
.sidebar {
  background: rgba(10, 15, 26, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Sidebar right border golden/orange glow line */
.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 102, 0, 0.35) 0%, rgba(255, 102, 0, 0.1) 35%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Subtle light leak from right border */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10px;
  width: 20px;
  height: 40%;
  background: radial-gradient(ellipse at right, rgba(255, 102, 0, 0.06) 0%, rgba(255, 102, 0, 0) 70%);
  pointer-events: none;
  filter: blur(10px);
}

.sidebar-header {
  padding: 30px 24px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.brand-text {
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-primary);
}

.brand-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.6px;
  color: #73808b;
}

.silver-logo {
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
}

/* Standalone Sidebar Privacy Button */
.sidebar-privacy-toggle-wrapper {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.privacy-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.privacy-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--orange-border);
  color: var(--text-primary);
}

.privacy-toggle-btn.active {
  color: var(--orange-primary);
  border-color: rgba(255, 102, 0, 0.4);
  box-shadow: inset 0 0 8px rgba(255, 102, 0, 0.04);
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 24px 16px;
  overflow-y: auto;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 12px;
  position: relative;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  border: 1.5px solid transparent;
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.02);
}

.sidebar-nav li.active a {
  color: var(--orange-primary);
  border-color: rgba(255, 102, 0, 0.45);
  background-color: rgba(255, 102, 0, 0.04);
  font-weight: 500;
  box-shadow: inset 0 0 10px rgba(255, 102, 0, 0.03), 0 0 12px rgba(255, 102, 0, 0.06);
}

/* Navigation Divider */
.nav-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.04);
  margin: 16px 0;
}

/* Privacy Toggle (Menu Item Format) */
.privacy-item a {
  cursor: pointer;
}

.privacy-item.active a {
  color: var(--orange-primary);
}

.privacy-item.active a svg {
  color: var(--orange-primary);
  filter: drop-shadow(0 0 5px var(--orange-primary));
}

.privacy-item.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 25%;
  height: 50%;
  width: 3px;
  background-color: var(--orange-primary);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px var(--orange-primary);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
}

.logout-btn:hover {
  color: var(--red-primary);
  background-color: var(--red-light);
}

/* MAIN CONTENT STYLING */
.main-content {
  padding: 18px 30px;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-titles h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.header-date-badge {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.header-titles p {
  margin-top: 4px;
}

/* GLASS CONTAINER CARDS */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ff7b00 0%, #ff4400 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff8c22 0%, #ff5511 100%);
  box-shadow: 0 6px 18px rgba(255, 102, 0, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
}

/* KPI GRID CARDS (Top Row) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
}

.kpi-card {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  min-height: 135px;
  height: auto;
}

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

.kpi-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.kpi-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-up {
  background-color: var(--green-light);
  color: var(--green-primary);
}

.kpi-down {
  background-color: var(--red-light);
  color: var(--red-primary);
}

.kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 1px;
  letter-spacing: -0.2px;
}

.kpi-percentage {
  font-size: 10.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.kpi-sparkline-container {
  margin-top: auto;
  height: 32px;
  width: 100%;
  position: relative;
}

/* SPLIT GRID MIDDLE ROW (55% / 45%) */
.dashboard-split-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.98fr;
  gap: 16px;
}

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

.card-title-header h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-primary);
}

.inner-header-bottom {
  margin-top: 16px;
  margin-bottom: 10px;
}

.performance-card {
  padding: 16px 20px;
}

.performance-chart-wrapper {
  height: 185px;
  width: 100%;
}

.volume-chart-wrapper {
  height: 100px;
  width: 100%;
}

.bottom-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

/* RECENT BETS CARD (45% Column) */
.recent-bets-card {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.recent-bets-header {
  flex-wrap: wrap;
  gap: 12px;
}

.tabs-control {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  padding: 3px;
  border-radius: 8px;
  display: flex;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.tab-btn.active {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.recent-bets-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex: 1;
  max-height: 320px;
  padding-right: 4px;
}

/* Feed Item Row styling */
.feed-item {
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.feed-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.feed-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.feed-time {
  font-size: 11px;
  color: var(--text-muted);
}

.feed-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-badges-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2.5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-block;
}

.badge-sure {
  background-color: var(--green-light);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
}

.badge-value-bet {
  background-color: var(--green-light);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
}

.badge-value-bet-orange {
  background-color: var(--orange-light);
  color: var(--orange-primary);
  border: 1px solid var(--orange-border);
}

.badge-bet-realized {
  background-color: var(--orange-light);
  color: var(--orange-primary);
  border: 1px solid var(--orange-border);
}

.badge-bet-resolved {
  background-color: var(--green-light);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
}

.badge-deposit-green {
  background-color: rgba(16, 185, 129, 0.16);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-transfer-blue {
  background-color: var(--blue-light);
  color: var(--blue-primary);
  border: 1px solid var(--blue-border);
}

.badge-withdraw-red {
  background-color: var(--red-light);
  color: var(--red-primary);
  border: 1px solid var(--red-border);
}

.feed-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.feed-amount {
  font-weight: 500;
}

.feed-odds {
  font-weight: 500;
}

.feed-profit {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
}

/* HISTORICO VIEW PANEL (TABLE CARD) */
.view-panel {
  display: none;
  animation: fadeIn 0.3s ease;
  height: 100%;
}

.view-panel.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  gap: 16px;
}

#view-dashboard.active,
#view-historico.active,
#view-mercados.active,
#view-usuarios.active,
#view-configuracoes.active,
#view-relatorios.active {
  overflow-y: auto;
  padding-right: 4px;
}

#view-casas.active,
#view-transacoes.active {
  overflow: hidden;
}

.table-card {
  padding: 24px;
}

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

.table-card-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.table-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.table-search-wrapper svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.table-search-wrapper input {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px 8px 36px;
  border-radius: 8px;
  font-size: 12.5px;
  width: 250px;
  outline: none;
}

.table-search-wrapper input:focus {
  border-color: var(--orange-primary);
  background-color: rgba(0, 0, 0, 0.3);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th, 
.custom-table td {
  padding: 12px 16px;
  font-size: 12.5px;
}

.custom-table th {
  font-family: 'Outfit', sans-serif;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.5px;
}

.custom-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.custom-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.015);
}

/* Badges inside table list */
.badge-status {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.badge-status-concluida {
  background-color: var(--green-light);
  color: var(--green-primary);
}

.badge-status-pendente {
  background-color: var(--orange-light);
  color: var(--orange-primary);
}

.action-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  padding: 0;
}

.action-icon:hover {
  color: var(--red-primary);
  background-color: var(--red-light);
}

/* MODAL DESIGN */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 550px;
  background-color: var(--bg-modal);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--text-primary);
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input, 
.form-group select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}

.form-group input:focus, 
.form-group select:focus {
  border-color: var(--orange-primary);
  background-color: rgba(0, 0, 0, 0.3);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Helpers */
.text-success {
  color: var(--green-primary);
}

.text-danger {
  color: var(--red-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-xs {
  font-size: 12px;
}

.font-bold {
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.panel-placeholder {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.panel-placeholder h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .dashboard-split-grid {
    grid-template-columns: 1fr;
  }
  .bottom-row-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* mobile-menu-btn and sidebar-overlay classes (desktop fallbacks) */
.mobile-menu-btn {
  display: none;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); /* Pure elegant dimming without blur */
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .app-container,
  .app-container.sidebar-collapsed {
    grid-template-columns: 1fr !important;
    z-index: auto; /* Remove stacking context on mobile to prevent overlay overlap */
  }
  
  .sidebar,
  .app-container.sidebar-collapsed .sidebar {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0 !important;
    transform: translateX(-280px); /* Hide to the left via GPU translation */
    width: 260px !important;
    height: 100%;
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(6, 8, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    will-change: transform;
  }
  
  .sidebar.mobile-open,
  .app-container.sidebar-collapsed .sidebar.mobile-open {
    transform: translateX(0) !important; /* Slide in via GPU translation */
  }

  /* Protection against sidebar collapse text labels and spacing breakage on mobile */
  .app-container.sidebar-collapsed .brand-text {
    display: flex !important;
  }
  .app-container.sidebar-collapsed .sidebar-nav span,
  .app-container.sidebar-collapsed .sidebar-privacy-toggle-wrapper span,
  .app-container.sidebar-collapsed .sidebar-footer span {
    display: inline !important;
  }
  .app-container.sidebar-collapsed .sidebar-header {
    padding: 30px 24px !important;
    justify-content: flex-start !important;
  }
  .app-container.sidebar-collapsed .brand {
    justify-content: flex-start !important;
    gap: 12px !important;
  }
  .app-container.sidebar-collapsed .sidebar-nav {
    padding: 24px 16px !important;
  }
  .app-container.sidebar-collapsed .sidebar-nav a {
    justify-content: flex-start !important;
    padding: 12px 16px !important;
  }
  .app-container.sidebar-collapsed .sidebar-footer {
    padding: 20px 16px !important;
  }
  .app-container.sidebar-collapsed .logout-btn {
    justify-content: flex-start !important;
    padding: 12px 16px !important;
  }

  /* Show Mobile Bottom Navigation */
  .mobile-nav-bar {
    display: flex;
  }
  
  .main-content {
    padding: 12px 12px 0 12px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden !important; /* Constrain viewport scroll */
  }
  
  .view-panel {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth iOS momentum scroll */
    box-sizing: border-box;
    padding-bottom: 90px; /* Extra bottom padding for floating navigation */
  }
  
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
  }
  
  .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--orange-primary);
  }
  
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
  }

  .header-titles h1 {
    font-size: 24px;
  }

  .title-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  /* KPI Grid & Cards scaling */
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kpi-card {
    padding: 16px;
  }

  /* Charts and Split grids */
  .dashboard-split-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  /* Modal scaling */
  .modal-container {
    width: 92%;
    padding: 20px;
    border-radius: 12px;
  }

  /* Casas Panel Layout stack */
  .casas-layout-wrapper {
    grid-template-columns: 1fr;
    height: auto;
    gap: 16px;
  }

  .casas-sidebar-panel {
    height: auto;
    max-height: 380px;
  }

  /* Personal Finances Mobile Adjustments */
  #view-financas-pessoais.active {
    display: block !important;
    height: auto !important;
    overflow-y: auto !important;
    padding-bottom: 90px !important;
  }

  .financas-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  .financas-split-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .financas-split-grid > div {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .financas-split-grid .glass-card {
    height: auto !important;
    flex: none !important;
    overflow: visible !important;
    min-height: 0 !important;
  }

  #financas-accounts-container,
  #financas-investments-container,
  #financas-entries-container {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  
  .financas-kpi-grid .kpi-card {
    padding: 12px 14px !important;
  }
  
  .financas-kpi-grid .kpi-value {
    font-size: 18px !important;
  }

  /* Notes Panel Layout stack */
  .notes-layout-wrapper {
    flex-direction: column;
    height: 100% !important;
    gap: 16px;
  }

  /* Mobile Master-Detail view toggle */
  .notes-layout-wrapper .notes-sidebar-panel {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
  }
  
  .notes-layout-wrapper .notes-details-panel {
    display: none !important;
  }
  
  /* If editor is active, hide list and show details panel */
  .notes-layout-wrapper.editor-active .notes-sidebar-panel {
    display: none !important;
  }
  
  .notes-layout-wrapper.editor-active .notes-details-panel {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    padding: 16px !important;
  }

  #btn-notes-back-mobile {
    display: inline-flex !important;
  }

  /* Bancos Mobile Layout Adjustments */
  #view-bancos .performance-card {
    height: 100% !important;
    min-height: 0 !important;
    padding: 16px !important;
    overflow: hidden !important;
  }

  .bancos-header-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
  }

  .bancos-search-wrapper {
    max-width: 100% !important;
  }

  #btn-open-banco-modal {
    width: 100% !important;
    justify-content: center !important;
  }

  .bancos-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    min-height: 0 !important;
  }

  .banco-card {
    width: 100% !important;
    height: auto !important;
    flex-shrink: 0 !important;
  }

  /* Adjust spacing in tables and cards */
  .glass-card {
    padding: 16px;
  }

  .bet-card {
    padding: 12px 16px;
  }

  .bet-card-header {
    gap: 8px;
  }
}

/* INTERACTIVE CASAS / PARCERIAS STYLING */
.casas-layout-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.casas-sidebar-panel {
  display: flex;
  flex-direction: column;
  padding: 20px;
  height: 100%;
}

.casas-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.title-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-badge-row h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.title-badge-row svg {
  color: var(--orange-primary);
}

.partners-count-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: block;
}

.partner-search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.partner-search-box svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.partner-search-box input {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px 8px 34px;
  border-radius: 8px;
  font-size: 12px;
  width: 100%;
  outline: none;
}

.partner-search-box input:focus {
  border-color: var(--orange-primary);
}

.partners-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  min-height: 0;
  max-height: none;
}

.partner-item {
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.partner-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

.partner-item.active {
  border-color: var(--orange-primary);
  background-color: rgba(255, 102, 0, 0.03);
  box-shadow: var(--glow-orange);
}

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

.partner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--orange-light);
  color: var(--orange-primary);
  border: 1px solid var(--orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.partner-meta-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.partner-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.partner-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-archived-badge {
  background-color: var(--red-light);
  color: var(--red-primary);
  border: 1px solid var(--red-border);
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

.partner-stats {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3px;
}

.partner-cpf, .partner-email {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
  display: block;
}

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

.partner-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-partner-check {
  color: var(--text-muted);
}

.btn-partner-check.checked {
  color: var(--green-primary);
}

.btn-partner-archive {
  color: var(--text-muted);
}

.btn-partner-archive:hover {
  color: var(--orange-primary);
}

.btn-partner-delete {
  color: var(--text-muted);
}

.btn-partner-delete:hover {
  color: var(--red-primary);
}

.partner-item-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-left: 2px;
}

.partner-item.active .partner-item-arrow {
  color: var(--orange-primary);
}

/* DETAILS PANEL STYLING */
.casas-details-panel {
  display: flex;
  flex-direction: column;
  padding: 24px;
  height: 100%;
}

.details-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.partner-profile-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7b00 0%, #ff4400 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--glow-orange);
}

.profile-meta h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 17.5px;
  font-weight: 700;
}

.details-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.toolbar-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 250px;
}

.toolbar-search-wrapper svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.toolbar-search-wrapper input {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px 8px 34px;
  border-radius: 8px;
  font-size: 12px;
  width: 100%;
  outline: none;
}

.toolbar-search-wrapper input:focus {
  border-color: var(--orange-primary);
}

.toolbar-filters {
  display: flex;
  gap: 10px;
}

.toolbar-filters select {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
.toolbar-filters select:focus {
  border-color: var(--orange-primary);
}

/* Tabular actions for houses details */
.actions-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.btn-casa-action {
  height: 32px;
  width: 90px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  outline: none;
  transition: all 0.2s ease;
}

.btn-casa-dep {
  background-color: var(--green-light);
  color: var(--green-primary);
  border-color: var(--green-border);
}

.btn-casa-dep:hover {
  background-color: rgba(0, 230, 118, 0.15);
  border-color: var(--green-primary);
}

.btn-casa-saque {
  background-color: var(--red-light);
  color: var(--red-primary);
  border-color: var(--red-border);
}

.btn-casa-saque:hover {
  background-color: rgba(255, 61, 0, 0.12);
  border-color: var(--red-primary);
}

.status-select-inline {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.status-select-inline:focus {
  border-color: var(--orange-primary);
}

.status-select-inline option {
  background-color: var(--bg-modal);
  color: var(--text-primary);
}

.status-select-inline.status-criada {
  border-color: var(--green-border);
  color: var(--green-primary);
  background-color: var(--green-light);
}

.status-select-inline.status-limitada {
  border-color: var(--red-border);
  color: var(--red-primary);
  background-color: var(--red-light);
}

.status-select-inline.status-pre-limitada {
  border-color: var(--yellow-border);
  color: var(--yellow-primary);
  background-color: var(--yellow-light);
}

/* Custom layout adjustments for tablets */
@media (max-width: 1024px) {
  .casas-layout-wrapper {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* Sidebar Toggle Floating Button styling */
.sidebar-toggle-btn {
  position: absolute;
  top: 32px;
  right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0d1220;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  outline: none;
}

.sidebar-toggle-btn:hover {
  color: var(--orange-primary);
  border-color: var(--orange-primary);
  box-shadow: var(--glow-orange);
}

.sidebar-toggle-btn svg {
  transition: transform 0.25s ease;
}

/* Sidebar Collapsed State styles */
.app-container.sidebar-collapsed {
  grid-template-columns: 80px 1fr;
}

.app-container.sidebar-collapsed .sidebar {
  width: 80px;
}

.app-container.sidebar-collapsed .brand-text,
.app-container.sidebar-collapsed .sidebar-nav span,
.app-container.sidebar-collapsed .sidebar-privacy-toggle-wrapper span,
.app-container.sidebar-collapsed .sidebar-footer span {
  display: none !important;
}

.app-container.sidebar-collapsed .sidebar-privacy-toggle-wrapper {
  padding: 12px 8px;
}

.app-container.sidebar-collapsed .privacy-toggle-btn {
  padding: 8px 0;
  justify-content: center;
}

.app-container.sidebar-collapsed .sidebar-header {
  padding: 30px 0;
  justify-content: center;
}

.app-container.sidebar-collapsed .brand {
  justify-content: center;
  gap: 0;
}

.app-container.sidebar-collapsed .sidebar-nav {
  padding: 24px 8px;
}

.app-container.sidebar-collapsed .sidebar-nav a {
  justify-content: center;
  padding: 12px 0;
}

.app-container.sidebar-collapsed .sidebar-footer {
  padding: 20px 0;
  display: flex;
  justify-content: center;
}

.app-container.sidebar-collapsed .logout-btn {
  justify-content: center;
  padding: 12px 0;
  width: 100%;
}

.app-container.sidebar-collapsed #toggle-icon {
  transform: rotate(180deg);
}

/* Responsive and compact action buttons in houses table */
@media (max-width: 1100px) {
  .btn-casa-action {
    width: 32px !important;
    padding: 0;
  }
  .btn-casa-action span {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .details-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .toolbar-search-wrapper {
    max-width: none;
  }
  .toolbar-filters {
    justify-content: space-between;
  }
  .toolbar-filters select {
    flex: 1;
  }
}

/* Calendar Picker Icon Button style */
.calendar-picker-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.calendar-picker-wrapper:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--orange-border);
  color: var(--orange-primary);
}

.calendar-picker-wrapper input[type="date"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* Autocomplete suggestions dropdown styling */
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  display: none;
}

.autocomplete-suggestion {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  transition: background-color 0.2s ease;
  color: var(--text-primary);
}

.autocomplete-suggestion:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.autocomplete-suggestion img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.1);
}

.fallback-logo-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--orange-light);
  color: var(--orange-primary);
  border: 1px solid var(--orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Bancos Grid View Layout */
.bancos-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.bancos-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 320px;
}

.bancos-search-wrapper svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.bancos-search-wrapper input {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px 8px 34px;
  border-radius: 8px;
  font-size: 12.5px;
  width: 100%;
  outline: none;
}

.bancos-search-wrapper input:focus {
  border-color: var(--orange-primary);
}

.bancos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  width: 100%;
  overflow-y: auto;
  flex: 1;
  padding-bottom: 20px;
}

.banco-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
  min-height: 185px;
  border-radius: 16px;
}

.banco-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.banco-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banco-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 102, 0, 0.08);
  color: var(--orange-primary);
  border: 1px solid var(--orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banco-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banco-name {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.banco-partner-name {
  font-size: 11px;
  color: var(--text-secondary);
}

.banco-actions-top {
  display: flex;
  gap: 4px;
}

.banco-action-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.banco-action-icon:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.banco-action-icon.btn-delete-banco:hover {
  color: var(--red-primary);
  background-color: var(--red-light);
}

.banco-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.banco-balance-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banco-balance-label {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.banco-balance {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.banco-pix-group {
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
}

.banco-card-actions {
  display: flex;
  gap: 8px;
}

.banco-card-actions .btn {
  flex: 1;
  padding: 6px 12px;
  font-size: 11.5px;
  justify-content: center;
  border-radius: 8px;
}

.btn-deposito-banco {
  background-color: var(--green-light);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
}

.btn-deposito-banco:hover {
  background-color: rgba(0, 230, 118, 0.15);
  border-color: var(--green-primary);
}

.btn-transferir-banco {
  background-color: rgba(0, 210, 255, 0.08);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.btn-transferir-banco:hover {
  background-color: rgba(0, 210, 255, 0.15);
  border-color: #00d2ff;
}

.banco-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banco-status-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}

.banco-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.banco-status-toggle.active {
  color: var(--green-primary);
}

.banco-status-toggle.active .banco-status-dot {
  background-color: var(--green-primary);
  box-shadow: var(--glow-green);
}

.btn-lock-banco {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-lock-banco:hover {
  color: var(--orange-primary);
}

/* Blocked Bank Account Card Styling */
.banco-card.blocked {
  border-color: rgba(255, 61, 0, 0.25);
  box-shadow: 0 0 15px rgba(255, 61, 0, 0.15);
  background: rgba(255, 61, 0, 0.03);
}

.banco-card.blocked .btn-deposito-banco {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

.banco-card.blocked .banco-icon-circle {
  border-color: rgba(255, 61, 0, 0.35);
  color: var(--red-primary);
  background-color: rgba(255, 61, 0, 0.08);
}

/* Custom Checkbox Row */
.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.form-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange-primary);
  cursor: pointer;
  margin: 0;
}

.form-checkbox-row label {
  cursor: pointer;
  margin-bottom: 0 !important;
  font-weight: 500 !important;
  font-size: 12.5px !important;
  color: var(--text-primary) !important;
}

/* ==========================================
   ANOTAÇÕES / BLOCKNOTE PANEL STYLES
   ========================================== */

#view-anotacoes.active {
  overflow: hidden; /* Prevent body scroll, layout manages its own scrolls */
}

.notes-layout-wrapper {
  display: flex;
  height: 100%;
  min-height: 0;
  gap: 16px;
  width: 100%;
}

/* Master list sidebar panel */
.notes-sidebar-panel {
  width: 320px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 20px;
}

.notes-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.notes-sidebar-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.notes-count-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.note-search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.note-search-box svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.note-search-box input {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px 8px 36px;
  border-radius: 8px;
  font-size: 12.5px;
  outline: none;
}

.note-search-box input:focus {
  border-color: var(--orange-primary);
  background-color: rgba(0, 0, 0, 0.3);
}

/* List container */
.notes-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.notes-list::-webkit-scrollbar {
  width: 4px;
}

.notes-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.notes-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* List Item styling */
.note-item {
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: all 0.2s ease;
}

.note-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.note-item.active {
  background-color: rgba(255, 102, 0, 0.05);
  border-color: rgba(255, 102, 0, 0.25);
  box-shadow: 0 4px 20px rgba(255, 102, 0, 0.05);
}

.note-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.note-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.note-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
}

.note-item:hover .note-delete-btn {
  opacity: 1;
}

.note-delete-btn:hover {
  color: var(--red-primary);
  background-color: var(--red-light);
}

.note-snippet {
  font-size: 12px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.note-date {
  font-size: 10px;
  color: var(--text-muted);
  align-self: flex-end;
}

/* Detail editor panel */
.notes-details-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 24px;
  overflow: hidden;
}

.notes-editor-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.note-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 16px;
}

/* Autosave indicator status styling */
.note-save-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.note-save-status.saving .status-indicator-dot {
  background-color: var(--orange-primary);
  box-shadow: var(--glow-orange);
  animation: pulse-glow 1s infinite alternate;
}

.note-save-status.saved .status-indicator-dot {
  background-color: var(--green-primary);
  box-shadow: var(--glow-green);
}

@keyframes pulse-glow {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.note-editor-fields {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

#note-editor-title {
  background: none !important;
  border: none !important;
  color: var(--text-primary) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  padding: 0 0 8px 0 !important;
  outline: none !important;
  width: 100%;
  border-radius: 0 !important;
}

.note-editor-meta-row {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
}

#note-editor-body {
  background: none !important;
  border: none !important;
  color: var(--text-secondary) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  padding: 0 !important;
  outline: none !important;
  width: 100%;
  flex: 1;
  resize: none;
  min-height: 0;
  overflow-y: auto;
}

/* Empty State Styling */
.notes-empty-state {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notes-placeholder-icon {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.15);
}

.action-icon.btn-resolve-bet:hover {
  color: var(--green-primary);
  background-color: var(--green-light);
}

/* ==========================================================================
   BET CARDS LAYOUT AND STATUS SELECTOR STYLES
   ========================================================================== */

#apostas-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bet-card {
  background: rgba(13, 17, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: visible !important;
}

.bet-card:hover {
  border-color: rgba(255, 102, 0, 0.2);
  box-shadow: 0 6px 24px rgba(255, 102, 0, 0.05);
}

.bet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bet-card-header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.bet-card-sport-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.bet-card-sport-badge.sport-baseball {
  color: #ff9800;
}

.bet-card-sport-badge.sport-futebol {
  color: #ffeb3b;
}

.bet-card-sport-badge.sport-basquete {
  color: #ff5722;
}

.bet-card-sport-badge.sport-tenis {
  color: #4caf50;
}

.bet-card-sport-badge.sport-hockey {
  color: #00bcd4;
}

.bet-card-separator {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
}

.bet-card-live-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.bet-card-live-badge.live {
  background: rgba(255, 61, 0, 0.15);
  border: 1px solid rgba(255, 61, 0, 0.3);
  color: #ff3d00;
}

.bet-card-live-badge.pre-live {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: #00e676;
}

.bet-card-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bet-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bet-card-action-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.bet-card-action-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.bet-card-action-btn.delete:hover {
  color: #ff3d00;
  background: rgba(255, 61, 0, 0.05);
}

.bet-card-profit-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 16px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 75px;
  text-align: center;
}

.bet-card-profit-badge.resolved-win {
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.2);
  background: rgba(0, 230, 118, 0.03);
}

.bet-card-profit-badge.resolved-loss {
  color: #ff3d00;
  border-color: rgba(255, 61, 0, 0.2);
  background: rgba(255, 61, 0, 0.03);
}

.bet-card-body {
  margin-top: 12px;
  overflow: visible;
}

@media (max-width: 768px) {
  .bet-card-body {
    overflow-x: auto;
  }
}

.bet-card-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.bet-card-table th {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffcc00; /* Yellow header text matching screenshot */
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bet-card-table td {
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.bet-card-table tr:last-child td {
  border-bottom: none;
}

.bet-card-table td.font-bold {
  color: var(--text-primary);
}

.bet-card-table td.roi-positive {
  color: #00e676;
  font-weight: 600;
}

.bet-card-table td.roi-negative {
  color: #ff3d00;
  font-weight: 600;
}

/* Status dropdown wrapper and dropdown menu */
.status-dropdown-wrapper {
  position: relative !important;
  display: inline-block;
  overflow: visible !important;
}

/* Stacking context fixes to elevate active card, row, and wrapper above siblings */
.bet-card:has(.status-dropdown-menu.active) {
  position: relative !important;
  z-index: 100 !important;
}

.bet-card-table tr:has(.status-dropdown-menu.active) {
  position: relative !important;
  z-index: 100 !important;
}

.status-dropdown-wrapper:has(.status-dropdown-menu.active) {
  z-index: 100 !important;
}

.leg-status-btn {
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  border: none;
  min-width: 90px;
  text-align: center;
  transition: opacity 0.2s, transform 0.1s;
}

.leg-status-btn:hover {
  opacity: 0.9;
}

.leg-status-btn:active {
  transform: scale(0.97);
}

.status-dropdown-menu {
  position: absolute !important;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background-color: rgba(22, 26, 36, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  z-index: 10000 !important;
  display: none;
  flex-direction: column !important;
  gap: 4px;
  padding: 6px;
  width: 120px;
  box-sizing: border-box;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.status-dropdown-menu.active {
  display: flex;
}

.status-dropdown-item {
  padding: 6px 10px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
  color: #fff;
  width: 100% !important;
  box-sizing: border-box;
  height: auto !important;
  flex: none !important;
}

.status-dropdown-item:hover {
  opacity: 0.85;
}

/* Status values background colors matching screenshot */
.status-value-pendente { background-color: #ff9800 !important; color: #fff !important; }
.status-value-green { background-color: #00875a !important; color: #fff !important; }
.status-value-meio-green { background-color: #d2f4ea !important; color: #00875a !important; }
.status-value-red { background-color: #de350b !important; color: #fff !important; }
.status-value-meio-red { background-color: #ffebe6 !important; color: #de350b !important; }
.status-value-devolvido { background-color: #42526e !important; color: #fff !important; }
.status-value-cashout { background-color: #0052cc !important; color: #fff !important; }

/* Badge Proteção Amigo */
.badge-protecao-amigo {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12) !important;
  color: #818cf8 !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
}

/* Custom status select badge */
.house-status-select {
  padding: 4px 20px 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 8px;
  transition: all 0.2s ease;
  display: inline-block;
  min-width: 95px;
}

.status-criada {
  background-color: var(--green-light) !important;
  color: var(--green-primary) !important;
  border-color: var(--green-border) !important;
}
.status-criada:hover {
  background-color: rgba(0, 230, 118, 0.18) !important;
}

.status-limitada {
  background-color: var(--red-light) !important;
  color: var(--red-primary) !important;
  border-color: var(--red-border) !important;
}
.status-limitada:hover {
  background-color: rgba(255, 61, 0, 0.18) !important;
}

.status-pre-limitada {
  background-color: var(--yellow-light) !important;
  color: var(--yellow-primary) !important;
  border-color: var(--yellow-border) !important;
}
.status-pre-limitada:hover {
  background-color: rgba(234, 179, 8, 0.18) !important;
}

/* Table Action Buttons */
.house-action-btn-dep, .house-action-btn-saque {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.house-action-btn-dep {
  background-color: rgba(16, 185, 129, 0.16);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.house-action-btn-dep:hover {
  background-color: rgba(16, 185, 129, 0.26);
}

.house-action-btn-saque {
  background-color: var(--red-light);
  color: var(--red-primary);
  border: 1px solid var(--red-border);
}
.house-action-btn-saque:hover {
  background-color: rgba(255, 61, 0, 0.18);
}

.house-action-icon-edit, .house-action-icon-delete {
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  padding: 0;
  vertical-align: middle;
}

.house-action-icon-edit {
  color: var(--text-secondary);
}
.house-action-icon-edit:hover {
  color: #6366f1;
  background-color: rgba(99, 102, 241, 0.08);
}

.house-action-icon-delete {
  color: rgba(239, 68, 68, 0.6);
}
.house-action-icon-delete:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.08);
}

/* Global Partner Deposit and Saque Buttons */
.btn-global-dep {
  background-color: rgba(16, 185, 129, 0.12) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}
.btn-global-dep:hover {
  background-color: rgba(16, 185, 129, 0.22) !important;
}

.btn-global-saque {
  background-color: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
}
.btn-global-saque:hover {
  background-color: rgba(239, 68, 68, 0.18) !important;
}

/* Lixeira (Soft Delete) styles */
.lixeira-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.lixeira-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.lixeira-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lixeira-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-primary) 0%, #d97706 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.lixeira-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lixeira-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.lixeira-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.btn-restore-partner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-restore-partner:hover {
  background-color: rgba(16, 185, 129, 0.22);
}

.btn-purge-partner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  height: 28px;
  width: 28px;
}
.btn-purge-partner:hover {
  background-color: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR STYLES
   ========================================================================== */

.mobile-nav-bar {
  display: none; /* Hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  justify-content: space-around;
  align-items: center;
  padding: 4px 12px 8px 12px; /* Bottom padding for mobile layouts */
  box-sizing: border-box;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  transition: all 0.2s ease;
  flex: 1;
}

.mobile-nav-item svg {
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  color: var(--orange-primary);
}

.mobile-nav-item:hover svg, .mobile-nav-item.active svg {
  color: var(--orange-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   MOBILE HARDWARE ACCELERATION & PERFORMANCE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
  /* GPU Layer Promotion (Hardware Acceleration) */
  .sidebar {
    will-change: transform;
  }

  .modal-container, 
  .mobile-nav-bar,
  .view-panel,
  .bancos-grid,
  .partners-list,
  .custom-table tbody tr {
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }

  /* Disable heavy backdrop blurs on mobile and replace with premium opaque overlays */
  .glass-card, 
  .sidebar, 
  .modal-overlay,
  .mobile-nav-bar,
  .notes-sidebar-panel,
  .notes-details-panel,
  .performance-card,
  .table-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .glass-card,
  .performance-card,
  .table-card,
  .notes-sidebar-panel,
  .notes-details-panel {
    background: rgba(10, 15, 26, 0.90) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  .modal-overlay {
    background-color: rgba(0, 0, 0, 0.85) !important;
  }

  .mobile-nav-bar {
    background: rgba(10, 15, 26, 0.97) !important;
  }

  /* Simplify shadows to reduce rasterization cost on mobile */
  .glass-card,
  .kpi-card,
  .bet-card,
  .banco-card,
  .partner-item {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  }
}

/* ==========================================================================
   MELHORIAS DE CONTRASTE E LEGIBILIDADE DOS SELECTS DO SISTEMA
   ========================================================================== */
/* Fundo escuro e alta legibilidade para TODOS os dropdowns (select) */
select,
.form-group select,
.modal-container select,
.modal select {
  background-color: #0c1017 !important;
  color: #f8fafc !important;
  border: 1px solid var(--border-color) !important;
}

/* Fundo escuro e alta legibilidade para TODAS as opções de dropdown */
select option,
.form-group select option,
.modal-container select option,
.modal select option {
  background-color: #0c1017 !important;
  color: #e2e8f0 !important; /* Cor off-white de alto contraste por padrão */
  font-weight: 500;
  padding: 12px;
}

/* Cor diferenciada para placeholders desabilitados */
select option:disabled,
.form-group select option:disabled,
.modal-container select option:disabled,
.modal select option:disabled {
  color: #64748b !important; /* Cinza escuro discreto para placeholder */
  font-weight: normal;
}

/* Destaque em azul brilhante nos nomes de parcerias em todos os dropdowns de seleção de parceiro */
#banco-partner-select option:not(:disabled),
#protection-partnership-select option:not(:disabled),
#transacao-dep-partner option:not(:disabled),
#transacao-saq-partner option:not(:disabled),
#transacao-trf-from-partner option:not(:disabled),
#transacao-trf-to-partner option:not(:disabled),
#delete-partner-dest-select option:not(:disabled) {
  color: #38bdf8 !important;
}





