
/************************** gridlist ***************************/

.projectContainer{
    margin-bottom: 50px;
}

.gridListContainer{
	border-radius: 9px 9px 0 0;
	border:1px solid #c2c2bc;
	overflow:hidden;
}

.gridlist{
	border-collapse:collapse;
	background:#fff;
	width:100%;
}

.gridlist td, .gridlist th{
	font-family:Verdana, Arial, Helvetica, sans-serif;
	color:#666;
	font-size:12px;
	padding:8px 5px;
	/*padding:2px 2px 2px 4px;*/
	border-bottom:1px solid #E0DFE3;
	text-align:left;
	box-sizing:border-box;
}

.gridlist tr.gridheads td, .gridlist th{
	background-color:#DEDEDE;
	border-bottom: 1px solid #999;
	font-size:13px;
	font-weight:normal;
	cursor:default;
	box-sizing:border-box;
}

.gridlist th, .gridlist td, .gridlist .cellCollapse{
	vertical-align:middle;
	white-space:normal;
	padding-right:10px;
}

.gridlist tr.gridheads a, .gridlist th a{
	text-decoration:none;
	color:#000000;
}

.gridlist .id, .gridlist tr th:first-child, .gridlist tr td:first-child{
	border-bottom: 1px solid #999;
	background-color:#DEDEDE;
	padding:0 5px;
	width:1%;
	white-space:nowrap;
	text-align:center;
	min-width:20px;
}

.gridlist tr:nth-child(2n+3) {
	background-color:#F5F5F5;
}

.sortable li:nth-child(2n+2) .gridlist tr td:nth-child(n+2){
	background-color:#F5F5F5;
}

.gridlist tr:hover, .gridlist tr:nth-child(2n+3):hover, .gridListContainer .sortable li:nth-child(2n+2):hover .gridlist tr td:nth-child(n+2){
	background-color:#CDE8CD;
}

.isDraft table.gridlist td{
	background-color:#FCC !important;
}

.gridlist tr .editLink
,.gridlist tr .nonLinkSpacer{
	display:inline-block;
	width:calc(100% - 65px);
	vertical-align:top;
	color:#666;
	font-weight:normal;
	font-size:inherit;
}

.gridlist tr.inline .editLink{
	width: inherit;
}

.gridlist tr .controlWrap{
	display:inline-block;
	height:25px;
	vertical-align:top;
}

.gridlist tr .controlWrap a{
	display:inline-block;
	vertical-align:middle;
	margin-left:10px;
	font-size:20px;
	color:#666;
}

.gridlist tr .controlWrap a{
	display:none;
}

.gridlist tr:hover .editLink{
	color:#090;
	text-decoration:underline;
}

.gridlist tr:hover .controlWrap a{
	display:inline-block;
}

.gridlist .cellExpanded{
	width:auto;
	white-space:normal;
	box-sizing:border-box;
}

.gridListContainer .sortable{
	list-style:none;
	margin:0;
	padding:0;
}

.gridListContainer .notSortable{
	list-style:none;
	margin:0;
	padding:0;
}

.gridListContainer .sortable .sortHandle{
cursor:move;
width:20px;
float:left;
height:10px;
margin-right:5px;
}

.isDraft table.gridlist td
,table.gridlist tr.isDraft td{
	background-color:#FCC !important;
}

i.icon{
	font-size:20px;
}

/********  tan  ************/

.gridlist.tan tr.gridheads td
,.gridlist.tan th
,.gridlist.tan .id
,.gridlist.tan tr td:first-child
,.gridlist.tan tr th:first-child{
	background-color:#E4E4E0; /* base #D8D8D1 */
	-moz-border-bottom-colors:#C2C2BC #B7BFD5 #C7CEDE;
	 border-color:#c2c2bc #c2c2bc #c2c2bc #ffffff;
	 border-style:solid;
	 border-width:1px;
}

.gridlist.tan .id
,.gridlist.tan tr td:first-child{
	border-top-width:0;
}

