﻿
:root {
    --gold: #fdba31;
    --gold-hover: #c49840;
    --text-dark: #1a2332;
    --text-gray: #4b5563;
    --border-gray: #e5e7eb;
    --bg-page: #f9fafb;
}


.resch-page {
    min-height: 80vh;
    background-color: var(--bg-page);
    padding: 0;
}


.header-border {
    background-color: #fff;
    border-bottom: 1px solid var(--border-gray);
}

.local-reservation-header {
    padding: 32px;
}

.resch-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resch-title-ico {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 28px;
    line-height: 1;
}

.local-reservation-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}



.date-time-section {
    padding: 48px 16px;
    background-color: var(--bg-page);
}



.resch-center {
    display: flex;
    justify-content: center;
}

.resch-card {
    width: 100%;
    max-width: 672px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
    padding: 32px;
}


.resch-note {
    position: relative;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--gold);
    background-color: rgba(212, 168, 80, 0.05);
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 32px;
}

    .resch-note i {
        width: 20px;
        height: 20px;
        color: #1a1a1a;
        font-size: 20px;
        margin-top: 2px;
    }

    .resch-note p {
        margin: 0;
        color: #374151;
        font-size: 14px;
        line-height: 1.5;
        grid-column: 2;
    }

    .resch-note strong,
    .resch-note b {
        font-weight: 600;
    }

#contentAutenticaoReagendamento {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.resch-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resch-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

.resch-input {
    position: relative;
}

    .resch-input i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        color: #9ca3af;
        font-size: 20px;
        z-index: 10;
    }

    .resch-input input {
        width: 100%;
        height: 48px;
        min-width: 0;
        border-radius: 6px;
        border: 1px solid #d1d5db;
        background-color: transparent;
        padding: 8px 12px 8px 44px;
        font-size: 14px;
        line-height: 1.5;
        color: var(--text-dark);
        box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
        transition: all 200ms;
        outline: none;
    }

        .resch-input input::placeholder {
            color: #9ca3af;
        }

        .resch-input input:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(212, 168, 80, 0.2);
        }

.resch-field-group .resch-input #inptResEmail,
.resch-field-group .resch-input #inptResFatura,
.resch-field-group .resch-input #inptResNrCompra {
    padding: 10px;
}



.resch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: 6px;
    transition: all 200ms;
    cursor: pointer;
    outline: none;
    border: none;
    width: 100%;
    height: 48px;
    padding: 8px 16px;
    background-color: var(--gold);
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    text-decoration: none;
    text-transform: none !important;
}

    .resch-btn:hover {
        background-color: var(--gold-hover);
        box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
        color: var(--text-dark);
        text-decoration: none;
    }

    .resch-btn:active {
        transform: scale(0.98);
    }

    .resch-btn:focus {
        box-shadow: 0 0 0 3px rgba(212, 168, 80, 0.2);
    }



.resch-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

    .resch-footer p {
        margin: 0;
        font-size: 14px;
        color: #4b5563;
        line-height: 1.5;
    }

    .resch-footer a {
        color: var(--gold);
        font-weight: 500;
        text-decoration: none;
    }

        .resch-footer a:hover {
            text-decoration: underline;
        }



#contentLstBilhetes.resch-results {
    margin-top: 18px;
}

#contentLstBilhetes .resch-summary {
    background: #fff;
    border: 1px solid rgba(12,25,50,.12);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
}

#contentLstBilhetes .resch-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

#contentLstBilhetes .resch-summary input[disabled] {
    opacity: 1;
    background: #f8fafc;
    color: #0c1932;
    border: 1px solid rgba(12,25,50,.15);
}

#contentLstBilhetes .resch-table-wrap {
    border: 1px solid rgba(12,25,50,.12);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

#contentLstBilhetes table.resch-table,
#contentLstBilhetes table.table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse;
}

    #contentLstBilhetes table.resch-table thead {
        background: #0c1932;
        color: #fff;
    }

#contentLstBilhetes table th,
#contentLstBilhetes table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(12,25,50,.08);
    vertical-align: middle;
    word-break: break-word;
    overflow-wrap: anywhere;
}

#contentLstBilhetes table th {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

