/* ==========================================================================
   Ramz SaaS Design System
   ========================================================================== */

:root {
  --ramz-primary: #0F766E;
  --ramz-primary-hover: #0D9488;
  --ramz-primary-soft: rgba(15, 118, 110, 0.1);
  --ramz-secondary: #0F172A;

  --ramz-bg: #F8FAFC;
  --ramz-surface: #FFFFFF;
  --ramz-surface-soft: #F1F5F9;

  --ramz-border: #E2E8F0;
  --ramz-border-strong: #CBD5E1;

  --ramz-text: #0F172A;
  --ramz-text-secondary: #475569;
  --ramz-muted: #64748B;

  --ramz-success: #059669;
  --ramz-warning: #D97706;
  --ramz-danger: #DC2626;
  --ramz-info: #0284C7;

  --ramz-radius-sm: 8px;
  --ramz-radius-md: 10px;
  --ramz-radius-lg: 14px;
  --ramz-radius-full: 999px;
  --ramz-radius: var(--ramz-radius-md);

  --ramz-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --ramz-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);

  --primary-bg-color: var(--ramz-primary);
  --primary-bg-hover: var(--ramz-primary-hover);
  --primary-bg-border: var(--ramz-primary);
}

body.ramz-app {
  --ramz-sidebar-width: 240px;
  --ramz-sidebar-collapsed: 72px;
  --ramz-nav-inset: 0.65rem;
  --ramz-nav-item-gap: 0.12rem;
}

/* Dark mode tokens — keep Ramz surfaces in sync with theme body.dark-theme */
body.ramz-app.dark-theme {
  --ramz-bg: #0f172a;
  --ramz-surface: #1e293b;
  --ramz-surface-soft: #334155;
  --ramz-border: #334155;
  --ramz-border-strong: #475569;
  --ramz-text: #f1f5f9;
  --ramz-text-secondary: #cbd5e1;
  --ramz-muted: #94a3b8;
  --ramz-primary-soft: rgba(45, 212, 191, 0.14);
  --ramz-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --ramz-shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.22);
  background: var(--ramz-bg);
  color: var(--ramz-text);
}

body.ramz-app.dark-theme .page,
body.ramz-app.dark-theme .main-content.app-content,
body.ramz-app.dark-theme .main-container.container-fluid {
  background: var(--ramz-bg);
  color: var(--ramz-text);
}

body.ramz-app.dark-theme .main-header.ramz-topbar,
body.ramz-app.dark-theme .main-sidebar-header,
body.ramz-app.dark-theme .app-sidebar,
body.ramz-app.dark-theme .ramz-sidebar-footer {
  background: var(--ramz-surface) !important;
  border-color: var(--ramz-border) !important;
}

body.ramz-app.dark-theme .ramz-topbar__title,
body.ramz-app.dark-theme .ramz-page-header h1,
body.ramz-app.dark-theme .ramz-page-header .page-title,
body.ramz-app.dark-theme .card-title,
body.ramz-app.dark-theme h1,
body.ramz-app.dark-theme h2,
body.ramz-app.dark-theme h3,
body.ramz-app.dark-theme h4,
body.ramz-app.dark-theme h5,
body.ramz-app.dark-theme h6 {
  color: var(--ramz-text);
}

body.ramz-app.dark-theme .card,
body.ramz-app.dark-theme .ramz-card,
body.ramz-app.dark-theme .dropdown-menu,
body.ramz-app.dark-theme .ramz-topbar__panel,
body.ramz-app.dark-theme .main-profile-menu .dropdown-menu {
  background: var(--ramz-surface) !important;
  border-color: var(--ramz-border) !important;
  color: var(--ramz-text);
}

body.ramz-app.dark-theme .ramz-topbar__search .form-control,
body.ramz-app.dark-theme .form-control,
body.ramz-app.dark-theme .form-select {
  background: var(--ramz-bg) !important;
  border-color: var(--ramz-border) !important;
  color: var(--ramz-text) !important;
}

body.ramz-app.dark-theme .ramz-topbar__icon-btn,
body.ramz-app.dark-theme .ramz-topbar .app-sidebar__toggle a.open-toggle,
body.ramz-app.dark-theme .ramz-topbar .app-sidebar__toggle a.close-toggle {
  color: var(--ramz-text-secondary) !important;
}

body.ramz-app.dark-theme .ramz-topbar__icon-btn:hover,
body.ramz-app.dark-theme .ramz-topbar__icon-btn:focus,
body.ramz-app.dark-theme .ramz-topbar .app-sidebar__toggle a.open-toggle:hover,
body.ramz-app.dark-theme .ramz-topbar .app-sidebar__toggle a.close-toggle:hover {
  background: var(--ramz-surface-soft);
  color: var(--ramz-primary-hover) !important;
}

body.ramz-app.dark-theme .side-menu__item,
body.ramz-app.dark-theme .ramz-sidebar-system__link,
body.ramz-app.dark-theme .ramz-sidebar-account__name {
  color: var(--ramz-text-secondary) !important;
}

body.ramz-app.dark-theme .side-menu__item:hover,
body.ramz-app.dark-theme .ramz-sidebar-system__link:hover,
body.ramz-app.dark-theme .ramz-sidebar-account__trigger:hover {
  background: var(--ramz-surface-soft) !important;
  color: var(--ramz-text) !important;
}

body.ramz-app.dark-theme .side-menu__item.active,
body.ramz-app.dark-theme .ramz-sidebar-system__link.is-active {
  background: var(--ramz-primary-soft) !important;
  color: #5eead4 !important;
}

body.ramz-app.dark-theme .table,
body.ramz-app.dark-theme .table > :not(caption) > * > * {
  color: var(--ramz-text);
  border-color: var(--ramz-border);
  background-color: transparent;
}

body.ramz-app.dark-theme .text-muted,
body.ramz-app.dark-theme .ramz-page-header p,
body.ramz-app.dark-theme .ramz-sidebar-account__email {
  color: var(--ramz-muted) !important;
}

body.ramz-app.dark-theme .dropdown-item {
  color: var(--ramz-text-secondary);
}

body.ramz-app.dark-theme .dropdown-item:hover,
body.ramz-app.dark-theme .dropdown-item:focus {
  background: var(--ramz-surface-soft);
  color: var(--ramz-text);
}

body.ramz-app.dark-theme .ramz-topbar__badge {
  border-color: var(--ramz-surface);
}

body.ramz-app,
body.ramz-auth-body {
  background: var(--ramz-bg);
  color: var(--ramz-text);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}

#global-loader {
  background: rgba(248, 250, 252, 0.85) !important;
}

#global-loader .loader-img {
  width: 48px;
  height: 48px;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Layout shell
   -------------------------------------------------------------------------- */
.ramz-app .page,
.ramz-app .main-content.app-content {
  background: var(--ramz-bg);
}

.ramz-app .main-container.container-fluid {
  padding-block: 1.25rem;
  padding-inline: 1.25rem;
}

/* Top header — slim bar aligned with sidebar (override theme .side-header fixed 240px) */
.ramz-app .main-header.ramz-topbar,
.ramz-app .main-header.side-header.ramz-topbar {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  background: var(--ramz-surface) !important;
  border-bottom: 1px solid var(--ramz-border);
  box-shadow: none !important;
  height: 64px;
  min-height: 64px;
  z-index: 1030 !important;
  transition: padding-inline-start 320ms ease;
}

.ramz-app .ramz-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
  width: 100%;
  padding: 0 1.25rem !important;
  margin: 0 !important;
}

.ramz-app .ramz-topbar__left,
.ramz-app .ramz-topbar__right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ramz-app .ramz-topbar__left {
  gap: 0.75rem;
  flex: 1 1 auto;
  justify-content: flex-start;
}

.ramz-app .ramz-topbar__right {
  flex: 0 0 auto;
  gap: 0.35rem;
  justify-content: flex-end;
  margin-inline-start: auto;
}

.ramz-app .ramz-topbar__item {
  position: relative;
}

.ramz-app .ramz-topbar__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--ramz-radius-sm);
  background: transparent;
  color: var(--ramz-text-secondary);
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.ramz-app .ramz-topbar__icon-btn i {
  font-size: 1.05rem;
}

.ramz-app .ramz-topbar__icon-btn:hover,
.ramz-app .ramz-topbar__icon-btn:focus,
.ramz-app .ramz-topbar__icon-btn.show {
  background: var(--ramz-surface-soft);
  color: var(--ramz-primary);
}

.ramz-app .ramz-topbar__badge {
  position: absolute;
  top: 8px;
  inset-inline-end: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ramz-danger);
  border: 1.5px solid var(--ramz-surface);
}

.ramz-app .ramz-topbar__panel {
  width: 300px;
  padding: 0;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-lg);
  box-shadow: var(--ramz-shadow);
  overflow: hidden;
}

.ramz-app .ramz-topbar__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ramz-border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ramz-text);
}

.ramz-app .ramz-topbar__panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  color: var(--ramz-muted);
}

.ramz-app .ramz-topbar__panel-empty i {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  color: var(--ramz-text-secondary);
}

.ramz-app .ramz-topbar__panel-empty p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ramz-text);
}

.ramz-app .ramz-topbar__panel-empty span {
  font-size: 0.8rem;
}

.ramz-app .ramz-theme-toggle .ramz-theme-icon {
  pointer-events: none;
}

.ramz-app .ramz-theme-icon--sun {
  display: none !important;
}

.ramz-app.dark-theme .ramz-theme-icon--moon,
body.ramz-app.dark-theme .ramz-theme-icon--moon {
  display: none !important;
}

.ramz-app.dark-theme .ramz-theme-icon--sun,
body.ramz-app.dark-theme .ramz-theme-icon--sun {
  display: inline-block !important;
}

.ramz-app .ramz-fullscreen-toggle .ramz-fullscreen-icon {
  pointer-events: none;
}

.ramz-app .ramz-fullscreen-icon--exit {
  display: none !important;
}

html.ramz-is-fullscreen .ramz-app .ramz-fullscreen-icon--enter,
html.fullscreen-button .ramz-app .ramz-fullscreen-icon--enter {
  display: none !important;
}

html.ramz-is-fullscreen .ramz-app .ramz-fullscreen-icon--exit,
html.fullscreen-button .ramz-app .ramz-fullscreen-icon--exit {
  display: inline-block !important;
}

.ramz-app .ramz-topbar__profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.ramz-app .ramz-topbar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--ramz-border);
}

.ramz-app .ramz-topbar__avatar--initials {
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.ramz-app .main-profile-menu .dropdown-menu form {
  margin: 0;
}

.ramz-app .main-profile-menu .dropdown-menu .dropdown-item {
  width: 100%;
  text-align: start;
  background: transparent;
  border: 0;
}

.ramz-app .ramz-topbar .app-sidebar__toggle {
  flex: 0 0 auto;
  margin: 0;
}

.ramz-app .ramz-topbar .app-sidebar__toggle a.open-toggle,
.ramz-app .ramz-topbar .app-sidebar__toggle a.close-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: var(--ramz-radius-sm);
  color: var(--ramz-text-secondary) !important;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

/* Keep hamburger always; theme swaps to X when collapsed */
.ramz-app .ramz-topbar .app-sidebar__toggle .close-toggle,
.ramz-app.sidebar-mini.sidenav-toggled .ramz-topbar .app-sidebar__toggle .close-toggle {
  display: none !important;
}

.ramz-app .ramz-topbar .app-sidebar__toggle .open-toggle,
.ramz-app.sidebar-mini.sidenav-toggled .ramz-topbar .app-sidebar__toggle .open-toggle {
  display: inline-flex !important;
}

.ramz-app .ramz-topbar .app-sidebar__toggle a.open-toggle:hover,
.ramz-app .ramz-topbar .app-sidebar__toggle a.close-toggle:hover,
.ramz-app .ramz-topbar .app-sidebar__toggle a.open-toggle:focus,
.ramz-app .ramz-topbar .app-sidebar__toggle a.close-toggle:focus {
  background: var(--ramz-surface-soft);
  color: var(--ramz-primary) !important;
  text-decoration: none;
}

.ramz-app .ramz-topbar__mobile-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.ramz-app .ramz-topbar__mobile-logo img {
  max-height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

.ramz-app .ramz-topbar__mobile-logo .ramz-brand-logo {
  max-height: 28px;
  max-width: 110px;
}

.ramz-app .ramz-topbar__title-wrap {
  min-width: 0;
}

.ramz-app .ramz-topbar__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ramz-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-app .ramz-topbar__search {
  position: relative;
  flex: 0 1 280px;
  width: 280px;
  max-width: 100%;
  margin-inline-start: 0.25rem;
}

.ramz-app .ramz-topbar__search .fe-search {
  position: absolute;
  inset-inline-start: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--ramz-muted);
  pointer-events: none;
}

.ramz-app .ramz-topbar__search .form-control {
  height: 38px;
  padding-inline: 2.35rem 0.85rem;
  border-radius: var(--ramz-radius-sm);
  border: 1px solid var(--ramz-border);
  background: var(--ramz-bg);
  font-size: 0.875rem;
  color: var(--ramz-text);
  box-shadow: none;
}

.ramz-app .ramz-topbar__search .form-control:focus {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 3px var(--ramz-primary-soft);
  background: var(--ramz-surface);
}

.ramz-app .ramz-topbar__search .form-control::placeholder {
  color: var(--ramz-muted);
}

/* --------------------------------------------------------------------------
   Sidebar
   Root cause of purple dots: theme style.css `.side-menu .side-menu__icon:before`
   adds a purple circle and sets content:"", which overrides `.si-*:before` glyphs
   on the same pseudo-element. Icons use `.ramz-nav-icon` only — not
   `.side-menu__icon` on the <i> tag.
   -------------------------------------------------------------------------- */
.ramz-app .side-menu .side-menu__icon::before,
.ramz-app .side-menu .side-menu__icon:before {
  display: none !important;
  content: none !important;
  background: none !important;
}

.ramz-app .app-sidebar,
.ramz-app .app-sidebar.ramz-sidebar {
  width: var(--ramz-sidebar-width) !important;
  background: var(--ramz-surface);
  border-inline-end: 1px solid var(--ramz-border);
  box-shadow: none !important;
}

/* Logo sits outside sidebar stacking context so it paints above the top bar */
.ramz-app .main-sidebar-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: var(--ramz-sidebar-width) !important;
  height: 64px;
  padding: 0 1rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ramz-border);
  border-inline-end: 1px solid var(--ramz-border);
  background: var(--ramz-surface);
  z-index: 1040 !important;
  transition: width 320ms ease, padding 320ms ease;
}

.rtl.ramz-app .main-sidebar-header {
  left: auto !important;
  right: 0 !important;
}

.ramz-app .main-sidebar-header .ramz-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  text-decoration: none;
}

/* Ramz brand logos — avoid theme .main-logo / .desktop-logo rules */
.ramz-app .ramz-brand-logo {
  display: none;
  width: auto;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.ramz-app .ramz-brand-logo--full {
  max-height: 30px;
  max-width: 132px;
}

.ramz-app .ramz-brand-logo--icon {
  max-height: 32px;
  max-width: 32px;
}

.ramz-app .ramz-brand-logo--light {
  display: block;
}

.ramz-app .ramz-brand-logo--dark {
  display: none;
}

.ramz-app.dark-theme .ramz-brand-logo--light {
  display: none;
}

.ramz-app.dark-theme .ramz-brand-logo--dark {
  display: block;
}

.ramz-app.sidenav-toggled .ramz-brand-logo--full {
  display: none !important;
}

.ramz-app.sidenav-toggled .ramz-brand-logo--icon.ramz-brand-logo--light {
  display: block !important;
}

.ramz-app.dark-theme.sidenav-toggled .ramz-brand-logo--icon.ramz-brand-logo--light {
  display: none !important;
}

.ramz-app.dark-theme.sidenav-toggled .ramz-brand-logo--icon.ramz-brand-logo--dark {
  display: block !important;
}

.ramz-app.sidenav-toggled.sidenav-toggled-open .ramz-brand-logo--full.ramz-brand-logo--light {
  display: block !important;
}

.ramz-app.sidenav-toggled.sidenav-toggled-open .ramz-brand-logo--icon {
  display: none !important;
}

.ramz-app.dark-theme.sidenav-toggled.sidenav-toggled-open .ramz-brand-logo--full.ramz-brand-logo--light {
  display: none !important;
}

.ramz-app.dark-theme.sidenav-toggled.sidenav-toggled-open .ramz-brand-logo--full.ramz-brand-logo--dark {
  display: block !important;
}

.ramz-app.dark-theme.sidenav-toggled.sidenav-toggled-open .ramz-brand-logo--icon {
  display: none !important;
}

.ramz-app.dark-theme .main-sidebar-header {
  background: #2a2e3f;
  border-bottom-color: #404353;
  border-inline-end-color: #404353;
}

.ramz-app .main-sidemenu {
  margin-top: 64px;
  padding: 0.5rem 0 13.5rem;
}

.ramz-app .side-menu {
  padding: 0 var(--ramz-nav-inset);
  margin: 0;
}

.ramz-app .side-menu .side-item.side-item-category {
  color: var(--ramz-muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  height: auto;
  opacity: 1;
  margin: 0.75rem 0 0.3rem;
  padding: 0 0.55rem;
}

.ramz-app .side-menu .side-item.side-item-category:first-child {
  margin-top: 0.15rem;
}

.ramz-app .side-menu > .slide {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ramz-app .side-menu__item,
.ramz-app .side-menu .slide > .side-menu__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-sizing: border-box;
  min-height: 38px;
  height: 38px;
  padding: 0 0.65rem 0 0.55rem !important;
  padding-inline-end: 2rem !important;
  margin: 0 0 var(--ramz-nav-item-gap) !important;
  border: 0 !important;
  border-radius: var(--ramz-radius-sm) !important;
  color: var(--ramz-text-secondary) !important;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none !important;
  background: transparent !important;
  transition: background 0.12s ease, color 0.12s ease;
}

/* Keep label/icon on the same hover color as the item (override theme .slide:hover gray) */
.ramz-app .slide:hover > .side-menu__item .side-menu__label,
.ramz-app .slide:hover > .side-menu__item .angle,
.ramz-app .slide:hover > .side-menu__item .ramz-nav-icon,
.ramz-app .slide > .side-menu__item:hover .side-menu__label,
.ramz-app .slide > .side-menu__item:hover .angle,
.ramz-app .slide > .side-menu__item:focus .side-menu__label,
.ramz-app .slide > .side-menu__item:focus .angle {
  color: inherit !important;
}

.ramz-app .side-menu__item::before,
.ramz-app .app-sidebar .slide .side-menu__item.active::before,
.ramz-app .side-menu .slide .side-menu__item.active {
  border-right: 0 !important;
}

.ramz-app .slide > .side-menu__item:hover,
.ramz-app .slide > .side-menu__item:focus,
.ramz-app .side-menu__item:hover,
.ramz-app .side-menu__item:focus {
  background: var(--ramz-surface-soft) !important;
  color: var(--ramz-text) !important;
}

.ramz-app .slide > .side-menu__item.active:hover,
.ramz-app .slide > .side-menu__item.active:focus,
.ramz-app .side-menu__item.active:hover,
.ramz-app .side-menu__item.active:focus {
  background: var(--ramz-primary-soft) !important;
  color: var(--ramz-primary) !important;
}

.ramz-app .side-menu__item.active,
.ramz-app .side-menu .slide > .side-menu__item.active {
  background: var(--ramz-primary-soft) !important;
  color: var(--ramz-primary) !important;
  font-weight: 500;
  box-shadow: none;
}

.ramz-app .slide.is-expanded > .side-menu__item:not(.active) {
  background: transparent !important;
  color: var(--ramz-text-secondary) !important;
  font-weight: 400;
}

.ramz-app .side-menu__item .side-menu__label {
  color: inherit !important;
  font-size: inherit;
  font-weight: inherit;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  line-height: 1.2;
}

/* Simple Line Icons — must not use .side-menu__icon on <i> (see note above) */
.ramz-app .ramz-nav-badge {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  background: var(--ramz-surface-soft);
  color: var(--ramz-muted);
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.ramz-app .ramz-nav-badge .ramz-nav-icon {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  font-size: 14px;
  line-height: 1;
  color: inherit !important;
}

.ramz-app .ramz-nav-badge--teal {
  background: rgba(15, 118, 110, 0.12);
  color: #0F766E;
}

.ramz-app .ramz-nav-badge--green {
  background: rgba(37, 211, 102, 0.14);
  color: #128C7E;
}

.ramz-app .ramz-nav-badge--blue {
  background: rgba(2, 132, 199, 0.12);
  color: #0284C7;
}

.ramz-app .ramz-nav-badge--violet {
  background: rgba(124, 58, 237, 0.12);
  color: #7C3AED;
}

.ramz-app .ramz-nav-badge--amber {
  background: rgba(217, 119, 6, 0.12);
  color: #D97706;
}

.ramz-app .ramz-nav-badge--rose {
  background: rgba(225, 29, 72, 0.12);
  color: #E11D48;
}

.ramz-app .ramz-nav-badge--slate {
  background: rgba(71, 85, 105, 0.12);
  color: #475569;
}

.ramz-app .ramz-nav-badge--cyan {
  background: rgba(8, 145, 178, 0.12);
  color: #0891B2;
}

.ramz-app .side-menu__item.active .ramz-nav-badge,
.ramz-app .ramz-sidebar-system__link.is-active .ramz-nav-badge {
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18);
}

.ramz-app.sidenav-toggled:not(.sidenav-toggled-open) .ramz-nav-badge {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.ramz-app .ramz-nav-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0 !important;
  font-size: 17px;
  line-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-family: 'simple-line-icons' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}

.ramz-app .side-menu__item .angle {
  position: absolute;
  inset-inline-end: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  line-height: 1;
  margin: 0;
  color: var(--ramz-muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.ramz-app .slide.is-expanded > .side-menu__item .angle {
  transform: translateY(-50%) rotate(90deg);
  color: var(--ramz-primary);
}

.ramz-app .side-menu__item.active .angle,
.ramz-app .side-menu__item:hover .angle {
  color: inherit;
}

.ramz-app .slide-menu {
  padding: 0.15rem 0 0.25rem !important;
  margin: 0 0 0.15rem !important;
  list-style: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ramz-app .slide-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ramz-app .slide-menu .slide-item {
  display: flex;
  align-items: center;
  min-height: 34px;
  height: 34px;
  margin: 0 0 var(--ramz-nav-item-gap) 1.45rem !important;
  padding: 0 0.65rem !important;
  border-radius: var(--ramz-radius-sm);
  color: var(--ramz-muted) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.12s ease, color 0.12s ease;
}

/* Kill theme flyout hovers on collapsed sidebar only */
.ramz-app.sidenav-toggled:not(.sidenav-toggled-open) .side-menu__item:hover .side-menu__label,
.ramz-app.sidenav-toggled:not(.sidenav-toggled-open) .slide:hover .side-menu__label {
  position: static !important;
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ramz-app.sidenav-toggled:not(.sidenav-toggled-open) .slide:hover .slide-menu,
.ramz-app.sidenav-toggled:not(.sidenav-toggled-open) .side-menu__item:hover + .slide-menu {
  position: static !important;
  visibility: hidden !important;
  opacity: 0 !important;
  max-height: 0 !important;
  box-shadow: none !important;
  left: auto !important;
}

.ramz-app.sidebar-mini.sidenav-toggled-open .side-menu__item,
.ramz-app.sidenav-toggled.sidenav-toggled-open .side-menu__item,
.ramz-app.sidenav-toggled.sidenav-toggled-open .side-menu .slide .side-menu__item {
  padding: 0 0.65rem 0 0.55rem !important;
  padding-inline-end: 2rem !important;
  margin: 0 0 var(--ramz-nav-item-gap) !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: var(--ramz-radius-sm) !important;
  width: auto !important;
}

.ramz-app.sidebar-mini.sidenav-toggled-open .side-menu .slide .side-menu__item.active,
.ramz-app.sidenav-toggled.sidenav-toggled-open .side-menu .slide .side-menu__item.active {
  margin: 0 0 var(--ramz-nav-item-gap) !important;
  padding: 0 0.65rem 0 0.55rem !important;
  padding-inline-end: 2rem !important;
}

.ramz-app .slide-menu .slide-item:hover {
  background: var(--ramz-surface-soft) !important;
  color: var(--ramz-text) !important;
}

.ramz-app .slide-menu .slide-item.active {
  background: var(--ramz-primary-soft) !important;
  color: var(--ramz-primary) !important;
  font-weight: 500;
}

.ramz-app .slide-menu .slide-item::before,
.ramz-app .slide.is-expanded .slide-menu a::before {
  display: none !important;
  content: none !important;
}

.ramz-app .slide-left,
.ramz-app .slide-right {
  display: none !important;
}

/* Sidebar footer — SYSTEM block + account menu (reference layout) */
.ramz-app .ramz-sidebar-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: var(--ramz-sidebar-width);
  padding: 0.65rem var(--ramz-nav-inset) 0.75rem;
  background: var(--ramz-surface);
  border-top: 1px solid var(--ramz-border);
  z-index: 999;
  transition: width 320ms ease;
}

.rtl.ramz-app .ramz-sidebar-footer {
  left: auto;
  right: 0;
}

.ramz-app .ramz-sidebar-system__heading {
  padding: 0 0.55rem 0.35rem;
  margin-top: 0.1rem;
  color: var(--ramz-muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
}

.ramz-app .ramz-sidebar-system__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ramz-app .ramz-sidebar-system__item {
  margin: 0;
  padding: 0;
}

.ramz-app .ramz-sidebar-system__item--toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 38px;
  margin: 0 0 var(--ramz-nav-item-gap);
  padding: 0 0.55rem;
  border-radius: var(--ramz-radius-sm);
  transition: background 0.12s ease;
}

.ramz-app .ramz-sidebar-system__item--toggle:hover {
  background: var(--ramz-surface-soft);
}

.ramz-app .ramz-sidebar-system__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-sizing: border-box;
  min-height: 38px;
  height: 38px;
  margin: 0 0 var(--ramz-nav-item-gap);
  padding: 0 0.55rem;
  border-radius: var(--ramz-radius-sm);
  color: var(--ramz-text-secondary) !important;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background 0.12s ease, color 0.12s ease;
}

.ramz-app .ramz-sidebar-system__item--toggle .ramz-sidebar-system__link {
  flex: 1 1 auto;
  min-width: 0;
  padding-inline: 0;
}

.ramz-app .ramz-sidebar-system__link:hover,
.ramz-app .ramz-sidebar-system__link:focus,
.ramz-app .ramz-sidebar-system__link.is-active {
  background: var(--ramz-surface-soft);
  color: var(--ramz-text) !important;
}

.ramz-app .ramz-sidebar-system__link.is-active {
  color: var(--ramz-primary) !important;
  font-weight: 500;
}

.ramz-app .ramz-sidebar-system__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-app .ramz-sidebar-system__link .ramz-nav-icon,
.ramz-app .ramz-sidebar-system__item--toggle .fe.ramz-nav-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  font-size: 16px;
  line-height: 18px;
  color: inherit;
}

.ramz-app .ramz-switch {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 20px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.ramz-app .ramz-switch__track {
  display: block;
  width: 100%;
  height: 100%;
  background: #CBD5E1;
  border-radius: var(--ramz-radius-full);
  position: relative;
  transition: background 0.15s ease;
}

.ramz-app .ramz-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

body.dark-theme.ramz-app .ramz-switch__track {
  background: var(--ramz-primary);
}

body.dark-theme.ramz-app .ramz-switch__thumb {
  transform: translateX(16px);
}

.ramz-app .ramz-sidebar-divider {
  height: 1px;
  margin: 0.55rem 0.55rem 0.45rem;
  background: var(--ramz-border);
}

.ramz-app .ramz-sidebar-account {
  width: 100%;
}

.ramz-app .ramz-sidebar-account__row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.ramz-app .ramz-sidebar-account__trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: var(--ramz-radius-sm);
  background: transparent;
  text-align: start;
  cursor: pointer;
  transition: background 0.12s ease;
}

.ramz-app .ramz-sidebar-account__trigger:hover,
.ramz-app .ramz-sidebar-account__trigger:focus,
.ramz-app .ramz-sidebar-account.show .ramz-sidebar-account__trigger {
  background: var(--ramz-surface-soft);
  outline: none;
}

.ramz-app .ramz-sidebar-account__avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: var(--ramz-radius-sm);
  object-fit: cover;
}

.ramz-app .ramz-sidebar-account__avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.ramz-app .ramz-sidebar-account__meta {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: start;
}

.ramz-app .ramz-sidebar-account__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ramz-text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-app .ramz-sidebar-account__email {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ramz-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-app .ramz-sidebar-account__logout-form {
  flex: 0 0 auto;
  margin: 0;
}

.ramz-app .ramz-sidebar-account__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-sm);
  background: var(--ramz-surface);
  color: var(--ramz-muted);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.ramz-app .ramz-sidebar-account__logout .ramz-nav-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  font-size: 15px;
  line-height: 16px;
  color: inherit;
}

.ramz-app .ramz-sidebar-account__logout:hover,
.ramz-app .ramz-sidebar-account__logout:focus {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
  color: var(--ramz-danger);
  outline: none;
}

.ramz-app .ramz-sidebar-account__menu {
  width: calc(var(--ramz-sidebar-width) - 1.3rem);
  min-width: calc(var(--ramz-sidebar-width) - 1.3rem);
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  box-shadow: var(--ramz-shadow);
  padding: 0.35rem;
  margin-bottom: 0.35rem !important;
}

.ramz-app .ramz-sidebar-account__menu .dropdown-item {
  border-radius: var(--ramz-radius-sm);
  font-size: 0.875rem;
  padding: 0.5rem 0.65rem;
}

.ramz-app .ramz-sidebar-account__menu .dropdown-item:hover {
  background: var(--ramz-surface-soft);
}

.ramz-app .ramz-sidebar-account__version {
  padding: 0.45rem 0.65rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ramz-muted);
}

