/* ============================================================
   CSS HALAMAN MONITOR DISPLAY (PIDS Pelabuhan)
   Digital signage kedatangan & keberangkatan kapal.
   ============================================================ */

/* ---------- FONT ---------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/Inter-Variable-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Oswald-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Oswald-500.ttf') format('truetype');
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Oswald-600.ttf') format('truetype');
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Oswald-700.ttf') format('truetype');
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/BarlowCondensed-500.ttf') format('truetype');
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/BarlowCondensed-600.ttf') format('truetype');
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/BarlowCondensed-700.ttf') format('truetype');
}

/* ---------- DESIGN TOKENS ---------- */
:root {
    --ocean-900: #023e8a;
    --ocean-800: #00509d;
    --ocean-700: #0077b6;
    --ocean-500: #0096c7;
    --ocean-300: #90e0ef;
    --ice: #caf0f8;
    --ice-pale: #e0fbfc;

    --accent-cyan: #22d3ee;
    --accent-blue: #38bdf8;
    --accent-gold: #fbbf24;
    --accent-green: #34d399;
    --accent-red: #f87171;

    --text-primary: #ffffff;
    --text-secondary: var(--ice-pale);
    --text-muted: var(--ice);

    --border-subtle: rgba(202, 240, 248, 0.15);
    --border-accent: rgba(202, 240, 248, 0.30);

    --radius: 10px;
    --radius-lg: 14px;

    --row-stripe: rgba(255, 255, 255, 0.04);
    --row-hover: rgba(255, 255, 255, 0.08);
    --divider-color: rgba(144, 224, 239, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body.display-body {
    background:
        radial-gradient(900px 450px at 50% -10%, rgba(202, 240, 248, 0.25), transparent 55%),
        linear-gradient(175deg, var(--ocean-900) 0%, var(--ocean-700) 55%, var(--ocean-500) 100%);
    color: var(--text-primary);
    font-family: 'Oswald', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER
   ============================================================ */
.d-header {
    display: flex;
    align-items: center;
    gap: 1vw;
    min-height: 7vh;
    padding: 0.6vh 2vw 0.6vh 1.4vw;
    background: linear-gradient(90deg, var(--ocean-900) 0%, var(--ocean-700) 100%);
    box-shadow: 0 8px 32px rgba(0, 119, 182, 0.50);
    position: relative;
    z-index: 5;
}

.d-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--ocean-300) 0%, var(--accent-blue) 50%, var(--ocean-300) 100%);
    opacity: 0.7;
}

.d-logo {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    border-radius: 6px;
    background: #ffffff;
    padding: 0.35vh 0.6vw;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    color: var(--accent-gold);
    font-size: clamp(22px, 2.8vw, 46px);
    line-height: 1;
    flex-shrink: 0;
}

.d-logo img {
    height: 6.5vh;
    width: auto;
    max-width: 16vw;
    max-height: 8.5vh;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.d-title {
    flex: 1;
    min-width: 0;
}

.d-title h1 {
    font-size: clamp(16px, 1.9vw, 34px);
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.30);
}

.pelabuhan-prefix { color: var(--ice); }
.pelabuhan-name { color: var(--accent-gold); }
.pelabuhan-dash { color: var(--ice); opacity: 0.5; margin: 0 0.3vw; }
.pelabuhan-lokasi { color: var(--ice-pale); }

.d-subtitle {
    display: block;
    color: #ffffff;
    font-size: clamp(10px, 0.85vw, 15px);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.25vh;
    opacity: 0.9;
}

.d-live {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(74, 222, 128, 0.65);
    color: #4ade80;
    font-weight: 800;
    letter-spacing: 4px;
    font-size: clamp(10px, 0.75vw, 13px);
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: livePulse 1.4s infinite;
}

