.st-table {
    width:100%;
    border-collapse:collapse;
}
.st-table th, .st-table td {
    padding:10px;
    border-bottom:1px solid #ddd;
    text-align:center;
}
.st-delete-btn {
    color:red;
    font-size:18px;
}
.st-detail-btn {
    background:#22c55e;
    color:#fff;
    border:none;
    padding:5px 10px;
    border-radius:6px;
}
.st-pagination a {
    padding:6px 10px;
    border:1px solid #ccc;
    margin:2px;
}
.st-pagination a.active {
    background:#2563eb;
    color:#fff;
}

/* MODAL */
.st-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
}

.st-modal-box {
    background: #fff;
    max-width: 500px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
}

.st-open-btn {
    display:inline-block;
    margin:10px 0;
    background:#16a34a;
    color:#fff;
    padding:8px 14px;
    border-radius:8px;
}

/* FILTER */
.st-filter select {
    padding:10px;
    border-radius:8px;
    width:100%;
    max-width:300px;
    margin-bottom:15px;
}

/* TITLE */
.st-title {
    text-align:center;
    margin:15px 0;
}

/* EXPIRED */
.expired {
    background:#e5e7eb;
    opacity:.8;
}
.expired-text {
    font-size:12px;
    color:#374151;
    opacity:.5;
    font-weight:bold;
}

/* DETAIL BUTTON */
.st-detail-btn.red {
    background:#dc2626;
    color:#fff;
    border:none;
    padding:6px 12px;
    border-radius:6px;
}

/* MOBILE FRIENDLY */
@media(max-width:600px){
    .st-table.mobile th:nth-child(1),
    .st-table.mobile td:nth-child(1){
        display:none;
    }
    .st-table.mobile th,
    .st-table.mobile td {
        font-size:13px;
        padding:8px;
    }
}

.st-expired {
  background:#fee2e2;
  color:#991b1b;
  font-weight:700;
  padding:6px 12px;
  border-radius:999px;
  pointer-events:none;
}

/* =========================
   RESPONSIVE TABLE (ANDROID)
========================= */
@media (max-width: 768px) {

.st-responsive thead {
    display: none;
}

.st-responsive tr {
    display: block;
    background: #fff;
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.st-responsive td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border: none;
    font-size: 14px;
}

.st-responsive td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
}

.st-delete-btn {
    font-size: 18px;
}

}

/* =======================
   TOAST NOTIFICATION
======================= */
.st-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    animation: slideIn .4s ease;
    max-width: 90%;
}

.st-toast.success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.st-toast.error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.st-toast.hide {
    opacity: 0;
    transform: translateY(-10px);
    transition: .5s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile safe */
@media(max-width:600px){
    .st-toast{
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        text-align: center;
    }
}

.st-disabled {
    opacity: .6;
    pointer-events: none;
}

.expired-text{
    display:inline-block;
    padding:6px 12px;
    background:#fee2e2;
    color:#991b1b;
    border-radius:999px;
    font-size:13px;
    font-weight:600;
}

.st-expired {
    display: inline-block;
    padding: 6px 12px;
    background: #ccc;
    color: #555;
    font-weight: bold;
    border-radius: 6px;
    font-size: 13px;
}

/* =========================
   FORCE CARD VIEW (HP)
========================= */
@media (max-width: 768px) {

.st-delete-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.st-delete-table thead {
    display: none !important;
}

.st-delete-table tr {
    display: block !important;
    background: #fff;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

.st-delete-table td {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none !important;
    font-size: 14px;
}

.st-delete-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #444;
}

.st-delete-btn {
    font-size: 20px;
    background: none;
    border: none;
}

/* =========================
   FORM GURU – SPACING & UI
========================= */

.st-form {
    display: flex;
    flex-direction: column;
    gap: 14px; /* JARAK UTAMA */
}

.st-form input,
.st-form select,
.st-form textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    width: 100%;
}

.st-form textarea {
    min-height: 110px;
    resize: vertical;
}

.st-form label {
    font-weight: 600;
    font-size: 14px;
    margin-top: 6px;
    color: #374151;
}

/* LINK & FILE WRAP */
.st-link-wrap,
.st-file-wrap {
    margin-top: -4px;
}

/* SUBMIT BUTTON */
.st-form button[type="submit"] {
    margin-top: 10px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.st-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37,99,235,.35);
}

/* DISABLED STATE */
.st-form.st-disabled {
    opacity: .6;
    pointer-events: none;
}

/* FORCE SPACING FORM */
form input,
form select,
form textarea {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

form textarea {
    min-height: 110px;
}

form button[type="submit"] {
    margin-top: 10px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
}

/* FIX KOLOM DETAIL */
td[data-label="Detail"] {
    text-align: center;
}

/* =========================
   FIX FLEX HANYA UNTUK HP
========================= */
@media (min-width: 769px) {

.st-responsive td,
.st-delete-table td {
    display: table-cell !important;
    justify-content: unset !important;
}

.st-responsive td::before,
.st-delete-table td::before {
    content: none !important;
}
}

}