/* =========================================================
   PADELBOT / DEMO - CAPA VISUAL
   Este archivo complementa styles.css y turnos.css.
========================================================= */

:root {
    --ink-strong: #17202a;
    --ink-soft: #667085;
    --green-deep: #246d30;
    --green-main: #2f8737;
    --green-soft-2: #f0f8f1;
    --surface-soft: #f8faf9;
    --line-soft: #edf1ee;
}

svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.brand {
    margin-bottom: 34px;
}

.brand-title {
    gap: 12px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    background:
        linear-gradient(
            145deg,
            rgba(70,174,81,.95),
            rgba(38,117,49,.95)
        );
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
    color: #fff;
    font-size: 17px;
    font-weight: 850;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-name {
    font-size: 20px;
    line-height: 1.1;
}

.brand-eyebrow {
    color: rgba(255,255,255,.48);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.brand-subtitle {
    margin: 10px 0 0 50px;
}

.nav-item {
    position: relative;
    min-height: 44px;
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: -7px;
    width: 3px;
    height: 22px;
    border-radius: 5px;
    background: #8fd596;
}

.nav-icon {
    display: grid;
    place-items: center;
    font-size: 18px;
}

.nav-icon svg {
    width: 19px;
    height: 19px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 18px 9px 0;
    border-top: 1px solid rgba(255,255,255,.07);
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sidebar-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #52c460;
    box-shadow: 0 0 0 4px rgba(82,196,96,.10);
}

.sidebar-status strong,
.sidebar-status span {
    display: block;
}

.sidebar-status strong {
    color: rgba(255,255,255,.83);
    font-size: 11px;
}

.sidebar-status span {
    margin-top: 2px;
    color: rgba(255,255,255,.36);
    font-size: 10px;
}

.mobile-menu-button svg {
    width: 22px;
    height: 22px;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-brand-mark {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--primary);
    font-size: 12px;
    font-weight: 850;
}

.mobile-topbar-spacer {
    width: 42px;
}


/* =========================================================
   PAGE HEADERS
========================================================= */

.page-header--enhanced {
    position: relative;
}

.page-heading {
    max-width: 720px;
}

.page-kicker,
.section-kicker {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.page-kicker {
    margin-bottom: 7px;
}

.section-kicker {
    margin-bottom: 5px;
}

.page-title,
.turnos-header h1 {
    color: var(--ink-strong);
}

.action-refresh {
    white-space: nowrap;
}

.action-refresh svg {
    width: 15px;
    height: 15px;
}


/* =========================================================
   MÉTRICAS
========================================================= */

.metric-grid .card,
.turnos-metrica {
    position: relative;
    overflow: hidden;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.metric-grid .card:hover,
.turnos-metrica:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(25,35,30,.075);
}

.metric-grid .card::before,
.turnos-metrica::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: #dfe6e1;
}

.metric-card--green::before {
    background: #4cac58 !important;
}

.metric-card--money::before,
.metric-card--available::before {
    background: #76b77d !important;
}

.metric-card--occupancy::before,
.metric-card--court::before,
.metric-card--day::before,
.metric-card--peak::before {
    background: #8f9d94 !important;
}

.metric-card--danger::before,
.metric-card--expense::before {
    background: #d67b7b !important;
}

.metric-card--blocked::before {
    background: #b3a78f !important;
}

.metric-card--neutral::before {
    background: #c7d0ca !important;
}

.card-top {
    align-items: flex-start;
}

.card-icon,
.turnos-metrica-icono,
.panel-header-icon {
    color: var(--primary);
}

.card-icon svg,
.turnos-metrica-icono svg {
    width: 18px;
    height: 18px;
}

.card-value--text {
    font-size: 21px;
    line-height: 1.18;
}

.money-profit-card {
    background:
        linear-gradient(
            140deg,
            #f7fcf8 0%,
            #ecf7ee 100%
        ) !important;
    border-color: #c8e4cd !important;
}

.money-profit-card::before {
    background: var(--primary) !important;
}

.money-profit-card .card-value,
.money-profit-card .card-label {
    color: var(--green-deep) !important;
}

.card-icon--profit {
    color: #fff;
    background: var(--primary);
}


/* =========================================================
   PANELS
========================================================= */

.panel,
.turnos-panel {
    border-color: rgba(28,45,34,.035);
}

.panel-header-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 10px;
    background: var(--green-soft-2);
}

.panel-header-icon svg {
    width: 18px;
    height: 18px;
}

.overview-panel {
    background:
        linear-gradient(
            145deg,
            #fff,
            #fbfcfb
        );
}

.next-turn-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #fff,
            #f4faf5
        );
}

