* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    background: #f5f7fa;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* === BARU: CSS UNTUK LOGIN (Versi Melengkung Sesuai Gambar) === */
#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f7fa; /* Latar belakang abu-abu pudar */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: opacity 0.3s ease;
}

.login-box {
    display: flex;
    width: 100%;
    max-width: 850px; /* Lebar kontainer */
    height: 500px; /* Tinggi kontainer */
    /* Gradasi ungu di container utama */
    background: linear-gradient(135deg, #6A5ACD, #483D8B); /* Gradasi Ungu */
    border-radius: 12px;
    /* Shadow lebih jelas */
    box-shadow: 0 15px 40px rgba(0,0,0,0.12); 
    overflow: hidden; /* Penting agar border-radius berfungsi */
}

.login-panel-left {
    flex: 1; /* Mengambil 50% ruang */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.login-panel-left h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.login-panel-left p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

.login-panel-right {
    flex: 1; /* Mengambil 50% ruang */
    background: #ffffff; /* Panel kanan warna putih */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    /* INI BAGIAN MELENGKUNGNYA */
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
}

.login-panel-right h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

#login-form {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#login-form input {
    width: 100%;
    padding: 14px 15px;
    border: none;
    background: #f0f0f0; /* Latar belakang abu-abu untuk input */
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: box-shadow 0.2s;
}

#login-form input:focus {
    box-shadow: 0 0 0 3px rgba(72, 61, 139, 0.2); /* Shadow ungu saat di-klik */
}

#login-form input::placeholder {
    color: #999;
}

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #483D8B; /* Tombol warna ungu tua */
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background: #6A5ACD; /* Tombol warna ungu muda saat hover */
}

#login-error {
    margin-bottom: 0px;
    color: #e74c3c; /* Warna error merah */
    font-weight: 500;
    text-align: center;
}
/* === AKHIR CSS LOGIN === */


/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-header {
    padding: 25px 20px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 11px;
    opacity: 0.8;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.menu-item {
    padding: 14px 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: #4fc3f7;
}

.menu-item.active {
    background: rgba(255,255,255,0.15);
    border-left-color: #4fc3f7;
    font-weight: 600;
}

.menu-icon {
    font-size: 18px;
    width: 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 10px;
    opacity: 0.7;
}

/* Gaya Submenu Rata Kiri */
.submenu-indicator {
    font-size: 14px;
    transition: transform 0.3s ease;
}
.menu-item.has-submenu.open .submenu-indicator {
    transform: rotate(90deg);
}
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: rgba(0,0,0,0.2);
}
.submenu.open {
    max-height: 350px;
}
.submenu .menu-item {
    padding-left: 55px;
    font-size: 11px;
}
.submenu .menu-item.active {
    font-weight: bold;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Header */
.top-header {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header h1 {
    font-size: 22px;
    color: #2c3e50;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: 1px solid #e74c3c;
}
.btn-danger:hover {
    background: #c0392b;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px;
}

.content-view {
    display: none;
}

.content-view.active {
    display: block;
}

/* Dashboard Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-title {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 11px;
    color: #27ae60;
}

.stat-change.negative {
    color: #e74c3c;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.chart-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 340px;
    display: flex;
    flex-direction: column;
}

#full-width-chart {
    grid-column: 1 / -1;
}

.chart-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.chart-body {
    flex-grow: 1;
    position: relative;
    min-height: 0;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

/* Filters */
.filters-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #34495e;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Table */
.table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

#trackingVesselTable {
    table-layout: fixed;
    min-width: 2500px;
}

#trackingVesselTable th {
    overflow: hidden;
    text-overflow: ellipsis;
}

#trackingVesselTable th:nth-child(1) { width: 40px; }
#trackingVesselTable th:nth-child(5),
#trackingVesselTable th:nth-child(6),
#trackingVesselTable th:nth-child(7) {
    width: 60px;
}


th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 10px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #dee2e6;
    white-space: nowrap;
    vertical-align: middle;
}

td {
    padding: 4px; 
    border: 1px solid #dee2e6;
    white-space: nowrap;
    vertical-align: middle;
    text-align: left;
    color: black;
}

.td-center {
    text-align: center;
}

td:first-child,
td:nth-child(6),
td:nth-child(7),
td:nth-child(8),
td:nth-child(13),
td:nth-child(22), /* Kolom NW */
td:nth-child(23), /* Kolom DO Status */
td:nth-child(24)  /* Kolom Post to SAP */
{ 
    text-align: center;
}

