/* =========================================================
   VARIABLES
========================================================= */

:root {

    --primary:
        #2f8737;

    --primary-hover:
        #256d2c;

    --primary-soft:
        #e9f6eb;


    --background:
        #f3f5f7;

    --surface:
        #ffffff;


    --text:
        #20262c;

    --text-secondary:
        #717981;

    --text-light:
        #969da4;


    --border:
        #e4e8eb;


    --sidebar:
        #171c22;

    --sidebar-hover:
        #222930;


    --danger:
        #c83d3d;

    --danger-hover:
        #ad3030;

    --danger-soft:
        #fdeaea;


    --warning:
        #dd8a18;

    --warning-hover:
        #c9780f;

    --warning-soft:
        #fff2dc;


    --success:
        #2f8737;

    --success-soft:
        #e9f6eb;


    --shadow:
        0 4px 18px
        rgba(
            0,
            0,
            0,
            .055
        );


    --shadow-large:
        0 18px 55px
        rgba(
            0,
            0,
            0,
            .18
        );


    --radius:
        14px;

}


/* =========================================================
   RESET
========================================================= */

* {

    box-sizing:
        border-box;

    margin:
        0;

    padding:
        0;

}


html {

    min-width:
        320px;

}


body {

    min-height:
        100vh;


    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;


    background:
        var(--background);


    color:
        var(--text);

}


button,
input,
select {

    font:
        inherit;

}


button {

    border:
        none;

}


button,
select {

    cursor:
        pointer;

}


/* =========================================================
   LAYOUT
========================================================= */

.layout {

    display:
        flex;


    min-height:
        100vh;

}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {

    position:
        fixed;


    top:
        0;

    left:
        0;

    bottom:
        0;


    width:
        235px;


    padding:
        28px
        15px;


    background:
        linear-gradient(
            180deg,
            #181e24,
            #11161b
        );


    color:
        white;


    z-index:
        50;


    box-shadow:
        4px
        0
        20px
        rgba(
            0,
            0,
            0,
            .08
        );

}


/* =========================================================
   BRAND
========================================================= */

.brand {

    padding:
        0
        10px;


    margin-bottom:
        42px;

}


.brand-title {

    display:
        flex;


    align-items:
        center;


    gap:
        10px;


    font-size:
        24px;


    font-weight:
        800;

}


.brand-icon {

    font-size:
        25px;

}


.brand-subtitle {

    margin-top:
        5px;


    margin-left:
        36px;


    color:
        rgba(
            255,
            255,
            255,
            .45
        );


    font-size:
        11px;

}


/* =========================================================
   NAVIGATION
========================================================= */

.navigation {

    display:
        flex;


    flex-direction:
        column;


    gap:
        6px;

}


.nav-item {

    width:
        100%;


    display:
        flex;


    align-items:
        center;


    gap:
        11px;


    padding:
        12px
        14px;


    border-radius:
        9px;


    background:
        transparent;


    color:
        rgba(
            255,
            255,
            255,
            .72
        );


    text-align:
        left;


    font-size:
        14px;


    transition:
        .15s;


    cursor:
        pointer;

}


.nav-item:hover {

    color:
        white;


    background:
        var(--sidebar-hover);

}


.nav-item.active {

    color:
        white;


    background:
        var(--primary);


    box-shadow:
        0
        5px
        18px
        rgba(
            47,
            135,
            55,
            .25
        );

}


.nav-icon {

    width:
        22px;


    text-align:
        center;

}


/* =========================================================
   MAIN
========================================================= */

.main {

    width:
        calc(
            100%
            -
            235px
        );


    margin-left:
        235px;


    padding:
        34px
        clamp(
            20px,
            3vw,
            44px
        );

}


/* =========================================================
   LOADING
========================================================= */

.view-loading {

    min-height:
        400px;


    display:
        flex;


    flex-direction:
        column;


    align-items:
        center;


    justify-content:
        center;


    gap:
        14px;


    color:
        var(--text-secondary);

}


.loader {

    width:
        32px;


    height:
        32px;


    border:
        3px
        solid
        #ddd;


    border-top-color:
        var(--primary);


    border-radius:
        50%;


    animation:
        girar
        .7s
        linear
        infinite;

}