@media (min-width: 768px) {
  .ramz-app.sidebar-mini .app-sidebar,
  .ramz-app .app-sidebar {
    width: var(--ramz-sidebar-width) !important;
  }

  .ramz-app .app-content {
    margin-left: var(--ramz-sidebar-width);
    margin-inline-start: var(--ramz-sidebar-width);
  }

  .rtl.ramz-app .app-content {
    margin-left: 0;
    margin-right: var(--ramz-sidebar-width);
    margin-inline-start: var(--ramz-sidebar-width);
  }

  .ramz-app .main-sidebar-header {
    width: var(--ramz-sidebar-width);
  }

  .ramz-app .main-header.ramz-topbar,
  .ramz-app .main-header.side-header.ramz-topbar,
  .ramz-app .main-header.side-header {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    max-width: none !important;
    left: auto !important;
    right: auto !important;
    padding-left: var(--ramz-sidebar-width) !important;
    padding-inline-start: var(--ramz-sidebar-width) !important;
  }

  .ramz-app.sidenav-toggled .app-sidebar,
  .ramz-app.app.sidenav-toggled .app-sidebar,
  .ramz-app.sidebar-mini.sidenav-toggled .app-sidebar {
    width: var(--ramz-sidebar-collapsed) !important;
    overflow-x: hidden !important;
  }

  .ramz-app.sidenav-toggled .app-content,
  .ramz-app.app.sidenav-toggled .app-content,
  .ramz-app.sidebar-mini.sidenav-toggled .app-content {
    margin-left: var(--ramz-sidebar-collapsed) !important;
    margin-inline-start: var(--ramz-sidebar-collapsed) !important;
  }

  .rtl.ramz-app.sidenav-toggled .app-content,
  .rtl.ramz-app.sidebar-mini.sidenav-toggled .app-content {
    margin-left: 0 !important;
    margin-right: var(--ramz-sidebar-collapsed) !important;
    margin-inline-start: var(--ramz-sidebar-collapsed) !important;
  }

  .ramz-app.sidenav-toggled .main-sidebar-header {
    width: var(--ramz-sidebar-collapsed) !important;
    padding-inline: 0.5rem !important;
    justify-content: center;
  }

  .ramz-app.sidenav-toggled .main-header.ramz-topbar,
  .ramz-app.sidenav-toggled .main-header.side-header {
    padding-left: var(--ramz-sidebar-collapsed) !important;
    padding-inline-start: var(--ramz-sidebar-collapsed) !important;
  }

  .rtl.ramz-app .main-header.ramz-topbar,
  .rtl.ramz-app .main-header.side-header {
    padding-left: 0 !important;
    padding-right: var(--ramz-sidebar-width) !important;
    padding-inline-start: var(--ramz-sidebar-width) !important;
  }

  .rtl.ramz-app.sidenav-toggled .main-header.ramz-topbar,
  .rtl.ramz-app.sidenav-toggled .main-header.side-header {
    padding-left: 0 !important;
    padding-right: var(--ramz-sidebar-collapsed) !important;
    padding-inline-start: var(--ramz-sidebar-collapsed) !important;
  }

  .ramz-app.sidenav-toggled-open .side-menu .slide.active .side-menu__label,
  .ramz-app.sidenav-toggled-open .side-menu .slide.active .side-menu__icon {
    color: inherit !important;
  }

  .ramz-app.sidenav-toggled .main-sidebar-header .ramz-brand-link {
    justify-content: center;
  }

  .ramz-app.sidenav-toggled .ramz-brand-logo--icon {
    max-height: 30px;
    max-width: 30px;
  }

  .ramz-app.sidenav-toggled .side-menu {
    padding-inline: 0.7rem !important;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .app-sidebar {
    width: var(--ramz-sidebar-width) !important;
    overflow-x: visible !important;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .main-sidebar-header {
    width: var(--ramz-sidebar-width) !important;
    padding-inline: 1rem !important;
    justify-content: center;
  }

  .ramz-app.sidenav-toggled .side-menu__item,
  .ramz-app.sidenav-toggled .side-menu .slide .side-menu__item,
  .ramz-app.sidebar-mini.sidenav-toggled .side-menu__item {
    justify-content: center !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    padding-inline: 0 !important;
    gap: 0 !important;
    margin-inline: 0 !important;
  }

  .ramz-app.sidenav-toggled .side-menu__item .side-menu__label {
    display: none !important;
  }

  .ramz-app.sidenav-toggled .side-menu__item .angle {
    display: none !important;
  }

  .ramz-app.sidenav-toggled .ramz-nav-icon {
    flex: 0 0 18px !important;
    width: 18px !important;
    margin: 0 !important;
  }

  .ramz-app.sidenav-toggled .side-item.side-item-category {
    display: none;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .side-item.side-item-category {
    display: block;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .side-menu__item {
    justify-content: flex-start !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 0.65rem 0 0.55rem !important;
    padding-inline-end: 2rem !important;
    gap: 0.65rem !important;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .side-menu__item .side-menu__label {
    display: flex !important;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .side-menu__item .angle {
    display: block !important;
  }

  .ramz-app.sidenav-toggled .ramz-sidebar-footer {
    width: var(--ramz-sidebar-collapsed) !important;
    padding: 0.5rem 0.55rem 0.65rem !important;
    overflow: hidden;
  }

  .ramz-app.sidenav-toggled .ramz-sidebar-system__heading,
  .ramz-app.sidenav-toggled .ramz-sidebar-system__label,
  .ramz-app.sidenav-toggled .ramz-switch,
  .ramz-app.sidenav-toggled .ramz-sidebar-account__meta {
    display: none !important;
  }

  .ramz-app.sidenav-toggled .ramz-sidebar-account__row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }

  .ramz-app.sidenav-toggled .ramz-sidebar-account__logout-form {
    display: none !important;
  }

  .ramz-app.sidenav-toggled .ramz-sidebar-system__item--toggle {
    justify-content: center;
    padding: 0;
  }

  .ramz-app.sidenav-toggled .ramz-sidebar-system__item--toggle .ramz-sidebar-system__link {
    justify-content: center;
    width: 100%;
    padding: 0;
  }

  .ramz-app.sidenav-toggled .ramz-sidebar-system__link {
    justify-content: center !important;
    padding: 0 !important;
    min-height: 40px;
    height: 40px;
    width: 100%;
    margin-bottom: var(--ramz-nav-item-gap);
  }

  .ramz-app.sidenav-toggled .ramz-sidebar-divider {
    margin-inline: 0.15rem;
  }

  .ramz-app.sidenav-toggled .ramz-sidebar-account__trigger {
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    width: 40px;
    min-height: 40px;
    padding: 0 !important;
  }

  .ramz-app.sidenav-toggled .ramz-sidebar-account__avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .ramz-sidebar-footer {
    width: var(--ramz-sidebar-width) !important;
    padding: 0.65rem var(--ramz-nav-inset) 0.75rem !important;
    overflow: visible;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .ramz-sidebar-system__heading {
    display: block !important;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .ramz-sidebar-system__label {
    display: inline !important;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .ramz-switch {
    display: block !important;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .ramz-sidebar-account__meta {
    display: flex !important;
    flex-direction: column;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .ramz-sidebar-account__row {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .ramz-sidebar-account__logout-form {
    display: block !important;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .ramz-sidebar-account__trigger {
    flex: 1 1 auto;
    width: auto;
    justify-content: flex-start;
    padding: 0.35rem 0.55rem !important;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .ramz-sidebar-account__avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .ramz-sidebar-system__item--toggle {
    justify-content: space-between;
    padding: 0 0.55rem;
  }

  .ramz-app.sidenav-toggled.sidenav-toggled-open .ramz-sidebar-system__link {
    justify-content: flex-start !important;
    padding: 0 0.55rem !important;
    min-height: 36px;
  }
}

@media (max-width: 767.98px) {
  .ramz-app .app-sidebar,
  .ramz-app .app-sidebar.ramz-sidebar {
    width: min(280px, 86vw) !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  }

  /* Sidebar logo hidden on mobile — shown in top bar instead */
  .ramz-app .ramz-sidebar-shell > .main-sidebar-header {
    display: none !important;
  }

  .ramz-app .main-sidemenu {
    margin-top: 0 !important;
  }

  .ramz-app .app-content {
    margin-inline-start: 0;
  }

  .ramz-app .main-header.ramz-topbar,
  .ramz-app .main-header.side-header.ramz-topbar,
  .ramz-app .main-header.side-header {
    position: sticky !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-inline: 0 !important;
  }

  .ramz-app .ramz-topbar__inner {
    padding-inline: 1rem !important;
  }

  .ramz-app .ramz-topbar__mobile-logo {
    display: inline-flex !important;
  }

  .ramz-app .side-menu {
    padding-inline: 0.85rem;
  }

  .ramz-app .ramz-sidebar-footer {
    width: min(280px, 86vw);
  }

  .ramz-app .ramz-sidebar-account__menu {
    width: calc(min(280px, 86vw) - 1.3rem);
    min-width: calc(min(280px, 86vw) - 1.3rem);
  }
}

.rtl.ramz-app .main-sidemenu i.angle,
.rtl.ramz-app .side-menu__item .angle {
  inset-inline-end: 0.85rem;
  inset-inline-start: auto;
  right: auto;
}

.rtl.ramz-app .slide.is-expanded > .side-menu__item .angle {
  transform: translateY(-50%) rotate(-90deg);
}

.ramz-app .footer,
.ramz-app .main-footer {
  background: transparent;
  border-top: 1px solid var(--ramz-border);
  color: var(--ramz-muted);
}

.ramz-app .sidebar-right,
.ramz-hide-demo {
  display: none !important;
}

/* Header profile dropdown */
.ramz-app .main-profile-menu .dropdown-menu {
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-lg);
  box-shadow: var(--ramz-shadow);
  padding: 0.35rem;
  min-width: 220px;
}

.ramz-app .main-profile-menu .dropdown-item {
  border-radius: var(--ramz-radius-sm);
  color: var(--ramz-text-secondary);
  font-weight: 500;
  padding: 0.55rem 0.75rem;
}

.ramz-app .main-profile-menu .dropdown-item:hover {
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
}

.ramz-app .main-profile-menu .menu-header-content {
  border-radius: var(--ramz-radius-sm);
}

.ramz-app .main-profile-menu .menu-header-content h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ramz-text);
  margin: 0;
}

.ramz-app .main-profile-menu .menu-header-content .subtext {
  color: var(--ramz-muted);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Page header
   -------------------------------------------------------------------------- */
.ramz-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ramz-page-header__title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ramz-text);
  letter-spacing: -0.02em;
}

.ramz-page-header__title-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.ramz-page-header__desc {
  margin: 0.25rem 0 0;
  color: var(--ramz-muted);
  font-size: 0.9rem;
  max-width: 40rem;
}

.ramz-page-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ramz-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ramz-muted);
  margin-bottom: 0.75rem;
}

.ramz-section-label .fe,
.ramz-section-label i {
  font-size: 0.9rem;
  color: var(--ramz-primary);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Cards & metrics
   -------------------------------------------------------------------------- */
.ramz-card,
.ramz-app .card {
  background: var(--ramz-surface);
  border: 1px solid var(--ramz-border) !important;
  border-radius: var(--ramz-radius-md) !important;
  box-shadow: var(--ramz-shadow-sm) !important;
}

.ramz-app .card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--ramz-border);
  padding: 1rem 1.25rem;
}

.ramz-app .card .card-body {
  padding: 1.25rem;
}

.ramz-app .card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ramz-text);
  margin: 0;
}

.ramz-metric-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--ramz-surface);
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  box-shadow: var(--ramz-shadow-sm);
  height: 100%;
}

.ramz-metric-card--compact {
  padding: 0.9rem 1rem;
}

.ramz-metric-card--compact .ramz-metric-card__value {
  font-size: 1.25rem;
}

.ramz-metric-card--compact .ramz-metric-card__icon {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
}

.ramz-metric-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  color: var(--ramz-muted);
  font-weight: 500;
  line-height: 1.2;
}

.ramz-metric-card__label .fe,
.ramz-metric-card__label i {
  flex: 0 0 auto;
  width: 1em;
  font-size: 0.9rem;
  line-height: 1;
  margin: 0;
}

.ramz-metric-card__value {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ramz-text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ramz-metric-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--ramz-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.ramz-metric-card--info {
  border-color: rgba(2, 132, 199, 0.22);
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.06), var(--ramz-surface) 55%);
}

.ramz-metric-card--info .ramz-metric-card__icon {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

.ramz-metric-card--primary {
  border-color: rgba(15, 118, 110, 0.22);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.06), var(--ramz-surface) 55%);
}

.ramz-metric-card--primary .ramz-metric-card__icon {
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
}

.ramz-metric-card--success {
  border-color: rgba(5, 150, 105, 0.22);
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.06), var(--ramz-surface) 55%);
}

.ramz-metric-card--success .ramz-metric-card__icon {
  background: rgba(5, 150, 105, 0.12);
  color: var(--ramz-success);
}

.ramz-metric-card--warning {
  border-color: rgba(217, 119, 6, 0.22);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.06), var(--ramz-surface) 55%);
}

.ramz-metric-card--warning .ramz-metric-card__icon {
  background: rgba(217, 119, 6, 0.12);
  color: var(--ramz-warning);
}

.ramz-metric-card--danger {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.06), var(--ramz-surface) 55%);
}

.ramz-metric-card--danger .ramz-metric-card__icon {
  background: rgba(220, 38, 38, 0.12);
  color: var(--ramz-danger);
}

.ramz-metric-card--violet {
  border-color: rgba(124, 58, 237, 0.22);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.06), var(--ramz-surface) 55%);
}

.ramz-metric-card--violet .ramz-metric-card__icon {
  background: rgba(124, 58, 237, 0.12);
  color: #7C3AED;
}

.ramz-quality-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ramz-quality-badge--green {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.ramz-quality-badge--yellow {
  background: rgba(217, 119, 6, 0.16);
  color: #b45309;
}

.ramz-quality-badge--red {
  background: rgba(220, 38, 38, 0.14);
  color: #b91c1c;
}

.ramz-quality-badge--unknown {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.ramz-pricing-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ramz-text-secondary, #334155);
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.ramz-broadcasts-table__date {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--ramz-text-secondary);
  font-size: 0.875rem;
}

.ramz-broadcasts-table__date small {
  display: block;
  color: var(--ramz-muted);
  font-size: 0.72rem;
}

.ramz-broadcasts-table__person {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ramz-text);
  font-weight: 500;
}

.ramz-broadcasts-table__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ramz-broadcasts-table__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-inline: 0.7rem;
}

.ramz-broadcasts-table__actions .btn .fe,
.ramz-broadcasts-table__actions .btn i {
  margin: 0 !important;
  font-size: 0.85rem;
  line-height: 1;
}

.ramz-broadcasts-table .ramz-badge .fe,
.ramz-broadcasts-table .ramz-badge i {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1;
}

.ramz-users-table__person {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.ramz-users-table__avatar {
  width: 38px !important;
  height: 38px !important;
  object-fit: cover;
  padding: 0 !important;
}

.ramz-users-table__email {
  text-decoration: none !important;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-users-table__email:hover {
  filter: brightness(0.95);
}

.ramz-users-table .ramz-badge {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ramz-users-table__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ramz-users-table__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.ramz-btn,
.ramz-app .btn,
.ramz-auth-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--ramz-radius-sm);
  font-weight: 500;
  padding: 0.5rem 1rem;
  line-height: 1.25;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ramz-btn > .fe,
.ramz-btn > i,
.ramz-app .btn > .fe,
.ramz-app .btn > i,
.ramz-auth-card .btn > .fe,
.ramz-auth-card .btn > i {
  margin: 0 !important;
  font-size: 0.95em;
  line-height: 1;
  flex: 0 0 auto;
}

.ramz-btn-primary,
.ramz-app .btn-primary,
.ramz-app .btn-success,
.ramz-auth-card .btn-primary {
  background-color: var(--ramz-primary) !important;
  border-color: var(--ramz-primary) !important;
  color: #fff !important;
}

.ramz-btn-primary:hover,
.ramz-app .btn-primary:hover,
.ramz-app .btn-success:hover {
  background-color: var(--ramz-primary-hover) !important;
  border-color: var(--ramz-primary-hover) !important;
}

.ramz-btn-secondary,
.ramz-app .btn-outline-primary {
  background: var(--ramz-surface) !important;
  border: 1px solid var(--ramz-border) !important;
  color: var(--ramz-text) !important;
}

.ramz-btn-secondary:hover,
.ramz-app .btn-outline-primary:hover {
  background: var(--ramz-bg) !important;
  border-color: var(--ramz-border-strong) !important;
  color: var(--ramz-text) !important;
}

.ramz-btn-danger,
.ramz-app .btn-danger {
  background-color: var(--ramz-danger) !important;
  border-color: var(--ramz-danger) !important;
}

.ramz-app .btn-outline-danger {
  color: var(--ramz-danger) !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
  background: transparent !important;
}

.ramz-btn-ghost {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--ramz-muted) !important;
}

.ramz-btn-ghost:hover {
  background: var(--ramz-bg) !important;
  color: var(--ramz-text) !important;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.ramz-app .form-label,
.ramz-app label.form-label,
.ramz-auth-card .form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ramz-text);
  margin-bottom: 0.35rem;
}

