@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700&display=swap');

/* =========================================================
   VICIdial Agent — light modern card skin (attachment 2 look)
   Keeps ALL original elements/GIFs/handlers — restyles appearance.
   ========================================================= */

:root {
  --vd-page: #eef1f5;
  --vd-card: #ffffff;
  --vd-header: #1a1d23;
  --vd-border: #e5e7eb;
  --vd-text: #1f2937;
  --vd-muted: #6b7280;
  --vd-orange: #f59e0b;
  --vd-orange-hover: #d97706;
  --vd-ready: #10b981;
  --vd-live: #0d9488;
  --vd-dead: #ef4444;
  --vd-dead-soft: #fef2f2;
  --vd-link: #2563eb;
  --vd-sidebar: #f9fafb;
  --vd-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(15,23,42,.06);
  --vd-radius: 10px;
  --vd-btn: 42px;
}

html, body {
  background: var(--vd-page) !important;
  background-color: var(--vd-page) !important;
  color: var(--vd-text) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh; 
  max-width: 100%;
}

/* Neutralize legacy inline bgcolor noise */
table[bgcolor],
td[bgcolor],
tr[bgcolor],
span[style*="background-color"] {
  background-color: transparent !important;
  background: transparent !important;
}

/* ========== HEADER ========== */
#Header,
#Header > table,
#Header table {
  background: var(--vd-header) !important;
  background-color: var(--vd-header) !important;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22);
  color: #f3f4f6 !important;
}

#Header font,
#Header .body_text,
#Header .body_tiny,
#Header .body_small {
  color: #e5e7eb !important;
  font-family: 'Inter', sans-serif !important;
}

#Header a { color: #f9fafb !important; font-weight: 600; }
#Header a:hover { color: #ffffff !important; text-decoration: none !important; }

/* ========== MAIN CARD ========== */
#MainPanel {
  top: 54px !important;
  left: 12px !important;
}

#MainPanel > table,
#MainTable,
#MaiNfooter {
  background: var(--vd-card) !important;
  background-color: var(--vd-card) !important;
  border: 1px solid var(--vd-border) !important;
  border-radius: var(--vd-radius) !important;
  box-shadow: var(--vd-shadow);
  color: var(--vd-text) !important;
}

#MainTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
}

#MaiNfooter {
  margin-top: 10px;
  border-radius: 8px !important;
}
#MaiNfooter font { color: var(--vd-muted) !important; }

/* Typography */
.body_text, .body_small, .body_tiny, .body_small_bold,
.sd_text, .sh_text, .sb_text, .sk_text, .skb_text,
.queue_text, .cust_form, .cust_form_text, .loading_text, font, td, th {
  font-family: 'Inter', system-ui, sans-serif !important;
  color: var(--vd-text);
}
.body_text { font-size: 13px !important; font-weight: 500; }
.body_small, .body_tiny { color: var(--vd-muted) !important; }
.queue_text { color: var(--vd-text) !important; text-decoration: none !important; }
.queue_text_red { color: var(--vd-dead) !important; }
.sh_text_white { color: #fff !important; }
a { color: var(--vd-link) !important; text-decoration: none !important; }
a:hover { color: #1d4ed8 !important; }

/* Inputs */
input[type="text"], input[type="password"], input[type="number"],
input.text_input, textarea, select, .cust_form, .cust_form_text, .text_input {
  background: #fff !important;
  border: 1px solid var(--vd-border) !important;
  border-radius: 8px !important;
  color: var(--vd-text) !important;
  padding: 8px 10px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: #9ca3af !important;
  box-shadow: 0 0 0 3px rgba(156,163,175,.22) !important;
  outline: none !important;
}

input.red_btn, input.green_btn, input.blue_btn, button,
input[type="submit"], input[type="button"] {
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  border: none !important;
  cursor: pointer;
  padding: 8px 14px !important;
}
input.red_btn { background: var(--vd-dead) !important; color: #fff !important; }
input.green_btn { background: var(--vd-ready) !important; color: #fff !important; }
input.blue_btn { background: #3b82f6 !important; color: #fff !important; }

.scroll_list {
  background: var(--vd-sidebar) !important;
  border: 1px solid var(--vd-border) !important;
  border-radius: 8px !important;
}
.preview_text { background: #ecfdf5 !important; border-radius: 6px; padding: 2px 4px; }
.preview_text_red { background: var(--vd-dead-soft) !important; }

/* Status row */
#MainTable > tbody > tr:first-child > td {
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--vd-border);
  background: #fafafa !important;
}

/* Left controls column — tight stack */
#MainTable td[width="150px"],
#MainTable > tbody > tr > td[width="150px"] {
  background: var(--vd-sidebar) !important;
  border-right: 1px solid var(--vd-border) !important;
  padding: 10px 8px !important;
  vertical-align: top !important;
  width: 160px !important;
  line-height: 1.2 !important;
}

/* Kill spacer GIF gaps (blank.gif / SpacerSpan*) — keep nodes for VICIdial */
#SpacerSpanA,
#SpacerSpanC,
#SpacerSpanD,
span#SpacerSpanA,
span#SpacerSpanC,
span#SpacerSpanD {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  line-height: 0 !important;
  font-size: 0 !important;
}
#SpacerSpanA *,
#SpacerSpanC *,
#SpacerSpanD *,
#MainTable img[src*="blank.gif"],
#MainTable img[src*="pixel.gif"],
img[src*="blank.gif"],
img[src*="pixel.gif"] {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Collapse leftover <br> spacing after control buttons */
#MainTable td[width="150px"] center > br,
#MainTable td[width="150px"] > center br,
#MainTable td[width="150px"] br {
  display: none !important;
  content: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  height: 0 !important;
  font-size: 0 !important;
}

/* =========================================================
   Modernize GIF control buttons WITHOUT removing them
   :has() styles work even before JS refresh; JS adds labels too.
   ========================================================= */

#DiaLControl,
#RecorDControl,
#ParkControl,
#XferControl,
#HangupControl,
#WebFormSpan,
#WebFormSpanTwo,
#WebFormSpanThree,
#ivrParkControl,
#QuickXfer,
#CustomXfer,
#SendDTMF,
#StRecorDControl,
#LocalCloser,
#HangupXferLine,
#ParkXferLine,
#HangupBothLines,
#Leave3WayCall,
#DialBlindTransfer,
#DialWithCustomer,
#ParkCustomerDial {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 144px;
  margin: 3px 0 !important;
  background: transparent !important;
}

#DiaLControl > a,
#DiaLControl > img,
#RecorDControl > a,
#RecorDControl > img,
#ParkControl > a,
#ParkControl > img,
#XferControl > a,
#XferControl > img,
#HangupControl > a,
#HangupControl > img,
#WebFormSpan > a,
#WebFormSpan > img,
#WebFormSpanTwo > a,
#WebFormSpanTwo > img,
#WebFormSpanThree > a,
#WebFormSpanThree > img,
#ivrParkControl > a,
#ivrParkControl > img,
#QuickXfer > a,
#QuickXfer > img,
#CustomXfer > a,
#CustomXfer > img,
#SendDTMF > a,
#StRecorDControl > a,
#StRecorDControl > img,
#HangupBothLines > a,
#Leave3WayCall > a,
#DialWithCustomer > a,
#ParkCustomerDial > a,
#LocalCloser > img,
#HangupXferLine > img,
#ParkXferLine > img,
#DialBlindTransfer > img,
.vd-modern-btn-face,
.vd-modern-btn.vd-modern-btn-face,
#DiaLControl.vd-modern-btn-face,
#RecorDControl.vd-modern-btn-face,
#ParkControl.vd-modern-btn-face,
#XferControl.vd-modern-btn-face,
#HangupControl.vd-modern-btn-face,
#WebFormSpan.vd-modern-btn-face,
#WebFormSpanTwo.vd-modern-btn-face,
#WebFormSpanThree.vd-modern-btn-face,
#ivrParkControl.vd-modern-btn-face,
#QuickXfer.vd-modern-btn-face,
#CustomXfer.vd-modern-btn-face,
.vd-modern-btn > a,
.vd-modern-btn > img {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 36px !important;
  height: auto !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  border: 1px solid var(--vd-border) !important;
  background: #ffffff !important;
  color: var(--vd-text) !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: .2px;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  overflow: hidden !important;
  cursor: pointer;
  padding: 7px 8px !important;
}

/* Hide GIF pixels; keep element for clicks / VICIdial swaps */
#DiaLControl img,
#RecorDControl img,
#ParkControl img,
#XferControl img,
#HangupControl img,
#WebFormSpan img,
#WebFormSpanTwo img,
#WebFormSpanThree img,
#ivrParkControl img,
#QuickXfer img,
#CustomXfer img,
#SendDTMF img,
#StRecorDControl img,
#LocalCloser img,
#HangupXferLine img,
#ParkXferLine img,
#HangupBothLines img,
#Leave3WayCall img,
#DialBlindTransfer img,
#DialWithCustomer img,
#ParkCustomerDial img,
.vd-modern-btn img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  object-fit: fill !important;
  z-index: 2 !important;
  cursor: pointer;
}

