/*
 * Zestia OS · Operational workspaces
 *
 * Final visual layer for the daily F1/F2/F5 surfaces.  It deliberately keeps
 * every existing id and data attribute intact: the goal is a clearer work
 * hierarchy, not a second implementation of orders, routes or telephony.
 */

:root {
  --ops-ink: #0b1220;
  --ops-muted: #667085;
  --ops-line: #d9e2ec;
  --ops-soft: #f6f8fb;
  --ops-blue: #2563eb;
  --ops-blue-soft: #eff6ff;
  --ops-green: #0f9f6e;
  --ops-orange: #f97316;
  --ops-danger: #dc2626;
  --ops-radius: 14px;
  --ops-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}

/* Incoming call --------------------------------------------------------- */

.call-pop {
  inset: 78px 18px auto auto;
  width: min(420px, calc(100vw - 36px));
  max-height: min(680px, calc(100dvh - 96px));
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-top: 4px solid var(--ops-blue);
  border-radius: 18px;
  box-shadow: -10px 24px 56px rgba(15, 23, 42, 0.28);
}

.call-pop[data-state="RINGING"] {
  border-top-color: var(--ops-orange);
}

.call-pop[data-state="IN_CALL"] {
  border-top-color: var(--ops-green);
}

.call-pop__header {
  align-items: center;
  padding: 14px 16px 13px;
  background:
    linear-gradient(115deg, rgba(37, 99, 235, 0.08), transparent 54%),
    #fff;
}

.call-pop__eyebrow {
  margin-bottom: 4px;
  font-size: 10px;
}

.call-pop__title {
  gap: 9px;
  font-size: 18px;
}

.call-pop__dismiss {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 11px;
}

.call-pop__meta {
  max-height: min(372px, calc(100dvh - 292px));
  padding: 15px 16px;
}

.call-pop__identity {
  margin-bottom: 3px;
  font-size: 22px;
  line-height: 1.1;
}

.call-pop__line,
.call-pop__subline,
.call-pop__note {
  font-size: 12px;
  line-height: 1.42;
}

.call-pop__section {
  margin-top: 11px;
  padding-top: 9px;
  font-size: 11px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.call-pop__draft,
.call-pop__match,
.call-pop__warning {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
}

.call-pop__actions {
  gap: 7px;
  padding: 12px 16px;
}

.call-pop__btn,
.call-pop__order-btn,
.call-pop__snooze {
  min-height: 42px;
  border-radius: 10px;
  font-size: 12px;
}

.call-pop__btn {
  border-color: var(--ops-blue);
  background: var(--ops-blue);
}

.call-pop__snooze {
  min-height: 36px;
  padding-block: 7px;
  color: var(--ops-muted);
}

.call-pop__footnote {
  padding: 0 16px 12px;
  font-size: 10px;
}

/* F1 · Commands --------------------------------------------------------- */

body.app-frame.page-dashboard #ops-center.is-active {
  gap: 7px;
  padding-top: 0;
}

body.app-frame.page-dashboard #ops-center.is-active .ops-toolbar {
  min-height: 42px;
  margin: 0;
  padding: 3px 4px;
}

body.app-frame.page-dashboard #ops-center.is-active .ops-search {
  min-height: 38px;
  border-color: var(--ops-line);
  border-radius: 10px;
  font-size: 13px;
}

body.app-frame.page-dashboard #ops-center.is-active .ops-board {
  gap: 8px;
}

body.app-frame.page-dashboard #ops-center.is-active .ops-column {
  border-color: var(--ops-line);
  border-radius: 12px;
  background: #f8fafc;
}

body.app-frame.page-dashboard #ops-center.is-active .ops-column__head {
  min-height: 42px;
  padding: 9px 10px;
  background: #fff;
}

body.app-frame.page-dashboard #ops-center.is-active .ops-column__head strong,
body.app-frame.page-dashboard #ops-center.is-active .ops-column__head h2,
body.app-frame.page-dashboard #ops-center.is-active .ops-column__head h3 {
  font-size: 12px;
  letter-spacing: 0.035em;
}

body.app-frame.page-dashboard #ops-center.is-active .ops-column__list {
  padding: 7px;
}

body.app-frame.page-dashboard #ops-center.is-active .order-card {
  border: 1px solid #dfe6ee !important;
  border-radius: 10px !important;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