@keyframes girar {

    to {

        transform:
            rotate(
                360deg
            );

    }

}


/* =========================================================
   PAGE HEADER
========================================================= */

.page-header {

    display:
        flex;


    align-items:
        center;


    justify-content:
        space-between;


    gap:
        20px;


    margin-bottom:
        27px;

}


.page-title {

    font-size:
        29px;


    font-weight:
        800;


    letter-spacing:
        -.4px;

}


.page-subtitle {

    margin-top:
        5px;


    color:
        var(--text-secondary);


    font-size:
        13px;

}


.page-actions {

    display:
        flex;


    align-items:
        center;


    gap:
        9px;


    flex-wrap:
        wrap;

}


/* =========================================================
   BUTTONS
========================================================= */

.btn {

    min-height:
        38px;


    display:
        inline-flex;


    align-items:
        center;


    justify-content:
        center;


    gap:
        6px;


    padding:
        9px
        14px;


    border-radius:
        8px;


    font-size:
        13px;


    font-weight:
        700;


    transition:
        .15s;


    cursor:
        pointer;

}


.btn:hover {

    transform:
        translateY(
            -1px
        );

}


.btn:disabled {

    opacity:
        .45;


    cursor:
        not-allowed;


    transform:
        none;

}


.btn-primary {

    color:
        white;


    background:
        var(--primary);

}


.btn-primary:hover {

    background:
        var(--primary-hover);

}


.btn-secondary {

    color:
        #414950;


    background:
        white;


    border:
        1px
        solid
        var(--border);

}


.btn-secondary:hover {

    background:
        #f8f9fa;

}


.btn-warning {

    color:
        white;


    background:
        var(--warning);

}


.btn-warning:hover {

    background:
        var(--warning-hover);

}


.btn-danger {

    color:
        white;


    background:
        var(--danger);

}


.btn-danger:hover {

    background:
        var(--danger-hover);

}


.btn-small {

    min-height:
        32px;


    padding:
        7px
        10px;


    font-size:
        12px;

}


.btn-block {

    width:
        100%;

}


/* =========================================================
   FORM INPUTS
========================================================= */

.input,
.select {

    min-height:
        40px;


    padding:
        9px
        11px;


    border:
        1px
        solid
        #d6dade;


    border-radius:
        8px;


    outline:
        none;


    background:
        white;


    color:
        var(--text);


    transition:
        border-color
        .15s,
        box-shadow
        .15s;

}


.input:focus,
.select:focus {

    border-color:
        var(--primary);


    box-shadow:
        0
        0
        0
        3px
        rgba(
            47,
            135,
            55,
            .1
        );

}


.form-stack {

    display:
        flex;


    flex-direction:
        column;


    gap:
        14px;

}


.form-field label {

    display:
        block;


    margin-bottom:
        6px;


    color:
        #505960;


    font-size:
        12px;


    font-weight:
        700;

}


.form-field .input,
.form-field .select {

    width:
        100%;

}


/* =========================================================
   MONEY INPUT
========================================================= */

.money-input-wrapper {

    position:
        relative;

}


.money-prefix {

    position:
        absolute;


    top:
        50%;


    left:
        12px;


    transform:
        translateY(
            -50%
        );


    color:
        var(--text-secondary);


    font-weight:
        700;


    pointer-events:
        none;

}


.money-input {

    padding-left:
        29px;

}


/* =========================================================
   CARDS
========================================================= */

.cards {

    display:
        grid;


    gap:
        17px;


    margin-bottom:
        22px;

}


.cards-4 {

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

}


.cards-5 {

    grid-template-columns:
        repeat(
            5,
            minmax(
                0,
                1fr
            )
        );

}


.card,
.panel {

    background:
        var(--surface);


    border:
        1px
        solid
        rgba(
            0,
            0,
            0,
            .025
        );


    border-radius:
        var(--radius);


    box-shadow:
        var(--shadow);

}


.card {

    padding:
        21px;

}


.stat-card {

    min-height:
        145px;

}