/* Labels come from JS (.vd-btn-label) only — no CSS ::after text (prevents ResumeResume) */
#DiaLControl > a::after,
#DiaLControl::after,
#RecorDControl > a::after,
#RecorDControl > img::after,
#ParkControl > a::after,
#ParkControl > img::after,
#ParkControl::after,
#XferControl > a::after,
#XferControl > img::after,
#XferControl::after,
#HangupControl > a::after,
#HangupControl > img::after,
#HangupControl::after,
#WebFormSpan > a::after,
#WebFormSpan > img::after,
#WebFormSpan::after,
#WebFormSpanTwo > a::after,
#WebFormSpanTwo > img::after,
#WebFormSpanTwo::after,
#WebFormSpanThree > a::after,
#WebFormSpanThree > img::after,
#SendDTMF > a::after,
#ivrParkControl > a::after,
#ivrParkControl > img::after,
#QuickXfer > a::after,
#QuickXfer > img::after,
#CustomXfer > a::after,
#CustomXfer > img::after,
.vd-modern-btn-face::after,
a.vd-modern-btn-face::after {
  content: none !important;
  display: none !important;
}

/* Tone/colors still driven by GIF src and data attributes */
#DiaLControl:has(img[src*="paused"]) > a,
#DiaLControl:has(img[src*="resume"]) > a,
.vd-modern-btn[data-vd-tone="paused"] > a,
.vd-modern-btn-face[data-vd-tone="paused"] {
  background: var(--vd-orange) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(245,158,11,.3);
  min-height: 40px !important;
  font-weight: 700 !important;
}
#HangupControl > a, #HangupControl > img,
#HangupControl.vd-modern-btn-face,
.vd-modern-btn[data-vd-tone="danger"].vd-modern-btn-face {
  background: var(--vd-dead-soft) !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
}
#RecorDControl > a, #RecorDControl > img, #SendDTMF > a,
.vd-modern-btn[data-vd-tone="record"] > a,
.vd-modern-btn-face[data-vd-tone="record"] {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #c2410c !important;
}

.vd-modern-btn[data-vd-tone="paused"] .vd-modern-btn-face,
.vd-modern-btn[data-vd-tone="paused"] > a,
.vd-modern-btn-face[data-vd-tone="paused"] {
  background: var(--vd-orange) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, .3);
  min-height: 40px !important;
}
.vd-modern-btn[data-vd-tone="resume"] .vd-modern-btn-face,
.vd-modern-btn[data-vd-tone="resume"] > a,
.vd-modern-btn-face[data-vd-tone="resume"] {
  background: var(--vd-orange) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}
.vd-modern-btn[data-vd-tone="active"] .vd-modern-btn-face,
.vd-modern-btn[data-vd-tone="active"] > a,
.vd-modern-btn-face[data-vd-tone="active"] {
  background: #16a34a !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, .3);
  min-height: 40px !important;
  font-weight: 700 !important;
}
.vd-modern-btn[data-vd-tone="danger"] .vd-modern-btn-face,
.vd-modern-btn[data-vd-tone="danger"] > a,
.vd-modern-btn-face[data-vd-tone="danger"] {
  background: var(--vd-dead-soft) !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
}
.vd-modern-btn[data-vd-tone="record"] .vd-modern-btn-face,
.vd-modern-btn[data-vd-tone="record"] > a,
.vd-modern-btn-face[data-vd-tone="record"] {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #c2410c !important;
}

.vd-btn-label {
  position: relative;
  z-index: 1;
  pointer-events: none;
  text-align: center;
  line-height: 1.2;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
}

#DiaLControl > a:hover,
#RecorDControl > a:hover,
#ParkControl > a:hover,
#XferControl > a:hover,
#HangupControl > a:hover,
#WebFormSpan > a:hover,
#WebFormSpanTwo > a:hover,
#WebFormSpanThree > a:hover,
#SendDTMF > a:hover,
.vd-modern-btn-face:hover,
.vd-modern-btn > a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,23,42,.1);
  text-decoration: none !important;
}

/* DTMF input under button */
#SendDTMFdiv {
  background: transparent !important;
  margin: 2px 0 0 !important;
}
#SendDTMFdiv input {
  width: 100% !important;
  max-width: 144px;
  margin-top: 2px !important;
  padding: 6px 8px !important;
}

/* Status pill */
#MainStatuSSpan {
  display: inline-block !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: #f3f4f6 !important;
  color: var(--vd-text) !important;
  border: 1px solid var(--vd-border) !important;
}
#MainStatuSSpan.status-ready {
  background: var(--vd-ready) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(16,185,129,.3);
}
#MainStatuSSpan.status-paused {
  background: var(--vd-orange) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(245,158,11,.35);
}
#MainStatuSSpan.status-live {
  background: var(--vd-live) !important;
  color: #fff !important;
  border-color: transparent !important;
  animation: pulse-live 2s infinite;
}
#MainStatuSSpan.status-dead {
  background: var(--vd-dead) !important;
  color: #fff !important;
  border-color: transparent !important;
}
@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(13,148,136,.5); }
  70% { box-shadow: 0 0 0 10px rgba(13,148,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(13,148,136,0); }
}

/* LIVE CALL banner */
#LiveCallBanner {
  position: fixed;
  top: -90px;
  left: 0; right: 0;
  height: 52px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15,118,110,.35);
  border-bottom: 2px solid #5eead4;
  transition: top .35s cubic-bezier(.22,1,.36,1);
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  pointer-events: none;
}
#LiveCallBanner.active { top: 0; pointer-events: auto; }
#LiveCallBanner .banner-content { display: flex; align-items: center; gap: 16px; }
#LiveCallBanner .live-badge {
  background: #ccfbf1; color: #0f766e;
  padding: 4px 12px; border-radius: 9999px;
  font-weight: 800; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase;
  animation: pulse-badge 2s infinite;
}
#LiveCallBanner .call-info { font-size: 16px; font-weight: 600; }
#LiveCallBanner .call-timer {
  font-family: Inter, monospace; font-size: 20px; font-weight: 700;
  background: rgba(0,0,0,.18); padding: 4px 12px; border-radius: 8px;
}
@keyframes pulse-badge {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Soften live-call GIF indicator in header */
#Header img[name="livecall"] {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  filter: saturate(1.1);
}