.next-turn-panel::after {
    content: "";
    position: absolute;
    top: -55px;
    right: -55px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(47,135,55,.055);
    pointer-events: none;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eff8f0;
    color: #34743c;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.live-pill > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #49ae55;
}

.summary-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.summary-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9ca7a0;
}

.summary-label--success .summary-dot {
    background: #43a650;
}

.summary-label--danger .summary-dot {
    background: #ca5b5b;
}

.summary-label--muted .summary-dot {
    background: #9b968c;
}

.table-panel {
    overflow: hidden;
}

.table-legend {
    color: var(--text-secondary);
    font-size: 10px;
}


/* =========================================================
   TABLES
========================================================= */

.data-table thead,
.turnos-table thead {
    background: #fafcfb;
}

.data-table tbody tr,
.turnos-table tbody tr {
    transition:
        background .14s ease,
        transform .14s ease;
}

.data-table tbody tr:hover,
.turnos-table tbody tr:hover {
    background: #f8fbf9;
}

.table-wrapper,
.turnos-table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #cfd8d1 transparent;
}


/* =========================================================
   TURNOS
========================================================= */

.turnos-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.turnos-date-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.turnos-date-control label {
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.turnos-date-control input {
    min-width: 175px;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid #d8dfe0;
    border-radius: 9px;
    background: #fff;
    color: var(--ink-strong);
    font-family: inherit;
}

.btn-turnos-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.btn-turnos-secondary svg {
    width: 15px;
    height: 15px;
}

.availability-heading {
    margin: 28px 0 16px;
}

.availability-heading h2 {
    margin-top: 4px;
    color: var(--ink-strong);
    font-size: 20px;
}

.availability-heading p {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 12px;
}

.availability-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
}

.availability-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.availability-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 11px;
    background: #fff7e8;
    color: #a66b17;
}

.availability-icon--danger {
    background: #fceeee;
    color: #b43f3f;
}

.availability-icon svg {
    width: 20px;
    height: 20px;
}

.availability-tag {
    display: inline-block;
    margin-bottom: 5px;
    color: #9a671e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.availability-tag--danger {
    color: #ab4343;
}

.availability-card h2 {
    margin: 0;
}

.availability-card-top p {
    max-width: 440px;
}

.availability-button {
    width: 100%;
}

.availability-spacer {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 9px 11px;
    border: 1px dashed #e0e4e1;
    border-radius: 9px;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   DINERO
========================================================= */

.expense-form-panel {
    background:
        linear-gradient(
            160deg,
            #fff,
            #fbfcfb
        );
}

.report-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background:
        linear-gradient(
            135deg,
            #182019,
            #243127
        );
    color: #fff;
}

.report-panel .panel-title {
    color: #fff;
}

.report-panel .panel-subtitle {
    color: rgba(255,255,255,.56);
}

.report-panel .section-kicker {
    color: #86d28e;
}

.report-panel .btn-secondary {
    flex: 0 0 auto;
    border-color: rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    color: #fff;
}

.report-panel .btn-secondary:hover {
    background: rgba(255,255,255,.13);
}

.report-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.report-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: #8ad592;
}

.report-icon svg {
    width: 21px;
    height: 21px;
}


