.obat-title-section {
    background: var(--public-teal);
    flex-shrink: 0;
    padding: 1.75rem 1.25rem 3rem;
    position: relative;
    overflow: hidden;
}

.obat-title-watermark {
    position: absolute;
    right: 3rem;
    top: -0.5rem;
    font-size: 9rem;
    color: #38b8be;
    opacity: 0.55;
    pointer-events: none;
    line-height: 1;
    z-index: 0;
    transform: rotate(-8deg);
    transition: opacity 0.25s ease;
}

.obat-title-section:hover .obat-title-watermark {
    opacity: 0.8;
}

.obat-title-inner {
    max-width: clamp(880px, 92vw, 1320px);
    margin: 0 auto;
}

.obat-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.obat-title-text {
    flex: 1;
    min-width: 200px;
}

.obat-title-inner h1 {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    letter-spacing: normal;
    color: #fff;
}

.obat-title-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    max-width: 46ch;
}

/* ===== Contact button ===== */
.obat-title-contact-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    background: #e63946;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.obat-title-contact-btn:hover {
    background: #d62839;
    color: #fff;
}

.obat-title-contact-btn i {
    font-size: 0.8rem;
}

/* ===== Search box ===== */
.obat-search-card {
    max-width: clamp(880px, 92vw, 1320px);
    width: 100%;
    margin: -2.2rem auto 0;
    padding: 0 1.25rem;
    position: relative;
    z-index: 2;
}

.obat-search-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(14, 128, 116, 0.16);
    padding: 0.4rem 0.4rem 0.4rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.obat-search-box i {
    color: var(--public-teal);
    font-size: 1rem;
}

.obat-search-box input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--public-charcoal);
    background: transparent;
}

.obat-search-btn {
    flex-shrink: 0;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 8px;
    background: var(--public-teal-dark);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.obat-search-btn:hover {
    background: var(--public-teal);
}

.obat-search-btn:active {
    opacity: 0.85;
}

/* ===== Content / table ===== */
.obat-content {
    max-width: clamp(880px, 92vw, 1320px);
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
    flex: 1;
}

.obat-result-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.85rem;
}

.obat-result-meta strong {
    color: var(--public-teal-dark);
}

.obat-table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

#obat-table {
    width: 100% !important;
    table-layout: fixed;
}

#obat-table thead th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--public-teal-dark);
    font-weight: 700;
    padding: 0.85rem 1.1rem;
    background: var(--public-teal-soft);
    border-bottom: 1px solid #e5e7eb;
}

#obat-table tbody td {
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    word-break: break-word;
}

#obat-table tbody tr:last-child {
    border-bottom: none;
}

#obat-table tbody tr:hover {
    background: #fafdfc;
}

#obat-table td:nth-child(1) {
    font-weight: 600;
    color: var(--public-charcoal);
}

#obat-table td:nth-child(2),
#obat-table td:nth-child(3),
#obat-table td:nth-child(4) {
    color: #6b7280;
}

#obat-table td:nth-child(5) {
    font-weight: 700;
    color: var(--public-teal-dark);
    white-space: nowrap;
}

#obat-table td:nth-child(6) {
    color: #6b7280;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* ===== Empty state ===== */
.obat-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.obat-empty-state i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
    color: #d1d5db;
}

.obat-empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
    .obat-title-section {
        padding: 1.25rem 1.25rem 3rem;
    }

    .obat-title-watermark {
        font-size: 6rem;
        right: 0.5rem;
        top: -0.25rem;
        opacity: 0.35;
    }

    .obat-title-row {
        padding-right: 3.25rem;
    }

    .obat-title-text {
        flex: 1 1 100%;
    }

    .obat-title-inner h1 {
        font-size: 1.3rem;
    }

    /* Tombol hubungi kami -> pojok kanan atas, bentuk bulat, teks disembunyikan */
    .obat-title-contact-btn {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 2;
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        gap: 0;
    }

    .obat-title-contact-btn .obat-btn-text {
        display: none;
    }

    .obat-title-contact-btn i {
        font-size: 0.95rem;
    }

    .obat-search-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    #obat-table thead {
        display: none;
    }

    #obat-table,
    #obat-table tbody,
    #obat-table tr,
    #obat-table td {
        display: block;
        width: 100%;
    }

    #obat-table tbody tr {
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem 1.1rem;
    }

    #obat-table tbody tr:last-child {
        border-bottom: none;
    }

    #obat-table tbody td {
        border: none;
        padding: 0.15rem 0;
        text-align: left !important;
    }

    #obat-table td:nth-child(1) {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--public-charcoal);
        margin-bottom: 0.4rem;
        padding: 0;
    }

    #obat-table td:nth-child(2),
    #obat-table td:nth-child(3),
    #obat-table td:nth-child(4) {
        display: flex;
        align-items: baseline;
        font-size: 0.82rem;
        color: #1f2937;
    }

    #obat-table td:nth-child(2)::before,
    #obat-table td:nth-child(3)::before,
    #obat-table td:nth-child(4)::before {
        content: attr(data-label) " :";
        font-size: 0.82rem;
        color: #6b7280;
        font-weight: 500;
        width: 80px;
        flex-shrink: 0;
    }

    #obat-table td:nth-child(5) {
        display: block;
        width: 100%;
        font-size: 1rem;
        font-weight: 700;
        color: var(--public-teal-dark);
        background: var(--public-teal-soft);
        padding: 0.45rem 0.8rem;
        border-radius: 8px;
        margin-top: 0.65rem;
        text-align: left;
    }

    #obat-table td:nth-child(6) {
        display: block;
        width: 100%;
        font-size: 0.75rem;
        color: #9ca3af;
        text-align: left;
        margin-top: 0.3rem;
    }

    #obat-table td:nth-child(6)::before {
        content: "Diperbarui: ";
    }
}