#contentLstBilhetes table td {
    white-space: normal;
}

    #contentLstBilhetes table th:nth-child(4),
    #contentLstBilhetes table td:nth-child(4) {
        width: 95px;
        min-width: 95px;
        text-align: center;
    }

    #contentLstBilhetes table th:nth-child(5),
    #contentLstBilhetes table td:nth-child(5) {
        width: 140px;
        min-width: 140px;
        text-align: right;
        white-space: nowrap;
    }

#contentLstBilhetes tbody tr:hover {
    background: rgba(12,25,50,.03);
}

#contentLstBilhetes td:last-child .btn,
#contentLstBilhetes td:last-child a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: unset !important;
    max-width: 100%;
    white-space: nowrap;
}

#contentLstBilhetes .resch-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 14px;
    flex-wrap: wrap;
}

#btnreimprimir,
#btnResertFriltos {
    width: auto !important;
    min-width: 160px;
    height: 42px;
    padding: 0 16px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

#btnreimprimir {
    background: #0c1932 !important;
    color: #fff !important;
}

#btnResertFriltos {
    background: transparent !important;
    color: #0c1932 !important;
    border: 1px solid rgba(12,25,50,.25) !important;
}

    #btnResertFriltos:hover {
        background: rgba(12,25,50,.06) !important;
    }



.resch-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #0c1932;
    margin-bottom: 8px;
}



#modal_reagendar .calendar-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 8px;
}

#modal_reagendar .calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

    #modal_reagendar .calendar-nav h3 {
        font-size: 1.125rem;
        font-weight: 700;
        color: #1a1a1a;
        text-transform: capitalize;
        margin: 0;
    }

#modal_reagendar .calendar-nav-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #1a1a1a;
    transition: background .2s;
}

    #modal_reagendar .calendar-nav-btn:hover {
        background: #f3f4f6;
    }

    #modal_reagendar .calendar-nav-btn:active {
        transform: scale(.95);
    }

#modal_reagendar .weekday-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

    #modal_reagendar .weekday-header span {
        text-align: center;
        font-size: 14px;
        font-weight: 700;
        color: #1a1a1a;
        padding: 8px 0;
    }

#modal_reagendar .days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

#modal_reagendar .day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #d1d5db;
    cursor: pointer;
    transition: all .2s;
    background: #fff;
    color: #1a1a1a;
    min-height: 40px;
    user-select: none;
}

    #modal_reagendar .day-cell:hover:not(.disabled):not(.empty) {
        border-color: #1a1a1a;
        background: #f9fafb;
    }

    #modal_reagendar .day-cell:active:not(.disabled):not(.empty) {
        transform: scale(.95);
    }

    #modal_reagendar .day-cell.today {
        border-color: var(--gold);
        background: rgba(253,186,49,.1);
        font-weight: 700;
    }

        #modal_reagendar .day-cell.today:hover {
            background: rgba(253,186,49,.2);
        }

    #modal_reagendar .day-cell.selected {
        background: var(--gold);
        color: #1a1a1a;
        border-color: var(--gold);
        box-shadow: 0 4px 12px rgba(253,186,49,.4);
        transform: scale(1.05);
    }

    #modal_reagendar .day-cell.disabled {
        color: #d1d5db;
        border-color: #e5e7eb;
        cursor: not-allowed;
        background: #f9fafb;
    }

    #modal_reagendar .day-cell.empty {
        border: none;
        cursor: default;
        background: transparent;
    }


#reschCalendarWrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 12px auto;
}

    #reschCalendarWrap .calendar-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 10px;
    }

    #reschCalendarWrap #calendarMonth {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #0c1932;
        text-transform: capitalize;
    }

    #reschCalendarWrap .calendar-nav-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid rgba(12,25,50,.15);
        background: #fff;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        #reschCalendarWrap .calendar-nav-btn:hover {
            background: rgba(12,25,50,.05);
        }

    #reschCalendarWrap .weekday-header {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 6px;
        margin-bottom: 6px;
        font-size: 12px;
        font-weight: 700;
        color: #0c1932;
        text-align: center;
    }

    #reschCalendarWrap .days-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 6px;
    }

    #reschCalendarWrap .day-cell {
        height: 55px;
        border-radius: 10px;
        border: 1px solid rgba(12,25,50,.12);
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        cursor: pointer;
        user-select: none;
    }

        #reschCalendarWrap .day-cell:hover {
            background: rgba(12,25,50,.05);
        }

        #reschCalendarWrap .day-cell.empty {
            border: none;
            background: transparent;
            cursor: default;
        }

        #reschCalendarWrap .day-cell.disabled {
            opacity: .35;
            cursor: not-allowed;
            background: #f3f4f6;
        }

        #reschCalendarWrap .day-cell.today {
            border: 1px solid rgba(212,168,80,.6);
        }

        #reschCalendarWrap .day-cell.selected {
            background: var(--gold);
            border-color: #d4a850;
            color: #0c1932;
            font-weight: 800;
        }