.ramz-app .form-control,
.ramz-app .form-select,
.ramz-app .select2-container .select2-selection--single,
.ramz-auth-card .form-control {
  border: 1px solid var(--ramz-border) !important;
  border-radius: var(--ramz-radius-sm) !important;
  min-height: 42px;
  box-shadow: none !important;
  color: var(--ramz-text);
  background: var(--ramz-surface);
}

.ramz-app .form-control:focus,
.ramz-app .form-select:focus,
.ramz-auth-card .form-control:focus {
  border-color: var(--ramz-primary) !important;
  box-shadow: 0 0 0 3px var(--ramz-primary-soft) !important;
}

.ramz-form-section {
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--ramz-surface);
}

.ramz-form-section__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ramz-text);
}

.ramz-form-help {
  font-size: 0.8rem;
  color: var(--ramz-muted);
  margin-top: 0.35rem;
}

.ramz-contact-form-card .card-body {
  padding: 1.25rem !important;
}

.ramz-contact-form .form-label,
.ramz-contact-form .main-content-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ramz-muted);
}

.ramz-contact-form .row.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
  margin: 0;
}

.ramz-field-icon {
  position: relative;
}

.ramz-field-icon > i {
  position: absolute;
  inset-inline-start: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 0.95rem;
  color: var(--ramz-muted);
  pointer-events: none;
}

.ramz-field-icon--textarea > i {
  top: 0.95rem;
  transform: none;
}

.ramz-field-icon .form-control,
.ramz-field-icon .form-select {
  padding-inline-start: 2.4rem !important;
}

.ramz-field-icon--textarea .form-control {
  padding-top: 0.7rem;
  min-height: 96px;
  resize: vertical;
}

.ramz-field-icon--select > i {
  z-index: 3;
}

.ramz-field-icon--select .select2-container {
  width: 100% !important;
}

.ramz-field-icon--select .select2-container .select2-selection--single {
  padding-inline-start: 2.15rem !important;
}

.ramz-field-icon--select .form-select {
  background-position: right 0.75rem center;
}

.ramz-contact-form .select2-container,
.ramz-contact-form .select2-container .select2-selection--single {
  height: 42px !important;
  min-height: 42px !important;
}

.ramz-contact-form .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 40px !important;
  padding-inline-start: 0 !important;
}

.ramz-contact-form .select2-container .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
}

.ramz-contact-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ramz-border);
}

.ramz-contact-form__actions-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ramz-contact-form__actions .btn {
  min-width: 96px;
}

.ramz-field-icon--file .form-control {
  padding-block: 0.45rem;
  min-height: 42px;
}

.ramz-user-form__current-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  color: var(--ramz-muted);
  font-size: 0.8rem;
}

.ramz-user-form__current-profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ramz-border);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.ramz-table,
.ramz-app .table {
  --bs-table-bg: transparent;
  border-color: var(--ramz-border);
}

.ramz-app .table thead th,
.ramz-table thead th {
  background: var(--ramz-surface-soft);
  color: var(--ramz-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ramz-border) !important;
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.ramz-app .table tbody td,
.ramz-table tbody td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
  border-color: var(--ramz-border-strong) !important;
  border-bottom: 1.5px solid var(--ramz-border-strong) !important;
  color: var(--ramz-text);
  font-size: 0.9rem;
}

.ramz-app .table tbody tr:last-child td,
.ramz-table tbody tr:last-child td {
  border-bottom-color: var(--ramz-border-strong) !important;
}

.ramz-app .table tbody tr:hover {
  background: var(--ramz-bg);
}

.ramz-app .table-bordered > :not(caption) > * > * {
  border-width: 0 0 1px 0;
}

.ramz-app .dataTables_wrapper .dataTables_filter input,
.ramz-app .dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-sm);
  padding: 0.35rem 0.65rem;
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.ramz-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--ramz-radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  vertical-align: middle;
}

.ramz-badge .fe,
.ramz-badge i {
  flex: 0 0 auto;
  width: 1em;
  margin: 0;
  font-size: 0.85em;
  line-height: 1;
}

.ramz-badge-success,
.ramz-badge-approved,
.ramz-badge-active,
.ramz-badge-delivered,
.ramz-badge-read,
.status-approved {
  background: rgba(5, 150, 105, 0.12);
  color: var(--ramz-success);
}

.ramz-badge-warning,
.ramz-badge-pending,
.ramz-badge-sent,
.status-pending {
  background: rgba(217, 119, 6, 0.12);
  color: var(--ramz-warning);
}

.ramz-badge-danger,
.ramz-badge-rejected,
.ramz-badge-failed,
.status-rejected {
  background: rgba(220, 38, 38, 0.12);
  color: var(--ramz-danger);
}

.ramz-badge-info,
.ramz-badge-draft,
.ramz-badge-paused {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

.ramz-badge-muted,
.ramz-badge-disconnected {
  background: var(--ramz-surface-soft);
  color: var(--ramz-muted);
}

.ramz-badge-primary {
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
}

.ramz-badge-connected {
  background: rgba(37, 211, 102, 0.14);
  color: #128C7E;
}

.ramz-meta-status__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  padding: 0.85rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  background: var(--ramz-bg);
}

.ramz-meta-status__grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ramz-meta-status__grid span {
  font-size: 0.72rem;
}

.ramz-meta-status__grid strong {
  font-size: 0.84rem;
  word-break: break-word;
}

.ramz-meta-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.78rem;
}

.ramz-meta-api {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-lg);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06) 0%, rgba(255, 255, 255, 0.92) 42%, var(--ramz-surface) 100%),
    var(--ramz-surface);
  box-shadow: var(--ramz-shadow-sm);
  overflow: hidden;
}

.ramz-meta-api__glow {
  position: absolute;
  inset: auto -12% -55% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.16), transparent 68%);
  pointer-events: none;
}

.ramz-meta-api.is-ok {
  border-color: rgba(15, 118, 110, 0.28);
}

.ramz-meta-api.is-warn {
  border-color: rgba(217, 119, 6, 0.35);
  background:
    linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(255, 255, 255, 0.94) 45%, var(--ramz-surface) 100%),
    var(--ramz-surface);
}

.ramz-meta-api.is-bad {
  border-color: rgba(220, 38, 38, 0.28);
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.07) 0%, rgba(255, 255, 255, 0.94) 45%, var(--ramz-surface) 100%),
    var(--ramz-surface);
}

.ramz-meta-api.is-warn .ramz-meta-api__glow,
.ramz-meta-api.is-bad .ramz-meta-api__glow {
  opacity: 0.35;
}

.ramz-meta-api__body {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 0.85rem;
}

.ramz-meta-api__identity {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.ramz-meta-api__mark {
  position: relative;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 8px 18px rgba(18, 140, 126, 0.22);
}

.ramz-meta-api__pulse {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.45);
  opacity: 0;
}

.ramz-meta-api__mark.is-live .ramz-meta-api__pulse {
  animation: ramz-meta-pulse 2.2s ease-out infinite;
}

@keyframes ramz-meta-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

.ramz-meta-api__eyebrow {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ramz-muted);
  margin-bottom: 0.15rem;
}

.ramz-meta-api__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ramz-text);
}

.ramz-meta-api__desc {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ramz-text-secondary);
  max-width: 42rem;
}

.ramz-meta-api__status-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ramz-meta-api__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.ramz-meta-api__pill--ok {
  color: #047857;
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.18);
}

.ramz-meta-api__pill--warn {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.2);
}

.ramz-meta-api__pill--bad {
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.18);
}

.ramz-meta-api__pill--muted {
  color: var(--ramz-text-secondary);
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

.ramz-meta-api--health .ramz-meta-api__mark--score {
  background: linear-gradient(160deg, #0f766e 0%, #115e59 100%);
  font-size: 1rem;
}

.ramz-meta-api--health.is-warn .ramz-meta-api__mark--score {
  background: linear-gradient(160deg, #d97706 0%, #b45309 100%);
}

.ramz-meta-api--health.is-bad .ramz-meta-api__mark--score {
  background: linear-gradient(160deg, #dc2626 0%, #b91c1c 100%);
}

.ramz-meta-api__score {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ramz-meta-api__fact .ramz-quality-badge {
  margin-inline-end: 0.35rem;
  vertical-align: middle;
}

body.ramz-app.dark-theme .ramz-meta-api__pill--muted {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(148, 163, 184, 0.14);
}

.ramz-meta-api__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.55rem;
}

.ramz-meta-api__fact {
  display: grid;
  gap: 0.18rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--ramz-radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(4px);
}

.ramz-meta-api__fact-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ramz-muted);
}

.ramz-meta-api__fact strong {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ramz-text);
  line-height: 1.25;
}

.ramz-meta-api__fact em {
  font-style: normal;
  font-size: 0.74rem;
  color: var(--ramz-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.ramz-meta-api__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem !important;
  word-break: break-all;
}

.ramz-meta-api__reason {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--ramz-radius-sm);
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.14);
  color: #991b1b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.ramz-meta-api__actions {
  position: relative;
  z-index: 1;
  align-self: start;
}

.ramz-meta-api__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--ramz-radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ramz-meta-api__btn.is-solid {
  background: var(--ramz-primary);
  color: #fff;
  border: 1px solid var(--ramz-primary);
}

.ramz-meta-api__btn.is-solid:hover {
  background: var(--ramz-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.ramz-meta-api__btn.is-ghost {
  background: rgba(15, 118, 110, 0.08);
  color: var(--ramz-primary);
  border: 1px solid rgba(15, 118, 110, 0.22);
}

.ramz-meta-api__btn.is-ghost:hover {
  background: rgba(15, 118, 110, 0.14);
  color: var(--ramz-primary-hover);
}

body.ramz-app.dark-theme .ramz-meta-api {
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.1) 0%, rgba(30, 41, 59, 0.96) 48%, var(--ramz-surface) 100%),
    var(--ramz-surface);
}

body.ramz-app.dark-theme .ramz-meta-api__fact {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(148, 163, 184, 0.14);
}

body.ramz-app.dark-theme .ramz-meta-api__reason {
  color: #fecaca;
}

@media (max-width: 991.98px) {
  .ramz-meta-api {
    grid-template-columns: 1fr;
  }

  .ramz-meta-api__actions {
    justify-self: stretch;
  }

  .ramz-meta-api__btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .ramz-meta-status__grid {
    grid-template-columns: 1fr;
  }

  .ramz-meta-api {
    padding: 1rem;
  }

  .ramz-meta-api__identity {
    gap: 0.7rem;
  }

  .ramz-meta-api__facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .ramz-meta-api__facts {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Empty / alerts / avatars
   -------------------------------------------------------------------------- */
.ramz-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ramz-muted);
}

.ramz-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: var(--ramz-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  font-size: 1.4rem;
}

.ramz-empty__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ramz-text);
  margin-bottom: 0.35rem;
}

.ramz-empty__desc {
  font-size: 0.9rem;
  max-width: 28rem;
  margin: 0 auto 1.25rem;
}

.ramz-alert {
  border: 1px solid transparent;
  border-radius: var(--ramz-radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.ramz-alert-danger,
.ramz-app .alert-danger {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.2);
  color: #991b1b;
}

.ramz-alert-success,
.ramz-app .alert-success {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.2);
  color: #065f46;
}

.ramz-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ramz-avatar-sm { width: 28px; height: 28px; font-size: 0.7rem; }
.ramz-avatar-lg { width: 48px; height: 48px; font-size: 1rem; }

.ramz-contacts-table__person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.ramz-contacts-table__avatar {
  width: 38px;
  height: 38px;
  font-size: 0.78rem;
}

.ramz-contacts-table__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}

.ramz-contacts-table__name {
  font-weight: 600;
  color: var(--ramz-text);
  line-height: 1.25;
}

.ramz-contacts-table__sub {
  font-size: 0.75rem;
  color: var(--ramz-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.ramz-contacts-table__phone,
.ramz-contacts-table__date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ramz-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
}

.ramz-contacts-table__phone:hover {
  color: var(--ramz-primary);
}

.ramz-contacts-table__phone i,
.ramz-contacts-table__date i,
.ramz-contacts-table .ramz-badge i {
  font-size: 0.8rem;
  opacity: 0.85;
}

.ramz-contacts-table .ramz-badge {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-groups-table__name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.ramz-groups-table__about,
.ramz-groups-table__date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ramz-text-secondary);
  font-size: 0.875rem;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-groups-table__about i,
.ramz-groups-table__date i,
.ramz-groups-table .ramz-badge i {
  font-size: 0.8rem;
  opacity: 0.85;
}

.ramz-groups-table__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.ramz-groups-table__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* --------------------------------------------------------------------------
   Inbox — 3 columns: list | chat | contact details
   -------------------------------------------------------------------------- */
.ramz-inbox {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.ramz-inbox__workspace {
  --ramz-inbox-height: calc(100vh - 120px);
  --ramz-inbox-gap: 0.4rem;
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: var(--ramz-inbox-gap);
  height: var(--ramz-inbox-height);
  min-height: 560px;
  background: transparent;
  align-items: stretch;
}

.ramz-inbox__workspace.is-open {
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr) minmax(250px, 290px);
}

.ramz-inbox__col {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ramz-surface);
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  box-shadow: var(--ramz-shadow-sm);
}

.ramz-inbox__col--list {
  display: flex;
  flex-direction: column;
}

.ramz-inbox__col--chat {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--ramz-bg);
}

.ramz-inbox__col--details {
  display: none;
  overflow: auto;
  background: var(--ramz-surface);
}

.ramz-inbox__workspace.is-open .ramz-inbox__col--details {
  display: block;
}

.ramz-inbox__list-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto !important;
  height: auto !important;
}

.ramz-inbox__list-scroll .main-chat-list {
  height: auto !important;
  max-height: none !important;
}

.ramz-inbox__col--chat #chat-inner,
.ramz-inbox__col--chat #no-chat {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.ramz-inbox__col--chat #chat-inner:empty {
  display: none;
}

.ramz-inbox__col--chat #chat-inner:not(:empty) {
  display: flex;
  flex-direction: column;
}

.ramz-inbox__col--chat #chat-inner .card,
.ramz-inbox__col--chat #chat-inner .main-content-app,
.ramz-inbox__col--chat #chat-inner .main-content-body-chat {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  box-shadow: none !important;
}

/* WhatsApp chat background — solid light beige, no pattern art */
.ramz-inbox__col--chat #chat-inner .main-content-app,
.ramz-inbox__col--chat #chat-inner .main-chat-body {
  background: #f7f3eb !important;
  background-image: none !important;
}

.ramz-inbox__col--chat #chat-inner .main-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  overflow: auto !important;
}

body.ramz-app.dark-theme .ramz-inbox__col--chat #chat-inner .main-content-app,
body.ramz-app.dark-theme .ramz-inbox__col--chat #chat-inner .main-chat-body {
  background: #0b141a !important;
  background-image: none !important;
}

.ramz-inbox__col--chat #chat-inner .main-chat-header,
.ramz-inbox__col--chat #chat-inner .main-chat-footer,
.ramz-inbox__col--chat #chat-inner .ramz-csw-bar {
  flex: 0 0 auto;
}

.ramz-inbox__toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.85rem 0.55rem;
}

.ramz-inbox__search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.ramz-inbox__search > i {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--ramz-muted);
  pointer-events: none;
  z-index: 1;
}

.ramz-inbox__search .form-control {
  height: 38px;
  width: 100%;
  padding-inline: 2.15rem 0.75rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-sm);
  background: var(--ramz-bg);
  color: var(--ramz-text);
  font-size: 0.85rem;
  box-shadow: none;
}

.ramz-inbox__search .form-control:focus {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 3px var(--ramz-primary-soft);
  background: var(--ramz-surface);
}

.ramz-inbox__search .form-control::placeholder {
  color: var(--ramz-muted);
}

.ramz-inbox__new-btn {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 38px;
  padding: 0 0.85rem !important;
  white-space: nowrap;
  border-radius: var(--ramz-radius-sm) !important;
  font-weight: 500;
}

.ramz-inbox__tabs-wrap {
  padding: 0 0.65rem 0.65rem;
  border-bottom: 1px solid var(--ramz-border);
}

.ramz-inbox .main-chat-list,
.ramz-inbox .main-chat-body,
.ramz-inbox .main-chat-contacts-wrapper {
  border-color: var(--ramz-border) !important;
}

/* Conversation LIST only — never apply to #chat-inner messages */
.ramz-inbox__col--list .main-chat-list {
  padding: 0.35rem 0.5rem 0.75rem;
}

.ramz-inbox__col--list .ramz-chat-item,
.ramz-inbox__col--list .media.ramz-chat-item {
  display: block;
  margin: 0 0 0.25rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--ramz-radius-sm);
  background: transparent !important;
  overflow: hidden;
}

.ramz-inbox__col--list .ramz-chat-item__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  text-decoration: none !important;
  color: inherit;
  border-radius: var(--ramz-radius-sm);
  transition: background 0.12s ease;
}

.ramz-inbox__col--list .ramz-chat-item:hover .ramz-chat-item__link,
.ramz-inbox__col--list .ramz-chat-item:hover {
  background: var(--ramz-surface-soft) !important;
}

.ramz-inbox__col--list .ramz-chat-item.active .ramz-chat-item__link,
.ramz-inbox__col--list .ramz-chat-item.selected .ramz-chat-item__link,
.ramz-inbox__col--list .media.active .ramz-chat-item__link,
.ramz-inbox__col--list .media.selected .ramz-chat-item__link,
.ramz-inbox__col--list .ramz-chat-item.active,
.ramz-inbox__col--list .media.active {
  background: var(--ramz-primary-soft) !important;
}

/* Unread conversations — soft green highlight (like selected, for not-read) */
.ramz-inbox__col--list .ramz-chat-item.is-unread .ramz-chat-item__link,
.ramz-inbox__col--list .media.ramz-chat-item.is-unread {
  background: rgba(22, 163, 74, 0.12) !important;
}

.ramz-inbox__col--list .ramz-chat-item.is-unread:hover .ramz-chat-item__link {
  background: rgba(22, 163, 74, 0.18) !important;
}

.ramz-inbox__col--list .ramz-chat-item.is-unread.active .ramz-chat-item__link,
.ramz-inbox__col--list .media.ramz-chat-item.is-unread.active {
  background: var(--ramz-primary-soft) !important;
}

.ramz-inbox__col--list .ramz-chat-item__avatar {
  position: relative;
}

.ramz-inbox__col--list .ramz-chat-item__avatar.online::after,
.ramz-inbox__col--list .ramz-chat-item__avatar.offline::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ramz-surface, #fff);
  z-index: 1;
}

.ramz-inbox__col--list .ramz-chat-item__avatar.online::after {
  background: #16a34a;
}

.ramz-inbox__col--list .ramz-chat-item__avatar.offline::after {
  background: #94a3b8;
}

.ramz-inbox__col--list .ramz-chat-item__new {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #166534;
  background: rgba(22, 163, 74, 0.18);
  vertical-align: middle;
}

.ramz-inbox__col--list .ramz-chat-item__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.ramz-inbox__col--list .ramz-chat-item__badge {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
}

.ramz-inbox__col--list .ramz-chat-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.ramz-inbox__col--list .ramz-chat-item__preview.is-unread {
  color: var(--ramz-text, #0f172a);
  font-weight: 650;
}

.ramz-inbox__col--list .ramz-chat-item__presence {
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.ramz-inbox__col--list .ramz-chat-item__presence.is-online {
  color: #16a34a;
}

.ramz-inbox__col--list .ramz-chat-item__presence.is-offline {
  color: #94a3b8;
}

body.ramz-app.dark-theme .ramz-inbox__col--list .ramz-chat-item.is-unread .ramz-chat-item__link {
  background: rgba(34, 197, 94, 0.14) !important;
}

body.ramz-app.dark-theme .ramz-inbox__col--list .ramz-chat-item__new {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.22);
}

.ramz-inbox__col--list .ramz-chat-item__avatar,
.ramz-inbox__col--list .ramz-chat-item .main-img-user {
  flex: 0 0 40px;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
}

.ramz-inbox__col--list .ramz-chat-item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.ramz-inbox__col--list .ramz-chat-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.ramz-inbox__col--list .ramz-chat-item__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ramz-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-inbox__col--list .ramz-chat-item__time {
  flex: 0 0 auto;
  font-size: 0.7rem;
  color: var(--ramz-muted);
  white-space: nowrap;
}

.ramz-inbox__col--list .ramz-chat-item__preview {
  display: block;
  min-width: 0;
  font-size: 0.78rem;
  color: var(--ramz-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Kill theme list chrome that breaks highlight/padding */
.ramz-inbox__col--list .main-chat-list .media::after,
.ramz-inbox__col--list .main-chat-list .media + .media::before,
.ramz-inbox__col--list .main-chat-list .media.selected::after {
  display: none !important;
  content: none !important;
}

.ramz-inbox__col--list .main-chat-list .media:hover,
.ramz-inbox__col--list .main-chat-list .media:focus,
.ramz-inbox__col--list .main-chat-list .media.active,
.ramz-inbox__col--list .main-chat-list .media.selected {
  border: 0 !important;
  box-shadow: none !important;
}

.ramz-inbox .panel-tabs.main-nav-line,
.ramz-inbox__tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
  overflow: visible;
}

.ramz-inbox .panel-tabs.main-nav-line > li,
.ramz-inbox__tabs > li {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.ramz-inbox .panel-tabs.main-nav-line .nav-link,
.ramz-inbox__tabs .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ramz-muted) !important;
  padding: 0.4rem 0.2rem !important;
  border: 0 !important;
  border-radius: var(--ramz-radius-sm) !important;
  white-space: nowrap;
  background: transparent;
  text-decoration: none;
}

.ramz-inbox .panel-tabs.main-nav-line .nav-link span,
.ramz-inbox__tabs .nav-link span {
  display: inline !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
  white-space: nowrap;
}

.ramz-inbox .panel-tabs.main-nav-line .nav-link i,
.ramz-inbox__tabs .nav-link i {
  font-size: 0.8rem;
  line-height: 1;
  flex: 0 0 auto;
}

.ramz-inbox .panel-tabs.main-nav-line .nav-link:hover,
.ramz-inbox__tabs .nav-link:hover {
  background: var(--ramz-surface-soft) !important;
  color: var(--ramz-text) !important;
}

.ramz-inbox .panel-tabs.main-nav-line .nav-link.active,
.ramz-inbox__tabs .nav-link.active {
  background: var(--ramz-primary-soft) !important;
  color: var(--ramz-primary) !important;
}

.ramz-inbox .main-chat-header {
  border-bottom: 1px solid var(--ramz-border-strong);
  padding: 0.75rem 1rem !important;
}

.ramz-inbox .ramz-chat-header,
.ramz-inbox .main-chat-header.ramz-chat-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: nowrap;
  background: var(--ramz-surface) !important;
  min-height: 64px;
}

.ramz-chat-header__person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.ramz-chat-header__person .main-img-user {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px;
  margin: 0 !important;
  border-radius: 50%;
  overflow: visible;
  position: relative;
}

.ramz-chat-header__person .main-img-user > * {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50%;
  object-fit: cover;
}

.ramz-chat-header__person .main-img-user.online::after,
.ramz-chat-header__person .main-img-user.offline::after {
  content: "";
  position: absolute;
  inset-inline-end: 1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ramz-surface);
  z-index: 1;
}

.ramz-chat-header__person .main-img-user.online::after {
  background: var(--ramz-success, #16a34a);
}

.ramz-chat-header__person .main-img-user.offline::after {
  background: #94a3b8;
}

.ramz-chat-header__meta {
  min-width: 0;
}

.ramz-chat-header__meta h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ramz-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-chat-header__meta small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: var(--ramz-muted) !important;
  letter-spacing: 0.01em;
}

