﻿body {
    font-size: .80em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    color: #696969;
}

.template {
    background-color: Transparent !important;
    border: none !important;
    background: none;
    border: 0 none !important;
    text-decoration: none;
    border-bottom-width: 0px !important;
    border-color: transparent;
}

div.RadToolBar_Default .rtbOuter {
    border: none !important;
}

div.RadToolBar_Default .rtbOuter {
    border: none;
}

div.RadToolBar_Default .rtbMiddle {
    border: none;
}

.classPO_Text {
    background-color: transparent !important;
    background-image: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 3rem;
    outline: none;
    transition: border 0.3s ease;
}

    .classPO_Text:focus {
        border-color: #6c757d !important;
        outline: none;
        box-shadow: none !important;
    }


input.classPO_Text:-webkit-autofill,
input.classPO_Text:-webkit-autofill:hover,
input.classPO_Text:-webkit-autofill:focus,
input.classPO_Text:-internal-autofill-selected {
    background-color: transparent !important;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    box-shadow: 0 0 0px 1000px transparent inset !important;
    background-image: none !important;
    transition: background-color 5000s ease-in-out 0s;
    color: #000 !important;
}


.classPO_ButtonStyle {
    border-radius: 50px;
    height: 45px;
    width: 100%;
    border-width: 1px;
    background-color: darkslategray;
    color: white;
}

.classPO_Parent {
    position: relative;
    text-align: center;
    vertical-align: central;
}

.classPO_container {
    color: darkslategray;
    background-color: transparent;
    padding: 12px;
    font-family: Arial;
}

    .classPO_container h4, H5 {
        color: darkslategray;
        padding: 12px;
        font-family: Arial;
    }


.classPO_DivContainer {
    padding: 12px;
    width: 100%;
    text-align: center;
    background-color: transparent;
}

.classPO_ObjectLabelText {
    position: absolute;
    font-weight: bold;
    left: 15px;
    top: 0px;
    padding-top: 0px;
    background-color: #fff;
    color: darkslategray;
}

.classPO_Validator {
    position: relative;
    top: 35px;
    left: 12px;
}


.classPO_MainDiv {
    position: relative;
    top: 0;
    padding-top: 10px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: white;
    vertical-align: central;
    text-align: center;
}

.classPO_SubDiv {
    border-radius: 8px;
    border-style: solid;
    position: relative;
    min-height: 50px;
    text-align: left;
    border-color: darkgray;
    border-width: 1px;
    background-color: white;
    vertical-align: middle;
    padding-top: 4px;
    padding-left: 6px;
    padding-right: 6px;
}

.classPO_TableZeroSpace {
    border: none;
    border-collapse: collapse;
    padding: 0;
    margin: 0;
    border-spacing: 0px;
}

.classPO_VerticalCenteredElement {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    height: 25px; /*requires explicit height*/
    padding-left: 12px;
}

.classPO_TableCustStyle1 {
    border-spacing: 3px;
    background-color: transparent;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    /*                border-collapse:separate;
                border:solid black 1px;
                border-radius:6px;
*/
}

    .classPO_TableCustStyle1 a {
        color: White !important;
        /*background-color: aliceblue;*/
        font-weight: bold;
    }

    .classPO_TableCustStyle1 th {
        padding: 3px;
        vertical-align: middle;
        background-color: darkslategray;
        color: white;
        text-align: center;
    }

    .classPO_TableCustStyle1 td {
        padding: 5px;
        vertical-align: middle;
        /*background-color: whitesmoke;*/
    }


.classPO_TableCustStyle2 {
    border-spacing: 3px;
    border-color: transparent;
    background-color: aliceblue;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    border-collapse: separate;
    /*border:solid black 1px;
                border-radius:6px;
    */
}

    .classPO_TableCustStyle2 a {
        color: White !important;
        /*background-color: aliceblue;*/
        font-weight: bold;
    }

     .classPO_TableCustStyle2 th {
        padding: 3px;
        border-spacing: 3px;
        vertical-align: middle;
        border-color: transparent;
        background-color: darkslategray !important;
        color: white;
        text-align: center;
    }

    .classPO_TableCustStyle2 td {
        padding: 5px;
        border: 1px solid white;
        border-spacing: 3px;
        vertical-align: middle;
        border-color: transparent;
        /*background-color: whitesmoke;*/
    }

    .classPO_TableCustStyle2.grid {
        border-collapse: collapse;
    }

        .classPO_TableCustStyle2.grid tr {
            border: 0px solid white;
            border-width: 20px 0;
        }




