/* =========================================================
   MacVision Minimal Admin Theme (Bootstrap 4.6 Overrides)
   ========================================================= */

/* --------------------
   Base / Typography
   -------------------- */
html,
body {
  background: var(--mv-bg);
  color: var(--mv-text);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

.font-weight-semibold {
  font-weight: 600 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--mv-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-muted,
.mv-text-muted,
.text-muted-2 {
  color: var(--mv-text-muted) !important;
}

a {
  color: var(--mv-primary);
}

a:hover {
  color: var(--mv-primary-600);
  text-decoration: none;
}

/* --------------------
   Layout
   -------------------- */
.mv-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--mv-z-topbar);
  height: var(--mv-topbar-height);
  background: var(--mv-surface);
  border-bottom: 1px solid var(--mv-border);
  padding: 0.45rem 1rem;
  gap: 0.75rem;
}

.mv-topbar-left,
.mv-topbar-right {
  min-width: 0;
}

.mv-topbar-left {
  flex: 1 1 auto;
}

.mv-topbar-right {
  flex: 0 0 auto;
  gap: 0.45rem;
}

.mv-topbar-right .mr-2 {
  margin-right: 0.35rem !important;
}

.mv-topbar-right .mr-3 {
  margin-right: 0.45rem !important;
}

.mv-topbar-right .btn {
  white-space: nowrap;
}

.mv-topbar .btn {
  border-color: var(--mv-border);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.68rem;
}

.mv-topbar .btn-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mv-topbar .navbar-brand {
  color: var(--mv-text) !important;
  font-weight: 700;
}

.mv-sidebar {
  position: fixed;
  top: var(--mv-topbar-height);
  left: 0;
  bottom: 0;
  width: var(--mv-sidebar-width);
  background: var(--mv-surface);
  border-right: 1px solid var(--mv-border);
  z-index: var(--mv-z-sidebar);
  overflow-y: auto;
  transition: transform 0.25s ease;
}

body.sidebar-collapsed .mv-sidebar {
  transform: translateX(-100%);
}

.mv-sidebar-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--mv-border);
}
.mv-profile-photo {
  position: relative;
  display: inline-block;
}
.mv-profile-photo-edit {
  position: absolute;
  right: 6px;
  bottom: 85px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid var(--mv-surface);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--mv-shadow-soft);
}
.mv-profile-photo-edit:hover {
  background: rgba(0, 0, 0, 0.9);
}
.mv-sidebar-section-title {
  padding: 1rem 1.25rem 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mv-text-muted);
  font-weight: 700;
}

.cardBody {
  background: #dafff1;
  border-radius: 12px;
  overflow: hidden;
}

.mv-content {
  margin-top: var(--mv-topbar-height);
  margin-left: var(--mv-sidebar-width);
  padding: 0.35rem 0.85rem 0.85rem;
  min-height: calc(100vh - var(--mv-topbar-height));
  transition: margin-left 0.25s ease;
}

/* Evita doble estructura cuando una vista incluye layout interno por error */
.mv-content .mv-topbar,
.mv-content .mv-sidebar,
.mv-content .mv-side-panel,
.mv-content .mv-overlay {
  display: none !important;
}

.mv-content .mv-content,
main.mv-content main.mv-content {
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: auto !important;
}

.mv-content > *:first-child {
  margin-top: 0 !important;
}

