.gastos_container * {
    box-sizing: border-box;
    font-family: var(--monserrat);
}

.gastos_container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.gastos_header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.gastos_header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: rgba(0, 0, 0, 0.862);
}

.gastos_add_btn {
    text-decoration: none;
    padding: 15px 20px;
    background-color: var(--red-border-strong);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.gastos_add_btn:hover {
    background-color: var(--red-border-default);
}

.gastos_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gastos_search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.gastos_search-box input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.gastos_search-box input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.gastos_search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.gastos_status-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.gastos_filter-dates,
.gastos_filter-btn {
    padding: 10px 18px;
    background-color: #f0f3f8;
    border: none;
    border-radius: 8px;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.gastos_filter-btn:hover {
    background-color: #e2e7f0;
}

.gastos_filter-btn.active {
    background-color: var(--red-border-default);
    color: white;
}

#gastos_clear {
    background-color: var(--red-border-strong);
    color: white;
}

#gastos_clear:hover {
    background-color: var(--red-border-default);
}

/* Tabla */

.gastos_orders-container {
    background-color: white;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gastos_table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.gastos_table thead {
    background-color: #f8fafc;
    border-bottom: 2px solid #eee;
}

.gastos_table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    color: #555;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gastos_table td {
    padding: 18px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.gastos_table tr{
    position: relative;
}

/* Paginación */

.gastos_pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-top: 1px solid #eee;
}

.gastos_pagination-controls {
    display: flex;
    gap: 10px;
}

.gastos_pagination-controls button {
    padding: 10px 16px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 6px;
    cursor: pointer;
}

.gastos_pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}