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

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

/* --------------------
   Base / Typography
   -------------------- */
html,
body {
  background: radial-gradient(1200px 620px at 0% 100%, rgba(var(--mv-accent-rgb), 0.22), transparent 60%), var(--mv-bg);
  color: var(--mv-text);
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  color: var(--mv-text);
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  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: rgba(248, 245, 253, 0.9);
  border-bottom: 1px solid rgba(var(--mv-primary-rgb), 0.1);
  padding: 0.45rem 1rem;
  gap: 0.75rem;
  backdrop-filter: blur(10px);
}

.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;
  border-width: 1px;
}

.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: linear-gradient(180deg, #36306f 0%, #4a3b8e 52%, #8b75df 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  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 rgba(255, 255, 255, 0.18);
}

.mv-sidebar h1,
.mv-sidebar h2,
.mv-sidebar h3,
.mv-sidebar h4,
.mv-sidebar h5,
.mv-sidebar h6 {
  color: #f8f7ff;
}

.mv-sidebar .text-muted,
.mv-sidebar .text-muted-2,
.mv-sidebar .mv-text-muted,
.mv-sidebar small {
  color: rgba(240, 237, 255, 0.86) !important;
}

.mv-sidebar-section-title {
  padding: 1rem 1.25rem 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(248, 246, 255, 0.94);
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(22, 18, 52, 0.32);
}

.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(24, 28, 34, 0.34);
  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.25rem 0.8rem;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  color: #f8f7ff;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-shadow: 0 1px 1px rgba(22, 18, 52, 0.3);
}

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

.mv-nav-item:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.mv-nav-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(160, 149, 255, 0.58), rgba(122, 110, 233, 0.58));
  border-color: rgba(255, 255, 255, 0.38);
}

.mv-nav-item.active::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 10%;
  height: 80%;
  width: 2px;
  border-radius: 4px;
  background: #f3f1ff;
}

.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: #f8f7ff;
  text-decoration: none;
  width: 100%;
  padding: 0.6rem 1rem;
  text-shadow: 0 1px 1px rgba(22, 18, 52, 0.3);
}

.mv-sidebar .accordion .btn-link:hover,
.mv-sidebar .accordion .btn-link:focus {
  color: #ffffff;
}

.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 rgba(255, 255, 255, 0.18);
}

.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);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  border-color: rgba(var(--mv-primary-rgb), 0.16);
  box-shadow: var(--mv-shadow-soft-hover);
}

.card-header,
.card-footer {
  background: var(--mv-surface);
  border-color: var(--mv-border);
}

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

.btn {
  border-radius: var(--mv-radius-md);
  font-weight: 500;
  box-shadow: none;
  border-width: 1px;
  transition: all 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, var(--mv-accent), var(--mv-accent-600));
  border-color: var(--mv-accent-600);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(180deg, var(--mv-accent-600), var(--mv-accent-600));
  border-color: var(--mv-accent-600);
  transform: translateY(-1px);
}

.btn-premium {
  background: #d4af37;
  border-color: #d4af37;
  color: #08326a;
  font-weight: 700;
}

.btn-premium:hover,
.btn-premium:focus {
  background: #c59f2a;
  border-color: #c59f2a;
  color: #08326a;
}

.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);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.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: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.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-premium {
  background: #d4af37;
  color: #08326a;
  border: 1px solid #c59f2a;
}

.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(var(--mv-info-rgb), 0.28); }
.badge-solicitado,
.status-solicitado { background: var(--mv-warning-soft); color: var(--mv-warning); border-color: rgba(var(--mv-warning-rgb), 0.28); }
.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-success-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-success-rgb), 0.34); }
.badge-pendiente,
.status-pendiente { background: var(--mv-danger-soft); color: var(--mv-danger); border-color: rgba(var(--mv-danger-rgb), 0.28); }

/* --------------------
   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: 2px solid rgba(var(--mv-primary-rgb), 0.5);
  background: linear-gradient(180deg, var(--mv-surface), rgba(var(--mv-highlight-rgb), 0.12));
}

.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: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--mv-success-soft), rgba(var(--mv-highlight-rgb), 0.16));
  color: var(--mv-primary-600);
}

/* --------------------
   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;
  background: var(--mv-surface);
}

.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: 1px;
  background: var(--mv-border);
}

.mv-timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px 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-accent);
  background: var(--mv-accent);
  color: #fff;
}

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

.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-accent-600);
  border: 1px dashed rgba(var(--mv-accent-rgb), 0.45);
  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);
  box-shadow: var(--mv-shadow-soft-hover);
}

/* --------------------
   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);
}

/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
/* Conversation Page */
.page-conversation {
  margin-left: -0.7rem;
  margin-right: -0.7rem;
}

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