.card-top {

    display:
        flex;


    align-items:
        center;


    justify-content:
        space-between;


    gap:
        15px;


    margin-bottom:
        15px;

}


.card-label {

    color:
        var(--text-secondary);


    font-size:
        11px;


    font-weight:
        750;


    text-transform:
        uppercase;


    letter-spacing:
        .3px;

}


.card-icon {

    width:
        36px;


    height:
        36px;


    display:
        grid;


    place-items:
        center;


    flex:
        0
        0
        36px;


    border-radius:
        9px;


    background:
        var(--primary-soft);


    font-size:
        17px;

}


.card-value {

    margin-top:
        12px;


    font-size:
        27px;


    font-weight:
        800;


    letter-spacing:
        -.5px;

}


.card-help {

    margin-top:
        7px;


    color:
        var(--text-secondary);


    font-size:
        11px;

}


/* =========================================================
   PANEL
========================================================= */

.panel {

    padding:
        22px;


    margin-bottom:
        20px;

}


.panel-header {

    display:
        flex;


    align-items:
        center;


    justify-content:
        space-between;


    gap:
        15px;


    margin-bottom:
        19px;

}


.panel-title {

    font-size:
        17px;


    font-weight:
        800;

}


.panel-subtitle {

    margin-top:
        4px;


    color:
        var(--text-secondary);


    font-size:
        12px;

}


/* =========================================================
   GRID
========================================================= */

.grid {

    display:
        grid;


    gap:
        20px;

}


.dashboard-summary-grid {

    grid-template-columns:
        minmax(
            0,
            2fr
        )
        minmax(
            280px,
            1fr
        );

}


.money-grid {

    grid-template-columns:
        minmax(
            0,
            1.7fr
        )
        minmax(
            300px,
            .8fr
        );

}


.stats-grid {

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

}


/* =========================================================
   SUMMARY
========================================================= */

.summary-row {

    display:
        flex;


    align-items:
        center;


    justify-content:
        space-between;


    gap:
        15px;


    padding:
        14px
        0;


    border-bottom:
        1px
        solid
        var(--border);

}


.summary-row:last-child {

    border-bottom:
        0;

}


.summary-label {

    color:
        #525a61;


    font-size:
        13px;

}


/* =========================================================
   NEXT TURN
========================================================= */

.next-turn {

    min-height:
        130px;


    display:
        flex;


    flex-direction:
        column;


    justify-content:
        center;

}


.next-time {

    margin-bottom:
        10px;


    color:
        var(--primary);


    font-size:
        35px;


    font-weight:
        850;

}


.next-list {

    display:
        flex;


    flex-direction:
        column;


    gap:
        5px;

}


.next-person {

    padding:
        8px
        0;


    border-top:
        1px
        solid
        var(--border);

}


.next-person:first-child {

    border-top:
        0;

}


.next-name {

    font-size:
        13px;


    font-weight:
        750;

}


.next-court {

    margin-top:
        3px;


    color:
        var(--text-secondary);


    font-size:
        11px;

}


/* =========================================================
   TABLE
========================================================= */

.table-wrapper {

    width:
        100%;


    overflow-x:
        auto;

}


table {

    width:
        100%;


    border-collapse:
        collapse;

}


th {

    padding:
        11px
        10px;


    border-bottom:
        1px
        solid
        var(--border);


    color:
        #7b838b;


    font-size:
        10px;


    font-weight:
        750;


    text-align:
        left;


    text-transform:
        uppercase;


    letter-spacing:
        .3px;


    white-space:
        nowrap;

}


td {

    padding:
        13px
        10px;


    border-bottom:
        1px
        solid
        #edf0f2;


    font-size:
        13px;


    vertical-align:
        middle;


    white-space:
        nowrap;

}


tbody tr:last-child td {

    border-bottom:
        0;

}


tbody tr {

    transition:
        background
        .12s;

}


tbody tr:hover {

    background:
        #fafbfc;

}


.cell-main {

    font-weight:
        750;

}


/* =========================================================
   BADGES
========================================================= */

.badge {

    display:
        inline-flex;


    align-items:
        center;


    padding:
        5px
        9px;


    border-radius:
        20px;


    font-size:
        11px;


    font-weight:
        750;

}


