/**
 * Estilos para la parte pública del plugin
 */

/* Estilos generales */
.afactura-container {
    margin: 20px 0;
}

.afactura-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.afactura-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.afactura-form-row {
    margin-bottom: 15px;
}

.afactura-form-row:after {
    content: "";
    display: table;
    clear: both;
}

.afactura-form-col {
    float: left;
    width: 48%;
    margin-right: 4%;
}

.afactura-form-col:last-child {
    margin-right: 0;
}

.afactura-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.afactura-form-label .required {
    color: #d63638;
}

.afactura-form-input,
.afactura-form-select,
.afactura-form-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.afactura-form-textarea {
    min-height: 100px;
}

.afactura-form-actions {
    margin-top: 20px;
    text-align: right;
}

.afactura-button {
    display: inline-block;
    padding: 8px 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.afactura-button:hover {
    background: #135e96;
}

.afactura-button-secondary {
    background: #f6f7f7;
    color: #2c3338;
    border: 1px solid #2c3338;
}

.afactura-button-secondary:hover {
    background: #f0f0f1;
}

/* Estilos para listados */
.afactura-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

.afactura-table th {
    background: #f6f7f7;
    font-weight: 600;
}

.afactura-table tr:hover {
    background: #f9f9f9;
}

.afactura-table .invoice-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.afactura-table .invoice-status.paid {
    background-color: #d4f1d4;
    color: #1d7d1d;
}

.afactura-table .invoice-status.unpaid {
    background-color: #f9d6d6;
    color: #b32d2d;
}

/* Estilos para alertas */
.afactura-alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.afactura-alert-success {
    background-color: #d4f1d4;
    color: #1d7d1d;
    border: 1px solid #c3e6c3;
}

.afactura-alert-error {
    background-color: #f9d6d6;
    color: #b32d2d;
    border: 1px solid #f5c2c2;
}

/* Estilos para paginación */
.afactura-pagination {
    margin-top: 20px;
    text-align: center;
}

.afactura-pagination a,
.afactura-pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f6f7f7;
}

.afactura-pagination .current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.afactura-pagination a:hover {
    background: #f0f0f1;
}