/* Tabs / leftover GIFs */
img[src*="vdc_tab_"] { border-radius: 8px; }

/* Overlays — LoadingBox gets full-screen rules at end of file */
#WelcomeBoxA table {
  background: var(--vd-card) !important;
  color: var(--vd-text) !important;
  border-radius: 12px;
  box-shadow: var(--vd-shadow);
  border: 1px solid var(--vd-border);
}

/* =========================================================
   WebPhone: compact status bar by default, full box on hover
   ========================================================= */
#webphoneDock,
#webphoneLinkSpan {
  position: absolute !important;
  z-index: 120 !important;
}

.vd-wp-dock {
  min-width: 220px;
}

.vd-wp-compact {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  padding: 6px 10px !important;
  background: #ffffff !important;
  border: 1px solid var(--vd-border) !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  user-select: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.vd-wp-compact:hover,
.vd-wp-dock.vd-wp-open .vd-wp-compact {
  border-color: #86efac !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18);
}

.vd-wp-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  width: 18px;
  height: 18px;
}

.vd-wp-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  white-space: nowrap;
}

.vd-wp-badge {
  display: inline-flex !important;
  align-items: center;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .2px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.vd-wp-badge-ok {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}

.vd-wp-badge-error {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
}

.vd-wp-badge-muted {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}

.vd-wp-toggle,
.vd-wp-toggle a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #047857 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.vd-wp-toggle a:hover {
  background: #d1fae5 !important;
  color: #065f46 !important;
  text-decoration: none !important;
}

/* Full panel: hidden until hover / pin */
#webphoneSpan,
#webphoneSpan.vd-wp-panel {
  right: 16px !important;
  left: auto !important;
  top: 48px !important;
  width: 360px !important;
  height: 420px !important;
  background: #ffffff !important;
  border: 1px solid var(--vd-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14) !important;
  overflow: hidden !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease;
  z-index: 210 !important;
}

#webphoneSpan.vd-wp-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

#webphoneDock {
  right: 16px !important;
  left: auto !important;
  top: 8px !important;
  z-index: 220 !important;
}

#webphoneSpan table,
#webphoneSpan td {
  background: transparent !important;
  border: none !important;
}

#webphoneSpan .vd-wp-panel-title,
#webphoneSpan .body_text {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 6px;
  font-size: 13px !important;
}

#webphonecontent {
  display: block !important;
  border-radius: 10px !important;
  border: 1px solid #dbe4ee !important;
  background: #eef6fb !important;
  overflow: hidden !important;
  min-height: 120px;
  padding: 0 !important;
}

#webphonecontent iframe {
  border: 0 !important;
  border-radius: 10px !important;
  background: #eef6fb !important;
  width: 100% !important;
  display: block !important;
}

#webphoneSpan, #webphoneDIV, #WebPhoneBox {
  background: #ffffff !important;
  border: 1px solid var(--vd-border) !important;
  border-radius: var(--vd-radius) !important;
  box-shadow: var(--vd-shadow);
}

/* Legacy pill selectors kept harmless */
#webphoneLinkSpan table {
  width: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Login / campaign tables */
table[width="460px"],
table[width="660px"] {
  background: var(--vd-card) !important;
  border-radius: 12px !important;
  box-shadow: var(--vd-shadow);
  border: 1px solid var(--vd-border);
  overflow: hidden;
}

/* Force face look on img-only OFF control spans (park/webform/hangup when disabled) */
#HangupControl.vd-modern-btn-face,
#ParkControl.vd-modern-btn-face,
#XferControl.vd-modern-btn-face,
#WebFormSpan.vd-modern-btn-face,
#WebFormSpanTwo.vd-modern-btn-face,
#WebFormSpanThree.vd-modern-btn-face,
#ivrParkControl.vd-modern-btn-face,
#QuickXfer.vd-modern-btn-face,
#CustomXfer.vd-modern-btn-face {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid var(--vd-border) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 7px 8px !important;
  position: relative !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
#HangupControl.vd-modern-btn-face,
#HangupControl.vd-modern-btn[data-vd-tone="danger"] {
  background: #fef2f2 !important;
  background-color: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
}
#HangupControl.vd-modern-btn-face .vd-btn-label {
  color: #b91c1c !important;
  font-weight: 700 !important;
}

/* =========================================================
   Mockup alignment pass — light topbar, controls, form cards
   ========================================================= */
:root {
  --vd-page: #eef2f6;
  --vd-sidebar: #f3f5f8;
  --vd-header: #f8fafc;
  --vd-orange: #f0a000;
  --vd-orange-soft: #fff4d6;
  --vd-paused-text: #b45309;
  --vd-shell-width: 1240px;
}

body.vd-mock-layout {
  padding: 64px 0 24px !important;
  overflow-x: hidden !important;
}

/* 1140px centered container — CSS only, no DOM reparenting */
body.vd-mock-layout #vicidial_form {
  max-width: var(--vd-shell-width);
  width: calc(100% - 32px);
  margin: 0 auto;
  position: relative;
  background: var(--vd-card);
  border: 1px solid var(--vd-border);
  border-radius: 12px;
  box-shadow: var(--vd-shadow); 
}

/* Clamp legacy Vicidial pixel widths inside the shell */
body.vd-mock-layout #vicidial_form table,
body.vd-mock-layout #vicidial_form table[width] {
  max-width: 100% !important;
}

body.vd-mock-layout #MainTable,
body.vd-mock-layout #MainPanel > table,
body.vd-mock-layout #Header table,
body.vd-mock-layout #Tabs table {
  width: 100% !important;
  max-width: 100% !important;
}

/* Wide legacy overlays that used full browser width */
body.vd-mock-layout #callsinqueuedisplay,
body.vd-mock-layout #AgentXferViewSpan {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: auto !important;
}

body.vd-mock-layout #Header,
body.vd-mock-layout #Tabs,
body.vd-mock-layout #WelcomeBoxA,
body.vd-mock-layout #BannerPanel {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.vd-mock-layout #MainPanelCustInfo {
  max-width: 100%;
  overflow-x: hidden;
}
body.vd-mock-layout #MainPanelCustInfo table,
body.vd-mock-layout #MainPanelCustInfo table[width] {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
}
body.vd-mock-layout #MainPanelCustInfo input,
body.vd-mock-layout #MainPanelCustInfo select,
body.vd-mock-layout #MainPanelCustInfo textarea {
  max-width: 100%;
  box-sizing: border-box;
}

body.vd-mock-layout .vd-topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--vd-shell-width), calc(100% - 32px));
  max-width: var(--vd-shell-width);
  z-index: 250;
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.vd-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  padding: 0 16px 0 18px;
  background: #ffffff;
  border: 1px solid var(--vd-border);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 1px 0 rgba(15,23,42,.03);
  font-family: Inter, system-ui, sans-serif;
  min-width: 0;
  overflow: hidden;
}

body.vd-mock-layout #MainPanel {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  z-index: 1 !important;
}

body.vd-mock-layout #MainPanel > table,
body.vd-mock-layout #MainTable {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 0 12px 12px !important;
  border-top: none !important;
  box-shadow: none !important;
}

body.vd-mock-layout #MainCommit {
  position: absolute !important;
  top: 56px !important;
  right: 14px !important;
  left: auto !important;
  z-index: 90 !important;
}

body.vd-mock-layout #webphoneSpan,
body.vd-mock-layout #webphoneSpan.vd-wp-panel {
  right: calc(50% - min(var(--vd-shell-width), calc(100% - 32px)) / 2 + 12px) !important;
  top: 68px !important;
}

