/*
 * Datatables styles for EdSource WordPress integration
 */


#dataTable {
	margin-bottom: 12px;
	text-align: center;
	border-top: 1px solid #d0d0d0;
	border-bottom: 1px solid #d0d0d0;
}

#dataTable tr {
	width: 100%;
}


table.dataTable thead th, 
table.dataTable thead td {
	border-bottom: 1px solid #a9a9a9;
}
table.dataTable tfoot th, 
table.dataTable tfoot td {
	border-top: 1px solid #a9a9a9;	
}

#dataTable td {
	line-height: 16px;
	padding: 12px 10px 18px 10px;
}

#dataTable td,
#comparisons-clipboard td {
    border-right: 1px solid rgba(0,0,0,.08);	
}

#dataTable td:first-of-type {
    border-left: 1px solid rgba(0,0,0,.08);	
}

#comparisons-clipboard td:last-of-type {
	border-right: none;
}

.dt-error {
	background-color: crimson;
	color: white;
	padding: 22px 28px;
}

.table-explainer,
.table-explainer p {
	font-size: 101%;
	line-height: 1.24em;
	letter-spacing: -.015em;
	font-style: italic;
}

.table-explainer {
	width: 100%;
	background: rgba(118,160,50,.15);
	padding: 18px 22px;
	margin-bottom: 22px;
	float: left;
}

.table-explainer p {
	margin: 0px 0px 12px;
}
.table-explainer p:last-of-type {
	margin-bottom: 0px;
}

.dataTables_wrapper .dataTables_paginate {
	padding-top: 8px;
}


#dataTable_wrapper {
	margin-bottom: 42px;
}

.dataTables_length,
.dataTables_filter {
	margin-bottom: 22px;
}

.dataTables_length {
	margin-top: 8px;
}

.dataTables_filter input {
	padding: 8px 12px;
	font-size: 110%;
	box-shadow: inset 0px 1px 3px 2px rgba(0,0,0,.07);
	outline: none;
	border-radius: 1px;
	border: 1px solid #a6a6a6;
}

/* loading styles */

#dataTable {
	min-height: 380px;
}

.dataTables_empty {
	padding-top: 60px !important;
	font-size: 160%;
	width: 100%;
	background-image: url('loader.svg');
	background-position: 50% 40%;
	background-repeat: no-repeat;
}

table.dataTable.row-border tbody th, table.dataTable.row-border tbody td, table.dataTable.display tbody th, table.dataTable.display tbody td {
    border-top: 1px solid rgba(0,0,0,.08);
}


/* Inline datatables */

.inline-data-table {
	margin-bottom: 42px;
    padding-bottom: 14px;
}

.inline-data-table label,
.inline-data-table .dataTables_info,
.inline-data-table .dataTables_paginate {
	font-family: 'proxima-nova-condensed';	
}







/* Project-specific styles */




/* school dashboard styles */

#dataTable.california-school-dashboard td {
	padding: 12px 10px 18px 10px;
}

.score-5,
.score-4,
.score-3,
.score-2,
.score-1 {
	color: transparent;
	position: relative;
}

.score-null {
	font-size: 120%;
}

.dot {
	border-radius: 100%;
	width: 30px;
	height: 30px;
	background-color: black;
	position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;	
}

.dot .info-icon {
    width: 13px;
    height: 13px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -7px;
    margin-left: -6px;
}

.dot .info-icon:hover {
	cursor: pointer;
}

.score-5.no-icon .dot .info-icon,
.score-4.no-icon .dot .info-icon,
.score-3.no-icon .dot .info-icon,
.score-2.no-icon .dot .info-icon,
.score-1.no-icon .dot .info-icon {
	display: none;
}


.score-5 .dot {
	background-color: #1789e5; /* blue */
	background-color: rgba(23,137,229,.63) !important;
}

.score-4 .dot {
	background-color: #69a32b; /* green */
	background-color: rgba(105,163,43,.9) !important;
}

.score-3 .dot {
	background-color: #ebda45; /* yellow */
}

.score-2 .dot {
	background-color: #ff9800; /* orange */
	background-color: rgba(255,152,0,.81) !important;
}

.score-1 .dot {
	background-color: #b81516; /* red */
	background-color: rgba(184,21,22,.89) !important;
}


#dataTable_wrapper th,
#dataTable_wrapper .district,
#dataTable_wrapper .county {
	font-size: 80%;
}

