/* --- LAYOUT UTILS --- */
.page-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

/* --- HEADER & SEARCH --- */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-title {
    font-size: 1.8rem;
    color: #1e293b;
    margin: 0;
}

.search-form {
    flex-grow: 1;
    max-width: 400px;
}

.search-input-group {
    display: flex;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 50px; /* Pill shape */
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    align-items: center;
    transition: border-color 0.2s;
}

.search-input-group:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-icon {
    padding-left: 15px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.search-input {
    border: none;
    background: transparent;
    padding: 10px;
    outline: none;
    flex-grow: 1;
    font-size: 0.95rem;
    color: #334155;
}

.search-btn {
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background-color: #059669;
}

/* --- TABLE STYLES --- */
.table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
}

.styled-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 15px 20px;
    text-align: left;
}

.styled-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.amount-badge {
    background: #ecfdf5;
    color: #047857;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    color: #94a3b8;
    padding: 40px;
    font-style: italic;
}

/* --- TABLE ACTION BUTTON --- */
.details-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px; /* Pill shape */
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;

    /* Default State: Clean & Neutral */
    background-color: #f8fafc; /* Very Light Gray */
    color: #64748b;            /* Slate Text */
    border: 1px solid #e2e8f0;
}

.details-btn:hover {
    /* Hover State: AgriFarm Green */
    background-color: #10b981;
    color: white;
    border-color: #10b981;
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}


/* --- FOOTER & PAGINATION --- */
.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Style the Kaminari Pagination links */
.pagination-wrapper nav {
    display: flex;
    gap: 5px;
}

.pagination-wrapper .page, .pagination-wrapper .next, .pagination-wrapper .prev, .pagination-wrapper .first, .pagination-wrapper .last {
    display: inline-block;
}

.pagination-wrapper a, .pagination-wrapper span {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: white;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-wrapper a:hover {
    border-color: #10b981;
    color: #10b981;
}

.pagination-wrapper .current {
    background: #10b981;
    color: white;
    border-color: #10b981;
}


/* --- ACTION BUTTONS --- */
.buttons-group {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s;
}

.action-btn.primary {
    background: #0f172a;
    color: white;
}
.action-btn.secondary {
    background: white;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.action-btn:hover {
    transform: translateY(-2px);
}