tbody tr:hover {
    background: #f8f9fa;
}

tr.row-warning td { background-color: #f8d7da !important; }
tr.row-success td { background-color: #d4edda !important; }
tr.row-ok td { background-color: #fff3cd !important; }

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

.status-done, .status-ok { background: #d4edda; color: #155724; }
.status-pending, .status-customer { background: #fff3cd; color: #856404; }
.status-res, .status-cancel { background: #f8d7da; color: #721c24; }

.editable-cell {
    width: 100%;
    height: 100%;
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 11px;
    background-color: #fff;
    box-sizing: border-box;
}

.editable-cell:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.do-status-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.link-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.link-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.link-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.link-card-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.link-card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.link-card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.link-card-icon span {
    font-size: 24px;
    color: white;
}
.link-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}
.link-card-credentials {
    width: 100%;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.credential-item {
    font-size: 11px;
}
.credential-item span {
    display: block;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 3px;
    text-transform: uppercase;
}

/* === CSS KALENDER & MODAL === */
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modal-fade-in 0.3s;
}
.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 600px;
    overflow: hidden;
}
@keyframes modal-fade-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e6ed;
    background: #f5f7fa;
}
.modal-header h2 {
    font-size: 16px;
    color: #2c3e50;
}
.modal-close {
    font-size: 24px;
    font-weight: bold;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover { color: #e74c3c; }
.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}
/* Modal Event Item Styling */
.modal-event-item {
    padding: 12px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
}
.modal-event-item strong {
    font-size: 13px;
    color: #667eea;
    display: block;
    margin-bottom: 5px;
}
.modal-event-item p {
    font-size: 11px;
    color: #34495e;
    margin: 0;
}

/* Calendar Styles */
#calendar-card-container {
    height: 340px; 
    grid-column: 1 / -1;
}

#calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#calendar-header button {
    background: #e0e6ed;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    color: #34495e;
    cursor: pointer;
    transition: all 0.2s;
}
#calendar-header button:hover {
    background: #667eea;
    color: white;
}
#calendar-body {
    padding-top: 10px;
}
#calendar-table {
    width: 100%;
    border-collapse: collapse;
}

#calendar-table th {
    font-size: 10px;
    font-weight: 600;
    color: #7f8c8d;
    padding: 8px 0;
    background: none;
    border: 1px solid #e0e6ed; 
    text-align: center;
}
#calendar-table td {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #e0e6ed; 
    vertical-align: middle;
    height: 36px; 
    padding: 2px; 
}

.calendar-day {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34495e;
    position: relative;
    border-radius: 6px; 
}
.day-other-month {
    visibility: hidden; 
}
.day-today .calendar-day {
    background-color: #667eea;
    color: white;
}
.day-has-events .calendar-day {
    border: 2px solid #11998e;
    color: #11998e;
}
.day-has-events.day-today .calendar-day {
    background-color: #667eea;
    color: white;
    border: 2px solid #11998e;
}

.day-clickable .calendar-day {
    cursor: pointer;
}
.day-clickable .calendar-day:hover {
    background: #f0f0f0;
}
.day-has-events .calendar-day {
    cursor: pointer;
}
.day-has-events .calendar-day:hover {
    background: #d4edda !important;
}
/* === AKHIR DARI CSS KALENDER === */

