
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Cairo:wght@400;600;700&display=swap");

:root {
  --bg: #f7efe3;
  --surface: rgba(255, 250, 243, 0.84);
  --surface-strong: #fffaf3;
  --surface-alt: #eee1cd;
  --field-surface: rgba(255, 252, 247, 0.96);
  --text: #12253e;
  --muted: #5e6d80;
  --muted-soft: #7a8898;
  --primary: #102746;
  --primary-soft: #27486f;
  --beige: #d7b896;
  --line: rgba(16, 39, 70, 0.12);
  --success: #2f7a5f;
  --danger: #c04d4d;
  --warning: #b17c31;
  --shadow: 0 16px 42px rgba(18, 37, 62, 0.1);
  --panel-radius: 14px;
  --card-radius: 12px;
  --section-gap: 10px;
  --sidebar-width: 232px;
  --app-max-width: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: auto;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(215, 184, 150, 0.34), transparent 26%),
    radial-gradient(circle at bottom left, rgba(16, 39, 70, 0.08), transparent 22%),
    linear-gradient(180deg, #fdf9f3 0%, #f2e8db 100%);
}

body[data-performance="reduced"] .app-loading-layer,
body[data-performance="reduced"] .sales-share-menu,
body[data-performance="reduced"] .client-row-menu,
body[data-performance="reduced"] .message-apps-menu,
body[data-performance="reduced"] .pro-contact-card::before,
body[data-performance="reduced"] .pro-contact-card::after,
body[data-performance="reduced"] .login-visual::before,
body[data-performance="reduced"] .login-visual::after {
  backdrop-filter: none !important;
}

body[data-performance="reduced"] .brand-badge,
body[data-performance="reduced"] .clock-card,
body[data-performance="reduced"] .pro-contact-card,
body[data-performance="reduced"] .ticker-track,
body[data-performance="reduced"] .alert-card,
body[data-performance="reduced"] [class*="skyline"],
body[data-performance="reduced"] [class*="Float"] {
  animation-duration: 24s !important;
  transition-duration: 0.12s !important;
}

body[data-app-ready="false"] {
  visibility: hidden;
}

body.login-page,
body.login-page[data-app-ready="false"] {
  visibility: visible;
}

.center-toast-layer,
.app-loading-layer {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2000;
  pointer-events: none;
}