.mv-content .container,
.mv-content .container-fluid {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.page-conversation .container-fluid,
.page-conversation .col-12 {
  padding-left: 0;
  padding-right: 0;
}

body.sidebar-collapsed .mv-content {
  margin-left: 0;
}

.mv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 24, 17, 0.32);
  z-index: var(--mv-z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mv-overlay.active,
body.sidebar-open .mv-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------
   Sidebar navigation
   -------------------- */
.mv-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0.2rem 0.75rem;
  padding: 0.675rem 0.875rem;
  border-radius: 12px;
  color: var(--mv-text-muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mv-nav-item i {
  width: 16px;
  text-align: center;
}

.mv-nav-item:hover {
  background: var(--mv-surface-2);
  color: var(--mv-text);
  border-color: var(--mv-border);
}

.mv-nav-item.active {
  color: var(--mv-primary);
  background: var(--mv-success-soft);
  border-color: transparent;
}

.mv-nav-item.active::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 10%;
  height: 80%;
  width: 3px;
  border-radius: 4px;
  background: var(--mv-primary);
}

.mv-sidebar .accordion .card,
.mv-sidebar .accordion .card-header,
.mv-sidebar .accordion .card-body {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mv-sidebar .accordion .btn-link {
  color: var(--mv-text-muted);
  text-decoration: none;
  width: 100%;
  padding: 0.6rem 1rem;
}

.mv-sidebar .accordion-icon {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.mv-sidebar .btn-link[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

/* Cada grupo recibe un color desde dashboardSidebar.pug mediante variables. */
.mv-sidebar .mv-menu-group {
  --mv-menu-accent: var(--mv-primary);
  --mv-menu-soft: rgba(37, 99, 235, 0.12);
  border-left: 3px solid transparent;
  border-radius: 0 var(--mv-radius-md) var(--mv-radius-md) 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mv-sidebar .mv-menu-group:has(.collapse.show) {
  border-left-color: var(--mv-menu-accent);
  background: linear-gradient(90deg, var(--mv-menu-soft), transparent 92%);
}

.mv-sidebar .mv-menu-group-header > h2 > .btn-link {
  color: var(--mv-menu-accent);
  border-left: 3px solid transparent;
  font-weight: 700;
}

.mv-sidebar .mv-menu-group-header > h2 > .btn-link[aria-expanded="true"] {
  background-color: var(--mv-menu-soft);
  border-left-color: var(--mv-menu-accent);
}

.mv-sidebar .mv-menu-group .card-body {
  border-left: 1px solid var(--mv-menu-accent);
  margin-left: 0.7rem;
}

.mv-sidebar .mv-menu-group .card-body .btn-link,
.mv-sidebar .mv-menu-group .card-body .mv-nav-item {
  color: var(--mv-menu-accent);
}

.mv-sidebar .mv-menu-group .card-body .btn-link:hover,
.mv-sidebar .mv-menu-group .card-body .btn-link:focus,
.mv-sidebar .mv-menu-group .card-body .mv-nav-item:hover {
  color: var(--mv-menu-accent);
  background-color: var(--mv-menu-soft);
}

.mv-sidebar .mv-menu-group .card-body .mv-nav-item.active {
  color: var(--mv-menu-accent);
  background-color: var(--mv-menu-soft);
  box-shadow: inset 3px 0 0 var(--mv-menu-accent);
}

/* Subsection divider inside accordion */
.mv-subsection-divider {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.6rem 0.75rem 0.2rem;
  margin-top: 0.25rem;
}

.mv-subsection-hr {
  flex: 1;
  border: none;
  border-top: 1px solid var(--mv-border-strong);
  margin: 0;
}

.mv-subsection-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mv-primary);
  background: var(--mv-surface);
  padding: 0 0.45rem;
  white-space: nowrap;
}

.mv-sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--mv-border);
}

.mv-sidebar-footer .mv-nav-item {
  margin: 0;
  color: var(--mv-danger);
  background: var(--mv-danger-soft);
}

/* --------------------
   Bootstrap overrides
   -------------------- */
.card {
  background: var(--mv-surface);
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius-lg);
  box-shadow: var(--mv-shadow-soft);
}

.card-header,
.card-footer {
  background: var(--mv-surface);
  border-color: var(--mv-border);
}
.btnListBorder1 {
  border: 1px solid #10ac9f;
  color: #10ac9f;
  background-color: transparent;
}

.btnListBorder1:hover {
  background-color: #10ac9f;
  color: #fff !important;
}

.btnListBorder2 {
  background-color: #10ac9f;
  color: #fff !important;
  border: 1px solid #10ac9f;
}
.role-chip {
  transition: all 0.2s ease;
  border-radius: 20px;
  padding: 4px 10px;
}

.card-title {
  color: var(--mv-text);
}

.btn {
  border-radius: var(--mv-radius-md);
  font-weight: 500;
  box-shadow: none;
}

.btn:focus,
.btn.focus {
  box-shadow: var(--mv-focus-ring);
}

.btn-dinamico {
  color: var(--btn-text-color-normal, var(--mv-text-muted)) !important;
  margin-top: 5px !important;
  /* collapse: espera 500ms antes de cerrar */
  transition: background-color 0.2s ease 500ms, color 0.2s ease 500ms, border-color 0.2s ease 500ms;
  display: inline-flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--btn-color);
  background: transparent;
  cursor: pointer;
}

.btn-dinamico::after {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  /* collapse: espera ~1.5s (1s min abierto + 500ms delay) antes de colapsar */
  transition: max-width 0.5s ease 1500ms, opacity 0.5s ease 1500ms;
  content: var(--after-text);
  overflow: hidden;
}

.btn-dinamico:hover {
  background-color: var(--btn-color);
  color: var(--btn-text-color, #000000) !important;
  /* expand: espera 500ms antes de abrir */
  transition: background-color 0.2s ease 200ms, color 0.2s ease 200ms;
}

.btn-dinamico:hover::after {
  max-width: 200px;
  opacity: 1;
  /* expand: espera 500ms antes de mostrar el texto */
  transition: max-width 1s ease 200ms, opacity 1s ease 200ms;
}






.btn-primary {
  background: var(--mv-primary);
  border-color: var(--mv-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--mv-primary-600);
  border-color: var(--mv-primary-600);
}

.btn-outline-secondary,
.btn-secondary {
  border-color: var(--mv-border-strong);
  background: var(--mv-surface);
  color: var(--mv-text);
}

.btn-outline-secondary:hover,
.btn-secondary:hover {
  background: var(--mv-surface-2);
  border-color: var(--mv-border-strong);
  color: var(--mv-text);
}

.form-control,
.custom-select {
  border-radius: var(--mv-radius-md);
  border: 1px solid var(--mv-border);
  background: var(--mv-surface-2);
  color: var(--mv-text);
}

.form-control::placeholder {
  color: var(--mv-text-muted);
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--mv-primary);
  box-shadow: var(--mv-focus-ring);
  background: var(--mv-surface);
  color: var(--mv-text);
}

.table {
  color: var(--mv-text);
}

.table thead th {
  background: var(--mv-surface-3);
  color: var(--mv-text-muted);
  border-bottom: 1px solid var(--mv-border);
  border-top: 0;
  font-weight: 600;
}

.table td {
  border-top: 0;
  border-bottom: 1px solid var(--mv-border);
  vertical-align: middle;
}

