/*
    @author dpalacios@aduanet.net
    Hoja de estilos para nebby.js
*/


.nebby{
    width: 96vw; 
    height: 100vh;
    pointer-events: none!important;
}

.nebby:has(.nebby-notifications-buttons)
{
    pointer-events: auto !important;
    background: rgba(0,0,0,.4);
    backdrop-filter : blur(15px);
    transition: 4s;
}

/*Workaround*/
/*#nebby-modal,.nebby-notifications-buttons
{
    pointer-events: auto !important;
    background: rgba(0,0,0,.4);
    backdrop-filter : blur(15px);
    transition: 4s;
}*/


/*Esta opción hace que se pueda pulsar fuera del modal o notificación*/
.nebby-unlocked {
    pointer-events: none !important;
}
/*Esta opción hace que NO se pueda pulsar fuera del modal o notificación hasta que haga una opción*/
.nebby-locked {
    background: rgba(0,0,0,.4);
    pointer-events: auto !important;
}

.nebby-wrapper ,.nebby-wrapper-modal {
    width: auto;
    pointer-events: none !important;
}
.nebby-container {
    pointer-events: none   !important;
    display: grid;
    grid-template-columns: 0.7fr 1.6fr 0.7fr;
    grid-template-rows: minmax(20px, 111px) minmax(20px, 220px) minmax(100px, auto) minmax(75px, 75px) minmax(20px, 130px);
    grid-auto-rows: 1fr;
    gap: 0 0;
    grid-auto-flow: row;
    grid-template-areas:
    "nebby-wrapper-top nebby-wrapper-top nebby-wrapper-top"
    "nebby-wrapper-topLeft nebby-wrapper-topCenter nebby-wrapper-topRight"
    "nebby-wrapper-midLeft nebby-wrapper-center nebby-wrapper-midRight"
    "nebby-wrapper-bottomLeft nebby-wrapper-bottomCenter nebby-wrapper-bottomRight"
    "nebby-wrapper-bottom nebby-wrapper-bottom nebby-wrapper-bottom";
    top: -2px;
    position: fixed;
    z-index:1200 ;
}

.nebby-wrapper-top {
    grid-area: nebby-wrapper-top;
    width: 100%;
}
.nebby-wrapper-topLeft {
    grid-area: nebby-wrapper-topLeft;
    width: 100%;
}
.nebby-wrapper-topCenter {
    grid-area: nebby-wrapper-topCenter;
    width: 100%;
}
.nebby-wrapper-topRight {
    grid-area: nebby-wrapper-topRight;
    width: 100%;
}
.nebby-wrapper-midLeft {
    grid-area: nebby-wrapper-midLeft;
    width: 100%;
}
.nebby-wrapper-center {
    grid-area: nebby-wrapper-center;
    width: 100%;
}
.nebby-wrapper-midRight {
    grid-area: nebby-wrapper-midRight;
    width: 100%;
}
.nebby-wrapper-bottomLeft {
    grid-area: nebby-wrapper-bottomLeft;
    width: 100%;
    align-self: self-end;
}
.nebby-wrapper-bottomCenter {
    grid-area: nebby-wrapper-bottomCenter;
    width: 100%;
    align-self: self-end;
}
.nebby-wrapper-bottomRight {
    grid-area: nebby-wrapper-bottomRight;
    width: 100%;
    align-self: self-end;
}
.nebby-wrapper-bottom {
    grid-area: nebby-wrapper-bottom;
    width: 100%;
    align-self: self-end;
}

/*region GRID MODAL*/
/*Inicia Nebby-modal*/

