/* Cruz Vermelha Brasileira — Controle de Estoque
   Identidade visual institucional (frontend only) */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --cv-red: #C62828;
  --cv-red-dark: #9B1C1C;
  --cv-red-soft: #FDECEA;
  --cv-green: #2E7D32;
  --cv-green-soft: #E8F5E9;
  --cv-orange: #ED6C02;
  --cv-orange-soft: #FFF3E0;
  --cv-yellow: #F9A825;
  --cv-blue: #1565C0;
  --cv-blue-soft: #E3F2FD;

  --bg: #F3F5F7;
  --surface: #FFFFFF;
  --surface-2: #F8FAFB;
  --border: #E4E8EC;
  --border-strong: #D0D7DE;
  --text: #1C2430;
  --text-secondary: #5B6573;
  --text-muted: #8A94A3;
  --shadow-sm: 0 1px 2px rgba(28, 36, 48, 0.04);
  --shadow: 0 2px 8px rgba(28, 36, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 36, 48, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 260px;
  --sidebar-collapsed-w: 76px;
  --topbar-h: 64px;
  --transition: 0.2s ease;
  --font: 'Source Sans 3', 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--cv-red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--cv-red-dark);
}

/* ─── Shell ─── */
.app-shell {
  min-height: 100vh;
  display: flex;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width var(--transition), flex-basis var(--transition);
  overflow: hidden;
}

body.sidebar-collapsed .app-sidebar {
  width: var(--sidebar-collapsed-w);
  flex-basis: var(--sidebar-collapsed-w);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border);
  min-height: var(--topbar-h);
  flex-shrink: 0;
}

