.navbar-nav {
    margin: 0;
}
.navbar-brand {
    height: auto;
}
.navbar-brand-container {
    display: flex;
}
.navbar-brand-container .caret {
    margin: 0 2px;
}
.navbar-brand-container > strong {
    display: flex;
}
/* Dynamic tables */
.table-striped.text-center {
    width: max-content;
}
.table-striped.text-center > tbody > tr {
    position: relative;
}
.table-striped.text-center > tbody > tr:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;    
    width: inherit; 
    height: 100%;
    background-color: transparent;
    z-index: -1;    
}
body.client-dashboard .table-striped.text-center > tbody > tr:after {
    border-top: 1px solid #dddddd;
}
.table-striped.text-center > tbody > tr:nth-child(even) td {
    border-top: none;
}
body:not(.topwind-dashboard) .table-striped.text-center > tbody > tr:nth-child(odd):after {
    background-color: #f9f9f9;    
}
.topwind-dashboard .table-striped.text-center > tbody > tr:nth-child(odd):after {
    background-color: #3d3d3d;
    border-top: none;
}
/* End dynamic tables */
.spinning {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Workpermit */

.downtime-container .form-group {
    margin-bottom: 0;
}
.img-loader {
    display: block;
    margin: 0 auto;
}
.form-control-static.asset {
    min-width: 80px;
}
.table th[data-column-name="work"], .table td[data-column-name="work"] {
    max-width: 300px;
}
.tab-content #process-downtime-notification, .tab-content #workpermit-button, .tab-content #events-button {
    display: none;
}
.orange-hint {
    display: flex;
    padding: 10px;
    background: #ff6600;
    border-radius: 4px;
    margin: 0;
    color: #fff;
    font-weight: 600;;
}
.permit-wrapper {
    display: none;
    background: #E7FFC4;    
    padding: 30px 40px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.event-wrapper {
    display: none;
    background: #DBF2FF;
    padding: 30px 40px;
    border-radius: 10px;
}
.downtime-container h3 {
    padding: 0 15px;
    margin-top: 0;
    font-size: 16px;
}
.downtime-container hr {
    width: calc(100% - 30px);
    margin: 20px 15px;
    float: left;
    border-top: 1px solid lightgrey;
}
.event-container {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}
.event-row:last-of-type hr {
    display: none;
}
.event-row {
    display: block;
    float: left;
    /* padding: 0; */
    padding: 20px 5px;
}
.event-row:nth-child(odd) {
    border-left: 1px solid lightgrey;
}
.event-row {
    border-top: 1px solid lightgrey;
}
.event-row:nth-child(1),
.event-row:nth-child(2),
.event-row:nth-child(3) {
    border-top: none;
    padding-top: 0;
}
/* End workpermit */
#pgpage-am_event2 .details {
    visibility: hidden;
}
.downtime-action-buttons {
    position: relative;
}
.downtime-action-buttons img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.table tbody tr td[data-column-name="message"] {
    text-align: left;
}
.table thead tr th[data-field-name="event_start"], .table thead tr th[data-field-name="event_end"], .table tbody tr td[data-column-name="event_start"], .table tbody tr td[data-column-name="event_end"],
.table thead tr th[data-field-name="downtime_start_datetime"], .table thead tr th[data-field-name="downtime_end_datetime"], .table tbody tr td[data-column-name="downtime_start_datetime"], .table tbody tr td[data-column-name="downtime_end_datetime"] {
    padding: 3px 10px;
}
.table thead tr th[data-field-name="event_start"].filterable, .table thead tr th[data-field-name="event_end"].filterable,
.table thead tr th[data-field-name="downtime_start_datetime"].filterable, .table thead tr th[data-field-name="downtime_end_datetime"].filterable {
    padding-right: 32px;
}

.title-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}
.title-container h1 {
    margin-bottom: 10px;
}