.badge-green {

    color:
        #27742f;


    background:
        var(--success-soft);

}


.badge-red {

    color:
        #a53030;


    background:
        var(--danger-soft);

}


.badge-yellow {

    color:
        #8c5f11;


    background:
        var(--warning-soft);

}


/* =========================================================
   DESHABILITAR DISPONIBILIDAD
========================================================= */

.disable-grid {

    display:
        grid;


    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );


    gap:
        16px;

}


.disable-card {

    display:
        flex;


    gap:
        16px;


    padding:
        19px;


    border:
        1px
        solid
        var(--border);


    border-radius:
        12px;


    background:
        #fafbfc;

}


.disable-icon {

    width:
        44px;


    height:
        44px;


    display:
        grid;


    place-items:
        center;


    flex:
        0
        0
        44px;


    border-radius:
        10px;


    background:
        var(--primary-soft);


    font-size:
        20px;

}


.disable-content {

    flex:
        1;

}


.disable-content h3 {

    margin-bottom:
        5px;


    font-size:
        15px;

}


.disable-content > p {

    min-height:
        36px;


    margin-bottom:
        17px;


    color:
        var(--text-secondary);


    font-size:
        12px;


    line-height:
        1.5;

}


/* =========================================================
   CHARTS
========================================================= */

.chart {

    display:
        flex;


    flex-direction:
        column;


    gap:
        15px;


    padding:
        5px
        0;

}


.chart-row {

    display:
        grid;


    grid-template-columns:
        95px
        minmax(
            80px,
            1fr
        )
        55px;


    align-items:
        center;


    gap:
        12px;

}


.chart-label {

    font-size:
        12px;


    font-weight:
        600;

}


.chart-track {

    height:
        15px;


    overflow:
        hidden;


    border-radius:
        20px;


    background:
        #e9edf0;

}


.chart-fill {

    height:
        100%;


    min-width:
        0;


    border-radius:
        20px;


    background:
        linear-gradient(
            90deg,
            var(--primary),
            #60b467
        );


    transition:
        width
        .3s;

}


.chart-value {

    color:
        var(--text-secondary);


    font-size:
        11px;


    font-weight:
        700;


    text-align:
        right;

}


/* =========================================================
   EMPTY
========================================================= */

.empty {

    padding:
        28px
        10px;


    color:
        var(--text-secondary);


    font-size:
        13px;


    text-align:
        center;

}


/* =========================================================
   MODAL
========================================================= */

.modal-overlay {

    position:
        fixed;


    inset:
        0;


    display:
        none;


    align-items:
        center;


    justify-content:
        center;


    padding:
        20px;


    background:
        rgba(
            10,
            15,
            20,
            .58
        );


    backdrop-filter:
        blur(
            3px
        );


    z-index:
        100;

}


.modal-overlay.active {

    display:
        flex;

}


.modal {

    width:
        430px;


    max-width:
        100%;


    padding:
        25px;


    border-radius:
        16px;


    background:
        white;


    box-shadow:
        var(--shadow-large);


    animation:
        modalEntrada
        .18s
        ease-out;

}


@keyframes modalEntrada {

    from {

        opacity:
            0;


        transform:
            translateY(
                10px
            )
            scale(
                .98
            );

    }


    to {

        opacity:
            1;


        transform:
            translateY(
                0
            )
            scale(
                1
            );

    }

}


.modal-header {

    display:
        flex;


    align-items:
        flex-start;


    justify-content:
        space-between;


    gap:
        15px;


    margin-bottom:
        22px;

}


.modal-title {

    font-size:
        20px;


    font-weight:
        800;

}


.modal-subtitle {

    margin-top:
        5px;


    color:
        var(--text-secondary);


    font-size:
        12px;

}


.modal-close {

    width:
        32px;


    height:
        32px;


    display:
        grid;


    place-items:
        center;


    border-radius:
        8px;


    background:
        #f1f3f5;


    color:
        #5f676e;


    font-size:
        21px;


    cursor:
        pointer;

}


.modal-close:hover {

    background:
        #e7eaed;

}


