* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef2f6;
    color: #172033;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #f6ad72 0%, #f4a261 100%);
    color: #2b2b2b;
    overflow: auto;
    padding: 18px;
}

.brand {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 18px;
}

.brand span {
    color: #8a3f00;
}

.sidebar a {
    display: block;
    color: #2b2b2b;
    text-decoration: none;
    padding: 9px 10px;
    border-radius: 8px;
    margin: 2px 0;
    font-size: 13px;
}

.sidebar a:hover,
.sidebar .home {
    background: rgba(255, 255, 255, 0.45);
}

.menu-title {
    font-weight: 700;
    margin: 18px 0 7px;
    color: #7a3a00;
    text-transform: uppercase;
    font-size: 12px;
}

.admin {
    color: #7a3a00;
}

.muted {
    opacity: .55;
}

.logout {
    margin-top: 18px;
    background: #7a1d1d;
}

.main {
    margin-left: 300px;
    padding: 24px;
}

.topbar {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 18px;
    box-shadow: 0 8px 26px rgba(18, 32, 51, .08);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.slide {
    background: #fff;
    min-height: 680px;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 8px 26px rgba(18, 32, 51, .10);
}

h1 {
    margin: 0 0 16px;
    font-size: 30px;
    color: #102a4c;
}

.subtitle {
    color: #637089;
}

.table-wrap {
    overflow: auto;
}

.ppt-text {
    white-space: pre-wrap;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.35;
}

.btn {
    background: #0d6efd;
    color: #fff !important;
    border: 0;
    border-radius: 9px;
    padding: 10px 14px;
    text-decoration: none;
    display: inline-block;
}

.btn.secondary {
    background: #506070;
}

input,
select,
textarea {
    padding: 9px;
    border: 1px solid #ccd5e2;
    border-radius: 8px;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}

td,
th {
    border: 1px solid #dbe3ee;
    padding: 7px;
    text-align: right;
}

th {
    background: #122033;
    color: #fff;
}

td:first-child,
th:first-child {
    text-align: left;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 26px rgba(18, 32, 51, .08);
    margin-bottom: 16px;
}

.links a {
    margin-right: 8px;
    margin-bottom: 8px;
}

.notice {
    background: #fff8e1;
    border-left: 5px solid #ffc107;
    padding: 10px;
    border-radius: 8px;
}

.login {
    display: grid;
    place-items: center;
    height: 100vh;
}

.login .card {
    width: 360px;
}

.form-row {
    margin: 10px 0;
}

.form-row input {
    width: 100%;
}

@media(max-width:900px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .main {
        margin-left: 0;
    }
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 12px 0;
    font-weight: 600;
}

.alert.ok {
    background: #e8f7ef;
    color: #17633a;
}

.alert.error {
    background: #fdeaea;
    color: #8a1f1f;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
}

.form-grid input,
.form-grid select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
}

.form-grid .check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-grid .check input {
    width: auto;
}

.actions {
    display: flex;
    align-items: end;
    gap: 8px;
}

.btn.small {
    padding: 6px 9px;
    font-size: 12px;
}

/* Estilo financiero tipo PPT Directorio */

.slide {
    background: #fff;
    min-height: 680px;
    border-radius: 18px;
    padding: 34px 42px;
    box-shadow: 0 8px 26px rgba(18, 32, 51, .10);
}

.slide h2 {
    font-size: 28px;
    margin: 18px 0 22px;
    color: #172033;
    line-height: 1.15;
}

.slide h2 span {
    font-size: 20px;
    font-weight: 600;
    color: #36475e;
}

.ppt-text {
    font-size: 16px;
    margin-bottom: 12px;
}

.ppt-fin {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    background: #fff;
}

.ppt-fin th {
    background: #fff;
    color: #172033;
    border: 0;
    border-bottom: 2px solid #172033;
    text-align: center;
    font-weight: 700;
    padding: 6px 8px;
}

.ppt-fin td {
    border: 0;
    border-bottom: 1px solid #d7dce4;
    padding: 6px 8px;
    text-align: right;
    white-space: nowrap;
}

.ppt-fin td.lbl,
.ppt-fin th:first-child {
    text-align: left;
    white-space: normal;
}

.ppt-fin .num {
    font-variant-numeric: tabular-nums;
}

.ppt-fin .neg {
    color: #172033;
}

.ppt-fin tr.strong td {
    font-weight: 700;
}

.ppt-fin tr.total td {
    font-weight: 800;
    border-top: 2px solid #172033;
    border-bottom: 2px solid #172033;
    background: #f7f9fc;
}

.ppt-fin tr.grand-total td {
    font-weight: 900;
    border-top: 3px solid #172033;
    border-bottom: 3px solid #172033;
    background: #eef3fb;
}

.ppt-fin tr.pct-row td {
    font-weight: 600;
    color: #34445c;
}

.ppt-fin tr.blank td {
    border: 0;
    height: 18px;
    background: #fff;
}

.ppt-fin tr.section td {
    font-weight: 900;
    text-align: left;
    background: #f1f4f8;
    border-top: 2px solid #172033;
    color: #172033;
}

.ppt-fin.compact {
    font-size: 13px;
}

.ppt-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

.ppt-fin.conting {
    font-size: 11px;
}

.ppt-fin.conting td {
    white-space: normal;
    vertical-align: top;
}

.ppt-fin.balance {
    font-size: 13px;
}

@media(max-width:1300px) {
    .ppt-grid-3 {
        grid-template-columns: 1fr;
    }

    .ppt-fin {
        font-size: 12px;
    }

    .slide {
        padding: 26px;
    }
}