@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.70); }
    70%  { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.d-clock {
    text-align: right;
    flex-shrink: 0;
    padding-left: 1.5vw;
    border-left: 1px solid rgba(255, 255, 255, 0.20);
    line-height: 1.1;
}

#clock-date {
    color: var(--ice-pale);
    font-size: clamp(13px, 1.1vw, 20px);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: capitalize;
    margin-bottom: 0.3vh;
}

#clock-time {
    font-size: clamp(28px, 3.2vw, 56px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
    font-family: 'Consolas', 'Courier New', 'Liberation Mono', monospace;
    letter-spacing: 1px;
    color: var(--ocean-300);
    text-shadow: 0 0 30px rgba(144, 224, 239, 0.60);
    min-width: 2.2em;
    white-space: nowrap;
    text-align: right;
    position: relative;
}

/* ============================================================
   BAGIAN UTAMA — layout kiri-kanan
   ============================================================ */
.d-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0.6vh 0.6vw;
    overflow: hidden;
    min-height: 0;
}

.panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    background: rgba(2, 15, 40, 0.45);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid var(--border-accent);
    position: relative;
}

/* Maritime watermark di panel kosong */
.panel::after {
    content: "\f21a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: 2vh;
    right: 2vw;
    font-size: clamp(80px, 10vw, 180px);
    color: rgba(255, 255, 255, 0.025);
    pointer-events: none;
    z-index: 0;
}

.panel-arrivals::after { content: "\f13d"; }
.panel-departures::after { content: "\f21a"; }

.d-divider {
    width: 1px;
    background: var(--divider-color);
    flex-shrink: 0;
    margin: 0.5vh 0.8vw;
}

/* --- Panel header --- */
.panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5vh 0.8vw;
    position: relative;
    z-index: 1;
}

.panel-arrivals .panel-head {
    background: rgba(0, 119, 182, 0.12);
    border-bottom: 2px solid rgba(144, 224, 239, 0.30);
}

.panel-departures .panel-head {
    background: rgba(0, 119, 182, 0.12);
    border-bottom: 2px solid rgba(144, 224, 239, 0.30);
}

