html { height: 100%; width: 100%; margin: 0; } 
body {
	/* height: 97.85%; */
	height: 100%;
	width: 100%;
	margin: 0;
	font-family: "Trebuchet MS", "Helvetica", "Arial",  "Verdana", "sans-serif";
	font-size: 80%;
}

nav #login-content {
  display: none;
  position: absolute;
  top: 50px;
  /* left: 5px; */
  right: 0;
  z-index: 999;
      
  background: #fff;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
  background-image: -webkit-linear-gradient(top, #3091be, #eee);
  background-image: -moz-linear-gradient(top, #3091be, #eee);
  background-image: -ms-linear-gradient(top, #3091be, #eee);
  background-image: -o-linear-gradient(top, #3091be, #eee);
  background-image: linear-gradient(top, #3091be, #eee); 
  padding: 15px;
  -moz-box-shadow: 0 2px 2px -1px rgba(0,0,0,.9);
  -webkit-box-shadow: 0 2px 2px -1px rgba(0,0,0,.9);
  box-shadow: 0 2px 2px -1px rgba(0,0,0,.9);
  -moz-border-radius: 3px 0 3px 3px;
  -webkit-border-radius: 3px 0 3px 3px;
  border-radius: 3px 0 3px 3px;
}
nav #login-menu {
  width: auto; /* width: 125px; */
  position: relative;
  align: right;
  right: 0;

  /* float: right; */
}

#menuBox {
  position: relative;
  left: 0;
  /* float: left; */
}

#contenido {
    height: 100%; 
    width: 100%;
}

.w100 {
    width: 100%;
    height: 100%;
    margin:0;
}

.h100 {
    height: 100%;
}

.h93 {
    height: 75%;
}

#tabs { margin-top: 1em; }
#tabs li .ui-icon-close { float: left; margin: 0.4em 0.2em 0 0; cursor: pointer; padding:0; }
#add_tab { cursor: pointer; }
.ui-tab-content, .ui-tabs-panel {overflow: auto; padding:0; }

/*ª Text align right for fancyform number field */
.fancy-field-text-input-number>.fancy-field-text>.fancy-field-text-input {
    text-align: right !important;
}

.fancy-field-html {
    padding-top: 0px !important;
}

/* Correct Summary number field */
.fancy-grid-summary-row>.fancy-grid-cell {
    text-align: -moz-right !important;
    text-align: -webkit-right !important;
    padding-right: 15px !important;
}

.fancy-grid-summary-row>.fancy-grid-cell>.fancy-grid-cell-inner {
    width: min-content !important;
}

/* Responsive layout shared with the Durantas site. */
#panel-completo {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 480px) {
    #panel-completo {
        table-layout: fixed;
    }

    #panel-completo > tbody > tr:first-child > td,
    #panel-completo > tbody > tr:nth-child(2) > td {
        width: 100% !important;
        min-width: 0;
    }

    #panel-completo > tbody > tr:first-child > td > table {
        display: block;
        width: 100% !important;
        table-layout: fixed;
    }

    #panel-completo > tbody > tr:first-child > td > table > tbody > tr {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    #panel-completo > tbody > tr:first-child > td > table > tbody > tr > td {
        display: block;
        flex: 1 1 33.3333%;
        width: auto !important;
        max-width: 33.3333%;
        min-width: 0;
        box-sizing: border-box;
        padding: 0 1px;
    }

    #panel-completo .ui-widget-header,
    #panel-completo .ui-widget-content {
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

    #panel-completo > tbody > tr:nth-child(2) > td > table {
        display: table;
        width: 100% !important;
        max-width: 100%;
        table-layout: fixed;
    }

    #panel-completo > tbody > tr:nth-child(2) > td > table > tbody > tr > td {
        min-width: 0;
    }

    #panel-completo > tbody > tr:nth-child(2) > td > table > tbody > tr > td:first-child {
        width: auto !important;
    }

    #panel-completo > tbody > tr:nth-child(2) > td > table > tbody > tr > td:last-child {
        width: 74px !important;
    }

    #menuBox,
    #login-div,
    #login-menu,
    #login-trigger,
    #login-content,
    #loginform,
    #loginform fieldset,
    #inputs,
    #actions,
    #bt,
    #inputs input {
        max-width: 100%;
        box-sizing: border-box;
    }

    #login-trigger {
        white-space: normal;
        text-align: center;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    #login-content {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        padding: 10px;
    }

    #inputs input,
    #dataBox form,
    #dataBox select {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .ui-dialog {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        box-sizing: border-box;
    }

    .ui-dialog .ui-dialog-title {
        max-width: calc(100% - 36px);
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .ui-dialog .ui-dialog-buttonset {
        float: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.4em;
    }

    .ui-dialog .ui-dialog-buttonset > * {
        margin: 0;
    }
}

/* Keep jQuery UI dialogs centered and compact at every viewport size. */
.ui-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 32px) !important;
}

.ui-dialog .ui-dialog-content {
    max-height: calc(100vh - 128px) !important;
    overflow: auto !important;
}

#dataBox.ui-dialog-content {
    min-height: 0 !important;
    height: auto !important;
    padding: 0.5em !important;
}

#dataBox form {
    margin: 0 !important;
}

#dataBox .selector {
    max-width: 100%;
}

.dataBox-dialog {
    width: 34vw !important;
    min-width: 280px !important;
    max-width: 500px !important;
    height: auto !important;
    min-height: 0 !important;
}

.dataBox-dialog .ui-dialog-content {
    height: auto !important;
    min-height: 0 !important;
}

@media (max-width: 480px) {
    .dataBox-dialog {
        width: calc(100vw - 32px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 32px) !important;
    }
}

.fancy-grid-summary-row>.fancy-grid-cell>.fancy-grid-cell-inner>div {
    float:left; width:auto !important;
}

/* Agrega un estilo de desplazamiento al contenedor de la forma */
.fancy-form-body {
    overflow-y: auto;
    /*max-height: 300px;*/ /* Ajusta la altura máxima según sea necesario */
    overflow-x: hidden;
    scrollbar-width: thin; /* Establece el ancho de la barra de desplazamiento en "delgada" en navegadores que admiten la propiedad scrollbar-width */
    scrollbar-color: lightgray transparent; /* Establece el color de la barra de desplazamiento (pista y mango) */
}

/* Para navegadores que no admiten la propiedad scrollbar-width */
.fancy-form-body::-webkit-scrollbar {
    width: 8px; /* Ajusta el ancho de la barra de desplazamiento en navegadores WebKit (Chrome, Safari, etc.) */
}

.fancy-form-body::-webkit-scrollbar-thumb {
    background-color: lightgray; /* Color del mango de la barra de desplazamiento */
}

  
  