.page-conversation .content {
  padding: var(--mv-chat-content-padding) !important;
  overflow: hidden;
  height: var(--mv-chat-content-height);
}

.page-conversation .whatsapp-full-container {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
  background-color: var(--mv-chat-container-bg);
  overflow: hidden;
}

.page-conversation .chat-list-panel {
  max-width: var(--mv-chat-list-width);
  flex: 1;
  border-right: var(--mv-chat-list-border-right);
  display: flex;
  flex-direction: column;
  background-color: var(--mv-chat-list-panel-bg);
  z-index: var(--mv-chat-list-panel-z);
}

.page-conversation .chat-list-header {
  background-color: var(--mv-chat-header-bg);
  padding: var(--mv-chat-header-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--mv-chat-header-min-height);
}

.page-conversation #chat-header {
  justify-content: flex-start;
  gap: 12px;
}

.page-conversation .chat-header-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.page-conversation #chat-header-title {
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-conversation .chat-back-btn {
  display: none;
  padding: 0;
  margin-right: 2px;
  color: var(--mv-chat-header-icon-color);
  font-size: 18px;
  line-height: 1;
}

.page-conversation .user-avatar {
  width: var(--mv-chat-avatar-size);
  height: var(--mv-chat-avatar-size);
  border-radius: 50%;
}

.page-conversation .header-right i {
  margin-left: 20px;
  font-size: 20px;
  color: var(--mv-chat-header-icon-color);
  cursor: pointer;
}

.page-conversation .search-container {
  background-color: var(--mv-chat-search-container-bg);
  padding: var(--mv-chat-search-container-padding);
  border-bottom: var(--mv-chat-search-container-border-bottom);
}

.page-conversation .search-bar {
  background-color: var(--mv-chat-search-bar-bg);
  border-radius: var(--mv-chat-search-bar-radius);
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.page-conversation .search-bar i {
  color: var(--mv-chat-search-icon-color);
  font-size: 14px;
}

.page-conversation .search-bar input {
  background-color: transparent;
  border: none;
  color: var(--mv-chat-search-input-color);
  padding: var(--mv-chat-search-input-padding);
  width: 100%;
  outline: none;
}

.page-conversation .chat-list-body {
  flex-grow: 1;
  overflow-y: auto;
}

.page-conversation .chat-item {
  display: flex;
  padding: 12px 16px;
  cursor: pointer;
  border-top: var(--mv-chat-item-border-top);
}

.page-conversation .chat-item:hover {
  background-color: var(--mv-chat-item-hover-bg);
}

.page-conversation .chat-item.active {
  background-color: var(--mv-chat-item-active-bg);
}

.page-conversation .profile-pic img {
  width: var(--mv-chat-profile-pic-size);
  height: var(--mv-chat-profile-pic-size);
  border-radius: 50%;
  margin-right: var(--mv-chat-profile-pic-margin-right);
}

.page-conversation .chat-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.page-conversation .chat-line-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-conversation .chat-name {
  font-size: 17px;
  font-weight: 400;
  color: var(--mv-chat-name-color) !important;
}

.page-conversation .chat-timestamp {
  font-size: 12px;
  color: var(--mv-chat-time-color);
}

.page-conversation .chat-line-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.page-conversation .last-message {
  font-size: 14px;
  color: var(--mv-chat-last-message-color) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-conversation .unread-badge {
  background-color: var(--mv-chat-unread-bg);
  color: var(--mv-chat-unread-color);
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  padding: 0 4px;
}

.page-conversation .conversation-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.page-conversation .conversation-view {
  flex-grow: 1;
  padding: 0;
  overflow-y: auto;
  background-image: var(--mv-chat-conversation-bg-image);
  background-repeat: var(--mv-chat-conversation-bg-repeat);
  display: flex;
  flex-direction: column;
}

.page-conversation .initial-message-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  color: var(--mv-chat-initial-text-color);
}

.page-conversation .initial-message-view img {
  width: var(--mv-chat-initial-icon-width);
  opacity: 0.5;
}

.page-conversation .initial-message-view h1 {
  font-size: 32px;
  margin-top: 20px;
}

.page-conversation .initial-message-view p {
  font-size: 14px;
}

.page-conversation .conversation-footer {
  background-color: var(--mv-chat-footer-bg);
  padding: var(--mv-chat-footer-padding);
  border-top: var(--mv-chat-footer-border-top);
  display: flex;
  align-items: center;
  gap: var(--mv-chat-footer-gap);
}

.page-conversation #chat-message-input {
  background-color: var(--mv-chat-input-bg);
  border: none;
  color: var(--mv-chat-input-color);
}