.panel-head h2 {
    font-size: clamp(14px, 1.4vw, 22px);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ice);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.panel-tag {
    margin-left: auto;
    color: var(--ice);
    font-size: clamp(9px, 0.75vw, 12px);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(144, 224, 239, 0.12);
    border: 1px solid rgba(144, 224, 239, 0.25);
    padding: 3px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

/* --- Panel body / tabel --- */
.panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.panel-body::-webkit-scrollbar { width: 4px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(202, 240, 248, 0.20); border-radius: 10px; }
.panel-body::-webkit-scrollbar-thumb:hover { background: rgba(202, 240, 248, 0.35); }

/* Saat auto-scroll ticker aktif (baris melebihi panel):
   sembunyikan scrollbar dan beri fade halus di tepi atas/bawah. */
.panel.auto-scrolling .panel-body {
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.panel.auto-scrolling .panel-body::-webkit-scrollbar { display: none; }

/* --- Tabel --- */
.d-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* --- Header kolom --- */
.d-table thead th {
    font-family: 'Barlow Condensed', 'Oswald', 'Inter', 'Segoe UI', sans-serif;
    color: var(--ice);
    font-size: clamp(10px, 0.9vw, 15px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: left;
    padding: 0.5vh 0.6vw;
    background: rgba(0, 50, 100, 0.25);
    border-bottom: 2px solid rgba(144, 224, 239, 0.25);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.d-table thead th:last-child {
    text-align: center;
}

/* --- Data baris --- */
.d-table tbody td {
    font-family: 'Barlow Condensed', 'Oswald', 'Inter', 'Segoe UI', sans-serif;
    padding: 0.55vh 0.6vw;
    font-size: clamp(13px, 1.3vw, 22px);
    font-weight: 500;
    color: var(--ice-pale);
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: background 0.15s;
}

/* Nama kapal (kolom 2) -> 600 */
.d-table tbody td:nth-child(2) {
    font-weight: 600;
}

/* Jam / jadwal (kolom 1) -> 600; tanggal kecil dalamnya -> 500 */
.d-table tbody td:nth-child(1) {
    font-weight: 600;
}
.d-table tbody td:nth-child(1) .jadwal-date {
    font-weight: 500;
}

/* Status (kolom 5) -> 600 */
.d-table tbody td:nth-child(5) {
    font-weight: 600;
}

.d-table tbody td:not(.col-time):not(.col-status) {
    max-width: 0;
}

.d-table tbody tr:nth-child(even) { background: var(--row-stripe); }
.d-table tbody tr:hover { background: var(--row-hover); }
.d-table tbody tr:last-child td { border-bottom: 0; }

/* --- Lebar kolom proporsional (5 kolom) --- */
.d-table th:nth-child(1), .d-table td:nth-child(1) { width: 14%; white-space: nowrap; }
.d-table th:nth-child(2), .d-table td:nth-child(2) { width: 28%; }
.d-table th:nth-child(3), .d-table td:nth-child(3) { width: 20%; }
.d-table th:nth-child(4), .d-table td:nth-child(4) { width: 16%; }
.d-table th:nth-child(5), .d-table td:nth-child(5) { width: 22%; text-align: center; }

/* --- Kolom jadwal (jam badge + tanggal) --- */
.col-time { vertical-align: middle; }

.jadwal-time {
    display: inline-block;
    font-size: clamp(13px, 1.15vw, 20px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    line-height: 1.3;
    padding: 0.25vh 0.5vw;
    border-radius: 6px;
    white-space: nowrap;
}

.jadwal-date {
    font-size: clamp(11px, 0.85vw, 14px);
    font-weight: 600;
    color: var(--ice);
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-top: 0.25vh;
}

.panel-arrivals .jadwal-time {
    background: rgba(144, 224, 239, 0.18);
    color: var(--ocean-300);
    border: 1px solid rgba(144, 224, 239, 0.35);
}

.panel-departures .jadwal-time {
    background: rgba(251, 191, 36, 0.18);
    color: var(--accent-gold);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

/* --- Nama kapal --- */
.vessel {
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* --- Kolom status: badge berwarna + ikon --- */
.col-status {
    text-align: center;
    white-space: nowrap;
}

.status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.25vh 0.5vw;
    border-radius: 6px;
    font-size: clamp(12px, 1.05vw, 17px);
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge.sandar     { background: rgba(34,211,153,0.28); color: #6ee7b7; border: 1px solid rgba(34,211,153,0.45); }
.status-badge.bongkar    { background: rgba(56,189,248,0.28); color: #7dd3fc; border: 1px solid rgba(56,189,248,0.45); }
.status-badge.persiapan  { background: rgba(251,191,36,0.28); color: #fde68a; border: 1px solid rgba(251,191,36,0.45); }
.status-badge.berangkat  { background: rgba(167,139,250,0.28); color: #c4b5fd; border: 1px solid rgba(167,139,250,0.45); }
.status-badge.eta        { background: rgba(45,212,191,0.28); color: #99f6e4; border: 1px solid rgba(45,212,191,0.45); }
.status-badge.terjadwal  { background: rgba(148,163,184,0.22); color: #cbd5e1; border: 1px solid rgba(148,163,184,0.35); }
.status-badge.dalam-perjalanan { background: rgba(129,140,248,0.3); color: #c7d2fe; border: 1px solid rgba(129,140,248,0.5); }
.status-badge.tertunda   { background: rgba(239,68,68,0.28); color: #fca5a5; border: 1px solid rgba(239,68,68,0.45); }
.status-badge.selesai    { background: rgba(34,197,94,0.20); color: #86efac; border: 1px solid rgba(34,197,94,0.30); }
.status-badge.dibatalkan { background: rgba(239,68,68,0.28); color: #fca5a5; border: 1px solid rgba(239,68,68,0.45); }
.status-badge.info       { background: rgba(255,255,255,0.12); color: var(--text-secondary); border: 1px solid var(--border-accent); }

/* --- Empty state --- */
.d-empty-row {
    text-align: center !important;
    vertical-align: middle !important;
    color: var(--ice);
    font-size: clamp(11px, 1vw, 18px);
    font-weight: 500;
    letter-spacing: 1px;
    padding: 3vh 1vw !important;
    background: rgba(0, 30, 60, 0.15) !important;
    white-space: normal !important;
}

.d-empty-row .empty-icon {
    display: block;
    font-size: clamp(36px, 4vw, 72px);
    margin-bottom: 1vh;
    opacity: 0.25;
}

.d-empty-row .empty-title {
    font-size: clamp(11px, 1vw, 16px);
    font-weight: 700;
    color: var(--ice);
    letter-spacing: 1px;
    margin-bottom: 0.3vh;
}

.d-empty-row .empty-sub {
    font-size: clamp(9px, 0.7vw, 12px);
    font-weight: 400;
    color: var(--ice);
    opacity: 0.5;
    letter-spacing: 0.5px;
}

.panel-arrivals .d-empty-row .empty-icon { color: var(--ocean-300); }
.panel-departures .d-empty-row .empty-icon { color: var(--ocean-300); }

/* ============================================================
   FOOTER (running text + pengumuman)
   ============================================================ */
.d-footer {
    height: 5vh;
    min-height: 5vh;
    display: flex;
    align-items: center;
    background: rgba(2, 20, 50, 0.60);
    border-top: 1px solid rgba(202, 240, 248, 0.25);
}

/* --- Running text (satu baris berisi badge PENGUMUMAN) --- */
.d-marquee {
    flex: 1;
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 1.5vw;
}

/* Area teks yang boleh terlihat: dari ujung kanan badge s.d. kanan
   layar. Jadi teks hilang/terpotong tepat di badge (dianggap tepi
   kiri layar), bukan lewat ke belakang badge sampai ujung layar. */
.marquee-viewport {
    flex: 1;
    min-width: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.announce-label {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: #451a03;
    font-weight: 800;
    font-size: 0.7em;
    letter-spacing: 2.5px;
    padding: 4px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(251,191,36,0.25);
    position: relative;
    z-index: 2;
}

.marquee-track {
    flex-shrink: 0;
    width: max-content;
    min-width: max-content;
    display: flex;
    white-space: nowrap;
    will-change: transform;
    animation: marqueeScroll 35s linear infinite;
}

.marquee-item {
    font-family: 'Barlow Condensed', 'Oswald', 'Inter', 'Segoe UI', sans-serif;
    font-size: clamp(12px, 1.15vw, 20px);
    font-weight: 600;
    letter-spacing: 0.8px;
    color: var(--ice);
    padding-right: 5vw;
}

.marquee-item::after {
    content: "\2022";
    margin-left: 5vw;
    color: var(--accent-gold);
    opacity: 0.6;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   TOMBOL FULLSCREEN
   ============================================================ */
.d-controls {
    position: fixed;
    right: 1vw;
    bottom: 1vh;
    z-index: 50;
}

.btn-fullscreen {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-family: inherit;
    font-size: clamp(11px, 0.85vw, 14px);
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.4;
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

.btn-fullscreen:hover,
.btn-fullscreen:focus {
    opacity: 1;
    background: var(--ocean-700);
    border-color: var(--ocean-500);
}

/* Petunjuk suara */
.sound-hint {
    position: fixed;
    right: 1vw;
    bottom: 1vh;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.55);
    color: #fde68a;
    font-size: clamp(10px, 0.85vw, 14px);
    font-weight: 600;
    animation: pulseWarn 1.6s infinite;
}

@keyframes pulseWarn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
    50%      { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.sound-hint.hidden { display: none; }

/* ============================================================
   RESPONSIF
   ============================================================ */
@media (min-width: 1600px) {
    .d-table tbody td { font-size: clamp(14px, 1.2vw, 22px); }
    .d-table thead th { letter-spacing: 3.5px; }
    .jadwal-time { font-size: clamp(15px, 1.3vw, 22px); }
    .jadwal-date { font-size: clamp(12px, 0.95vw, 16px); }
    .status-badge { font-size: clamp(9px, 0.8vw, 14px); }
}

@media (max-width: 900px) {
    body.display-body { overflow: auto; }
    .d-main {
        height: auto;
        flex-direction: column;
    }
    .panel { min-height: 44vh; }
    .panel-body { overflow: auto; }
    .d-divider {
        width: 100%;
        height: 1px;
        margin: 0.5vh 0;
    }
    .d-header { flex-wrap: wrap; }
    .d-logo { font-size: 26px; }
    .d-live { display: none; }
    .d-table thead th { letter-spacing: 2px; }
    .panel::after { display: none; }
}

/* ---------- HANDPHONE / TABLET KECIL ---------- */
@media (max-width: 600px) {
    body.display-body {
        font-size: 14px;
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    .d-header {
        gap: 8px;
        padding: 10px 4vw;
        min-height: 0;
    }

    .d-logo img { height: 9vw; max-height: 44px; }
    .d-logo {
        font-size: 22px;
        padding: 6px;
    }

    .d-title h1 {
        font-size: 15px;
        letter-spacing: 1px;
        line-height: 1.1;
    }

    .d-subtitle {
        font-size: 10px;
        letter-spacing: 1px;
        margin-top: 2px;
    }

    .d-clock {
        padding-left: 10px;
        border-left: 1px solid rgba(255, 255, 255, 0.20);
    }

    #clock-date {
        font-size: 10px;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }

    #clock-time {
        font-size: 20px;
        letter-spacing: 0.5px;
    }

    .d-main {
        padding: 6px;
        gap: 6px;
    }

    .panel { min-height: 0; border-radius: 8px; }

    .panel-head {
        padding: 8px 10px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .panel-head h2 {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .panel-tag {
        margin-left: 0;
        font-size: 9px;
        padding: 3px 8px;
    }

    .panel-body { overflow: visible; }
    .d-table tbody td { overflow: hidden; }

    .d-table thead th {
        font-size: 9px;
        letter-spacing: 1px;
        padding: 6px 4px;
    }

    .d-table tbody td {
        font-size: 12px;
        padding: 6px 4px;
        word-break: break-word;
    }

    .d-table tbody td:nth-child(3),
    .d-table tbody td:nth-child(4) {
        padding-left: 2px;
    }

    .jadwal-time {
        font-size: 12px;
        padding: 2px 4px;
        letter-spacing: 0;
    }

    .jadwal-date {
        font-size: 10px;
        margin-top: 2px;
    }

    .status-badge {
        font-size: 9px;
        padding: 2px 4px;
        letter-spacing: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .vessel { font-size: 13px; }

    .d-table th:nth-child(1), .d-table td:nth-child(1) { width: 15%; }
    .d-table th:nth-child(2), .d-table td:nth-child(2) { width: 25%; }
    .d-table th:nth-child(3), .d-table td:nth-child(3) { width: 21%; }
    .d-table th:nth-child(4), .d-table td:nth-child(4) { width: 18%; }
    .d-table th:nth-child(5), .d-table td:nth-child(5) { width: 21%; }

    .d-empty-row { font-size: 12px; padding: 18px 8px !important; }
    .d-empty-row .empty-title { font-size: 13px; }
    .d-empty-row .empty-sub { font-size: 10px; }

    .d-footer { height: auto; min-height: 44px; }
    .d-marquee { padding: 6px 10px; gap: 8px; }
    .marquee-item { font-size: 13px; }
    .announce-label { font-size: 0.6em; padding: 3px 8px; letter-spacing: 1.5px; }
}
