
.formal { margin: 0; }

/* -- tabs ------------------------------------------------ */

:root {
    --tab-bg-color: white;
    --tab-bg-color-unselected: rgb( 120,120,120);
    --tab-border-color: black;
    --tab-border-color-unselected: rgb(80,80,80);
}

.poliester-tab-header {
     display: flex;
     padding-left: 15px;
     background-image: linear-gradient(to bottom right, rgb(140,140,140), rgb(20,20,20));     
     border-top: 1px solid black;
     padding-top: 6px;
     font-size: 16px;
 }

.poliester-tab-body {
     border: 1px solid var(--tab-border-color);
     border-left: none;
     background-color: var(--tab-bg-color);

     /* Para que el borde inferior del tab seleccionado pise el borde superior de este div*/
     position: relative;
     margin-top: -1px;
     z-index: -1; 
 }

.poliester-tab-body-2 {
     border-top: 1px solid var(--tab-border-color);
     /* Para que el borde inferior del tab seleccionado pise el borde superior de este div*/
     margin-top: -1px;
     z-index: -1; 
 }


.poliester-tab {
     margin-left: 10px;
     padding-left: 18px;
     padding-right: 18px;
     padding-top: 4px;
     padding-bottom: 4px;
     border: 1px solid var(--tab-border-color);
     position: relative;
     border-bottom: 1px solid var(--tab-bg-color);
 }

@media (max-width: 1024px) {
    .poliester-tab {
        font-size: 12px;
        padding-left: 4px;
        padding-right: 4px;
    }
}

.poliester-tab-selected {
     background-color: var(--tab-bg-color);
     background-image: linear-gradient(to bottom, rgb(200,200,200), white);     
 }

.poliester-tab-unselected {
     border: 1px solid var(--tab-border-color-unselected);
     border-bottom: 1px solid var(--tab-border-color);
     background-color: var(--tab-bg-color-unselected);
 }

.poliester-tab-unselected > * {
    color: inherit;
}

/* -- head ------------------------------------------------ */

 /*
   Como el menú se genera por código, se pone dentro de un div de esta clase para
   evitar que baile la página
*/
 .poliester-head {
    display: flex;
    flex-flow: row wrap;
    background-color: #222222;
    color: rgb(157,157,157);
    font-size: 13px;
    min-height: 40px;
 }

/*
 .poliester-head-container {
    display: flex;
    flex-flow: row wrap;
    background-color: #222222;
    color: rgb(157,157,157);
    font-size: 13px;
    min-height: 40px;
}
*/

.poliester-head-cell {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap !important;
    min-height: 40px;
    transition: padding-left 0.4s;
    transition: padding-right 0.4s;
    
}

.poliester-head-menu {
    transition: font-size 0.4s;
}

.poliester-head-menu-popup {
    top: 40px;
    min-width: 200px;
    position: absolute;
    background-color: #222222;
    border: 1px solid black;
    border-radius: 0 0 4px 4px;
    display: none;
    color: rgb(157,157,157);
    padding-top: 7px;
    padding-bottom: 7px;
    cursor: auto;
    z-index: 99 !important;
}

.poliester-head-menu-popup-separator {
    border-bottom: 1px dashed rgb(80,80,80);
}

.poliester-head-menu-popup-entry {
    padding-left: 17px;
    padding-right: 8px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 14px;
    line-height: 20px;
}

.poliester-head-menu-popup-entry-selected {
   background-color: black;
   color: yellow;
}

.poliester-head-menu-popup-entry:hover {
    color: white;
    cursor: pointer;
    background-color: black;
}

.poliester-head-menu:hover {
    color: white;
    cursor: pointer;
}

.poliester-head-menu-selected {
    background-color: black;
    color: yellow;
}

.poliester-menu-icon {
    transition: font-size 0.4s;
}

.poliester-head-cell-filler { flex-grow: 1; }

@media (max-width: 1024px) {
    .poliester-head-cell-filler {
        display: none;
    }
}

@media (max-width: 950px) {
    .poliester-head-menu{
        font-size: 0;
    }

    .poliester-menu-icon {
        font-size: 20px;
    }
}

.polimer-head-logo {
    width: 90px;
    transition: width 0.4s;
}


@media (max-width: 700px) {
    .polimer-head-logo {
        width: 60px;
    }
}


@media (max-width: 650px) {
    .poliester-head-cell {
        padding-left: 6px;
        padding-right: 6px;
    }

    .polimer-head-logo {
        width: 30px;
    }
    
}