.classPO_TableCustStyle3 {
    border-spacing: 3px;
    border-color: transparent;
    /*                background-color: aliceblue;*/
    margin-left: auto;
    margin-right: auto;
    border-collapse: separate;
}

    .classPO_TableCustStyle3 th {
        padding: 3px;
        border-spacing: 3px;
        vertical-align: middle;
        border-color: transparent;
        background-color: darkslategray;
        color: white;
        text-align: center;
    }

    .classPO_TableCustStyle3 td {
        padding: 5px;
        border-spacing: 3px;
        vertical-align: middle;
        border-color: transparent;
        /*background-color: whitesmoke;*/
    }



.classPO_vertical-center {
    margin: 0;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.classPO_TableTDBackColorDefault {
    background-color: aliceblue;
}

.classPO_RadToolBarStyle {
    padding-top: 30px;

}


.container1 {
    width: 100%; /* Ensures the div takes the full width of its parent */
    display: flex; /* Uses Flexbox to center the child elements */
    justify-content: center; /* Centers the table horizontally */
    align-items: center; /* Centers the table vertically, if needed */
}

.centeredTable1 {
    /* Set a specific width for your table */
    width: 80%; /* Example width, adjust as needed */
    margin-left: auto;
    margin-right: auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Adjust based on your needs */
    gap: 1px; /* Adjust the gap size to control grid line thickness */
    /*background-color: black; */
}

.grid-item {
    background-color: white; /* Or any desired cell background color */
    /* Add other styling as needed */
}


.tree ul {
    list-style-type: none;
}

.tree ul ul {
    margin-left: 20px;
}

.collapsed > ul {
    display: none;
}

.toggle::before {
    content: '+ ';
    cursor: pointer;
}

.collapsed .toggle::before {
    content: '- ';
}


/* ===== Modal Sugestões ===== */
.ms-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* acima de toolbars/menus */
    -webkit-backdrop-filter: saturate(100%) blur(0px);
    backdrop-filter: saturate(100%) blur(0px);
}

.ms-dialog {
    width: min(90vw, 980px);
    height: min(88vh, 780px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;
}

.ms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f7f7f7;
    border-bottom: 1px solid #e5e5e5;
}

.ms-title {
    font-weight: 600;
    font-size: 14px;
    color: #222;
}

.ms-close {
    width: 32px;
    height: 32px;
    line-height: 28px;
    border: 1px solid #d0d0d0;
    background: #fff;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

    .ms-close:hover {
        background: #f0f0f0;
    }

.ms-body {
    position: relative;
    flex: 1;
    background: #fff;
}

.ms-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Loader central enquanto o iframe carrega */
.ms-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.ms-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #ddd;
    border-top-color: #888;
    animation: msSpin 1s linear infinite;
}

.ms-loading-text {
    font-size: 13px;
    color: #444;
}

@keyframes msSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile: ocupar quase tudo */
@media (max-width: 600px) {
    .ms-dialog {
        width: 96vw;
        height: 92vh;
        border-radius: 8px;
    }
}

/* NÃO deformar imagens em cards/listas */
img.keep-ratio {
    max-width: 100%;
    height: auto !important; /* ignora height fixo do HTML */
    display: block;
}

/* Se a imagem fica dentro de um slot quadrado, use aspect-ratio */
.thumb {
    width: 72px; /* ajuste conforme seu layout */
    aspect-ratio: 1 / 1; /* mantém quadrado */
    flex: 0 0 72px; /* evita esticar em flex/grid */
    overflow: hidden;
    border-radius: 8px; /* opcional */
}

    .thumb > img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* preenche o quadrado sem achatar */
        object-position: center;
        display: block;
    }

/* evita deformação em ImageButton */
.keep-ratio {
    height: auto !important; /* ignora Height="90px" do markup */
    max-width: 100%;
    display: block;
}