td.n-a {
	background-color: #d2d5ce;
	background-color: #e6e6e6;
	color: rgba(0,0,0,.6);
}

#dataTable tr th:nth-child(1) {
	width: 38% !important;
/*	flex-grow: 2;	
	flex-shrink: 2;	*/
}

#dataTable tr th:nth-child(2), 
#dataTable tr th:nth-child(3),
#dataTable tr th:nth-child(4), 
#dataTable tr th:nth-child(5), 
#dataTable tr th:nth-child(6) {
	width: 12.4% !important;
/*	flex-grow: 1;
	flex-shrink: 1;
*/}



#dataTable tr td:nth-child(2) {
	
}

#dataTable tr td:nth-child(3) {
	
}

#dataTable tr td:nth-child(4) {
	
}

#dataTable tr td:nth-child(5) {
	
}


/* clipper stuff */

#comparisons-clipboard {
	background: rgba(118,160,50,.15);
	padding: 18px 22px;
	margin-bottom: 22px;
	float: left;
}

#dataTable tbody tr {
	transition: height 1s;
}


.clipper {
	display: block;
	font-size: 12px;
	height: 14px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: -14px;
	width: 60%;	
	background-color: #dedede;
	color: black;
    border-radius: 3px;	
}
.clipper:hover {
	cursor: pointer;
}
.clipper:active {
	background-color: #c3c3c3;
}

#comparisons-clipboard {
	width: 100%;
	box-shadow: 3px 3px 5px 1px rgba(0,0,0,.3);
	margin-bottom: 32px;
}

#comparisons-clipboard  h3 {
	display: inline-block;
	max-width: 75%;
}
#comparisons-clipboard  .controls {
	padding-top: 0px;
	margin-top: 0px;
	float: right;
	text-align: right;
	background-color: #dedede;
	padding: 3px 6px 1px;
    border-radius: 3px;	
}

.datatable-compare-wrapper .helptext {

}

#clipboardTable {
    background: white;
    width: 100%;
    text-align: center;	
}
#clipboardTable th {
	font-size: 80%;
	padding: 10px 12px 6px 12px;
}
#clipboardTable .county,
#clipboardTable .district {
	font-size: 80%;	
}
#clipboardTable td {
	line-height: 16px;
	padding: 12px 10px 8px 10px;
	border-top: 1px solid #ddd;	
}
#clipboardTable tr th:first-of-type {
	width: 38% !important;
}

#clipboardTable tr th:nth-child(2), 
#clipboardTable tr th:nth-child(3),
#clipboardTable tr th:nth-child(4), 
#clipboardTable tr th:nth-child(5), 
#clipboardTable tr th:nth-child(6) {
	width: 12.4% !important;
/*	flex-grow: 1;
	flex-shrink: 1;
*/}

#clipboardTable .clipper {
	display: none;
}

.controls {

}
.controls:hover {
	cursor: pointer;
}



/* lead table */

.lead-in-school-water td,
.search-lead-in-school-water td,
.busque-los-niveles-de-plomo-detectados-en-el-agua-de-las-escuelas-de-california td {
	position: relative;
}

.lead-in-school-water .dot,
.search-lead-in-school-water .dot,
.busque-los-niveles-de-plomo-detectados-en-el-agua-de-las-escuelas-de-california .dot {
	border-radius: 100%;
	width: 36px;
	height: 36px;
	background-color: black;
	position: absolute;
    top: 36%;
    left: 49%;
    margin-top: -18px;
    margin-left: -18px;		
    display: flex;
    justify-content: center;
	  flex-direction: column;
	  text-align: center;    
}

.lead-in-school-water td.n-a span,
.search-lead-in-school-water td.n-a span,
.busque-los-niveles-de-plomo-detectados-en-el-agua-de-las-escuelas-de-california td.n-a span {
	font-style: italic;
}

.lead-in-school-water td span.date,
.search-lead-in-school-water td span.date,
.busque-los-niveles-de-plomo-detectados-en-el-agua-de-las-escuelas-de-california td span.date {
	font-style: italic;	
	font-size: 90%;
}
/*.blue-cell {
	background-color: #869be2;
	color: white;
}
.purple-cell {
	background-color: #a251a2;
	color: white;
}
.red-cell {
	background-color: #d85e6b;
	color: white;
}*/

.blue-cell .dot {
	background-color: #869be2;
	color: white;
}
.purple-cell .dot {
	background-color: #a251a2;
	color: white;
}
.red-cell .dot {
	background-color: #d85e6b;
	color: white;
}





