.ref-admin-wrap {
    max-width: 1200px;
    margin: 20px;
}

.ref-admin-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.ref-admin-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ref-form-row {
    display: flex;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ref-form-label {
    width: 250px;
    font-weight: 600;
    padding-top: 5px;
}

.ref-form-field {
    flex: 1;
}

.ref-desc {
    margin: 5px 0 0;
    font-size: 12px;
    color: #666;
}

.ref-button {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.ref-button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.ref-button-primary:hover {
    background: #005a87;
}

.ref-button-small {
    padding: 4px 8px;
    font-size: 12px;
}

.ref-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.ref-table th,
.ref-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ref-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.ref-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.ref-status-pending {
    background: #fff3cd;
    color: #856404;
}

.ref-status-processing {
    background: #cce5ff;
    color: #004085;
}

.ref-status-completed {
    background: #d4edda;
    color: #155724;
}

.ref-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.ref-stats-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.ref-stat-card {
    flex: 1;
    min-width: 150px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ref-stat-icon {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #0073aa;
}

.ref-stat-info {
    flex: 1;
}

.ref-stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.ref-stat-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.ref-filter-bar {
    margin-bottom: 20px;
}

.ref-filter-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f1f1;
    margin-right: 5px;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}

.ref-filter-btn.active {
    background: #0073aa;
    color: #fff;
}

.ref-pagination {
    margin-top: 20px;
    text-align: center;
}

.ref-pagination-link {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #0073aa;
}

.ref-pagination-active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.ref-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

.ref-levels-table {
    margin-top: 20px;
}