@media (max-width: 768px) {
    /* Perbaikan untuk tampilan dashboard di mobile */
    .sidebar {
        width: 70px;
    }
    .sidebar-header h2,
    .sidebar-header p,
    .menu-item span:last-child { /* Sembunyikan teks menu */
        display: none;
    }
    .menu-item {
        justify-content: center; /* Pusatkan ikon */
        padding: 14px 10px;
    }
    .submenu .menu-item {
        padding-left: 20px;
    }
    .submenu .menu-item span {
        display: inline-block; /* Tampilkan teks submenu */
    }

    /* BARU: Media query untuk login di mobile */
    .login-box {
        flex-direction: column;
        height: auto;
        max-width: 90%;
    }
    .login-panel-left {
        padding: 40px 30px;
    }
    /* Hilangkan lengkungan di mobile */
    .login-panel-right {
        padding: 40px 30px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        /* Tambahkan lengkungan di atas */
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
    .login-box {
        /* Balikkan urutan background di mobile */
        background: #ffffff;
    }
    .login-panel-left {
        /* Ganti background panel kiri */
        background: linear-gradient(135deg, #6A5ACD, #483D8B);
        /* Hilangkan lengkungan atas-bawah */
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        border-bottom-left-radius: 0;
    }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #667eea; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5568d3; }

/* Style untuk container tombol "Add Row" */
.add-row-container {
    margin-bottom: 20px; 
    margin-top: 30px; /* Memberi jarak dari kartu link di atas */
}

/* Mengatur agar tabel schedule tidak mepet dengan kartu di atas */
#vessel-schedule-view .table-card {
    margin-top: 0; /* Dihapus karena sudah dihandle .add-row-container */
}
/* === CSS TAMBAHAN UNTUK MODAL BOOKING & TOMBOL KECIL === */

/* Style untuk item di dalam modal booking */
.booking-item {
    padding: 12px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
}
.booking-item strong {
    font-size: 13px;
    color: #667eea;
    display: block;
    margin-bottom: 5px;
}
.booking-item p {
    font-size: 11px;
    color: #34495e;
    margin: 0;
}

/* Tombol kecil untuk di dalam tabel */
.btn-small {
    padding: 5px 10px;
    font-size: 11px;
}

/* Style untuk container tombol "Add Row" */
.add-row-container {
    margin-bottom: 20px; 
    margin-top: 30px; /* Memberi jarak dari kartu link di atas */
}

/* Mengatur agar tabel schedule tidak mepet dengan kartu di atas */
#vessel-schedule-view .table-card {
    margin-top: 0;
}

/* === CSS TAMBAHAN UNTUK LEBAR TABEL SCHEDULE === */

#terminalScheduleTable {
    min-width: 1800px; /* Memberi lebar total minimum agar bisa scroll */
}

/* Memperbaiki lebar kolom input di tabel schedule */
#terminalScheduleTable .editable-cell {
    min-width: 120px; /* Lebar minimum default untuk input */
}
#terminalScheduleTable td:nth-child(1) .editable-cell, /* Terminal */
#terminalScheduleTable td:nth-child(11) .editable-cell /* Tonase */
{
    min-width: 100px; 
    width: 100%;
}
#terminalScheduleTable td:nth-child(5) .editable-cell, /* ETA */
#terminalScheduleTable td:nth-child(6) .editable-cell, /* ETD */
#terminalScheduleTable td:nth-child(7) .editable-cell, /* ATA */
#terminalScheduleTable td:nth-child(8) .editable-cell, /* ATD */
#terminalScheduleTable td:nth-child(9) .editable-cell, /* Open Stack */
#terminalScheduleTable td:nth-child(10) .editable-cell /* Closing */
{
    min-width: 130px; /* Input tanggal perlu lebih lebar */
    width: 100%;
}

/* Memastikan tombol di tabel schedule pas */
#terminalScheduleTable td:nth-child(12), /* Kolom booking button */
#terminalScheduleTable td:nth-child(13)  /* Kolom action button */
{
     width: 80px;
     text-align: center;
}
/* === CSS TAMBAHAN UNTUK TOTAL TONASE & MODAL BOOKING === */

/* Style untuk sel "Total Tonase" di tabel schedule */
.total-tonase-cell {
    font-weight: bold;
    font-size: 13px;
    color: #2c3e50;
    vertical-align: middle;
    text-align: center;
    background-color: #f5f7fa; /* Sedikit beda warna */
}

/* Style untuk ringkasan di atas modal booking */
.booking-summary {
    /* --- PERUBAHAN DI SINI --- */
    font-size: 18px; /* Dibesarkan dari 14px */
    font-weight: bold;
    padding: 15px; /* Padding ditambah agar lebih lega */
    /* --- AKHIR PERUBAHAN --- */
    
    background: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    border: 1px solid #e0e6ed;
}
.booking-summary strong {
    color: #667eea;
}

/* Style untuk NW di dalam item modal */
.booking-item p strong {
    color: #11998e; /* Warna hijau agar menonjol */
}

/* === Perbaikan Lebar Kolom & Perataan === */

/* Perbarui perataan sel 'td' untuk menyertakan kolom NW (kolom ke-22) */
td:first-child,
td:nth-child(6),
td:nth-child(7),
td:nth-child(8),
td:nth-child(13),
td:nth-child(22), /* Kolom NW */
td:nth-child(23), /* Kolom DO Status */
td:nth-child(24)  /* Kolom Post to SAP */
{ 
    text-align: center;
}