.sidebar-logo {
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

body.sidebar-collapsed .nav-section-label,
body.sidebar-collapsed .nav-link-text,
body.sidebar-collapsed .sidebar-badge {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

body.sidebar-collapsed .sidebar-brand {
  padding: 0.75rem 0.4rem;
}

body.sidebar-collapsed .sidebar-logo {
  height: 28px;
  /* SVG includes wordmark — crop to the red cross when collapsed */
  width: 28px;
  object-fit: cover;
  object-position: left center;
}

body.sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

body.sidebar-collapsed .sidebar-link.active::before {
  display: none;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.85rem 0.65rem 1rem;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.85rem 0.75rem 0.4rem;
  white-space: nowrap;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.58rem 0.75rem;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  position: relative;
}

.sidebar-link i {
  font-size: 1.15rem;
  width: 1.35rem;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.sidebar-link:hover {
  background: var(--surface-2);
  color: var(--text);
}

.sidebar-link:hover i {
  color: var(--cv-red);
}

.sidebar-link.active {
  background: var(--cv-red-soft);
  color: var(--cv-red);
  font-weight: 600;
}

.sidebar-link.active i {
  color: var(--cv-red);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--cv-red);
}

.sidebar-badge {
  margin-left: auto;
  background: var(--cv-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 0.65rem;
  flex-shrink: 0;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.sidebar-toggle:hover {
  background: var(--cv-red-soft);
  color: var(--cv-red);
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Topbar ─── */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.65rem 1.5rem;
}

.topbar-left {
  min-width: 0;
  flex: 1 1 180px;
}

.topbar-greeting {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.topbar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.topbar-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  flex: 0 1 auto;
  max-width: 100%;
}

.topbar-institution {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--cv-red-soft);
  color: var(--cv-red);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (min-width: 992px) {
  .topbar-institution {
    display: inline-flex;
  }
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
}

.user-chip:hover,
.user-chip:focus {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cv-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.app-content {
  padding: 1.35rem 1.5rem 2rem;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

/* Guest (login) layout */
body.is-guest .app-shell {
  display: block;
}

body.is-guest .app-content-guest {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at top left, rgba(198, 40, 40, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(198, 40, 40, 0.05), transparent 45%),
    var(--bg);
}

/* ─── Cards ─── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.card-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-body {
  padding: 1.15rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.panel-header h2,
.panel-header h3,
.panel-header h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.panel-body {
  padding: 1.15rem;
}

/* ─── Stat cards ─── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.15rem 1.2rem;
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.stat-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.stat-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.stat-card-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.stat-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-card-icon.red {
  background: var(--cv-red-soft);
  color: var(--cv-red);
}

.stat-card-icon.green {
  background: var(--cv-green-soft);
  color: var(--cv-green);
}

.stat-card-icon.orange {
  background: var(--cv-orange-soft);
  color: var(--cv-orange);
}

.stat-card-icon.blue {
  background: var(--cv-blue-soft);
  color: var(--cv-blue);
}

.stat-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.stat-card-accent.red { background: var(--cv-red); }
.stat-card-accent.green { background: var(--cv-green); }
.stat-card-accent.orange { background: var(--cv-orange); }
.stat-card-accent.blue { background: var(--cv-blue); }

/* ─── Page header ─── */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.35rem;
}

.page-header > div:first-child {
  min-width: 0;
  flex: 1 1 160px;
}

.page-header h1,
.page-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-header .subtitle {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  max-width: 100%;
}

.page-actions form {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
}

/* ─── Buttons ─── */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.95rem;
  transition: background var(--transition), border-color var(--transition),
    box-shadow var(--transition), transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--cv-red);
  border-color: var(--cv-red);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--cv-red-dark);
  border-color: var(--cv-red-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
}

.btn-outline-primary {
  color: var(--cv-red);
  border-color: #E8A0A0;
}

.btn-outline-primary:hover {
  background: var(--cv-red);
  border-color: var(--cv-red);
  color: #fff;
}

.btn-danger {
  background: var(--cv-red);
  border-color: var(--cv-red);
}

.btn-danger:hover {
  background: var(--cv-red-dark);
  border-color: var(--cv-red-dark);
}

.btn-secondary {
  background: #EEF1F4;
  border-color: #EEF1F4;
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: #E2E6EB;
  border-color: #E2E6EB;
  color: var(--text);
}

.btn-group-sm .btn {
  border-radius: 6px;
}

/* ─── Forms ─── */
.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--cv-red);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.form-text {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.is-invalid {
  border-color: var(--cv-red) !important;
}

.invalid-feedback {
  font-size: 0.8rem;
}

/* ─── Tables ─── */
.table {
  margin-bottom: 0;
  --bs-table-hover-bg: #F8FAFB;
}

.table thead th {
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-color: var(--border);
  color: var(--text);
}

.table-responsive {
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ─── Badges ─── */
.badge {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.35em 0.65em;
  border-radius: 6px;
}

.badge.bg-success {
  background-color: var(--cv-green) !important;
}

.badge.bg-danger {
  background-color: var(--cv-red) !important;
}

.badge.bg-warning {
  background-color: var(--cv-orange) !important;
  color: #fff !important;
}

.badge.bg-primary {
  background-color: var(--cv-blue) !important;
}

.badge.bg-secondary {
  background-color: #6B7280 !important;
}

/* ─── Alerts ─── */
.alert {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.alert-success {
  background: var(--cv-green-soft);
  border-color: #C8E6C9;
  color: #1B5E20;
}

.alert-danger,
.alert-error {
  background: var(--cv-red-soft);
  border-color: #FFCDD2;
  color: #B71C1C;
}

.alert-warning {
  background: var(--cv-orange-soft);
  border-color: #FFE0B2;
  color: #E65100;
}

.alert-info {
  background: var(--cv-blue-soft);
  border-color: #BBDEFB;
  color: #0D47A1;
}

/* ─── Pagination ─── */
.pagination .page-link {
  border-radius: 8px !important;
  margin: 0 0.15rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
}

.pagination .page-link:hover {
  background: var(--cv-red-soft);
  color: var(--cv-red);
  border-color: #F5C2C2;
}

.pagination .page-item.disabled .page-link {
  background: var(--surface-2);
  color: var(--text-muted);
}

/* ─── Dashboard specifics ─── */
.dash-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 576px) {
  .dash-grid.stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .dash-grid.stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.dash-layout {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 1100px) {
  .dash-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.dash-layout > .panel {
  min-width: 0;
  max-width: 100%;
}

.movement-type-in {
  background: var(--cv-green-soft) !important;
  color: var(--cv-green) !important;
}

.movement-type-out {
  background: var(--cv-red-soft) !important;
  color: var(--cv-red) !important;
}

.movement-type-transfer {
  background: var(--cv-blue-soft) !important;
  color: var(--cv-blue) !important;
}

.alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alert-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.alert-list li:last-child {
  border-bottom: none;
}

.alert-list .item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.alert-list .item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.panel-header.danger {
  background: var(--cv-red-soft);
  border-bottom-color: #FFCDD2;
}

.panel-header.danger h2,
.panel-header.danger h3,
.panel-header.danger h6 {
  color: var(--cv-red);
}

.panel-header.warning {
  background: var(--cv-orange-soft);
  border-bottom-color: #FFE0B2;
}

.panel-header.warning h2,
.panel-header.warning h3,
.panel-header.warning h6 {
  color: #E65100;
}

.chart-wrap {
  position: relative;
  height: 280px;
  width: 100%;
}

.ops-summary {
  text-align: center;
  padding: 0.5rem 0;
}

.ops-summary .big-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.ops-summary .big-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.ops-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.ops-split-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
}

.ops-split-item span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── Login ─── */
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.login-card-header {
  text-align: center;
  padding: 2rem 1.75rem 1rem;
}

.login-card-header img {
  height: 56px;
  margin-bottom: 0.85rem;
}

.login-card-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.login-card-header p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.login-card-body {
  padding: 0.5rem 1.75rem 1.75rem;
}

.login-card-footer {
  text-align: center;
  padding: 0.9rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── Mobile nav ─── */
.mobile-topbar {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

/* Tablet + mobile: usa navegação mobile; sidebar desktop só a partir de lg */
@media (max-width: 991.98px) {
  .app-sidebar {
    display: none !important;
  }

  .app-main {
    width: 100%;
    max-width: 100%;
  }

  body.has-mobile-nav {
    padding-bottom: 72px;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--surface);
    border-bottom: 3px solid var(--cv-red);
    position: sticky;
    top: 0;
    z-index: 1040;
  }

  .mobile-topbar img {
    height: 36px;
    max-width: min(220px, 70vw);
    object-fit: contain;
  }

  .app-topbar {
    padding: 0.75rem 1rem;
  }

  .topbar-meta {
    display: none;
  }

  .app-content {
    padding: 1rem;
  }

  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 0.4rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(28, 36, 48, 0.06);
  }

  .mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.15rem;
    border-radius: 8px;
  }

  .mobile-bottom-nav a i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 2px;
  }

  .mobile-bottom-nav a.active {
    color: var(--cv-red);
  }

  .mobile-bottom-nav a.qr-cta {
    color: #fff;
    background: var(--cv-red);
    margin: 0 0.15rem;
    padding-top: 0.35rem;
  }

  .mobile-bottom-nav a.qr-cta.active {
    background: var(--cv-red-dark);
    color: #fff;
  }

  .page-header h1,
  .page-header h2 {
    font-size: 1.2rem;
  }

  .stat-card-value {
    font-size: 1.45rem;
  }

  .table thead th,
  .table tbody td {
    padding: 0.7rem 0.75rem;
  }
}

/* Offcanvas mobile menu */
.offcanvas-start {
  width: min(300px, 88vw);
}

.offcanvas .sidebar-link.active {
  background: var(--cv-red-soft);
  color: var(--cv-red);
}

/* Utility */
.text-cv-red { color: var(--cv-red) !important; }
.bg-cv-soft { background: var(--cv-red-soft) !important; }

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
}

.dropdown-item {
  border-radius: 6px;
  font-size: 0.88rem;
  padding: 0.45rem 0.75rem;
}

.dropdown-item:active {
  background: var(--cv-red);
}

.list-group-item.active.bg-danger {
  background-color: var(--cv-red) !important;
  border-color: var(--cv-red) !important;
}
