* {
    box-sizing: border-box;
}

html {
    font-size: 13px;
    padding: 0;
    margin: 0;
    height: 100%;
}

body {
    padding: 0;
    margin: 0;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 50px 1fr;
    overflow: hidden;
    background: #eff1f5;
    font-family: 'Source Sans Pro', sans-serif;
}

header {
    background: #2b3643;
    color: #eee;
    height: 50px;
    line-height: 50px;
    width: 100%;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: fit-content(250px) 1fr;
}

main {
    display: block;
    overflow: auto;
}

h1 {
    font-size: 20px;
    font-weight: 100;
    padding-left: 20px;
    height: 50px;
    margin: 0;
    text-transform: uppercase;
    background-image: url('/static/icon.png');
    background-repeat: no-repeat;
    background-size: 30px;
    background-position: 10px;
    padding-left: 50px;
}

h1 span {
    color: #db3f41;
    font-weight: 500;
}

header>nav {
    margin: auto 10px auto auto;
}

header>nav>div {
    width: 80px;
    box-sizing: border-box;
    height: 50px;
    line-height: 50px;
    font-weight: 300;
    float: left;
    text-align: center;
    font-size: 16px;
    color: #ccc;
    vertical-align: middle;
    padding: 0;
    letter-spacing: 0.5px;
    border-left: 0.5px solid rgba(255, 255, 255, 0.2);
    border-right: 0.5px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}

header>nav>div.logs {
    position: relative;
    z-index: 20;
    background: #2b3643;
    overflow: hidden;
    transition: max-height 0.2s ease;
    height: auto;
    max-height: 50px;
}

header>nav>div.logs:hover {
    max-height: 500px;
}

header>nav>div.logs div {
    font-size: 10px;
    text-align: left;
    height: 20px;
    line-height: 20px;
    margin: 10px;
}

header>nav>div.active {
    border-bottom: 4px solid #39aa56;
}

header>nav>div:hover {
    color: #fff;
}

header a, header a:hover  {
    color: inherit;
    text-decoration: none;
}

header>nav>div:first-child {
    border-left: 0;
}

header>nav>div:last-child {
    border-right: 0;
}

#cls {
    overflow: scroll;
}

#cls footer {
    font-size: 14px;
    text-align: center;
    color: #666;
}

.main-table {
    width: calc(100% - 40px);
    background: #fff;
    margin: 20px;
    box-shadow: 0 0 20px #aaa;
}


.main-table td.warning {
    background: #333;
    color: #fff;
    text-align: center;
}

.main-table tbody td:first-child {
    padding-left: 20px;
    max-width: 55vw;
}

.main-table thead {
    color: #111;
    font-size: 14px;
}

.main-table thead tr:nth-child(n+3) td {
    font-size: 10px;
}

.main-table thead tr:nth-child(4) td {
    width: 20px;
}

.main-table thead td {
    font-family: 'Source Sans Pro', sans-serif;
    text-transform: uppercase;
    color: #888;
    padding: 2px 5px;
    text-align: center;
    background: #73b672;
    color: #fff;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.main-table tbody td {
    border-bottom: 1px solid #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.main-table tbody td.job {
    text-align: center;
}

.main-table tbody td.job i {
    font-size: 16px;
}

.main-table tbody td.job .status {
    margin-left: 5px;
}

.main-table tbody td.job .success {
    color: #39aa56;
}

.main-table tbody td.job .queued {
    color: #607d8b;
}

.main-table tbody td.job .failure {
    color: #db4545;
}

.main-table tbody td.job .cancelled {
    color: #ffa000;
}

.main-table tbody td.job .timed_out {
    color: #db4545;
}

.main-table tbody td.job .unknown {
    color: #607d8b;
}


/* Jobs page */

.main-table tr.workflow.in_progress {
    color: #2a8229;
}

.main-table tr.workflow.queued {
    color: #ffa000;
}

.main-table tr.workflow.completed {
    color: #999;
}

.main-table tr.workflow.failure {
    color: #db4545;
}


.main-table tbody td.align-left {
    text-align: left
}

.main-table tbody td.header {
    background: #dcedc8;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
}


.main-table tbody tr {
    height: 25px;
    line-height: 25px;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

.main-table tbody tr.nested td:first-child, .main-table tbody tr.nested a {
    color: #999;
}

.main-table tbody tr.offline {
   color: #aaa;
}

.main-table .expand {
    position: absolute;
    left: -5px;
    font-size: 30px;
    line-height: 25px;
    color: #454e5a;
    transition: transform ease 0.2s;
    cursor: pointer;
    user-select: none;
}


.main-table .expand.expanded {
    transform: rotate(90deg);
}

.main-table tbody tr.closed td:not(.job),
.main-table tbody tr.closed td:not(.job) a {
    color: #BBB;
}


.main-table tbody tr:nth-child(2n+1) {
    background: #fafafa;
}


.main-table tbody tr:hover {
    background: #e1ebf1 !important;
}

.main-table tbody tr.selected  {
    background: #dcedc8;
}

.main-table tbody .ps {
    margin-left: 5px;
    color: #43a047;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 400px;
    grid-gap: 20px;
    margin: 20px;
}

.stats-grid  > * {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