.center-toast {
  min-width: min(420px, calc(100vw - 32px));
  max-width: min(520px, calc(100vw - 32px));
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(16, 39, 70, 0.08);
  box-shadow: 0 28px 80px rgba(16, 39, 70, 0.18);
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.center-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.center-toast-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.center-toast.success .center-toast-icon {
  background: linear-gradient(135deg, #2f9e67, #59c98b);
}

.center-toast.error .center-toast-icon {
  background: linear-gradient(135deg, #c84b58, #ef7a86);
}

.center-toast.info .center-toast-icon {
  background: linear-gradient(135deg, #173660, #4b78af);
}

.center-toast strong {
  color: #102746;
  font-size: 1.08rem;
}

.center-toast p {
  margin: 0;
  color: #617187;
}

.app-loading-layer {
  background: rgba(247, 239, 227, 0.62);
  backdrop-filter: blur(4px);
}

.app-loading-card {
  min-width: min(320px, calc(100vw - 32px));
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(16, 39, 70, 0.08);
  box-shadow: 0 24px 70px rgba(16, 39, 70, 0.16);
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.app-loading-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(16, 39, 70, 0.12);
  border-top-color: #173660;
  animation: appSpin 0.8s linear infinite;
}

.app-loading-card strong {
  color: #102746;
}

.app-loading-card p {
  margin: 0;
  color: #617187;
}

@keyframes appSpin {
  to { transform: rotate(360deg); }
}

button,
input,
select,
textarea {
  font: inherit;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(16, 39, 70, 0.94), rgba(39, 72, 111, 0.9));
  z-index: 50;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.welcome-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0s;
}

.welcome-card {
  width: min(620px, calc(100vw - 40px));
  padding: 34px 36px;
  text-align: center;
  color: #fffaf3;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.28);
  animation: rise 0.24s ease;
}

.welcome-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  direction: ltr;
  transition: grid-template-columns 0.22s ease;
}

html[dir="rtl"] .app-shell {
  direction: rtl;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
}

html[dir="rtl"] .sidebar,
html[dir="rtl"] .main-content {
  direction: rtl;
}

html[dir="rtl"] .sidebar {
  order: 2;
}

html[dir="rtl"] .main-content {
  order: 1;
}
.news-ticker {
  width: 100%;
  background: linear-gradient(90deg, #1e2f4f, #2f4d7a);
  color: #fff;
  position: relative;
  overflow: hidden;
  height: 35px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ticker-track {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: tickerMove 43s linear infinite;
}

.ticker-track span {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@keyframes tickerMove {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.news-ticker:hover .ticker-track {
  animation-play-state: paused;
}
.news-ticker {
  backdrop-filter: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.sidebar {
  position: sticky;
  top: 12px;
  align-self: start;
  min-height: 0;
  height: fit-content;
  padding: 14px 12px;
  background: linear-gradient(180deg, rgba(16, 39, 70, 0.99), rgba(24, 50, 84, 0.95));
  color: #fbf4e8;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  scrollbar-width: thin;
  transition: transform 0.22s ease, opacity 0.22s ease;
  z-index: 0;
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: 0 1fr;
}

body.sidebar-collapsed .sidebar {
  transform: translateX(calc(-100% - 24px));
  opacity: 0;
  pointer-events: none;
}

html[dir="rtl"] body.sidebar-collapsed .app-shell {
  grid-template-columns: 1fr 0;
}

html[dir="rtl"] body.sidebar-collapsed .sidebar {
  transform: translateX(calc(100% + 24px));
}

.sidebar-toggle-btn {
  min-height: 44px;
  border-radius: 12px;
}

.brand-card,
.topbar,
.hero-card,
.panel,
.clock-card,
.stat-card,
.welcome-card,
.category-card {
  backdrop-filter: none;
}
.brand-title {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff, #cfd8e3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 11px;
  color: #aab4c3;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 6px;
  opacity: 0.72;
  font-size: 0.86rem;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-btn {
  border: 0;
  padding: 9px 10px;
  border-radius: 14px;
  background: transparent;
  color: #fbf4e8;
  text-align: start;
  cursor: pointer;
  transition: 0.24s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.nav-btn:hover,
.nav-btn.active {
  background: linear-gradient(135deg, rgba(217, 191, 153, 0.82), rgba(176, 150, 118, 0.88));
  color: #fff9f0;
  transform: translateX(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 36px rgba(7, 18, 36, 0.3);
}

.nav-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.1) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.nav-btn:hover::after,
.nav-btn.active::after {
  transform: translateX(120%);
}

.nav-label {
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.main-content {
  padding: 12px 14px 18px;
  display: grid;
  gap: var(--section-gap);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.topbar,
.hero-card,
.panel,
.stat-card,
.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow);
}

.topbar {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.topbar-actions,
.toolbar,
.form-actions,
.top-summary,
.detail-grid,
.share-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.topbar-actions {
  width: auto;
  margin-inline-start: auto;
  justify-content: flex-end;
}

.topbar-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

#langToggleBtn {
  position: static;
  top: auto;
  z-index: auto;
  touch-action: manipulation;
}

/* إنجليزي (LTR) → يمين */

/* عربي (RTL) → شمال */

.clock-card {
  min-width: min(360px, 100%);
  padding: 16px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.92), rgba(255, 250, 243, 0.65) 35%, transparent 75%),
    linear-gradient(135deg, rgba(255, 250, 242, 0.98), rgba(240, 226, 205, 0.92));
  border: 1px solid rgba(215, 184, 150, 0.55);
  box-shadow: 0 26px 60px rgba(16, 39, 70, 0.12);
}

.clock-shell,
.clock-info-line,
.clock-location,
.clock-digital,
.primary-btn,
.ghost-btn,
.btn-label,
.stat-card-head {
  display: flex;
  align-items: center;
}

.clock-shell {
  justify-content: space-between;
  gap: 22px;
}

.wall-clock-wrap {
  position: relative;
  flex: 0 0 210px;
  display: grid;
  place-items: center;
}

.wall-clock-wrap::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 180, 135, 0.18), transparent 68%);
  filter: blur(12px);
}

.wall-clock {
  position: relative;
  width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fffdf9 0, #fbf5ea 68%, #f2e1c3 100%);
  border: 8px solid #edd8b4;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.7),
    inset 0 0 24px rgba(214, 181, 136, 0.18),
    0 22px 50px rgba(16, 39, 70, 0.16);
}

.wall-clock::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -90deg,
    rgba(16, 39, 70, 0.7) 0deg 2deg,
    transparent 2deg 30deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 86%, #000 86% 100%);
  mask: radial-gradient(circle, transparent 0 86%, #000 86% 100%);
}


.clock-number {
  position: absolute;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  transform: translate(-50%, -50%);
}

.clock-number.n12 { top: 14%; left: 50%; }
.clock-number.n1  { top: 20%; left: 68%; }
.clock-number.n2  { top: 33%; left: 82%; }
.clock-number.n3  { top: 50%; left: 88%; }
.clock-number.n4  { top: 67%; left: 82%; }
.clock-number.n5  { top: 80%; left: 68%; }
.clock-number.n6  { top: 86%; left: 50%; }
.clock-number.n7  { top: 80%; left: 32%; }
.clock-number.n8  { top: 67%; left: 18%; }
.clock-number.n9  { top: 50%; left: 12%; }
.clock-number.n10 { top: 33%; left: 18%; }
.clock-number.n11 { top: 20%; left: 32%; }

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: center bottom;
  border-radius: 999px;
  z-index: 2;
  transition: transform 0.15s linear;
}

.clock-hand.hour {
  width: 8px;
  height: 52px;
  background: linear-gradient(180deg, #173660, #0f2746);
}

.clock-hand.minute {
  width: 6px;
  height: 62px;
  background: linear-gradient(180deg, #183965, #0f2746);
}

.clock-hand.second {
  width: 2px;
  height: 78px;
  background: linear-gradient(180deg, #d63232, #f36b5d);
}

.clock-center {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #f5d7b0 0 28%, #db432d 29% 58%, #132d4d 59% 100%);
  z-index: 3;
  box-shadow: 0 0 0 4px rgba(255, 248, 239, 0.88);
}

.clock-meta {
  min-width: 156px;
  display: grid;
  gap: 16px;
}

.clock-info-line,
.clock-location {
  gap: 10px;
}

.clock-meta-label {
  display: block;
  color: #53677f;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.clock-digital {
  gap: 10px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(16, 39, 70, 0.1);
  border-bottom: 1px solid rgba(16, 39, 70, 0.1);
}

.clock-digital strong {
  font-size: clamp(1.9rem, 2.6vw, 2.7rem);
  letter-spacing: 0.04em;
  color: var(--primary);
}

.clock-digital span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.clock-location {
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(239, 225, 203, 0.86);
}

.ui-icon,
.nav-icon,
.meta-icon,
.btn-icon,
.stat-icon {
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.nav-icon,
.meta-icon,
.btn-icon,
.stat-icon {
  position: relative;
  border-radius: 18px;
}

.nav-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #f3e2c7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.meta-icon,
.stat-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  background: linear-gradient(145deg, rgba(244, 229, 205, 0.96), rgba(232, 209, 178, 0.65));
  border: 1px solid rgba(215, 184, 150, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.ui-icon svg,
.nav-icon svg,
.meta-icon svg,
.btn-icon svg,
.stat-icon svg {
  width: 18px;
  height: 18px;
  animation: iconFloat 4.6s ease-in-out infinite;
}

.nav-icon svg {
  width: 17px;
  height: 17px;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.nav-btn:hover .nav-icon,
.nav-btn.active .nav-icon {
  color: #fff8ec;
  background: linear-gradient(145deg, rgba(241, 222, 191, 0.32), rgba(255, 255, 255, 0.12));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 24px rgba(7, 18, 36, 0.24);
}

.clock-pulse {
  animation: clockPulse 0.5s ease;
}

#repNameHero {
  display: inline-block;
  animation: rise 0.75s ease;
  padding: 0 12px 4px;
  border-bottom: 3px solid rgba(215, 184, 150, 0.7);
  background: linear-gradient(90deg, rgba(215,184,150,0.08), rgba(16,39,70,0.02));
  border-radius: 12px;
}

.hero-card {
  padding: 20px 22px;
  min-height: 160px;
  display: flex;
  align-items: center;
}

.sales-card-shell {
  width: 100%;
  position: relative;
}

.sales-card-copy {
  position: relative;
  padding: 6px 2px 2px;
}

.sales-card-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.hero-card h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  margin: 0 0 6px;
}

.sales-card-bio {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-card .hero-sales-line {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

.hero-chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16,39,70,0.08), rgba(215,184,150,0.25));
  border: 1px solid rgba(16,39,70,0.08);
  font-size: 0.92rem;
}

.sales-share-wrap {
  position: relative;
  flex: 0 0 auto;
}

.sales-share-trigger {
  border: 1px solid rgba(16, 39, 70, 0.1);
  background: linear-gradient(135deg, rgba(16, 39, 70, 0.96), rgba(39, 72, 111, 0.96));
  color: #fffaf3;
  border-radius: 999px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(16, 39, 70, 0.2);
}

.sales-share-arrow {
  font-size: 1rem;
  line-height: 1;
}

.sales-share-menu {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-end: 0;
  min-width: 290px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 250, 243, 0.98);
  border: 1px solid rgba(16, 39, 70, 0.08);
  box-shadow: 0 24px 50px rgba(16, 39, 70, 0.18);
  display: none;
  z-index: 8;
}

.sales-share-menu.open {
  display: grid;
  gap: 12px;
}

.sales-share-menu strong {
  font-size: 0.96rem;
  color: var(--primary);
}

.sales-share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sales-share-grid .share-btn {
  min-height: 44px;
  background: rgba(16, 39, 70, 0.06);
  color: var(--primary);
  border: 1px solid rgba(16, 39, 70, 0.08);
}

.overview-command {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.overview-command-copy {
  display: grid;
  gap: 16px;
}

.overview-command-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.overview-progress-card,
.overview-metric-card {
  border-radius: 22px;
  border: 1px solid rgba(16, 39, 70, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,243,236,0.86));
  box-shadow: 0 18px 36px rgba(16, 39, 70, 0.08);
}

.overview-progress-card {
  padding: 12px 14px;
}

.overview-metric-card {
  padding: 12px 14px;
}

.overview-metric-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.overview-metric-head strong {
  display: block;
  font-size: 1.15rem;
}

.overview-progress-track,
.overview-metric-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(16, 39, 70, 0.08);
  overflow: hidden;
  margin: 10px 0 8px;
}

.overview-progress-track span,
.overview-metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #102746, #d7b896);
}

.tone-green .overview-progress-track span,
.tone-green .overview-metric-bar span {
  background: linear-gradient(90deg, #2f7a5f, #7fc7ab);
}

.tone-blue .overview-progress-track span,
.tone-blue .overview-metric-bar span {
  background: linear-gradient(90deg, #27486f, #7eaad6);
}

.tone-sand .overview-progress-track span,
.tone-sand .overview-metric-bar span {
  background: linear-gradient(90deg, #b17c31, #e3c18e);
}

.overview-filter-donut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.overview-filter-donut-card {
  border: 1px solid rgba(16, 39, 70, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,243,236,0.92));
  box-shadow: 0 18px 36px rgba(16, 39, 70, 0.08);
  padding: 18px 14px;
  display: grid;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
}

.overview-filter-donut-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(16, 39, 70, 0.12);
}

.overview-filter-donut-ring {
  width: 132px;
  height: 132px;
  aspect-ratio: 1;
  margin: 0 auto;
  position: relative;
}

.overview-filter-donut-ring svg {
  width: 132px;
  height: 132px;
  display: block;
  max-width: 132px;
  max-height: 132px;
}

.overview-filter-donut-ring .donut-track,
.overview-filter-donut-ring .donut-segment {
  fill: none;
  stroke-width: 14;
}

.overview-filter-donut-ring .donut-track {
  stroke: rgba(16, 39, 70, 0.1);
}

.overview-filter-donut-ring .donut-segment {
  stroke-linecap: butt;
  vector-effect: non-scaling-stroke;
}

.overview-filter-donut-ring .donut-segment-blue {
  stroke: #2f6fb7;
}

.overview-filter-donut-ring .donut-segment-red {
  stroke: #d84f57;
}

.overview-filter-donut-center {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.98);
  display: grid;
  place-items: center;
  align-content: center;
  line-height: 1.1;
  box-shadow: 0 10px 24px rgba(16, 39, 70, 0.08);
}

.overview-filter-donut-center strong {
  font-size: 1.5rem;
  color: #102746;
}

.overview-filter-donut-center small {
  color: #6f7d91;
  font-size: 0.78rem;
}

.overview-filter-donut-title {
  color: #173660;
  font-size: 0.98rem;
}

.overview-filter-donut-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.overview-filter-donut-meta .good {
  color: #2f6fb7;
}

.overview-filter-donut-meta .bad {
  color: #d84f57;
}

.pro-contact-shell {
  display: flex;
}

.pro-contact-card {
  width: 100%;
  min-height: 100%;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(215, 184, 150, 0.18), transparent 28%),
    linear-gradient(160deg, rgba(16,39,70,0.98), rgba(24,50,84,0.96));
  color: #fffaf3;
  display: grid;
  gap: 16px;
  box-shadow: 0 28px 56px rgba(16, 39, 70, 0.18);
}

.pro-contact-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pro-contact-top h4 {
  margin: 4px 0 6px;
  font-size: 1.8rem;
  color: #fffaf3;
}

.pro-contact-title {
  color: #d7b896;
  font-weight: 700;
}

.pro-contact-badge {
  min-width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pro-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pro-contact-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}

.pro-contact-item span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255,250,243,0.7);
  margin-bottom: 6px;
}

.pro-contact-item strong {
  display: block;
  font-size: 1rem;
  color: #fffaf3;
}

.sales-share-menu-apps {
  min-width: 320px;
}

.sales-share-grid-apps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.share-app-btn {
  border: 1px solid rgba(16, 39, 70, 0.08);
  border-radius: 16px;
  background: rgba(16, 39, 70, 0.04);
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
}

.share-app-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
}

.share-app-label {
  font-weight: 700;
  font-size: 0.9rem;
}

