/* Default Table */
.body--table{
	width: 100%;
	font-size: .8rem;
	margin-top: 1.8rem;
}

.body--table table{
    width: calc(100% - .6rem);
    table-layout: fixed;
    line-height: 1.2;
	margin: 0 auto;
}
.body--table table:last-child{margin-bottom: 0;}

.body--table table th{
	font-size: .6rem;
	font-weight: 500;
	letter-spacing: .02rem;
	color: #777;
	text-align: left;
	padding: 0rem 1rem .3rem 1rem;
	text-transform: uppercase;
}

.body--table table th:nth-of-type(1){
	padding-left: 1.7rem;
}

.body--table table tbody{margin-bottom: 2rem;}
.body--table table:last-child tbody{margin-bottom: 0;}

.body--table table tbody tr:hover{
    background-color: var(--color-lightblue-lighter);
    transition: background-color .1s ease-in-out;
    cursor: pointer;
}

.body--table table td{
    padding: .8rem 1rem;
    text-align: left;
    border: .1rem solid var(--color-lightblue-light);
}

.body--table table td:first-child{
	padding-left: 2rem;
	border-left: none;
}

.body--table table td:last-child{
	border-right: none;
}

.body--table table:last-child tr:last-child td{
	border-bottom: none;
}

.body--table table tr.selected td{
	background-color: var(--color-lightblue-light);
	border-color: var(--color-lightblue);
}

/* Pointer events */
.body--table table td span{
	pointer-events: none;
}

.body--table table td a{
	pointer-events: all;
}

/* Variante icon-lg - Con iconos grandes a la izquierda, fuera de tabla */
.icon-lg.body--table table th:nth-of-type(1){padding-left: 2.5rem;}
.icon-lg.body--table table td:nth-of-type(1){padding-left: 2.5rem;}
.icon-lg.body--table table tr:first-child td{border-top: none;}
.icon-lg.body--table table tr:last-child td{border-bottom: none;}

/* Variante checkbox-list - Estilo tipo listado con checkbox por fila de tabla */
.body--table.checkbox-list table td:nth-of-type(1){padding-left: .3rem;}
.body--table.checkbox-list table td:nth-of-type(1) input[type="checkbox"]{margin-right: .5rem;}

.body--table.checkbox-list table td:nth-of-type(1):nth-child(2){
	display: inline-flex;
	vertical-align: middle;
	align-items: center;
	width: calc(100% - 2rem);
}


/* Table extra elements */
/* Placeholder */
.body--table .text-placeholder{
	opacity: .4;
	font-style: italic;
}

