/* ==========================================================================
   Transactions Table - Minimalist Flat UI
   ========================================================================== */

.history-table-container {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.history-table-container .title-form {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-table-container .title-form i {
    color: #e41e26;
    font-size: 14px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 480px;
}

.history-th {
    background: #f9fafb;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 12.5px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-table th:nth-child(1),
.history-table td:nth-child(1) {
    width: 28%;
}

.history-table th:nth-child(2),
.history-table td:nth-child(2) {
    width: 22%;
}

.status-column {
    width: 25%;
}

.history-table th:nth-child(4),
.history-table td:nth-child(4) {
    width: 25%;
}

.history-table tr:hover td {
    background-color: #f9fafb;
}

.history-table tr.new-transaction {
    animation: highlightNew 1.5s ease-out;
}

@keyframes highlightNew {
    0% {
        background-color: #fef2f2;
    }
    100% {
        background-color: transparent;
    }
}

.status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 500;
    display: inline-block;
    min-width: 75px;
    text-align: center;
    white-space: nowrap;
}

.status-success {
    background-color: #ecfdf5;
    color: #047857;
}

.status-pending {
    background-color: #fffbe6;
    color: #d97706;
}

.status-failed {
    background-color: #fef2f2;
    color: #b91c1c;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 768px) {
    .history-table-container {
        padding: 12px;
        border-radius: 6px;
    }

    .history-th,
    .history-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .status-badge {
        min-width: 65px;
        padding: 2px 6px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .history-table {
        min-width: 420px;
    }

    .history-th,
    .history-table td {
        padding: 7px 4px;
        font-size: 11px;
    }
}