.nebby-container-modal {
    pointer-events: none !important;
    display: grid;
    grid-template-columns: 0.7fr 1.6fr 0.7fr;
    grid-template-rows: minmax(20px, 55px) minmax(20px, 75px) minmax(100px, auto) minmax(75px, 75px) minmax(20px, 60px);
    grid-auto-rows: 1fr;
    gap: 0 0;
    grid-auto-flow: row;
    grid-template-areas:
    "nebby-wrapper-top-modal nebby-wrapper-top-modal nebby-wrapper-top-modal-modal"
    "nebby-wrapper-topLeft-modal nebby-wrapper-topCenter-modal nebby-wrapper-topRight-modal"
    "nebby-wrapper-midLeft-modal nebby-wrapper-center-modal nebby-wrapper-midRight-modal"
    "nebby-wrapper-bottomLeft-modal nebby-wrapper-bottomCenter-modal nebby-wrapper-bottomRight-modal"
    "nebby-wrapper-bottom-modal nebby-wrapper-bottom-modal nebby-wrapper-bottom-modal";
    top: -2px;
    position: absolute;
    z-index:1200 ;
    backdrop-filter: none;
    animation-duration: 15s;
}
.nebby-container-modal:has(.nebby-notify-modal) {
    pointer-events: auto !important;
    background: rgba(0,0,0,.4);
    backdrop-filter : blur(15px);
    transition: 4s;
}
.nebby-wrapper-top-modal {

    grid-area: nebby-wrapper-top-modal;
    width: 100%;
}
.nebby-wrapper-topLeft-modal {
    grid-area: nebby-wrapper-topLeft-modal;
    width: 100%;
}
.nebby-wrapper-topCenter-modal {
    grid-area: nebby-wrapper-topCenter-modal;
    width: 100%;
}
.nebby-wrapper-topRight-modal {
    grid-area: nebby-wrapper-topRight-modal;
    width: 100%;
}
.nebby-wrapper-midLeft-modal {
    grid-area: nebby-wrapper-midLeft-modal;
    width: 100%;
}
.nebby-wrapper-center-modal {
    grid-area: nebby-wrapper-center-modal;
    width: 100%;
}
.nebby-wrapper-midRight-modal {
    grid-area: nebby-wrapper-midRight-modal;
    width: 100%;
}
.nebby-wrapper-bottomLeft-modal {
    grid-area: nebby-wrapper-bottomLeft-modal;
    width: 100%;
    align-self: self-end;
}
.nebby-wrapper-bottomCenter-modal {
    grid-area: nebby-wrapper-bottomCenter-modal;
    width: 100%;
    align-self: self-end;
}
.nebby-wrapper-bottomRight-modal {
    grid-area: nebby-wrapper-bottomRight-modal;
    width: 100%;
    align-self: self-end;
}
.nebby-wrapper-bottom-modal {
    grid-area: nebby-wrapper-bottom-modal;
    width: 100%;
    align-self: self-end;
}
/*endregion*/



.nebby-simple-container{
    display: grid;
    grid-template-columns: 40px fit-content(100%) auto;
    grid-template-rows: minmax(45px, auto);
    grid-auto-rows: 1fr;
    gap: 0 0;
    grid-auto-flow: row;
    grid-template-areas: "nebby-simple-icon nebby-simple-text nebby-simple-close";
    min-width: 290px;
}



.nebby-notify-top{
    min-height: 45px;
    border-radius: 3px;
    width: 100%;
    text-align: center!important;
    text-indent: 10px;
    font-family: Montserrat, sans-serif;
    z-index: 1250  !important;
    position: relative;
    pointer-events: auto;
    /*margin-left: 25px;*/
}
.nebby-notify-topLeft{
    min-height: 40px;
    border-radius: 5px;
    width: auto;
    min-width: 200px;
    max-width: 500px;
    text-align: left;
    font-family: Montserrat, sans-serif;
    z-index: 1250  !important;
    position: relative;
    pointer-events: auto;
    padding: 0;
    border: 0;
    margin-right: auto;
    /*margin-left: 25px;*/
}
.nebby-notify-topRight{
    min-height: 40px;
    border-radius: 5px;
    width: auto;
    min-width: 200px;
    max-width: 500px;
    text-align: left;
    font-family: Montserrat, sans-serif;
    z-index: 1250  !important;
    position: relative;
    pointer-events: auto;
    padding: 0;
    border: 0;
    margin-left: auto;
    margin-right: 20px;
}
.nebby-notify-bottomLeft{
    min-height: 10px;
    border-radius: 3px;
    width: 98%;
    margin: 5px;
    text-align: left;
    text-indent: 10px;
    font-size: large;
    font-family: Montserrat, sans-serif;
    z-index: 1250  !important;
    position: relative;
    pointer-events: auto;
}
.nebby-notify-center{
    min-height: 40px;
    border-radius: 5px;
    width: auto;
    text-align: left;
    font-family: Montserrat, sans-serif;
    z-index: 1250  !important;
    position: relative;
    pointer-events: auto;
}
.nebby-notify-bottom{
    min-height: 45px;
    border-radius: 3px;
    width: 98.5%;
    text-align: center!important;
    text-indent: 10px;
    font-family: Montserrat, sans-serif;
    z-index: 1250  !important;
    position: relative;
    pointer-events: auto;
    /*margin-left: 25px;*/
}