.ramz-chat-header__actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 1 auto;
  min-width: 0;
}

.ramz-chat-header__icon-btn {
  width: 34px;
  height: 34px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: var(--ramz-radius-sm) !important;
  border-color: var(--ramz-border-strong) !important;
  color: var(--ramz-primary) !important;
  background: var(--ramz-surface) !important;
  flex: 0 0 auto;
}

.ramz-chat-header__icon-btn:hover {
  background: var(--ramz-primary-soft) !important;
  border-color: var(--ramz-primary) !important;
}

.ramz-chat-header__field {
  position: relative;
  min-width: 0;
}

.ramz-chat-header__field--agent,
.ramz-chat-header__field--search {
  width: 150px;
  flex: 0 0 150px;
  height: 36px;
}

.ramz-chat-header__field--search > i {
  position: absolute;
  inset-inline-start: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  color: var(--ramz-muted);
  pointer-events: none;
  z-index: 2;
}

.ramz-chat-header__field .form-control,
.ramz-chat-header__field .form-control-sm,
.ramz-chat-header__field .SumoSelect,
.ramz-chat-header__field .SumoSelect > .CaptionCont {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  box-sizing: border-box !important;
  border: 1.5px solid var(--ramz-border-strong) !important;
  border-radius: var(--ramz-radius-sm) !important;
  background: var(--ramz-bg) !important;
  color: var(--ramz-text) !important;
  box-shadow: none !important;
  font-size: 0.82rem !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.ramz-chat-header__field .form-control,
.ramz-chat-header__field .form-control-sm {
  padding: 0 0.7rem !important;
}

.ramz-chat-header__field--search .form-control {
  padding-inline: 2rem 0.7rem !important;
}

.ramz-chat-header__field .form-control:hover,
.ramz-chat-header__field .SumoSelect > .CaptionCont:hover {
  border-color: #94A3B8 !important;
}

.ramz-chat-header__field .form-control:focus,
.ramz-chat-header__field .SumoSelect.open > .CaptionCont,
.ramz-chat-header__field .SumoSelect:focus-within > .CaptionCont {
  border-color: var(--ramz-primary) !important;
  box-shadow: 0 0 0 3px var(--ramz-primary-soft) !important;
  background: var(--ramz-surface) !important;
}

.ramz-chat-header__field .SumoSelect {
  display: block !important;
  border: 0 !important;
  background: transparent !important;
}

.ramz-chat-header__field .SumoSelect > .CaptionCont {
  padding: 0 0.7rem !important;
  display: flex !important;
  align-items: center !important;
}

.ramz-chat-header__field .SumoSelect > .CaptionCont > span {
  font-size: 0.82rem !important;
  color: var(--ramz-text) !important;
  line-height: 1.2 !important;
  padding: 0 1rem 0 0 !important;
  height: auto !important;
}

.ramz-chat-header__field .SumoSelect > .CaptionCont > label {
  margin: 0 !important;
  inset-block: 0 !important;
  display: flex !important;
  align-items: center !important;
}

@media (max-width: 767.98px) {
  .ramz-inbox .ramz-chat-header,
  .ramz-inbox .main-chat-header.ramz-chat-header {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .ramz-chat-header__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ramz-chat-header__field--agent,
  .ramz-chat-header__field--search {
    flex: 1 1 140px;
    width: auto;
  }
}

.ramz-inbox .main-chat-footer,
.ramz-composer-footer {
  border-top: 1px solid var(--ramz-border);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  padding: 0.85rem 1rem !important;
  height: auto !important;
  align-items: stretch !important;
}

.ramz-composer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.ramz-composer__file {
  display: none !important;
}

.ramz-composer__field {
  flex: 1 1 auto;
  min-width: 0;
}

.ramz-composer__input,
.ramz-inbox .msgBox,
.ramz-inbox .form-control.msgBox,
.ramz-composer .form-control {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  min-height: 40px;
  height: 40px;
  padding: 0 0.35rem !important;
  margin: 0 !important;
  font-size: 0.92rem;
}

.ramz-composer__input:focus,
.ramz-inbox .msgBox:focus {
  box-shadow: none !important;
  outline: none !important;
}

.ramz-composer__btn {
  width: 2.4rem !important;
  height: 2.4rem !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(15, 118, 110, 0.08) !important;
  color: #0f766e !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1;
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.ramz-composer__btn i {
  font-size: 1.15rem;
  line-height: 1;
}

.ramz-composer__btn--emoji {
  background: rgba(234, 179, 8, 0.16) !important;
  color: #a16207 !important;
}

.ramz-composer__btn--emoji i {
  font-size: 1.35rem;
  color: #ca8a04;
  /* Emoji.min.js matches e.target.outerHTML — keep clicks on the .emoji button */
  pointer-events: none;
}

.ramz-composer__btn--emoji.is-active,
.ramz-composer__btn--emoji[aria-expanded="true"] {
  background: rgba(15, 118, 110, 0.16) !important;
  color: #0f766e !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

/* Emoji.js picker skin (Ramz) */
.fg-emoji-container {
  border-radius: 0.9rem !important;
  border: 1px solid rgba(15, 118, 110, 0.18) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18) !important;
  overflow: hidden !important;
  font-family: inherit !important;
}

.fg-emoji-nav {
  background: #0f766e !important;
}

.fg-emoji-picker-search input {
  border-radius: 0.55rem !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

.fg-emoji-list li a:hover {
  background: rgba(15, 118, 110, 0.12) !important;
  border-radius: 0.45rem;
}

.fg-emoji-picker-category-title {
  color: #0f766e !important;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ramz-composer__btn:hover,
.ramz-composer__btn:focus {
  background: rgba(15, 118, 110, 0.16) !important;
  color: #115e59 !important;
  transform: translateY(-1px);
}

.ramz-composer__btn--emoji:hover,
.ramz-composer__btn--emoji:focus {
  background: rgba(234, 179, 8, 0.24) !important;
}

.ramz-composer__badge {
  position: absolute;
  top: -0.1rem;
  inset-inline-end: -0.1rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

.ramz-composer__badge[hidden] {
  display: none !important;
}

.ramz-composer__send,
.ramz-inbox .sendMsg,
.ramz-composer .main-msg-send {
  border-radius: 999px !important;
  min-height: 2.4rem;
  min-width: 2.4rem;
  background: var(--ramz-primary, #0f766e) !important;
  border: 0 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0 0.95rem !important;
  text-decoration: none !important;
  font-weight: 650;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.22);
}

.ramz-composer__send:hover,
.ramz-inbox .sendMsg:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

.ramz-composer__send .sendMsg__label,
.ramz-inbox .sendMsg .sendMsg__label {
  font-size: 0.78rem;
  font-weight: 650;
}

.ramz-composer--closed {
  background: rgba(15, 23, 42, 0.02);
}

/* Kill Nowa theme rules that hide footer icons */
.ramz-inbox .main-chat-footer .nav-link,
.ramz-inbox .main-chat-footer .nav-link:last-child,
.ramz-composer-footer .nav-link,
.ramz-composer-footer .nav-link:last-child {
  display: inline-flex !important;
}

body.ramz-app.dark-theme .ramz-inbox .main-chat-footer,
body.ramz-app.dark-theme .ramz-composer-footer {
  background: rgba(255, 255, 255, 0.02);
}

body.ramz-app.dark-theme .ramz-composer {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.ramz-app.dark-theme .ramz-composer__btn {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #5eead4 !important;
}

body.ramz-app.dark-theme .ramz-composer__btn--emoji {
  background: rgba(234, 179, 8, 0.18) !important;
}

@media (max-width: 575.98px) {
  .ramz-composer {
    border-radius: 1.1rem;
    flex-wrap: wrap;
  }
  .ramz-composer__field {
    order: -1;
    flex: 1 1 100%;
  }
  .ramz-composer__send .sendMsg__label {
    display: none;
  }
}

/* Customer Service Window composer bar */
.ramz-csw-bar {
  flex: 0 0 auto;
  padding: 0.55rem 0.9rem;
  border-top: 1px solid var(--ramz-border, #e5e7eb);
  background: rgba(15, 23, 42, 0.02);
  font-size: 0.75rem;
  color: var(--ramz-muted, #64748b);
}

.ramz-csw-bar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.ramz-csw-bar__row + .ramz-csw-bar__row {
  margin-top: 0.25rem;
}

.ramz-csw-bar__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ramz-text, #0f172a);
}

.ramz-csw-bar__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #94a3b8;
  flex: 0 0 auto;
}

.ramz-csw-bar.is-open .ramz-csw-bar__dot {
  background: #16a34a;
}

.ramz-csw-bar.is-closed .ramz-csw-bar__dot {
  background: #dc2626;
}

.ramz-csw-bar strong {
  color: var(--ramz-text, #0f172a);
  font-weight: 700;
}

.ramz-csw-bar__hint {
  margin-top: 0.35rem;
  padding-top: 0.3rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
  color: var(--ramz-muted, #64748b);
  font-size: 0.72rem;
  line-height: 1.35;
}
.ramz-csw-bar.is-open .ramz-csw-bar__hint,
.ramz-csw-bar__hint.d-none {
  display: none !important;
}

.ramz-csw-closed-composer .form-control[readonly] {
  background: rgba(15, 23, 42, 0.03);
  cursor: default;
}

body.ramz-app.dark-theme .ramz-csw-bar {
  background: rgba(255, 255, 255, 0.03);
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.ramz-app.dark-theme .ramz-csw-bar__status,
body.ramz-app.dark-theme .ramz-csw-bar strong {
  color: #e2e8f0;
}

/* Chat messages only — scoped to #chat-inner so list/details columns are untouched */
.ramz-inbox__col--chat #chat-inner .main-chat-body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 1rem 1.25rem !important;
}

.ramz-inbox__col--chat #chat-inner .main-chat-body .content-inner {
  padding: 0.25rem 0.5rem !important;
  overflow: visible !important;
}

.ramz-inbox__col--chat #chat-inner .main-chat-body .media {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  align-items: flex-start !important;
}

.ramz-inbox__col--chat #chat-inner .main-chat-body .media:hover {
  background: transparent !important;
}

.ramz-inbox__col--chat #chat-inner .main-chat-body .media-body {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.ramz-inbox__col--chat #chat-inner .main-chat-body .media-body p {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
  color: inherit !important;
  font-size: inherit !important;
  margin: 0 0 0.35rem !important;
}

.ramz-inbox__col--chat #chat-inner .main-msg-wrapper {
  display: block !important;
  position: relative;
  width: fit-content;
  max-width: min(85%, 560px) !important;
  padding: 0.75rem 1rem !important;
  margin-bottom: 0.35rem !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  overflow: visible !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  line-height: 1.45 !important;
  color: var(--ramz-text) !important;
  box-sizing: border-box !important;
}

.ramz-inbox__col--chat #chat-inner .main-msg-wrapper.right {
  background: #d9fdd3 !important;
  border: 1px solid rgba(15, 118, 110, 0.12) !important;
}

.ramz-inbox__col--chat #chat-inner .main-msg-wrapper.left {
  background: #ffffff !important;
  border: 1px solid var(--ramz-border) !important;
}

.ramz-inbox__col--chat #chat-inner .main-msg-wrapper::before,
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper::after {
  display: none !important;
}

.ramz-inbox__col--chat #chat-inner .main-msg-wrapper p,
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper h5,
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper span {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
}

.ramz-inbox__col--chat #chat-inner .highlight-sent {
  background: #d9fdd3 !important;
}

.ramz-inbox #no-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 1.5rem;
  background: var(--ramz-bg);
}

.ramz-inbox #chat-right {
  border-block: 0 !important;
  border-inline-end: 0 !important;
  border-inline-start: 2px solid var(--ramz-border-strong) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  background: var(--ramz-surface);
}

.ramz-inbox #chat-right .ramz-contact-panel {
  border: 0 !important;
  border-radius: inherit !important;
  box-shadow: none !important;
  margin: 0 !important;
  max-width: none !important;
  background: transparent !important;
}

.ramz-contact-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  background: var(--ramz-surface);
}

.ramz-contact-panel__overview {
  padding: 0.85rem 0.95rem 1rem;
}

.ramz-contact-panel__overview-title {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ramz-text);
  letter-spacing: -0.01em;
}

.ramz-contact-panel__section {
  padding: 0 0 0.7rem;
  margin: 0 0 0.7rem;
  border-bottom: 1px solid var(--ramz-border);
}

.ramz-contact-panel__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.ramz-ov-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.ramz-ov-block__title {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ramz-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ramz-ov-block__title i {
  color: var(--ramz-primary);
  font-size: 0.78rem;
}

.ramz-ov-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.ramz-contact-panel__avatar.main-img-user,
.ramz-contact-panel__avatar {
  position: relative;
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  border-radius: 50%;
  overflow: visible;
}

.ramz-contact-panel__avatar > * {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover;
  font-size: 0.72rem !important;
}

.ramz-contact-panel__avatar.online::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ramz-success);
  border: 2px solid var(--ramz-surface);
  z-index: 1;
}

.ramz-ov-user__meta {
  min-width: 0;
}

.ramz-ov-user__name {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ramz-text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-ov-user__sub {
  margin-top: 0.08rem;
  font-size: 0.74rem;
  color: var(--ramz-muted);
  font-variant-numeric: tabular-nums;
}

.ramz-ov-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ramz-ov-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-width: 0;
}

.ramz-ov-row--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
}

.ramz-ov-row__label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  color: var(--ramz-muted);
  white-space: nowrap;
}

.ramz-ov-row__label i {
  font-size: 0.78rem;
  color: var(--ramz-muted);
}

.ramz-ov-row__value {
  flex: 1 1 auto;
  min-width: 0;
  text-align: end;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ramz-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ramz-ov-row__value--person {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.ramz-contact-panel__person-img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 18px;
}

.ramz-ov-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-sm);
  background: var(--ramz-bg);
}

.ramz-ov-card--link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ramz-primary);
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.ramz-ov-card--link:hover {
  background: var(--ramz-primary-soft);
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--ramz-primary-hover);
  text-decoration: none;
}

.ramz-ov-card--link i {
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: var(--ramz-muted);
}

.ramz-ov-card--link:hover i {
  color: var(--ramz-primary);
}

.ramz-ov-card__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-ov-card--muted {
  color: var(--ramz-muted);
  font-size: 0.76rem;
}

.ramz-ov-card--form {
  padding: 0.55rem;
}

.ramz-contact-panel__muted {
  font-size: 0.75rem;
  color: var(--ramz-muted);
}

.ramz-ov-card--form .ramz-contact-panel__field,
.ramz-contact-panel__form .ramz-contact-panel__field {
  margin-bottom: 0.45rem;
}

.ramz-contact-panel__field label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ramz-muted);
}

.ramz-contact-panel__field .form-control,
.ramz-ov-row .form-control,
.ramz-ov-row .SumoSelect,
.ramz-contact-panel__field .SumoSelect {
  width: 100%;
  border-radius: var(--ramz-radius-sm);
  border-color: var(--ramz-border);
  font-size: 0.8rem;
  background: var(--ramz-surface);
  min-height: 32px;
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
}

.ramz-contact-panel__field .form-control:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.1);
}

.ramz-contact-panel__field textarea.form-control {
  min-height: 64px;
  resize: vertical;
}

.ramz-contact-panel__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.ramz-contact-panel__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap;
  min-width: 64px;
  border-radius: var(--ramz-radius-sm);
  font-weight: 600;
  font-size: 0.76rem;
  padding: 0.28rem 0.55rem;
}

.ramz-note-log {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ramz-border);
}

body.ramz-app.dark-theme .ramz-ov-card {
  background: rgba(15, 23, 42, 0.35);
}

body.ramz-app.dark-theme .ramz-contact-panel__actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.ramz-note-log__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.ramz-note-log__title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ramz-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ramz-note-log__title i {
  color: var(--ramz-primary);
  font-size: 0.85rem;
}

.ramz-note-log__count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  font-size: 0.68rem;
  font-weight: 700;
}

.ramz-note-log__empty {
  padding: 0.7rem 0.75rem;
  border: 1px dashed var(--ramz-border);
  border-radius: var(--ramz-radius-sm);
  background: var(--ramz-bg);
  color: var(--ramz-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.ramz-note-log__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 260px;
  overflow-y: auto;
}

.ramz-note-log__list > li {
  list-style: none !important;
}

.ramz-note-log__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 0.55rem;
  align-items: stretch;
  position: relative;
  margin: 0;
  padding: 0;
}

.ramz-note-log__rail {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
}

.ramz-note-log__item:not(:last-child) .ramz-note-log__rail::after {
  content: "";
  position: absolute;
  top: 1.55rem;
  bottom: -0.55rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(15, 118, 110, 0.16);
}

.ramz-note-log__dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  background: var(--ramz-primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 0 0 3px var(--ramz-surface);
}

.ramz-note-log__card {
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-sm);
  background: var(--ramz-bg);
}

.ramz-note-log__item.is-new .ramz-note-log__card {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15, 118, 110, 0.04);
  animation: ramz-note-in 0.3s ease;
}

@keyframes ramz-note-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ramz-note-log__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.ramz-note-log__user {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ramz-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ramz-note-log__time {
  flex: 0 0 auto;
  font-size: 0.68rem;
  color: var(--ramz-muted);
  white-space: nowrap;
}

.ramz-note-log__comment {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ramz-text);
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.ramz-note-log__date-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--ramz-primary);
  font-size: 0.66rem;
  font-weight: 600;
}

.ramz-note-log__date-chip i {
  font-size: 0.68rem;
}

body.ramz-app.dark-theme .ramz-contact-panel__section--appointment .ramz-contact-panel__form,
body.ramz-app.dark-theme .ramz-note-log__empty,
body.ramz-app.dark-theme .ramz-note-log__card {
  background: rgba(15, 23, 42, 0.35);
}

body.ramz-app.dark-theme .ramz-note-log__item:not(:last-child) .ramz-note-log__rail::after {
  background: rgba(45, 212, 191, 0.22);
}

body.ramz-app.dark-theme .ramz-note-log__dot {
  box-shadow: 0 0 0 3px var(--ramz-surface);
}

.ramz-tab-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  color: var(--ramz-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Templates / settings / auth / quick links
   -------------------------------------------------------------------------- */
.ramz-template-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  background: var(--ramz-surface);
  box-shadow: var(--ramz-shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ramz-template-card:hover {
  border-color: var(--ramz-border-strong);
  box-shadow: var(--ramz-shadow);
  transform: translateY(-1px);
}

.ramz-template-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ramz-template-card__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}

.ramz-template-card__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--ramz-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  font-size: 1.05rem;
  line-height: 1;
}

.ramz-template-card__icon .fe,
.ramz-template-card__tags .fe,
.ramz-template-card .template-status .fe {
  display: inline-block;
  font-style: normal;
  speak: none;
}

.ramz-template-card--marketing .ramz-template-card__icon {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

.ramz-template-card--utility .ramz-template-card__icon {
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
}

.ramz-template-card--authentication .ramz-template-card__icon {
  background: rgba(15, 23, 42, 0.08);
  color: var(--ramz-secondary);
}

.ramz-template-card__title {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--ramz-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.ramz-template-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ramz-template-card__body {
  flex: 1 1 auto;
  padding: 0.75rem 0.85rem;
  border-radius: var(--ramz-radius-sm);
  background: var(--ramz-bg);
  border: 1px solid var(--ramz-border);
  min-height: 76px;
}

.ramz-template-card__body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ramz-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ramz-template-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--ramz-border);
  margin-top: auto;
  padding-top: 0.75rem;
}

.ramz-template-card__date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--ramz-muted);
}

.ramz-template-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ramz-template-card__actions .btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ramz-template-card .template-status,
.ramz-template-card .ramz-badge,
.ramz-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ramz-category-chip {
  padding: 0.2rem 0.55rem;
  border-radius: var(--ramz-radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--ramz-surface-soft);
  color: var(--ramz-muted);
}

.ramz-category-chip.marketing {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

.ramz-category-chip.utility {
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
}

.ramz-category-chip.authentication {
  background: rgba(15, 23, 42, 0.08);
  color: var(--ramz-secondary);
}

.ramz-template-card .status-approved {
  background: rgba(5, 150, 105, 0.12);
  color: var(--ramz-success);
}

.ramz-template-card .status-pending,
.ramz-template-card .status-in_review,
.ramz-template-card .status-submitted {
  background: rgba(217, 119, 6, 0.12);
  color: var(--ramz-warning);
}

.ramz-template-card .status-rejected {
  background: rgba(220, 38, 38, 0.12);
  color: var(--ramz-danger);
}

.ramz-template-card .status-paused {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

body.ramz-app.dark-theme .ramz-category-chip.authentication {
  background: rgba(241, 245, 249, 0.08);
  color: var(--ramz-text-secondary);
}

.ramz-template-view-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ramz-template-view-card__heading {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.ramz-template-view-form .form-control:disabled,
.ramz-template-view-form .form-select:disabled {
  background: var(--ramz-bg) !important;
  color: var(--ramz-text) !important;
  opacity: 1;
  border-color: var(--ramz-border-strong) !important;
}

.ramz-template-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ramz-template-button-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-sm);
  background: var(--ramz-bg);
}

.ramz-template-button-row .input-group {
  width: 100%;
}

.ramz-template-buttons__empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--ramz-border-strong);
  border-radius: var(--ramz-radius-sm);
  color: var(--ramz-muted);
  background: var(--ramz-bg);
  font-size: 0.875rem;
}

.ramz-template-preview-card .card-title {
  display: inline-flex;
  align-items: center;
}

.ramz-template-preview-card .live_preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1rem 1.1rem !important;
  background: var(--ramz-bg);
}

.ramz-iphone {
  position: relative;
  width: min(100%, 280px);
  height: 560px;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #d4d4d8 0%, #a1a1aa 45%, #71717a 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.35),
    0 18px 40px rgba(15, 23, 42, 0.18);
}

.ramz-iphone__btn {
  position: absolute;
  background: #9ca3af;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.ramz-iphone__btn--silent {
  left: -3px;
  top: 92px;
  width: 3px;
  height: 22px;
}

.ramz-iphone__btn--vol-up {
  left: -3px;
  top: 132px;
  width: 3px;
  height: 36px;
}

.ramz-iphone__btn--vol-down {
  left: -3px;
  top: 178px;
  width: 3px;
  height: 36px;
}

.ramz-iphone__btn--power {
  right: -3px;
  top: 150px;
  width: 3px;
  height: 56px;
}

.ramz-iphone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #0b141a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.ramz-iphone__status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 16px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 650;
  background: #075e54;
  z-index: 2;
}

.ramz-iphone__notch {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: #111827;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.ramz-iphone__signals {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
}

.ramz-iphone__wa-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem 0.65rem;
  background: #075e54;
  color: #fff;
}

.ramz-iphone__wa-header > .fe {
  font-size: 1rem;
}

.ramz-iphone__wa-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.68rem;
  font-weight: 700;
}

.ramz-iphone__wa-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.ramz-iphone__wa-meta strong {
  font-size: 0.82rem;
  font-weight: 650;
}

.ramz-iphone__wa-meta small {
  font-size: 0.68rem;
  opacity: 0.85;
}

.ramz-iphone__chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.85rem 0.7rem 0.75rem;
  background-color: #ece5dd;
  background-image:
    radial-gradient(rgba(15, 23, 42, 0.035) 0.7px, transparent 0.7px);
  background-size: 10px 10px;
}

.ramz-iphone__bubble {
  max-width: 100%;
}

.ramz-iphone .preview-container {
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 0.8rem 0.55rem;
  background: #fff;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.08);
}