.page-conversation #chat-message-input::placeholder {
  color: var(--mv-chat-status-color);
}

.page-conversation .modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--mv-chat-modal-title-color);
}

.page-conversation .chat-header-status {
  font-size: 13px;
  color: var(--mv-chat-status-color);
}

.page-conversation .chat-list-body::-webkit-scrollbar,
.page-conversation .conversation-view::-webkit-scrollbar,
.page-conversation .messages-container::-webkit-scrollbar {
  width: var(--mv-chat-scrollbar-width);
  background: transparent;
}

.page-conversation .chat-list-body::-webkit-scrollbar-thumb,
.page-conversation .conversation-view::-webkit-scrollbar-thumb {
  background-color: var(--mv-chat-scrollbar-thumb);
  border-radius: 3px;
}

.page-conversation .messages-container {
  display: flex;
  flex-direction: column;
  padding: var(--mv-chat-messages-padding);
  gap: var(--mv-chat-messages-gap);
}

.page-conversation .message-bubble {
  max-width: var(--mv-chat-bubble-max-width);
  padding: var(--mv-chat-bubble-padding);
  border-radius: var(--mv-chat-bubble-radius);
  font-size: var(--mv-chat-bubble-font-size);
  line-height: var(--mv-chat-bubble-line-height);
  position: relative;
  word-wrap: break-word;
  color: var(--mv-chat-bubble-color) !important;
  box-shadow: var(--mv-chat-bubble-shadow);
  margin-bottom: 2px;
  display: inline-block;
}

.page-conversation .message-bubble.received {
  align-self: flex-start !important;
  background-color: var(--mv-chat-received-bg) !important;
  color: var(--mv-chat-received-color) !important;
  border-top-left-radius: 0;
  margin-right: auto !important;
}

.page-conversation .message-bubble.received a {
  color: var(--mv-chat-received-link);
  text-decoration: underline;
}

.page-conversation .message-bubble.sent {
  align-self: flex-end !important;
  background-color: var(--mv-chat-sent-bg) !important;
  color: var(--mv-chat-sent-color) !important;
  border-top-right-radius: 0;
  margin-left: auto !important;
}

.page-conversation .message-bubble.sent a {
  color: var(--mv-chat-sent-link);
  text-decoration: underline;
}

.page-conversation .message-bubble img,
.page-conversation .message-bubble video {
  border-radius: var(--mv-chat-message-media-radius);
  margin-bottom: 5px;
  cursor: pointer;
}

.page-conversation .message-bubble img[style*="150px"] {
  cursor: default;
}

.page-conversation .message-timestamp {
  font-size: 11px;
  color: var(--mv-chat-timestamp-color);
  float: right;
  margin-left: 8px;
  margin-top: 4px;
  vertical-align: bottom;
}

.page-conversation .msg-status {
  font-size: 10px;
  margin-left: 3px;
  display: inline-block;
}

.page-conversation .fa-check,
.page-conversation .fa-check-double {
  color: var(--mv-chat-ack-color);
}

.page-conversation .read-ack {
  color: var(--mv-chat-read-ack-color) !important;
}

@media (max-width: 991.98px) {
  .page-conversation .whatsapp-full-container {
    position: relative;
  }

  .page-conversation .chat-list-panel,
  .page-conversation .conversation-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 0 0 100%;
  }

  .page-conversation .chat-list-panel {
    border-right: none;
  }

  .page-conversation .conversation-panel {
    display: none;
  }

  .page-conversation .whatsapp-full-container.show-conversation .chat-list-panel {
    display: none;
  }

  .page-conversation .whatsapp-full-container.show-conversation .conversation-panel {
    display: flex;
  }

  .page-conversation .chat-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .page-conversation .messages-container {
    padding: 14px 12px;
  }

  .page-conversation .message-bubble {
    max-width: 85%;
  }

  .page-conversation .conversation-footer {
    padding: 10px 12px;
    gap: 10px;
  }
}

@media (min-width: 992px) {
  .page-conversation .conversation-panel {
    display: flex;
  }
}
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

 .mv-card-tone {
        border: 1px solid var(--mv-border);
        border-left-width: 2px;
        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), var(--mv-success-soft));
    }

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

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

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

    [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);
    }


    