body.vd-mock-layout #LiveCallBanner {
  left: 50%;
  right: auto;
  width: min(var(--vd-shell-width), calc(100% - 32px));
  transform: translateX(-50%);
  border-radius: 12px 12px 0 0;
}
body.vd-mock-layout #LiveCallBanner.active {
  top: 16px;
}

body.vd-mock-layout #MainPanelCustInfo table[width="550px"] {
  width: 100% !important;
  max-width: 960px !important;
}

/* Customer info — keep header rows; fields in 20% / 80% grid below */
body.vd-mock-layout #MainPanelCustInfo > table > tbody > tr:nth-child(1) td,
body.vd-mock-layout #MainPanelCustInfo > table > tbody > tr:nth-child(2) td {
  padding: 4px 0 8px !important;
}
/* Keep "Customer Information:" left-aligned above the field columns (not page-centered) */
body.vd-mock-layout #MainPanelCustInfo .vd-cust-info-head,
body.vd-mock-layout #MainPanelCustInfo > table > tbody > tr:nth-child(2) > td {
  text-align: left !important;
  padding-left: 0 !important;
}
body.vd-mock-layout #MainPanelCustInfo .vd-cust-left-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 4px;
  text-align: left;
}
body.vd-mock-layout #MainPanelCustInfo .vd-cust-left-title .body_text {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}
body.vd-mock-layout #MainPanelCustInfo #custdatetime,
body.vd-mock-layout #MainPanelCustInfo #callchannel {
  font-weight: 600;
  color: #0f172a;
}
body.vd-mock-layout #MainPanelCustInfo .vd-cust-shell {
  display: grid;
  grid-template-columns: 20% 80%;
  gap: 20px;
  width: 100%;
  align-items: start;
}
body.vd-mock-layout #MainPanelCustInfo .vd-cust-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
body.vd-mock-layout #MainPanelCustInfo .vd-cust-right {
  min-width: 0;
  min-height: 60px;
  max-height: calc(100vh - 220px);
  overflow: auto;
}

/* Goldbridge client panel (right column) */
.vd-gb-panel-wrap {
  width: 98%;
}
.vd-gb-panel {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  color: #0f172a;
}
.vd-gb-panel-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 10px;
}
.vd-gb-panel-title .vd-gb-id {
  color: #0f172a;
}
.vd-gb-section {
  margin-bottom: 12px;
}
.vd-gb-section-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #64748b;
  margin-bottom: 6px;
}
.vd-gb-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}
.vd-gb-status {
  display: inline-block;
  color: #fff;
   font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.vd-gb-kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 4px 10px;
  padding: 4px 0;
  border-bottom: 1px solid #eef2f7;
}
.vd-gb-kv:last-child { border-bottom: none; }
.vd-gb-k {
  color: #64748b;
  font-weight: 600;
  font-size: 11px;
}
.vd-gb-v {
  color: #0f172a;
  word-break: break-word;
}
.vd-gb-collapse {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}
.vd-gb-collapse-nested {
  margin-top: 8px;
  border-color: #eef2f7;
}
.vd-gb-collapse-head {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #334155;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vd-gb-collapse-head::-webkit-details-marker { display: none; }
.vd-gb-collapse[open] > .vd-gb-collapse-head {
  border-bottom: 1px solid #e2e8f0;
}
.vd-gb-collapse-body {
  padding: 8px 12px 10px;
  max-height: 280px;
  overflow: auto;
}
.vd-gb-count {
  background: #e2e8f0;
  color: #475569;
   font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
}
.vd-gb-note {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.vd-gb-note:last-child { border-bottom: none; }
.vd-gb-note-meta {
    font-size: 10px;
  color: #64748b;
    margin-bottom: 3px;
}
.vd-gb-note-text {
  font-size: 12px;
  color: #0f172a;
  white-space: pre-wrap;
  line-height: 1.4;
}
.vd-gb-subhead {
    font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin: 8px 0 4px;
}
.vd-gb-list-item {
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}
.vd-gb-case {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  background: #fafbfc;
}
.vd-gb-case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.vd-gb-case-id {
  font-weight: 700;
  font-size: 12px;
}
.vd-gb-case-status {
    font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.vd-gb-muted {
  color: #94a3b8;
  font-size: 12px;
  padding: 8px 0;
}
.vd-gb-loading {
  color: #64748b;
  font-style: italic;
}
.vd-gb-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
}
body.vd-mock-layout #MainPanelCustInfo .vd-cust-field-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
body.vd-mock-layout #MainPanelCustInfo .vd-cust-field-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #64748b !important;
  margin: 0;
}
body.vd-mock-layout #MainPanelCustInfo .vd-cust-field-input input {
  width: 100% !important;
  max-width: 100% !important;
}
body.vd-mock-layout #MainPanelCustInfo .vd-cust-legacy {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Soften/hide legacy header blocks — replaced by vdTopBar */
#Header {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}
#Tabs {
  top: 54px !important;
  left: 12px !important;
  z-index: 5 !important;
}
#Tabs table {
  background: transparent !important;
  box-shadow: none !important;
}
#Tabs img[alt="MAIN"],
#Tabs img[alt="SCRIPT"],
#Tabs img[name="livecall"],
#Tabs img[alt="Live Call"] {
  border-radius: 8px !important;
  box-shadow: none !important;
  opacity: .9;
}

#MainPanel {
  top: 92px !important;
  left: 12px !important;
}

.vd-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font-family: Inter, system-ui, sans-serif;
}
.vd-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 48px;
  padding: 0 16px 0 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--vd-border);
  box-shadow: 0 1px 0 rgba(15,23,42,.03);
}
.vd-topbar-left,
.vd-topbar-mid,
.vd-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.vd-topbar-mid { flex: 1; justify-content: center; color: #64748b; font-size: 12px; min-width: 0; overflow: hidden; }
.vd-topbar-left,
.vd-topbar-right {
  flex: 0 1 auto;
  min-width: 0;
}
.vd-topbar-mid .vd-meta {
  overflow: hidden;
  text-overflow: ellipsis;
}
.vd-topbar-mid #vdCustTimeChip,
.vd-topbar-mid #vdChannelChip {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  display: inline-block;
  vertical-align: bottom;
}
.vd-chip, .vd-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}
.vd-chip-k {
   font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}
.vd-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  border: 1px solid transparent;
}
.vd-status-paused {
  background: var(--vd-orange-soft);
  color: var(--vd-paused-text);
  border-color: #fcd34d;
}
.vd-status-ready {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.vd-status-live {
  background: #ecfeff;
  color: #0e7490;
  border-color: #a5f3fc;
}
.vd-status-dead {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.vd-timer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.vd-timer-ico { opacity: .7; }

/* Left sidebar sections */
#MainTable td[width="150px"],
#MainTable td.vd-controls-col {
  width: 196px !important;
  background: var(--vd-sidebar) !important;
  padding: 14px 12px !important;
  border-right: 1px solid var(--vd-border) !important;
}
.vd-section-title {
  display: block;
  width: 100%;
  max-width: 172px;
  margin: 2px 0 8px;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8 !important;
  text-align: left !important;
}
.vd-section-recording {
  margin-top: 14px !important;
  padding-top: 10px;
  border-top: 1px solid var(--vd-border);
}

#DiaLControl,
#RecorDControl,
#ParkControl,
#XferControl,
#HangupControl,
#WebFormSpan,
#WebFormSpanTwo,
#WebFormSpanThree,
#SendDTMF,
#ivrParkControl,
#QuickXfer,
#CustomXfer {
  max-width: 172px !important;
  margin: 6px 0 !important;
}