.modal-actions {

    display:
        flex;


    justify-content:
        flex-end;


    gap:
        9px;


    margin-top:
        23px;

}


/* =========================================================
   TOAST
========================================================= */

.toast {

    position:
        fixed;


    right:
        25px;


    bottom:
        25px;


    max-width:
        440px;


    padding:
        14px
        17px;


    border-radius:
        9px;


    background:
        #262d33;


    color:
        white;


    box-shadow:
        0
        10px
        30px
        rgba(
            0,
            0,
            0,
            .2
        );


    font-size:
        13px;


    opacity:
        0;


    pointer-events:
        none;


    transform:
        translateY(
            12px
        );


    transition:
        .2s;


    z-index:
        150;

}


.toast.visible {

    opacity:
        1;


    transform:
        translateY(
            0
        );

}


.toast.success {

    background:
        #287b33;

}


.toast.error {

    background:
        #ad3434;

}


/* =========================================================
   RESPONSIVE 1280
========================================================= */

@media (
    max-width:
    1280px
) {

    .cards-5 {

        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            );

    }

}


/* =========================================================
   RESPONSIVE 1050
========================================================= */

@media (
    max-width:
    1050px
) {

    .cards-4,
    .cards-5 {

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

    }


    .dashboard-summary-grid,
    .money-grid,
    .stats-grid,
    .disable-grid {

        grid-template-columns:
            1fr;

    }

}


/* =========================================================
   TURNOS
========================================================= */

.turnos-page {
    padding: 28px 30px 40px;
    width: 100%;
    box-sizing: border-box;
}


/* HEADER */

.turnos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.turnos-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #17202a;
}

.turnos-header p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 14px;
}


/* PANEL */

.turnos-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.045);
    margin-bottom: 22px;
}

.turnos-panel h2 {
    margin: 0;
    font-size: 18px;
    color: #17202a;
}

.turnos-panel p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.turnos-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.turnos-panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef7f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}


/* FILTRO */

.turnos-filtro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.turnos-filtro .turnos-field {
    width: 220px;
}


/* MÉTRICAS */

.turnos-metricas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.turnos-metrica {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    min-height: 115px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.045);
}

.turnos-metrica-icono {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef7f0;
    border-radius: 10px;
}

.turnos-metrica-label {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #667085;
    margin-bottom: 13px;
}

.turnos-metrica-valor {
    font-size: 28px;
    font-weight: 800;
    color: #17202a;
    line-height: 1;
    margin-bottom: 9px;
}

.turnos-metrica-descripcion {
    font-size: 12px;
    color: #7c8594;
}


/* FORMULARIOS */

.turnos-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.turnos-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.turnos-field label {
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
}

.turnos-field input,
.turnos-field select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #dce1e7;
    border-radius: 9px;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    color: #17202a;
    box-sizing: border-box;
}

.turnos-field input:focus,
.turnos-field select:focus {
    outline: none;
    border-color: #2f913e;
    box-shadow: 0 0 0 3px rgba(47, 145, 62, 0.10);
}


/* BOTONES */

