th { 
	white-space: nowrap;
}
td { 
	white-space: nowrap;
}

/* =====================================================
   DESAIN TABEL TARIF RIS KARGO
   Bisa digunakan pada semua laman dan postingan
===================================================== */

/* Kotak utama tabel */
.ris-tabel-tarif {
    width: 100%;
    margin: 25px auto;
    overflow-x: auto;
    border: 1px solid #dce4ec;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(5, 40, 75, 0.14);
    -webkit-overflow-scrolling: touch;
}

/* Pengaturan dasar tabel */
.ris-tabel-tarif table {
    width: 100% !important;
    min-width: 850px;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed;
}

/* Kepala tabel */
.ris-tabel-tarif thead th {
    padding: 17px 14px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.20) !important;
    border-bottom: 4px solid #ffc400 !important;
    background: linear-gradient(
        180deg,
        #0b3b6c 0%,
        #05284c 100%
    ) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.3;
    letter-spacing: 0.4px;
    text-align: center !important;
    text-transform: uppercase;
}

/* Menghilangkan garis kanan pada judul terakhir */
.ris-tabel-tarif thead th:last-child {
    border-right: none !important;
}

/* Isi tabel */
.ris-tabel-tarif tbody td {
    padding: 13px 14px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: 1px solid #dce5ed !important;
    border-bottom: 1px solid #dce5ed !important;
    background: #ffffff !important;
    color: #102a46 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4;
    text-align: center !important;
    text-transform: uppercase;
    vertical-align: middle !important;
}

/* Warna baris selang-seling */
.ris-tabel-tarif tbody tr:nth-child(even) td {
    background: #edf8ff !important;
}

/* Efek ketika kursor diarahkan ke tabel */
.ris-tabel-tarif tbody tr:hover td {
    background: #fff7d6 !important;
}

/* Menghilangkan garis paling kanan */
.ris-tabel-tarif tbody td:last-child {
    border-right: none !important;
}

/* Menghilangkan garis pada baris terakhir */
.ris-tabel-tarif tbody tr:last-child td {
    border-bottom: none !important;
}

/* Lebar kolom ASAL */
.ris-tabel-tarif th:nth-child(1),
.ris-tabel-tarif td:nth-child(1) {
    width: 16%;
}

/* Lebar kolom TUJUAN */
.ris-tabel-tarif th:nth-child(2),
.ris-tabel-tarif td:nth-child(2) {
    width: 19%;
}

/* Isi kolom TUJUAN dibuat rata kiri */
.ris-tabel-tarif tbody td:nth-child(2) {
    text-align: left !important;
    padding-left: 30px !important;
}

/* Lebar kolom TARIF */
.ris-tabel-tarif th:nth-child(3),
.ris-tabel-tarif td:nth-child(3) {
    width: 20%;
}

/* Lebar kolom LEAD TIME */
.ris-tabel-tarif th:nth-child(4),
.ris-tabel-tarif td:nth-child(4) {
    width: 17%;
}

/* Lebar kolom KETERANGAN */
.ris-tabel-tarif th:nth-child(5),
.ris-tabel-tarif td:nth-child(5) {
    width: 28%;
}

/* Kolom tarif dibuat paling menonjol */
.ris-tabel-tarif tbody td:nth-child(3) {
    background: linear-gradient(
        180deg,
        #ffdc3f 0%,
        #ffc400 100%
    ) !important;
    color: #101010 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    text-transform: none;
}

/* Tarif tetap menonjol saat disentuh kursor */
.ris-tabel-tarif tbody tr:hover td:nth-child(3) {
    background: linear-gradient(
        180deg,
        #ffe365 0%,
        #ffca18 100%
    ) !important;
}

/* Sudut bagian atas */
.ris-tabel-tarif thead th:first-child {
    border-top-left-radius: 12px;
}

.ris-tabel-tarif thead th:last-child {
    border-top-right-radius: 12px;
}

/* Tampilan tablet dan HP */
@media screen and (max-width: 768px) {

    .ris-tabel-tarif {
        margin: 18px 0;
        border-radius: 10px;
    }

    .ris-tabel-tarif table {
        min-width: 760px;
    }

    .ris-tabel-tarif thead th {
        padding: 13px 10px !important;
        font-size: 13px !important;
    }

    .ris-tabel-tarif tbody td {
        padding: 11px 10px !important;
        font-size: 13px !important;
    }

    /* Kolom tujuan tetap rata kiri di HP */
    .ris-tabel-tarif tbody td:nth-child(2) {
        text-align: left !important;
        padding-left: 20px !important;
    }

    .ris-tabel-tarif tbody td:nth-child(3) {
        font-size: 14px !important;
    }
}

/* Tampilan HP kecil */
@media screen and (max-width: 480px) {

    .ris-tabel-tarif table {
        min-width: 700px;
    }

    /* Petunjuk menggeser tabel */
    .ris-tabel-tarif::after {
        content: "Geser ke samping untuk melihat tarif lengkap →";
        display: block;
        position: sticky;
        left: 0;
        width: 100%;
        padding: 10px 12px;
        background: #fff8d8;
        color: #5e4a00;
        font-size: 11px;
        font-weight: 700;
        text-align: center;
    }
}

/* ===== POST SURABAYA–JAKARTA ID 5500 ===== */

/* Hilangkan sidebar/widget kanan */
body.postid-5500 .col-sidebar.sidebar-main {
    display: none !important;
}

/* Halaman putih memenuhi layar */
body.postid-5500 {
    background: #ffffff !important;
}

body.postid-5500 .container.hfeed {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Konten utama menjadi penuh */
body.postid-5500 .main {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 30px !important;
    box-sizing: border-box !important;
}

/* Banner utama penuh kiri–kanan */
body.postid-5500 a.header-image {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.postid-5500 a.header-image img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
}

/* Jarak konten pada HP */
@media (max-width: 700px) {
    body.postid-5500 .main {
        padding: 15px !important;
    }
}