.table tbody tr:hover {
  background: var(--mv-surface-2);
}

.table .mv-ref,
.table td:first-child strong,
.table td:first-child .font-weight-bold {
  color: var(--mv-primary);
}

/* --------------------
   Badges / Pills
   -------------------- */
.badge {
  border-radius: var(--mv-radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.32rem 0.62rem;
}

.badge.badge-light,
.badge-soft {
  background: var(--mv-surface-3);
  color: var(--mv-text-muted);
  border: 1px solid var(--mv-border);
}

.badge-programado,
.badge-solicitado,
.badge-en-ruta,
.badge-recolectando,
.badge-recolectado,
.badge-pendiente,
.badge-completado {
  border: 1px solid transparent;
}

.badge-programado,
.status-programado { background: var(--mv-info-soft); color: var(--mv-info); border-color: rgba(75, 191, 154, 0.3); }
.badge-solicitado,
.status-solicitado { background: var(--mv-warning-soft); color: var(--mv-warning); border-color: rgba(188, 167, 100, 0.3); }
.badge-en-ruta,
.status-en-ruta { background: var(--mv-surface-3); color: var(--mv-text-muted); border-color: var(--mv-border); }
.badge-recolectando,
.status-recolectando { background: var(--mv-success-soft); color: var(--mv-success); border-color: rgba(var(--mv-primary-rgb), 0.28); }
.badge-recolectado,
.status-recolectado,
.badge-completado,
.status-completado { background: var(--mv-success-soft); color: var(--mv-success); border-color: rgba(var(--mv-primary-rgb), 0.34); }
.badge-pendiente,
.status-pendiente { background: var(--mv-danger-soft); color: var(--mv-danger); border-color: rgba(214, 117, 132, 0.3); }

/* --------------------
   KPI / module cards
   -------------------- */
.mv-kpi-card,
.mv-module-card {
  position: relative;
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius-lg);
  background: var(--mv-surface);
  box-shadow: var(--mv-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mv-kpi-card:hover,
.mv-module-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mv-shadow-soft-hover);
}

.mv-kpi-card {
  border-left: 4px solid var(--mv-primary);
}

.mv-kpi-title {
  font-size: 0.82rem;
  color: var(--mv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mv-kpi-value {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.1;
  color: var(--mv-text);
  font-weight: 700;
}

.mv-icon-soft {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mv-success-soft);
  color: var(--mv-primary);
}

/* --------------------
   Breadcrumbs / headers
   -------------------- */
.mv-page-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.25rem;
}

.breadcrumb {
  background: transparent;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: var(--mv-text-muted);
  font-size: 0.88rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--mv-border-strong);
}

/* --------------------
   Side panels
   -------------------- */
.mv-side-panel {
  position: fixed;
  top: var(--mv-topbar-height);
  right: -340px;
  bottom: 0;
  width: 340px;
  background: var(--mv-surface);
  border-left: 1px solid var(--mv-border);
  box-shadow: var(--mv-shadow-soft-hover);
  z-index: var(--mv-z-dropdown);
  transition: right 0.25s ease;
  overflow-y: auto;
}

.mv-side-panel.active {
  right: 0;
}

.mv-side-panel a {
  color: var(--mv-text);
}

.mv-side-panel a:hover {
  background: var(--mv-surface-2);
}

.mv-notification-item {
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius-md);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.mv-notification-time {
  color: var(--mv-text-muted);
  font-size: 0.75rem;
}


.provider-checkbox {
  display: none !important;
}
/*estilos para los tabs seleccionables de solicitar provedor */
/* ITEM NORMAL */
.provider-item {
  transition: all .2s ease;
}

/* ITEM SELECCIONADO */
.provider-item.selected {
  background-color: #d1fae5; /* verde suave */
  border-left: 4px solid #10b981;
}

/* TEXTO */
.provider-item.selected strong {
  color: #065f46;
}

/* OCULTAR CHECK */
.provider-item.selected input[type="checkbox"] {
  display: none;
}

.provider-item:hover {
  background-color: #f0fdf4;
  cursor: pointer;
}


/* --------------------
   Timeline / Steps
   -------------------- */
.mv-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 0;
}

.mv-timeline-step {
  flex: 1;
  min-width: 80px;
  text-align: center;
  position: relative;
}

.mv-timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 2px;
  background: var(--mv-border);
}

.mv-timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--mv-border-strong);
  background: var(--mv-surface);
  color: var(--mv-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.mv-timeline-step.done .mv-timeline-dot {
  border-color: var(--mv-primary);
  background: var(--mv-primary);
  color: #fff;
}

.mv-timeline-step.current .mv-timeline-dot {
  border-color: var(--mv-primary);
  background: var(--mv-primary);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(var(--mv-primary-rgb), 0.2);
}

.mv-timeline-label {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mv-text-muted);
  font-weight: 700;
}

/* --------------------
   Validation Code Panel
   -------------------- */
.mv-validation-card {
  border: 1px solid rgba(var(--mv-primary-rgb), 0.3);
  border-radius: var(--mv-radius-lg);
  background: var(--mv-surface);
  box-shadow: var(--mv-shadow-soft);
}

