@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --radius-card: 18px;
  --radius-md: 12px;
  --font-sans: "Roboto", sans-serif;
}

*,
*::before,
*::after,
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
small,
strong,
b,
i,
em,
u,
label,
button,
input,
select,
textarea,
option,
optgroup,
table,
thead,
tbody,
tr,
th,
td,
ul,
ol,
li,
form,
fieldset {
  box-sizing: border-box;
  font-family: "Roboto", sans-serif !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, #eef2ff 0%, var(--bg) 45%, #ecfeff 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Palet Gradasi Modern (DropX Style) ===== */
.gradient-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gradient-card::before,
.gradient-card::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

.gradient-card::before {
  width: 140px;
  height: 140px;
  top: -36px;
  right: -32px;
  background: rgba(255, 255, 255, 0.14);
}

.gradient-card::after {
  width: 160px;
  height: 160px;
  bottom: -64px;
  right: -36px;
  background: rgba(255, 255, 255, 0.08);
}

.gradient-indigo {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 10px 24px -8px rgba(99, 102, 241, 0.4);
}

.gradient-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 10px 24px -8px rgba(16, 185, 129, 0.4);
}

.gradient-ocean {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  box-shadow: 0 10px 24px -8px rgba(6, 182, 212, 0.4);
}

.gradient-sunset {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  box-shadow: 0 10px 24px -8px rgba(249, 115, 22, 0.4);
}

.gradient-royal {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 10px 24px -8px rgba(59, 130, 246, 0.4);
}

.gradient-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 10px 24px -8px rgba(139, 92, 246, 0.4);
}

.gradient-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: 0 10px 24px -8px rgba(245, 158, 11, 0.4);
}

.gradient-rose {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  box-shadow: 0 10px 24px -8px rgba(236, 72, 153, 0.4);
}

.icon-chip {
  width: clamp(34px, 4.4vh, 44px);
  height: clamp(34px, 4.4vh, 44px);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.icon-chip svg {
  width: clamp(18px, 2.2vh, 22px);
  height: clamp(18px, 2.2vh, 22px);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ===== DISPLAY 1: LAYAR TV / MONITOR ANTRIAN ===== */
body.tv-mode {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
}

.tv-shell {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(8px, 1.2vh, 16px) clamp(12px, 1.5vw, 24px);
  gap: clamp(8px, 1.15vh, 14px);
  overflow: hidden;
}

.tv-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 1.8vw, 24px);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  padding: clamp(11px, 1.65vh, 22px) clamp(16px, 2vw, 30px);
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.12);
}

.tv-header .brand-wrap {
  gap: clamp(12px, 1.4vw, 20px);
}

.tv-header .brand-logo {
  width: clamp(52px, 7.2vh, 84px);
  height: clamp(52px, 7.2vh, 84px);
}

.tv-header .brand-text h1 {
  font-size: clamp(18px, 3vh, 34px);
}

.tv-header .brand-text p {
  font-size: clamp(13px, 1.95vh, 22px);
}

.tv-header .tv-clock-wrap {
  gap: clamp(12px, 1.5vw, 22px);
}

.tv-header .clock-date {
  font-size: clamp(13px, 1.9vh, 21px);
}

.tv-header .clock-time {
  font-size: clamp(22px, 3.8vh, 42px);
}

.tv-header .btn-icon-only {
  width: clamp(42px, 5.4vh, 58px);
  height: clamp(42px, 5.4vh, 58px);
  border-radius: 13px;
}