.nebby-notify-simple{
    min-height: 40px;
    border-radius: 5px;
    width: auto;
    min-width: 200px;
    max-width: 500px;
    text-align: left;
    font-family: Montserrat, sans-serif;
    z-index: 1250  !important;
    position: relative;
    pointer-events: auto;
    padding: 0;
    border: 0;
    margin-right: auto;
    /*margin-left: 25px;*/
}


.nebby-notify-modal{
    min-height: 10px;
    height: auto;
    border-radius: 3px;
    width: 97%;
    margin: 5px;
    text-align: center!important;
    text-indent: 10px!important;
    font-size: large!important;
    font-family: Montserrat, sans-serif !important;
    z-index: 1250  !important;
    position: relative;
    pointer-events: auto;
    background: #fcfcfc;
    color: #545454;
}

.nebby-not-top-title
{
    height: auto;
    text-align: center;
    font-size: medium;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
}

.nebby-not-top-message
{
    height: auto;
    text-align: center;
    font-size: small;
    font-family: Montserrat, sans-serif;
    padding: 5px;
}

.nebby-not-title
{
    display: flex;
    height: auto;
    text-align: left;
    font-size: large;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    min-height: 1.2em;
    letter-spacing: 2px;
    border-radius: 5px 5px 0 0;
}

.nebby-con-title {
    height: auto;
    text-align: left;
    font-size: smaller;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    padding: 8px;
    min-height: 1.2em;
    letter-spacing: 2px;
}

.nebby-not-message
{
    height: auto;
    text-align: left;
    font-size: medium;
    font-family: Montserrat, HelveticaNeue, sans-serif;
    padding: 8px;
    justify-content: center;
    margin: 5px;
    white-space: break-spaces;
}

.nebby-notify-top .nebby-not-message
{
    height: auto;
    text-align: left;
    font-size: medium;
    font-family: Montserrat, HelveticaNeue, sans-serif;
    padding: 8px;
    justify-content: center;
    margin: 5px;
    white-space: break-spaces;
}

.nebby-notify-bottom .nebby-not-message
{
    height: auto;
    text-align: center;
    font-size: medium;
    font-family: Montserrat, HelveticaNeue, sans-serif;
    padding: 8px;
    justify-content: center;
    margin: 5px;
    white-space: break-spaces;
}

.nebby-close-not{

}


.nebby-embed{
    border-radius: 5px 5px 5px 5px;
    margin: 3px;
}

.nebby-simple-icon {
    height: auto;
    text-align: left;
    padding: 8px;
    min-height: 1.2em;
    letter-spacing: 2px;
    margin: 5px;
    grid-area: nebby-simple-icon;
}


.nebby-simple-title
{
    display: flex;
    font-size: large;
    border-radius: 5px 0 0 5px;
    align-items: center;
    grid-area: nebby-simple-icon;
}

.nebby-simple-text
{
    height: auto;
    text-align: justify;
    font-size: inherit;
    font-family: Montserrat, HelveticaNeue, sans-serif;
    padding: 8px;
    margin: 5px;
    display: flex;
    align-items: center;
    grid-area: nebby-simple-text;
}

.nebby-simple-close
{
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    justify-self: end;
    display: flex;
    height: auto;
    background: transparent;
    color: white;
    margin: 10px;
    grid-area: nebby-simple-close;
}

.nebby-simple-close:hover {
   /*font-size: 1.5em;*/
}


/*COLORES*/


.nebby-default,
.nebby-default .nebby-not-message,
.nebby-default .nebby-simple-text
{
    background: #BDBDBD;
    color: white;

}