.mv-validation-code {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.35rem;
  font-weight: 700;
  color: var(--mv-primary);
  border: 2px dashed rgba(var(--mv-primary-rgb), 0.4);
  border-radius: var(--mv-radius-md);
  text-align: center;
  padding: 0.5rem 0.75rem;
  background: var(--mv-success-soft);
}

.mv-validation-caption {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--mv-text-muted);
  font-weight: 700;
}

/* --------------------
   Utility classes
   -------------------- */
.bg-surface {
  background: var(--mv-surface) !important;
}

.rounded-xl {
  border-radius: var(--mv-radius-lg) !important;
}

.shadow-soft {
  box-shadow: var(--mv-shadow-soft) !important;
}

.mv-search,
.topbar-search {
  min-width: 180px;
  width: clamp(140px, 14vw, 210px);
}

.mv-search {
  padding-left: 2.2rem;
  height: 38px;
}

.mv-search-wrap {
  position: relative;
  width: clamp(140px, 14vw, 210px);
}

.mv-search-wrap .mv-search {
  width: 100%;
}

.mv-search-wrap i {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mv-text-muted);
  font-size: 0.85rem;
}

.mv-notification-badge {
  position: absolute;
  top: -3px;
  right: -3px;
}

.mv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--mv-border);
}

.mv-avatar-sm {
  width: 32px;
  height: 32px;
}

#profile-toggle {
  padding: 0.28rem 0.58rem;
}

#profile-toggle span {
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mv-avatar-lg {
  width: 72px;
  height: 72px;
}

.swal2-popup,
.dropdown-menu,
.modal-content {
  background: var(--mv-surface);
  color: var(--mv-text);
  border-color: var(--mv-border);
  border-radius: var(--mv-radius-lg);
}

/* Webcam field ---------------------------------------------------------- */
.webcam-input-component {
  width: min(100%, 720px);
  margin-inline: auto;
}

.webcam-input-component__preview {
  display: block;
  width: 100%;
  max-height: 70vh;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #000;
}

.webcam-input-component__actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.webcam-input-component__actions .btn {
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .swal2-webcam-modal {
    width: calc(100% - 1rem) !important;
    padding-bottom: 0.9rem;
  }

  .swal2-webcam-modal .swal2-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 1rem auto 0.25rem;
    font-size: 0.65rem;
  }

  .swal2-webcam-modal .swal2-title {
    padding: 0.55rem 1rem 0;
    font-size: 1.25rem;
  }

  .swal2-webcam-modal .swal2-html-container {
    margin: 0.65rem 0.75rem 0.25rem;
    overflow: visible;
  }

  .swal2-webcam-modal .form-group > label {
    margin-top: 0 !important;
    font-size: 1rem;
  }

  .swal2-webcam-modal .webcam-input-component__preview {
    max-height: min(52vh, 420px);
  }

  .webcam-input-component__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .webcam-input-component__actions .btn {
    min-height: 42px;
    padding-inline: 0.65rem;
  }

  .webcam-input-component__actions .btn:first-child {
    grid-column: 1 / -1;
  }

  .swal2-webcam-modal .swal2-actions {
    margin-top: 0.85rem;
    gap: 0.5rem;
  }

  .swal2-webcam-modal .swal2-actions .btn {
    margin: 0;
    white-space: nowrap;
  }
}

/* --------------------
   Responsive
   -------------------- */
@media (max-width: 991.98px) {
  .mv-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  body.sidebar-open .mv-sidebar {
    transform: translateX(0);
  }

  .mv-content {
    margin-left: 0;
    padding: 0.5rem 0.6rem 0.75rem;
  }

  .mv-topbar {
    padding: 0.4rem 0.7rem;
  }
}

@media (max-width: 1366px) {
  .mv-search-wrap {
    display: none !important;
  }
}

@media (max-width: 1920px) {
  .theme-text {
    display: none !important;
  }
}

@media (min-width: 1921px) {
  .theme-text {
    display: inline !important;
  }
}

@media (max-width: 1520px) {
  .mv-search-wrap {
    display: none !important;
  }
}