.share-app-whatsapp .share-app-icon { color: #0d8f47; background: rgba(13, 143, 71, 0.1); }
.share-app-telegram .share-app-icon { color: #229ed9; background: rgba(34, 158, 217, 0.1); }
.share-app-viber .share-app-icon { color: #7360f2; background: rgba(115, 96, 242, 0.12); }
.share-app-imo .share-app-icon { color: #2478ff; background: rgba(36, 120, 255, 0.1); }
.share-app-botim .share-app-icon { color: #1e90ff; background: rgba(30, 144, 255, 0.1); }
.share-app-snapchat .share-app-icon { color: #181818; background: rgba(255, 230, 0, 0.7); }

@media (max-width: 980px) {
  .overview-command {
    grid-template-columns: 1fr;
  }

  .pro-contact-grid,
  .overview-target-grid,
  .sales-share-grid-apps {
    grid-template-columns: 1fr;
  }
}

.content-section {
  display: none;
  animation: fadeUp 0.35s ease;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.content-section.active {
  display: block;
}

.stats-grid,
.dashboard-grid,
.split-grid,
.category-grid,
.detail-grid,
.projects-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-grid,
.split-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.split-grid > *,
.dashboard-grid > *,
.detail-grid > *,
.projects-list > *,
.panel,
.topbar,
.hero-card {
  min-width: 0;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.projects-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 14px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
}

.panel > .panel-head {
  margin-bottom: 12px;
}

.panel.wide {
  grid-column: span 2;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.stat-card,
.category-card,
.stack-item,
.debt-item,
.history-item,
.project-card,
.media-card,
.unit-card,
.progress-row {
  padding: 10px 12px;
  border-radius: var(--card-radius);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.history-item {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(16, 39, 70, 0.08);
  box-shadow: 0 12px 28px rgba(16, 39, 70, 0.06);
}

.history-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.history-note {
  margin-top: 8px;
  color: #173660;
  line-height: 1.8;
}

.stat-card {
  display: grid;
  gap: 10px;
  min-height: 118px;
  align-content: space-between;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 39, 70, 0.02), rgba(215, 184, 150, 0.12));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-card strong {
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.stat-card-head {
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.stack-list,
.target-progress-list,
.debt-list,
.history-list,
.media-grid,
.units-grid {
  display: grid;
  gap: 10px;
}

.stack-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.stack-item .subtle,
.stack-item > div:not(.top-summary) {
  font-size: 0.85rem;
  line-height: 1.55;
}

#overviewDueList,
#overviewFollowupList {
  max-height: 320px;
  overflow: auto;
  padding-inline-end: 4px;
}

.targets-log-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(150px, 0.7fr)) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.targets-log-actions input,
.targets-log-actions button {
  min-width: 0;
}

@media (max-width: 980px) {
  .targets-log-actions {
    grid-template-columns: 1fr;
  }
}

.category-card {
  cursor: pointer;
  transition: 0.2s ease;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
  transform: none;
  accent-color: var(--primary);
  vertical-align: middle;
}

.category-card:hover,
.category-card.active {
  transform: translateY(-2px);
  border-color: rgba(16, 39, 70, 0.24);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid label {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px 16px 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 249, 241, 0.94)),
    var(--field-surface);
  border: 1px solid rgba(16, 39, 70, 0.08);
  box-shadow: 0 14px 30px rgba(18, 37, 62, 0.06);
}

.form-grid label > span {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--primary);
}

.field-hint {
  margin-top: -2px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--muted-soft);
}

.form-grid .field-hint + input,
.form-grid .field-hint + select,
.form-grid .field-hint + textarea {
  margin-top: 2px;
}

.detail-action-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-action-form label {
  padding: 12px 14px 14px;
  border-radius: 20px;
}

.detail-action-form label > span {
  font-size: 0.9rem;
}

.full-span {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(16, 39, 70, 0.15);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  min-height: 58px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  outline: none;
  transition: 0.2s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8b97a5;
  font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(16, 39, 70, 0.46);
  box-shadow: 0 0 0 4px rgba(16, 39, 70, 0.08);
  transform: translateY(-1px);
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  box-shadow: none;
  transform: none;
}

.primary-btn,
.ghost-btn,
.tiny-btn,
.share-btn {
  border: 0;
  border-radius: 16px;
  padding: 11px 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
  gap: 10px;
  justify-content: center;
}

.primary-btn {
  background: var(--primary);
  color: #fffaf3;
  box-shadow: 0 16px 36px rgba(16, 39, 70, 0.22);
}

.ghost-btn {
  padding: 8px 14px;
  border: 1px solid #ccc;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.64);
}

.primary-btn:hover,
.ghost-btn:hover,
.tiny-btn:hover,
.share-btn:hover {
  transform: translateY(-2px);
}

.table-wrap {
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

.daily-calls-wrap {
  max-height: 540px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background: rgba(255, 255, 255, 0.78);
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(16, 39, 70, 0.08);
  text-align: start;
  white-space: nowrap;
}

.data-table th {
  position: sticky;
  top: 0;
  background: #f9f1e6;
  z-index: 1;
}

.data-row {
  cursor: pointer;
  transition: background 0.2s ease;
}

.data-row:hover {
  background: rgba(16, 39, 70, 0.04);
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.badge.table-stage-badge,
.badge.detail-stage-badge,
.badge.history-stage-badge {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.96), rgba(255,255,255,0.78) 34%, transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #edf4ff 38%, #dce9ff 100%);
  color: #102746;
  border: 1px solid rgba(18, 53, 104, 0.16);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 10px 22px rgba(16, 39, 70, 0.08);
}

.badge.table-stage-badge.danger {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.95), rgba(255,255,255,0.78) 34%, transparent 35%),
    linear-gradient(135deg, #fff4f4 0%, #ffdede 42%, #ffc9c9 100%);
  color: #a12828;
  border-color: rgba(185, 54, 54, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 10px 22px rgba(185, 54, 54, 0.1);
}

.badge.table-stage-badge.muted {
  background: linear-gradient(135deg, #f6f7f9, #eceff3);
  color: #8a94a3;
  border-color: rgba(117, 128, 145, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
}

.badge.new,
.badge.private,
.badge.call,
.badge.request {
  background: rgba(16, 39, 70, 0.08);
  color: var(--primary);
}

.badge.follow-up,
.badge.meeting,
.badge.planned {
  background: rgba(177, 124, 49, 0.12);
  color: var(--warning);
}

.badge.no-answer,
.badge.no-answer-after-follow-up,
.badge.no-answer-after-meeting,
.badge.missed {
  background: rgba(192, 77, 77, 0.12);
  color: var(--danger);
}

.badge.won,
.badge.done {
  background: rgba(47, 122, 95, 0.14);
  color: var(--success);
}

.badge.cancelled {
  background: rgba(108, 117, 125, 0.14);
  color: #5f6770;
}

.lamp {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.02);
}

.lamp.green {
  background: #36a56d;
  box-shadow: 0 0 10px rgba(54, 165, 109, 0.45);
}

.lamp.red {
  background: #e04b4b;
  box-shadow: 0 0 14px rgba(224, 75, 75, 0.55);
}

body[data-page-section="client-detail"] {
  --bg: #eef4fb;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-alt: #e6eef9;
  --field-surface: #ffffff;
  --line: rgba(16, 39, 70, 0.08);
  background:
    radial-gradient(circle at top right, rgba(58, 118, 209, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(16, 39, 70, 0.08), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #ecf3fb 100%);
}

body[data-page-section="client-detail"] .panel.detail-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 39, 70, 0.08);
  box-shadow: 0 22px 60px rgba(16, 39, 70, 0.1);
}

body[data-page-section="client-detail"] #clientDetailContent {
  display: grid;
  gap: 18px;
}

body[data-page-section="client-detail"] .detail-mode-switch {
  margin-bottom: 0;
}

body[data-page-section="client-detail"] .detail-mode-btn,
body[data-page-section="clients"] .detail-mode-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
}

body[data-page-section="client-detail"] .detail-mode-btn.active,
body[data-page-section="clients"] .detail-mode-btn.active {
  background: #173660;
  color: #fff;
  border-color: #173660;
}

body[data-page-section="client-detail"] .detail-hero .badge.detail-stage-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

body[data-page-section="client-detail"] .history-stage-badge {
  justify-content: center;
}

.detail-panel {
  min-height: 70vh;
}

.daily-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-head {
  margin-bottom: 10px;
}

.payment-rows {
  display: grid;
  gap: 10px;
}

.payment-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
}

.analytics-dashboard {
  display: grid;
  gap: 18px;
}

.analytics-top-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 2fr 1fr;
}

.analytics-side-kpis {
  display: grid;
  gap: 12px;
}

.mini-kpi {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(215,184,150,0.18));
  border: 1px solid var(--line);
}

.mini-kpi strong {
  font-size: 1.8rem;
  display: block;
}

.donut-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.donut-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  text-align: center;
}

.donut-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--primary) var(--pct), rgba(16,39,70,0.08) 0);
}

.donut-ring span {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface-strong);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.detail-block {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(16, 39, 70, 0.1);
  box-shadow: 0 18px 44px rgba(16, 39, 70, 0.08);
}

.detail-block + .detail-block,
.top-space {
  margin-top: 18px;
}

.detail-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.detail-grid-cards {
  gap: 14px;
}

.detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #173660, #274f86);
  color: #fff;
  box-shadow: 0 24px 54px rgba(16, 39, 70, 0.2);
}

.detail-hero h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.detail-hero .eyebrow {
  opacity: 0.8;
}

.detail-hero-meta {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
}

.detail-hero-side {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: end;
}

.detail-next-follow {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.detail-field-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f5f9ff;
  border: 1px solid rgba(22, 61, 117, 0.1);
}

.detail-field-card span,
.detail-note-card span {
  font-size: 0.82rem;
  color: #617187;
  font-weight: 600;
}

.detail-field-card strong {
  color: #112743;
  font-size: 1rem;
  line-height: 1.6;
}

.detail-note-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f5f9ff;
  border: 1px solid rgba(22, 61, 117, 0.1);
}

.detail-note-card p {
  margin: 8px 0 0;
  line-height: 1.8;
  color: #173660;
}

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

.media-grid,
.units-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-card img,
.media-card video,
.media-card embed,
.project-cover {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.media-card img,
.media-card video,
.project-cover {
  height: 180px;
  object-fit: cover;
}

.empty-state {
  padding: 28px;
  text-align: center;
  border-radius: 20px;
  background: rgba(16, 39, 70, 0.04);
  border: 1px dashed rgba(16, 39, 70, 0.16);
}

.alert-ticker {
  position: fixed;
  right: 22px;
  top: 76px;
  width: min(360px, calc(100vw - 24px));
  z-index: 45;
  display: grid;
  gap: 10px;
}

.alert-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(16, 39, 70, 0.96);
  color: #fffaf3;
  box-shadow: 0 22px 60px rgba(16, 39, 70, 0.35);
  animation: rise 0.35s ease;
}

canvas {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(215, 184, 150, 0.12));
  border-radius: 22px;
}

[dir="ltr"] .nav-btn:hover,
[dir="ltr"] .nav-btn.active {
  transform: translateX(4px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.5px);
  }
}

