.riwayat-wrapper {
    padding-top: 28px;
}

.riwayat-wrapper .page-header {
    margin-bottom: 18px;
}

.riwayat-wrapper .page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
    color: #1a1a1a;
}

.riwayat-wrapper .page-subtitle {
    color: #7a8597;
    font-size: 14px;
    margin-top: 4px;
}

.card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3e7ee;
}

.input-label {
    font-family: 'Poppins', sans-serif;
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    color: #334155;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1.5px solid #8ab8b2;
    border-radius: 10px;
    padding: 12px 15px;
    gap: 10px;
    background: #fff;
}

.search-icon {
    width: 16px;
    opacity: 0.55;
}

.search-box input {
    font-family: 'Poppins', sans-serif; 
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: #475569;
}

.table-card {
    padding: 24px 24px 16px;
}

.history-table {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 10px;
    overflow: hidden;
}

.history-table thead th {
    background-color: #3BC1A8;
    color: white;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
}

.history-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f8;
    color: #475569;
    font-size: 12px;
}

.history-table tbody tr td + td {
    border-left: 1px solid #edf2f8;
}

.history-table tbody tr:last-child td {
    border-bottom: none;
}

.action-icons {
    min-width: 96px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.action-icons img {
    height: 16px;
    width: 16px;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.action-icons img:first-child {
    opacity: 0.35;
}

.action-icons img:last-child {
    filter: hue-rotate(320deg) saturate(3.5) brightness(0.95);
}

.action-icons img:hover {
    transform: scale(1.15);
}

.detail-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.detail-modal-overlay.active {
    display: flex;
}

.detail-modal {
    width: 1048px;
    background: #FFFFFF;
    border-radius: 32px;
    padding: 34px 38px 26px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.close-modal {
    position: absolute;
    top: 28px;
    right: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

.close-modal img {
    width: 22px;
    height: 22px;
}

.modal-header {
    margin-bottom: 28px;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.modal-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #E9F6F3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon img {
    width: 30px;
}

.modal-header-left h2 {
    font-size: 22px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.status-badge {
    background: #B9F3C8;
    color: #16A34A;
    padding: 3px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
}

.transaction-info {
    border: 1px solid #E6EBF2;
    border-radius: 12px;
    padding: 18px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-item img {
    width: 18px;
    height: 18px;
}

.info-item span {
    display: block;
    font-size: 11px;
    color: #64748B;
    margin-bottom: 3px;
}

.info-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0891B2;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 16px;
}

.detail-box {
    border: 1px solid #E7EBF2;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.detail-title img {
    width: 18px;
    height: 18px;
}

.detail-title span {
    color: #0891B2;
    font-weight: 700;
    font-size: 16px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
}

.detail-table thead th {
    background: #02889B;
    color: white;
    padding: 12px;
    font-size: 11px;
    font-weight: 600;
}

.detail-table tbody td {
    border: 1px solid #EDF2F7;
    padding: 14px 12px;
    font-size: 11px;
    text-align: center;
}

.detail-table tfoot td {
    text-align: right;
    padding: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #0891B2;
    border: 1px solid #EDF2F7;
}

.payment-summary {
    background: #F6FAFA;
    border: 1px solid #E5ECEC;
    border-radius: 12px;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.summary-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.summary-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #DDF3F2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-icon img {
    width: 28px;
}

.summary-left h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.summary-left p {
    font-size: 12px;
    color: #94A3B8;
}

.summary-right {
    display: flex;
    gap: 60px;
}

.summary-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-row {
    display: flex;
    gap: 38px;
    justify-content: space-between;
    font-size: 14px;
}

.summary-row span {
    color: #111827;
}

.summary-row strong {
    color: #111827;
}

.summary-row.total strong {
    color: #0891B2;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.close-btn {
    background: #02889B;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* =========================
   MODAL DETAIL TRANSAKSI
========================= */

.detail-modal {
    font-family: 'Inter', sans-serif;
}

.detail-modal h1,
.detail-modal h2,
.detail-modal h3,
.detail-modal h4,
.detail-modal th,
.detail-title span,
.summary-row.total span,
.summary-row.total strong {
    font-family: 'Poppins', sans-serif;
}

/* HEADER */

.modal-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.status-badge {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
}

/* INFO BOX */

.info-item span {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #111827;
}

.info-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #008B9A;
    line-height: 1.2;
}

/* TITLE TABLE */

.detail-title span {
    font-size: 16px;
    font-weight: 700;
    color: #008B9A;
}

/* TABLE */

.detail-table thead th {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #FFFFFF;
}

.detail-table tbody td {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #111827;
}

.detail-table tfoot td {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #008B9A;
}

/* PAYMENT SUMMARY */

.summary-left h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.summary-left p {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #B0B7C3;
}

.summary-row span {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.summary-row strong {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.summary-row.total span,
.summary-row.total strong {
    font-size: 15px;
    font-weight: 700;
}

/* BUTTON */

.close-btn {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.admin-profile{
    display:flex;
    align-items:center;
    gap:12px;

    text-decoration:none;
    color:inherit;
    cursor:pointer;
}

.admin-profile:hover{
    opacity:0.85;
}