/* Tambahkan lebar untuk kolom NW (kolom ke-22) di tabel tracking */
#trackingVesselTable th:nth-child(22) { 
    width: 80px; 
}
/* === PERUBAHAN TAMPILAN MODAL BOOKING (SESUAI GAMBAR) === */

.booking-item {
    /* Ubah .booking-item menjadi flex container */
    display: flex;
    justify-content: space-between; /* Pisahkan konten kiri dan kanan */
    align-items: center; /* Jaga agar tetap rapi secara vertikal */
    gap: 15px; /* Beri jarak antara kiri dan kanan */
}

.booking-item-details {
    /* Biarkan detail teks mengambil sisa ruang */
    flex: 1; 
}

/* Hapus margin-bottom dari paragraf terakhir di dalam detail */
.booking-item-details p:last-child {
    margin-bottom: 0;
}

.booking-item-nw {
    /* Ini adalah kotak NW di sebelah kanan */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    background: #fdfdfd;
    border: 2px solid #e0e6ed; /* Border abu-abu seperti di gambar */
    border-radius: 8px;
    padding: 10px 15px;
    min-width: 90px; /* Atur lebar minimum */
    text-align: center;
    flex-shrink: 0; /* Mencegah kotak ini menyusut */
}

.booking-item-nw span {
    /* Label "NW (Ton)" */
    font-size: 11px;
    font-weight: 600;
    color: #667eea; /* Warna ungu-biru */
    margin-bottom: 3px;
    display: block;
}

.booking-item-nw strong {
    /* Angka NW */
    font-size: 20px; /* Ukuran besar seperti di gambar */
    font-weight: 700;
    color: #2c3e50; /* Warna gelap */
    line-height: 1.2;
}

/* === BARU: Style untuk input yang di-disable agar "hitam" / abu-abu === */
.editable-cell:disabled {
    background-color: #e9ecef; /* Warna abu-abu pudar */
    color: #6c757d; /* Warna teks pudar */
    cursor: not-allowed;
    border-color: #ced4da;
}
/* === CSS BARU: DUMMY BOOKING === */

/* Pastikan lebar tabel Dummy Booking sama dengan Tracking Vessel */
#dummyBookingTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    table-layout: fixed;
    min-width: 2500px; /* Lebar minimum agar bisa scroll horizontal */
}

/* Pastikan kolom-kolomnya memiliki lebar yang sama dengan trackingVesselTable */
#dummyBookingTable th:nth-child(1) { width: 40px; }
#dummyBookingTable th:nth-child(5),
#dummyBookingTable th:nth-child(6),
#dummyBookingTable th:nth-child(7) {
    width: 60px;
}
#dummyBookingTable th:nth-child(22) { /* Kolom NW */
    width: 80px; 
}
/* Perataan kolom yang sama dengan trackingVesselTable */
#dummyBookingTable td:first-child,
#dummyBookingTable td:nth-child(6),
#dummyBookingTable td:nth-child(7),
#dummyBookingTable td:nth-child(8),
#dummyBookingTable td:nth-child(13),
#dummyBookingTable td:nth-child(22), /* Kolom NW */
#dummyBookingTable td:nth-child(23), /* Kolom DO Status */
#dummyBookingTable td:nth-child(24)  /* Kolom Post to SAP */
{ 
    text-align: center;
}

/* Tambahkan padding agar tombol action di tabel dummy booking lebih baik */
#dummyBookingTable td:last-child {
    width: 100px; /* Kolom action */
    text-align: center;
}

/* Pastikan semua elemen input di dalamnya juga menggunakan style yang sama */
#dummyBookingTable .editable-cell {
    width: 100%;
    height: 100%;
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 11px;
    background-color: #fff;
    box-sizing: border-box;
}

#dummyBookingTable .editable-cell:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Terapkan juga style warning/success row */
#dummyBookingTable tr.row-warning td { background-color: #f8d7da !important; }
#dummyBookingTable tr.row-success td { background-color: #d4edda !important; }
#dummyBookingTable tr.row-ok td { background-color: #fff3cd !important; }

/* Tombol kecil untuk di dalam tabel (jika diperlukan) */
#dummyBookingTable .btn-small {
    padding: 5px 10px;
    font-size: 11px;
}

/* --- AKHIR CSS BARU: DUMMY BOOKING --- */