.btn-turnos-secondary {
    border: 1px solid #dce1e7;
    background: #ffffff;
    color: #25313c;
    border-radius: 9px;
    padding: 10px 15px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-turnos-secondary:hover {
    background: #f6f8f9;
}

.btn-turnos-danger {
    border: 0;
    background: #c53b3b;
    color: #ffffff;
    min-height: 42px;
    border-radius: 9px;
    padding: 0 17px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn-turnos-danger:hover {
    background: #ad3030;
}


/* TABLA */

.turnos-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.turnos-table {
    width: 100%;
    border-collapse: collapse;
}

.turnos-table thead th {
    padding: 12px 10px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #667085;
    border-bottom: 1px solid #e5e7eb;
}

.turnos-table tbody td {
    padding: 14px 10px;
    font-size: 13px;
    color: #25313c;
    border-bottom: 1px solid #edf0f2;
    vertical-align: middle;
}

.turnos-table tbody tr:last-child td {
    border-bottom: 0;
}

.turnos-table tbody tr:hover {
    background: #fafbfb;
}

.turnos-empty {
    padding: 35px !important;
    text-align: center;
    color: #7c8594 !important;
}


/* BLOQUEOS */

.turnos-bloqueos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.turnos-bloqueos-grid .turnos-panel {
    margin-bottom: 0;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .turnos-metricas {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 760px) {

    .turnos-page {
        padding: 20px 15px;
    }

    .turnos-header,
    .turnos-filtro {
        flex-direction: column;
        align-items: stretch;
    }

    .turnos-filtro .turnos-field {
        width: 100%;
    }

    .turnos-metricas {
        grid-template-columns: 1fr;
    }

    .turnos-bloqueos-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   PRÓXIMO TURNO
========================================================= */

.proximo-turno-hora {
    font-size: 32px;
    font-weight: 800;
    color: #2f913e;
    line-height: 1;
    margin-bottom: 14px;
}

.proximo-turno-cliente {
    font-size: 15px;
    font-weight: 700;
    color: #182230;
    margin-bottom: 5px;
}

.proximo-turno-cancha {
    font-size: 13px;
    color: #667085;
    margin-bottom: 12px;
}

.proximo-turno-pago {
    margin-top: 8px;
}

.proximo-vacio {
    color: #667085;
    font-size: 14px;
    padding-top: 20px;
}


/* =========================================================
   GANANCIA ESTIMADA
========================================================= */

.cards.cards-5 > .card.ganancia-card {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f0f9f2
        );

    border:
        1px solid
        #b9dfc0;

    box-shadow:
        0 4px 18px
        rgba(
            47,
            135,
            55,
            .10
        );
}

.cards.cards-5 > .card.ganancia-card .card-label {
    color:
        #247632;
}

.cards.cards-5 > .card.ganancia-card .card-value {
    color:
        #247632;
}

.cards.cards-5 > .card.ganancia-card::after {
    content:
        "Ingresos del mes - gastos";

    display:
        block;

    margin-top:
        7px;

    color:
        #667085;

    font-size:
        11px;
}


/* =========================================================
   ELEMENTOS MOBILE
========================================================= */

.mobile-topbar,
.sidebar-backdrop {
    display:
        none;
}


/* =========================================================
   RESPONSIVE MOBILE / TABLET
========================================================= */

@media (
    max-width:
    760px
) {

    body {
        overflow-x:
            hidden;
    }


    /* =============================================
       BARRA SUPERIOR MOBILE
    ============================================= */

    .mobile-topbar {

        position:
            sticky;

        top:
            0;

        z-index:
            80;


        height:
            60px;


        display:
            flex;

        align-items:
            center;

        justify-content:
            space-between;


        padding:
            0 15px;


        background:
            #171c22;

        color:
            white;


        box-shadow:
            0 3px 14px
            rgba(
                0,
                0,
                0,
                .12
            );
    }


    .mobile-brand {

        font-size:
            18px;

        font-weight:
            800;
    }


    .mobile-menu-button {

        width:
            42px;

        height:
            42px;


        display:
            grid;

        place-items:
            center;


        border-radius:
            9px;


        background:
            rgba(
                255,
                255,
                255,
                .08
            );

        color:
            white;


        font-size:
            23px;

        cursor:
            pointer;
    }


    /* =============================================
       SIDEBAR MOBILE
    ============================================= */

    .sidebar {

        width:
            260px;


        padding:
            25px 15px;


        transform:
            translateX(
                -105%
            );


        transition:
            transform
            .22s
            ease;


        z-index:
            100;


        box-shadow:
            8px
            0
            30px
            rgba(
                0,
                0,
                0,
                .22
            );
    }


    .sidebar.mobile-open {

        transform:
            translateX(
                0
            );
    }


    .sidebar .brand-title {

        justify-content:
            flex-start;
    }


    .sidebar .brand-title span:last-child {

        display:
            inline;
    }


    .sidebar .brand-subtitle {

        display:
            block;

        margin-left:
            0;
    }


    .sidebar .navigation {

        margin-top:
            20px;
    }


    .sidebar .nav-item {

        justify-content:
            flex-start;


        min-height:
            46px;


        padding:
            12px
            14px;
    }


    .sidebar .nav-item span:last-child {

        display:
            inline;
    }


    .sidebar .nav-icon {

        width:
            22px;
    }


    /* =============================================
       FONDO DEL MENÚ
    ============================================= */

    .sidebar-backdrop {

        position:
            fixed;

        inset:
            0;


        z-index:
            90;


        background:
            rgba(
                0,
                0,
                0,
                .45
            );


        backdrop-filter:
            blur(
                2px
            );
    }


    .sidebar-backdrop.active {

        display:
            block;
    }


    /* =============================================
       LAYOUT / CONTENIDO
    ============================================= */

    .layout {

        display:
            block;


        min-height:
            auto;
    }


    .main {

        width:
            100%;


        margin-left:
            0;


        padding:
            18px
            14px
            32px;
    }


    .view {

        width:
            100%;

        min-width:
            0;
    }


    /* =============================================
       ENCABEZADOS
    ============================================= */

    .page-header {

        flex-direction:
            row;


        align-items:
            flex-start;


        gap:
            12px;


        margin-bottom:
            20px;
    }


    .page-title {

        font-size:
            24px;
    }


    .page-subtitle {

        font-size:
            12px;
    }


    .page-header > .btn {

        flex:
            0 0 auto;
    }


    .page-actions {

        width:
            100%;
    }


    .page-actions .input {

        flex:
            1;
    }


    /* =============================================
       CARDS
    ============================================= */

    .cards {

        gap:
            12px;


        margin-bottom:
            16px;
    }


    .cards-4,
    .cards-5 {

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }


    .card {

        padding:
            16px;


        min-width:
            0;
    }


    .card-value {

        font-size:
            22px;


        word-break:
            break-word;
    }


    .card-label {

        font-size:
            10px;
    }


    /* =============================================
       PANELES / GRIDS
    ============================================= */

    .dashboard-summary-grid,
    .money-grid,
    .stats-grid,
    .disable-grid {

        grid-template-columns:
            1fr;
    }


    .panel {

        padding:
            16px;


        margin-bottom:
            15px;
    }


    .panel-header {

        flex-direction:
            row;


        align-items:
            flex-start;


        gap:
            10px;
    }


    .disable-card {

        flex-direction:
            column;
    }


    /* =============================================
       TABLAS
    ============================================= */

    .table-wrapper {

        width:
            100%;


        overflow-x:
            auto;


        -webkit-overflow-scrolling:
            touch;
    }


    .table-wrapper table {

        min-width:
            650px;
    }


    th {

        padding:
            10px
            8px;
    }


    td {

        padding:
            12px
            8px;
    }


    /* =============================================
       FORMULARIOS / BOTONES
    ============================================= */

    .input,
    .select,
    input,
    select {

        font-size:
            16px;
    }


    .btn {

        min-height:
            44px;
    }


    /* =============================================
       ESTADÍSTICAS
    ============================================= */

    .chart-row {

        grid-template-columns:
            65px
            minmax(
                80px,
                1fr
            )
            42px;


        gap:
            8px;
    }


    .chart-label {

        font-size:
            11px;
    }


    /* =============================================
       MODAL COMO BOTTOM SHEET
    ============================================= */

    .modal-overlay {

        align-items:
            flex-end;


        padding:
            0;
    }


    .modal {

        width:
            100%;


        max-height:
            90dvh;


        overflow-y:
            auto;


        padding:
            20px;


        border-radius:
            18px
            18px
            0
            0;
    }


    .modal-actions {

        flex-direction:
            column-reverse;
    }


    .modal-actions .btn {

        width:
            100%;
    }


    /* =============================================
       TOAST
    ============================================= */

    .toast {

        left:
            12px;

        right:
            12px;

        bottom:
            12px;


        max-width:
            none;
    }

}


/* =========================================================
   CELULARES CHICOS
========================================================= */

@media (
    max-width:
    480px
) {

    .cards-4,
    .cards-5 {

        grid-template-columns:
            1fr;
    }


    .page-header {

        align-items:
            center;
    }


    .page-title {

        font-size:
            22px;
    }


    .page-header > .btn {

        padding:
            8px
            10px;


        font-size:
            12px;
    }

}