.nebby-default .nebby-not-title,
.nebby-default .nebby-simple-title
{
    background: #616161;
    color: white;
}

.nebby-confidential,
.nebby-confidential .nebby-not-message,
.nebby-confidential .nebby-simple-text
{
    background: #333333;
    color: #ffffff;
}

.nebby-confidential .nebby-not-title,
.nebby-confidential .nebby-simple-title
{
    background: #000000;
    color: white;
}


.nebby-info,
.nebby-info .nebby-not-message,
.nebby-info .nebby-simple-text
{
    background: #42A5F5;
    color: white;
}

.nebby-info .nebby-not-title,
.nebby-info .nebby-simple-title
{
    background: #1976D2;
    color: white;
}

.nebby-success,
.nebby-success .nebby-not-message,
.nebby-success .nebby-simple-text
{
    background:#66BB6A;
    color: white;
}

.nebby-success .nebby-not-title,
.nebby-success .nebby-simple-title
{
    background: #388E3C;
    color: white;
}

.nebby-error,
.nebby-error .nebby-not-message,
.nebby-error .nebby-simple-text
{
    background: #EF5350;
    color: white;
}

.nebby-error .nebby-not-title,
.nebby-error .nebby-simple-title
{
    background: #D32F2F;
    color: white;
}


.nebby-warning,
.nebby-warning .nebby-not-message,
.nebby-warning .nebby-simple-text
{
    background: #FBC02D;
    color: white;
}

.nebby-warning .nebby-not-title,
.nebby-warning .nebby-simple-title
{
    background: #F9A825;
    color: white;
}


.nebby-confirm,
.nebby-confirm .nebby-not-message,
.nebby-confirm .nebby-simple-text
{
    background: #AB47BC;
    color: white;
}

.nebby-confirm .nebby-not-title,
.nebby-confirm .nebby-simple-title
{
    background: #7B1FA2;
    color: white;
}

.nebby-financial,
.nebby-financial .nebby-not-message,
.nebby-financial .nebby-simple-text
{
    background: #78909C;
    color: white;
}

.nebby-financial .nebby-not-title,
.nebby-financial .nebby-simple-title
{
    background: #455A64;
    color: white;
}


.nebby-legal,
.nebby-legal .nebby-not-message,
.nebby-legal .nebby-simple-text
{
    background: #8D6E63;
    color: white;
}

.nebby-legal .nebby-not-title,
.nebby-legal .nebby-simple-title
{
    background: #5D4037;
    color: white;
}

.nebby-external,
.nebby-external .nebby-not-message,
.nebby-external .nebby-simple-text
{
    background: #26A69A;
    color: white;
}

.nebby-external .nebby-not-title,
.nebby-external .nebby-simple-title
{
    background: #00796B;
    color: white;
}


.nebby-critical,
.nebby-critical .nebby-not-message,
.nebby-critical .nebby-simple-text
{
    background: #FF7043;
    color: white;
}

.nebby-critical .nebby-not-title,
.nebby-critical .nebby-simple-title
{
    background: #E64A19;
    color: white;
}

@keyframes nebby-revealIn {
    0% {
        transform: scale3d(0.3, 0.3, 1);
    }
    100% {
    }
}

@keyframes nebby-fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.nebby.revealIn,
.nebby .revealIn {
    -webkit-animation: nebby-revealIn 1s cubic-bezier(0.25, 1.6, 0.25, 1) both;
    -moz-animation: nebby-revealIn 1s cubic-bezier(0.25, 1.6, 0.25, 1) both;
    animation: nebby-revealIn 1s cubic-bezier(0.25, 1.6, 0.25, 1) both;
}

.nebby.fadeOut {
    -webkit-animation: nebby-fadeOut 0.7s ease both;
    animation: nebby-fadeOut 0.7s ease both;
}

.nebby_close {
    z-index: 2;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: -1.2em;
    padding: 0;
    overflow: hidden;
    transition: color 0.1s, box-shadow 0.1s;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: #ccc;
    font-family: monospace;
    font-size: 1.7em;
    cursor: pointer;
    justify-self: end;
    display: inline-block;
    float: right;
}
.nebby_close:hover {
    transform: none;
    background: transparent;
    color: #f27474;
}
.nebby_close:focus {
    outline: none;
    box-shadow: inset 0 0 0 3px rgba(100, 150, 200, 0.5);
}
.nebby_close::-moz-focus-inner {
    border: 0;
}



