/* ===== Halaman Histori + tombol Riwayat (warna mengikuti tema) ===== */

/* tombol Riwayat (Deposit/Withdraw) dan tombol Deposit (halaman riwayat):
   gayanya sama dengan tombol "Daftar" di header */
.popg .popg-head .hs-btn,
.popg .popg-head .hs-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 9px 14px;
    border-radius: 5px;
    background: linear-gradient(180deg, var(--accent-1, #f6d56a) 0%, var(--accent-2, #d4a017) 55%, var(--accent-3, #a87b0b) 100%);
    border: 1px solid var(--accent-border, #e8c45a);
    color: #1a1a1a !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.popg .popg-head .hs-btn i,
.popg .popg-head .hs-back i {
    font-size: 12px;
}

.hs {
    --hs-accent: var(--secondary-color, #f6d56a);
    --hs-accent-text: var(--secondary-text, #111);
    --hs-text: var(--page-text, #fff);
    --hs-panel: rgba(0, 0, 0, .28);
    padding-bottom: 24px;
    color: var(--hs-text);
}

.hs .popg-head h2 small {
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    opacity: .9;
}

/* tab */
.hs .hs-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 0 6px;
}

.hs .hs-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--hs-accent);
    color: var(--hs-text) !important;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    background: transparent;
}

.hs .hs-tab.is-active {
    background: var(--hs-accent);
    color: var(--hs-accent-text) !important;
    font-weight: 800;
}

/* form filter */
.hs .hs-form {
    padding: 6px 0 4px;
}

.hs .hs-form label {
    display: block;
    margin: 0;
}

.hs .hs-form label>span {
    display: block;
    margin: 8px 0 6px;
    font-size: 15px;
    font-weight: 600;
}

.hs .hs-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hs .hs-form input[type="date"],
.hs .hs-form select {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: #222;
    font-size: 15px;
    -webkit-appearance: none;
    appearance: none;
}

.hs .hs-form select {
    background-image: linear-gradient(45deg, transparent 50%, #444 50%), linear-gradient(135deg, #444 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 32px;
}

.hs .hs-submit {
    margin-top: 14px;
}

/* tabel */
.hs .hs-tablewrap {
    margin-top: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hs .hs-table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0 3px;
    font-size: 13px;
    color: var(--hs-text);
}

.hs .hs-table thead th {
    padding: 11px 8px;
    background: var(--hs-accent);
    color: var(--hs-accent-text);
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
}

.hs .hs-table tbody td {
    padding: 10px 8px;
    background: var(--hs-panel);
    vertical-align: top;
    line-height: 1.45;
    word-break: break-word;
}

.hs .hs-nowrap {
    white-space: nowrap;
}

.hs .hs-none-row,
.hs .hs-empty {
    padding: 22px 12px;
    text-align: center;
    background: var(--hs-panel);
}

.hs .hs-empty a {
    color: var(--hs-accent);
    font-weight: 700;
}

.hs .hs-note {
    margin: 10px 0 0;
    font-size: 12px;
    opacity: .8;
    text-align: center;
}

/* status */
.hs .hs-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
}

.hs .hs-ok { background: #1f9d55; }
.hs .hs-no { background: #d64545; }
.hs .hs-wait { background: #2563eb; color: #fff; }
.hs .hs-proc { background: #7c3aed; color: #fff; }
.hs .hs-none { background: #6b7280; }