/* =========================================================
   ESTADÍSTICAS
========================================================= */

.stats-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: -4px 0 20px;
    padding: 15px 17px;
    border: 1px solid #dde9df;
    border-radius: 12px;
    background: #f6faf7;
}

.stats-intro-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-intro-label {
    padding: 5px 8px;
    border-radius: 7px;
    background: #e7f4e9;
    color: #397944;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.stats-intro-copy strong {
    color: #405047;
    font-size: 12px;
}

.stats-intro-badge {
    color: #718077;
    font-size: 10px;
    white-space: nowrap;
}

.chart-panel {
    min-height: 390px;
}

.chart--enhanced {
    gap: 14px;
}

.chart--enhanced .chart-row {
    padding: 4px 0;
}

.chart--enhanced .chart-track {
    height: 12px;
    background: #edf1ee;
}

.chart--enhanced .chart-fill {
    background:
        linear-gradient(
            90deg,
            #277b32,
            #6db875
        );
}


/* =========================================================
   MODAL
========================================================= */

.modal-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.modal-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    border-radius: 10px;
    background: var(--green-soft-2);
    color: var(--primary);
}

.modal-icon svg {
    width: 19px;
    height: 19px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .turnos-toolbar {
        flex-wrap: wrap;
    }

    .report-panel {
        align-items: flex-start;
    }

}


/* =========================================================
   MOBILE FINAL
   Tablas como cards + fechas iOS
========================================================= */