@keyframes clockPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 1100px) {
  .split-grid,
  .dashboard-grid,
  .projects-list,
  .category-grid,
  .detail-grid,
  .media-grid,
  .units-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel.wide {
    grid-column: span 1;
  }

  .clock-card {
    min-width: 100%;
  }
}

@media (max-width: 760px) {
  .main-content {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .clock-shell {
    flex-direction: column;
  }

  .sales-card-headline {
    flex-direction: column;
    align-items: stretch;
  }

  .sales-share-wrap,
  .sales-share-trigger {
    width: 100%;
  }

  .sales-share-menu {
    position: static;
    min-width: 0;
    margin-top: 10px;
  }

  .sales-share-grid {
    grid-template-columns: 1fr;
  }

  .wall-clock-wrap {
    flex-basis: auto;
  }

  .wall-clock {
    width: min(72vw, 240px);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .alert-ticker {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

.lang-btn {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 20;
}
.clients-panel {
  position: relative;
  overflow: hidden;
}

.clients-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(218, 190, 154, 0.28), transparent 24%),
    radial-gradient(circle at bottom left, rgba(16, 39, 70, 0.08), transparent 22%);
  pointer-events: none;
  animation: beigeFloat 12s ease-in-out infinite alternate;
}

.clients-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.clients-intro,
.clients-toolbar,
.clients-table-card {
  border: 1px solid rgba(16, 39, 70, 0.08);
  border-radius: 16px;
  background: rgba(255, 251, 245, 0.9);
  box-shadow: 0 14px 28px rgba(16, 39, 70, 0.08);
}

.clients-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.section-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.clients-add-btn {
  min-width: 218px;
  justify-content: center;
  gap: 10px;
  padding-block: 15px;
  border-radius: 18px;
}

.clients-add-btn .ui-icon,
.large-ghost-btn .ui-icon {
  width: 19px;
  height: 19px;
}

.clients-toolbar {
  padding: 14px;
}

.clients-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
}

.clients-toolbar-inline-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(200px, 1fr) minmax(180px, 0.9fr);
  gap: 10px;
  grid-column: 1 / -1;
}

.clients-search-wrap,
.clients-select-wrap {
  display: grid;
  gap: 10px;
}

.clients-search-wrap {
  position: relative;
}

.clients-search-wrap input,
.clients-select-wrap select,
.clients-select-wrap input,
.page-size-wrap select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 39, 70, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.clients-search-wrap input {
  padding-inline: 14px 42px;
}

.clients-search-wrap input:focus,
.clients-select-wrap select:focus,
.clients-select-wrap input:focus,
.page-size-wrap select:focus {
  outline: none;
  border-color: rgba(16, 39, 70, 0.3);
  box-shadow: 0 0 0 4px rgba(215, 184, 150, 0.16);
  transform: translateY(-1px);
}

.clients-search-icon {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 13px;
  color: var(--primary);
  width: 20px;
  height: 20px;
}

.clients-search-icon svg {
  width: 100%;
  height: 100%;
}

.toolbar-label,
.toolbar-note,
.clients-summary,
.page-size-wrap span {
  color: var(--muted);
  font-size: 0.95rem;
}

.clients-toolbar-actions {
  display: Flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: stretch;
  flex-wrap: wrap;
}

.dataset-switch-row {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.is-hidden {
  display: none !important;
}

.batch-client-box-top {
  order: -1;
}

.batch-client-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.batch-client-row input {
  min-height: 44px;
}

.large-ghost-btn {
  min-height: 46px;
  padding-inline: 14px;
  border-radius: 14px;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
}

.large-ghost-btn:first-child {
  border-color: rgba(215, 184, 150, 0.52);
  color: #cb8a2b;
}

.toolbar-note {
  margin: 0;
  align-self: center;
}

.clients-table-card {
  padding: 8px;
  max-width: 100%;
  width: 100%;
}

.clients-table-wrap {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 39, 70, 0.08);
  width: 100%;
  max-width: 100%;
  min-height: 460px;
}

.clients-table {
  min-width: 820px;
  width: 100%;
  background: transparent;
}

.clients-table thead th {
  background: linear-gradient(180deg, #fffaf4, #f6ecdf);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}

.clients-table th,
.clients-table td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(16, 39, 70, 0.06);
  vertical-align: top;
}

.clients-table td {
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.clients-table tbody:has(.empty-state) tr,
.clients-table tbody:has(.empty-state) td {
  height: 100%;
}

.clients-table tbody:has(.empty-state) td {
  padding: 0;
  background: transparent;
}

.clients-table tbody:has(.empty-state) .empty-state {
  min-height: 430px;
  height: 100%;
  margin: 0;
  border-radius: 0;
  display: grid;
  place-content: center;
}

.clients-table tr:last-child td {
  border-bottom: 0;
}

.clients-table .data-row:hover td {
  background: rgba(247, 239, 227, 0.95);
}

.clients-index-cell {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.clients-last-action {
  min-width: 120px;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.table-sort-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.table-head-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.table-open-btn {
  min-width: 74px;
  justify-content: center;
}

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

.row-action-btn {
  min-width: 68px;
  justify-content: center;
}

.row-action-btn.danger {
  color: var(--danger);
}

.clients-table-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 8px 0;
}

.clients-table-meta {
  justify-self: start;
  margin-inline-end: auto;
}

.page-size-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-size-wrap select {
  width: 86px;
  min-height: 46px;
  padding-inline: 14px;
  border-radius: 14px;
}

.clients-summary {
  justify-self: end;
  color: var(--primary);
  font-weight: 700;
  margin-inline-start: auto;
}

.call-log-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 180px) minmax(140px, 180px) minmax(140px, 180px) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(16, 39, 70, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
  background: var(--primary);
  color: #fffaf3;
  box-shadow: 0 14px 28px rgba(16, 39, 70, 0.18);
  transform: translateY(-1px);
}

.page-btn:disabled,
.page-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.upload-btn {
  position: relative;
  overflow: hidden;
}

.upload-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

@keyframes beigeFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(12px, -10px, 0) scale(1.04);
    opacity: 1;
  }
}

.auth-container {
  max-width: 350px;
  margin: 100px auto;
  padding: 20px;
  background: white;
  border-radius: 16px;
  text-align: center;
}

.auth-container input {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

.logout-btn {
  background: #ff4d4f;
  color: white;
  border: none;
}

.logout-btn:hover {
  background: #d9363e;
}

body[data-page-section="calculator"] .calculator-layout {
  align-items: start;
}

body[data-page-section="calculator"] .calculator-panel {
  position: sticky;
  top: 20px;
}

body[data-page-section="calculator"] .general-calc-shell {
  display: grid;
  gap: 14px;
}

body[data-page-section="calculator"] .general-calc-display {
  width: 100%;
  min-height: 74px;
  border-radius: 18px;
  border: 1px solid rgba(16, 39, 70, 0.14);
  background: linear-gradient(180deg, #fbfdff, #eef4fb);
  padding: 16px 18px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  text-align: right;
  color: #102746;
}

body[data-page-section="calculator"] .general-calc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body[data-page-section="calculator"] .general-calc-grid button {
  min-height: 52px;
  font-size: 1rem;
}

body[data-page-section="calculator"] .compact-number-form input[type="number"],
body[data-page-section="calculator"] .compact-number-form input[type="text"] {
  direction: ltr;
  text-align: left;
}

body[data-page-section="calculator"] .calculator-results {
  margin-top: 14px;
}

body[data-page-section="calculator"] .calculator-table-card {
  border: 1px solid rgba(16, 39, 70, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

body[data-page-section="calculator"] .calculator-result-table th,
body[data-page-section="calculator"] .calculator-result-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

body[data-page-section="calculator"] .calculator-result-table tbody tr:nth-child(even) {
  background: rgba(248, 251, 255, 0.92);
}

body[data-page-section="calculator"] .calculator-result-value {
  direction: ltr;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: #102746;
  letter-spacing: 0.02em;
}

body[data-page-section="profile"] .profile-backup-box {
  border: 1px dashed rgba(16, 39, 70, 0.18);
  border-radius: 18px;
  padding: 14px;
  background: rgba(248, 251, 255, 0.9);
}

.login-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Cairo", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 150, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(58, 118, 209, 0.16), transparent 24%),
    #eef3fa;
  color: #102746;
}

.login-scene {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr minmax(360px, 460px);
  align-items: stretch;
}

.login-visual {
  position: relative;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  color: #fff;
  overflow: hidden;
}

.login-visual::before,
.login-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.6;
}

.login-visual::after {
  inset: 8% auto auto -8%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 72%);
}

.login-visual::before {
  inset: auto -10% 8% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,214,150,0.2), transparent 70%);
}

.login-badge {
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 30px rgba(7, 18, 36, 0.18);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.login-visual h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.login-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-tags span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}

.login-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.login-skyline-panel {
  position: relative;
  z-index: 1;
  min-height: 500px;
  margin-top: 8px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 34px 90px rgba(4, 12, 24, 0.32);
}

.login-skyline-image,
.login-skyline-glass,
.login-skyline-glow {
  position: absolute;
  inset: 0;
}

.login-skyline-image {
  background:
    linear-gradient(180deg, rgba(7, 18, 32, 0.18), rgba(7, 18, 32, 0.36)),
    url("./spine.png") center center / cover no-repeat;
  transform: scale(1.04);
  animation: skylineDrift 18s ease-in-out infinite alternate;
}

.login-skyline-glass {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), transparent 22%, rgba(6, 16, 30, 0.24) 100%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  mix-blend-mode: screen;
}

.login-skyline-glow {
  filter: blur(22px);
  opacity: 0.62;
}

.skyline-glow-a {
  inset: auto auto 5% 6%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 209, 137, 0.5), transparent 72%);
}

.skyline-glow-b {
  inset: 8% 6% auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(118, 170, 255, 0.34), transparent 74%);
}

.property-shot,
.analytics-shot {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 150px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 24px 56px rgba(8, 19, 34, 0.24);
  backdrop-filter: blur(10px);
}

.analytics-shot {
  grid-column: 1 / -1;
  min-height: 220px;
}