.tv-header .btn-icon-only svg {
  width: clamp(22px, 2.7vh, 28px);
  height: clamp(22px, 2.7vh, 28px);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: clamp(40px, 5vh, 58px);
  height: clamp(40px, 5vh, 58px);
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  margin: 0;
  font-size: clamp(17px, 2.4vh, 25px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text p {
  margin: 2px 0 0;
  font-size: clamp(10.5px, 1.3vh, 13.5px);
  font-weight: 600;
  color: #059669;
  letter-spacing: 0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-clock-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.clock-box {
  text-align: right;
}

.clock-date {
  font-size: clamp(10.5px, 1.25vh, 13px);
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
}

.clock-time {
  font-size: clamp(17px, 2.5vh, 26px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.btn-icon-only {
  width: clamp(36px, 4.4vh, 42px);
  height: clamp(36px, 4.4vh, 42px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #0f172a;
  border-radius: 11px;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.btn-icon-only:hover {
  background: var(--surface-muted);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-icon-only svg {
  width: 19px;
  height: 19px;
}

/* Spotlight Banner Sedang Dipanggil */
.tv-spotlight {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: clamp(8px, 1.1vw, 16px);
  min-height: 0;
}

.spotlight-main {
  padding: clamp(10px, 1.6vh, 20px) clamp(14px, 1.9vw, 26px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.spotlight-left {
  min-width: 0;
  z-index: 2;
}

.spotlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(10px, 1.25vh, 13px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 3px;
}

.spotlight-badge {
  background: rgba(255, 255, 255, 0.24);
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: clamp(9.5px, 1.15vh, 12px);
  font-weight: 700;
}

.spotlight-poli {
  font-size: clamp(18px, 2.7vh, 30px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-meta {
  margin-top: 4px;
  font-size: clamp(11px, 1.45vh, 15px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-right {
  z-index: 2;
  text-align: right;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: clamp(8px, 1.1vh, 14px) clamp(14px, 1.8vw, 26px);
  min-width: clamp(135px, 15vw, 220px);
  flex-shrink: 0;
}

.spotlight-num-label {
  font-size: clamp(9.5px, 1.1vh, 11.5px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
}

.spotlight-num {
  font-size: clamp(28px, 5.1vh, 54px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.spotlight-side {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(9px, 1.25vh, 16px) clamp(12px, 1.4vw, 18px);
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
}

.spotlight-side-title {
  font-size: clamp(10px, 1.2vh, 12px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.65vh, 6px);
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: clamp(4px, 0.6vh, 6px) 10px;
  background: var(--surface-muted);
  border-radius: 9px;
  font-size: clamp(11px, 1.3vh, 13px);
}

.recent-item-poli {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.recent-item-num {
  font-weight: 800;
  color: var(--primary);
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Grid Dinamis Kartu Poliklinik (1 s.d. 15+ kartu muat pas 1 layar) */
.tv-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--tv-cols, 4), minmax(0, 1fr));
  grid-template-rows: repeat(var(--tv-rows, 2), minmax(0, 1fr));
  gap: clamp(8px, 1.15vh, 14px);
}

.tv-grid[data-count="1"] .poli-card {
  padding: clamp(20px, 3.4vh, 40px) clamp(24px, 3.2vw, 46px);
}

.tv-grid[data-count="1"] .poli-kicker {
  font-size: clamp(20px, 3.6vh, 42px);
}

.tv-grid[data-count="1"] .poli-title {
  font-size: clamp(35px, 8vh, 100px);
}

.tv-grid[data-count="1"] .poli-number {
  font-size: clamp(75px, 45vh, 350px);
}

.tv-grid[data-count="1"] .poli-patient {
  font-size: clamp(17px, 2.8vh, 30px);
}

.tv-grid[data-count="1"] .poli-bottom {
  font-size: clamp(20px, 4vh, 70px);
  padding-top: clamp(10px, 1.4vh, 16px);
}

.tv-grid[data-count="1"] .poli-status-pill {
  font-size: clamp(13px, 1.8vh, 20px);
  padding: 4px 14px;
}

.tv-grid[data-count="1"] .icon-chip {
  width: clamp(54px, 7.6vh, 78px);
  height: clamp(54px, 7.6vh, 78px);
  border-radius: 18px;
}

.tv-grid[data-count="1"] .icon-chip svg {
  width: clamp(28px, 4vh, 40px);
  height: clamp(28px, 4vh, 40px);
}

.tv-grid[data-count="2"] .poli-card {
  padding: clamp(16px, 2.6vh, 32px) clamp(18px, 2.4vw, 34px);
}

.tv-grid[data-count="2"] .poli-kicker {
  font-size: clamp(18px, 3.1vh, 34px);
}

.tv-grid[data-count="2"] .poli-title {
  font-size: clamp(26px, 6vh, 75px);
}

.tv-grid[data-count="2"] .poli-number {
  font-size: clamp(75px, 70vh, 300px);
}

.tv-grid[data-count="2"] .poli-patient {
  font-size: clamp(15px, 2.1vh, 25px);
}

.tv-grid[data-count="2"] .poli-bottom {
  font-size: clamp(35px, 4vh, 200px);
  padding-top: clamp(8px, 1.2vh, 14px);
}

.tv-grid[data-count="2"] .poli-status-pill {
  font-size: clamp(11px, 1.5vh, 17px);
  padding: 4px 12px;
}

.tv-grid[data-count="2"] .icon-chip {
  width: clamp(46px, 6.2vh, 66px);
  height: clamp(46px, 6.2vh, 66px);
  border-radius: 16px;
}

.tv-grid[data-count="2"] .icon-chip svg {
  width: clamp(24px, 3.2vh, 34px);
  height: clamp(24px, 3.2vh, 34px);
}

.tv-grid[data-count="3"] .poli-kicker,
.tv-grid[data-count="4"] .poli-kicker {
  font-size: clamp(15px, 2.5vh, 27px);
}

.tv-grid[data-count="3"] .poli-title,
.tv-grid[data-count="4"] .poli-title {
  font-size: clamp(22px, 3.8vh, 42px);
}

.tv-grid[data-count="3"] .poli-number,
.tv-grid[data-count="4"] .poli-number {
  font-size: clamp(42px, 7.8vh, 84px);
}

.tv-grid[data-count="3"] .poli-patient,
.tv-grid[data-count="4"] .poli-patient {
  font-size: clamp(13px, 1.9vh, 21px);
}

.tv-grid[data-count="3"] .poli-bottom,
.tv-grid[data-count="4"] .poli-bottom {
  font-size: clamp(14px, 2.35vh, 25px);
}

.tv-grid[data-count="3"] .poli-status-pill,
.tv-grid[data-count="4"] .poli-status-pill {
  font-size: clamp(10.5px, 1.35vh, 15px);
  padding: 3px 10px;
}

.tv-grid.is-dense {
  gap: clamp(6px, 0.9vh, 10px);
}

.tv-grid.is-dense .poli-card {
  padding: clamp(8px, 1.1vh, 13px) clamp(10px, 1.1vw, 15px);
}

.tv-grid.is-dense .poli-kicker {
  font-size: clamp(11px, 1.6vh, 17px);
}

.tv-grid.is-dense .poli-title {
  font-size: clamp(14px, 2.25vh, 24px);
}

.tv-grid.is-dense .poli-number {
  font-size: clamp(24px, 4.1vh, 42px);
}

.tv-grid.is-dense .poli-bottom {
  font-size: clamp(11px, 1.55vh, 17px);
}

.tv-grid.is-dense .poli-doctor {
  display: block;
  white-space: nowrap;
  -webkit-line-clamp: unset;
}

.tv-grid.is-dense .icon-chip {
  width: clamp(28px, 3.6vh, 36px);
  height: clamp(28px, 3.6vh, 36px);
  border-radius: 10px;
}

.tv-grid.is-dense .icon-chip svg {
  width: clamp(15px, 1.9vh, 18px);
  height: clamp(15px, 1.9vh, 18px);
}

.tv-grid-empty {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-card);
  padding: 24px;
  color: #334155;
}

.tv-grid-empty h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.tv-grid-empty p {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  max-width: 520px;
}

.poli-card {
  padding: clamp(10px, 1.5vh, 20px) clamp(12px, 1.4vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.poli-card.is-calling {
  animation: callRing 1.1s ease-in-out 4;
}

@keyframes callRing {

  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9), 0 18px 34px -8px rgba(15, 23, 42, 0.35);
  }

  50% {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.85), 0 22px 40px -6px rgba(15, 23, 42, 0.45);
  }
}

.poli-card.is-closed {
  filter: grayscale(0.55) opacity(0.84);
}

.poli-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.poli-top>div:first-child {
  min-width: 0;
}

.poli-kicker {
  font-size: clamp(15px, 2.5vh, 40px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poli-title {
  font-size: clamp(20px, 4vh, 40px);
  font-weight: 800;
  margin: 2px 0 0;
  line-height: 1.14;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poli-middle {
  position: relative;
  z-index: 2;
  margin: 2px 0;
  min-width: 0;
}

.poli-number {
  font-size: clamp(75px, 23vh, 300px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.poli-patient {
  margin-top: 4px;
  font-size: clamp(11.5px, 1.6vh, 17px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poli-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: clamp(6px, 0.95vh, 10px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: clamp(15px, 2.3vh, 35px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  min-width: 0;
}

.poli-doctor {
  min-width: 0;
  line-height: 1.22;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poli-status-pill {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: clamp(9px, 1.05vh, 11px);
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Footer Ticker TV */
.tv-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: 15px;
  padding: clamp(10px, 1.5vh, 20px) clamp(14px, 1.8vw, 26px);
  font-size: clamp(15px, 2.3vh, 26px);
  font-weight: 700;
  overflow: hidden;
}

.ticker-badge {
  flex-shrink: 0;
  background: #10b981;
  color: #ffffff;
  font-size: clamp(12px, 1.7vh, 19px);
  font-weight: 800;
  padding: clamp(5px, 0.7vh, 9px) clamp(12px, 1.3vw, 18px);
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: tickerScroll 26s linear infinite;
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* ===== DISPLAY 2: OPERATOR / PEMANGGIL PASIEN ===== */
body.op-mode {
  min-height: 100vh;
  min-height: 100dvh;
}

.op-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(10px, 1.3vh, 16px) clamp(12px, 1.5vw, 22px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vh, 14px);
}

.op-topbar {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 8px 24px -14px rgba(15, 23, 42, 0.14);
}

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

.op-tv-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.op-tv-select {
  width: auto;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
}

.btn-primary-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 11px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 8px 18px -6px rgba(79, 70, 229, 0.5);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary-solid:hover {
  transform: translateY(-1px);
}

.btn-primary-solid:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-emerald-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 11px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-emerald-solid:hover {
  transform: translateY(-1px);
}

.btn-amber-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 11px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: 0 8px 20px -6px rgba(245, 158, 11, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-neutral {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.btn-neutral:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.kpi-grid {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 82px;
}

.kpi-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kpi-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
}

.kpi-val {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.08;
}

.kpi-sub {
  position: relative;
  z-index: 2;
  margin-top: 2px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-main-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.12fr;
  gap: 14px;
  align-items: stretch;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 26px -16px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.op-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tv-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.tv-filter-pill {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 9999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tv-filter-pill:hover {
  background: #eef2ff;
  border-color: #818cf8;
  color: #3730a3;
}

.tv-filter-pill.is-active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.5);
}

.selector-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(98px, auto);
  align-content: start;
  overflow-y: auto;
  padding-right: 2px;
  gap: 9px;
}

.selector-card {
  padding: 10px 12px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  min-height: 98px;
  min-width: 0;
}

.selector-card-doc {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tv-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.tv-check-pill input[type="checkbox"] {
  accent-color: #4f46e5;
}

.selector-card:hover {
  transform: translateY(-1px);
}

.selector-card.is-selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px #4f46e5, 0 12px 24px -8px rgba(79, 70, 229, 0.45);
}

.selector-card-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.selector-quick-btn {
  position: relative;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.selector-quick-btn:hover {
  background: rgba(255, 255, 255, 0.36);
}

.active-poli-banner {
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.cta-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.sub-cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.sub-cta-row > button {
  width: 100%;
  justify-content: center;
}

.audio-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #334155;
  flex-shrink: 0;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
}

/* Segmented Tabs di Panel Operator */
.tab-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 11px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.tab-btn {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.tab-pane {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.tab-pane.is-active {
  display: flex;
}

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

.field-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.input-control {
  width: 100%;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 13px;
}

.input-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.patient-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.patient-table {
  width: 100%;
  min-width: 470px;
  border-collapse: collapse;
  font-size: 12px;
}

.patient-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: left;
  padding: 8px 9px;
  border-bottom: 1px solid var(--border);
}

.patient-table td {
  padding: 8px 9px;
  border-bottom: 1px solid #f1f5f9;
}

.history-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.history-row-info strong {
  font-size: 13px;
  color: #0f172a;
}

.history-row-info small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.khanza-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.khanza-status-pill.is-online {
  background: #dcfce7;
  color: #166534;
}

.khanza-status-pill.is-offline {
  background: #f1f5f9;
  color: #475569;
}

.empty-state-box {
  padding: 18px 14px;
  text-align: center;
  color: #64748b;
  font-size: 12.5px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}

.badge-stts {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
}

.badge-belum {
  background: #fef3c7;
  color: #b45309;
}

.badge-sudah {
  background: #dcfce7;
  color: #15803d;
}

.toast-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  max-height: 92dvh;
  padding: 20px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-box.modal-wide {
  max-width: 880px;
}

.modal-body-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

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

.tv-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}

.tv-link-card strong {
  display: block;
  color: #0f172a;
  font-size: 12.5px;
}

.tv-link-card small {
  display: block;
  color: #64748b;
  font-size: 11px;
}

.mapping-table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  max-height: 360px;
  overflow-y: auto;
}

.mapping-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 12px;
}

.mapping-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: left;
  padding: 8px 9px;
  border-bottom: 1px solid var(--border);
}

.mapping-table td {
  padding: 7px 9px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.mapping-table td.tv-chk-cell,
.mapping-table th.tv-chk-cell {
  text-align: center;
  width: 52px;
}

.mapping-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4f46e5;
  cursor: pointer;
}

.brand-trigger {
  cursor: pointer;
  user-select: none;
}

.tv-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.tv-picker-card {
  text-align: left;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tv-picker-card:hover,
.tv-picker-card:focus-visible {
  outline: none;
  border-color: #6366f1;
  background: #eef2ff;
  transform: translateY(-1px);
}

.tv-picker-card.is-active {
  border-color: #4f46e5;
  background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.tv-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tv-picker-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.tv-picker-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #e0e7ff;
  color: #3730a3;
  white-space: nowrap;
}

.tv-picker-desc {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .tv-picker-grid {
    grid-template-columns: 1fr;
  }
}

.tv-empty-picker-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #4338ca;
  background: #4f46e5;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.tv-empty-picker-btn:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

/* Login Operator (Akses Seluler / Laptop Aman) */
.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px 22px;
  box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.18);
}

.login-alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Sticky Thumb Action Bar di HP */
.mobile-call-bar {
  display: none;
}

/* ===== FULL-VIEWPORT LOCK ON DESKTOP / LAPTOP OPERATOR ===== */
@media (min-width: 1080px) and (min-height: 640px) {
  body.op-mode {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .op-container {
    height: 100%;
    overflow: hidden;
  }

  .op-col-control {
    overflow-y: auto;
  }
}

/* Laptop / Smart TV 720p Layar Pendek (tetap 100% pas 1 layar Display 1) */
@media (min-width: 900px) and (max-height: 760px) {
  .tv-shell {
    padding: 8px 14px;
    gap: 8px;
  }

  .tv-header {
    padding: 8px 16px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .tv-header .brand-logo {
    width: 48px;
    height: 48px;
  }

  .spotlight-main {
    padding: 10px 16px;
  }

  .spotlight-side {
    padding: 8px 12px;
  }

  .recent-item {
    padding: 3px 8px;
  }

  .poli-card {
    padding: 9px 13px;
  }

  .poli-number {
    font-size: clamp(24px, 4.5vh, 42px);
  }

  .tv-footer {
    padding: 9px 16px;
  }
}

/* Portrait Kiosk TV / iPad Tinggi */
@media (max-width: 899px) and (min-height: 780px) {
  body.tv-mode {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .tv-shell {
    height: 100%;
  }

  .tv-spotlight {
    grid-template-columns: 1fr;
  }

  .tv-grid {
    grid-template-columns: repeat(var(--tv-portrait-cols, 2), minmax(0, 1fr));
    grid-template-rows: repeat(var(--tv-portrait-rows, 4), minmax(0, 1fr));
  }
}

/* Tablet & Laptop Menengah */
@media (max-width: 1079px) {
  .op-main-grid {
    grid-template-columns: 1fr;
  }

  .selector-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(96px, auto);
    max-height: none;
    overflow-y: visible;
  }

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

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

  .patient-table-wrap {
    max-height: 340px;
  }

  .history-list {
    max-height: 290px;
  }
}

/* Display 1 pada Layar Kecil / HP */
@media (max-width: 899px) and (max-height: 779px),
(max-width: 560px) {
  body.tv-mode {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .tv-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .tv-spotlight {
    grid-template-columns: 1fr;
  }

  .tv-grid {
    grid-template-columns: repeat(var(--tv-mobile-cols, 2), minmax(0, 1fr));
    grid-template-rows: auto;
    grid-auto-rows: minmax(150px, auto);
  }

  .tv-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .op-container {
    padding: 10px 10px 88px;
    gap: 12px;
  }

  .op-topbar {
    padding: 10px 12px;
  }

  .op-topbar .brand-text h1 {
    font-size: clamp(17px, 4.3vw, 22px);
    white-space: normal;
    line-height: 1.2;
  }

  .op-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .op-tv-picker {
    display: none;
  }

  .op-actions > button {
    width: 100%;
    justify-content: center;
  }

  .kpi-grid {
    display: none;
  }

  .panel-card {
    padding: 12px;
  }

  .active-poli-banner {
    padding: 12px 14px;
  }

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

  .mobile-call-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .toast-banner {
    bottom: 76px;
    left: 12px;
    right: 12px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .tv-header {
    padding: 8px 12px;
    gap: 8px;
  }

  .tv-header .brand-text h1 {
    font-size: 14px;
  }

  .tv-header .brand-logo {
    width: 38px;
    height: 38px;
  }

  .tv-header .brand-text p,
  .tv-header .clock-date {
    font-size: 11px;
  }

  .tv-header .clock-time {
    font-size: 18px;
  }

  .tv-header .btn-icon-only {
    width: 36px;
    height: 36px;
  }

  .tv-footer {
    padding: 8px 12px;
    gap: 8px;
    font-size: 13px;
  }

  .ticker-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .cta-row,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .kpi-card {
    padding: 11px 12px;
    min-height: 76px;
  }

  .kpi-val {
    font-size: 20px;
  }

  .selector-card {
    padding: 10px;
  }

  .input-control {
    font-size: 16px;
  }

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

  .spotlight-right {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .tv-grid {
    grid-template-columns: 1fr;
  }
}