    :root {
      --hospital-green: #086334;
      --accent-green: #0fa958;
      --light-green-bg: #eaf6ee;
      --dark-navy: #0f172a;
      --border-color: #cbd5e1;
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
      background-color: #f1f5f9;
      color: var(--dark-navy);
      height: 100vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    /* Header */
    .hospital-header {
      background: #ffffff;
      border-bottom: 4px solid var(--hospital-green);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
      flex-shrink: 0;
    }

    .time-box {
      background: #0f172a;
      color: #38ef7d;
      border-radius: 8px;
      padding: 4px 16px;
      font-family: monospace;
      font-weight: 900;
      letter-spacing: 1px;
    }

    /* Banner Judul */
    .banner-title {
      background: var(--hospital-green);
      color: #ffffff;
      font-size: 1.25rem;
      font-weight: 800;
      letter-spacing: 0.8px;
      flex-shrink: 0;
    }

    /* Main Area */
    .main-wrapper {
      flex: 1;
      min-height: 0;
    }

    .video-wrapper {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #000;
    height: 100%;
}

#youtube-player,
#youtube-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

    .video-wrapper video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Container Tabel & Auto Scroll */
    .table-container {
      background: #ffffff;
      border-radius: 12px;
      border: 2px solid var(--border-color);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      height: 100%;
      overflow-y: auto;
      position: relative;
      scrollbar-width: none;
    }

    .table-container::-webkit-scrollbar {
      display: none;
    }

    .custom-table {
      width: 100%;
      margin-bottom: 0;
      border-collapse: collapse;
      table-layout: auto;
    }

    .custom-table thead th {
      position: sticky;
      top: 0;
      z-index: 10;
      background-color: var(--hospital-green);
      color: #ffffff;
      font-size: 0.95rem;
      font-weight: 800;
      text-transform: uppercase;
      padding: 10px 8px;
      border-right: 2px solid rgba(255, 255, 255, 0.2);
      vertical-align: middle;
      white-space: nowrap;
    }

    .custom-table tbody tr {
      border-bottom: 2px solid var(--border-color);
    }

    .custom-table tbody tr:nth-child(even) {
      background-color: #f8fafc;
    }

    .custom-table tbody tr:nth-child(odd) {
      background-color: #ffffff;
    }

    .custom-table td {
      padding: 10px 8px;
      vertical-align: middle;
      font-size: 0.92rem;
      font-weight: 700;
      color: #1e293b;
      border-right: 1px solid var(--border-color);
      line-height: 1.35;
      word-wrap: break-word; /* Membungkus teks agar tidak terpotong */
    }

    /* Tipografi & Badge */
    .patient-name {
      font-size: 1.05rem !important;
      font-weight: 900 !important;
      color: #0b4a26 !important;
      text-transform: uppercase;
    }

    .patient-address {
      font-size: 0.88rem;
      font-weight: 700;
      color: #334155;
      text-transform: uppercase;
    }

    .doctor-name {
      font-size: 0.9rem;
      font-weight: 800;
      color: #0f172a;
    }

    .room-badge {
      background-color: var(--light-green-bg);
      color: var(--hospital-green);
      border: 1.5px solid #a3e0b9;
      font-size: 0.82rem;
      font-weight: 800;
      padding: 4px 6px;
      border-radius: 6px;
      display: inline-block;
      white-space: nowrap;
    }

    .time-start {
      background-color: #0f172a;
      color: #38ef7d;
      font-size: 1.05rem;
      font-weight: 900;
      padding: 4px 6px;
      border-radius: 6px;
      display: inline-block;
      min-width: 58px;
    }

    .time-end {
      background-color: #f1f5f9;
      color: #334155;
      border: 1.5px solid #cbd5e1;
      font-size: 1.05rem;
      font-weight: 900;
      padding: 4px 6px;
      border-radius: 6px;
      display: inline-block;
      min-width: 58px;
    }

    /* Running Text */
    .marquee-footer {
      background: #0a4d29;
      color: #ffffff;
      font-size: 1.1rem;
      font-weight: 800;
      border-top: 3px solid #22c55e;
      flex-shrink: 0;
    }

    /* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 991.98px) {

  body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Header */
  .hospital-header {
    padding: 10px 15px !important;
  }

  .hospital-header > .d-flex {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hospital-header .text-center {
    order: 2;
    flex: 1 1 100%;
  }

  .hospital-header .time-box {
    order: 3;
  }

  .hospital-header > .d-flex > div:first-child {
    order: 1;
  }

  .hospital-header .text-center h2 {
    font-size: 1.5rem;
  }

  .hospital-header .text-center .badge {
    font-size: 0.75rem !important;
  }

  .time-box {
    padding: 4px 12px;
  }

  .time-box .fs-3 {
    font-size: 1.4rem !important;
  }

  /* Banner */
  .banner-title {
    font-size: 1rem;
    padding: 9px 8px !important;
  }

  /* Main */
  .main-wrapper {
    height: auto;
    min-height: auto;
  }

  .main-wrapper > .row {
    height: auto !important;
  }

  /* Video */
  .main-wrapper .col-3 {
    width: 100%;
    height: 350px !important;
    margin-bottom: 10px;
  }

  .video-wrapper {
    min-height: 300px;
  }

  /* Table */
  .main-wrapper .col-9 {
    width: 100%;
    height: auto !important;
  }

  .table-container {
    height: 500px;
    overflow-x: auto;
    overflow-y: auto;
  }

  .custom-table {
    min-width: 950px;
  }

  /* Footer */
  .marquee-footer {
    font-size: 0.9rem;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Header */
  .hospital-header {
    padding: 8px 10px !important;
  }

  .hospital-header > .d-flex {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* Tanggal */
  .hospital-header > .d-flex > div:first-child {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
  }

  .hospital-header > .d-flex > div:first-child > div {
    padding: 5px 10px !important;
  }

  #current-day {
    font-size: 0.9rem !important;
  }

  #current-date {
    font-size: 0.65rem !important;
  }

  /* Nama RS */
  .hospital-header .text-center {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .hospital-header .text-center h2 {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .hospital-header .text-center .badge {
    display: inline-block;
    font-size: 0.6rem !important;
    padding: 4px 8px !important;
    white-space: normal;
  }

  /* Jam */
  .hospital-header .time-box {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .time-box {
    padding: 3px 8px;
    border-radius: 6px;
  }

  .time-box .fs-3 {
    font-size: 1.1rem !important;
  }

  /* Banner */
  .banner-title {
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    line-height: 1.3;
    padding: 8px 5px !important;
  }

  .banner-title i {
    margin-right: 3px !important;
  }

  /* Main */
  .main-wrapper {
    padding: 8px !important;
  }

  .main-wrapper > .row {
    height: auto !important;
  }

  /* Video */
  .main-wrapper .col-3 {
    width: 100%;
    height: auto !important;
    min-height: 0;
  }

  .video-wrapper {
    height: 220px !important;
    min-height: 220px;
    margin-bottom: 8px !important;
  }

  /* Info */
  .main-wrapper .col-3 > div:last-child {
    font-size: 0.75rem !important;
    padding: 8px !important;
    line-height: 1.4;
  }

  /* Tabel */
  .main-wrapper .col-9 {
    width: 100%;
    height: auto !important;
  }

  .table-container {
    height: 450px;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: auto;
  }

  /*
   * Tetap beri lebar minimum supaya
   * kolom tidak terlalu sempit.
   */
  .custom-table {
    min-width: 900px;
  }

  .custom-table thead th {
    font-size: 0.75rem;
    padding: 8px 6px;
  }

  .custom-table td {
    font-size: 0.75rem;
    padding: 8px 6px;
  }

  .patient-name {
    font-size: 0.82rem !important;
  }

  .patient-address {
    font-size: 0.72rem;
  }

  .doctor-name {
    font-size: 0.75rem;
  }

  .room-badge {
    font-size: 0.7rem;
    padding: 3px 5px;
  }

  .time-start,
  .time-end {
    font-size: 0.8rem;
    min-width: 50px;
    padding: 3px 5px;
  }

  /* Footer */
  .marquee-footer {
    font-size: 0.75rem;
    padding: 7px 8px !important;
  }
}


/* =========================================================
   HP SANGAT KECIL
   ========================================================= */

@media (max-width: 480px) {

  .hospital-header .text-center h2 {
    font-size: 1.1rem;
  }

  .hospital-header .text-center .badge {
    font-size: 0.55rem !important;
  }

  #current-day {
    font-size: 0.8rem !important;
  }

  #current-date {
    font-size: 0.55rem !important;
  }

  .time-box .fs-3 {
    font-size: 1rem !important;
  }

  .banner-title {
    font-size: 0.72rem;
  }

  .video-wrapper {
    height: 190px !important;
    min-height: 190px;
  }

  .table-container {
    height: 400px;
  }

  .marquee-footer {
    font-size: 0.65rem;
  }
}