.ramz-iphone .preview-header {
  margin: 0 0 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.ramz-iphone .preview-body {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.ramz-iphone .preview-body img,
.ramz-iphone .preview-body video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.ramz-iphone .preview-footer {
  font-size: 0.72rem;
  color: #64748b;
}

.ramz-iphone__buttons {
  display: flex;
  flex-direction: column;
  margin-top: 0.45rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.2rem;
}

.ramz-iphone__buttons .preview-button,
.ramz-iphone__buttons .btn-link {
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.25rem;
  border-top: 1px solid #f1f5f9;
  color: #0284c7 !important;
  font-size: 0.78rem;
  text-decoration: none !important;
}

.ramz-iphone__home {
  flex: 0 0 auto;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #075e54;
}

.ramz-iphone__home::after {
  content: "";
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.ramz-iphone__note {
  margin: 0;
  max-width: 280px;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ramz-muted);
}

.ramz-settings-menu-card {
  overflow: hidden;
}

.ramz-settings-menu-card > .card-header {
  padding: 1rem 1.15rem !important;
}

.ramz-settings-menu {
  padding: 0.85rem !important;
  text-align: start !important;
}

.ramz-settings-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0.3rem;
  list-style: none;
}

.ramz-settings-nav .nav-link.ramz-settings-nav__item,
.ramz-settings-nav__item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.75rem;
  width: 100% !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0.65rem 0.75rem !important;
  height: auto !important;
  border: 1px solid transparent !important;
  border-radius: var(--ramz-radius-sm) !important;
  background: transparent;
  color: var(--ramz-text-secondary) !important;
  font-weight: 500;
  text-align: start !important;
  text-decoration: none !important;
  cursor: pointer;
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ramz-settings-nav__item > * {
  pointer-events: none;
}

.ramz-settings-nav .nav-link.ramz-settings-nav__item:hover,
.ramz-settings-nav__item:hover {
  background: var(--ramz-surface-soft) !important;
  color: var(--ramz-text) !important;
  border-color: var(--ramz-border) !important;
}

.ramz-settings-nav .nav-link.ramz-settings-nav__item.active,
.ramz-settings-nav__item.active {
  background: var(--ramz-primary-soft) !important;
  color: var(--ramz-primary) !important;
  border-color: rgba(15, 118, 110, 0.2) !important;
  font-weight: 600;
}

.ramz-settings-nav .nav-link span {
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ramz-settings-nav__label {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 0.9rem;
  font-weight: inherit;
  color: inherit;
  line-height: 1.3;
  text-align: start;
}

.ramz-settings-nav__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  margin: 0;
  font-size: 0.95rem;
  background: var(--ramz-surface-soft);
  color: var(--ramz-muted);
}

.ramz-settings-nav__icon i {
  margin: 0;
  width: auto;
  font-size: inherit;
  line-height: 1;
  color: inherit;
}

.ramz-settings-nav__icon--general {
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
}

.ramz-settings-nav__icon--brand {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

.ramz-settings-nav__icon--whatsapp {
  background: rgba(37, 211, 102, 0.14);
  color: #128C7E;
}

.ramz-settings-nav__icon--language {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

.ramz-settings-nav__icon--roles {
  background: rgba(5, 150, 105, 0.12);
  color: var(--ramz-success);
}

.ramz-settings-nav__icon--password {
  background: rgba(217, 119, 6, 0.12);
  color: var(--ramz-warning);
}

.ramz-settings-panel__icon--whatsapp {
  background: rgba(37, 211, 102, 0.14);
  color: #128C7E;
}

.ramz-settings-panel__icon--language {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

.ramz-settings-panel__icon--roles {
  background: rgba(5, 150, 105, 0.12);
  color: var(--ramz-success);
}

.ramz-settings-panel__icon--password {
  background: rgba(217, 119, 6, 0.12);
  color: var(--ramz-warning);
}

.ramz-settings-panel__footer {
  gap: 0.55rem;
}

.ramz-settings-section h6 {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ramz-settings-table .ramz-badge {
  margin-bottom: 0.2rem;
}

.ramz-settings-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--ramz-border);
}

.ramz-settings-panel__heading {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.ramz-settings-panel__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--ramz-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  font-size: 1.1rem;
}

.ramz-settings-panel__icon--brand {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

.ramz-brand-upload {
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  background: var(--ramz-surface);
  box-shadow: var(--ramz-shadow-sm);
}

.ramz-brand-upload--dark {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), var(--ramz-surface));
}

.ramz-brand-upload--light {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.06), var(--ramz-surface));
}

.ramz-brand-upload--favicon {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.06), var(--ramz-surface));
}

.ramz-brand-upload__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.ramz-brand-upload__badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  font-size: 1rem;
}

.ramz-brand-upload--dark .ramz-brand-upload__badge {
  background: rgba(15, 23, 42, 0.1);
  color: var(--ramz-secondary);
}

.ramz-brand-upload--light .ramz-brand-upload__badge {
  background: rgba(217, 119, 6, 0.12);
  color: var(--ramz-warning);
}

.ramz-brand-upload--favicon .ramz-brand-upload__badge {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

.ramz-brand-upload__title {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ramz-text);
  line-height: 1.2;
}

.ramz-brand-upload__hint {
  font-size: 0.72rem;
  color: var(--ramz-muted);
}

.ramz-brand-upload__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border: 1px dashed var(--ramz-border-strong);
  border-radius: var(--ramz-radius-sm);
  background: var(--ramz-bg);
}

.ramz-brand-upload__preview img {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
}

.ramz-brand-upload__preview--favicon img {
  max-width: 48px;
  max-height: 48px;
}

.ramz-brand-color {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ramz-brand-color__field {
  flex: 1 1 auto;
  min-width: 0;
}

.ramz-brand-color__input {
  min-height: 42px;
  padding-block: 0.25rem !important;
  cursor: pointer;
}

.ramz-brand-color .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ramz-settings-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ramz-settings-profile__img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ramz-border);
  flex: 0 0 48px;
}

.ramz-settings-login-bg {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.04), var(--ramz-surface));
}

.ramz-settings-login-bg__preview {
  border-radius: var(--ramz-radius-sm);
  overflow: hidden;
  border: 1px solid var(--ramz-border);
  background: var(--ramz-bg);
  min-height: 120px;
}

.ramz-settings-login-bg__preview img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.ramz-settings-panel__footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--ramz-border);
  background: var(--ramz-bg);
}

@media (max-width: 767.98px) {
  .ramz-settings-login-bg {
    grid-template-columns: 1fr;
  }

  .ramz-settings-profile {
    flex-direction: column;
    align-items: stretch;
  }
}

.ramz-settings-section {
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--ramz-surface);
}

.ramz-settings-section h6 {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ramz-settings-section p.help {
  color: var(--ramz-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Auth / Login shell (WhatsApp Business SaaS)
   -------------------------------------------------------------------------- */
.ramz-auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background: var(--ramz-bg);
  display: block;
}

.ramz-auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  background: var(--ramz-bg);
}

.ramz-auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2.25rem 2.25rem 2.5rem;
  color: #f8fafc;
  background:
    linear-gradient(155deg, #0b3d3a 0%, #0f766e 48%, #0d9488 100%);
}

.ramz-auth-brand__glow {
  position: absolute;
  inset: auto -18% -28% auto;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 243, 208, 0.28), transparent 68%);
  pointer-events: none;
}

.ramz-auth-brand__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.5px);
  background-size: 28px 28px, 42px 42px;
}

.ramz-auth-brand__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 90px;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 1;
}

.ramz-auth-brand__inner {
  position: relative;
  z-index: 2;
  max-width: 360px;
  width: 100%;
  flex: 1 1 auto;
}

.ramz-auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 1.2rem;
}

.ramz-auth-stat {
  padding: 0.55rem 0.45rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.ramz-auth-stat strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.ramz-auth-stat span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  color: rgba(248, 250, 252, 0.75);
  letter-spacing: 0.02em;
}

.ramz-auth-brand__logo-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.ramz-auth-brand__logo {
  max-height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.ramz-auth-brand__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--ramz-radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ramz-auth-brand__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}

.ramz-auth-brand__copy {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.82);
  max-width: 36ch;
}

.ramz-auth-brand__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ramz-auth-brand__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(248, 250, 252, 0.9);
}

.ramz-auth-brand__point-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
}

/* WhatsApp-related decorative art */
.ramz-auth-art {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: min(320px, 42%);
  min-height: 460px;
  margin-inline-start: auto;
  pointer-events: none;
}

.ramz-auth-art__orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ramz-auth-art__orb--1 {
  width: 150px;
  height: 150px;
  top: 4%;
  inset-inline-end: -12%;
}

.ramz-auth-art__orb--2 {
  width: 78px;
  height: 78px;
  bottom: 14%;
  inset-inline-start: -10%;
}

.ramz-auth-art__orb--3 {
  width: 36px;
  height: 36px;
  top: 40%;
  inset-inline-start: 4%;
  background: rgba(167, 243, 208, 0.18);
}

.ramz-auth-art__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  animation: ramz-auth-pulse 4.5s ease-out infinite;
}

.ramz-auth-art__ring--1 {
  width: 110px;
  height: 110px;
  top: 2%;
  inset-inline-start: 0;
}

.ramz-auth-art__ring--2 {
  width: 150px;
  height: 150px;
  top: -2%;
  inset-inline-start: -5%;
  animation-delay: 1.2s;
  opacity: 0.7;
}

.ramz-auth-art__wa-mark {
  position: absolute;
  width: 78px;
  height: 78px;
  top: 4%;
  inset-inline-start: 4%;
  color: rgba(255, 255, 255, 0.6);
  animation: ramz-auth-float 6s ease-in-out infinite;
}

.ramz-auth-art__float {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--ramz-radius-full);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
  white-space: nowrap;
}

.ramz-auth-art__float i {
  color: #0f766e;
  font-size: 0.78rem;
}

.ramz-auth-art__ticks {
  color: #0ea5e9;
  font-size: 0.72rem;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.ramz-auth-art__float--a {
  top: 10%;
  inset-inline-end: 0;
  animation: ramz-auth-float 5s ease-in-out infinite;
}

.ramz-auth-art__float--b {
  top: 42%;
  inset-inline-start: -10%;
  animation: ramz-auth-float 5.8s ease-in-out infinite 0.4s;
}

.ramz-auth-art__float--c {
  bottom: 18%;
  inset-inline-end: -4%;
  animation: ramz-auth-float 6.4s ease-in-out infinite 0.8s;
}

.ramz-auth-art__float--d {
  top: 28%;
  inset-inline-end: -8%;
  animation: ramz-auth-float 5.4s ease-in-out infinite 0.2s;
}

.ramz-auth-inbox-card {
  position: absolute;
  z-index: 3;
  top: 8%;
  inset-inline-end: 2%;
  width: 168px;
  padding: 0.55rem 0.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
  animation: ramz-auth-float 7s ease-in-out infinite 0.5s;
}

.ramz-auth-inbox-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: #475569;
}

.ramz-auth-inbox-card__head em {
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f766e;
  color: #fff;
  font-style: normal;
  font-size: 0.62rem;
}

.ramz-auth-inbox-card__row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
  padding: 0.28rem 0;
  border-top: 1px solid #e2e8f0;
}

.ramz-auth-inbox-card__av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f766e;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}

.ramz-auth-inbox-card__av--b { background: #0284c7; }
.ramz-auth-inbox-card__av--c { background: #d97706; }

.ramz-auth-inbox-card__row strong {
  display: block;
  font-size: 0.66rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-auth-inbox-card__row small {
  display: block;
  font-size: 0.58rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-auth-inbox-card__time {
  font-size: 0.56rem;
  color: #94a3b8;
}

.ramz-auth-template-card {
  position: absolute;
  z-index: 4;
  bottom: 8%;
  inset-inline-start: -4%;
  width: 140px;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  animation: ramz-auth-float 6.2s ease-in-out infinite 0.3s;
}

.ramz-auth-template-card__tag {
  display: inline-block;
  margin-bottom: 0.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(167, 243, 208, 0.2);
  color: #a7f3d0;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ramz-auth-template-card strong {
  display: block;
  font-size: 0.74rem;
  margin-bottom: 0.1rem;
}

.ramz-auth-template-card small {
  display: block;
  font-size: 0.6rem;
  color: rgba(248, 250, 252, 0.7);
}

.ramz-auth-phone {
  position: absolute;
  left: 46%;
  top: 54%;
  transform: translate(-50%, -50%) rotate(-4deg);
  width: 200px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.ramz-auth-phone__notch {
  width: 42%;
  height: 8px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.ramz-auth-phone__screen {
  border-radius: 20px;
  overflow: hidden;
  background: #ecfdf5;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.ramz-auth-phone__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.7rem;
  background: #0f766e;
  color: #fff;
}

.ramz-auth-phone__bar > div {
  min-width: 0;
  flex: 1 1 auto;
}

.ramz-auth-phone__signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.7);
  animation: ramz-auth-online 2s ease-out infinite;
  flex: 0 0 auto;
}

.ramz-auth-phone__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
}

.ramz-auth-phone__bar strong {
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
}

.ramz-auth-phone__bar small {
  display: block;
  font-size: 0.62rem;
  opacity: 0.8;
}

.ramz-auth-phone__thread {
  flex: 1 1 auto;
  padding: 0.55rem 0.55rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(15, 118, 110, 0.06), transparent 40%),
    #f0fdf4;
}

.ramz-auth-phone__day {
  align-self: center;
  margin: 0.1rem 0 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  font-size: 0.56rem;
  font-weight: 600;
}

.ramz-auth-phone__typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 0.22rem;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ramz-auth-phone__typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a3b8;
  animation: ramz-auth-dot 1.2s ease-in-out infinite;
}

.ramz-auth-phone__typing span:nth-child(2) { animation-delay: 0.15s; }
.ramz-auth-phone__typing span:nth-child(3) { animation-delay: 0.3s; }

.ramz-auth-phone__msg {
  max-width: 85%;
  padding: 0.4rem 0.55rem;
  border-radius: 12px;
  font-size: 0.66rem;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ramz-auth-phone__msg--in {
  align-self: flex-start;
  background: #fff;
  color: #0f172a;
  border-bottom-left-radius: 3px;
}

.ramz-auth-phone__msg--out {
  align-self: flex-end;
  background: #d1fae5;
  color: #064e3b;
  border-bottom-right-radius: 3px;
}

.ramz-auth-phone__msg--ticks {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.ramz-auth-phone__msg--ticks span {
  font-size: 0.58rem;
  color: #0ea5e9;
  letter-spacing: -0.04em;
}

.ramz-auth-phone__composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin: 0.35rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.12);
  color: #94a3b8;
  font-size: 0.64rem;
}

.ramz-auth-phone__composer i {
  color: #0f766e;
  font-size: 0.78rem;
}

@keyframes ramz-auth-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes ramz-auth-pulse {
  0% { transform: scale(0.85); opacity: 0.55; }
  70% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

@keyframes ramz-auth-online {
  0% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(134, 239, 172, 0); }
  100% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0); }
}

@keyframes ramz-auth-dot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.ramz-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(15, 118, 110, 0.08), transparent 55%),
    radial-gradient(700px 320px at 0% 100%, rgba(2, 132, 199, 0.05), transparent 50%),
    var(--ramz-bg);
}

.ramz-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--ramz-surface);
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-lg);
  box-shadow: var(--ramz-shadow);
  padding: 2rem;
}

.ramz-auth-card--login {
  padding: 2.15rem 2rem 1.75rem;
}

.ramz-auth-card__mobile-brand {
  display: none;
  text-align: center;
  margin-bottom: 1rem;
}

.ramz-auth-card .ramz-auth-logo {
  max-height: 36px;
  margin-bottom: 0;
}

.ramz-auth-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--ramz-radius-full);
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ramz-auth-card h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ramz-text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.ramz-auth-card .ramz-auth-sub {
  color: var(--ramz-muted);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.ramz-auth-field {
  position: relative;
}

.ramz-auth-field__icon {
  position: absolute;
  inset-inline-start: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ramz-muted);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 1;
}

.ramz-auth-card .form-control {
  min-height: 46px;
  padding-inline-start: 2.55rem;
  border-radius: var(--ramz-radius-sm);
  border-color: var(--ramz-border);
  background: var(--ramz-surface);
}

.ramz-auth-card .form-control:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.ramz-auth-card .btn-primary {
  min-height: 46px;
  width: 100%;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: var(--ramz-radius-sm);
}

.ramz-auth-card .form-check-label {
  color: var(--ramz-text-secondary);
  font-size: 0.9rem;
}

.ramz-auth-card .form-check-input:checked {
  background-color: var(--ramz-primary);
  border-color: var(--ramz-primary);
}

.ramz-auth-trust {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ramz-border);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ramz-muted);
}

.ramz-auth-trust i {
  color: var(--ramz-primary);
  margin-top: 0.1rem;
  flex: 0 0 auto;
}

.ramz-auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--ramz-muted);
}

.ramz-auth-footer a,
.ramz-auth-link {
  color: var(--ramz-primary);
  font-weight: 500;
  text-decoration: none;
}

.ramz-auth-link:hover { text-decoration: underline; }

@media (max-width: 1199.98px) {
  .ramz-auth-art {
    width: min(260px, 36%);
    min-height: 400px;
  }

  .ramz-auth-phone {
    width: 170px;
  }

  .ramz-auth-phone__screen {
    min-height: 260px;
  }

  .ramz-auth-inbox-card,
  .ramz-auth-art__float--b,
  .ramz-auth-art__float--d {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .ramz-auth-shell {
    grid-template-columns: 1fr;
  }

  .ramz-auth-brand {
    min-height: auto;
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .ramz-auth-brand__copy,
  .ramz-auth-brand__points,
  .ramz-auth-stats,
  .ramz-auth-art,
  .ramz-auth-brand__wave {
    display: none;
  }

  .ramz-auth-brand__title {
    font-size: 1.35rem;
    margin-bottom: 0;
  }

  .ramz-auth-brand__logo {
    max-height: 34px;
  }

  .ramz-auth-brand__logo-link {
    margin-bottom: 1rem;
  }

  .ramz-auth-panel {
    padding: 1.25rem 1rem 2rem;
    align-items: flex-start;
  }

  .ramz-auth-card--login {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .ramz-auth-brand {
    display: none;
  }

  .ramz-auth-card__mobile-brand {
    display: block;
  }

  .ramz-auth-panel {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    padding: 1.25rem 1rem;
  }

  .ramz-auth-card--login {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

.ramz-empty__actions {
  margin-block-start: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.ramz-quick-link {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  background: var(--ramz-surface);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  height: 100%;
}

.ramz-quick-link:hover {
  border-color: var(--ramz-primary);
  box-shadow: var(--ramz-shadow);
  transform: translateY(-1px);
}

.ramz-quick-link__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--ramz-radius-md);
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.ramz-quick-link h6 {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--ramz-text);
}

.ramz-quick-link__arrow {
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  color: inherit;
}

.ramz-quick-link:hover .ramz-quick-link__arrow {
  opacity: 1;
  transform: translateX(0);
}

.ramz-quick-link p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ramz-muted);
}

.ramz-quick-link--primary {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.05), var(--ramz-surface) 60%);
}

.ramz-quick-link--primary:hover {
  border-color: var(--ramz-primary);
}

.ramz-quick-link--primary .ramz-quick-link__icon {
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
}

.ramz-quick-link--info {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.05), var(--ramz-surface) 60%);
}

.ramz-quick-link--info:hover {
  border-color: var(--ramz-info);
}

.ramz-quick-link--info .ramz-quick-link__icon {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

.ramz-quick-link--violet {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.05), var(--ramz-surface) 60%);
}

.ramz-quick-link--violet:hover {
  border-color: #7C3AED;
}

.ramz-quick-link--violet .ramz-quick-link__icon {
  background: rgba(124, 58, 237, 0.12);
  color: #7C3AED;
}

.ramz-quick-link--warning {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.05), var(--ramz-surface) 60%);
}

.ramz-quick-link--warning:hover {
  border-color: var(--ramz-warning);
}

.ramz-quick-link--warning .ramz-quick-link__icon {
  background: rgba(217, 119, 6, 0.12);
  color: var(--ramz-warning);
}

.ramz-app .modal-content {
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-lg);
  box-shadow: var(--ramz-shadow);
}

.ramz-app .modal-header {
  border-bottom: 1px solid var(--ramz-border);
  padding: 1rem 1.25rem;
}

.ramz-app .modal-footer {
  border-top: 1px solid var(--ramz-border);
  padding: 0.85rem 1.25rem;
}

/* --------------------------------------------------------------------------
   New conversation modal
   -------------------------------------------------------------------------- */
.ramz-new-chat-modal .modal-dialog {
  max-width: 460px;
}

.ramz-new-chat-modal .modal-content {
  overflow: hidden;
}

.ramz-new-chat-modal .modal-header {
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.15rem 1.25rem 1rem !important;
}

.ramz-new-chat-modal__heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.ramz-new-chat-modal__heading-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  font-size: 1.1rem;
}

.ramz-new-chat-modal .modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ramz-text);
  line-height: 1.25;
}

.ramz-new-chat-modal__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--ramz-muted);
  line-height: 1.35;
}

.ramz-new-chat-modal .modal-body {
  padding: 0.85rem 1.15rem 1.15rem !important;
}

.ramz-new-chat-modal__search {
  position: relative;
  margin-bottom: 0.85rem;
}

.ramz-new-chat-modal__search > i {
  position: absolute;
  inset-inline-start: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ramz-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.ramz-new-chat-modal__search .form-control {
  height: 42px;
  padding-inline: 2.35rem 0.9rem;
  border-radius: var(--ramz-radius-sm);
  border: 1px solid var(--ramz-border);
  background: var(--ramz-bg);
}

.ramz-new-chat-modal__search .form-control:focus {
  border-color: var(--ramz-primary);
  box-shadow: 0 0 0 3px var(--ramz-primary-soft);
}

.ramz-new-chat-modal__create {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--ramz-radius-md);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.07), var(--ramz-surface) 70%);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ramz-new-chat-modal__create:hover {
  border-color: var(--ramz-primary);
  box-shadow: var(--ramz-shadow-sm);
  transform: translateY(-1px);
}

.ramz-new-chat-modal__create-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  background: var(--ramz-primary);
  color: #fff;
  font-size: 1.1rem;
}

.ramz-new-chat-modal__create-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.ramz-new-chat-modal__create-text strong {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ramz-primary);
  line-height: 1.25;
}

.ramz-new-chat-modal__create-text small {
  font-size: 0.76rem;
  color: var(--ramz-muted);
  line-height: 1.3;
}

.ramz-new-chat-modal__chevron {
  color: var(--ramz-primary);
  font-size: 0.95rem;
  opacity: 0.7;
}

.ramz-new-chat-modal__section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ramz-muted);
}

.ramz-new-chat-modal__section-label .fe {
  font-size: 0.85rem;
  color: var(--ramz-primary);
}

.ramz-new-chat-modal__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.2rem;
  margin-inline-start: 0.15rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--ramz-surface-soft);
  color: var(--ramz-text-secondary);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0;
}

.ramz-new-chat-modal__list {
  max-height: min(48vh, 380px);
  overflow: auto;
  margin: 0 -0.25rem;
  padding: 0.15rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ramz-new-chat-modal__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  background: var(--ramz-surface);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ramz-new-chat-modal__item:hover {
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--ramz-primary-soft);
  box-shadow: var(--ramz-shadow-sm);
}

.ramz-new-chat-modal__avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.ramz-new-chat-modal__avatar > div {
  width: 42px !important;
  height: 42px !important;
  font-size: 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.ramz-new-chat-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.ramz-new-chat-modal__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ramz-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-new-chat-modal__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--ramz-muted);
  line-height: 1.2;
}

