﻿/*****************************************************************
* kpi-control.css : Estilos para los controles KPI
* Creación        : 19/11/2021
*
* Actualizaciones:
* 
*******************************************************************/


/* E N V O L T O R I O   D E   C O N T R O L E S 
 -------------------------------------------------------*/
.alq-widget-control {
    position: relative;
    display: block;
    border: none;
    background-color: transparent;
    width: auto;
    height: auto;
    padding: 4px 4px 4px 4px;
    overflow: hidden !important;
}

.alq-widget-control * {
    border-color: #e9e8e6;
}

.alq-widget-control a, .alq-widget-control button {
    color: inherit;
    text-decoration: none;
}

.alq-widget-control a:hover, .alq-widget-control .selected {
    color: #97c11f !important;
}

.alq-widget-control a[disabled], .alq-widget-control.selected {
    pointer-events: none !important;
    cursor: default !important;
}

/* C O N T R O L   G R A P H I C
-------------------------------------------------------*/
div.alq-graphic-control {
    position: relative;
    border-style: none;
    background-color: #fff;
    width: 100%;
    height: 100%;
    min-height: 50px;
    margin: 0;
    opacity: 1;
}

/* C O N T R O L   S C A L A R 
-------------------------------------------------------*/
div.alq-scalar-control {
    position: relative;
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    overflow: hidden;
}

div.alq-scalar-control span:first-child {
    display: table-cell;
    font-size: 1.8em;
    font-weight: bold;
    color: #4c4c4c;
    background-color: #d2df41;
    text-align: center;
    vertical-align: middle;
    border: none;
    padding: 5px;
}

/* C O N T R O L   T A B L E 
-------------------------------------------------------*/
div.scrollable-table-head, 
table.alq-table-control thead, 
div.scrollable-table-head > table tbody tr, 
table.alq-table-control tbody tr:nth-child(2n) {
    background-color: #e9e8e6;
    color: #373534;
}

table.alq-table-control tbody tr:nth-child(2n) td {
    border-color: #e9e8e6;
}

div.scrollable-table-head {
    border-style: none;
}

div.alq-table-control {
    position: relative;
    border-style: none;
    background-color: #fff;
    color: inherit;
    height: 100%;
    width: 100%;
    margin: 0;
    opacity: 1;
    overflow: auto;
}

table.alq-table-control {
    position: relative;
    text-align: center;
    color: inherit;
    background-color: #fff;
    border: none;
    border-collapse: collapse;
    height: auto;
    width: auto;
    margin: 0;
    table-layout: fixed;
    white-space: nowrap;
}

table.alq-table-control thead {
    color: #fff;
    background-color: #797675;
}

table.alq-table-control tfoot {
    color: #fff;
    background-color: #797675;
}

table.alq-table-control th {
    font-weight: normal;
    background-color: transparent;
    vertical-align: middle;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

table.alq-table-control td {
    font-weight: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    vertical-align: middle;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

table.alq-table-control thead th:not(:last-child) {
    border-right-width: 1px;
    border-right-style: solid;
}

table.alq-table-control tfoot td:not(:last-child) {
    border-right: 1px solid #fff;
}

table.alq-table-control td:not(:last-child) {
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: #fff;
}
table.alq-table-control th {
    padding: 5px;
    overflow: hidden;
}
table.alq-table-control td{
    padding: 3px 5px;
    overflow: hidden;
}

table.alq-table-control tbody tr:hover {
    /*
    background-color: #00cfde;
    */
}

table.alq-table-control tbody td:hover {
    /*
    background-color: #049aab;
    color: #fff !important;
    */
}

/* Tabla Scrollable con encabezado fijo */
div.alq-table-control[data-scrollable="True"] {
    overflow: hidden !important;
}

div.scrollable-table-head, div.scrollable-table-foot {
    position: relative;
    border-style: solid;
    background-color: #797675;
    border: none;
    margin: 0;
    overflow: hidden;
}

div.scrollable-table-body {
    position: relative;
    background-color: #fff;
    margin: 0;
    overflow: auto;
}

div.scrollable-table-head > table, div.scrollable-table-body > table, div.scrollable-table-foot > table {
    table-layout: fixed !important;
    background-color: transparent;
    border: none !important;
    margin: 0 !important;
    width: auto;
}

div.scrollable-table-head > table thead tr {
    height: auto !important;
}

div.scrollable-table-head > table thead tr th {
    position: relative;
}

div.scrollable-table-body > table {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

div.scrollable-table-head > table thead tr:hover {
    background-color: inherit;
    color: inherit;
}

.table-col-resizing {
    cursor: col-resize;
    -ms-user-select: none;
    user-select: none;
}

.table-col-resizing-grip {
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    margin-right: 0;
    background-color: transparent;
}

.table-col-fill {
    cursor: default;
    -ms-user-select: none;
    user-select: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* M I S C E L A N E A S 
-------------------------------------------------------*/
.alq-widget .left {
    text-align: left;
}

.alq-widget .right {
    text-align: right;
}

.alq-widget .center {
    text-align: center;
}

.alq-widget .clear:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}