.vd-modern-btn-face,
.vd-modern-btn > a,
.vd-modern-btn > img,
#DiaLControl > a,
#RecorDControl > a,
#ParkControl > a,
#ParkControl > img,
#XferControl > a,
#XferControl > img,
#HangupControl > a,
#HangupControl > img,
#WebFormSpan > a,
#WebFormSpan > img,
#WebFormSpanTwo > a,
#WebFormSpanTwo > img,
#SendDTMF > a {
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 40px !important;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #334155 !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.04) !important;
}

.vd-btn-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100%;
  justify-content: flex-start !important;
}
.vd-btn-ico {
  flex: 0 0 auto;
  opacity: .85;
}
.vd-btn-text { flex: 1 1 auto; text-align: left; }

/* You are active — green when agent is running */
#DiaLControl:has(img[src*="active"]) > a,
.vd-modern-btn[data-vd-tone="active"] > a,
.vd-modern-btn-face[data-vd-tone="active"],
.vd-modern-btn[data-vd-tone="active"] .vd-modern-btn-face {
  background: #16a34a !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .28) !important;
  font-weight: 700 !important;
}
#DiaLControl:has(img[src*="active"]) .vd-btn-ico,
.vd-modern-btn[data-vd-tone="active"] .vd-btn-ico { color: #fff !important; opacity: 1; }

/* Resume primary */
#DiaLControl:has(img[src*="paused"]) > a,
#DiaLControl:has(img[src*="resume"]) > a,
.vd-modern-btn[data-vd-tone="paused"] > a,
.vd-modern-btn-face[data-vd-tone="paused"],
.vd-modern-btn[data-vd-tone="resume"] > a,
.vd-modern-btn-face[data-vd-tone="resume"] {
  background: var(--vd-orange) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(240,160,0,.28) !important;
  font-weight: 700 !important;
}
#DiaLControl:has(img[src*="paused"]) .vd-btn-ico,
.vd-modern-btn[data-vd-tone="paused"] .vd-btn-ico,
.vd-modern-btn[data-vd-tone="resume"] .vd-btn-ico { color: #fff !important; opacity: 1; }

/* Hangup danger outline like mock */
#HangupControl > a,
#HangupControl > img,
#HangupControl.vd-modern-btn-face,
.vd-modern-btn[data-vd-tone="danger"].vd-modern-btn-face {
  background: #fff !important;
  border-color: #f5b7b1 !important;
  color: #c0392b !important;
}
#HangupControl .vd-btn-ico { color: #c0392b !important; }

/* Recording button like mock */
#RecorDControl > a,
#RecorDControl > img,
.vd-modern-btn[data-vd-tone="record"] > a,
.vd-modern-btn-face[data-vd-tone="record"],
#SendDTMF > a {
  background: #fff !important;
  border-color: #e5e7eb !important;
  color: #334155 !important;
}

/* Hide noisy RECORDING FILE label clutter a bit */
#MainTable td[width="150px"] > font.body_text > center {
  text-align: left !important;
}
#MainTable td[width="150px"] .body_tiny,
#MainTable td[width="150px"] font.body_tiny {
  display: none !important;
}

/* Customer info cards */
#MainPanelCustInfo {
  display: block;
  padding: 8px 10px 12px;
}
#MainPanelCustInfo > table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
}
/* Remove legacy empty spacer cell at far-left of customer block */
#MainPanelCustInfo > table > tbody > tr:first-child > td:first-child {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
}
#MainPanelCustInfo > table > tbody > tr:first-child > td:nth-child(2) {
  width: 100% !important;
}
#MainPanelCustInfo input[type="text"],
#MainPanelCustInfo textarea,
#MainPanelCustInfo select,
#MainPanelCustInfo .cust_form {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  min-height: 34px;
}
#MainPanelCustInfo .body_text {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.vd-record-id-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: .02em;
}

/* Dark Commit like mock */
#MainCommit.vd-commit-btn,
#MainCommit {
  z-index: 60 !important;
}
#MainCommit.vd-commit-btn a,
#MainCommit a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  background: #111827 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(15,23,42,.18);
  cursor: pointer !important;
  pointer-events: auto !important;
}
#MainCommit a:hover { filter: brightness(1.08); text-decoration: none !important; }
#MainCommit .vd-commit-label { color: #fff !important; }

/* Place webphone compact next to topbar status */
#webphoneDock {
  top: 8px !important;
  right: 16px !important;
  z-index: 260 !important;
}
#webphoneSpan.vd-wp-panel {
  top: 56px !important;
}

/* Soften customer time row */
#custdatetime, #callchannel {
  text-transform: none !important;
  font-weight: 600 !important;
  color: #334155 !important;
  letter-spacing: 0 !important;
}

/* Footer quieter */
#MaiNfooter {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-top: 4px;
}

/* Hide Web Form 1 / 2 / 3 — disabled in system_settings */
#WebFormSpan,
#WebFormSpanTwo,
#WebFormSpanThree {
  display: none !important;
}

/* Hide Start/Stop Recording button — campaign uses ALLFORCE auto-record.
 * Must beat #RecorDControl.vd-modern-btn-face { display:flex !important } */
#RecorDControl,
#RecorDControl.vd-modern-btn,
#RecorDControl.vd-modern-btn-face,
#RecorDControl.vd-modern-btn.vd-modern-btn-face,
#StRecorDControl,
#StRecorDControl.vd-modern-btn,
#StRecorDControl.vd-modern-btn-face,
#RecorDMute,
#MainTable td[width="150px"] #RecorDControl,
#MainTable td[width="150px"] #RecorDControl.vd-modern-btn-face,
#MainTable td.vd-controls-col #RecorDControl,
#MainTable td.vd-controls-col #RecorDControl.vd-modern-btn-face {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  pointer-events: none !important;
}

/*
 * Collapse Vicidial's legacy "bottom buffer" spacer row ($BPheight).
 * In classic absolute layout it reserved vertical space; in mock flow layout
 * it becomes a huge empty white footer.
 */
body.vd-mock-layout #MainTable > tbody > tr:nth-last-child(-n+2) {
  display: none !important;
}
body.vd-mock-layout #MainTable > tbody > tr:nth-last-child(-n+2) td {
  height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* Keep VERSION / conference footer compact and in document flow */
body.vd-mock-layout #MaiNfooterspan {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 14px 12px;
  z-index: 1 !important;
}
body.vd-mock-layout #MaiNfooter {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.vd-mock-layout #MaiNfooter td {
  height: auto !important;
  padding: 0 !important;
  vertical-align: top !important;
}
body.vd-mock-layout #MaiNfooter #busycallsdisplay br {
  display: none;
}

/* Hide duplicate STATUS row + logo tabs under mock topbar */
body.vd-mock-layout #MainTable > tbody > tr:first-child {
  display: none !important;
}
body.vd-mock-layout #Tabs {
  display: none !important;
}

/* Keep webphone compact inside topbar when relocated */
.vd-topbar-right #webphoneDock {
  position: static !important;
  right: auto !important;
  top: auto !important;
  margin-left: 6px;
}
.vd-topbar-right .vd-wp-compact {
  box-shadow: none !important;
  border-color: #d1fae5 !important;
  background: #f0fdf4 !important;
  padding: 4px 8px !important;
}
.vd-topbar-right .vd-wp-toggle { display: none !important; }

/* Order sections: keep recording title under call controls */
#vdRecordingTitle { order: 20; }
#vdRecordingMeta { order: 21; }
#RecorDControl { order: 22; }

