﻿html, body {
    height: 100%;
}

.mud-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 1 auto;
}

.content-container {
    padding: 16px;
}

.footer-bar {
    padding: 8px 16px;
    background-color: #1f3447;
    color: white;
    text-align: center;
}

.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}


.menuAppBar-borda-inferior {
    border-bottom: solid 2px var(--mud-palette-primary);
}


/* 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
}

/* Quebra de linha */
.nowrap {
    white-space: nowrap; /* impede quebra de linha */
    overflow: hidden;
    text-overflow: ellipsis;
}

.breakline {
    white-space: normal; /* permite quebra */
    word-wrap: break-word;
    word-break: break-word;
    overflow: visible;
    text-overflow: clip;
}

/* 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;
}


/* Espaço conteúdo do dialog */
.dialog-content-spacing {
    margin-bottom: 20px;
}



/* 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;
    }
}


/* Desktop */
.popover-responsivo-200 {
    min-width: 200px !important;
    max-width: 300px !important;
    transition: min-width 0.3s ease, max-width 0.3s ease;
}

/* Tablets */
@media (max-width: 960px) {
    .popover-responsivo-200 {
        min-width: 100px !important;
        max-width: 200px !important;
    }
}

/* Celulares */
@media (max-width: 600px) {
    .popover-responsivo-200 {
        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 */
    }
/* loader end */
