/* WP Invoice System - Public Base Styles */
/* Estilos mínimos genéricos. Cada tema puede sobreescribirlos. */

/* Tabs */
.wis-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E8E8E8;
    margin-bottom: 24px;
}

.wis-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #7A7A7A;
    transition: all 0.2s ease;
}

.wis-tab:hover {
    color: #4A4A4A;
}

.wis-tab.active {
    color: #4A4A4A;
    border-bottom-color: #4A4A4A;
    font-weight: 600;
}

.wis-tab-content {
    display: none;
}

.wis-tab-content.active {
    display: block;
}

/* Balance section */
.wis-balance-display {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #F9F9F9;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    margin-bottom: 24px;
}

.wis-balance-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wis-balance-label {
    display: block;
    font-size: 13px;
    color: #7A7A7A;
}

.wis-balance-amount {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #4A4A4A;
}

.wis-btn-buy-credits {
    margin-left: auto;
    padding: 10px 20px;
    background: #4A4A4A;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.wis-btn-buy-credits:hover {
    background: #333;
    color: #fff;
}

/* Form */
.wis-form .wis-form-row {
    margin-bottom: 16px;
}

.wis-form .wis-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4A4A4A;
    margin-bottom: 6px;
}

.wis-form input[type="text"],
.wis-form input[type="email"],
.wis-form input[type="tel"],
.wis-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    font-size: 14px;
    color: #4A4A4A;
    background: #F9F9F9;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wis-form input:focus,
.wis-form select:focus {
    border-color: #4A4A4A;
    background: #fff;
}

.wis-form-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Radio group */
.wis-radio-group {
    display: flex;
    gap: 16px;
}

.wis-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Button */
.wis-btn-save {
    padding: 12px 28px;
    background: #4A4A4A;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.wis-btn-save:hover {
    background: #333;
}

/* Messages */
.wis-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.wis-message.success {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid rgba(22,163,74,0.2);
}

.wis-message.error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid rgba(220,38,38,0.2);
}

/* Invoices table */
.wis-invoices-table {
    width: 100%;
    border-collapse: collapse;
}

.wis-invoices-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #7A7A7A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 1px solid #E8E8E8;
    background: #F9F9F9;
}

.wis-invoices-table td {
    padding: 12px;
    font-size: 14px;
    color: #4A4A4A;
    border-bottom: 1px solid #F3F3F3;
}

.wis-invoices-table tr:hover td {
    background: #FAFAFA;
}

/* Status badges */
.wis-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.wis-status.success {
    background: #F0FDF4;
    color: #16A34A;
}

.wis-status.error {
    background: #FEF2F2;
    color: #DC2626;
}

/* Download button */
.wis-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #F9F9F9;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
    color: #4A4A4A;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.wis-btn-download:hover {
    background: #E8E8E8;
    color: #333;
}

/* Empty state */
.wis-empty {
    text-align: center;
    padding: 48px 20px;
    color: #B0B0B0;
}

.wis-empty p {
    font-size: 15px;
    margin: 0;
}