.vd-recording-meta {
  display: block;
  width: 100%;
  max-width: 172px;
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-family: Inter, system-ui, sans-serif;
}
.vd-rec-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.vd-rec-line:last-child {
  margin-bottom: 0;
}
.vd-rec-k {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8 !important;
}
.vd-rec-v {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  line-height: 1.35;
  word-break: break-all;
}

/* Disabled controls — e.g. pause during live call */
#DiaLControl:has(> img[src*="blank_OFF"]),
#DiaLControl.vd-modern-btn[data-vd-tone="disabled"],
.vd-modern-btn[data-vd-tone="disabled"],
.vd-modern-btn[data-vd-tone="disabled"].vd-modern-btn-face,
.vd-modern-btn-face[data-vd-tone="disabled"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 40px !important;
  padding: 9px 12px !important;
  background: #f8fafc !important;
  border: 1px solid #dbeafe !important;
  border-radius: 10px !important;
  color: #64748b !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}
#DiaLControl:has(> img[src*="blank_OFF"]) .vd-btn-ico,
.vd-modern-btn[data-vd-tone="disabled"] .vd-btn-ico {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
#DiaLControl:has(> img[src*="blank_OFF"]) > img,
.vd-modern-btn[data-vd-tone="disabled"] > img {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* Hide legacy RECORDING FILE / RECORD ID under Call Controls (kept in DOM for JS) */
.vd-legacy-rec-meta {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

/* Hide legacy RECORDING FILE / RECORD ID text clutter in sidebar */
#MainTable td[width="150px"] .vd-hide-rec-meta,
#MainTable td[width="150px"] font.body_tiny,
#RecorDingFilename,
#MainTable td[width="150px"] center > br + font {
  /* keep RecorDID for JS reads but hide visual labels */
}
#MainTable td[width="150px"] {
  font-size: 0 !important; /* collapse raw text nodes like RECORDING FILE: */
}
#MainTable td[width="150px"] .vd-section-title,
#MainTable td[width="150px"] .vd-modern-btn,
#MainTable td[width="150px"] .vd-modern-btn-face,
#MainTable td[width="150px"] #DiaLControl,
#MainTable td[width="150px"] #RecorDControl,
#MainTable td[width="150px"] #WebFormSpan,
#MainTable td[width="150px"] #WebFormSpanTwo,
#MainTable td[width="150px"] #ParkControl,
#MainTable td[width="150px"] #XferControl,
#MainTable td[width="150px"] #HangupControl,
#MainTable td[width="150px"] #SendDTMF,
#MainTable td[width="150px"] #SendDTMFdiv,
#MainTable td[width="150px"] input,
#MainTable td[width="150px"] a,
#MainTable td[width="150px"] span,
#MainTable td[width="150px"] .vd-recording-meta,
#MainTable td[width="150px"] .vd-recording-meta .vd-rec-v {
  font-size: 12px !important;
}
#MainTable td[width="150px"] .vd-recording-meta .vd-rec-k {
  font-size: 10px !important;
}
#RecorDID, #RecorDingFilename {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

/* Keep PAUSED chip from being squeezed */
.vd-topbar-right {
  flex-wrap: nowrap;
  gap: 8px !important;
}
.vd-topbar-right .vd-wp-label { display:none !important; }
.vd-topbar-right .vd-wp-compact { gap: 6px !important; }

/* Session/system alert overlays: keep centered, avoid bottom overlap */
body.vd-mock-layout #DeactivateDOlDSessioNSpan,
body.vd-mock-layout #AgenTDisablEBoX,
body.vd-mock-layout #SysteMDisablEBoX,
body.vd-mock-layout #InvalidOpenerSpan,
body.vd-mock-layout #blind_monitor_alert_span {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1200 !important;
  background: rgba(15, 23, 42, 0.22) !important;
}

body.vd-mock-layout #DeactivateDOlDSessioNSpan[style*="visibility: visible"],
body.vd-mock-layout #AgenTDisablEBoX[style*="visibility: visible"],
body.vd-mock-layout #SysteMDisablEBoX[style*="visibility: visible"],
body.vd-mock-layout #InvalidOpenerSpan[style*="visibility: visible"],
body.vd-mock-layout #blind_monitor_alert_span[style*="visibility: visible"] {
  display: block !important;
  pointer-events: auto !important;
}

body.vd-mock-layout #DeactivateDOlDSessioNSpan[style*="visibility: hidden"],
body.vd-mock-layout #AgenTDisablEBoX[style*="visibility: hidden"],
body.vd-mock-layout #SysteMDisablEBoX[style*="visibility: hidden"],
body.vd-mock-layout #InvalidOpenerSpan[style*="visibility: hidden"],
body.vd-mock-layout #blind_monitor_alert_span[style*="visibility: hidden"] {
  display: none !important;
  pointer-events: none !important;
}

body.vd-mock-layout #LogouTBox {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1100 !important;
  background: rgba(15, 23, 42, 0.12) !important;
}

body.vd-mock-layout #LogouTBox[style*="visibility: visible"] {
  display: block !important;
  pointer-events: auto !important;
}

body.vd-mock-layout #LogouTBox[style*="visibility: hidden"] {
  display: none !important;
  pointer-events: none !important;
}

body.vd-mock-layout #LogouTBox table {
  width: min(680px, calc(100vw - 32px)) !important;
  height: auto !important;
  margin: 16vh auto 0 !important;
  background: #ffffff !important;
  border: 1px solid var(--vd-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2) !important;
}

body.vd-mock-layout #LogouTBox td {
  padding: 28px 22px !important;
  text-align: center !important;
}

body.vd-mock-layout #LogouTBox .loading_text,
body.vd-mock-layout #LogouTBoxLink .loading_text,
body.vd-mock-layout #LogouTBoxLink a {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 14px !important;
  color: #334155 !important;
}

body.vd-mock-layout #LogouTBoxLink a {
  color: #2563eb !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.vd-mock-layout #LogouTBoxLink a:hover {
  text-decoration: underline !important;
}

body.vd-mock-layout #DeactivateDOlDSessioNSpan table,
body.vd-mock-layout #AgenTDisablEBoX table,
body.vd-mock-layout #SysteMDisablEBoX table,
body.vd-mock-layout #InvalidOpenerSpan table,
body.vd-mock-layout #blind_monitor_alert_span table {
  width: min(680px, calc(100vw - 32px)) !important;
  height: auto !important;
  margin: 18vh auto 0 !important;
  background: #ffffff !important;
  border: 1px solid var(--vd-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2) !important;
}

body.vd-mock-layout #DeactivateDOlDSessioNSpan td,
body.vd-mock-layout #AgenTDisablEBoX td,
body.vd-mock-layout #SysteMDisablEBoX td,
body.vd-mock-layout #InvalidOpenerSpan td,
body.vd-mock-layout #blind_monitor_alert_span td {
  padding: 22px 18px !important;
  text-align: center !important;
}

/* Legacy inert focus helper (used by JS focus/blur calls) */
body.vd-mock-layout #NothingBox2 {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
body.vd-mock-layout #inert_button {
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ========== DISPOSITION / POST-CALL OVERLAYS ========== */
/* Global bgcolor neutralizer strips legacy panel fills — restore solid cards here */
body.vd-mock-layout #CustomerGoneBox,
body.vd-mock-layout #NoneInSessionBox,
body.vd-mock-layout #WrapupBox,
body.vd-mock-layout #FSCREENWrapupBox,
body.vd-mock-layout #CallBackSelectBox {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 200 !important;
  background: #ffffff !important;
}

/* Disposition modal — bootstrap-style backdrop + centered white dialog */
body.vd-mock-layout #DispoSelectBox {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1300 !important;
  margin: 0 !important;
  padding: 24px 16px !important;
  background: rgba(15, 23, 42, 0.55) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