body.app-frame.page-dashboard #ops-center.is-active .primary-actions {
  gap: 6px !important;
}

body.app-frame.page-dashboard #ops-center.is-active .primary-actions :where(button, a, select) {
  min-height: 32px !important;
  border-radius: 8px !important;
  font-size: 10px !important;
}

/* F2 · Distribution map ------------------------------------------------- */

body.app-frame.page-dashboard #delivery-work-map.is-active {
  padding: 6px;
  background: #eef2f6;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-delivery-layout--control {
  grid-template-columns: clamp(220px, 15vw, 270px) minmax(580px, 1fr) clamp(360px, 25vw, 440px);
  gap: 8px;
  height: calc(100dvh - 114px);
  min-height: 620px;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-rider-control-panel,
body.app-frame.page-dashboard #delivery-work-map.is-active .ops-route-panel--planner,
body.app-frame.page-dashboard #delivery-work-map.is-active .ops-map-panel--main {
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-map-panel--main {
  min-width: 0;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-map-panel__head {
  min-height: 54px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--ops-line);
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-map-panel__head h3 {
  margin: 0;
  color: var(--ops-ink);
  font-size: 18px;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-map-panel__head p {
  margin-top: 3px;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .map-toolbar {
  gap: 4px;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .map-toolbar .chip {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 11px;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-map-legend {
  padding: 5px 8px;
  background: #fff;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-map-legend span {
  background: var(--ops-soft);
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-map-road-status {
  min-height: 32px;
  padding: 4px 8px;
}

body.app-frame.page-dashboard #delivery-work-map.is-active #orders-map {
  min-height: 0;
  background: #e9eef4;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-route-panel--planner {
  padding: 9px;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-route-list--routes {
  order: 10;
  min-height: 180px;
  padding-right: 2px;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-route-card {
  padding: 9px;
  border-color: #dfe6ee;
  box-shadow: none;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-route-card.is-selected {
  border-color: var(--ops-orange);
  box-shadow: inset 4px 0 0 var(--ops-orange);
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-route-card__head strong {
  font-size: 13px;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-route-focus-button {
  min-height: 34px;
  border-radius: 8px;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-dispatch-capacity,
body.app-frame.page-dashboard #delivery-work-map.is-active .ops-pickup-rescue {
  border-color: var(--ops-line);
  background: #f8fafc;
}

body.app-frame.page-dashboard #delivery-work-map.is-active .ops-dispatch-capacity:not([open]),
body.app-frame.page-dashboard #delivery-work-map.is-active .ops-pickup-rescue:not([open]) {
  max-height: 54px;
}

/* F5 · Daily telephony -------------------------------------------------- */

body.app-frame .voice-console.telephony-console {
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: none;
  padding: 0;
}

body.app-frame .telephony-console .voice-console__rail {
  gap: 10px;
}

body.app-frame .telephony-console .voice-agent-card {
  min-height: 238px;
  padding: 18px;
  border-radius: var(--ops-radius);
}

body.app-frame .telephony-console .voice-agent-card__head {
  gap: 8px;
}

body.app-frame .telephony-console .voice-agent-card__head > div {
  min-width: 0;
}

body.app-frame .telephony-console .voice-agent-card__title {
  gap: 7px;
}

body.app-frame .telephony-console .voice-agent-card h1 {
  font-size: 27px;
  white-space: nowrap;
  word-break: normal;
}

body.app-frame .telephony-console .voice-agent-card__title span,
body.app-frame .telephony-console .voice-agent-card__head > .voice-status-pill {
  padding-inline: 8px;
  font-size: 10px;
}

body.app-frame .telephony-console .voice-waveform {
  height: 54px;
  margin: 24px 0 20px;
}

body.app-frame .telephony-console .voice-waveform span {
  width: 6px;
}

body.app-frame .telephony-console .voice-agent-card blockquote {
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.45;
}

body.app-frame .telephony-console .voice-card {
  padding: 14px;
}

body.app-frame .telephony-console .voice-performance-card__stats {
  gap: 10px;
  margin-top: 14px;
}

body.app-frame .telephony-console .voice-performance-card__stats strong {
  font-size: 25px;
}

body.app-frame .telephony-console .voice-resolution {
  margin-top: 14px;
}

body.app-frame .telephony-console .voice-console__main {
  gap: 9px;
}

body.app-frame .telephony-console .voice-monitor-card {
  min-height: calc(100dvh - 38px);
  padding: 16px;
  border-radius: var(--ops-radius);
  box-shadow: var(--ops-shadow);
}

body.app-frame .telephony-console .voice-monitor-card__head {
  align-items: center;
  padding-bottom: 12px;
}

body.app-frame .telephony-console .voice-monitor-card h1 {
  font-size: clamp(25px, 2.2vw, 34px);
}

body.app-frame .telephony-console .voice-monitor-card__head p {
  margin-top: 4px;
  font-size: 12px;
}

body.app-frame .telephony-console .voice-monitor-card__badges {
  align-items: center;
}

body.app-frame .telephony-console .voice-data-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 2px;
}

body.app-frame .telephony-console .voice-data-health__item {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  min-height: 68px;
  padding: 9px 11px;
  border: 1px solid var(--ops-line);
  border-radius: 9px;
  background: #f8fafc;
  box-shadow: inset 3px 0 0 #94a3b8;
}

body.app-frame .telephony-console .voice-data-health__item > span,
body.app-frame .telephony-console .voice-data-health__item > small {
  overflow: hidden;
  color: var(--ops-muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-frame .telephony-console .voice-data-health__item > span {
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.app-frame .telephony-console .voice-data-health__item > strong {
  overflow: hidden;
  color: var(--ops-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-frame .telephony-console .voice-data-health__item.is-live {
  border-color: #a7f3d0;
  background: #ecfdf5;
  box-shadow: inset 3px 0 0 #10b981;
}

body.app-frame .telephony-console .voice-data-health__item.is-delayed,
body.app-frame .telephony-console .voice-data-health__item.is-stale,
body.app-frame .telephony-console .voice-data-health__item.is-unknown {
  border-color: #fed7aa;
  background: #fff7ed;
  box-shadow: inset 3px 0 0 #f97316;
}

body.app-frame .telephony-console .voice-data-health__item.is-unavailable {
  border-color: #fecaca;
  background: #fff1f2;
  box-shadow: inset 3px 0 0 #e11d48;
}

body.app-frame .telephony-console .voice-config-link {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
}

body.app-frame .telephony-console .voice-kpi-strip {
  gap: 7px;
  margin: 12px 0;
}

body.app-frame .telephony-console .voice-kpi-strip .telephony-kpi {
  min-height: 70px;
  padding: 10px 11px;
  border-radius: 9px;
}

body.app-frame .telephony-console .voice-kpi-strip .telephony-kpi strong {
  font-size: 23px;
}

body.app-frame .telephony-console .voice-console-tools {
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

body.app-frame .telephony-console .voice-console-tools input {
  min-height: 40px;
}

body.app-frame .telephony-console .voice-live-conversations {
  margin: 12px 0 4px;
  padding: 11px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), transparent 48%),
    #f8fbff;
}

body.app-frame .telephony-console .voice-live-conversations__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

body.app-frame .telephony-console .voice-live-conversations__head > div {
  min-width: 0;
}

body.app-frame .telephony-console .voice-live-conversations__head h2 {
  margin: 1px 0 2px;
  font-size: 17px;
}

body.app-frame .telephony-console .voice-live-conversations__head p {
  margin: 0;
  color: var(--ops-muted);
  font-size: 10px;
  font-weight: 700;
}

body.app-frame .telephony-console .voice-live-conversations__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(390px, 100%), 1fr));
  gap: 8px;
}

body.app-frame .telephony-console .voice-live-call {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.08);
}

body.app-frame .telephony-console .voice-live-call.is-handoff {
  border-color: #fdba74;
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.1);
}

body.app-frame .telephony-console .voice-live-call.is-stale {
  border-color: #cbd5e1;
  background: #f8fafc;
  box-shadow: none;
}

body.app-frame .telephony-console .voice-live-call__head,
body.app-frame .telephony-console .voice-live-call > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
}

body.app-frame .telephony-console .voice-live-call__head > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

body.app-frame .telephony-console .voice-live-call__head strong {
  overflow: hidden;
  color: var(--ops-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-frame .telephony-console .voice-live-call__head span:not(.voice-live-speaker) {
  overflow: hidden;
  color: var(--ops-muted);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-frame .telephony-console .voice-live-speaker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475467;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

body.app-frame .telephony-console .voice-live-speaker::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

body.app-frame .telephony-console .voice-live-speaker.is-assistant {
  background: #dbeafe;
  color: #1d4ed8;
}

body.app-frame .telephony-console .voice-live-speaker.is-customer {
  background: #dcfce7;
  color: #047857;
}

body.app-frame .telephony-console .voice-live-call:not(.is-stale) .voice-live-speaker:is(.is-assistant, .is-customer)::before {
  animation: voice-live-pulse 1.5s ease-in-out infinite;
}

body.app-frame .telephony-console .voice-live-call__latest {
  margin: 0 10px 9px;
  padding: 10px 11px;
  border-left: 3px solid var(--ops-blue);
  border-radius: 0 8px 8px 0;
  background: #eff6ff;
}

body.app-frame .telephony-console .voice-live-call__latest > span {
  display: block;
  margin-bottom: 3px;
  color: #1d4ed8;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

body.app-frame .telephony-console .voice-live-call__latest p {
  margin: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.app-frame .telephony-console .voice-live-call__detail {
  margin: 0 10px 9px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: #fff;
}

body.app-frame .telephony-console .voice-live-call__detail > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 7px 9px;
  cursor: pointer;
  list-style: none;
  color: var(--ops-ink);
  font-size: 11px;
  font-weight: 900;
}

body.app-frame .telephony-console .voice-live-call__detail > summary::-webkit-details-marker {
  display: none;
}

body.app-frame .telephony-console .voice-live-call__detail > summary::after {
  content: "+";
}

body.app-frame .telephony-console .voice-live-call__detail[open] > summary::after {
  content: "−";
}

body.app-frame .telephony-console .voice-live-call__detail > summary small {
  margin-left: auto;
  color: var(--ops-muted);
  font-size: 9px;
}

body.app-frame .telephony-console .voice-live-transcript {
  display: grid;
  gap: 6px;
  max-height: 240px;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--ops-line);
  list-style: none;
  scrollbar-gutter: stable;
}

body.app-frame .telephony-console .voice-live-transcript > li {
  max-width: 92%;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--ops-ink);
}

body.app-frame .telephony-console .voice-live-transcript > li.is-assistant {
  justify-self: start;
  border-bottom-left-radius: 2px;
  background: #dbeafe;
}

body.app-frame .telephony-console .voice-live-transcript > li.is-customer {
  justify-self: end;
  border-bottom-right-radius: 2px;
  background: #dcfce7;
}

body.app-frame .telephony-console .voice-live-transcript > li > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.app-frame .telephony-console .voice-live-transcript strong,
body.app-frame .telephony-console .voice-live-transcript time {
  font-size: 9px;
  font-weight: 900;
}

body.app-frame .telephony-console .voice-live-transcript time {
  color: var(--ops-muted);
}

body.app-frame .telephony-console .voice-live-transcript p {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.app-frame .telephony-console .voice-live-transcript__empty {
  max-width: none !important;
  color: var(--ops-muted) !important;
  text-align: center;
}

body.app-frame .telephony-console .voice-live-call > footer {
  align-items: center;
  padding-top: 0;
  color: var(--ops-muted);
  font-size: 9px;
  font-weight: 700;
}

body.app-frame .telephony-console .voice-live-call > footer > span {
  min-width: 0;
}

body.app-frame .telephony-console .voice-live-call__action {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 9px;
  font-size: 10px;
}

@keyframes voice-live-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

body.app-frame .telephony-console .voice-monitor-card__subhead {
  margin: 11px 0 7px;
}

body.app-frame .telephony-console .voice-monitor-card__subhead--queue {
  margin-top: 14px;
}

body.app-frame .telephony-console .voice-monitor-card h2 {
  font-size: 18px;
}

body.app-frame .telephony-console .voice-line-list {
  gap: 7px;
}

body.app-frame .telephony-console .voice-line-list .telephony-row {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 9px;
}

body.app-frame .telephony-console .voice-line-list .telephony-row strong {
  font-size: 14px;
}

body.app-frame .telephony-console .voice-line-list .telephony-row__meta {
  font-size: 11px;
}

body.app-frame .telephony-console .voice-line-row__order {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
}

body.app-frame .telephony-console .voice-line-row__order strong {
  overflow: hidden;
  font-size: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-frame .telephony-console .voice-call-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: 5px;
  margin-top: 7px;
}

body.app-frame .telephony-console .voice-call-timeline > span {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

body.app-frame .telephony-console .voice-call-timeline small,
body.app-frame .telephony-console .voice-call-timeline strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-frame .telephony-console .voice-call-timeline small {
  color: var(--ops-muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body.app-frame .telephony-console .voice-call-timeline strong {
  color: var(--ops-ink);
  font-size: 10px;
}

body.app-frame .telephony-console .voice-call-order {
  display: inline-flex;
  margin-top: 6px;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

body.app-frame .telephony-console .voice-status-pill.is-review {
  border: 1px solid rgba(251, 191, 36, .45);
  background: rgba(245, 158, 11, .18);
  color: #fde68a;
}

body.app-frame .telephony-console .voice-status-pill.is-offline {
  border: 1px solid rgba(251, 113, 133, .45);
  background: rgba(225, 29, 72, .2);
  color: #fecdd3;
}

.telephony-console .voice-secondary-panel {
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
}

.telephony-console .voice-secondary-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  color: var(--ops-ink);
}

.telephony-console .voice-secondary-panel > summary::-webkit-details-marker {
  display: none;
}

.telephony-console .voice-secondary-panel > summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background: #edf1f6;
  color: #344054;
  font-size: 18px;
  font-weight: 900;
}

.telephony-console .voice-secondary-panel[open] > summary::after {
  content: "−";
}

.telephony-console .voice-secondary-panel > summary > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}

.telephony-console .voice-secondary-panel > summary strong {
  font-size: 14px;
}

.telephony-console .voice-secondary-panel > summary small {
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 700;
}

.telephony-console .voice-secondary-panel__count,
.telephony-console .voice-secondary-panel__status {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475467;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.telephony-console .voice-secondary-panel__status.is-danger {
  background: #fff1f2;
  color: var(--ops-danger);
}

.telephony-console .voice-secondary-panel > .voice-history-card,
.telephony-console .voice-secondary-panel > .voice-governance-card,
.telephony-console .voice-secondary-panel > .voice-ops-grid {
  margin: 0 10px 10px;
}

body.app-frame .telephony-console .voice-secondary-panel .voice-history-card,
.telephony-console .voice-secondary-panel .voice-governance-card {
  border-radius: 10px;
  box-shadow: none;
}

.telephony-console .voice-secondary-panel > .voice-ops-grid {
  padding-top: 10px;
  border-top: 1px solid var(--ops-line);
}

@media (max-width: 1500px) {
  body.app-frame.page-dashboard #delivery-work-map.is-active .ops-delivery-layout--control {
    grid-template-columns: minmax(210px, 240px) minmax(520px, 1fr) minmax(340px, 390px);
  }

  body.app-frame .telephony-console .voice-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.app-frame .telephony-console .voice-data-health {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  body.app-frame.page-dashboard #delivery-work-map.is-active .ops-delivery-layout--control {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.app-frame.page-dashboard #delivery-work-map.is-active .ops-map-panel--main {
    order: 1;
  }

  body.app-frame.page-dashboard #delivery-work-map.is-active .ops-route-panel--planner {
    order: 2;
  }

  body.app-frame.page-dashboard #delivery-work-map.is-active .ops-rider-control-panel {
    order: 3;
  }

  body.app-frame.page-dashboard #delivery-work-map.is-active #orders-map {
    min-height: 58dvh;
  }

  body.app-frame .voice-console.telephony-console {
    grid-template-columns: 1fr;
  }

  body.app-frame .telephony-console .voice-monitor-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .call-pop {
    inset: auto 8px 8px;
    width: auto;
    max-height: min(86dvh, 680px);
  }

  body.app-frame .telephony-console .voice-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-frame .telephony-console .voice-data-health {
    grid-template-columns: 1fr;
  }

  body.app-frame .telephony-console .voice-call-timeline {
    grid-template-columns: 1fr;
  }

  body.app-frame .telephony-console .voice-live-conversations__head,
  body.app-frame .telephony-console .voice-live-call__head,
  body.app-frame .telephony-console .voice-live-call > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  body.app-frame .telephony-console .voice-live-speaker,
  body.app-frame .telephony-console .voice-live-call__action {
    width: 100%;
    justify-content: center;
  }

  .telephony-console .voice-secondary-panel > summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .call-pop,
  .telephony-console .voice-secondary-panel {
    scroll-behavior: auto;
  }

  body.app-frame .telephony-console .voice-live-speaker::before {
    animation: none !important;
  }
}
