﻿/* Geral */
.menuAppBar-borda-inferior {
    border-bottom: solid 2px var(--mud-palette-primary);
}

.footer-padding-bottom {
    padding-bottom: 100px;
}

/* Alinhamento */
.align-middle {
    vertical-align: middle;
}

.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

/* Estilos de linha */
.row-add-icon {
    color: green;
    cursor: pointer;
}

.row-deleted {
    text-decoration: line-through;
    color: #777;
    opacity: 0.7;
}

/* Estilo de ícones */
.row-select-icon {
    color: green;
    cursor: pointer;
}

.row-edit-icon {
    color: orange;
    cursor: pointer;
}

.row-delete-icon {
    color: red;
    cursor: pointer;
}

.row-delete-cancelled-icon {
    color: gray;
    opacity: 0.6;
    cursor: not-allowed
}

/* Validação em fomulário */
.validation-message {
    color: #e53935;
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 500;
    padding-left: 20px; /* espaço para o ícone */
    position: relative;
    display: block;
}

    .validation-message::before {
        content: "⚠️";
        position: absolute;
        left: 0;
        top: 0;
    }

.validation-space {
    min-height: 1.5em; /* ou altura do seu texto */
    display: block;
}


/* Impressão */
.somente-impressao {
    display: none;
}

.print-footer {
    display: none;
}

@media print {
    body {
        font-family: 'Segoe UI', Arial, sans-serif;
        font-size: 12px;
        padding: 20px;
        color: #000;
    }

    .print-container {
        max-width: 700px;
        margin: auto;
        border: 1px solid #ccc;
        padding: 20px;
    }

    .print-title {
        text-align: center;
        font-size: 18px;
        margin-bottom: 20px;
    }

    .print-subtitle {
        font-size: 14px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .print-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 6px;
        column-gap: 10px;
        font-size: 12px;
    }

    .print-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 11px;
        margin-top: 10px;
    }

        .print-table th,
        .print-table td {
            border: 1px solid #aaa;
            padding: 6px;
            text-align: left;
        }

        .print-table tfoot td {
            font-weight: bold;
        }

    input, .mud-input-control {
        display: none;
    }

    /* Oculta na impressão */
    .no-print {
        display: none !important;
    }

    .somente-impressao {
        display: block !important;
        margin-top: 20px;
        font-size: 12px;
        color: #000;
    }

    @page {
        margin: 10mm;
        size: A4 portrait;
    }
}

/* JSON Format */
.json-viewer {
    background: #2e3440;
    color: #d8dee9;
    padding: 6px 8px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.2em;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 200px;
}

    /* syntax highlight */
    .json-viewer .key {
        color: #88c0d0;
        font-weight: bold;
    }

    .json-viewer .string {
        color: #a3be8c;
    }

    .json-viewer .number {
        color: #b48ead;
    }

    .json-viewer .boolean {
        color: #ebcb8b;
        font-weight: bold;
    }

    .json-viewer .null {
        color: #bf616a;
        font-style: italic;
    }


/* autocomplete */
/* Desktop */
.popover-responsivo-600 {
    min-width: 600px !important;
    max-width: 700px !important;
    transition: min-width 0.3s ease, max-width 0.3s ease;
}

/* Tablets */
@media (max-width: 960px) {
    .popover-responsivo-600 {
        min-width: 400px !important;
        max-width: 500px !important;
    }
}

/* Celulares */
@media (max-width: 600px) {
    .popover-responsivo-600 {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}


/* Desktop */
.popover-responsivo-500 {
    min-width: 500px !important;
    max-width: 600px !important;
    transition: min-width 0.3s ease, max-width 0.3s ease;
}

/* Tablets */
@media (max-width: 960px) {
    .popover-responsivo-500 {
        min-width: 300px !important;
        max-width: 400px !important;
    }
}

/* Celulares */
@media (max-width: 600px) {
    .popover-responsivo-500 {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}


/* Desktop */
.popover-responsivo-400 {
    min-width: 400px !important;
    max-width: 500px !important;
    transition: min-width 0.3s ease, max-width 0.3s ease;
}

/* Tablets */
@media (max-width: 960px) {
    .popover-responsivo-400 {
        min-width: 200px !important;
        max-width: 300px !important;
    }
}

/* Celulares */
@media (max-width: 600px) {
    .popover-responsivo-400 {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}


/* Desktop */
.popover-responsivo-300 {
    min-width: 300px !important;
    max-width: 400px !important;
    transition: min-width 0.3s ease, max-width 0.3s ease;
}

/* Tablets */
@media (max-width: 960px) {
    .popover-responsivo-300 {
        min-width: 100px !important;
        max-width: 200px !important;
    }
}

/* Celulares */
@media (max-width: 600px) {
    .popover-responsivo-300 {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}
/* autocomplete end */


/* loader progress */
.progress-container {
    height: 4px;
    transition: opacity 0.3s ease;
}

.progress-hidden {
    opacity: 0;
    pointer-events: none;
}

.progress-visible {
    opacity: 1;
}
/* loader progress end */



/* loader */
.container {
    position: relative;
    min-height: 300px; /* ou 100vh se for tela cheia */
}

/* Loader */
.loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.45s ease;
}

    .loader.hidden {
        opacity: 0;
        pointer-events: none; /* deixa clicar no conteúdo */
    }

/* Conteúdo */
.content {
    position: relative;
    z-index: 1; /* fica sempre abaixo do loader */
    opacity: 0;
    transition: opacity 0.45s ease 0.2s; /* aparece depois do loader */
}

    .content.visible {
        opacity: 1;
    }
/* loader end */