[data-theme="dark"] .table thead th,
[data-theme="dark"] .table tbody tr:hover,
[data-theme="dark"] .form-control,
[data-theme="dark"] .custom-select,
[data-theme="dark"] .badge-soft {
  color: var(--mv-text);
}

    .mv-card-tone {
        border: 1px solid var(--mv-border);
        border-left-width: 4px;
        transition: transform .2s ease, box-shadow .2s ease;
    }

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

    .mv-card-tone .fa-lg {
        opacity: .85;
    }

    .mv-card-tone--green {
        border-left-color: var(--mv-success);
        background: linear-gradient(180deg, var(--mv-surface), #f5fcf8);
    }

    .mv-card-tone--blue {
        border-left-color: var(--mv-info);
        background: linear-gradient(180deg, var(--mv-surface), #eefaf5);
    }

    .mv-card-tone--amber {
        border-left-color: var(--mv-warning);
        background: linear-gradient(180deg, var(--mv-surface), #faf7ee);
    }

    .mv-card-tone--red {
        border-left-color: var(--mv-danger);
        background: linear-gradient(180deg, var(--mv-surface), #fef4f6);
    }

    [data-theme="dark"] .mv-card-tone--green,
    [data-theme="dark"] .mv-card-tone--blue,
    [data-theme="dark"] .mv-card-tone--amber,
    [data-theme="dark"] .mv-card-tone--red {
        background: var(--mv-surface);
    }

    .mv-profile-photo .mv-avatar {
      width: 140px;
      height: 140px;
    }

    #tabRecollectionDetail .mv-recollection-summary {
      border: 1px solid rgba(var(--mv-primary-rgb), 0.25);
      background: linear-gradient(180deg, var(--mv-surface), rgba(var(--mv-primary-rgb), 0.05));
      box-shadow: var(--mv-shadow-soft);
    }

    #tabRecollectionDetail .min-w-0 {
      min-width: 0;
    }

    #tabRecollectionDetail .mv-icon-soft--sm {
      width: 40px;
      height: 40px;
      border-radius: 12px;
    }

    #tabRecollectionDetail .mv-reco-item {
      display: flex;
      gap: 0.75rem;
      align-items: flex-start;
      min-width: 0;
    }

    #tabRecollectionDetail .mv-reco-label {
      font-size: 0.7rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--mv-text-muted);
      font-weight: 700;
      margin-bottom: 2px;
    }

    #tabRecollectionDetail .mv-reco-value {
      font-weight: 600;
      color: var(--mv-text);
    }

    #recollectionsTable .mv-reco-list,
    #tabRecollectionDetail .mv-reco-list {
      list-style: none;
      padding-left: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
      white-space: normal;
    }

    #recollectionsTable .mv-reco-list li,
    #tabRecollectionDetail .mv-reco-list li {
      position: relative;
      padding-left: 12px;
      line-height: 1.3;
      overflow-wrap: anywhere;
    }

    #recollectionsTable .mv-reco-list li::before,
    #tabRecollectionDetail .mv-reco-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.65em;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--mv-success);
      transform: translateY(-50%);
    }

    #tabRecollectionDetail .mv-validation-card--recollection {
      background: linear-gradient(180deg, var(--mv-surface), var(--mv-success-soft));
    }

    #tabRecollectionDetail .mv-timeline-legend {
      display: inline-flex;
      gap: 12px;
      align-items: center;
      color: var(--mv-text-muted);
      font-size: 0.75rem;
      font-weight: 600;
    }

    #tabRecollectionDetail .mv-legend-item {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      white-space: nowrap;
    }

    #tabRecollectionDetail .mv-legend-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--mv-border-strong);
      opacity: 0.75;
    }

    #tabRecollectionDetail .mv-legend-dot--done {
      background: var(--mv-primary);
      opacity: 1;
    }

    #tabRecollectionDetail .mv-timeline {
      justify-content: flex-start;
      overflow-x: auto;
      padding-bottom: 0.5rem;
      gap: 1rem;
    }

    #tabRecollectionDetail .mv-timeline-dot {
      width: 44px;
      height: 44px;
    }

    #tabRecollectionDetail .mv-timeline-step:not(:last-child)::after {
      top: 22px;
      width: 100%;
    }

    #tabRecollectionDetail .mv-timeline-label {
      text-transform: none;
      letter-spacing: 0;
      font-size: 0.78rem;
    }
/* =========================================================
   MacVision Minimal Admin Theme (Bootstrap 4.6 Overrides)
   ========================================================= */

/* --------------------
   Base / Typography
   -------------------- */
html,
body {
  background: var(--mv-bg);
  color: var(--mv-text);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

.font-weight-semibold {
  font-weight: 600 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--mv-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-muted,
.mv-text-muted,
.text-muted-2 {
  color: var(--mv-text-muted) !important;
}

a {
  color: var(--mv-primary);
}

a:hover {
  color: var(--mv-primary-600);
  text-decoration: none;
}

/* --------------------
   Layout
   -------------------- */
.mv-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--mv-z-topbar);
  height: var(--mv-topbar-height);
  background: var(--mv-surface);
  border-bottom: 1px solid var(--mv-border);
  padding: 0.45rem 1rem;
  gap: 0.75rem;
}

.mv-topbar-left,
.mv-topbar-right {
  min-width: 0;
}

.mv-topbar-left {
  flex: 1 1 auto;
}

.mv-topbar-right {
  flex: 0 0 auto;
  gap: 0.45rem;
}

.mv-topbar-right .mr-2 {
  margin-right: 0.35rem !important;
}

.mv-topbar-right .mr-3 {
  margin-right: 0.45rem !important;
}

.mv-topbar-right .btn {
  white-space: nowrap;
}

.mv-topbar .btn {
  border-color: var(--mv-border);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.68rem;
}

.mv-topbar .btn-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mv-topbar .navbar-brand {
  color: var(--mv-text) !important;
  font-weight: 700;
}

.mv-sidebar {
  position: fixed;
  top: var(--mv-topbar-height);
  left: 0;
  bottom: 0;
  width: var(--mv-sidebar-width);
  background: var(--mv-surface);
  border-right: 1px solid var(--mv-border);
  z-index: var(--mv-z-sidebar);
  overflow-y: auto;
  transition: transform 0.25s ease;
}

body.sidebar-collapsed .mv-sidebar {
  transform: translateX(-100%);
}

.mv-sidebar-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--mv-border);
}

.mv-sidebar-section-title {
  padding: 1rem 1.25rem 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mv-text-muted);
  font-weight: 700;
}

.cardBody {
  background: #dafff1;
  border-radius: 12px;
  overflow: hidden;
}