@media (max-width: 760px) {

    /* =====================================================
       CONTENEDOR GENERAL
    ====================================================== */

    .main {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .view,
    .turnos-page {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .turnos-page {
        padding:
            20px
            14px
            32px !important;
    }


    /* =====================================================
       HEADER TURNOS
    ====================================================== */

.turnos-date-control input[type="date"],
    .turnos-field input[type="date"] {
        text-align: center !important;
        text-align-last: center !important;

        padding-left: 42px !important;
        padding-right: 42px !important;
    }

    .turnos-date-control
    input[type="date"]::-webkit-date-and-time-value,

    .turnos-field
    input[type="date"]::-webkit-date-and-time-value {
        text-align: center !important;
        width: 100% !important;
    }

    .turnos-date-control
    input[type="date"]::-webkit-datetime-edit,

    .turnos-field
    input[type="date"]::-webkit-datetime-edit {
        text-align: center !important;
        width: 100% !important;
    }

    .turnos-date-control
    input[type="date"]::-webkit-calendar-picker-indicator,

    .turnos-field
    input[type="date"]::-webkit-calendar-picker-indicator {
        position: absolute;
        right: 14px;
    }

    .turnos-date-control,
    .turnos-field {
        position: relative;
    }


    /* =====================================================
       FIX INPUT DATE EN IOS
    ====================================================== */

    .turnos-date-control input[type="date"],
    .turnos-field input[type="date"] {

        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        height: 50px !important;

        box-sizing: border-box !important;

        margin: 0 !important;

        padding:
            0
            14px !important;

        border:
            1px solid
            #d7dde3 !important;

        border-radius:
            12px !important;

        background:
            #ffffff !important;

        color:
            #17202a !important;

        font-size:
            16px !important;

        font-family:
            inherit !important;

        -webkit-appearance:
            none;

        appearance:
            none;
    }


    .turnos-date-control
    input[type="date"]::-webkit-date-and-time-value,

    .turnos-field
    input[type="date"]::-webkit-date-and-time-value {

        margin: 0 !important;

        padding: 0 !important;

        text-align: left !important;

        min-height: 20px;
    }


    .turnos-date-control
    input[type="date"]::-webkit-calendar-picker-indicator,

    .turnos-field
    input[type="date"]::-webkit-calendar-picker-indicator {

        margin-left: auto;

        opacity: .7;
    }


    .turnos-toolbar
    .btn-turnos-secondary {

        width: 100% !important;

        min-height: 50px !important;

        align-self: stretch !important;

        border-radius: 12px !important;
    }


    /* =====================================================
       MÉTRICAS TURNOS
       2 x 2 EN VEZ DE UNA ABAJO DE OTRA
    ====================================================== */

    .turnos-metricas {

        display: grid !important;

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            ) !important;

        gap:
            12px !important;

        margin-bottom:
            18px !important;
    }


    .turnos-metrica {

        min-width:
            0 !important;

        min-height:
            145px !important;

        padding:
            16px !important;

        border-radius:
            16px !important;
    }


    .turnos-metrica-icono {

        width:
            34px !important;

        height:
            34px !important;

        top:
            14px !important;

        right:
            14px !important;
    }


    .turnos-metrica-label {

        padding-right:
            38px;

        font-size:
            10px !important;
    }


    .turnos-metrica-valor {

        margin-top:
            15px;

        font-size:
            27px !important;
    }


    .turnos-metrica-descripcion {

        font-size:
            11px !important;

        line-height:
            1.35;
    }


    /* =====================================================
       SACAMOS SCROLL HORIZONTAL
    ====================================================== */

    .turnos-table-wrapper,
    .dashboard-view .table-wrapper {

        width:
            100% !important;

        max-width:
            100% !important;

        overflow:
            visible !important;
    }


    .turnos-table,
    .dashboard-view .data-table {

        display:
            block !important;

        width:
            100% !important;

        min-width:
            0 !important;

        max-width:
            100% !important;
    }


    .turnos-table thead,
    .dashboard-view .data-table thead {

        display:
            none !important;
    }


    #tablaTurnos,
    #tablaTurnosHoy {

        display:
            block !important;

        width:
            100% !important;
    }


    /* =====================================================
       CADA TURNO PASA A SER UNA CARD
    ====================================================== */

    #tablaTurnos tr,
    #tablaTurnosHoy tr {

        display:
            grid !important;

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        column-gap:
            16px;

        row-gap:
            0;

        width:
            100%;

        margin-bottom:
            12px;

        padding:
            14px;

        box-sizing:
            border-box;

        border:
            1px solid
            #e8ece9;

        border-radius:
            14px;

        background:
            #ffffff;

        box-shadow:
            0 3px 12px
            rgba(
                20,
                35,
                25,
                .04
            );
    }


    #tablaTurnos td,
    #tablaTurnosHoy td {

        display:
            flex !important;

        flex-direction:
            column;

        align-items:
            flex-start;

        justify-content:
            flex-start;

        gap:
            4px;

        min-width:
            0;

        padding:
            9px
            0 !important;

        border:
            0 !important;

        color:
            #17202a;

        overflow-wrap:
            anywhere;
    }


    #tablaTurnos td::before,
    #tablaTurnosHoy td::before {

        color:
            #849087;

        font-size:
            9px;

        font-weight:
            800;

        letter-spacing:
            .7px;

        text-transform:
            uppercase;
    }


    /* =====================================================
       LABELS TURNOS
    ====================================================== */

    #tablaTurnos td:nth-child(1)::before {
        content: "Hora";
    }

    #tablaTurnos td:nth-child(2)::before {
        content: "Cancha";
    }

    #tablaTurnos td:nth-child(3)::before {
        content: "Cliente";
    }

    #tablaTurnos td:nth-child(4)::before {
        content: "Teléfono";
    }

    #tablaTurnos td:nth-child(5)::before {
        content: "Estado";
    }

    #tablaTurnos td:nth-child(6)::before {
        content: "Cobrado";
    }

    #tablaTurnos td:nth-child(7)::before {
        content: "Pago";
    }


    #tablaTurnos td:nth-child(8) {

        grid-column:
            1 / -1;

        padding-top:
            11px !important;
    }


    #tablaTurnos td:nth-child(8)::before {
        content: none;
    }


    /* =====================================================
       LABELS DASHBOARD
    ====================================================== */

    #tablaTurnosHoy td:nth-child(1)::before {
        content: "Hora";
    }

    #tablaTurnosHoy td:nth-child(2)::before {
        content: "Cancha";
    }

    #tablaTurnosHoy td:nth-child(3)::before {
        content: "Cliente";
    }

    #tablaTurnosHoy td:nth-child(4)::before {
        content: "Estado";
    }

    #tablaTurnosHoy td:nth-child(5)::before {
        content: "Cobrado";
    }

    #tablaTurnosHoy td:nth-child(6)::before {
        content: "Pago";
    }


    #tablaTurnosHoy td:nth-child(7) {

        grid-column:
            1 / -1;

        padding-top:
            11px !important;
    }


    #tablaTurnosHoy td:nth-child(7)::before {
        content: none;
    }


    /* BOTÓN COBRAR */

    #tablaTurnos .btn,
    #tablaTurnosHoy .btn {

        width:
            100%;

        justify-content:
            center;
    }


    /* FILA VACÍA / CARGANDO */

    #tablaTurnos td[colspan],
    #tablaTurnosHoy td[colspan] {

        grid-column:
            1 / -1;

        display:
            block !important;

        text-align:
            center;

        padding:
            22px 10px !important;
    }


    #tablaTurnos td[colspan]::before,
    #tablaTurnosHoy td[colspan]::before {

        content:
            none !important;
    }


    /* YA NO HAY SCROLL LATERAL */

    .table-legend {
        display:
            none !important;
    }

}