#status-cat-chart.overlay {
    position: relative;    
}
#status-cat-chart.overlay:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
#status-cat-chart.hide-overlay:before {
    display: none;
}
#status-cat-chart .loading-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 999;
    padding: 10px 20px;
    border-radius: 4px;
}
.date-button {
    transition: ease-in-out 0.1s;
}
.date-button.active, .date-button:active, .date-button:focus, .date-button:hover {
    background: #2b98ff !important;
    border-color: #2b98ff;
    color: #fff !important;
    outline: none !important;
    transition: ease-in-out 0.1s;
}
.greenbyte-button {
    background: #008000;
    border-color: #008000;
    color: #fff !important;
    transition: ease-in-out 0.1s;
}
.greenbyte-button:hover, .greenbyte-button:active, .greenbyte-button:focus {
    background: #007300;
    border-color: #007300;
    color: #fff;
    transition: ease-in-out 0.1s;
}
.status-cat-container .form-actions {
    background: none;
    border: none;
}
.status-cat-container .form-actions {
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0;
}
#status-cat-chart {
    position: relative;
}
.status-cat-alert {
    position: absolute;
    left: 50%;
    top: 56%;
    transform: translateX(-50%);
}
.status-cat-header {
    margin-bottom: 0;
    padding-bottom: 10px;
}

/* Custom login screens */
.pgui-login:not(.setup-2fa), 
.pgui-Recovering_password {
    transform: translateY(50%);
}
#pgpage-login .navbar, 
#pgpage-Recovering_password .navbar,
#pgpage-Reset_password .navbar,
#pgpage-Recovering_authentication_code .navbar,
#pgpage-Reset_password .navbar {
    background: #004279;
}
#pgpage-login .navbar span,
#pgpage-login .navbar a,
#pgpage-Recovering_password .navbar span,
#pgpage-Recovering_password .navbar a,
#pgpage-Recovering_authentication_code .navbar span,
#pgpage-Recovering_authentication_code .navbar a{
    color: #fff;
}
#pgpage-login, 
#pgpage-Recovering_password,
#pgpage-Reset_password,
#pgpage-Recovering_authentication_code {
    position: relative;
    height: 100vh;    
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#pgpage-login.hub, #pgpage-Recovering_password.hub, #pgpage-Reset_password.hub, #pgpage-Recovering_authentication_code.hub {
    background-image: url(../img/login-backgrounds/hub.jpg);
}
#pgpage-login.enius, #pgpage-Recovering_password.enius, #pgpage-Reset_password.enius, #pgpage-Recovering_authentication_code.enius {
    background-image: url(../img/login-backgrounds/enius.jpg);
}
#pgpage-login.agro-battery, #pgpage-Recovering_password.agro-battery, #pgpage-Reset_password.agro-battery, #pgpage-Recovering_authentication_code.agro-battery {
    background-image: url(../img/login-backgrounds/agro.jpg);
}
    
#pgpage-login.enius:before, #pgpage-login.agro:before,
#pgpage-Recovering_password.enius:before, #pgpage-Recovering_password.agro:before,
#pgpage-Reset_password.enius:before, #pgpage-Reset_password.agro:before,
#pgpage-Recovering_authentication_code.enius:before, #pgpage-Recovering_authentication_code.agro:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0,0,0,.1) 0%,
        rgba(0,0,0,.1) 75%,
        rgba(0,0,0,.8) 100%
    );
}
#pgpage-login .form-group, #pgpage-login p,
#pgpage-Recovering_password .form-group, #pgpage-Recovering_password p,
#pgpage-Reset_password .form-group, #pgpage-Reset_password p,
#pgpage-Recovering_authentication_code .form-group, #pgpage-Recovering_authentication_code p {
    color: #333333;   
}
#pgpage-login label,
#pgpage-Recovering_password label,
#pgpage-Reset_password label,
#pgpage-Recovering_authentication_code label {
    font-weight: bold !important;
}