body.vd-mock-layout #DispoSelectBox[style*="visibility: visible"] {
  display: block !important;
  pointer-events: auto !important;
}

body.vd-mock-layout #DispoSelectBox[style*="visibility: hidden"] {
  display: none !important;
  pointer-events: none !important;
}

body.vd-mock-layout:has(#DispoSelectBox[style*="visibility: visible"]) {
  overflow: hidden !important;
}

body.vd-mock-layout #DispoSelectBox table {
  width: min(920px, calc(100vw - 32px)) !important;
  max-width: 920px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 2vh auto 24px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28) !important;
}

body.vd-mock-layout #DispoSelectBox td {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 20px 24px 22px !important;
  text-align: left !important;
  vertical-align: top !important;
  box-shadow: none !important;
}

body.vd-mock-layout #CustomerGoneBox table,
body.vd-mock-layout #NoneInSessionBox table,
body.vd-mock-layout #WrapupBox table,
body.vd-mock-layout #FSCREENWrapupBox table,
body.vd-mock-layout #CallBackSelectBox table,
body.vd-mock-layout #CustomerGoneBox td,
body.vd-mock-layout #NoneInSessionBox td,
body.vd-mock-layout #WrapupBox td,
body.vd-mock-layout #FSCREENWrapupBox td,
body.vd-mock-layout #CallBackSelectBox td {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.vd-mock-layout #CustomerGoneBox table,
body.vd-mock-layout #NoneInSessionBox table,
body.vd-mock-layout #WrapupBox table,
body.vd-mock-layout #CallBackSelectBox table {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
}

body.vd-mock-layout #CustomerGoneBox td,
body.vd-mock-layout #NoneInSessionBox td,
body.vd-mock-layout #WrapupBox td,
body.vd-mock-layout #CallBackSelectBox td {
  padding: 16px 20px 18px !important;
  text-align: left !important;
  vertical-align: top !important;
}

body.vd-mock-layout #DispoSelectBox .sd_text,
body.vd-mock-layout #CustomerGoneBox .sd_text,
body.vd-mock-layout #NoneInSessionBox .sd_text,
body.vd-mock-layout #WrapupBox .sd_text {
  display: block;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 12px !important;
}

body.vd-mock-layout #DispoSelectBox .sd_text {
  margin: 0 0 4px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.vd-mock-layout #DispoSelectBox .sh_text,
body.vd-mock-layout #CustomerGoneBox .sh_text,
body.vd-mock-layout #NoneInSessionBox .sh_text,
body.vd-mock-layout #WrapupBox .sh_text {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 13px !important;
  color: #334155 !important;
  line-height: 1.5 !important;
}

body.vd-mock-layout #DispoSelectBox a,
body.vd-mock-layout #CustomerGoneBox a,
body.vd-mock-layout #NoneInSessionBox a,
body.vd-mock-layout #WrapupBox a {
  color: #2563eb !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body.vd-mock-layout #DispoSelectBox a:hover,
body.vd-mock-layout #CustomerGoneBox a:hover,
body.vd-mock-layout #NoneInSessionBox a:hover,
body.vd-mock-layout #WrapupBox a:hover {
  text-decoration: underline !important;
}

/* Clearer "phone left room" popup */
body.vd-mock-layout #NoneInSessionBox {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1400 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px !important;
  background: rgba(15, 23, 42, 0.55) !important;
  box-sizing: border-box !important;
}
body.vd-mock-layout #NoneInSessionBox[style*="visibility: hidden"] {
  display: none !important;
}
body.vd-mock-layout #NoneInSessionBox table {
  width: min(440px, calc(100vw - 32px)) !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28) !important;
}
body.vd-mock-layout #NoneInSessionBox td {
  padding: 0 !important;
}
body.vd-mock-layout #NoneInSessionBox .vd-session-msg {
  padding: 22px 24px 20px;
  text-align: left;
  font-family: Inter, system-ui, sans-serif;
}
body.vd-mock-layout #NoneInSessionBox .vd-session-msg-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 8px !important;
}
body.vd-mock-layout #NoneInSessionBox .vd-session-msg-body {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  line-height: 1.5 !important;
  margin: 0 0 18px !important;
}
body.vd-mock-layout #NoneInSessionBox .vd-session-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
body.vd-mock-layout #NoneInSessionBox a.vd-session-msg-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
body.vd-mock-layout #NoneInSessionBox a.vd-session-msg-primary:hover {
  background: #1e293b !important;
  text-decoration: none !important;
}
body.vd-mock-layout #NoneInSessionBox a.vd-session-msg-secondary {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 10px !important;
}

/* Agent notice popup (AlertBox) */
body.vd-mock-layout #AlertBox {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px !important;
  background: rgba(15, 23, 42, 0.55) !important;
  box-sizing: border-box !important;
  border: none !important;
}
body.vd-mock-layout #AlertBox[style*="visibility: hidden"] {
  display: none !important;
}
body.vd-mock-layout #AlertBox > table {
  width: min(420px, calc(100vw - 32px)) !important;
  max-width: 420px !important;
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28) !important;
}
body.vd-mock-layout #AlertBox > table > tbody > tr > td {
  border: none !important;
  background: #ffffff !important;
  padding: 0 !important;
}
body.vd-mock-layout #AlertBox .vd-alert-head {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 12px 18px !important;
}
body.vd-mock-layout #AlertBox .vd-alert-head font,
body.vd-mock-layout #AlertBox .vd-alert-head b {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b !important;
}
body.vd-mock-layout #AlertBox table table {
  width: 100% !important;
  background: #ffffff !important;
  border: none !important;
}
body.vd-mock-layout #AlertBox .vd-alert-icon-cell {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
}
body.vd-mock-layout #AlertBox .vd-alert-body-cell {
  padding: 18px 22px 8px !important;
  text-align: left !important;
  vertical-align: middle !important;
}
body.vd-mock-layout #AlertBox .vd-alert-body-cell br {
  display: none;
}
body.vd-mock-layout #AlertBox #AlertBoxContent,
body.vd-mock-layout #AlertBox .vd-alert-body-cell font {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  line-height: 1.45 !important;
}
body.vd-mock-layout #AlertBox .vd-alert-actions {
  padding: 8px 22px 18px !important;
  text-align: right !important;
}
body.vd-mock-layout #AlertBox .vd-alert-actions br {
  display: none;
}
body.vd-mock-layout #AlertBox #alert_button {
  appearance: none;
  border: none !important;
  border-radius: 8px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
  cursor: pointer;
  min-width: 88px;
}
body.vd-mock-layout #AlertBox #alert_button:hover {
  background: #1e293b !important;
}

/* Disposition status choices */
body.vd-mock-layout #DispoSelectContent {
  display: block;
  margin: 10px 0 12px;
}

body.vd-mock-layout .vd-dispo-panel {
  width: 100%;
}

body.vd-mock-layout .vd-dispo-heading {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b !important;
  margin: 0 0 10px !important;
}

body.vd-mock-layout .vd-dispo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