/* -- stab ------------------------------------------------ */

 /* El contenedor principal. 
    Cada columna es un bloque flex.
*/

 .poliester-stab-column-container {
     display: flex;
     color: rgb(85,85,85);
     font-size: 13px;
 }

 .poliester-stab-column {
 }

 .poliester-stab-system-column {
 }
 
 .poliester-stab-header-column-cell {
     padding: 5px;
     border-bottom: 2px solid rgb(221,221,221);
     transition: background-color 0.2s;
     cursor: pointer;
     white-space: nowrap;
     overflow: hidden;
 }

 .poliester-stab-header-column-cell:hover {
      background-color: rgb(200,200,200);
 }

 .poliester-stab-header-column-cell input {
     border: none;
     font-size: 10px;
     padding: 3px;
     padding-right: 20px;
     margin-top: 3px;
     width: calc(100% - 12px);
 }

 .poliester-stab-header-system-column-cell {
     position: relative; /* El menú que está dentro se pone en absolute */
     white-space: nowrap;
     overflow: visible;
 }
 
 .poliester-stab-header-system-column-cell:hover {
     background-color: inherit;
 }
 
 .poliester-stab-icon {
     font-size: 16px;
     cursor: pointer;
     color: rgb(105,105,105);
 }

 .poliester-stab-row-checkbox {
 }
 
 .poliester-stab-cell {
     padding-left: 10px;
     padding-right: 10px;
     padding-top: 7px;
     padding-bottom: 7px;
     border-bottom: 1px solid rgba(221,221,221);
     overflow: auto;
 }
 
 .poliester-stab-cell:nth-child(2n) {
     background-color: rgb(249,249,249,0.7);
 }

 .poliester-stab-cell:nth-child(2n+1) {
     background-color: rgb(255,255,255,0.7)
 }

 
