.form-group.center {
    width: fit-content;
    margin: 0 auto 20px;
}
.form-group.big .form-control{
    display: inline-block;
    width: auto;
}
.form-group.big label {
    display: block;
    font-weight: 600;
    margin: 17px 0 0
}
.authCodeForm input::-webkit-outer-spin-button,
.authCodeForm input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
.authCodeForm input[type=number] {
    -moz-appearance: textfield;
}
.alert-info a {
    text-decoration: underline;
}
.alert-info a:hover {
    text-decoration: unset; 
}
.carousel {
    padding-bottom: 40px;
}
.follow-up-cont {
    width: 100%;
    padding: 2px 10px 2px 20px;    
}
.btn-warning {
    background-color: red;
    border-color: red;
    border-radius: 0;
}
#logbookHistoryParent.logbookExpanded .logbookHistoryScroll {
    transition: max-height 0.2s ease-in-out;
}
#logbookHistoryParent.logbookExpanded .logbookHistoryScroll {
    max-height: 80vh;
}
.loading-popup h4, .loading-client-popup h4 {
    text-align: center;
}
.loading-popup .bootbox-body, .loading-client-popup .bootbox-body {
    text-align: center;
}
.loading-popup img, .loading-client-popup img {
    display: block;
    margin: 0 auto 10px;
}
.loading-client-popup button {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
.loading-client-popup.active button {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}
.button-container {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    gap: 8px;
    align-items: end;
}
.button-container .btn {
    width: fit-content;
}
.tooltip-hover {
    opacity: 0 !important;
    position: absolute !important;
    z-index: -1;
}
.tooltip-hover-button:hover + .tooltip-hover {
    z-index: 1;
    opacity: 1 !important;
}
.tooltip-hover-button +.tooltip.bottom .tooltip-arrow {
    margin-top: 0;
    margin-left: -10px;
}
.tooltip-hover.bottom-right {
    right: 20px;
    bottom: -30px;
}
.topwind-dashboard .table > tbody > tr[data-diff="false"] > th, .topwind-dashboard .table > tbody > tr[data-diff="false"] > td {
    background: transparent;
}
.topwind-dashboard .table > tbody > tr[data-diff="true"] > th, .topwind-dashboard  .table > tbody > tr[data-diff="true"] > td {
    background: #777777;
}
.client-dashboard .table > tbody > tr[data-diff="false"] > th, .client-dashboard .table > tbody > tr[data-diff="false"] > td {
    background: transparent;
}
.client-dashboard .table > tbody > tr[data-diff="true"] > th, .client-dashboard  .table > tbody > tr[data-diff="true"] > td {
    background: lightyellow;
}
.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;
}
.navbar-fixed-top {
    z-index: 100;
}
/* 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 */
.table-full-width {
    width: 100% !important;
}
.embed-responsive-4by3 {
    padding-bottom: 50%;
}
.has-error .trumbowyg-box {
    border-color: #a94442;
}

/* Custom login screens */
.pgui-login:not(.setup-2fa), 
.pgui-Recovering_password {
    transform: translateY(50%);
}
#pgpage-login .navbar {
    background: #004279;
}
#pgpage-login .navbar span {
    color: #fff;
}
#pgpage-login {
    position: relative;
    height: 100vh;    
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#pgpage-login.hub {
    background-image: url(../img/login-backgrounds/hub.jpg);
}
#pgpage-login.enius {
    background-image: url(../img/login-backgrounds/enius.jpg);
}
#pgpage-login.agro-battery {
    background-image: url(../img/login-backgrounds/agro.jpg);
}
    
#pgpage-login.enius:before, #pgpage-login.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%
    );
}

:root {
    --main-background:#f6fafb;
    --main-blue: #27569e;
    --dark-background-text: #0b2b3a;
    --main-yellow: #f4cf58;  
    --text-color:white;
}

/* Base */
.thank_you_page html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
    line-height: 1.5;
    background: var(--main-background);
    color: var(--dark-background-text);
}

/* Container for alignment */
.thank_you_page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero */
.hero {
    background: #27569e;
    border-radius: 12px;
    padding: 28px;
    max-width: 1100px;
    margin: 24px auto;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    color:var(--text-color);
}
.hero-card,
.card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-top: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

/* Typography */
.thank_you_page h1 {
    margin: .6rem 0 0;
    font-size: clamp(1.6rem,2.8vw,2.6rem);
}

.thank_you_page .lead {
    color: var(--muted);
    max-width: 60ch;
    margin-top: .6rem;
    color: var(--text-color);
}

.thank_you_page .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--main-yellow);
    color: var(--main-blue);
    font-weight: 600;
}

.thank_you_page .badge span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--main-blue);
}

/* Grid */
.thank_you_page .grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 18px auto;
    padding: 0 10px;
}

@media (max-width: 900px) {
    .thank_you_page .grid {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.thank_you_page .button-container {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.thank_you_page a.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--main-yellow);
    color: var(--main-blue);
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
.thank_you_page footer {
    max-width: 1100px;
    margin: 30px auto;
    color: var(--muted);
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thank_you_page .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