/*Notifications Container*/

.nebby-notification-container-min {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-rows: 1fr;
    grid-template-rows: minmax(20px, 44px) minmax(450px, 450px) minmax(20px, 51px) minmax(20px, 35px);
    grid-template-areas:
    "nebby-notification-title"
    "nebby-notification-message"
    "nebby-notification-actions"
    "nebby-notification-about";
    gap: 0 0;
    width: 100%;
    height: 100%;
}

.nebby-notification-container {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-rows: 1fr;
    grid-template-rows: minmax(20px, 44px) minmax(min-content, max-content) minmax(20px, auto) minmax(20px, 35px);
    grid-template-areas:
    "nebby-notification-title"
    "nebby-notification-message"
    "nebby-notification-actions"
    "nebby-notification-about";
    gap: 0 0;
    width: 100%;
    height: 100%;
}
.nebby-notification , .nebby-notification div {
    width: auto;
    text-indent: 0 !important;
    font-size: large!important;
    font-family: Montserrat, sans-serif !important;
    z-index: 2147483647 !important;
    position: relative;
    pointer-events: auto;
    word-wrap: break-word;


}

.nebby-notification-title {
    grid-area: nebby-notification-title;
    font-weight: 600;
    margin: 1em 1.6em 0.3em;
}
.nebby-notification-message {
    grid-area: nebby-notification-message;
    overflow-x: auto;
    margin: 1em 1.6em 1em;
    display: inline-grid;
   justify-content: center;
    justify-items: center;}
.nebby-notification-actions {
    grid-area: nebby-notification-actions;
    border-top: 1px solid #b9b9b9;
    padding: 10px; }
.nebby-notification-about {
    grid-area: nebby-notification-about;
    border-top: 1px solid #b9b9b9;
    text-align: center!important;
}


.nebby-notification-message::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.nebby-notification-message::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

.nebby-notification-message::-webkit-scrollbar-thumb:vertical  {
    background-color: rgba(112, 128, 144, 0.78) !important;
    border-radius: 10px !important;
    outline: 1px solid rgba(112, 128, 144, 0.78) !important;
}

/*buttons*/
.nebby-buttons{
    margin: 0 2em 0;
}
.nebby-notifications-buttons{
    margin: 0 5em 0;
    height: 30px;
}

.nebby-button-ok{
    cursor: pointer;
    border: 0;
    border-radius: 0.25em;
    background: #44b93f;
    color: #fff;
    font-size: 1em;
    padding: 4px;
    min-width: 100px;
    margin-right: 50px;
}

.nebby-button-cancel{
    cursor: pointer;
    border: 0;
    border-radius: 0.25em;
    background: #6e7881;
    color: #fff;
    font-size: 1em;
    padding: 4px;
    min-width: 100px;
    margin-right: 50px;
}


.nebby-button-confirm{
    cursor: pointer;
    border: 0;
    border-radius: 0.25em;
    background: #7066e0;
    color: #fff;
    font-size: 1em;
    padding: 4px;
    min-width: 100px;
    margin-right: 50px;
}
.nebby-separame{
    margin-right: 10px;
}

.ap-autocomplete{

}

.ap-autocomplete-datalist{
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
    border: var(--ap-border);
    position: fixed;
    z-index: 1600;
    width: auto;
    max-width: 700px;
}

.ap-autocomplete-datalist li
{
    cursor: pointer;
    position: relative;
    color: rgb(var(--ap-color));/*--ap-component-head-color*/
    font-size: var(--ap-font-size);
    background: rgba(var(--ap-white), 1); /*--ap-component-head-bg*/
    padding: calc(var(--ap-padding) / 2);
    margin: 0px;
    border: 0px;
    border-radius: 0px;
    list-style-type: none;
}

.ap-autocomplete-datalist li:hover {
    background: rgba(var(--ap-secundary-dark),1);
    color: rgba(var(--ap-white), 1);
}