.gridlist.tan tr:nth-child(2n+3) td:nth-child(n+2)
,.sort.tan li:nth-child(2n+2) .gridlist tr td:nth-child(n+2){
	background-color:#F5F5F5;
}

.gridlist.tan tr:hover
,.gridlist.tan tr:nth-child(2n+3):hover td:nth-child(n+2)
, .gridListContainer .sortable li:nth-child(2n+2):hover .gridlist.tan tr td:nth-child(n+2){
	background-color:#CDE8CD;
}

.isDraft .tan td
,.tan .isDraft td{
	background-color:#ddd !important;
	color:#999;
}

table.gridlist.tan + .pagination{
	background-color:#E4E4E0;
	padding:10px;
	text-align:center;
}

table.gridlist.tan + .pagination > span{
	display:none;
}

table.gridlist.tan + .pagination > a{
	border:1px solid #CDCDCA;
	background-color:#EAEAE6;
	padding:5px 8px;
	color:#434346;
}

table.gridlist.tan + .pagination a.pageSelected{
	background-color:#F9F9F5;
	color:#434346;
}

.gridListContainer > table.tan{
	border-radius: 9px 9px 0 0;
}

h1.inactive + .gridlist{
	display:none;
}

h1.inactive .show-hide .fa-chevron-down:before{
	content: "\f077";
}

section.inactive .gridlist{
	display:none;
}

section.inactive h1 .show-hide .fa-chevron-down:before{
	content: "\f077";
}


.fa-acg{
	font-size:1.5em !important;
	color: #666;
	margin-right:5px;
	cursor:pointer;
}

/********  table as div  ************/

.header-row, .content-row{
    display:grid;
    grid-template-columns: 30px 8% 20% 10% 15% 20% auto;
    grid-template-areas: "id sport date time distance type import ";
    border-bottom:1px solid #E0DFE3;
}

.header-row div, .content-row div{
    font-family:Verdana, Arial, Helvetica, sans-serif;
    color:#666;
    font-size:12px;
    padding:8px 5px;
    text-align:left;
    box-sizing:border-box;
    display:grid;
    align-items:center;
    height:auto;
}

.header-row div{
    background-color: #e4e4e0;
    -moz-border-bottom-colors:#C2C2BC #B7BFD5 #C7CEDE;
    border-color:#c2c2bc #c2c2bc #c2c2bc #ffffff;
    border-style:solid;
    border-width:1px;
}

.content-row{
    border-bottom: 1px solid #e4e4e0;
}

.gridListDiv .id, .gridListDiv .header-row div:first-child, .gridListDiv .content-row div:first-child{
    border-bottom: 1px solid #999;
    background-color: #e4e4e0;
    padding:0 5px;
    width:1%;
    white-space:nowrap;
    text-align:center;
    min-width:30px;
    -moz-border-bottom-colors:#C2C2BC #B7BFD5 #C7CEDE;
    border-color:#c2c2bc #c2c2bc #c2c2bc #ffffff;
    border-style:solid;
    border-width:1px;
}

.content-row.imported{
    border-bottom: 1px solid #ddc8a1;
}

.gridListDiv .counter{
    grid-area:id;
}

.gridListDiv .type{
    grid-area:sport;
}

.gridListDiv .date{
    grid-area:date;
}

.gridListDiv .time{
    grid-area:time;
}

.gridListDiv .distance{
    grid-area:distance;
}

.gridListDiv .workout-type{
    grid-area:type
}

.gridListDiv .button{
    grid-area:import;
}

@media screen and (max-width:800px){

    .header-row{
        grid-template-columns: 30px auto;
        grid-template-areas:
            "id sport"
        ;
    }

    .header-row div:nth-child(2):after{
        position:absolute;
        content:"Workout";
        font-size: 12px;
        text-indent:0;
    }

    .header-row div:nth-child(n+3){
        display:none;
    }

    .header-row div{
        text-indent:-9999px;
        overflow:hidden;
    }

    .content-row{
        grid-template-columns: 30px 35% auto;
        grid-template-areas:
            "id sport date"
            "id distance time"
            "id import import"
        ;
    }

    .content-row .workout-type{
        display:none;
    }
}