.ramz-new-chat-modal__phone .fe {
  font-size: 0.75rem;
}

.ramz-new-chat-modal__action-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.08);
  color: var(--ramz-primary);
  font-size: 0.9rem;
  opacity: 0.85;
}

.ramz-new-chat-modal__item:hover .ramz-new-chat-modal__action-icon {
  background: var(--ramz-primary);
  color: #fff;
  opacity: 1;
}

.ramz-new-chat-modal__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.75rem 1rem;
  text-align: center;
  color: var(--ramz-muted);
  border: 1px dashed var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  background: var(--ramz-bg);
}

.ramz-new-chat-modal__empty .fe {
  font-size: 1.35rem;
  color: var(--ramz-primary);
  opacity: 0.7;
}

.ramz-new-chat-modal__empty p {
  margin: 0;
  font-size: 0.85rem;
  max-width: 16rem;
  line-height: 1.4;
}

.ramz-app .modal-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.ramz-app .breadcrumb-header { margin-bottom: 1rem; }
.ramz-app .main-content-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ramz-text);
}

.ramz-loading { opacity: 0.6; pointer-events: none; }

.ramz-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--ramz-border);
  border-top-color: var(--ramz-primary);
  border-radius: 50%;
  display: inline-block;
  animation: ramz-spin 0.7s linear infinite;
}

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

.ramz-input-copy {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ramz-input-copy .form-control { flex: 1; }

@media (max-width: 991.98px) {
  .ramz-app .main-container.container-fluid {
    padding-inline: 1rem;
  }

  .ramz-page-header__title { font-size: 1.3rem; }

  .ramz-inbox__workspace,
  .ramz-inbox__workspace.is-open {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    height: auto;
    min-height: 0;
  }

  .ramz-inbox__col--list {
    max-height: 50vh;
  }

  .ramz-inbox__col--chat {
    min-height: 70vh;
  }

  .ramz-inbox__workspace.is-open .ramz-inbox__col--details {
    display: block;
    max-height: none;
  }

  .ramz-inbox #chat-right {
    border-inline-start: 1px solid var(--ramz-border) !important;
    border-top: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .ramz-metric-card__value { font-size: 1.4rem; }
  .ramz-auth-card { padding: 1.5rem; }

  .ramz-button-fields {
    flex-wrap: wrap;
  }

  .ramz-button-fields__type,
  .ramz-button-fields__text,
  .ramz-button-fields__value {
    flex: 1 1 100%;
    max-width: none;
  }
}

.ramz-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ramz-button-fields {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-sm);
  background: var(--ramz-bg);
}

.ramz-button-fields .ramz-field-icon {
  min-width: 0;
}

.ramz-button-fields .ramz-field-icon > i {
  z-index: 3;
}

.ramz-button-fields .form-control {
  width: 100%;
  margin: 0 !important;
  border-radius: var(--ramz-radius-sm) !important;
  height: 42px;
}

.ramz-button-fields__type {
  flex: 0 0 170px;
  max-width: 180px;
}

.ramz-button-fields__text,
.ramz-button-fields__value {
  flex: 1 1 0;
}

.ramz-template-form__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Broadcast create wizard
   -------------------------------------------------------------------------- */
.ramz-broadcast-form-card .card-header {
  border-bottom: 1px solid var(--ramz-border);
}

.ramz-broadcast-form .wizard > .steps,
.ramz-broadcast-form-card .wizard > .steps {
  margin-bottom: 1.25rem;
}

.ramz-broadcast-form .wizard > .content,
.ramz-broadcast-form-card .wizard > .content,
.ramz-broadcast-form .wizard > .content > .body,
.ramz-broadcast-form-card .wizard > .content > .body {
  overflow: visible !important;
  position: relative;
}

.ramz-broadcast-form .wizard > .steps ul,
.ramz-broadcast-form-card .wizard > .steps ul {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ramz-broadcast-form .wizard > .steps a,
.ramz-broadcast-form-card .wizard > .steps a,
.ramz-broadcast-form .wizard > .steps a:hover,
.ramz-broadcast-form-card .wizard > .steps a:hover,
.ramz-broadcast-form .wizard > .steps a:active,
.ramz-broadcast-form-card .wizard > .steps a:active {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem !important;
  border-radius: var(--ramz-radius-sm) !important;
  border: 1px solid var(--ramz-border) !important;
  background: var(--ramz-bg) !important;
  color: var(--ramz-muted) !important;
}

.ramz-broadcast-form .wizard > .steps .current a,
.ramz-broadcast-form-card .wizard > .steps .current a,
.ramz-broadcast-form .wizard > .steps .current a:hover,
.ramz-broadcast-form-card .wizard > .steps .current a:hover {
  background: var(--ramz-primary-soft) !important;
  border-color: rgba(15, 118, 110, 0.25) !important;
  color: var(--ramz-primary) !important;
}

.ramz-broadcast-form .wizard > .steps .done a,
.ramz-broadcast-form-card .wizard > .steps .done a {
  background: rgba(5, 150, 105, 0.1) !important;
  border-color: rgba(5, 150, 105, 0.22) !important;
  color: var(--ramz-success) !important;
}

.ramz-broadcast-form .wizard > .steps .number,
.ramz-broadcast-form-card .wizard > .steps .number {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ramz-surface-soft);
  color: inherit;
  font-weight: 700;
  margin-inline-end: 0 !important;
}

.ramz-broadcast-form .wizard > .steps .current .number,
.ramz-broadcast-form-card .wizard > .steps .current .number {
  background: var(--ramz-primary);
  color: #fff;
}

.ramz-broadcast-step__intro {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.05), var(--ramz-surface));
}

.ramz-broadcast-step__intro h5 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ramz-text);
}

.ramz-broadcast-step__intro p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ramz-muted);
}

.ramz-broadcast-step__badge {
  width: 40px;
  height: 40px;
  border-radius: var(--ramz-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  font-size: 1.05rem;
}

.ramz-broadcast-step__badge--template {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

.ramz-broadcast-step__badge--details {
  background: rgba(217, 119, 6, 0.12);
  color: var(--ramz-warning);
}

.ramz-audience-list {
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  overflow: hidden;
  background: var(--ramz-surface);
}

.ramz-audience-list__header .list-group-item {
  background: var(--ramz-surface-soft) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ramz-audience-list__header .list-group-item::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0;
  height: 1px;
  background: var(--ramz-border);
  pointer-events: none;
}

.ramz-audience-list__select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ramz-text);
}

.ramz-audience-list__scroll {
  height: 55vh;
  overflow-y: auto;
}

.ramz-audience-list #contact_list {
  margin: 0;
  border: 0;
}

.ramz-audience-list__header .list-group-item,
.ramz-audience-list #contact_list .list-group-item,
.ramz-audience-list #contact_list .list-group-item.border {
  position: relative;
  border: 0 !important;
  border-width: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  background: var(--ramz-surface);
  box-shadow: none !important;
  transition: background 0.15s ease;
}

.ramz-audience-list #contact_list .list-group-item::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0;
  height: 1px;
  background: var(--ramz-border);
  pointer-events: none;
  z-index: 1;
}

.ramz-audience-list #contact_list .list-group-item:last-child::after {
  display: none;
}

.ramz-audience-list #contact_list .list-group-item:hover {
  background: var(--ramz-bg) !important;
}

.ramz-audience-item__meta {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  overflow: hidden;
}

.ramz-audience-item__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  max-width: 240px;
  padding: 0.28rem 0.65rem;
  border-radius: var(--ramz-radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-audience-item__chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ramz-audience-item__chip > .fe,
.ramz-audience-item__chip > i {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1;
}

.ramz-audience-item__chip--name {
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
}

.ramz-audience-item__chip--phone {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

.ramz-audience-item__chip--group,
.ramz-audience-item__chip--muted {
  background: var(--ramz-surface-soft);
  color: var(--ramz-muted);
}

.ramz-audience-item__chip--primary {
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
}

.ramz-audience-item__chip--info {
  background: rgba(2, 132, 199, 0.12);
  color: var(--ramz-info);
}

.ramz-audience-item__chip--success {
  background: rgba(5, 150, 105, 0.12);
  color: var(--ramz-success);
}

.ramz-audience-item__chip--warning {
  background: rgba(217, 119, 6, 0.12);
  color: var(--ramz-warning);
}

.ramz-broadcast-templates {
  position: relative;
  z-index: 1;
}

.ramz-broadcast-template {
  position: relative;
  height: 100%;
  overflow: visible;
  border: 1px solid var(--ramz-border) !important;
  border-radius: var(--ramz-radius-md) !important;
  box-shadow: var(--ramz-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  z-index: 1;
}

.ramz-broadcast-template:hover {
  z-index: 30;
}

.ramz-broadcast-template::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ramz-primary);
}

.ramz-broadcast-template--marketing::before {
  background: var(--ramz-info);
}

.ramz-broadcast-template--utility::before {
  background: var(--ramz-primary);
}

.ramz-broadcast-template--authentication::before {
  background: #475569;
}

.ramz-broadcast-template:hover,
.ramz-broadcast-template.is-selected {
  border-color: var(--ramz-primary) !important;
  box-shadow: var(--ramz-shadow);
  transform: translateY(-2px);
}

.ramz-broadcast-template.is-selected {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.04), var(--ramz-surface));
}

.ramz-broadcast-template .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-inline-start: 1rem !important;
  background: var(--ramz-bg) !important;
  border-bottom: 1px solid var(--ramz-border);
}

.ramz-broadcast-template--marketing .card-header {
  background: rgba(2, 132, 199, 0.06) !important;
}

.ramz-broadcast-template--utility .card-header {
  background: rgba(15, 118, 110, 0.06) !important;
}

.ramz-broadcast-template--authentication .card-header {
  background: rgba(71, 85, 105, 0.08) !important;
}

.ramz-broadcast-template__title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--ramz-text);
}

.ramz-broadcast-template__heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ramz-broadcast-template__name {
  font-weight: 650;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.ramz-broadcast-template__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ramz-muted);
}

.ramz-broadcast-template__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
  flex: 0 0 36px;
  font-size: 1rem;
}

.ramz-broadcast-template--marketing .ramz-broadcast-template__icon {
  background: rgba(2, 132, 199, 0.14);
  color: var(--ramz-info);
}

.ramz-broadcast-template--utility .ramz-broadcast-template__icon {
  background: var(--ramz-primary-soft);
  color: var(--ramz-primary);
}

.ramz-broadcast-template--authentication .ramz-broadcast-template__icon {
  background: rgba(71, 85, 105, 0.14);
  color: #334155;
}

.ramz-broadcast-template .card-body {
  padding: 0.95rem 1rem 1rem !important;
  padding-inline-start: 1.1rem !important;
}

.ramz-broadcast-template__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.ramz-broadcast-template__preview {
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-sm);
  background: var(--ramz-bg);
  padding: 0.7rem 0.75rem;
}

.ramz-broadcast-template__preview-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ramz-muted);
}

.ramz-broadcast-template__body {
  font-size: 0.84rem;
  color: var(--ramz-text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.ramz-broadcast-template__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ramz-muted);
}

.ramz-broadcast-template__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ramz-broadcast-template__meta .fe {
  font-size: 0.85rem;
  color: var(--ramz-primary);
}

.ramz-broadcast-template__view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(2, 132, 199, 0.28);
  background: rgba(2, 132, 199, 0.1);
  color: var(--ramz-info);
  border-radius: var(--ramz-radius-full);
  padding: 0.28rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ramz-broadcast-template__view-btn:hover,
.ramz-broadcast-template.is-previewing .ramz-broadcast-template__view-btn {
  background: rgba(2, 132, 199, 0.16);
  border-color: var(--ramz-info);
  color: var(--ramz-info);
}

.ramz-broadcast-template__view-btn .fe {
  color: inherit;
  font-size: 0.85rem;
  margin: 0;
}

.ramz-broadcast-template__mobile {
  position: absolute;
  top: 50%;
  inset-inline-end: calc(100% + 12px);
  transform: translateY(-50%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 40;
}

.ramz-broadcast-template.is-previewing {
  z-index: 35;
}

.ramz-broadcast-template.is-previewing .ramz-broadcast-template__mobile {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.ramz-broadcast-templates .col-md-4:nth-child(3n+1) .ramz-broadcast-template__mobile {
  inset-inline-end: auto;
  inset-inline-start: calc(100% + 12px);
}

.ramz-iphone--sm {
  width: 230px;
  height: 460px;
  padding: 10px;
  border-radius: 34px;
}

.ramz-iphone--sm .ramz-iphone__screen {
  border-radius: 26px;
}

.ramz-iphone--sm .ramz-iphone__status {
  height: 28px;
  font-size: 0.65rem;
}

.ramz-iphone--sm .ramz-iphone__notch {
  width: 78px;
  height: 18px;
}

.ramz-iphone--sm .ramz-iphone__wa-header {
  padding: 0.4rem 0.6rem 0.5rem;
}

.ramz-iphone--sm .preview-body {
  font-size: 0.72rem;
}

.ramz-broadcast-template .status-approved {
  background: rgba(5, 150, 105, 0.12);
  color: var(--ramz-success);
}

@media (max-width: 1199.98px) {
  .ramz-broadcast-template__mobile {
    inset-inline: 50% auto auto 50%;
    top: auto;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 8px) scale(0.96);
  }

  .ramz-broadcast-template.is-previewing .ramz-broadcast-template__mobile {
    transform: translate(-50%, 0) scale(1);
  }

  .ramz-broadcast-templates .col-md-4:nth-child(3n+1) .ramz-broadcast-template__mobile {
    inset-inline-start: 50%;
  }
}

.ramz-broadcast-form .wizard > .actions a,
.ramz-broadcast-form-card .wizard > .actions a {
  border-radius: var(--ramz-radius-sm) !important;
  background: var(--ramz-primary) !important;
  border-color: var(--ramz-primary) !important;
  color: #fff !important;
  padding: 0.5rem 1rem !important;
}

.ramz-broadcast-form .wizard > .actions a[href="#previous"],
.ramz-broadcast-form-card .wizard > .actions a[href="#previous"] {
  background: var(--ramz-surface) !important;
  border: 1px solid var(--ramz-border-strong) !important;
  color: var(--ramz-text) !important;
}

.SumoSelect {
  width: 100%;
  margin-block-end: 0.5rem;
}

.SumoSelect > .CaptionCont {
  border-radius: var(--ramz-radius-sm);
  border-color: var(--ramz-border);
}

.ramz-billing-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem;
  border: 1px solid var(--ramz-border, #e2e8f0);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.02);
}

.ramz-billing-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ramz-text-secondary, #475569);
  text-decoration: none;
}

.ramz-billing-nav__link:hover {
  background: rgba(13, 148, 136, 0.08);
  color: var(--ramz-primary, #0d9488);
}

.ramz-billing-nav__link.is-active {
  background: rgba(13, 148, 136, 0.14);
  color: var(--ramz-primary, #0d9488);
}

.ramz-campaign-estimate {
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.06), #fff);
}

/* ===== Inbox: template picker modal ===== */
.ramz-template-picker .modal-header {
  align-items: flex-start;
}

.ramz-template-picker__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: min(62vh, 560px);
  overflow: auto;
  padding-inline-end: 0.15rem;
}

.ramz-template-picker__desc-label {
  display: block;
  margin: 0.15rem 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ramz-muted, #94a3b8);
}

.ramz-template-picker__view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-inline-start: auto;
  border: 0;
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.ramz-template-picker__view-btn:hover {
  background: rgba(13, 148, 136, 0.18);
}

.ramz-template-picker__mobile {
  display: none;
  width: 100%;
  justify-content: center;
  padding-top: 0.85rem;
  margin-top: 0.75rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}

.ramz-template-picker__card.is-previewing .ramz-template-picker__mobile {
  display: flex;
}

.ramz-template-picker__card.is-previewing .ramz-template-picker__mobile[aria-hidden="true"] {
  display: none;
}

.ramz-template-picker__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.65rem;
}

.ramz-template-picker__card {
  position: relative;
  display: block;
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--ramz-border, #e2e8f0);
  border-radius: 0.9rem;
  background: var(--ramz-surface, #fff);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: left;
}

.ramz-template-picker__main {
  width: 100%;
}

.ramz-template-picker__row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  width: 100%;
}

.ramz-template-picker__card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.ramz-template-picker__card.active,
.ramz-template-picker__card:has(.ramz-template-picker__radio:checked) {
  border-color: rgba(13, 148, 136, 0.55);
  background: rgba(13, 148, 136, 0.05);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.2);
}

.ramz-template-picker__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ramz-template-picker__icon {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
  font-size: 1.05rem;
}

.ramz-template-picker__content {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  text-align: left;
}

.ramz-template-picker__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.45rem;
  text-align: left;
}

.ramz-template-picker__name {
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--ramz-text, #0f172a);
  word-break: break-word;
  text-align: left;
}

.ramz-template-picker__meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.ramz-template-picker__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--ramz-text-secondary, #475569);
  font-size: 0.72rem;
  font-weight: 650;
}

.ramz-template-picker__header-text {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ramz-text, #0f172a);
  margin-bottom: 0.25rem;
}

.ramz-template-picker__body {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ramz-text-secondary, #334155);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: left;
  direction: ltr;
}

.ramz-template-picker__footer-text {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--ramz-muted, #94a3b8);
}

.ramz-template-picker__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--ramz-muted, #94a3b8);
  font-weight: 600;
}