.poliester-stab-cell-left-border {
     border-left: 1px solid rgb(221,221,221);
 }

 .poliester-stab-cell-right-border {
     border-right: 1px solid rgb(221,221,221);
 }
 
 .poliester-stab-options-menu {
     background: white;
     font-size: 16px;
     border: 1px solid black;
     position: absolute;
     min-width: 150px;
     min-height: 150px;
     z-index: 1000;
 }

 .poliester-stab-column-resizing-right {
     border-right: 2px dashed rgb(221,221,221);
 }
 
 .poliester-stab-footer {
     padding: 8px;
     font-size: 12px;
     color: rgb(80,80,80);
     background-color: rgb(255,255,255,0.7);
     line-height: 1.2em;
 }

 .poliester-stab-footer-hl {
     font-weight: bold;
     color: black
 }

 .polimer-menu-box {
     background-color: rgb(82,82,82);
     background-image: linear-gradient(to bottom right, rgb(82,82,82), rgb(140,140,140));     
     border: 5px solid rgb(34,34,34);;
     border-left: none;
     border-right-width: 4px;
     color: white;
 }

 .polimer-menu-box-green {
     background-color: rgb(82,184,82);
     background-image: linear-gradient(to bottom right, rgb(82,184,82), rgb(140,184,140));     
 }

 .polimer-menu-box-red {
     background-color: rgb(184,82,82);
     background-image: linear-gradient(to bottom right, rgb(184,82,82), rgb(184,140,140));     
 }

 .polimer-menu-box-blue {
     background-color: rgb(82,82,184);
     background-image: linear-gradient(to bottom right, rgb(82,82,184), rgb(140,140,184));     
 }
 
 .polimer-tab-button {
     font-family: inherit;
     margin-bottom: 5px;
     margin-right: 5px;
     font-size: 12px;

	 border-radius: 3px;
	 background-clip: padding-box;
	 color: #f0f0f0;

      border: 1px solid #474747;
     background-image: linear-gradient(#9F9F9F,#5A5A5A);
     background-color: #9F9F9F;
     box-shadow: inset 0 1px 0 0 #C8C8C8;
     min-width: 100px;
 }

 .polimer-tab-button-back {
     border: 1px solid #530280;
	 box-shadow: inset 0 1px 0 0 #D5BFE0;
	 background-color: #9C57C2;
	 background-image: linear-gradient(#9C57C2, #6E06A7);
 }

 .polimer-tab-button-info {
     background-color: #5a5a5a;
     background-image: none;
     border: 1px solid #7f7f7f;
     box-shadow: none;
 }
 
 .polimer-tab-button-new {
     border: 1px solid #007C00;
     background-image: linear-gradient(#60C360,#009900);
     background-color: #60C360;
     box-shadow: inset 0 1px 0 0 #ACCFAC;
 }

.polimer-tab-button-ok {
     border: 1px solid #007C00;
     background-image: linear-gradient(#60C360,#009900);
     background-color: #60C360;
     box-shadow: inset 0 1px 0 0 #ACCFAC;
 }
 
 .polimer-tab-button-cancel {
     border: 1px solid #530280;
	 box-shadow: inset 0 1px 0 0 #D5BFE0;
	 background-color: #9C57C2;
	 background-image: linear-gradient(#9C57C2, #6E06A7);
 }
 
 .polimer-tab-button:hover {
     background-image: none;
 }

 .polimer-tab-button:active {
     box-shadow: none;
 }

 .polimer-tab-button-info:hover {
     background-image: none;
     cursor: default;
 }

/* poliester-ss ------------------------------------------- */

.pet-ss-dropdown {
    position: relative;
    border: 1px solid #808080;
    background-color: white;
    display: flex;
    height: 2em;
    line-height: 2em;
}

.pet-ss-dropdown-glass {
    position: relative;
    border: 1px solid transparent;
    background-color: transparent;
    display: flex;
    height: 2em;
    line-height: 2em;
    color: #a0a0a0;
}

.pet-ss-dropdown-content {
    flex-grow: 1;
    border-right: 1px solid #808080;
    overflow: hidden;
}

.pet-ss-dropdown-content-glass {
    flex-grow: 1;
    border-right: 1px solid transparent;
    overflow: hidden;
}

.pet-ss-dropdown-arrow {
    padding: 0;
    border: 1px outset black;
    justify-content: center;
    flex-grow: 0;
    flex-shrink: 0;
    width: 2em;
    text-align: center;
    background-image: linear-gradient(to bottom right, rgb(200,200,200), rgb(140,140,140));     
}

.pet-ss-dropdown-arrow-glass {
    padding: 0;
    border: 1px solid transparent;
    justify-content: center;
    flex-grow: 0;
    flex-shrink: 0;
    width: 2em;
    text-align: center;
    background: transparent;     
}

.pet-ss-dropdown-arrow:hover {
    background-image: linear-gradient(to bottom right,rgb(140,140,140), rgb(200,200,200));     
}

.pet-ss-dropdown-dropdown {
    margin-left: -1px;
    margin-right: -1px;
    position: absolute;
    height: 0px;
    background-color: black;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 99 !important;
    overflow: hidden;
}

.pet-ss-dropdown-dropdown-glass {
    margin-left: -1px;
    margin-right: -1px;
    position: absolute;
    height: 0px;
    background-color: transparent;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 99 !important;
    overflow: hidden;
}

.pet-ss-dropdown-dropdown-list {
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    right: 1px;
    background-color: white;
    overflow: auto;
}

.pet-ss-dropdown-dropdown-list-glass {
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    right: 1px;
    background: transparent;
    overflow: auto;
}

.pet-ss-search-input-container {
    position: absolute; 
    left: 1px;
    top: 1px;
    right: 1px;
    height: 25px;
    background-color: white;
    border-bottom: 4px solid #505050;
}

.pet-ss-search-input {
    
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    border: none;
    padding: 3px;
}
 
.pet-ss-dropdown-dropdown-item {
    cursor: pointer;
    border-bottom: 1px dotted #a0a0a0;
    padding-left: 8px;
    line-height: 2em;
}

.pet-ss-dropdown-dropdown-item-glass {
    cursor: pointer;
    border-bottom: 1px solid transparent;
    padding-left: 8px;
    line-height: 2em;
}

.pet-ss-dropdown-dropdown-subtitle {
    font-size: 11px;
    line-height: 1.4em;
    color: #505050;
    padding-left: 20px;
}

.pet-ss-dropdown-dropdown-item-on-display {
    padding-left: 12px;
}

.pet-ss-dropdown-dropdown-item-selected {
    border: 1px solid rgb(80,80,170);
    background-image: linear-gradient(to bottom right,rgb(80,80,170), rgb(220,220,220));     
}


.pet-ss-dropdown-dropdown-item-selected-glass {
    color: yellow;
}

.pet-ss-dropdown-dropdown-item:hover {
    background-image: linear-gradient(to bottom right,rgb(170,170,170), rgb(220,220,220));     
}
/* pet-table*/

pet-td {
    display: block;
    box-sizing: border-box;
    padding: 10px 7px 10px 7px;
    overflow: auto    
}
