/* ========================================
   Global
   ======================================== */
* {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
}

/* ========================================
   Login
   ======================================== */
.login-brand-sub {
    display: block;
    text-transform: uppercase;
    color: #868e96;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 500;
}

.login-brand-main {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c2c2c;
    letter-spacing: 1px;
}

.login-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    box-shadow: none;
}

.login-label {
    text-transform: uppercase;
    font-size: 0.82rem;
    color: #6c757d;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.login-input {
    border-radius: 2px;
    border: 1px solid #ced4da;
    padding: 0.6rem 0.75rem;
}

.login-input:focus {
    border-color: #868e96;
    box-shadow: none;
}

.login-btn {
    background: #495057;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 2px;
    border: none;
    padding: 0.6rem;
}

.login-btn:hover {
    background: #343a40;
    color: #fff;
}

.login-forgot {
    color: #868e96;
    font-size: 0.8rem;
    text-decoration: none;
}

.login-forgot:hover {
    color: #495057;
    text-decoration: none;
}

/* ========================================
   Sidebar
   ======================================== */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: #343a40;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid #495057;
}

.sidebar-brand-sub {
    display: block;
    color: #868e96;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

.sidebar-brand-main {
    display: block;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: #adb5bd;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.sidebar-link i {
    font-size: 1.1rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: #495057;
    border-left-color: #adb5bd;
    text-decoration: none;
}

.sidebar-footer {
    border-top: 1px solid #495057;
    padding: 1rem 0;
}

.sidebar-logout:hover {
    background: #5a3a3a !important;
    border-left-color: #e07070 !important;
    color: #f0a0a0 !important;
}

/* ========================================
   Main content
   ======================================== */
.main-content {
    margin-left: 250px;
    padding: 2.5rem;
    min-height: 100vh;
    background: #fff;
}

/* ========================================
   Page titles
   ======================================== */
.page-title {
    color: #2c2c2c;
    font-weight: 600;
    font-size: 1.3rem;
}

.page-subtitle {
    color: #868e96;
    font-size: 0.85rem;
}

/* ========================================
   Financieros list
   ======================================== */
.month-item {
    border-radius: 0 !important;
    border-color: #e9ecef !important;
    font-size: 0.9rem;
    color: #495057;
    padding: 0.7rem 1rem;
}

.month-item:hover {
    background: #f8f9fa;
    color: #2c2c2c;
}

/* ========================================
   Mobile topbar
   ======================================== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #343a40;
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.75rem;
}

.topbar-toggle {
    color: #adb5bd;
    font-size: 1.4rem;
    padding: 0.25rem;
    line-height: 1;
    border: none;
    background: none;
}

.topbar-toggle:hover {
    color: #fff;
}

.topbar-brand {
    display: flex;
    flex-direction: column;
}

.topbar-brand-sub {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #868e96;
    line-height: 1;
}

.topbar-brand-main {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1035;
}

.sidebar-overlay.show {
    display: block;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 767.98px) {
    #sidebar {
        transform: translateX(-100%);
        z-index: 1040;
    }

    #sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
        padding-top: 80px;
    }
}

@media (min-width: 768px) {
    .topbar {
        display: none !important;
    }
}

/* ========================================
   Report detail
   ======================================== */
.section-title {
    color: #2c2c2c;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.metric-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 2px;
    padding: 1.25rem;
    text-align: center;
}

.metric-label {
    font-size: 0.78rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c2c2c;
}

.report-table {
    font-size: 0.88rem;
}

.report-table th {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #dee2e6;
}

.report-table td {
    vertical-align: middle;
    border-color: #e9ecef;
}

.variacion-positiva {
    color: #198754;
}

.variacion-negativa {
    color: #dc3545;
}

/* Concepto clickeable */
.concepto-link {
    cursor: pointer;
    color: #495057;
    text-decoration: underline dotted #adb5bd;
    font-weight: 500;
}

.concepto-link:hover {
    color: #2c2c2c;
    text-decoration: underline solid #495057;
}

/* Adjunto download link */
.adjunto-link {
    font-size: 0.82rem;
    color: #495057;
    text-decoration: none;
}

.adjunto-link:hover {
    color: #2c2c2c;
    text-decoration: underline;
}

/* Wizard tabs */
.nav-pills .nav-link {
    color: #6c757d;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background: #495057;
    color: #fff;
}

.nav-pills .nav-link:hover:not(.active) {
    color: #2c2c2c;
    background: #f8f9fa;
}

/* ========================================
   Admin form
   ======================================== */
.adjunto-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 50%;
}
