/**
 * Contabilidad General Express - Fiscal Close Module CSS (fiscalclose.css)
 */

.fiscal-close-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px;
}

.fiscal-close-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-back-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.btn-back-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.fiscal-close-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 2px 0 0 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.active-period-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e0e7ff;
    color: #3730a3;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #c7d2fe;
}

/* ------------------------------------------------------------------------- */
/* WIZARD STEPS HEADER BAR                                                  */
/* ------------------------------------------------------------------------- */

.wizard-steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.wizard-step.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wizard-step-divider {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 20px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #cbd5e1;
    transition: all 0.2s ease;
}

.wizard-step.active .step-number {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.wizard-step.completed .step-number {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.step-label strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
}

.step-label small {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
}

.wizard-step.active .step-label strong {
    color: #4f46e5;
}

/* ------------------------------------------------------------------------- */
/* WIZARD CONTENT CARD                                                       */
/* ------------------------------------------------------------------------- */

.wizard-content-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.wizard-step-panel .panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.wizard-step-panel .panel-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 20px;
}

/* SUMMARY CARDS GRID */
.fc-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.fc-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
}

.fc-summary-card.income-card {
    border-left: 4px solid #10b981;
}

.fc-summary-card.expense-card {
    border-left: 4px solid #ef4444;
}

.fc-summary-card.result-card {
    border-left: 4px solid #4f46e5;
}

.summary-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
}

/* TABLES */
.fc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.fc-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #e2e8f0;
}

.fc-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

/* HISTORIAL CARD */
.fc-history-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.history-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
