/* =====================================================================
   Etisalna identity for dashboard.etisalna.sa (built React app; no source on the server):
   one stylesheet loaded after the app's own CSS. Same look as etisalna.sa and portal.etisalna.sa:
   deep navy, blue → violet → cyan gradient, soft large radii, navy-tinted shadows, Plex Arabic.
   ===================================================================== */
@import url("/brand/fonts.css");

:root {
  --background: 228 100% 98.2%; --foreground: 231 56% 13%;
  --card: 0 0% 100%; --card-foreground: 231 56% 13%; --popover: 0 0% 100%; --popover-foreground: 231 56% 13%;
  --primary: 223 100% 59%; --primary-foreground: 0 0% 100%;
  --secondary: 228 100% 97%; --secondary-foreground: 226 70% 46%;
  --muted: 228 100% 97%; --muted-foreground: 229 19% 57%;
  --accent: 228 100% 97%; --accent-foreground: 226 70% 46%;
  --border: 229 45% 93%; --input: 229 40% 88%; --ring: 223 100% 59%; --radius: .85rem;
  --sidebar-background: 233 71% 10%; --sidebar-foreground: 232 57% 86%; --sidebar-primary: 0 0% 100%; --sidebar-primary-foreground: 233 71% 10%;
  --sidebar-accent: 232 45% 18%; --sidebar-accent-foreground: 0 0% 100%; --sidebar-border: 232 45% 19%; --sidebar-ring: 223 100% 59%;
  --e-navy: #070b2a; --e-navy-2: #0d1440;
  --e-grad: linear-gradient(120deg, #2f6bff 0%, #7c4dff 48%, #16c6ee 100%);
  --e-grad-soft: linear-gradient(135deg, rgba(47,107,255,.10), rgba(124,77,255,.10) 50%, rgba(22,198,238,.10));
  --e-sh: 0 1px 2px rgba(15,21,53,.04), 0 10px 30px -18px rgba(15,21,53,.22);
  --e-sh-lg: 0 30px 80px -30px rgba(20,30,90,.45);
  --e-ease: cubic-bezier(.2,.8,.2,1);
}
html, body, button, input, select, textarea { font-family: "Plex Arabic", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif !important; }
body { color: #0f1535; }

/* ---------- top bar: the site's navy header, light logo ---------- */
header.h-16 { background: radial-gradient(60% 140% at 90% 0%, rgba(47,107,255,.35), transparent 70%), linear-gradient(90deg, var(--e-navy), var(--e-navy-2)) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important; box-shadow: 0 10px 30px -20px rgba(7,11,42,.8) !important; color: #c9cdf0; }
header.h-16 button { color: #c9cdf0; }
header.h-16 button:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
header.h-16 button[aria-label="Toggle sidebar"] span.text-sm { font-size: 0 !important; display: inline-block; width: 104px; height: 34px;
  background: url("/brand/logo-light.png") no-repeat center / contain; }
header.h-16 .border, header.h-16 button.border { border-color: rgba(255,255,255,.16) !important; background: rgba(255,255,255,.06) !important; color: #e8ebff !important; }
header.h-16 .ring-border { --tw-ring-color: rgba(255,255,255,.25) !important; }

/* ---------- page ---------- */
.h-screen.bg-gray-50 { background: #f6f8ff !important; }
main.flex-1 { background: radial-gradient(60% 260px at 100% 0%, rgba(47,107,255,.08), transparent 70%), radial-gradient(50% 240px at 0% 0%, rgba(124,77,255,.06), transparent 70%); }
main h2.text-blue-600 { background: var(--e-grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; letter-spacing: -.01em; }
main .space-y-6 > * { animation: e-fade .45s var(--e-ease) both; }
main .space-y-6 > *:nth-child(2) { animation-delay: .04s; } main .space-y-6 > *:nth-child(3) { animation-delay: .08s; } main .space-y-6 > *:nth-child(4) { animation-delay: .12s; }
@keyframes e-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- sidebar: navy with a glow, gradient active item ---------- */
.bg-sidebar { background: radial-gradient(120% 50% at 100% 0%, rgba(59,77,255,.28), transparent 60%),
  radial-gradient(90% 40% at 0% 100%, rgba(138,61,255,.22), transparent 60%), linear-gradient(180deg, var(--e-navy), var(--e-navy-2)) !important;
  border-color: transparent !important; }
.bg-sidebar h3 { color: #8088b8 !important; }
.bg-sidebar a { border-radius: 12px !important; height: 2.4rem !important; transition: background .2s var(--e-ease), color .2s; }
.bg-sidebar a.bg-sidebar-accent { background: var(--e-grad) !important; color: #fff !important; box-shadow: 0 10px 22px -12px rgba(76,80,255,.9); }
.bg-sidebar a:not(.bg-sidebar-accent):hover { background: rgba(255,255,255,.07) !important; color: #fff !important; }
.bg-sidebar .border-t { border-color: rgba(255,255,255,.08) !important; color: #c9cdf0; }

/* ---------- cards ---------- */
.rounded-lg.border.bg-card { border-radius: 20px !important; border-color: #e6e9f5 !important; box-shadow: var(--e-sh) !important; transition: transform .25s var(--e-ease), box-shadow .25s; }
.grid > .rounded-lg.border.bg-card { position: relative; overflow: hidden; }
.grid > .rounded-lg.border.bg-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--e-grad); opacity: .85; }
.grid > .rounded-lg.border.bg-card:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -24px rgba(20,30,90,.45) !important; }
table thead tr, thead th { background: #f8f9ff; }
.text-blue-600 { color: #2f6bff; }

/* ---------- controls ---------- */
.bg-primary { background: var(--e-grad) !important; background-size: 160% 160% !important; color: #fff !important; border-radius: 12px !important;
  transition: transform .2s var(--e-ease), box-shadow .2s, background-position .35s !important; }
.bg-primary:not(:disabled):hover { background-position: 100% 0 !important; transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(76,80,255,.65); }
input.border-input, textarea.border-input, button[role="combobox"].border-input { border-radius: 12px !important; transition: border-color .15s, box-shadow .15s; }
input.border-input:focus, textarea.border-input:focus { border-color: #2f6bff !important; box-shadow: 0 0 0 4px rgba(47,107,255,.14) !important; --tw-ring-shadow: 0 0 #0000 !important; }
[role="dialog"].bg-background, [role="alertdialog"] { border-radius: 22px !important; box-shadow: var(--e-sh-lg) !important; }
li[role="status"], ol > li.group { border-radius: 16px !important; }

/* ---------- sign-in: the site's hero ---------- */
.min-h-screen.bg-slate-50 { position: relative; background: radial-gradient(60% 50% at 85% 10%, rgba(47,107,255,.45), transparent 70%),
  radial-gradient(50% 45% at 10% 90%, rgba(124,77,255,.40), transparent 70%), radial-gradient(40% 30% at 60% 60%, rgba(22,198,238,.18), transparent 70%),
  linear-gradient(160deg, var(--e-navy), var(--e-navy-2)) !important; }
.min-h-screen.bg-slate-50::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 85%); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 85%); }
.min-h-screen.bg-slate-50 > .rounded-lg.bg-card { position: relative; z-index: 1; border-radius: 28px !important; border: 1px solid rgba(255,255,255,.6) !important;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6) !important; animation: e-rise .6s var(--e-ease) both; overflow: hidden; }
.min-h-screen.bg-slate-50 > .rounded-lg.bg-card::before { content: ""; display: block; height: 4px; background: var(--e-grad); }
.min-h-screen.bg-slate-50 > .rounded-lg.bg-card > div:first-child { text-align: center; align-items: center; padding-top: 1.75rem; }
.min-h-screen.bg-slate-50 > .rounded-lg.bg-card > div:first-child::before { content: ""; display: block; width: 150px; height: 54px; margin: 0 auto .9rem;
  background: url("/brand/logo-color.png") no-repeat center / contain; }
.min-h-screen.bg-slate-50 > .absolute button { background: rgba(255,255,255,.08) !important; color: #e8ebff !important; border-color: rgba(255,255,255,.18) !important; }
@keyframes e-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main .space-y-6 > *, .min-h-screen.bg-slate-50 > .rounded-lg.bg-card { animation: none; } }

/* ---------- home: "Today, live" (brand/etisalna-home.js) ---------- */
#e-live { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed #dfe4f5; animation: e-fade .45s var(--e-ease) both; }
.e-live-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.e-live-head h3 { font-size: 1.15rem; font-weight: 700; color: #0f1535; display: flex; align-items: center; gap: .55rem; }
.e-live-head small { color: #7a82a6; font-size: .78rem; }
.e-pulse { width: .6rem; height: .6rem; border-radius: 99px; background: #16c784; box-shadow: 0 0 0 0 rgba(22,199,132,.6); animation: e-pulse 1.8s infinite; }
@keyframes e-pulse { 0% { box-shadow: 0 0 0 0 rgba(22,199,132,.55); } 70% { box-shadow: 0 0 0 10px rgba(22,199,132,0); } 100% { box-shadow: 0 0 0 0 rgba(22,199,132,0); } }
.e-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; }
@media (max-width: 1100px) { .e-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .e-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.e-kpi { position: relative; overflow: hidden; padding: 1rem 1.1rem; border-radius: 18px; background: #fff; border: 1px solid #e6e9f5; box-shadow: var(--e-sh); transition: transform .25s var(--e-ease), box-shadow .25s; }
.e-kpi:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -24px rgba(20,30,90,.45); }
.e-kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--e-grad); }
.e-kpi-miss::before { background: linear-gradient(90deg, #ffb020, #ff4d6a); }
.e-kpi-ok::before { background: linear-gradient(90deg, #16c784, #16c6ee); }
.e-kpi-k { color: #7a82a6; font-size: .8rem; font-weight: 600; }
.e-kpi-v { font-size: 1.85rem; font-weight: 700; color: #0f1535; line-height: 1.15; margin-top: .25rem; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.e-kpi-s { color: #7a82a6; font-size: .75rem; margin-top: .15rem; min-height: 1em; }
.e-kpi-dot { position: absolute; inset-inline-end: 1rem; top: 1rem; width: .5rem; height: .5rem; border-radius: 99px; background: #2f6bff; opacity: .5; }
.e-kpi-miss .e-kpi-dot { background: #ff4d6a; } .e-kpi-ok .e-kpi-dot { background: #16c784; } .e-kpi-pulse .e-kpi-dot { background: #16c784; animation: e-pulse 1.8s infinite; opacity: 1; }
.e-live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: .85rem; }
@media (max-width: 1100px) { .e-live-grid { grid-template-columns: 1fr; } }
.e-card { background: #fff; border: 1px solid #e6e9f5; border-radius: 20px; box-shadow: var(--e-sh); padding: 1rem 1.1rem; min-width: 0; }
.e-span2 { grid-column: span 2; } @media (max-width: 1100px) { .e-span2 { grid-column: auto; } }
.e-card-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-weight: 700; color: #0f1535; font-size: .95rem; margin-bottom: .6rem; }
.e-legend { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; font-size: .75rem; color: #7a82a6; }
.e-legend i { width: .65rem; height: .65rem; border-radius: 3px; display: inline-block; }
.e-l-a { background: linear-gradient(180deg, #16c6ee, #2f6bff); } .e-l-m { background: #ff7a93; margin-inline-start: .5rem; }
.e-chart { width: 100%; height: auto; display: block; }
.e-chart .e-grid { stroke: #eef1fb; stroke-width: 1; }
.e-chart .e-axis { fill: #9aa1c4; font-size: 11px; text-anchor: middle; font-family: inherit; }
.e-chart .e-missed { fill: #ff7a93; }
.e-chart .e-bar-g:hover rect { filter: brightness(1.08); }
.e-donut { display: flex; align-items: center; gap: 1rem; }
.e-donut svg { width: 140px; height: 140px; flex: none; }
.e-donut circle { transition: stroke-dasharray .6s var(--e-ease); }
.e-donut-v { font-size: 26px; font-weight: 700; fill: #0f1535; text-anchor: middle; font-family: inherit; }
.e-donut-l { font-size: 11px; fill: #7a82a6; text-anchor: middle; font-family: inherit; }
.e-donut ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; flex: 1; font-size: .85rem; color: #4a5275; }
.e-donut li { display: flex; align-items: center; gap: .45rem; } .e-donut li b { margin-inline-start: auto; color: #0f1535; }
.e-donut li i { width: .7rem; height: .7rem; border-radius: 99px; }
.e-top, .e-calls { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.e-top li { display: grid; grid-template-columns: 4rem 1fr 2.5rem; align-items: center; gap: .6rem; font-size: .85rem; }
.e-ext { font-weight: 700; color: #0f1535; direction: ltr; text-align: start; }
.e-track { height: 8px; border-radius: 99px; background: #eef2ff; overflow: hidden; } .e-track i { display: block; height: 100%; border-radius: 99px; background: var(--e-grad); }
.e-top b { text-align: end; color: #0f1535; }
.e-calls li { display: grid; grid-template-columns: 3.2rem 1.6rem 1fr auto; align-items: center; gap: .55rem; padding: .45rem .55rem; border-radius: 12px; background: #f8f9ff; font-size: .84rem; }
.e-time { color: #7a82a6; font-variant-numeric: tabular-nums; }
.e-dir { width: 1.6rem; height: 1.6rem; border-radius: 99px; display: grid; place-items: center; font-weight: 700; }
.e-dir-in { background: #eef2ff; color: #2f6bff; } .e-dir-out { background: #f3efff; color: #7c4dff; } .e-dir-internal { background: #e7f9fd; color: #0aa5c8; }
.e-num { color: #0f1535; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-badge { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; }
.e-ok { background: #e7f8f1; color: #0f9d6b; } .e-no { background: #ffeef1; color: #e5394f; }
.e-empty { color: #7a82a6; background: transparent !important; display: block !important; }

/* ---------- the app's own charts in the brand colours ---------- */
.recharts-cartesian-grid line { stroke: #eef1fb !important; }
.recharts-cartesian-axis-tick text { fill: #9aa1c4 !important; font-size: 11px; }
.recharts-line .recharts-line-curve, .recharts-area .recharts-area-curve { stroke: #2f6bff !important; stroke-width: 2.5px !important; }
.recharts-area .recharts-area-area { fill: rgba(47,107,255,.12) !important; }
.recharts-bar-rectangle path { fill: #2f6bff; }
.recharts-default-tooltip { border-radius: 12px !important; border: 1px solid #e6e9f5 !important; box-shadow: var(--e-sh-lg) !important; }
.recharts-dot, .recharts-active-dot circle { stroke: #2f6bff !important; }

/* ---------- Contacts & Tickets (brand/etisalna-crm.js) ---------- */
.e-crm-badge { margin-inline-start: auto; min-width: 1.35rem; height: 1.25rem; padding: 0 .4rem; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; background: rgba(47,107,255,.18); color: #cfe0ff; }
.e-crm-badge .e-late { color: #fff; font-weight: 700; }
.e-crm-badge:has(.e-late) { background: #ff4d6a; }
main.e-crm-on > :not(#e-crm-host) { display: none !important; }
#e-crm-host { display: none; position: relative; height: 100%; min-height: calc(100vh - 6rem); }
main.e-crm-on > #e-crm-host { display: block; }
#e-crm-host iframe { width: 100%; height: 100%; min-height: calc(100vh - 6rem); border: 0; background: transparent; display: block; }
#e-crm-host .e-crm-wait { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; color: #7a82a6; font-size: .9rem; }
#e-crm-host.e-loading .e-crm-wait { display: flex; }
#e-crm-host.e-loading iframe { opacity: 0; }
#e-crm-home { margin-top: .5rem; }
#e-crm-home .e-live-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; flex-wrap: wrap; }
#e-crm-home .e-live-head h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 700; color: #0f1535; margin: 0; }
.e-crm-ico { display: inline-flex; width: 1.9rem; height: 1.9rem; border-radius: 10px; align-items: center; justify-content: center; background: #eef2ff; color: #2f6bff; }
.e-crm-ico svg { width: 1.05rem; height: 1.05rem; }
.e-crm-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.e-crm-btn { display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .9rem; border-radius: 12px; font-size: .82rem; font-weight: 600; color: #fff; background: var(--e-grad); box-shadow: var(--e-sh); }
.e-crm-btn.e-ghost { background: #fff; color: #0f1535; border: 1px solid #e6e9f5; }
#e-crm-home a.e-kpi { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.e-span3 { grid-column: 1 / -1; }
.e-l-r { background: #16c784 !important; }
.e-chart .e-res { fill: #16c784; }
.e-prio li { grid-template-columns: 4.5rem 1fr 2.5rem !important; }
.e-p-urgent i { background: linear-gradient(90deg, #ff4d6a, #ff7a59) !important; } .e-p-high i { background: linear-gradient(90deg, #ffb020, #ff8a3d) !important; }
.e-p-normal i { background: var(--e-grad) !important; } .e-p-low i { background: #9aa3c7 !important; }
.e-more { font-size: .8rem; font-weight: 600; color: #2f6bff; }
.e-tlist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.e-tlist a { display: grid; grid-template-columns: 3rem 1fr auto 6.5rem; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 14px; background: #f8f9ff; color: inherit; transition: background .2s, transform .2s var(--e-ease); }
.e-tlist a:hover { background: #eef2ff; transform: translateY(-1px); }
.e-tno { font-weight: 700; color: #7a82a6; font-variant-numeric: tabular-nums; }
.e-tsub { min-width: 0; display: flex; flex-direction: column; } .e-tsub b { font-weight: 600; color: #0f1535; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-tsub small { color: #7a82a6; font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-pill { font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; background: #eef2ff; color: #2f6bff; }
.e-pill.e-p-urgent { background: #ffe8ec; color: #e11d48; } .e-pill.e-p-high { background: #fff3df; color: #c2410c; } .e-pill.e-p-low { background: #f1f3f9; color: #6b7394; }
.e-due { font-size: .76rem; color: #7a82a6; text-align: end; } .e-due.e-late { color: #e11d48; font-weight: 700; }
@media (max-width: 640px) { .e-tlist a { grid-template-columns: 2.6rem 1fr auto; } .e-due { display: none; } }

/* ---------- Company Admin screens (brand/etisalna-company.js) ---------- */
main.e-co-on > :not(#e-co-host) { display: none !important; }
#e-co-host { display: none; position: relative; height: 100%; min-height: calc(100vh - 6rem); }
main.e-co-on > #e-co-host { display: block; }
#e-co-host iframe { width: 100%; height: 100%; min-height: calc(100vh - 6rem); border: 0; background: transparent; display: block; }
#e-co-host .e-crm-wait { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; color: #7a82a6; font-size: .9rem; }
#e-co-host.e-loading .e-crm-wait { display: flex; }
#e-co-host.e-loading iframe { opacity: 0; }

/* ---------- collapsible sidebar groups (brand/etisalna-sidebar.js) ---------- */
h3.e-grp-h { display: flex; align-items: center; justify-content: space-between; gap: .4rem; cursor: pointer; border-radius: 8px; padding-top: .3rem; padding-bottom: .3rem; transition: color .15s, background .15s; }
h3.e-grp-h:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.05); }
h3.e-grp-h:focus-visible { outline: 2px solid rgba(47,107,255,.6); outline-offset: 1px; }
.e-grp-chev { flex: none; opacity: .7; transition: transform .2s ease; }
section.e-grp-closed .e-grp-chev { transform: rotate(-90deg); }
[dir="rtl"] section.e-grp-closed .e-grp-chev { transform: rotate(90deg); }
section.e-grp-closed > div { display: none !important; }
section.e-grp-closed > h3 { margin-bottom: 0 !important; }
section.e-grp-closed { margin-top: .6rem !important; }

/* ---------- click to call notice (brand/etisalna-crm.js) ---------- */
.e-dial-toast { position: fixed; z-index: 9999; inset-inline-end: 1.25rem; bottom: 1.25rem; display: flex; align-items: flex-start; gap: .75rem; max-width: 380px;
  padding: .9rem 1rem; border-radius: 16px; background: #fff; border: 1px solid #e6e9f5; box-shadow: 0 22px 48px -20px rgba(15,21,53,.45); font-size: .88rem; color: #0f1535; animation: e-toast-in .25s ease; }
.e-dial-toast b { display: block; font-weight: 700; } .e-dial-toast small { display: block; color: #6b7394; margin-top: .15rem; }
.e-dial-toast button { margin-inline-start: auto; background: none; border: 0; font-size: 1.2rem; line-height: 1; color: #9aa3c7; cursor: pointer; }
.e-dial-ico { flex: none; width: 2rem; height: 2rem; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: #e7f9ef; color: #16a34a; }
.e-dial-toast.e-err .e-dial-ico { background: #ffe8ec; color: #e11d48; } .e-dial-toast.e-wait .e-dial-ico { background: #eef2ff; color: #2f6bff; animation: e-pulse 1.4s infinite; }
@keyframes e-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- incoming-call popup (brand/etisalna-crm.js) ---------- */
#e-ring { position: fixed; z-index: 10000; top: 5rem; inset-inline-end: 1.25rem; width: 340px; max-width: calc(100vw - 2rem); padding: 1rem 1.1rem;
  border-radius: 18px; background: #fff; border: 1px solid #e6e9f5; box-shadow: 0 28px 60px -22px rgba(15,21,53,.55); color: #0f1535; font-size: .88rem;
  opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
#e-ring.e-show { opacity: 1; transform: none; pointer-events: auto; }
#e-ring::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, #16c784, #16c6ee); }
#e-ring.e-answered::before { background: var(--e-grad, linear-gradient(90deg, #2f6bff, #7c4dff)); }
.e-ring-head { display: flex; gap: .75rem; align-items: flex-start; }
.e-ring-head small { display: block; color: #16a34a; font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
#e-ring.e-answered .e-ring-head small { color: #2f6bff; }
.e-ring-head b { display: block; font-size: 1.05rem; font-weight: 700; margin-top: .1rem; word-break: break-word; }
.e-ring-head em { display: block; font-style: normal; color: #6b7394; font-size: .8rem; margin-top: .1rem; }
.e-ring-ico { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
  background: #e7f9ef; color: #16a34a; animation: e-ring-pulse 1.2s ease-in-out infinite; }
.e-ring-ico.e-on { background: #eef2ff; color: #2f6bff; animation: none; }
@keyframes e-ring-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(22,199,132,.45); } 50% { box-shadow: 0 0 0 9px rgba(22,199,132,0); } }
.e-ring-info { list-style: none; padding: .6rem .7rem; margin: .8rem 0 0; display: grid; gap: .35rem; background: #f8f9ff; border-radius: 12px; }
.e-ring-info li { display: flex; justify-content: space-between; gap: .75rem; font-size: .8rem; } .e-ring-info span { color: #6b7394; } .e-ring-info b { font-weight: 600; text-align: end; }
.e-ring-warn { color: #c2410c; }
.e-ring-btns { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.e-ring-btn { border: 1px solid #e6e9f5; background: #fff; color: #0f1535; border-radius: 10px; padding: .42rem .8rem; font-size: .8rem; font-weight: 600; cursor: pointer; }
.e-ring-btn.e-primary { border: 0; color: #fff; background: var(--e-grad, linear-gradient(90deg, #2f6bff, #7c4dff)); }
.e-ring-btn.e-ghost { margin-inline-start: auto; color: #6b7394; }
@media (prefers-reduced-motion: reduce) { #e-ring, .e-ring-ico { transition: none; animation: none; } }

/* incoming-call popup: Answer / Decline */
.e-ring-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .7rem 0 .2rem; }
.e-ring-ans, .e-ring-dec { border: 0; border-radius: 12px; padding: .6rem .5rem; font-weight: 700; font-size: .9rem; color: #fff; cursor: pointer; transition: filter .15s, transform .15s; }
.e-ring-ans { background: linear-gradient(135deg, #16c784, #0ea86d); } .e-ring-dec { background: linear-gradient(135deg, #ff4d6a, #e11d48); }
.e-ring-ans:hover, .e-ring-dec:hover { filter: brightness(1.07); transform: translateY(-1px); } .e-ring-dec:disabled { opacity: .6; cursor: wait; }