.mv-content {
  margin-top: var(--mv-topbar-height);
  margin-left: var(--mv-sidebar-width);
  padding: 0.35rem 0.85rem 0.85rem;
  min-height: calc(100vh - var(--mv-topbar-height));
  transition: margin-left 0.25s ease;
}

/* Evita doble estructura cuando una vista incluye layout interno por error */
.mv-content .mv-topbar,
.mv-content .mv-sidebar,
.mv-content .mv-side-panel,
.mv-content .mv-overlay {
  display: none !important;
}

.mv-content .mv-content,
main.mv-content main.mv-content {
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: auto !important;
}

.mv-content > *:first-child {
  margin-top: 0 !important;
}

.mv-content .container,
.mv-content .container-fluid {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

body.sidebar-collapsed .mv-content {
  margin-left: 0;
}

.mv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 24, 17, 0.32);
  z-index: var(--mv-z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mv-overlay.active,
body.sidebar-open .mv-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------
   Sidebar navigation
   -------------------- */
.mv-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0.2rem 0.75rem;
  padding: 0.675rem 0.875rem;
  border-radius: 12px;
  color: var(--mv-text-muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mv-nav-item i {
  width: 16px;
  text-align: center;
}

.mv-nav-item:hover {
  background: var(--mv-surface-2);
  color: var(--mv-text);
  border-color: var(--mv-border);
}

.mv-nav-item.active {
  color: var(--mv-primary);
  background: var(--mv-success-soft);
  border-color: transparent;
}

.mv-nav-item.active::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 10%;
  height: 80%;
  width: 3px;
  border-radius: 4px;
  background: var(--mv-primary);
}

.mv-sidebar .accordion .card,
.mv-sidebar .accordion .card-header,
.mv-sidebar .accordion .card-body {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mv-sidebar .accordion .btn-link {
  color: var(--mv-text-muted);
  text-decoration: none;
  width: 100%;
  padding: 0.6rem 1rem;
}

.mv-sidebar .accordion-icon {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.mv-sidebar .btn-link[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.mv-sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--mv-border);
}

.mv-sidebar-footer .mv-nav-item {
  margin: 0;
  color: var(--mv-danger);
  background: var(--mv-danger-soft);
}

/* --------------------
   Bootstrap overrides
   -------------------- */
.card {
  background: var(--mv-surface);
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius-lg);
  box-shadow: var(--mv-shadow-soft);
}

.card-header,
.card-footer {
  background: var(--mv-surface);
  border-color: var(--mv-border);
}
.btnListBorder1 {
  border: 1px solid #10ac9f;
  color: #10ac9f;
  background-color: transparent;
}

.btnListBorder1:hover {
  background-color: #10ac9f;
  color: #fff !important;
}

.btnListBorder2 {
  background-color: #10ac9f;
  color: #fff !important;
  border: 1px solid #10ac9f;
}
.role-chip {
  transition: all 0.2s ease;
  border-radius: 20px;
  padding: 4px 10px;
}

.card-title {
  color: var(--mv-text);
}

.btn {
  border-radius: var(--mv-radius-md);
  font-weight: 500;
  box-shadow: none;
}

.btn:focus,
.btn.focus {
  box-shadow: var(--mv-focus-ring);
}

.btn-primary {
  background: var(--mv-primary);
  border-color: var(--mv-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--mv-primary-600);
  border-color: var(--mv-primary-600);
}

.btn-outline-secondary,
.btn-secondary {
  border-color: var(--mv-border-strong);
  background: var(--mv-surface);
  color: var(--mv-text);
}

.btn-outline-secondary:hover,
.btn-secondary:hover {
  background: var(--mv-surface-2);
  border-color: var(--mv-border-strong);
  color: var(--mv-text);
}

.form-control,
.custom-select {
  border-radius: var(--mv-radius-md);
  border: 1px solid var(--mv-border);
  background: var(--mv-surface-2);
  color: var(--mv-text);
}

.form-control::placeholder {
  color: var(--mv-text-muted);
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--mv-primary);
  box-shadow: var(--mv-focus-ring);
  background: var(--mv-surface);
  color: var(--mv-text);
}

.table {
  color: var(--mv-text);
}

.table thead th {
  background: var(--mv-surface-3);
  color: var(--mv-text-muted);
  border-bottom: 1px solid var(--mv-border);
  border-top: 0;
  font-weight: 600;
}

.table td {
  border-top: 0;
  border-bottom: 1px solid var(--mv-border);
  vertical-align: middle;
}

.table tbody tr:hover {
  background: var(--mv-surface-2);
}

.table .mv-ref,
.table td:first-child strong,
.table td:first-child .font-weight-bold {
  color: var(--mv-primary);
}

/* --------------------
   Badges / Pills
   -------------------- */