.login-logo-cloud {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: logoFloatLeft 30s linear infinite;
}

.marquee-right .logo-marquee-track {
  animation-name: logoFloatRight;
  animation-duration: 34s;
}

.logo-cloud-item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 140px;
  min-height: 82px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  text-align: center;
}

.logo-cloud-item img {
  max-width: 96px;
  max-height: 32px;
  object-fit: contain;
  filter: brightness(1.08) contrast(1.08) saturate(1.02);
}

.logo-cloud-item span {
  font-size: 0.72rem;
  line-height: 1.2;
  color: rgba(255,255,255,0.9);
}

.auth-prime-card {
  margin: 0;
  max-width: none;
  border-radius: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  text-align: start;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  box-shadow: -18px 0 50px rgba(16, 39, 70, 0.08);
}

.auth-card-head h2 {
  margin: 0 0 18px;
  font-size: 2rem;
}

.auth-prime-card input {
  width: 100%;
  margin: 0 0 12px;
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(16, 39, 70, 0.12);
  background: #fff;
  padding: 0 18px;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.login-submit {
  min-height: 58px;
  margin-top: 10px;
  justify-content: center;
}

.login-page.theme-sand .login-visual {
  background:
    radial-gradient(circle at top right, rgba(255, 232, 191, 0.2), transparent 28%),
    linear-gradient(135deg, #8f6236, #4c3827 52%, #161d28);
}

.login-page.theme-skyline .login-visual {
  background:
    radial-gradient(circle at top right, rgba(135, 198, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #102746, #214f86 55%, #8aa7c7);
}

.login-page.theme-garden .login-visual {
  background:
    radial-gradient(circle at top right, rgba(196, 228, 191, 0.18), transparent 24%),
    linear-gradient(135deg, #29443d, #4a6c60 54%, #c7a06a);
}

.premium-gallery .hero-shot {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)),
    linear-gradient(135deg, #102746, #325d97);
}

@keyframes skylineDrift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateY(-10px); }
}

.premium-gallery .sky-shot {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)),
    linear-gradient(135deg, #38506b, #9ab6d6);
}

.premium-gallery .lounge-shot {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02)),
    linear-gradient(135deg, #60452d, #d7b07c);
}

.shot-sheen {
  position: absolute;
  inset: -30% auto auto -10%;
  width: 70%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: rotate(18deg);
}

.shot-window-grid,
.shot-horizon,
.shot-accent-line {
  position: absolute;
  inset: 18px;
  border-radius: 20px;
}

.shot-window-grid {
  background:
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) 18% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) 38% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) 58% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)) 78% 0 / 1px 100% no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.03));
  box-shadow: inset 0 -30px 60px rgba(4, 12, 22, 0.28);
}

.shot-horizon {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 45%),
    linear-gradient(0deg, rgba(255,255,255,0.18), transparent 22%),
    radial-gradient(circle at 50% 110%, rgba(255,214,150,0.6), transparent 36%);
}

.shot-accent-line {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 45%);
}

.shot-accent-line::before,
.shot-accent-line::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.shot-accent-line::before {
  inset: auto 18px 24px 18px;
  height: 3px;
  background: rgba(255,255,255,0.4);
}

.shot-accent-line::after {
  top: 22px;
  right: 22px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255,255,255,0.24);
}

.metrics-shot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(135deg, rgba(9, 22, 39, 0.88), rgba(22, 56, 98, 0.9));
}

.metric-card {
  position: relative;
  z-index: 1;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}

.metric-card span {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
}

.metric-wave {
  position: absolute;
  inset-inline: 18px;
  height: 84px;
  border-radius: 999px;
  pointer-events: none;
}

.metric-wave.wave-one {
  bottom: 26px;
  background: radial-gradient(circle at 10% 50%, rgba(255,214,150,0.55) 0 8px, transparent 9px),
    linear-gradient(135deg, transparent 0 10%, rgba(255,214,150,0.5) 10% 11%, transparent 11% 22%, rgba(255,214,150,0.5) 22% 23%, transparent 23% 34%, rgba(255,214,150,0.5) 34% 35%, transparent 35%);
  opacity: 0.72;
}

.metric-wave.wave-two {
  bottom: 18px;
  background: linear-gradient(135deg, transparent 0 12%, rgba(120, 231, 194, 0.55) 12% 13%, transparent 13% 24%, rgba(120, 231, 194, 0.55) 24% 25%, transparent 25% 36%, rgba(120, 231, 194, 0.55) 36% 37%, transparent 37%);
  opacity: 0.68;
}

@keyframes logoFloatLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes logoFloatRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (max-width: 1100px) {
  .login-scene {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 320px;
    padding: 32px 24px;
  }

  .login-gallery,
  .metrics-shot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-prime-card {
    min-height: auto;
    padding: 28px 20px 36px;
  }
}