@media (max-width: 480px) {

    .page-header--enhanced,
    .turnos-header.page-header--enhanced {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header--enhanced > .btn,
    .turnos-toolbar .btn-turnos-secondary {
        width: 100%;
    }

    .turnos-toolbar {
        flex-direction: column;
    }

    .availability-card-top {
        flex-direction: column;
    }

    .report-content {
        align-items: flex-start;
    }

}

/* =========================================================
   FIX FINAL FECHAS MOBILE / IOS
========================================================= */

@media (max-width: 760px) {

    .turnos-date-control,
    .turnos-field {
        position: relative;
    }

    .turnos-date-control input[type="date"],
    .turnos-field input[type="date"] {

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        box-sizing: border-box !important;

        text-align: center !important;
        text-align-last: center !important;

        padding-left: 42px !important;
        padding-right: 42px !important;
    }

    .turnos-date-control
    input[type="date"]::-webkit-date-and-time-value,

    .turnos-field
    input[type="date"]::-webkit-date-and-time-value {

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        text-align: center !important;
    }

    .turnos-date-control
    input[type="date"]::-webkit-datetime-edit,

    .turnos-field
    input[type="date"]::-webkit-datetime-edit {

        width: 100% !important;

        padding: 0 !important;

        text-align: center !important;
    }

}

/* =========================================================
   FIX DEFINITIVO FECHAS MOBILE / IOS
========================================================= */

@media (max-width: 760px) {

    /* HEADER TURNOS */

    .turnos-header {
        width: 100% !important;

        flex-direction: column !important;
        align-items: stretch !important;

        gap: 18px !important;
    }


    .turnos-toolbar {
        width: 100% !important;
        max-width: 100% !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: stretch !important;

        gap: 10px !important;
    }


    .turnos-date-control {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: stretch !important;
    }


    /* LABEL */

    .turnos-date-control label,
    .turnos-field label {
        text-align: left !important;
    }


    /* INPUTS DE FECHA */

    .turnos-date-control input[type="date"],
    .turnos-field input[type="date"] {

        display: block !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: 50px !important;

        box-sizing: border-box !important;

        margin: 0 !important;

        padding-left: 42px !important;
        padding-right: 42px !important;

        border: 1px solid #d7dde3 !important;
        border-radius: 12px !important;

        background: #ffffff !important;

        color: #17202a !important;

        font-family: inherit !important;
        font-size: 16px !important;

        text-align: center !important;
        text-align-last: center !important;
    }


    /* SAFARI / IOS */

    .turnos-date-control
    input[type="date"]::-webkit-date-and-time-value,

    .turnos-field
    input[type="date"]::-webkit-date-and-time-value {

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        text-align: center !important;
    }


    .turnos-date-control
    input[type="date"]::-webkit-datetime-edit,

    .turnos-field
    input[type="date"]::-webkit-datetime-edit {

        width: 100% !important;

        padding: 0 !important;

        text-align: center !important;
    }


    /* BOTÓN ACTUALIZAR */

    .turnos-toolbar .btn-turnos-secondary {

        width: 100% !important;

        min-height: 50px !important;

        align-self: stretch !important;
    }

}

@media (max-width: 760px) {

    .turnos-date-control
    input[type="date"]::-webkit-date-and-time-value,

    .turnos-field
    input[type="date"]::-webkit-date-and-time-value {

        position: relative;
        top: 12px;
    }

}

/* =========================================================
   FIX FECHA DINERO / GASTOS EN IOS
========================================================= */

@media (max-width: 760px) {

    #gastoFecha {
        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        height: 50px !important;

        box-sizing: border-box !important;

        margin: 0 !important;

        padding-left: 42px !important;
        padding-right: 42px !important;

        border: 1px solid #d7dde3 !important;
        border-radius: 12px !important;

        background: #ffffff !important;

        color: #17202a !important;

        font-family: inherit !important;
        font-size: 16px !important;

        text-align: center !important;
        text-align-last: center !important;
    }


    #gastoFecha::-webkit-date-and-time-value {
        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        text-align: center !important;

        position: relative;
        top: 2px;
    }


    #gastoFecha::-webkit-datetime-edit {
        width: 100% !important;

        padding: 0 !important;

        text-align: center !important;
    }


    #gastoFecha::-webkit-calendar-picker-indicator {
        position: absolute;

        right: 14px;

        margin: 0 !important;
    }


    .money-view .form-field {
        min-width: 0;
        position: relative;
    }

}