@media (max-width: 900px) {
  body.vd-mock-layout .vd-dispo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.vd-mock-layout .vd-dispo-opt {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 12px !important;
  margin: 0 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
}

body.vd-mock-layout .vd-dispo-opt:hover {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  text-decoration: none !important;
}

body.vd-mock-layout .vd-dispo-opt-selected {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
}

body.vd-mock-layout .vd-dispo-opt-selected:hover {
  background: #1d4ed8 !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
}

body.vd-mock-layout .vd-dispo-opt-selected .vd-dispo-code,
body.vd-mock-layout .vd-dispo-opt-selected .vd-dispo-name {
  color: #ffffff !important;
}

body.vd-mock-layout .vd-dispo-code {
  flex: 0 0 auto;
  min-width: 2.8em;
  font-weight: 800 !important;
  color: #1e40af !important;
}

body.vd-mock-layout .vd-dispo-name {
  flex: 1 1 auto;
  color: #334155 !important;
}

body.vd-mock-layout .vd-dispo-opt-disabled {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #f1f5f9 !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 8px;
  color: #94a3b8 !important;
  font-size: 12.5px !important;
  opacity: .75;
}

body.vd-mock-layout .vd-dispo-empty {
  padding: 12px;
  color: #64748b;
  font-size: 13px;
}

body.vd-mock-layout .vd-dispo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

body.vd-mock-layout .vd-dispo-pause {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  cursor: pointer;
}

body.vd-mock-layout .vd-dispo-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

body.vd-mock-layout .vd-dispo-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  cursor: pointer;
  white-space: nowrap;
}

body.vd-mock-layout .vd-dispo-btn-ghost {
  background: #ffffff !important;
  border-color: #d1d5db !important;
  color: #475569 !important;
}

body.vd-mock-layout .vd-dispo-btn-ghost:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  text-decoration: none !important;
}

body.vd-mock-layout .vd-dispo-btn-primary {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

body.vd-mock-layout .vd-dispo-btn-primary:hover {
  background: #1f2937 !important;
  border-color: #1f2937 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

body.vd-mock-layout .vd-dispo-btn-secondary {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

body.vd-mock-layout .vd-dispo-btn-secondary:hover {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
  color: #1e40af !important;
  text-decoration: none !important;
}

/* Hide legacy br gaps inside dispo panel */
body.vd-mock-layout #DispoSelectBox .sh_text br {
  display: none !important;
}

/* Legacy green masks — hidden; modal backdrop replaces them */
body.vd-mock-layout #DispoButtonHideA,
body.vd-mock-layout #DispoButtonHideB,
body.vd-mock-layout #DispoButtonHideC {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.vd-mock-layout #DispoButtonHideA table,
body.vd-mock-layout #DispoButtonHideB table,
body.vd-mock-layout #DispoButtonHideC table,
body.vd-mock-layout #DispoButtonHideA td,
body.vd-mock-layout #DispoButtonHideB td,
body.vd-mock-layout #DispoButtonHideC td {
  display: none !important;
}

/* ========== FULL-SCREEN LOADING OVERLAY ========== */
#LoadingBox {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 5000 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#LoadingBox[style*="visibility: hidden"] {
  display: none !important;
  pointer-events: none !important;
}

#LoadingBox table {
  width: auto !important;
  height: auto !important;
  max-width: min(420px, calc(100vw - 48px)) !important;
  margin: 0 auto !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#LoadingBox td {
  padding: 12px 16px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

#LoadingBox .loading_text {
  display: block;
  margin: 0 0 18px !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  letter-spacing: 0.02em;
}

#LoadingBox img {
  display: block;
  margin: 0 auto !important;
  width: 160px !important;
  height: 160px !important;
  object-fit: contain;
}

/* Keep login submit spinner tidy too */
#LoginLoadingBox {
  display: block;
  margin: 16px auto 0;
  text-align: center;
}
#LoginLoadingBox .skb_text {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

/* Hide chrome while agent screen is still loading */
body:has(#LoadingBox:not([style*="visibility: hidden"])) {
  background: #ffffff !important;
  overflow: hidden !important;
}

body:has(#LoadingBox:not([style*="visibility: hidden"])) #webphoneDock,
body:has(#LoadingBox:not([style*="visibility: hidden"])) #webphoneSpan,
body:has(#LoadingBox:not([style*="visibility: hidden"])) #webphoneLinkSpan,
body:has(#LoadingBox:not([style*="visibility: hidden"])) #vdTopBar,
body:has(#LoadingBox:not([style*="visibility: hidden"])) .vd-topbar {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* ===== SALE File Notes — Client Contact form ===== */
#vdGbSaleContactBox {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99990 !important;
}
#vdGbSaleContactBox[style*="visibility: hidden"],
#vdGbSaleContactBox[style*="display: none"] {
  pointer-events: none !important;
}
.vd-gb-sale-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px;
  overflow: auto;
  box-sizing: border-box;
}
.vd-gb-sale-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  padding: 20px 22px 18px;
  font-family: Inter, system-ui, sans-serif;
  color: #0f172a;
  box-sizing: border-box;
}
.vd-gb-sale-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.vd-gb-sale-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.vd-gb-sale-client {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}
.vd-gb-sale-field {
  margin-bottom: 14px;
}
.vd-gb-sale-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.vd-gb-sale-label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
  margin-bottom: 6px;
}
.vd-gb-sale-label-row .vd-gb-sale-label {
  margin-bottom: 0;
}
.vd-gb-sale-tpl {
  min-width: 170px;
  max-width: 55%;
  height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  padding: 0 8px;
}
.vd-gb-sale-search {
  width: 100%;
  box-sizing: border-box;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px 8px 0 0;
  padding: 0 10px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
}
.vd-gb-sale-case-list {
  max-height: 160px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: #fff;
}
.vd-gb-sale-case-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #1e293b;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  margin: 0;
}
.vd-gb-sale-case-opt:last-child {
  border-bottom: none;
}
.vd-gb-sale-case-opt:hover {
  background: #f1f5f9;
}
.vd-gb-sale-case-opt:has(input:checked) {
  background: #2563eb;
  color: #fff;
}
.vd-gb-sale-case-opt input {
  margin-top: 2px;
  flex: 0 0 auto;
}
.vd-gb-sale-hint,
.vd-gb-sale-muted {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}
.vd-gb-sale-ta {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #0f172a;
  resize: vertical;
  min-height: 64px;
  font-family: inherit;
}
.vd-gb-sale-ta:focus,
.vd-gb-sale-search:focus,
.vd-gb-sale-tpl:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.vd-gb-sale-err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 10px;
}
.vd-gb-sale-status {
  min-height: 18px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}
.vd-gb-sale-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}
.vd-gb-sale-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none !important;
  cursor: pointer;
}
.vd-gb-sale-btn-ghost {
  background: #f1f5f9;
  color: #334155 !important;
}
.vd-gb-sale-btn-primary {
  background: #2563eb;
  color: #fff !important;
}
.vd-gb-sale-btn-primary.is-busy,
.vd-gb-sale-btn[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
}

/* Non-SALE single client note modal */
#vdGbNoteBox {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99990 !important;
}
#vdGbNoteBox[style*="visibility: hidden"],
#vdGbNoteBox[style*="display: none"] {
  pointer-events: none !important;
}
.vd-gb-note-modal {
  width: min(520px, 100%);
}

/* Force note overlays above disposition modal */
#vdGbSaleContactBox,
#vdGbNoteBox {
  z-index: 200000 !important;
}
#vdGbSaleContactBox.vd-gb-overlay-open,
#vdGbNoteBox.vd-gb-overlay-open {
  visibility: visible !important;
  display: block !important;
  pointer-events: auto !important;
}

/* Logged-in agent identity in top bar */
.vd-chip-agent {
  max-width: 280px;
}
.vd-chip-agent #vdAgentUserChip {
  font-weight: 700;
  color: #0f172a;
}
.vd-chip-agent #vdAgentNameChip {
  font-weight: 600;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
  display: inline-block;
  vertical-align: bottom;
}
.vd-agent-sep {
  margin: 0 6px;
  color: #94a3b8;
  font-weight: 500;
}