@media (max-width: 1100px) {
  .clients-toolbar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar-note {
    grid-column: 1 / -1;
  }

  .clients-table-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .clients-table-meta,
  .clients-summary {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .main-content {
    padding: 16px;
    min-width: 0;
  }

  .clients-intro,
  .clients-toolbar {
    padding: 20px;
  }

  .clients-intro,
  .clients-toolbar-grid,
  .clients-toolbar-actions,
  .page-size-wrap {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .clients-add-btn,
  .large-ghost-btn {
    width: 100%;
  }

  .batch-client-row {
    grid-template-columns: 1fr;
  }

  .clients-table-card {
    padding: 12px;
  }
}
.clients-intro {
  flex-wrap: wrap;
}
.clients-intro > * {
  min-width: 0;
}
.clients-table-card {
  overflow-x: auto;
  width: 100%;
}

/* --- Sales card premium share override --- */
.sales-card-shell {
  border-radius: 24px;
  padding: 6px;
  background:
    radial-gradient(circle at 16% 18%, rgba(215, 184, 150, 0.18), transparent 42%),
    radial-gradient(circle at 92% 10%, rgba(16, 39, 70, 0.15), transparent 36%),
    linear-gradient(135deg, rgba(255, 250, 243, 0.98), rgba(252, 245, 234, 0.95));
  border: 1px solid rgba(16, 39, 70, 0.1);
  box-shadow: 0 24px 42px rgba(16, 39, 70, 0.08);
}

.sales-card-copy {
  padding: 14px 8px 8px;
}

.sales-card-bio {
  font-size: 1.02rem;
}

.sales-share-menu {
  min-width: 320px;
}

.sales-share-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.sales-share-slider::-webkit-scrollbar {
  height: 7px;
}

.sales-share-slider::-webkit-scrollbar-thumb {
  background: rgba(16, 39, 70, 0.22);
  border-radius: 999px;
}

.share-icon-btn {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(16, 39, 70, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 10px 20px rgba(16, 39, 70, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.share-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(16, 39, 70, 0.18);
}

.share-icon-btn.whatsapp { background: linear-gradient(135deg, #25d366, #1ea952); }
.share-icon-btn.telegram { background: linear-gradient(135deg, #27a7e7, #1586c7); }
.share-icon-btn.viber { background: linear-gradient(135deg, #7360f2, #5e4ae0); }
.share-icon-btn.imo { background: linear-gradient(135deg, #2a9cff, #1674d4); }
.share-icon-btn.botim { background: linear-gradient(135deg, #24b49c, #178c79); }
.share-icon-btn.snapchat { background: linear-gradient(135deg, #f6d743, #efbd2d); color: #1f2430; }

@media (max-width: 760px) {
  .sales-share-menu {
    min-width: 0;
  }

  .sales-share-slider {
    flex-direction: column;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    padding-right: 4px;
  }

  .share-icon-btn {
    width: 100%;
    border-radius: 14px;
  }
}

/* ===== Override: share icons + analytics overflow + collections ===== */
.small-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.small-stats .mini-kpi {
  min-width: 0;
}

.small-stats .mini-kpi strong {
  font-size: clamp(1.35rem, 2vw, 2rem);
  overflow-wrap: anywhere;
}

.sales-share-menu {
  min-width: 340px;
}

.sales-share-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-snap-type: x proximity;
}

.share-icon-btn {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 18px rgba(16, 39, 70, 0.2), inset 0 -6px 12px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-icon-btn .share-mark {
  font-family: "Cairo", sans-serif;
}

.share-icon-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 28px rgba(16, 39, 70, 0.28), inset 0 -6px 12px rgba(0, 0, 0, 0.16);
}

.share-icon-btn.whatsapp { background: radial-gradient(circle at 30% 25%, #48e083, #1fa856); }
.share-icon-btn.telegram { background: radial-gradient(circle at 30% 25%, #48c7ff, #1585c5); }
.share-icon-btn.viber { background: radial-gradient(circle at 30% 25%, #9586ff, #5c4adc); }
.share-icon-btn.imo { background: radial-gradient(circle at 30% 25%, #4cb2ff, #166fcf); }
.share-icon-btn.botim { background: radial-gradient(circle at 30% 25%, #41d0ba, #168a76); }
.share-icon-btn.snapchat { background: radial-gradient(circle at 30% 25%, #ffe679, #f0bf24); color: #1f2430; }

.collection-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.commission-collect-box {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(215,184,150,0.12));
}

.commission-collect-box h4 {
  margin: 0 0 12px;
}

#analytics .panel,
#analytics .form-grid,
#analytics .stats-grid,
#analytics .small-stats,
#analytics .table-wrap,
#analytics .data-table {
  min-width: 0;
}

#analytics .data-table td,
#analytics .data-table th {
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .small-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sales-share-menu {
    min-width: 0;
  }

  .sales-share-slider {
    flex-direction: row;
  }

  .small-stats,
  .collection-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Final Stable Override: share logos style ===== */
.share-icon-btn {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 10px 20px rgba(16, 39, 70, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-icon-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.share-icon-btn .share-mark {
  display: none;
}

.share-icon-btn.whatsapp { background: linear-gradient(135deg, #2ddd72, #1ea95a); color: #fff; }
.share-icon-btn.telegram { background: linear-gradient(135deg, #2fb4f2, #188ecf); color: #fff; }
.share-icon-btn.viber { background: linear-gradient(135deg, #7c69ff, #604be0); color: #fff; }
.share-icon-btn.imo { background: linear-gradient(135deg, #2ea4ff, #1876d6); color: #fff; }
.share-icon-btn.botim { background: linear-gradient(135deg, #32c8b0, #178b78); color: #fff; }
.share-icon-btn.snapchat { background: linear-gradient(135deg, #ffe05a, #f4c428); color: #1f2430; }

/* ===== Analytics Pro Filters + Visuals ===== */
.analytics-filter-panel {
  margin-bottom: 14px;
}

.analytics-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.analytics-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.analytics-insight-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255,255,255,0.95), rgba(215,184,150,0.18));
  animation: analyticsFadeIn 0.35s ease;
}

.analytics-insight-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -20px;
  top: -28px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16,39,70,0.08);
}

.analytics-insight-card .value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.analytics-insight-card .meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.analytics-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.analytics-mini-chart {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
}

.analytics-mini-chart h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

@keyframes analyticsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .analytics-filter-grid,
  .analytics-insights-grid,
  .analytics-chart-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PRO Analytics Dashboard UI ===== */
.ad-panel {
  background: linear-gradient(165deg, rgba(255,255,255,0.96), rgba(241, 232, 215, 0.72));
  border: 1px solid rgba(16,39,70,0.08);
  box-shadow: 0 16px 34px rgba(16,39,70,0.08);
}

.ad-head h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  color: #122f55;
}

.ad-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ad-filter label {
  display: grid;
  gap: 8px;
}

.ad-filter label > span {
  font-size: 0.9rem;
  color: #38506f;
  font-weight: 700;
}

.ad-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
}

.ad-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ad-kpi-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(16,39,70,0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(215,184,150,0.16));
  animation: adRise 0.28s ease;
}

.ad-kpi-card p {
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: #556d89;
  font-weight: 700;
}

.ad-kpi-card strong {
  display: block;
  font-size: 1.45rem;
  color: #122f55;
  line-height: 1.1;
}

.ad-kpi-card small {
  color: #6f8098;
}

.ad-charts,
.ad-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.ad-card {
  border: 1px solid rgba(16,39,70,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.86);
  padding: 12px;
}

.ad-card h4 {
  margin: 0 0 10px;
  color: #1a3d67;
  font-size: 1rem;
}

@keyframes adRise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
  .ad-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .ad-filter,
  .ad-kpis,
  .ad-charts,
  .ad-tables {
    grid-template-columns: 1fr;
  }
}

/* ===== Simplified Premium Workspace ===== */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-alt: #f7f8fb;
  --field-surface: #ffffff;
  --line: rgba(16, 39, 70, 0.1);
  --shadow: 0 10px 24px rgba(18, 37, 62, 0.08);
  --panel-radius: 16px;
  --card-radius: 14px;
  --section-gap: 12px;
}

body {
  background: #ffffff;
}

.main-content {
  padding: 14px 16px 20px;
}

.topbar,
.hero-card,
.panel,
.stat-card,
.category-card,
.clients-intro,
.clients-toolbar,
.clients-table-card {
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 39, 68, 0.08);
}

.topbar {
  padding: 12px 14px;
}

.panel {
  padding: 12px;
}

.section-copy {
  margin: 4px 0 0;
}

.clients-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.65fr);
  gap: 12px;
  align-items: start;
}

.workbench-side,
.workbench-main {
  display: grid;
  gap: 12px;
}

.compact-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
}

.compact-card h4 {
  margin: 0;
  font-size: 1.02rem;
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compact-form label {
  padding: 8px;
}

.compact-form label > span {
  font-size: 0.82rem;
}

.compact-form textarea {
  min-height: 72px;
}

.call-due-image-status {
  min-height: 20px;
  padding: 2px 4px;
  font-size: 0.84rem;
  color: #5f6f83;
}

.call-due-image-status.success {
  color: #1f7a4f;
}

.call-due-image-status.error {
  color: #b93535;
}

.followup-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.followup-chip-row .category-card {
  min-height: auto;
  padding: 8px;
}

.clients-table th,
.clients-table td,
.data-table th,
.data-table td {
  padding: 8px 10px;
  font-size: 0.9rem;
}

.table-wrap {
  max-height: 280px;
  overflow: auto;
}

.clients-table-wrap {
  max-height: 360px;
}

.clients-last-action {
  max-width: 260px;
}

#clientDetailPanel .history-list {
  max-height: 290px;
  overflow: auto;
}

.nav-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-btn:hover,
.nav-btn.active {
  transform: translateX(-2px);
}

@media (max-width: 1200px) {
  .dashboard-grid,
  .split-grid,
  .projects-list,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .clients-workbench {
    grid-template-columns: 1fr;
  }

  .compact-form {
    grid-template-columns: 1fr;
  }

  .followup-chip-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Engaz-like Clients Page ===== */
body[data-page-section="clients"] .main-content {
  overflow-x: hidden;
  overflow-y: visible;
  min-width: 0;
}

body[data-page-section="clients"] .leads-shell {
  padding: 10px;
  background: #fff;
  min-width: 0;
  width: 100%;
}

body[data-page-section="clients"] .leads-head {
  margin-bottom: 10px;
}

body[data-page-section="clients"] .leads-head-actions {
  display: flex;
  gap: 8px;
}

body[data-page-section="clients"] .leads-toolbar-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
}

body[data-page-section="clients"] .lead-stage-tabs {
  display: flex;
  justify-content: flex-start;
  position: relative;
  top: auto;
  z-index: 6;
  width: 100%;
  padding-top: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94));
}

body[data-page-section="clients"] .clients-filter-menu {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  max-height: min(420px, 60vh);
  white-space: normal;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

body[data-page-section="clients"] .clients-filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  border-radius: 16px;
  padding: 12px 14px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.96), rgba(255,255,255,0.82) 28%, transparent 29%),
    linear-gradient(135deg, #ffffff 0%, #eff4ff 44%, #dde8ff 100%);
  border: 1px solid rgba(18, 53, 104, 0.1);
  box-shadow: 0 12px 24px rgba(16, 39, 70, 0.08);
  color: #173660;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  opacity: 1;
  transform: none;
}

body[data-page-section="clients"] .clients-filter-option:hover,
body[data-page-section="clients"] .clients-filter-option.active {
  background: linear-gradient(135deg, #ecf4ff, #dfeaff);
  color: #102746;
  transform: translateX(-2px);
}

body[data-page-section="clients"] .clients-filter-option-label {
  flex: 1;
  text-align: start;
  white-space: normal;
  line-height: 1.35;
}

body[data-page-section="clients"] .clients-filter-option-count {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 39, 70, 0.08);
  color: #102746;
  font-size: 0.88rem;
}

body[data-page-section="clients"] .clients-filter-option-count-due {
  color: #d63232;
  font-weight: 700;
}

@media (max-width: 860px) {
  .clients-toolbar-inline-filters {
    grid-template-columns: 1fr;
  }

  body[data-page-section="clients"] .leads-shell {
    padding: 10px;
  }

  body[data-page-section="clients"] .leads-table,
  body[data-page-section="clients"] .clients-table {
    min-width: 700px;
  }
}

body[data-page-section="clients"] .leads-table-wrap {
  height: clamp(360px, 58vh, 640px);
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  max-width: 100%;
}

body[data-page-section="clients"] .leads-table,
body[data-page-section="clients"] .clients-table {
  min-width: 820px;
  width: max-content;
  max-width: none;
}

body[data-page-section="clients"] .leads-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

body[data-page-section="clients"] .leads-table td .row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

body[data-page-section="clients"] .phone-actions-cell {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

body[data-page-section="clients"] .tiny-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(16, 39, 70, 0.15);
  background: #fff;
  color: #13315a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  margin-inline-end: 6px;
}

body[data-page-section="clients"] .tiny-icon-btn.more {
  margin-inline-end: 0;
  cursor: pointer;
}

body[data-page-section="clients"] .tiny-icon-btn.plus {
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

body[data-page-section="clients"] .tiny-icon-btn.note {
  margin-inline-start: 8px;
  color: #8a5a17;
  border-color: rgba(184, 133, 47, 0.28);
  background: linear-gradient(180deg, #fffaf0, #fff3db);
  cursor: pointer;
}

body[data-page-section="clients"] .row-action-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body[data-page-section="clients"] .message-apps-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body[data-page-section="clients"] .tiny-icon-btn.message-trigger {
  color: #13315a;
  border-color: rgba(16, 39, 70, 0.18);
  cursor: pointer;
}

body[data-page-section="clients"] .message-apps-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  width: 220px;
  border: 1px solid rgba(16, 39, 70, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 34, 57, 0.18);
  padding: 10px;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  z-index: 20;
}

body[data-page-section="clients"] .message-apps-menu.open {
  display: grid;
}

body[data-page-section="clients"] .message-app {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(16, 39, 70, 0.08);
  background: #fff;
  padding: 8px 10px;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

body[data-page-section="clients"] .message-app:hover {
  transform: translateY(-1px);
  background: #f8fbff;
  border-color: rgba(16, 39, 70, 0.18);
}

body[data-page-section="clients"] .message-app[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

body[data-page-section="clients"] .message-app-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}

body[data-page-section="clients"] .message-app-icon svg {
  display: block;
}

body[data-page-section="clients"] .message-app-label {
  font-size: 12px;
  font-weight: 700;
}

body[data-page-section="clients"] .message-app-sms .message-app-icon {
  color: #13315a;
  background: rgba(19, 49, 90, 0.08);
}

body[data-page-section="clients"] .message-app-whatsapp .message-app-icon {
  color: #0d8f47;
  background: rgba(13, 143, 71, 0.1);
}

body[data-page-section="clients"] .message-app-botim .message-app-icon {
  color: #1e90ff;
  background: rgba(30, 144, 255, 0.1);
}

body[data-page-section="clients"] .message-app-imo .message-app-icon {
  color: #2478ff;
  background: rgba(36, 120, 255, 0.1);
}

body[data-page-section="clients"] .message-app-telegram .message-app-icon {
  color: #229ed9;
  background: rgba(34, 158, 217, 0.1);
}

body[data-page-section="clients"] .message-app-snapchat .message-app-icon {
  color: #181818;
  background: rgba(255, 230, 0, 0.7);
}

body[data-page-section="clients"] .message-app-viber .message-app-icon {
  color: #7360f2;
  background: rgba(115, 96, 242, 0.12);
}

body[data-page-section="clients"] .client-row-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 140px;
  border: 1px solid rgba(16, 39, 70, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(17, 34, 57, 0.16);
  padding: 6px;
  display: none;
  z-index: 10;
}

body[data-page-section="clients"] .client-row-menu.open {
  display: grid;
}

body[data-page-section="clients"] .client-row-menu button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 8px 10px;
  text-align: start;
  font: inherit;
  cursor: pointer;
}

body[data-page-section="clients"] .client-row-menu button:hover {
  background: #f3f7fd;
}

body[data-page-section="clients"] .client-row-menu button.danger {
  color: #c92f2f;
}

body[data-page-section="clients"] .client-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 44, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

body[data-page-section="clients"] .client-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

body[data-page-section="clients"] .client-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(1240px, 75vw);
  height: 100vh;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  border-left: 1px solid rgba(16, 39, 70, 0.08);
  box-shadow: -20px 0 50px rgba(10, 24, 44, 0.12);
  transform: translateX(102%);
  transition: transform 0.24s ease;
  z-index: 70;
  display: grid;
  grid-template-rows: auto 1fr;
}

body[data-page-section="clients"] .client-drawer.open {
  transform: translateX(0);
}

body[data-page-section="clients"] .client-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(16, 39, 70, 0.1);
}

body[data-page-section="clients"] .client-drawer-content {
  overflow: auto;
  padding: 12px;
}

body[data-page-section="clients"] .detail-mode-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

body[data-page-section="clients"] .detail-mode-btn {
  cursor: pointer;
}

body[data-page-section="clients"] .detail-mode-btn svg {
  width: 16px;
  height: 16px;
}

body[data-page-section="clients"] .detail-mode-btn.active {
  background: #13315a;
  color: #fff;
  border-color: #13315a;
}

body[data-page-section="clients"] .table-stage-badge {
  min-width: 112px;
  justify-content: center;
}

body[data-page-section="clients"] .detail-block {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

body[data-page-section="clients"] .history-item {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

body[data-page-section="clients"] .client-entry-inline-sheet {
  position: fixed;
  inset: 35px 0 0;
  width: 100%;
  padding: 22px;
  display: grid;
  place-items: center;
  transform: scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 75;
  background: rgba(10, 24, 44, 0.34);
  backdrop-filter: blur(4px);
}

body[data-page-section="clients"] .client-entry-inline-sheet.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

body[data-page-section="clients"] .client-entry-inline-sheet .panel {
  width: min(960px, calc(100vw - 70px));
  max-height: 88vh;
  overflow: auto;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(10, 24, 44, 0.24);
}

body[data-page-section="clients"] .call-completion-sheet {
  z-index: 82;
}

body[data-page-section="clients"] .call-completion-sheet .panel {
  width: min(560px, calc(100vw - 32px));
  border-radius: 26px;
  box-shadow: 0 32px 80px rgba(10, 24, 44, 0.24);
}

body[data-page-section="clients"] .call-completion-sheet .compact-form {
  grid-template-columns: 1fr;
}

body[data-page-section="clients"] .call-completion-sheet textarea {
  min-height: 132px;
}

body[data-page-section="clients"] .call-completion-check {
  padding: 12px 14px;
}

body[data-page-section="clients"] .call-completion-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-page-section="clients"] .call-completion-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: auto;
}

body[data-page-section="clients"] .call-note-sheet {
  z-index: 82;
}

body[data-page-section="clients"] .call-note-sheet .panel {
  width: min(520px, calc(100vw - 32px));
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(10, 24, 44, 0.22);
}

body[data-page-section="clients"] .call-note-body {
  display: grid;
  gap: 14px;
}

body[data-page-section="clients"] .message-composer-sheet {
  z-index: 82;
}

body[data-page-section="clients"] .clients-filter-sheet {
  z-index: 82;
}

body[data-page-section="clients"] .message-composer-sheet .panel {
  width: min(620px, calc(100vw - 32px));
}

body[data-page-section="clients"] .clients-filter-sheet .panel {
  width: min(760px, calc(100vw - 32px));
}

body[data-page-section="clients"] .clients-filter-sheet::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 44, 0.38);
  backdrop-filter: blur(4px);
  z-index: -1;
}

body[data-page-section="clients"] .clients-filter-sheet .panel {
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(10, 24, 44, 0.22);
}

body[data-page-section="clients"] .clients-filter-sheet-body {
  display: grid;
  gap: 16px;
}

body[data-page-section="clients"] .clients-filter-add {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr) auto;
  gap: 12px;
  align-items: end;
}

body[data-page-section="clients"] .clients-filter-list {
  display: grid;
  gap: 12px;
}

body[data-page-section="clients"] .clients-filter-item {
  border: 1px solid rgba(16, 39, 70, 0.1);
  border-radius: 18px;
  padding: 14px;
  background: #f9fbff;
}

body[data-page-section="clients"] .clients-filter-item-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr) auto;
  gap: 12px;
  align-items: end;
}

body[data-page-section="clients"] .clients-filter-visibility {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

body[data-page-section="clients"] .clients-filter-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

body[data-page-section="clients"] .clients-filter-source-lock {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px dashed rgba(16, 39, 70, 0.18);
  background: #fff;
  color: #173660;
  font-weight: 700;
}

body[data-page-section="clients"] .danger-text-btn {
  color: #b42318;
}

body[data-page-section="clients"] .message-composer-sheet .panel {
  border-radius: 26px;
  box-shadow: 0 32px 80px rgba(10, 24, 44, 0.24);
}

body[data-page-section="clients"] .message-composer-body {
  display: grid;
  gap: 14px;
}

body[data-page-section="clients"] .message-template-list {
  display: grid;
  gap: 10px;
}

body[data-page-section="clients"] .message-template-btn {
  border: 1px solid rgba(16, 39, 70, 0.1);
  background: rgba(16, 39, 70, 0.04);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: start;
  font: inherit;
  cursor: pointer;
  color: var(--text);
}

body[data-page-section="clients"] .message-template-btn:hover {
  background: rgba(16, 39, 70, 0.08);
}

body[data-page-section="clients"] .message-template-add {
  display: grid;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(16, 39, 70, 0.08);
}

body[data-page-section="clients"] .message-composer-actions {
  display: flex;
  justify-content: flex-start;
}

body[data-page-section="clients"] .call-note-intro {
  margin: 0;
  color: #5d6b7f;
  font-size: 0.95rem;
}

body[data-page-section="clients"] .call-note-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.96), rgba(255, 243, 219, 0.9));
  border: 1px solid rgba(184, 133, 47, 0.22);
  color: #13315a;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

body[data-page-section="clients"] .client-entry-inline-sheet .compact-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  body[data-page-section="clients"] .client-drawer {
    width: min(760px, 88vw);
  }

  body[data-page-section="clients"] .client-entry-inline-sheet .compact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .detail-action-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero,
  .history-item-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-hero-side {
    justify-items: start;
    text-align: start;
  }

  body[data-page-section="clients"] .leads-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .call-log-toolbar {
    grid-template-columns: 1fr;
  }

  body[data-page-section="clients"] .client-drawer {
    width: 100vw;
  }

  body[data-page-section="clients"] .client-entry-inline-sheet {
    width: calc(100vw - 20px);
  }

  body[data-page-section="clients"] .client-entry-inline-sheet .compact-form {
    grid-template-columns: 1fr;
  }

  body[data-page-section="clients"] .clients-filter-add,
  body[data-page-section="clients"] .clients-filter-item-grid {
    grid-template-columns: 1fr;
  }

  body[data-page-section="clients"] .clients-filter-item-actions {
    justify-content: stretch;
  }
}

@media (max-width: 640px) {
  .detail-action-form {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .login-skyline-panel {
    min-height: 280px;
  }
}

/* ===== Login Full Background Override ===== */
.login-page {
  background: #07111f;
}

.login-scene {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  padding: 32px;
  overflow: hidden;
}

.login-bg-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 11, 22, 0.3), rgba(4, 11, 22, 0.58)),
    linear-gradient(90deg, rgba(6, 16, 30, 0.1), rgba(6, 16, 30, 0.05) 36%, rgba(6, 16, 30, 0.58) 100%),
    url("./spine.png") center center / cover no-repeat;
  transform: scale(1.01);
  animation: skylineDrift 40s ease-in-out infinite alternate;
  will-change: transform;
}

.login-bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at bottom center, rgba(255, 208, 133, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 22%);
}

.login-visual {
  position: relative;
  z-index: 1;
  max-width: 780px;
  align-self: start;
  justify-content: flex-start;
  gap: 22px;
  padding: 34px 28px 24px 12px;
  overflow: visible;
  background: transparent !important;
}

.login-visual::before,
.login-visual::after,
.login-skyline-panel {
  display: none;
}

.login-badge,
.login-tags span {
  backdrop-filter: blur(6px);
}

.login-page.theme-sand .login-visual,
.login-page.theme-skyline .login-visual,
.login-page.theme-garden .login-visual {
  background: transparent !important;
}

.auth-prime-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  min-height: auto;
  margin-inline-start: auto;
  padding: 34px 30px;
  border-radius: 28px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 42px rgba(3, 10, 20, 0.24);
}

@media (prefers-reduced-motion: reduce), (max-width: 900px) {
  .login-bg-layer {
    animation: none;
    transform: none;
  }

  .login-badge,
  .login-tags span {
    backdrop-filter: none;
  }
}

.auth-card-head h2 {
  color: #fff;
}

.auth-prime-card input {
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.94);
}

/* ===== Clients Filter Width Fix ===== */
body[data-page-section="clients"] .lead-stage-tabs {
  overflow: visible;
  align-items: flex-start;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

body[data-page-section="clients"] .clients-filter-rail {
  display: flex;
  align-items: center;
  gap: 4px;
  align-items: center;
  width: 100%;
  max-width: none;
  overflow: hidden;
}

body[data-page-section="clients"] .clients-filter-arrow {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(18, 53, 104, 0.14);
  background: #fff;
  color: #173660;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(16, 39, 70, 0.06);
}

body[data-page-section="clients"] .clients-filter-tabs-scroller {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

body[data-page-section="clients"] .clients-filter-tabs-scroller::-webkit-scrollbar {
  height: 4px;
}

body[data-page-section="clients"] .clients-filter-tabs-scroller::-webkit-scrollbar-thumb {
  background: rgba(16, 39, 70, 0.18);
  border-radius: 999px;
}

body[data-page-section="clients"] .clients-filter-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: stretch;
  min-width: max-content;
  padding-bottom: 2px;
}

body[data-page-section="clients"] .clients-filter-dropdown {
  position: relative;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: stretch;
  gap: 12px;
  z-index: 90;
  isolation: isolate;
}

body[data-page-section="clients"] .clients-filter-trigger {
  width: min(340px, 100%);
  flex: 0 1 340px;
  justify-content: space-between;
  align-items: center;
  border-radius: 18px;
  display: none;
}

body[data-page-section="clients"] .clients-filter-trigger-copy {
  display: grid;
  gap: 2px;
  text-align: start;
}

body[data-page-section="clients"] .clients-filter-trigger-copy small {
  color: #6f7d91;
}

body[data-page-section="clients"] .clients-filter-trigger-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 39, 70, 0.08);
  color: #173660;
}

body[data-page-section="clients"] .clients-filter-menu.open {
  opacity: 1;
  visibility: visible;
  width: min(420px, calc(100vw - 32px));
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(18, 53, 104, 0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,246,255,0.96));
  box-shadow: 0 26px 54px rgba(16, 39, 70, 0.18);
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

body[data-page-section="clients"] .clients-filter-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 280px;
  width: min(420px, calc(100vw - 32px));
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
}

body[data-page-section="clients"] .clients-filter-tabs .clients-filter-option {
  min-width: 86px;
  max-width: 120px;
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.15;
  min-height: 34px;
  box-shadow: 0 6px 14px rgba(16, 39, 70, 0.06);
}

body[data-page-section="clients"] .clients-filter-tabs .clients-filter-option-label {
  font-size: 0.78rem;
}

body[data-page-section="clients"] .clients-filter-tabs .clients-filter-option-count {
  padding: 2px 6px;
  font-size: 0.72rem;
}

@media (max-width: 1100px) {
  .login-scene {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .login-visual {
    max-width: none;
    padding: 20px 8px 0;
  }

  .auth-prime-card {
    width: min(520px, 100%);
    margin: 0;
    padding: 28px 20px 36px;
  }
}

@media (max-width: 860px) {
  body[data-page-section="clients"] .clients-filter-tabs .clients-filter-option {
    min-width: 80px;
    max-width: 104px;
  }
}

#sidebarToggleBtn {
  position: static;
  top: auto;
  z-index: auto;
  min-height: 40px;
  padding: 8px 14px;
  touch-action: manipulation;
}

@media (max-width: 860px) {
  html,
  body {
    height: auto;
    overflow-x: hidden;
  }

  .news-ticker {
    display: none;
  }

  .app-shell {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
  }

  body.sidebar-collapsed .app-shell {
    grid-template-columns: 1fr;
  }

  body.sidebar-collapsed .sidebar {
    display: none;
  }

  .main-content {
    padding: 14px;
  }

  .clock-card {
    min-width: 0;
  }
}

/* Performance-only overrides */
.clock-pulse,
#repNameHero,
.content-section,
.clients-panel::before,
[class*="skyline"],
[class*="logoFloat"] {
  animation: none !important;
}

/* Top nav layout */
.app-shell {
  grid-template-columns: 1fr;
  gap: 12px;
}

html[dir="rtl"] .app-shell {
  grid-template-columns: 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 12px 14px;
  border-radius: 0 0 18px 18px;
  z-index: 40;
  order: -1;
}

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

.brand-badge {
  min-width: 78px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4ddba, #d7b896 55%, #b78d5c);
  color: #102746;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  box-shadow: 0 10px 24px rgba(7, 18, 36, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.brand-title {
  font-size: 1.15rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nav-btn,
.logout-btn {
  width: auto;
  min-height: 42px;
  padding: 10px 14px;
  justify-content: center;
  white-space: nowrap;
}

.nav-btn:hover,
.nav-btn.active {
  transform: translateY(-1px);
}

.main-content {
  padding-top: 0;
}

html[dir="rtl"] .sidebar,
html[dir="rtl"] .main-content {
  order: initial;
}

html[dir="rtl"] .sidebar {
  order: -1;
}

html[dir="rtl"] .main-content {
  order: 0;
}

.ticker-track {
  animation: tickerMove 43s linear infinite !important;
}

@media (max-width: 860px) {
  .sidebar {
    position: static;
    border-radius: 0 0 16px 16px;
  }

  .brand-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
}

.panel-subcopy {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.all-data-library {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.all-data-sidebar {
  display: grid;
  gap: 16px;
}

.all-data-side-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 40, 73, 0.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(17, 40, 73, 0.08);
}

.all-data-side-head {
  margin-bottom: 14px;
}

.all-data-folder-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.all-data-folder-create input {
  min-width: 0;
}

.all-data-folder-list,
.all-data-file-list {
  display: grid;
  gap: 10px;
}

.all-data-folder-card,
.all-data-file-card {
  width: 100%;
  text-align: start;
  border: 1px solid rgba(17, 40, 73, 0.1);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(246, 248, 252, 0.96));
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.all-data-folder-card:hover,
.all-data-file-card:hover,
.all-data-folder-card.active,
.all-data-file-card.active {
  transform: translateY(-1px);
  border-color: rgba(177, 124, 49, 0.45);
  box-shadow: 0 14px 30px rgba(17, 40, 73, 0.08);
}

.all-data-folder-card strong,
.all-data-file-card strong {
  color: #102746;
}

.all-data-folder-card span,
.all-data-file-card span {
  color: #6e7f94;
  font-size: 0.92rem;
}

.all-data-main {
  min-width: 0;
}

@media (max-width: 1080px) {
  .all-data-library {
    grid-template-columns: 1fr;
  }
}

body[data-page-section="all-data"] .phone-actions-cell {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

body[data-page-section="all-data"] .row-action-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-page-section="all-data"] .message-apps-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body[data-page-section="all-data"] .tiny-icon-btn,
body[data-page-section="all-data"] .tiny-btn.table-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(16, 39, 70, 0.12);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.96), rgba(255,255,255,0.82) 34%, transparent 35%),
    linear-gradient(180deg, #ffffff, #f6efe4);
  color: #14345d;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(16, 39, 70, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body[data-page-section="all-data"] .tiny-icon-btn:hover,
body[data-page-section="all-data"] .tiny-btn.table-open-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(177, 124, 49, 0.28);
  box-shadow: 0 12px 24px rgba(16, 39, 70, 0.12);
  background: linear-gradient(180deg, #fffdf9, #f2e6d5);
}

body[data-page-section="all-data"] .tiny-icon-btn {
  min-width: 36px;
  width: 36px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}

body[data-page-section="all-data"] .tiny-icon-btn.plus {
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

body[data-page-section="all-data"] .tiny-icon-btn.people,
body[data-page-section="all-data"] .tiny-icon-btn.message-trigger {
  font-size: 15px;
}

body[data-page-section="all-data"] .tiny-icon-btn.more {
  cursor: pointer;
}

body[data-page-section="all-data"] .tiny-btn.table-open-btn {
  min-width: 96px;
  padding: 0 14px;
  font-weight: 700;
}

body[data-page-section="all-data"] .message-apps-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  width: 220px;
  border: 1px solid rgba(16, 39, 70, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 34, 57, 0.18);
  padding: 10px;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  z-index: 20;
}

body[data-page-section="all-data"] .message-apps-menu.open {
  display: grid;
}

body[data-page-section="all-data"] .message-app {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(16, 39, 70, 0.08);
  background: #fff;
  padding: 8px 10px;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

body[data-page-section="all-data"] .message-app:hover {
  transform: translateY(-1px);
  background: #f8fbff;
  border-color: rgba(16, 39, 70, 0.18);
}

body[data-page-section="all-data"] .message-app[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

body[data-page-section="all-data"] .message-app-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}

body[data-page-section="all-data"] .message-app-icon svg {
  display: block;
}

body[data-page-section="all-data"] .message-app-label {
  font-size: 12px;
  font-weight: 700;
}

body[data-page-section="all-data"] .message-app-sms .message-app-icon {
  color: #13315a;
  background: rgba(19, 49, 90, 0.08);
}

body[data-page-section="all-data"] .message-app-whatsapp .message-app-icon {
  color: #0d8f47;
  background: rgba(13, 143, 71, 0.1);
}

body[data-page-section="all-data"] .message-app-botim .message-app-icon {
  color: #1e90ff;
  background: rgba(30, 144, 255, 0.1);
}

body[data-page-section="all-data"] .message-app-imo .message-app-icon {
  color: #2478ff;
  background: rgba(36, 120, 255, 0.1);
}

body[data-page-section="all-data"] .message-app-telegram .message-app-icon {
  color: #229ed9;
  background: rgba(34, 158, 217, 0.1);
}

body[data-page-section="all-data"] .message-app-snapchat .message-app-icon {
  color: #181818;
  background: rgba(255, 230, 0, 0.7);
}

body[data-page-section="all-data"] .message-app-viber .message-app-icon {
  color: #7360f2;
  background: rgba(115, 96, 242, 0.12);
}