/* =========================================================
   FIX FINAL FORMULARIO DINERO MOBILE
========================================================= */

@media (max-width: 760px) {

    .money-view .form-stack,
    .money-view .form-field,
    .money-view .money-input-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        box-sizing: border-box !important;
    }


    .money-view .form-field .input,
    .money-view .form-field .select {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        box-sizing: border-box !important;
    }


    /* FECHA */

    #gastoFecha {
        width: 100% !important;
        max-width: 100% !important;

        height: 44px !important;

        box-sizing: border-box !important;

        margin: 0 !important;

        padding-left: 12px !important;
        padding-right: 12px !important;

        text-align: center !important;
        text-align-last: center !important;

        -webkit-appearance: auto !important;
        appearance: auto !important;
    }


    #gastoFecha::-webkit-date-and-time-value {
        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        text-align: center !important;

        position: static !important;
    }


    #gastoFecha::-webkit-datetime-edit {
        width: auto !important;

        padding: 0 !important;

        text-align: center !important;
    }


    #gastoFecha::-webkit-calendar-picker-indicator {
        position: static !important;

        margin-left: auto !important;
    }

}

/* =========================================================
   DATE INPUT PERSONALIZADO - DINERO
========================================================= */

.custom-date-input {
    position: relative;

    width: 100%;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid #d6dade;
    border-radius: 8px;

    background: #ffffff;

    color: #17202a;

    overflow: hidden;
}

.custom-date-input span {
    width: 100%;

    padding:
        0
        38px;

    box-sizing: border-box;

    text-align: center;

    font-size: 14px;
    line-height: 1;

    pointer-events: none;
}

.custom-date-icon {
    position: absolute;

    right: 11px;
    top: 50%;

    width: 16px;
    height: 16px;

    transform: translateY(-50%);

    color: #667085;

    pointer-events: none;
}

.custom-date-input input[type="date"] {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}