.ramz-template-picker__foot span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ramz-template-picker__check {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--ramz-border, #cbd5e1);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}

.ramz-template-picker__card.active .ramz-template-picker__check,
.ramz-template-picker__card:has(.ramz-template-picker__radio:checked) .ramz-template-picker__check {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

/* ===== Dashboard visual redesign ===== */
.ramz-dash-month-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--ramz-border, #e2e8f0);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ramz-text-secondary, #475569);
}

.ramz-dash-kpi {
  height: 100%;
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  background: var(--ramz-surface, #fff);
  border: 1px solid var(--ramz-border, #e2e8f0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ramz-dash-kpi__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.ramz-dash-kpi__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ramz-dash-kpi__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ramz-text-secondary, #64748b);
}

.ramz-dash-kpi__value {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ramz-text, #0f172a);
  letter-spacing: -0.02em;
}

.ramz-dash-kpi__meta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--ramz-muted, #94a3b8);
}

.ramz-dash-kpi--teal .ramz-dash-kpi__icon {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}
.ramz-dash-kpi--green .ramz-dash-kpi__icon {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}
.ramz-dash-kpi--amber .ramz-dash-kpi__icon {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}
.ramz-dash-kpi--blue .ramz-dash-kpi__icon {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.ramz-consume-card {
  padding: 1.25rem 1.35rem;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(37, 99, 235, 0.08) 55%, var(--ramz-surface, #fff));
  border: 1px solid rgba(13, 148, 136, 0.18);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.ramz-consume-card--warning {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.14), rgba(234, 179, 8, 0.08) 55%, var(--ramz-surface, #fff));
  border-color: rgba(217, 119, 6, 0.22);
}

.ramz-consume-card--danger {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(248, 113, 113, 0.08) 55%, var(--ramz-surface, #fff));
  border-color: rgba(220, 38, 38, 0.22);
}

.ramz-consume-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.ramz-consume-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ramz-text-secondary, #475569);
  margin-bottom: 0.35rem;
}

.ramz-consume-card__title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ramz-text, #0f172a);
  letter-spacing: -0.02em;
}

.ramz-consume-card__of {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ramz-muted, #94a3b8);
}

.ramz-consume-card__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ramz-consume-card__pct {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ramz-primary, #0d9488);
}

.ramz-consume-card--warning .ramz-consume-card__pct { color: #d97706; }
.ramz-consume-card--danger .ramz-consume-card__pct { color: #dc2626; }

.ramz-consume-bar {
  margin: 1rem 0 0.85rem;
}

.ramz-consume-bar__track {
  height: 0.7rem;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.08),
    rgba(15, 23, 42, 0.08) 6px,
    transparent 6px,
    transparent 10px
  );
  background-color: rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.ramz-consume-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d9488, #14b8a6);
  transition: width 0.4s ease;
}

.ramz-consume-card--warning .ramz-consume-bar__fill {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.ramz-consume-card--danger .ramz-consume-bar__fill {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.ramz-consume-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--ramz-text-secondary, #475569);
}

.ramz-consume-card__link {
  font-weight: 700;
  color: var(--ramz-primary, #0d9488);
  text-decoration: none;
}

.ramz-consume-card__link:hover { text-decoration: underline; }

.ramz-dash-status-chip {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.ramz-dash-status-chip--ok {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.ramz-dash-status-chip--danger {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.ramz-dash-panel {
  height: 100%;
  border-radius: 1rem;
  background: var(--ramz-surface, #fff);
  border: 1px solid var(--ramz-border, #e2e8f0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ramz-dash-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.35rem;
}

.ramz-dash-panel__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
}

.ramz-dash-panel__title i { color: var(--ramz-primary, #0d9488); }

.ramz-dash-panel__sub {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--ramz-muted, #94a3b8);
}

.ramz-dash-panel__body {
  padding: 0.65rem 1.15rem 1.15rem;
  position: relative;
}

.ramz-dash-chart-empty {
  position: absolute;
  inset: auto 1.15rem 1.15rem;
}

.ramz-category-bar + .ramz-category-bar {
  margin-top: 0.85rem;
}

.ramz-category-bar__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
}

.ramz-category-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 650;
  color: var(--ramz-text, #0f172a);
}

.ramz-category-bar__value {
  color: var(--ramz-text-secondary, #64748b);
  font-weight: 600;
  white-space: nowrap;
}

.ramz-category-bar__track {
  height: 0.45rem;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.08),
    rgba(15, 23, 42, 0.08) 5px,
    transparent 5px,
    transparent 9px
  );
  background-color: rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.ramz-category-bar__fill {
  height: 100%;
  border-radius: 999px;
}

.ramz-category-bar__fill--marketing { background: #2563eb; }
.ramz-category-bar__fill--utility { background: #0d9488; }
.ramz-category-bar__fill--authentication { background: #d97706; }
.ramz-category-bar__fill--service { background: #7c3aed; }

.ramz-spend-summary {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}

.ramz-spend-summary__head {
  margin-bottom: 0.75rem;
}

.ramz-spend-summary__head--budget {
  margin-top: 1.1rem;
  margin-bottom: 0.55rem;
}

.ramz-spend-summary__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
  color: var(--ramz-text);
}

.ramz-spend-summary__title > i {
  color: var(--ramz-primary);
  font-size: 1rem;
}

.ramz-spend-summary__desc {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ramz-muted);
}

.ramz-spend-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body.ramz-app.dark-theme .ramz-spend-summary {
  border-top-color: rgba(255, 255, 255, 0.1);
}
.ramz-spend-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  min-width: 0;
}
.ramz-spend-chip__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1rem;
}
.ramz-spend-chip__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ramz-muted, #64748b);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ramz-spend-chip strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ramz-text, #0f172a);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.ramz-spend-chip--today {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.12), rgba(202, 138, 4, 0.04));
  border-color: rgba(202, 138, 4, 0.2);
}
.ramz-spend-chip--today .ramz-spend-chip__icon { background: rgba(202, 138, 4, 0.16); color: #a16207; }
.ramz-spend-chip--avg {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.03));
  border-color: rgba(14, 165, 233, 0.18);
}
.ramz-spend-chip--avg .ramz-spend-chip__icon { background: rgba(14, 165, 233, 0.14); color: #0284c7; }
.ramz-spend-chip--month {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 0.04));
  border-color: rgba(15, 118, 110, 0.2);
}
.ramz-spend-chip--month .ramz-spend-chip__icon { background: rgba(15, 118, 110, 0.14); color: #0f766e; }
.ramz-spend-chip--month strong { color: #0f766e; }
.ramz-spend-chip--peak {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.1), rgba(225, 29, 72, 0.03));
  border-color: rgba(225, 29, 72, 0.16);
}
.ramz-spend-chip--peak .ramz-spend-chip__icon { background: rgba(225, 29, 72, 0.12); color: #be123c; }
@media (max-width: 991.98px) {
  .ramz-spend-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .ramz-spend-chips { grid-template-columns: 1fr; }
}
body.ramz-app.dark-theme .ramz-spend-chip {
  background: rgba(255, 255, 255, 0.04);
}
body.ramz-app.dark-theme .ramz-spend-chip strong {
  color: #e2e8f0;
}
body.ramz-app.dark-theme .ramz-spend-chips {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.ramz-budget-strip {
  margin-top: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.02));
}
.ramz-budget-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.ramz-budget-strip__title {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}
.ramz-budget-strip__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(15, 118, 110, 0.14);
  color: #0f766e;
  font-size: 1rem;
}
.ramz-budget-strip__title strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ramz-text, #0f172a);
  line-height: 1.25;
}
.ramz-budget-strip__title > div > span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--ramz-muted, #64748b);
}
.ramz-budget-strip__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.75rem;
  font-size: 0.75rem;
  color: var(--ramz-muted, #64748b);
}
.ramz-budget-strip__meta em {
  font-style: normal;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f766e;
}
.ramz-budget-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  color: #0f766e;
  text-decoration: none !important;
}
.ramz-budget-strip__link:hover { color: #115e59; }
.ramz-budget-strip__track {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.ramz-budget-strip__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #0f766e);
  transition: width 0.35s ease;
}
.ramz-budget-strip--success {
  border-color: rgba(22, 163, 74, 0.2);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(22, 163, 74, 0.03));
}
.ramz-budget-strip--success .ramz-budget-strip__icon { background: rgba(22, 163, 74, 0.14); color: #15803d; }
.ramz-budget-strip--success .ramz-budget-strip__meta em,
.ramz-budget-strip--success .ramz-budget-strip__link { color: #15803d; }
.ramz-budget-strip--success .ramz-budget-strip__fill { background: linear-gradient(90deg, #4ade80, #16a34a); }
.ramz-budget-strip--warning {
  border-color: rgba(202, 138, 4, 0.24);
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.12), rgba(202, 138, 4, 0.04));
}
.ramz-budget-strip--warning .ramz-budget-strip__icon { background: rgba(202, 138, 4, 0.16); color: #a16207; }
.ramz-budget-strip--warning .ramz-budget-strip__meta em,
.ramz-budget-strip--warning .ramz-budget-strip__link { color: #a16207; }
.ramz-budget-strip--warning .ramz-budget-strip__fill { background: linear-gradient(90deg, #fbbf24, #ca8a04); }
.ramz-budget-strip--danger {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.03));
}
.ramz-budget-strip--danger .ramz-budget-strip__icon { background: rgba(220, 38, 38, 0.12); color: #dc2626; }
.ramz-budget-strip--danger .ramz-budget-strip__meta em,
.ramz-budget-strip--danger .ramz-budget-strip__link { color: #dc2626; }
.ramz-budget-strip--danger .ramz-budget-strip__fill { background: linear-gradient(90deg, #f87171, #dc2626); }
.ramz-budget-strip--muted {
  border-color: rgba(100, 116, 139, 0.18);
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.08), rgba(100, 116, 139, 0.02));
}
.ramz-budget-strip--muted .ramz-budget-strip__icon { background: rgba(100, 116, 139, 0.12); color: #64748b; }
body.ramz-app.dark-theme .ramz-budget-strip {
  background: rgba(255, 255, 255, 0.04);
}
body.ramz-app.dark-theme .ramz-budget-strip__title strong {
  color: #e2e8f0;
}
body.ramz-app.dark-theme .ramz-budget-strip__track {
  background: rgba(255, 255, 255, 0.08);
}

.ramz-billing-glance .card-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.ramz-billing-glance .card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.ramz-billing-glance__title-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 0.95rem;
}
.ramz-billing-glance__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #0f766e;
  text-decoration: none !important;
}
.ramz-billing-glance__link:hover { color: #115e59; }
.ramz-billing-glance__rows {
  display: grid;
  gap: 0.55rem;
}
.ramz-billing-glance__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
}
.ramz-billing-glance__icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.05rem;
}
.ramz-billing-glance__copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}
.ramz-billing-glance__copy span {
  font-size: 0.78rem;
  color: var(--ramz-muted, #64748b);
  line-height: 1.3;
}
.ramz-billing-glance__copy strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ramz-text, #0f172a);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ramz-billing-glance__row--meta {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.05));
  border-color: rgba(18, 140, 126, 0.16);
}
.ramz-billing-glance__row--meta .ramz-billing-glance__icon {
  background: rgba(37, 211, 102, 0.18);
  color: #128c7e;
}
.ramz-billing-glance__row--fee {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.03));
  border-color: rgba(14, 165, 233, 0.18);
}
.ramz-billing-glance__row--fee .ramz-billing-glance__icon {
  background: rgba(14, 165, 233, 0.14);
  color: #0284c7;
}
.ramz-billing-glance__row--total {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 0.04));
  border-color: rgba(15, 118, 110, 0.2);
}
.ramz-billing-glance__row--total .ramz-billing-glance__icon {
  background: rgba(15, 118, 110, 0.14);
  color: #0f766e;
}
.ramz-billing-glance__row--total strong { color: #0f766e; }
.ramz-billing-glance__row--plan {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.12), rgba(202, 138, 4, 0.04));
  border-color: rgba(202, 138, 4, 0.2);
}
.ramz-billing-glance__row--plan .ramz-billing-glance__icon {
  background: rgba(202, 138, 4, 0.16);
  color: #a16207;
}
.ramz-billing-glance__plan {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(202, 138, 4, 0.14);
  color: #854d0e !important;
  font-size: 0.78rem !important;
}
.ramz-billing-glance__cats {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}
.ramz-billing-glance__cats-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ramz-text, #0f172a);
}
.ramz-billing-glance__cats-title .fe { color: #0f766e; }
.ramz-billing-cat + .ramz-billing-cat { margin-top: 0.7rem; }
.ramz-billing-cat__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}
.ramz-billing-cat__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  color: var(--ramz-text, #0f172a);
}
.ramz-billing-cat__icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex: 0 0 auto;
}
.ramz-billing-cat__top strong {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.ramz-billing-cat__track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.ramz-billing-cat__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 0;
}
.ramz-billing-cat--rose .ramz-billing-cat__icon { background: rgba(225, 29, 72, 0.12); color: #be123c; }
.ramz-billing-cat--rose .ramz-billing-cat__fill { background: linear-gradient(90deg, #fb7185, #e11d48); }
.ramz-billing-cat--teal .ramz-billing-cat__icon { background: rgba(15, 118, 110, 0.12); color: #0f766e; }
.ramz-billing-cat--teal .ramz-billing-cat__fill { background: linear-gradient(90deg, #2dd4bf, #0f766e); }
.ramz-billing-cat--amber .ramz-billing-cat__icon { background: rgba(217, 119, 6, 0.14); color: #b45309; }
.ramz-billing-cat--amber .ramz-billing-cat__fill { background: linear-gradient(90deg, #fbbf24, #d97706); }
.ramz-billing-cat--sky .ramz-billing-cat__icon { background: rgba(14, 165, 233, 0.14); color: #0284c7; }
.ramz-billing-cat--sky .ramz-billing-cat__fill { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.ramz-billing-glance__note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.95rem 0 0;
  font-size: 0.72rem;
  color: var(--ramz-muted, #64748b);
  line-height: 1.4;
}
.ramz-billing-glance__note .fe {
  margin-top: 0.1rem;
  color: #0ea5e9;
}
body.ramz-app.dark-theme .ramz-billing-glance__row--meta,
body.ramz-app.dark-theme .ramz-billing-glance__row--fee,
body.ramz-app.dark-theme .ramz-billing-glance__row--total,
body.ramz-app.dark-theme .ramz-billing-glance__row--plan {
  background: rgba(255, 255, 255, 0.04);
}
body.ramz-app.dark-theme .ramz-billing-glance__copy strong,
body.ramz-app.dark-theme .ramz-billing-cat__label {
  color: #e2e8f0;
}
body.ramz-app.dark-theme .ramz-billing-cat__track {
  background: rgba(255, 255, 255, 0.08);
}

.ramz-billing-snap__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.86rem;
}

.ramz-billing-snap__row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ramz-text-secondary, #475569);
}

.ramz-billing-snap__row--total {
  border-bottom: 0;
  padding-top: 0.75rem;
}

.ramz-billing-snap__row--total strong {
  font-size: 1.05rem;
  color: var(--ramz-primary, #0d9488);
}

.ramz-dash-status-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.ramz-dash-status-chip-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: var(--ramz-surface, #fff);
  border: 1px solid var(--ramz-border, #e2e8f0);
}

.ramz-dash-status-chip-card > i {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
}

.ramz-dash-status-chip-card__label {
  font-size: 0.72rem;
  color: var(--ramz-muted, #94a3b8);
  font-weight: 600;
}

.ramz-dash-status-chip-card__value {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--ramz-text, #0f172a);
}

.ramz-dash-mini-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.ramz-dash-mini {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: var(--ramz-surface, #fff);
  border: 1px solid var(--ramz-border, #e2e8f0);
}

.ramz-dash-mini i {
  color: var(--ramz-primary, #0d9488);
  margin-bottom: 0.15rem;
}

.ramz-dash-mini span {
  font-size: 0.72rem;
  color: var(--ramz-muted, #94a3b8);
  font-weight: 600;
}

.ramz-dash-mini strong {
  font-size: 1.05rem;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .ramz-dash-status-row,
  .ramz-dash-mini-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .ramz-dash-status-row,
  .ramz-dash-mini-row {
    grid-template-columns: 1fr;
  }

  .ramz-dash-kpi__value,
  .ramz-consume-card__title {
    font-size: 1.3rem;
  }
}

/* WhatsApp Account Health */
.ramz-health-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
  background: #94a3b8;
  flex: 0 0 auto;
}
.ramz-health-dot--success { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
.ramz-health-dot--warning { background: #ca8a04; box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.16); }
.ramz-health-dot--danger { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16); }
.ramz-health-dot--info,
.ramz-health-dot--muted { background: #94a3b8; }

.ramz-health-score {
  --score: 0;
  position: relative;
  width: 6.75rem;
  height: 6.75rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 14px rgba(15, 118, 110, 0.12));
}
.ramz-health-score--sm {
  width: 4.75rem;
  height: 4.75rem;
  filter: none;
}
.ramz-health-score__ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ramz-health-score__track {
  fill: none;
  stroke: rgba(15, 23, 42, 0.08);
  stroke-width: 2.8;
}
.ramz-health-score__fill {
  fill: none;
  stroke: var(--ramz-primary, #0f766e);
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.45s ease;
}
.ramz-health-hero--success .ramz-health-score__fill,
.ramz-health-dash--success .ramz-health-score__fill { stroke: #16a34a; }
.ramz-health-hero--warning .ramz-health-score__fill,
.ramz-health-dash--warning .ramz-health-score__fill { stroke: #ca8a04; }
.ramz-health-hero--danger .ramz-health-score__fill,
.ramz-health-dash--danger .ramz-health-score__fill { stroke: #dc2626; }
.ramz-health-hero--info .ramz-health-score__fill,
.ramz-health-dash--info .ramz-health-score__fill { stroke: #0ea5e9; }
.ramz-health-score__value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ramz-health-score__value strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ramz-text, #0f172a);
}
.ramz-health-score--sm .ramz-health-score__value strong { font-size: 1.1rem; }
.ramz-health-score__value small {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--ramz-muted, #64748b);
  font-weight: 600;
}

.ramz-health-hero,
.ramz-health-dash {
  border: 1px solid var(--ramz-border, #e5e7eb);
  border-radius: var(--ramz-radius, 0.85rem);
  background: var(--ramz-surface, #fff);
  padding: 1.2rem 1.3rem;
  position: relative;
  overflow: hidden;
}
.ramz-health-hero::before,
.ramz-health-dash::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #94a3b8;
  z-index: 1;
}
.ramz-health-hero--success::before,
.ramz-health-dash--success::before { background: #16a34a; }
.ramz-health-hero--warning::before,
.ramz-health-dash--warning::before { background: #ca8a04; }
.ramz-health-hero--danger::before,
.ramz-health-dash--danger::before { background: #dc2626; }
.ramz-health-hero--info::before,
.ramz-health-dash--info::before { background: #0ea5e9; }

.ramz-health-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 18%, rgba(15, 118, 110, 0.1), transparent 42%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.05), transparent 55%);
}
.ramz-health-hero--success .ramz-health-hero__glow {
  background:
    radial-gradient(circle at 88% 18%, rgba(22, 163, 74, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(22, 163, 74, 0.07), transparent 55%);
}
.ramz-health-hero--warning .ramz-health-hero__glow {
  background:
    radial-gradient(circle at 88% 18%, rgba(202, 138, 4, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(202, 138, 4, 0.08), transparent 55%);
}
.ramz-health-hero--danger .ramz-health-hero__glow {
  background:
    radial-gradient(circle at 88% 18%, rgba(220, 38, 38, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(220, 38, 38, 0.07), transparent 55%);
}
.ramz-health-hero--info .ramz-health-hero__glow {
  background:
    radial-gradient(circle at 88% 18%, rgba(14, 165, 233, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.07), transparent 55%);
}

.ramz-health-hero__main,
.ramz-health-dash__left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  position: relative;
  z-index: 1;
}
.ramz-health-hero [class*="fe-"],
.ramz-health-dash [class*="fe-"],
.ramz-health-signal [class*="fe-"],
.ramz-health-panel [class*="fe-"],
.ramz-health-table [class*="fe-"],
.ramz-health-hero .mdi,
.ramz-health-dash .mdi,
.ramz-health-signal .mdi,
.ramz-health-panel .mdi,
.ramz-health-table .mdi {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ramz-health-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ramz-muted, #64748b);
  margin-bottom: 0.35rem;
}
.ramz-health-hero__eyebrow .fe { color: var(--ramz-primary, #0f766e); }
.ramz-health-hero--success .ramz-health-hero__eyebrow .fe { color: #16a34a; }
.ramz-health-hero--warning .ramz-health-hero__eyebrow .fe { color: #ca8a04; }
.ramz-health-hero--danger .ramz-health-hero__eyebrow .fe { color: #dc2626; }
.ramz-health-hero__status,
.ramz-health-dash__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ramz-text, #0f172a);
  line-height: 1.2;
}
.ramz-health-dash__status { font-size: 1.1rem; }
.ramz-health-hero__score-label,
.ramz-health-dash__score-label {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--ramz-muted, #64748b);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.ramz-health-hero__score-label > i,
.ramz-health-dash__score-label > i {
  margin-top: 0.15rem;
  flex: 0 0 auto;
}
.ramz-health-hero__sync,
.ramz-health-dash__sync,
.ramz-health-hero__meta {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--ramz-muted, #64748b);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}
.ramz-health-hero__meta > span,
.ramz-health-hero__sync {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.ramz-health-hero__meta > span > i {
  opacity: 0.85;
}
.ramz-health-dash__meta {
  margin-top: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--ramz-radius-md, 0.65rem);
  background: rgba(15, 118, 110, 0.07);
  border: 1px solid rgba(15, 118, 110, 0.14);
  display: grid;
  gap: 0.45rem;
  max-width: 22rem;
}
.ramz-health-dash__meta.is-warn {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.2);
}
.ramz-health-dash__meta.is-bad {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.18);
}
.ramz-health-dash__meta-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.ramz-health-dash__meta-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  font-size: 1rem;
  flex: 0 0 auto;
}
.ramz-health-dash__meta-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ramz-muted, #64748b);
  line-height: 1.2;
}
.ramz-health-dash__meta strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--ramz-text, #0f172a);
  line-height: 1.25;
}
.ramz-health-dash__meta-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ramz-health-dash__meta-facts > span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ramz-text-secondary, #475569);
  font-variant-numeric: tabular-nums;
}
.ramz-health-dash__meta-facts > span > i {
  font-size: 0.78rem;
  opacity: 0.85;
}
body.ramz-app.dark-theme .ramz-health-dash__meta {
  background: rgba(15, 118, 110, 0.16);
  border-color: rgba(15, 118, 110, 0.28);
}
body.ramz-app.dark-theme .ramz-health-dash__meta.is-warn {
  background: rgba(217, 119, 6, 0.14);
  border-color: rgba(217, 119, 6, 0.3);
}
body.ramz-app.dark-theme .ramz-health-dash__meta.is-bad {
  background: rgba(220, 38, 38, 0.14);
  border-color: rgba(220, 38, 38, 0.3);
}
body.ramz-app.dark-theme .ramz-health-dash__meta strong {
  color: #e2e8f0;
}
body.ramz-app.dark-theme .ramz-health-dash__meta-facts > span {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}
.ramz-health-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.ramz-health-counts > span,
.ramz-health-counts--compact span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--ramz-text, #0f172a);
}
.ramz-health-counts .is-good,
.ramz-health-counts--compact .is-good { background: rgba(22, 163, 74, 0.12); color: #166534; }
.ramz-health-counts .is-warn,
.ramz-health-counts--compact .is-warn { background: rgba(202, 138, 4, 0.14); color: #854d0e; }
.ramz-health-critical {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.8rem 0.95rem;
  border-radius: var(--ramz-radius-sm, 0.55rem);
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.18);
  color: #991b1b;
  position: relative;
  z-index: 1;
}
.ramz-health-critical__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.12);
  flex: 0 0 auto;
}
.ramz-health-critical p { margin: 0.15rem 0 0; font-size: 0.85rem; }
.ramz-health-disclaimer {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  color: var(--ramz-muted, #64748b);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.ramz-health-dash {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
}
.ramz-health-dash--empty {
  display: block;
  padding: 1rem 1.2rem;
  background: rgba(202, 138, 4, 0.08);
  border-color: rgba(202, 138, 4, 0.25);
}
.ramz-health-dash--empty::before { background: #ca8a04; }
.ramz-health-dash__signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.ramz-health-dash__chip {
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--ramz-radius-sm, 0.55rem);
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.ramz-health-dash__chip span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ramz-muted, #64748b);
  margin-bottom: 0.2rem;
}
.ramz-health-dash__chip strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ramz-text, #0f172a);
}
.ramz-health-dash__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}
.ramz-health-dash__risk {
  font-size: 0.72rem;
  font-weight: 750;
  color: #991b1b;
  background: rgba(220, 38, 38, 0.1);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.ramz-health-signal {
  height: 100%;
  min-height: 5.25rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--ramz-border, #e5e7eb);
  border-radius: var(--ramz-radius, 0.85rem);
  background: var(--ramz-surface, #fff);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ramz-health-signal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.ramz-health-signal__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.1rem;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}
.ramz-health-signal__icon i {
  width: 1.1rem;
  height: 1.1rem;
}
.ramz-health-signal__body {
  min-width: 0;
  flex: 1 1 auto;
  padding-top: 0.1rem;
}
.ramz-health-signal--success {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), #fff 62%);
  border-color: rgba(22, 163, 74, 0.22);
}
.ramz-health-signal--success .ramz-health-signal__icon { background: rgba(22, 163, 74, 0.14); color: #15803d; }
.ramz-health-signal--warning {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.12), #fff 62%);
  border-color: rgba(202, 138, 4, 0.24);
}
.ramz-health-signal--warning .ramz-health-signal__icon { background: rgba(202, 138, 4, 0.16); color: #a16207; }
.ramz-health-signal--danger {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), #fff 62%);
  border-color: rgba(220, 38, 38, 0.22);
}
.ramz-health-signal--danger .ramz-health-signal__icon { background: rgba(220, 38, 38, 0.12); color: #dc2626; }
.ramz-health-signal--teal,
.ramz-health-signal--primary {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), #fff 62%);
  border-color: rgba(15, 118, 110, 0.2);
}
.ramz-health-signal--teal .ramz-health-signal__icon,
.ramz-health-signal--primary .ramz-health-signal__icon { background: rgba(15, 118, 110, 0.12); color: #0f766e; }
.ramz-health-signal--info {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.11), #fff 62%);
  border-color: rgba(14, 165, 233, 0.22);
}
.ramz-health-signal--info .ramz-health-signal__icon { background: rgba(14, 165, 233, 0.14); color: #0284c7; }
.ramz-health-signal--muted .ramz-health-signal__icon { background: rgba(100, 116, 139, 0.12); color: #64748b; }
.ramz-health-signal__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ramz-muted, #64748b);
  margin-bottom: 0.35rem;
}
.ramz-health-signal__value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ramz-text, #0f172a);
  line-height: 1.3;
}

.ramz-health-panel {
  border: 1px solid var(--ramz-border, #e5e7eb);
  border-radius: var(--ramz-radius, 0.85rem);
  overflow: hidden;
}
.ramz-health-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem 0.55rem;
}
.ramz-health-panel__title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.ramz-health-panel__icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.1rem;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}
.ramz-health-panel__icon i {
  width: 1.1rem;
  height: 1.1rem;
}
.ramz-health-panel__icon--primary,
.ramz-health-panel__icon--teal { background: rgba(15, 118, 110, 0.12); color: #0f766e; }
.ramz-health-panel__icon--info { background: rgba(14, 165, 233, 0.14); color: #0284c7; }
.ramz-health-panel__icon--warning { background: rgba(202, 138, 4, 0.16); color: #a16207; }
.ramz-health-panel__icon--success { background: rgba(22, 163, 74, 0.14); color: #15803d; }
.ramz-health-panel__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
.ramz-health-panel__head p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--ramz-muted, #64748b);
}
.ramz-health-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ramz-muted, #64748b);
  white-space: nowrap;
}
.ramz-health-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.05);
}
.ramz-health-pill em {
  font-style: normal;
  opacity: 0.75;
}
.ramz-health-pill--success { background: rgba(22, 163, 74, 0.12); color: #166534; }
.ramz-health-pill--warning { background: rgba(202, 138, 4, 0.14); color: #854d0e; }
.ramz-health-pill--danger { background: rgba(220, 38, 38, 0.12); color: #991b1b; }
.ramz-health-pill--muted { color: var(--ramz-muted, #64748b); }

.ramz-health-table { margin: 0; }
.ramz-health-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ramz-muted, #64748b);
  font-weight: 700;
  border-bottom-width: 1px;
  padding: 0.9rem 1.05rem;
  background: rgba(15, 23, 42, 0.02);
  white-space: nowrap;
}
.ramz-health-table td {
  padding: 0.95rem 1.05rem;
  vertical-align: middle;
  font-size: 0.88rem;
}
.ramz-health-table__row--success { box-shadow: inset 3px 0 0 #16a34a; }
.ramz-health-table__row--warning { box-shadow: inset 3px 0 0 #ca8a04; }
.ramz-health-table__row--danger { box-shadow: inset 3px 0 0 #dc2626; }
.ramz-health-table__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  text-decoration: none !important;
  color: var(--ramz-text, #0f172a);
}
.ramz-health-table__link:hover { color: var(--ramz-primary, #0f766e); }
.ramz-health-table__phone-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.14);
  color: #128c7e;
  font-size: 1.05rem;
  flex: 0 0 auto;
}
.ramz-health-table__phone { font-variant-numeric: tabular-nums; }
.ramz-health-table__chevron {
  opacity: 0.45;
  font-size: 0.85rem;
  margin-inline-start: 0.1rem;
}
.ramz-health-table__sub {
  display: inline-block;
  margin-inline-start: 0.35rem;
  font-size: 0.75rem;
  color: var(--ramz-muted, #64748b);
}
.ramz-health-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ramz-muted, #64748b);
}
.ramz-health-status--success { color: #166534; }
.ramz-health-status--danger { color: #991b1b; }
.ramz-health-status--muted { color: var(--ramz-muted, #64748b); }

.ramz-health-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.85rem 1.15rem 1.2rem;
}
.ramz-health-stat {
  padding: 0.85rem 0.65rem 0.8rem;
  border-radius: var(--ramz-radius-sm, 0.55rem);
  background: rgba(15, 23, 42, 0.03);
  text-align: center;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.ramz-health-stat__icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
  background: rgba(255, 255, 255, 0.65);
}
.ramz-health-stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ramz-text, #0f172a);
  line-height: 1.1;
}
.ramz-health-stat > span:last-child {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--ramz-muted, #64748b);
}
.ramz-health-stat--success {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.16);
  color: #166534;
}
.ramz-health-stat--success strong { color: #166534; }
.ramz-health-stat--warning {
  background: rgba(202, 138, 4, 0.1);
  border-color: rgba(202, 138, 4, 0.18);
  color: #854d0e;
}
.ramz-health-stat--warning strong { color: #854d0e; }
.ramz-health-stat--danger {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.16);
  color: #991b1b;
}
.ramz-health-stat--danger strong { color: #991b1b; }
.ramz-health-stat--muted {
  background: rgba(100, 116, 139, 0.08);
  border-color: rgba(100, 116, 139, 0.14);
  color: #475569;
}
.ramz-health-stat--muted strong { color: #334155; }

.ramz-health-bars { padding: 0.65rem 1.15rem 0.35rem; }
.ramz-health-bar + .ramz-health-bar { margin-top: 0.85rem; }
.ramz-health-bar__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}
.ramz-health-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.ramz-health-bar__top strong { font-weight: 750; }
.ramz-health-bar__track {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.ramz-health-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0ea5e9;
}
.ramz-health-bar__fill--success { background: linear-gradient(90deg, #22c55e, #16a34a); }
.ramz-health-bar__fill--danger { background: linear-gradient(90deg, #f87171, #dc2626); }
.ramz-health-bar__fill--info { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.ramz-health-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.95rem 1.15rem 1.2rem;
  font-size: 0.78rem;
  color: var(--ramz-muted, #64748b);
}
.ramz-health-mini-stats__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
}
.ramz-health-mini-stats__item--info { background: rgba(14, 165, 233, 0.1); color: #0369a1; }
.ramz-health-mini-stats__item--success { background: rgba(22, 163, 74, 0.1); color: #166534; }
.ramz-health-mini-stats__item--danger { background: rgba(220, 38, 38, 0.1); color: #991b1b; }
.ramz-health-mini-stats strong {
  color: inherit;
  margin-inline-start: 0.05rem;
}

.ramz-health-feed,
.ramz-health-timeline {
  padding: 0.45rem 1.15rem 0.85rem;
  max-height: 280px;
  overflow: auto;
}
.ramz-health-feed__item {
  display: grid;
  grid-template-columns: 2.15rem 1fr;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.8rem 0.85rem;
  border-radius: var(--ramz-radius-sm, 0.55rem);
  margin-bottom: 0.55rem;
  border-inline-start: 3px solid #94a3b8;
  background: rgba(15, 23, 42, 0.025);
}
.ramz-health-feed__icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  flex: 0 0 auto;
}
.ramz-health-feed__item--danger { border-color: #dc2626; background: rgba(220, 38, 38, 0.06); }
.ramz-health-feed__item--danger .ramz-health-feed__icon { background: rgba(220, 38, 38, 0.12); color: #dc2626; }
.ramz-health-feed__item--warning { border-color: #ca8a04; background: rgba(202, 138, 4, 0.07); }
.ramz-health-feed__item--warning .ramz-health-feed__icon { background: rgba(202, 138, 4, 0.14); color: #a16207; }
.ramz-health-feed__item--info { border-color: #0ea5e9; background: rgba(14, 165, 233, 0.07); }
.ramz-health-feed__item--info .ramz-health-feed__icon { background: rgba(14, 165, 233, 0.14); color: #0284c7; }
.ramz-health-feed__item time,
.ramz-health-timeline__item time {
  display: block;
  font-size: 0.7rem;
  color: var(--ramz-muted, #64748b);
  margin-bottom: 0.2rem;
}
.ramz-health-feed__item p,
.ramz-health-timeline__item p {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
}
.ramz-health-timeline__item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem;
  padding: 0.55rem 0 0.95rem;
  position: relative;
}
.ramz-health-timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.9rem;
  top: 2.1rem;
  bottom: 0;
  width: 1px;
  background: rgba(15, 23, 42, 0.1);
}
.ramz-health-timeline__dot {
  width: 2rem;
  height: 2rem;
  margin-top: 0;
  border-radius: 0.55rem;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 1;
}
.ramz-health-timeline__item--warning .ramz-health-timeline__dot {
  background: rgba(202, 138, 4, 0.16);
  color: #a16207;
}
.ramz-health-timeline__item--primary .ramz-health-timeline__dot,
.ramz-health-timeline__item--teal .ramz-health-timeline__dot {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}
.ramz-health-timeline__item strong {
  display: block;
  font-size: 0.88rem;
}
.ramz-health-empty {
  padding: 1.6rem 0.75rem;
  text-align: center;
  color: var(--ramz-muted, #64748b);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.ramz-health-empty__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.05);
  color: #94a3b8;
  font-size: 1.15rem;
}
.ramz-health-empty p { margin: 0; max-width: 22rem; line-height: 1.45; }

.ramz-health-settings {
  border-top: 1px solid var(--ramz-border, #e5e7eb);
  padding: 1rem 1.15rem 1.15rem;
  display: grid;
  gap: 0.55rem;
  background: rgba(15, 23, 42, 0.015);
}
.ramz-health-settings__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ramz-muted, #64748b);
  margin-bottom: 0.1rem;
}
.ramz-health-settings__list {
  display: grid;
  gap: 0.4rem;
}
.ramz-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  margin: 0;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 0.55rem;
  transition: background 0.15s ease;
}
.ramz-check:hover { background: rgba(15, 23, 42, 0.04); }
.ramz-check__icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.05);
  color: #64748b;
  font-size: 0.85rem;
  flex: 0 0 auto;
}
.ramz-check input { margin: 0; }

.ramz-campaign-health-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--ramz-radius-sm, 0.55rem);
  background: rgba(15, 23, 42, 0.04);
  font-size: 0.8rem;
  font-weight: 650;
}
.ramz-campaign-health-badge.is-good { color: #166534; background: rgba(22, 163, 74, 0.12); }
.ramz-campaign-health-badge.is-attention { color: #854d0e; background: rgba(202, 138, 4, 0.14); }
.ramz-campaign-health-badge.is-critical { color: #991b1b; background: rgba(220, 38, 38, 0.12); }

@media (max-width: 991.98px) {
  .ramz-health-dash {
    grid-template-columns: 1fr;
  }
  .ramz-health-dash__actions {
    align-items: stretch;
  }
  .ramz-health-dash__actions .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .ramz-health-dash__signals,
  .ramz-health-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ramz-health-hero__main {
    align-items: flex-start;
  }
  .ramz-health-signal {
    gap: 0.7rem;
    padding: 0.9rem;
  }
  .ramz-health-signal__icon,
  .ramz-health-panel__icon {
    width: 2.15rem;
    height: 2.15rem;
  }
  .ramz-health-panel__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.ramz-app.dark-theme .ramz-health-hero,
body.ramz-app.dark-theme .ramz-health-dash,
body.ramz-app.dark-theme .ramz-health-signal,
body.ramz-app.dark-theme .ramz-health-panel {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
body.ramz-app.dark-theme .ramz-health-signal--success,
body.ramz-app.dark-theme .ramz-health-signal--warning,
body.ramz-app.dark-theme .ramz-health-signal--danger,
body.ramz-app.dark-theme .ramz-health-signal--teal,
body.ramz-app.dark-theme .ramz-health-signal--primary,
body.ramz-app.dark-theme .ramz-health-signal--info {
  background: rgba(255, 255, 255, 0.03);
}
body.ramz-app.dark-theme .ramz-health-score__track {
  stroke: rgba(255, 255, 255, 0.1);
}
body.ramz-app.dark-theme .ramz-health-score__value strong,
body.ramz-app.dark-theme .ramz-health-hero__status,
body.ramz-app.dark-theme .ramz-health-dash__status,
body.ramz-app.dark-theme .ramz-health-signal__value,
body.ramz-app.dark-theme .ramz-health-dash__chip strong {
  color: #e2e8f0;
}
body.ramz-app.dark-theme .ramz-health-dash__chip,
body.ramz-app.dark-theme .ramz-health-stat,
body.ramz-app.dark-theme .ramz-health-table thead th,
body.ramz-app.dark-theme .ramz-health-settings {
  background: rgba(255, 255, 255, 0.04);
}

/* --------------------------------------------------------------------------
   Activity Log
   -------------------------------------------------------------------------- */
.ramz-activity-filters .form-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ramz-muted);
  margin-bottom: 0.3rem;
}
.ramz-activity-list {
  display: grid;
  gap: 0;
}
.ramz-activity-item {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.ramz-activity-item:last-child {
  border-bottom: 0;
}
.ramz-activity-item__rail {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
}
.ramz-activity-item__rail::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  bottom: -1.2rem;
  width: 2px;
  background: rgba(15, 23, 42, 0.08);
}
.ramz-activity-item:last-child .ramz-activity-item__rail::before {
  display: none;
}
.ramz-activity-item__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
  z-index: 1;
}
.ramz-activity-item--ok .ramz-activity-item__dot {
  background: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.16);
}
.ramz-activity-item--info .ramz-activity-item__dot {
  background: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.16);
}
.ramz-activity-item--bad .ramz-activity-item__dot {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}
.ramz-activity-item__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.35rem;
}
.ramz-activity-item__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.ramz-activity-item__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: capitalize;
  border: 1px solid transparent;
}
.ramz-activity-item__pill--ok {
  color: #047857;
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.16);
}
.ramz-activity-item__pill--info {
  color: #0369a1;
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.16);
}
.ramz-activity-item__pill--bad {
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.16);
}
.ramz-activity-item__pill--muted {
  color: #475569;
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.16);
}
.ramz-activity-item__desc {
  font-size: 0.95rem;
  color: var(--ramz-text);
  font-weight: 700;
}
.ramz-activity-item__time {
  font-size: 0.78rem;
  color: var(--ramz-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ramz-activity-item__time > span {
  opacity: 0.85;
}
.ramz-activity-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  font-size: 0.8rem;
  color: var(--ramz-text-secondary);
  margin-bottom: 0.35rem;
}
.ramz-activity-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.ramz-activity-item__details {
  margin-top: 0.35rem;
}
.ramz-activity-item__details > summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ramz-primary);
  list-style: none;
}
.ramz-activity-item__details > summary::-webkit-details-marker {
  display: none;
}
.ramz-activity-item__diff {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.65rem;
  margin-top: 0.55rem;
}
.ramz-activity-item__diff h6 {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ramz-muted);
}
.ramz-activity-item__diff pre {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--ramz-radius-md);
  background: var(--ramz-surface-soft);
  border: 1px solid var(--ramz-border);
  font-size: 0.74rem;
  line-height: 1.4;
  overflow: auto;
  max-height: 14rem;
  white-space: pre-wrap;
  word-break: break-word;
}
body.ramz-app.dark-theme .ramz-activity-item {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
body.ramz-app.dark-theme .ramz-activity-item__rail::before {
  background: rgba(255, 255, 255, 0.08);
}
body.ramz-app.dark-theme .ramz-activity-item__diff pre {
  background: rgba(15, 23, 42, 0.45);
}

/* --------------------------------------------------------------------------
   Ramz pagination
   -------------------------------------------------------------------------- */
.ramz-pagination,
.ramz-activity-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.25rem;
}
.ramz-pagination__summary {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ramz-muted);
}
.ramz-pagination__summary strong {
  color: var(--ramz-text);
  font-weight: 700;
}
.ramz-pagination__list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ramz-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 2.15rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--ramz-radius-md);
  border: 1px solid var(--ramz-border);
  background: var(--ramz-surface);
  color: var(--ramz-text);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ramz-pagination__btn > i {
  font-size: 0.95rem;
  line-height: 1;
}
a.ramz-pagination__btn:hover {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.28);
  color: var(--ramz-primary);
}
.ramz-pagination__item.is-active .ramz-pagination__btn {
  background: var(--ramz-primary);
  border-color: var(--ramz-primary);
  color: #fff;
}
.ramz-pagination__item.is-disabled .ramz-pagination__btn {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--ramz-surface-soft);
}
.ramz-pagination__btn--dots {
  border-color: transparent;
  background: transparent;
  min-width: 1.5rem;
  padding-inline: 0.25rem;
}
@media (max-width: 575.98px) {
  .ramz-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .ramz-pagination__list {
    justify-content: center;
  }
}
body.ramz-app.dark-theme .ramz-pagination__btn {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}
body.ramz-app.dark-theme .ramz-pagination__item.is-active .ramz-pagination__btn {
  background: var(--ramz-primary);
  border-color: var(--ramz-primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Billing � Oman Price WS API
   -------------------------------------------------------------------------- */
.ramz-oman-price__country {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ramz-oman-price__banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--ramz-radius-md);
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.06), rgba(248, 250, 252, 0.9));
}
.ramz-oman-price__flag {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.ramz-oman-price-card {
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: var(--ramz-radius-md);
  border: 1px solid var(--ramz-border);
  background: var(--ramz-surface);
  box-shadow: var(--ramz-shadow-sm);
}
.ramz-oman-price-card__top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}
.ramz-oman-price-card__icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.ramz-oman-price-card__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ramz-text);
}
.ramz-oman-price-card__rate {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
.ramz-oman-price-card__rate strong {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ramz-text);
  line-height: 1.1;
}
.ramz-oman-price-card__rate span {
  font-size: 0.78rem;
  color: var(--ramz-muted);
}
.ramz-oman-price-card__desc {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--ramz-muted);
  line-height: 1.4;
  min-height: 2.4em;
}
.ramz-oman-price-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}
.ramz-oman-price-card__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}
.ramz-oman-price-card__pill--muted {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}
.ramz-oman-price-card--rose .ramz-oman-price-card__icon {
  background: rgba(225, 29, 72, 0.12);
  color: #e11d48;
}
.ramz-oman-price-card--teal .ramz-oman-price-card__icon {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}
.ramz-oman-price-card--amber .ramz-oman-price-card__icon {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}
.ramz-oman-price-card--sky .ramz-oman-price-card__icon {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}
.ramz-oman-price-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  margin-inline-end: 0.4rem;
  vertical-align: middle;
}
.ramz-oman-price-dot--rose { background: #e11d48; }
.ramz-oman-price-dot--teal { background: #0f766e; }
.ramz-oman-price-dot--amber { background: #d97706; }
.ramz-oman-price-dot--sky { background: #0284c7; }
body.ramz-app.dark-theme .ramz-oman-price__banner {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.08), rgba(15, 23, 42, 0.35));
  border-color: rgba(148, 163, 184, 0.18);
}
body.ramz-app.dark-theme .ramz-oman-price-card {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(148, 163, 184, 0.16);
}

/* --------------------------------------------------------------------------
   Template builder (create / edit)
   -------------------------------------------------------------------------- */
.ramz-template-builder .ramz-template-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.ramz-header-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}
.ramz-header-type {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  background: var(--ramz-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  text-align: center;
}
.ramz-header-type:hover {
  border-color: rgba(15, 118, 110, 0.35);
  transform: translateY(-1px);
}
.ramz-header-type.is-active {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(15, 118, 110, 0.08);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}
.ramz-header-type__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ramz-header-type__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 1.05rem;
}
.ramz-header-type__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ramz-text);
}
.ramz-header-dropzone {
  position: relative;
  border: 1.5px dashed rgba(15, 118, 110, 0.35);
  border-radius: var(--ramz-radius-md);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.05), rgba(248, 250, 252, 0.9));
  min-height: 180px;
  overflow: hidden;
}
.ramz-header-dropzone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.ramz-header-dropzone__idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem 1rem;
  text-align: center;
}
.ramz-header-dropzone__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.ramz-header-dropzone__preview {
  position: relative;
  padding: 0.75rem;
  z-index: 3;
}
.ramz-header-dropzone__preview img,
.ramz-header-dropzone__preview video {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 10px;
  background: #0f172a;
}
.ramz-header-dropzone__file {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ramz-border);
  font-weight: 600;
}
.ramz-header-dropzone__clear {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  z-index: 4;
}
.ramz-button-fields {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.4fr auto;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.65rem;
}
.ramz-button-fields__remove {
  min-width: 2.25rem;
}
.ramz-iphone .preview-media img,
.ramz-iphone .preview-media video {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
  margin: -0.15rem -0.15rem 0.45rem;
  width: calc(100% + 0.3rem);
}
.ramz-iphone .preview-doc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.45rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.05);
  font-size: 0.78rem;
  font-weight: 600;
}
@media (max-width: 991.98px) {
  .ramz-header-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ramz-button-fields {
    grid-template-columns: 1fr;
  }
}
body.ramz-app.dark-theme .ramz-header-dropzone {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.06), rgba(15, 23, 42, 0.35));
  border-color: rgba(148, 163, 184, 0.25);
}
body.ramz-app.dark-theme .ramz-header-type {
  background: rgba(15, 23, 42, 0.35);
}

/* Template view header media */
.ramz-template-header-media {
  border: 1px solid var(--ramz-border);
  border-radius: var(--ramz-radius-md);
  background: var(--ramz-surface-soft);
  padding: 0.55rem;
  min-height: 42px;
}
.ramz-template-header-media__img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  background: #0f172a;
}
.ramz-template-header-media__img.is-broken { display: none !important; }
.ramz-template-header-media__fallback {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  color: var(--ramz-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.ramz-template-header-media__fallback .fe {
  color: var(--ramz-primary);
  margin-top: 0.1rem;
}

.ramz-template-card__phone-btn {
  color: var(--ramz-primary) !important;
  border-color: rgba(15, 118, 110, 0.35) !important;
}
.ramz-template-card__phone-btn:hover {
  background: rgba(15, 118, 110, 0.1) !important;
  border-color: rgba(15, 118, 110, 0.5) !important;
  color: var(--ramz-primary) !important;
}
#phone-preview:target {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18), var(--ramz-shadow);
  border-color: rgba(15, 118, 110, 0.35);
}

.ramz-phone-preview-modal .modal-body {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.06), #f8fafc 55%);
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem 1.5rem;
}
.ramz-iphone--modal {
  margin: 0 auto;
}
body.ramz-app.dark-theme .ramz-phone-preview-modal .modal-body {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.08), rgba(15, 23, 42, 0.55));
}

.ramz-template-picker__header-media {
  margin: 0.45rem 0 0.55rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ramz-border);
  background: #0f172a;
  max-height: 140px;
}
.ramz-template-picker__header-media img {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
}
.ramz-template-picker__header-media-fallback {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  color: var(--ramz-muted);
  background: var(--ramz-surface-soft);
}
.ramz-template-picker__mobile .preview-media {
  margin: -0.15rem -0.15rem 0.45rem;
  width: calc(100% + 0.3rem);
}
.ramz-template-picker__mobile .preview-media img,
.ramz-template-picker__mobile .preview-media video {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  background: #0f172a;
}

/* Template picker send error + toastr above modal */
.ramz-template-picker__error {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(220, 38, 38, 0.35) !important;
  border-radius: var(--ramz-radius-md);
  background: rgba(220, 38, 38, 0.1) !important;
  color: #b91c1c !important;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}
.ramz-template-picker__error .fe {
  color: #dc2626;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.ramz-template-picker__error-text {
  color: #b91c1c;
  word-break: break-word;
}
#toast-container.toast-top-right {
  z-index: 20000 !important;
}
#toast-container > .toast-error {
  background-color: #dc2626 !important;
  opacity: 1 !important;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.28) !important;
}
#toast-container > .toast-error .toast-title,
#toast-container > .toast-error .toast-message {
  color: #fff !important;
}
body.ramz-app.dark-theme .ramz-template-picker__error {
  background: rgba(248, 113, 113, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.4) !important;
  color: #fecaca !important;
}
body.ramz-app.dark-theme .ramz-template-picker__error-text {
  color: #fecaca;
}

/* Inbox: match WhatsApp template card (full image + spacing + formatting) */
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper.main-msg-wrapper--wa-template {
  width: min(92%, 380px) !important;
  max-width: min(92%, 380px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 7.5px !important;
}
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper.main-msg-wrapper--wa-template-media {
  background: #d9fdd3 !important;
}
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper.main-msg-wrapper--wa-template .ramz-chat-template__header-media {
  margin: 0 !important;
  width: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  line-height: 0;
  overflow: visible !important;
  background: #fff;
}
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper.main-msg-wrapper--wa-template .ramz-chat-template__header-media img,
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper.main-msg-wrapper--wa-template .ramz-chat-template__header-media video {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center top !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.ramz-chat-template__header-media img.is-broken {
  display: none !important;
}
.ramz-chat-template__content {
  padding: 6px 9px 8px;
}
.ramz-chat-template__header-text {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  padding: 8px 9px 0;
}
.ramz-chat-template__body {
  margin: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 14.2px;
  line-height: 1.35;
  color: #111b21;
}
/* Arabic / RTL message text aligns to the right like WhatsApp */
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper.is-rtl-msg .ramz-chat-template__content,
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper.is-rtl-msg .ramz-chat-template__header-text,
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper.is-rtl-msg .ramz-chat-template__body,
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper.is-rtl-msg .ramz-chat-template__footer,
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper.is-rtl-msg .ramz-chat-plain {
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: plaintext;
}
.ramz-chat-plain {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.ramz-chat-template__body strong {
  font-weight: 700;
}
.ramz-chat-template__body em {
  font-style: italic;
}
.ramz-chat-template__body .ramz-wa-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.ramz-chat-template__footer {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #667781 !important;
}
.ramz-chat-template__doc {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 8px 9px 0;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
.ramz-chat-template__buttons {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(17, 27, 33, 0.1);
  background: rgba(255, 255, 255, 0.28);
}
.ramz-chat-template__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 10px 8px;
  color: #027eb5 !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  border-top: 1px solid rgba(17, 27, 33, 0.08);
}
.ramz-chat-template__button:first-child {
  border-top: 0;
}
.ramz-chat-template__button:hover {
  background: rgba(255, 255, 255, 0.45);
  color: #026492 !important;
}
.ramz-chat-template__button .fe {
  font-size: 0.95rem;
}

/* Customer reactions attached to a message bubble (not a new message) */
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper .reaction {
  position: absolute;
  bottom: -0.55rem;
  top: auto;
  right: 0.4rem;
  left: auto;
  margin: 0;
  z-index: 2;
  display: none;
  line-height: 1;
  font-size: 1rem;
  background: #fff;
  border: 1px solid var(--ramz-border, #e5e7eb);
  border-radius: 999px;
  padding: 0.1rem 0.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper .reaction[style*="inline-block"],
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper .reaction.reaction--on-outgoing {
  display: inline-block !important;
}
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper.right .reaction {
  left: 0.4rem;
  right: auto;
}
.ramz-inbox__col--chat #chat-inner .main-msg-wrapper .reaction-icon {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1.2;
}