@media (max-width: 480px) {
    .local-reservation-title {
        font-size: 20px;
    }

    .resch-title-ico {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

    .resch-card {
        padding: 16px;
    }

    .resch-btn {
        font-size: 16px;
    }

    #reschCalendarWrap .day-cell {
        height: 38px;
        font-size: 11px;
    }

    #reschCalendarWrap .weekday-header {
        font-size: 10px;
        gap: 3px;
    }

    #reschCalendarWrap .days-grid {
        gap: 3px;
    }

    #modal_reagendar .day-cell {
        font-size: 13px;
        min-height: 34px;
    }
}

@media (max-width: 767px) {
    .local-reservation-header {
        padding: 24px 0;
    }

    .local-reservation-title {
        font-size: 24px;
    }

    .resch-title-ico {
        font-size: 24px;
    }

    .date-time-section {
        padding: 32px 12px;
    }

    .resch-card {
        padding: 24px;
    }

    .resch-note {
        grid-template-columns: 18px 1fr;
        gap: 8px;
    }

    .resch-footer {
        margin-top: 24px;
        padding-top: 16px;
    }

    #contentLstBilhetes .resch-actions {
        flex-direction: column;
    }

    #btnreimprimir,
    #btnResertFriltos {
        width: 100% !important;
        min-width: unset;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .resch-card {
        padding: 28px;
    }
}

@media (max-width: 900px) {
    #contentLstBilhetes .resch-summary-grid {
        grid-template-columns: 1fr;
    }

    #contentLstBilhetes table.resch-table,
    #contentLstBilhetes thead,
    #contentLstBilhetes tbody,
    #contentLstBilhetes tr,
    #contentLstBilhetes th,
    #contentLstBilhetes td {
        display: block;
        width: 100%;
    }

    #contentLstBilhetes thead {
        display: none;
    }

    #contentLstBilhetes tbody tr {
        border: 1px solid rgba(12,25,50,.12);
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 10px;
        background: #fff;
    }

    #contentLstBilhetes td {
        padding: 6px 0;
        text-align: left !important;
    }

        #contentLstBilhetes td:nth-child(1)::before {
            content: "Evento: ";
            font-weight: 700;
        }

        #contentLstBilhetes td:nth-child(2)::before {
            content: "Tipologia: ";
            font-weight: 700;
        }

        #contentLstBilhetes td:nth-child(3)::before {
            content: "Data e Hora: ";
            font-weight: 700;
        }

        #contentLstBilhetes td:nth-child(4)::before {
            content: "Qtd: ";
            font-weight: 700;
        }

        #contentLstBilhetes td:last-child {
            margin-top: 6px;
            text-align: left;
        }

        #contentLstBilhetes th:last-child,
        #contentLstBilhetes td:last-child {
            width: 100% !important;
            min-width: unset !important;
            text-align: left;
        }
}

@media (min-width: 768px) {
    #modal_reagendar .calendar-wrapper {
        padding: 12px;
    }

    #modal_reagendar .calendar-nav {
        margin-bottom: 16px;
    }

        #modal_reagendar .calendar-nav h3 {
            font-size: 1.25rem;
        }

    #modal_reagendar .weekday-header {
        gap: 8px;
    }

        #modal_reagendar .weekday-header span {
            font-size: 16px;
        }

    #modal_reagendar .days-grid {
        gap: 8px;
    }

    #modal_reagendar .day-cell {
        font-size: 18px;
    }


   


    }


@media (max-width: 558px) {
    .local-reservation-header {
        padding-left: 25px;
        padding-right: 16px;
    }
}