.badge {
  border-radius: var(--mv-radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.32rem 0.62rem;
}

.badge.badge-light,
.badge-soft {
  background: var(--mv-surface-3);
  color: var(--mv-text-muted);
  border: 1px solid var(--mv-border);
}

.badge-programado,
.badge-solicitado,
.badge-en-ruta,
.badge-recolectando,
.badge-recolectado,
.badge-pendiente,
.badge-completado {
  border: 1px solid transparent;
}

.badge-programado,
.status-programado { background: var(--mv-info-soft); color: var(--mv-info); border-color: rgba(75, 191, 154, 0.3); }
.badge-solicitado,
.status-solicitado { background: var(--mv-warning-soft); color: var(--mv-warning); border-color: rgba(188, 167, 100, 0.3); }
.badge-en-ruta,
.status-en-ruta { background: var(--mv-surface-3); color: var(--mv-text-muted); border-color: var(--mv-border); }
.badge-recolectando,
.status-recolectando { background: var(--mv-success-soft); color: var(--mv-success); border-color: rgba(var(--mv-primary-rgb), 0.28); }
.badge-recolectado,
.status-recolectado,
.badge-completado,
.status-completado { background: var(--mv-success-soft); color: var(--mv-success); border-color: rgba(var(--mv-primary-rgb), 0.34); }
.badge-pendiente,
.status-pendiente { background: var(--mv-danger-soft); color: var(--mv-danger); border-color: rgba(214, 117, 132, 0.3); }

/* --------------------
   KPI / module cards
   -------------------- */
.mv-kpi-card,
.mv-module-card {
  position: relative;
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius-lg);
  background: var(--mv-surface);
  box-shadow: var(--mv-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mv-kpi-card:hover,
.mv-module-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mv-shadow-soft-hover);
}

.mv-kpi-card {
  border-left: 4px solid var(--mv-primary);
}

.mv-kpi-title {
  font-size: 0.82rem;
  color: var(--mv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mv-kpi-value {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.1;
  color: var(--mv-text);
  font-weight: 700;
}

.mv-icon-soft {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mv-success-soft);
  color: var(--mv-primary);
}

/* --------------------
   Breadcrumbs / headers
   -------------------- */
.mv-page-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.25rem;
}

.breadcrumb {
  background: transparent;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: var(--mv-text-muted);
  font-size: 0.88rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--mv-border-strong);
}

/* --------------------
   Side panels
   -------------------- */
.mv-side-panel {
  position: fixed;
  top: var(--mv-topbar-height);
  right: -340px;
  bottom: 0;
  width: 340px;
  background: var(--mv-surface);
  border-left: 1px solid var(--mv-border);
  box-shadow: var(--mv-shadow-soft-hover);
  z-index: var(--mv-z-dropdown);
  transition: right 0.25s ease;
  overflow-y: auto;
}

.mv-side-panel.active {
  right: 0;
}

.mv-side-panel a {
  color: var(--mv-text);
}

.mv-side-panel a:hover {
  background: var(--mv-surface-2);
}

.mv-notification-item {
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius-md);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.mv-notification-time {
  color: var(--mv-text-muted);
  font-size: 0.75rem;
}

/* --------------------
   Timeline / Steps
   -------------------- */
.mv-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 0;
}

.mv-timeline-step {
  flex: 1;
  min-width: 80px;
  text-align: center;
  position: relative;
}

.mv-timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 2px;
  background: var(--mv-border);
}

.mv-timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--mv-border-strong);
  background: var(--mv-surface);
  color: var(--mv-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.mv-timeline-step.done .mv-timeline-dot {
  border-color: var(--mv-primary);
  background: var(--mv-primary);
  color: #fff;
}

.mv-timeline-step.current .mv-timeline-dot {
  border-color: var(--mv-primary);
  background: var(--mv-primary);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(var(--mv-primary-rgb), 0.2);
}

.mv-timeline-label {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mv-text-muted);
  font-weight: 700;
}

/* --------------------
   Validation Code Panel
   -------------------- */
.mv-validation-card {
  border: 1px solid rgba(var(--mv-primary-rgb), 0.3);
  border-radius: var(--mv-radius-lg);
  background: var(--mv-surface);
  box-shadow: var(--mv-shadow-soft);
}

.mv-validation-code {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.35rem;
  font-weight: 700;
  color: var(--mv-primary);
  border: 2px dashed rgba(var(--mv-primary-rgb), 0.4);
  border-radius: var(--mv-radius-md);
  text-align: center;
  padding: 0.5rem 0.75rem;
  background: var(--mv-success-soft);
}

.mv-validation-caption {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--mv-text-muted);
  font-weight: 700;
}

/* --------------------
   Utility classes
   -------------------- */
.bg-surface {
  background: var(--mv-surface) !important;
}

.rounded-xl {
  border-radius: var(--mv-radius-lg) !important;
}

.shadow-soft {
  box-shadow: var(--mv-shadow-soft) !important;
}

.mv-search,
.topbar-search {
  min-width: 180px;
  width: clamp(140px, 14vw, 210px);
}

.mv-search {
  padding-left: 2.2rem;
  height: 38px;
}

.mv-search-wrap {
  position: relative;
  width: clamp(140px, 14vw, 210px);
}

.mv-search-wrap .mv-search {
  width: 100%;
}

.mv-search-wrap i {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mv-text-muted);
  font-size: 0.85rem;
}

#notifications-toggle .mv-notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(35%, -35%);
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
}

.mv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--mv-border);
}

.mv-avatar-sm {
  width: 32px;
  height: 32px;
}

#profile-toggle {
  padding: 0.28rem 0.58rem;
}

#profile-toggle span {
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mv-avatar-lg {
  width: 72px;
  height: 72px;
}

.swal2-popup,
.dropdown-menu,
.modal-content {
  background: var(--mv-surface);
  color: var(--mv-text);
  border-color: var(--mv-border);
  border-radius: var(--mv-radius-lg);
}

/* --------------------
   Responsive
   -------------------- */
