/* =========================================================
   REXIA CUSTOM STYLES & LAYOUT
   Objective: 
   - Centralize layout settings and colors for Rexia
   - Unify header aesthetics with Checkinnova & Validoc layout
   - Eliminate inline styling for easier maintainability
   ========================================================= */

.wp-theme-rexia .rx-main-card {
    border: 0;
    box-shadow: var(--wp-shadow-sm, 0 2px 8px rgba(16, 24, 40, 0.05));
    padding: 2rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    background-color: #ffffff;
    margin-bottom: 2rem;
}

.wp-theme-rexia .rx-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--wp-border, #e5eaf1);
}

.wp-theme-rexia .rx-header-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--rx-primary);
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.wp-theme-rexia .rx-header-icon {
    margin-right: 0.75rem;
    color: var(--rx-primary);
}

.wp-theme-rexia .rx-header-subtitle {
    color: var(--wp-text-muted, #7b88a1);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Common Layout Elements */
.wp-theme-rexia .rx-table-responsive {
    overflow: auto;
}

.wp-theme-rexia .rx-table-min-width {
    min-width: 1100px;
}

.wp-theme-rexia .rx-table-min-width-lg {
    min-width: 1200px;
}

.wp-theme-rexia .rx-modal-overlay {
    background: rgba(0,0,0,0.45); 
    backdrop-filter: blur(4px);
}

.wp-theme-rexia .rx-modal-overlay-dark {
    background: rgba(0,0,0,0.35);
}

.wp-theme-rexia .rx-progress-height {
    height: 20px;
}

.wp-theme-rexia .rx-badge-circle {
    width: 28px;
    height: 28px;
}

.wp-theme-rexia .rx-col-w-40 {
    width: 40%;
}

.wp-theme-rexia .rx-col-w-45 {
    width: 45%;
}

.wp-theme-rexia .rx-col-w-20 {
    width: 20%;
}

.wp-theme-rexia .rx-col-w-25 {
    width: 25%;
}

.wp-theme-rexia .rx-col-w-30 {
    width: 30%;
}

.wp-theme-rexia .rx-col-w-35 {
    width: 35%;
}

.wp-theme-rexia .rx-col-w-10 {
    width: 10%;
}

.wp-theme-rexia .rx-col-w-15 {
    width: 15%;
}

.wp-theme-rexia .rx-col-w-50 {
    width: 50%;
}

.wp-theme-rexia .rx-max-w-100 {
    max-width: 100px;
}

.wp-theme-rexia .rx-min-h-350 {
    min-height: 350px;
}

.wp-theme-rexia .rx-min-h-400 {
    min-height: 400px;
}

/* Subtle warning row for near-due invoices */
.wp-theme-rexia .table-warning-subtle > td {
    background-color: rgba(255, 193, 7, 0.06) !important;
}
