:root {
    --odoapp-surface: #f7fafc;
    --odoapp-card-radius: 18px;
}

html,
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--odoapp-surface);
}

html,
body,
#app {
    min-height: 100%;
}

.mud-layout {
    min-height: 100dvh;
}

.odoapp-brand {
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-right: 1rem;
    color: inherit;
    text-decoration: none;
}

.odoapp-main-content {
    min-height: 100dvh;
    padding: 1.5rem 1rem 1rem;
    box-sizing: border-box;
}

    .odoapp-main-content.odoapp-main-content-light {
        background: linear-gradient(155deg, #f4f8ff 0%, #f9fbfd 50%, #f4f7f5 100%);
    }

    .odoapp-main-content.odoapp-main-content-dark {
        background: radial-gradient(circle at 12% 8%, rgba(96, 165, 250, 0.08), transparent 32%), radial-gradient(circle at 88% 10%, rgba(45, 212, 191, 0.07), transparent 28%), linear-gradient(165deg, #0a0d12 0%, #0d1118 45%, #0b0f15 100%);
    }

    .odoapp-main-content > :first-child {
        margin-top: 0.75rem;
    }

.auth-card {
    border-radius: var(--odoapp-card-radius);
}

a {
    text-decoration: none;
}

#blazor-error-ui {
    display: none !important;
}

.member-upsert-dialog {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

    .member-upsert-dialog .mud-dialog-title {
        padding: 1.1rem 1.6rem 0.95rem;
        font-size: 1.3rem;
        font-weight: 700;
        letter-spacing: 0.2px;
        border-bottom: 1px solid #e8eef6;
        background: linear-gradient(135deg, #f8fbff 0%, #f3f8ff 58%, #f8fafc 100%);
    }

    .member-upsert-dialog .mud-dialog-content {
        padding: 1.3rem 1.6rem 1.1rem;
        background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    }

    .member-upsert-dialog .mud-dialog-actions {
        padding: 1rem 1.6rem 1.35rem;
        border-top: 1px solid #e8eef6;
        background-color: #ffffff;
    }

@media (max-width: 959.98px) {
    .member-upsert-dialog .mud-dialog-title {
        padding: 1rem 1.2rem 0.9rem;
    }

    .member-upsert-dialog .mud-dialog-content {
        padding: 1rem 1.2rem;
    }

    .member-upsert-dialog .mud-dialog-actions {
        padding: 0.9rem 1.2rem 1.15rem;
    }
}


/* ===== MODAL DE DETALHES DO PONTO CANTADO ===== */

.point-details-dialog {
    height: 80vh;
    max-height: 80vh;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

    .point-details-dialog .mud-dialog {
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }

    .point-details-dialog .mud-dialog-title {
        flex: 0 0 auto;
        padding-bottom: 4px !important;
        padding-top: 12px !important;
    }

    .point-details-dialog .mud-dialog-content {
        flex: 1 1 auto;
        min-height: 0;
        padding-top: 1.25rem;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
    }

    .point-details-dialog .mud-dialog-actions {
        flex: 0 0 auto;
        padding: 0.75rem 1.5rem 1.25rem;
    }

    .point-details-dialog .details-content-layout {
        height: 100%;
        overflow: hidden;
    }

    .point-details-dialog .details-grid {
        flex: 1;
        overflow: hidden;
        min-height: 0;
    }

    .point-details-dialog .details-media-panel {
        border-radius: 16px;
        background: #fff;
    }

    .point-details-dialog .video-frame-wrapper {
        position: relative;
        width: 100%;
        padding-bottom: 36%; /* reduzido para caber com Spotify abaixo */
        height: 0;
    }

        .point-details-dialog .video-frame-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 4px;
        }

    .point-details-dialog .spotify-frame-wrapper {
        overflow: hidden;
        border-radius: 12px;
    }

        .point-details-dialog .spotify-frame-wrapper iframe {
            width: 100%;
            height: 152px;
            border: 0;
        }

    .point-details-dialog .lyrics-column {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%; /* garante que ocupa toda a altura disponível */
    }

        .point-details-dialog .lyrics-column > div {
            height: 100%;
        }

    .point-details-dialog .lyrics-panel {
        display: flex;
        flex-direction: column;
        flex: 1; /* cresce para preencher a coluna */
        min-height: 0;
        overflow: hidden;
    }

    .point-details-dialog .lyrics-stack {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
        justify-content: flex-start; /* alinha conteúdo ao topo */
    }

        .point-details-dialog .lyrics-stack > .mud-typography {
            flex: 0 0 auto;
        }

        .point-details-dialog .lyrics-stack > hr {
            flex: 0 0 auto;
        }

    .point-details-dialog .lyrics-text {
        flex: 1;
        overflow-y: auto;
        white-space: pre-wrap;
        word-break: break-word;
        font-family: inherit;
        font-size: 0.875rem;
        line-height: 1.6;
        margin: 0;
        padding-right: 6px;
        min-height: 0;
    }


/* ===== RESPONSIVO ===== */
@media (max-width: 959.98px) {
    .point-details-dialog {
        height: auto;
        max-height: 90vh;
    }

        .point-details-dialog .mud-dialog-content {
            overflow-y: auto !important;
        }

        .point-details-dialog .details-grid {
            height: auto;
        }

        .point-details-dialog .lyrics-column {
            min-height: auto;
            display: block;
        }

        .point-details-dialog .lyrics-panel {
            min-height: auto;
        }

        .point-details-dialog .lyrics-text {
            max-height: 340px;
        }
}

/* ===== FIM MODAL DE DETALHES DO PONTO CANTADO ===== */

.canteen-sale-print-dialog .mud-dialog-content {
    padding-top: 1rem;
}

.canteen-receipt-preview {
    display: flex;
    justify-content: center;
    padding: 0.25rem 0;
}

.canteen-receipt-preview__paper {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border: 1px solid #d9dee8;
    border-radius: 18px;
    padding: 1rem 0.95rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.canteen-receipt-preview__paper--58mm {
    max-width: 240px;
    padding: 0.85rem 0.75rem;
    border-radius: 14px;
}

.canteen-receipt-preview__header {
    text-align: center;
    border-bottom: 1px dashed #b8c0cc;
    padding-bottom: 0.75rem;
    margin-bottom: 0.9rem;
}

.canteen-receipt-preview__tenant {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.canteen-receipt-preview__title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 0.25rem;
}

.canteen-receipt-preview__subtitle {
    margin-top: 0.2rem;
    color: #5b6472;
    font-size: 0.85rem;
}

.canteen-receipt-preview__meta {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.canteen-receipt-preview__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.86rem;
}

.canteen-receipt-preview__meta-row span {
    color: #5b6472;
}

.canteen-receipt-preview__meta-row strong {
    text-align: right;
}

.canteen-receipt-preview__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.canteen-receipt-preview__items {
    display: grid;
    gap: 0.55rem;
}

.canteen-receipt-preview__item {
    padding-bottom: 0.45rem;
    border-bottom: 1px dashed #e5e7eb;
}

.canteen-receipt-preview__item-name {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.canteen-receipt-preview__item-meta {
    margin-top: 0.2rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.74rem;
    color: #5b6472;
}

.canteen-receipt-preview__item-meta strong {
    color: #111827;
    white-space: nowrap;
}

.canteen-receipt-preview__table th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #6b7280;
    border-bottom: 1px solid #d9dee8;
    padding: 0.35rem 0;
}

.canteen-receipt-preview__table td {
    padding: 0.45rem 0;
    border-bottom: 1px dashed #e5e7eb;
    vertical-align: top;
}

.canteen-receipt-preview__table th:nth-child(1),
.canteen-receipt-preview__table td:nth-child(1) {
    width: 2.5rem;
}

.canteen-receipt-preview__table th:nth-child(3),
.canteen-receipt-preview__table td:nth-child(3),
.canteen-receipt-preview__table th:nth-child(4),
.canteen-receipt-preview__table td:nth-child(4) {
    width: 4.5rem;
    text-align: right;
    white-space: nowrap;
}

.canteen-receipt-preview__total {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.75rem;
    margin-top: 0.3rem;
    border-top: 1px solid #111827;
    font-size: 1rem;
}

.canteen-receipt-preview__footer {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px dashed #b8c0cc;
    text-align: center;
    color: #374151;
    font-size: 0.82rem;
    line-height: 1.45;
}

.canteen-receipt-preview__footer p {
    margin: 0;
}

.canteen-receipt-preview__paper--58mm .canteen-receipt-preview__tenant {
    font-size: 0.78rem;
}

.canteen-receipt-preview__paper--58mm .canteen-receipt-preview__title {
    font-size: 1.05rem;
}

.canteen-receipt-preview__paper--58mm .canteen-receipt-preview__subtitle {
    font-size: 0.75rem;
}

.canteen-receipt-preview__paper--58mm .canteen-receipt-preview__meta-row {
    display: grid;
    gap: 0.1rem;
    font-size: 0.76rem;
}

.canteen-receipt-preview__paper--58mm .canteen-receipt-preview__meta-row strong {
    text-align: left;
}

.canteen-receipt-preview__paper--58mm .canteen-receipt-preview__total {
    font-size: 0.88rem;
}

.canteen-receipt-preview__paper--58mm .canteen-receipt-preview__footer {
    font-size: 0.74rem;
}

@media (max-width: 599.98px) {
    .canteen-receipt-preview__paper {
        border-radius: 14px;
        padding: 0.9rem 0.8rem;
    }
}

/* ===== CAMPO DE IMAGEM DO MODAL DE PRODUTO ===== */

.product-image-field {
    border-color: #e7edf5;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(250, 252, 255, 0.95) 0%, #ffffff 60%, rgba(249, 252, 255, 0.95) 100%);
}

.product-image-field__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 1px solid #e2e9f3;
    background-color: #f6f9fd;
    color: #90a4b8;
    overflow: hidden;
}

    .product-image-field__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.product-image-field__info {
    flex: 1 1 200px;
    min-width: 0;
}

.product-image-field__filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== MINIATURA DE CAPA DE CURSO ===== */

.course-cover-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e2e9f3;
    background-color: #f6f9fd;
    color: #90a4b8;
    overflow: hidden;
}

    .course-cover-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