@media (max-width: 991.98px) {
  .mv-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  body.sidebar-open .mv-sidebar {
    transform: translateX(0);
  }

  .mv-content {
    margin-left: 0;
    padding: 0.5rem 0.6rem 0.75rem;
  }

  .mv-topbar {
    padding: 0.4rem 0.7rem;
  }
}

@media (max-width: 1366px) {
  .mv-search-wrap {
    display: none !important;
  }
}

@media (max-width: 1920px) {
  .theme-text {
    display: none !important;
  }
}

@media (min-width: 1921px) {
  .theme-text {
    display: inline !important;
  }
}

@media (max-width: 1520px) {
  .mv-search-wrap {
    display: none !important;
  }
}

[data-theme="dark"] .table thead th,
[data-theme="dark"] .table tbody tr:hover,
[data-theme="dark"] .form-control,
[data-theme="dark"] .custom-select,
[data-theme="dark"] .badge-soft {
  color: var(--mv-text);
}

    .mv-card-tone {
        border: 1px solid var(--mv-border);
        border-left-width: 4px;
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .mv-card-tone:hover {
      transform: translateY(-5px);
      box-shadow: var(--mv-shadow-soft-hover)
    }

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

    .mv-card-tone .fa-lg {
        opacity: .85;
    }

    .mv-card-tone--green {
        border-left-color: var(--mv-success);
        background: linear-gradient(180deg, var(--mv-surface), #f5fcf8);
    }

    .mv-card-tone--blue {
        border-left-color: var(--mv-info);
        background: linear-gradient(180deg, var(--mv-surface), #eefaf5);
    }

    .mv-card-tone--amber {
        border-left-color: var(--mv-warning);
        background: linear-gradient(180deg, var(--mv-surface), #faf7ee);
    }

    .mv-card-tone--red {
        border-left-color: var(--mv-danger);
        background: linear-gradient(180deg, var(--mv-surface), #fef4f6);
    }

    [data-theme="dark"] .mv-card-tone--green,
    [data-theme="dark"] .mv-card-tone--blue,
    [data-theme="dark"] .mv-card-tone--amber,
    [data-theme="dark"] .mv-card-tone--red {
        background: var(--mv-surface);
    }

    #recollectionDetailsPanel .detail-card,
    #recollectionDetailsPanel .detail-code-card {
      background: #f6fbf8;
      border: 1px solid #dfeee5;
      border-radius: 12pz;
      padding: 16px;
    }

    #recollectionDetailsPanel .detail-title {
      font-weight: 600;
      color: #2a4b3f;
      margin-bottom: 10px;
    }

    #recollectionDetailsPanel .detail-row {
      display: flex;
      gap: 8px;
      margin-bottom: 6px;
      font-size: 14px;
    }

    #recollectionDetailsPanel .detail-label {
      color: #6b7b7a;
      min-width: 110px;
    }

    #recollectionDetailsPanel .detail-code-card {
      text-align: center;
      background: #ecfbf3;
      border: 1px dashed #6ed19c
    }

    #recollectionDetailsPanel .detail-code {
      font-size: 32px;
      letter-spacing: 6px;
      font-weight: 700;
      color: #18b574;
      margin: 10px 0;
    }

    #recollectionDetailsPanel .detail-hint,
    #recollectionDetailsPanel .detail-sub {
      font-size: 12px;
      color: #6b7b74;
    }

    #recollectionDetailsPanel .timeline {
      display: flex;
      gap: 18px;
      overflow-x: auto;
      padding-bottom: 6px;
    }

    #recollectionDetailsPanel .timelie-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: #8a9691;
    }

    #recollectionDetailsPanel .timeline-dot {
      width: 42px;
      height: 42px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid #cfd9d5;
      background: #f5f7f6;
      color: #9aa3a0;
      font-weight: 700;
    }

    #recollectionDetailsPanel .timeline-items.is-donde .timeline-dot {
      background: #e4fbf1;
      border-color: #18b574;
      color: #18b574;
      box-shadow: 0 0 0 4px rgba(24, 181, 116, 0.15);
    }

    #recollectionDetailsPanel .timeline-label {
      text-align: center;
    }
    .mv-profile-photo .mv-avatar {
      width: 140px;
      height: 140px;
    }

    /* Subsection divider inside accordion */
    .mv-subsection-divider {
      position: relative;
      display: flex;
      align-items: center;
      padding: 0.6rem 0.75rem 0.2rem;
      margin-top: 0.25rem;
    }

    .mv-subsection-hr {
      flex: 1;
      border: none;
      border-top: 1px solid var(--mv-border-strong);
      margin: 0;
    }

    .mv-subsection-label {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--mv-primary);
      background: var(--mv-surface);
      padding: 0 0.45rem;
      white-space: nowrap;
    }

    .mv-sidebar-footer {
      margin-top: auto;
      padding: 1rem 1.25rem 1.25rem;
      border-top: 1px solid var(--mv-border);
    }

    .mv-sidebar-footer .mv-nav-item {
      margin: 0;
      color: var(--mv-danger);
      background: var(--mv-danger-soft);
    }
    
    .mv-sidebar .mv-sidebar-section-title,
      .mv-sidebar .mv-nav-item > span,
      .mv-sidebar .mv-menu-group-header .btn-link > span,
      .mv-sidebar .mv-menu-group .card-body .btn-link > span {
        color: #000 !important;
    }