/* Small td Checkbox input */
.body--table input[type="checkbox"]{
	display: inline-grid;
	vertical-align: middle;
	margin-right: .3rem;
	border-color: var(--color-lightblue-light);
}
.body--table input[type="checkbox"]:disabled{border-color: #ddd;}

/* Small td Checkbox input */
.body--table input[type="radio"]{
	display: inline-grid;
	vertical-align: middle;
	margin-right: .3rem;
}
.body--table input[type="radio"]:disabled{border-color: #ddd;}

/* Long text input */
.body--table input[type="text"]{
	width: 100%;
	padding: .3rem .4rem .2rem;
	background-color: var(--color-lightblue-lighter);
	border-color: var(--color-lightblue-lighter);
	transition: background .1s ease-in-out;
}

.body--table tr:hover input[type="text"]{
	background-color: var(--color-lightblue-light);
	border-color: var(--color-lightblue-light);
}

.body--table input[type="text"]:disabled{
	color: #000;
	background-color: transparent;
	border-color: transparent;
	cursor: text;
}

.body--table tr:hover input[type="text"]:disabled{
	background-color: transparent;
	border-color: transparent;
}

/* Small td Alert */
.body--table table .warning-sm{
	color: var(--color-red);
}

.body--table table .warning-sm::before{
	content: '';
	display: inline-block;
	vertical-align: text-bottom;
	width: 1rem;
	height: .9rem;
	background: url('../../images/icon--triangle-exclamation--red.svg') no-repeat center;
	background-size: 1.2rem;
	margin-right: .3rem;
}

/* Big td Alert */
.body--table table td.warning-lg{
	background-color: #fff2ce;
}

.body--table table td.warning-lg::before{
	content: '';
	display: inline-block;
	vertical-align: text-bottom;
	width: 1rem;
	height: .9rem;
	background: url('../../images/icon--triangle-exclamation--red.svg') no-repeat center;
	background-size: 1.2rem;
	margin-right: .3rem;
	opacity: .7;
}

.body--table table tbody tr:hover td.warning-lg{
	background-color: #ffeebf;
}

.body--table table tbody tr.selected td.warning-lg{
	background-color: #fde6b1;
}

/* General question group icon */
.question--specific::before{
	content: '';
	display: inline-block;
	vertical-align: text-bottom;
	width: 1rem;
	height: 1rem;
	background: url('../../images/icon--circle-dots--black.svg') no-repeat center;
	background-size: 1.5rem;
	margin-right: .3rem;
	opacity: .4;
}

/* Td status by color */
.body--table table .current-status--content{
	display: flex;
	align-items: center;
}

.body--table table .current-status--color{
	display: block;
	width: .6rem;
	min-width: .6rem;
	height: .6rem;
	min-height: .6rem;
	border-radius: 50%;
	margin-right: .4rem;
	border: .1rem solid var(--color-lightblue);
}
.body--table table .not-scheduled .current-status--color{border-color: var(--color-lightblue);}
.body--table table .scheduled .current-status--color{background-color: var(--color-orange-light); border-color: var(--color-orange-light);}
.body--table table .active .current-status--color{background-color: var(--color-green-light); border-color: var(--color-green-light);}
.body--table table .closed .current-status--color{background-color: #888; border-color: #888;}

.body--table table .current-status--text{display: block;}

/* Td current answers info */
.body--table table .current-answers--content{
	display: flex;
	flex-direction: column;
}

.body--table table .current-answers--online{
	display: block;
}

.body--table table .current-answers--bar{
	display: block;
	width: 90%;
	height: .3rem;
	margin-top: .2rem;
	background-color: #eee;
	transition: background-color .08s ease-in-out;
}

.body--table table tbody tr:not(.selected):hover .current-answers--bar{
	background-color: #ddd;
}

.body--table table .progress--fill{
	height: .3rem;
	width: 50%;
	background-color: var(--color-lightblue-darkest);
}

.body--table table .current-answers--manual{
	display: block;
	margin-top: .3rem;
	color: var(--color-lightblue-darkest);
	font-size: .7rem;
}

/* Td mini select */
.body--table table select{
	min-width: 3rem;
	max-width: 100%;
	padding-left: .2rem;
	padding-right: 1.1rem;
}

.body--table table .selected select{
	border-color: #fff;
}

.body--table table select:disabled{
	color: #777;
	border-color: #ccc;
	background: url('data:image/svg+xml, <svg fill="%23bbb" viewBox="0 0 100 50" xmlns="http://www.w3.org/2000/svg"><path d="M 0 0 L 50 50 L 100 0 z"/></svg>') no-repeat calc(100% - .2rem) center;
	background-size: .6rem;
	cursor: text;
}

/* Button in-line with the cell text */
.button-inline{
	display: inline-flex;
	vertical-align: middle;
}

.button-inline.info{
	width: 1rem;
	height: 1rem;
	background: url('../../images/icon--circle-i--v2--black.svg') no-repeat center;
	background-size: 1.3rem;
	margin-left: .3rem;
	opacity: .4;
	transition: opacity .1s ease-in-out;
}
.button-inline.info:hover{opacity: 1;}


/* Simple list type table */
.body--table.simple-list table th{
    padding: .4rem 1rem .4rem .4rem;
    border-bottom: .05rem solid var(--color-lightblue-darkest);
}

.body--table.simple-list table td{
    padding: .4rem .8rem .4rem .4rem;
    height: 3rem;
}

.body--table.simple-list table td:nth-of-type(1){
	padding-left: .4rem;
}


/* Default Table tamano pequeno 'SM' */
.body--table-sm table{
    width: 100%;
    font-size: .8rem;
    table-layout: fixed;
    line-height: 1.1;
    margin-top: .5rem;
}

.body--table-sm table th{
    padding: .2rem 1.5rem .2rem .2rem;
    text-align: left;
    border-bottom: .05rem solid var(--color-lightblue);
	color: var(--color-lightblue-darkest);
}

.body--table-sm table td{
    padding: .8rem 1.5rem .8rem .2rem;
    text-align: left;
    border-bottom: .05rem solid var(--color-lightblue-light);
	vertical-align: top;
}