.wrapper {
    background: var(--bg-body);
    min-width: var(--min-page-width, 1700px); /*site is not mobile for now, there's some ratios we need to maintain so the horizontal scroll will keep the site usable in super-low resolution viewports*/
}

/*panel and columns*/
.sidebar-wrapper {
    width: 20%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-container {
    width: 80%;
}

/* positioning the header. wrapper div added in layout.html
this can be written a lot shorter if we move some extra HTML */

.header-wrapper {
    width: 100%;
    border-top: 8px solid;
    border-image: url(/static/css/redwood-layer/img/strip.svg) 30 round;
    /*position: sticky;*/
    /*top: 0;*/
    /*z-index: 1000;*/
}

.header-wrapper .farapp-nav-bar {
    /* reverting some styles the nav bar sets*/
    margin-left: 0;
    margin-bottom: 0;
    height: 88px;
    position: static;
}

.header-wrapper .container-fluid {
    padding: 0;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-grey-shadow);
}

.header-wrapper .navbar-collapse {
    padding-left: var(--main-content-sides);
    padding-right: var(--main-content-sides);
}

/* content media panels: here we are overriding a lot since this code repeats in different templates and JSs*/
/* this might be something to work from inside the templates too */
.main-panel {
    width: 100%;
    margin: 0;
    position: static;
    float: left;
    padding: var(--space-6, 24px) var(--main-content-sides);
}

.panel-body {
    padding: 0;
}

/* some of this is generic I think, maybe I'll move it to a dashboard styling file */
.panel {
    box-shadow: none;
    background-color: transparent;
    border-bottom: none;
}

.panel.panel-default {
    background: none;
    border: none;
}

.panel .media.panel-heading {
    background-color: transparent;
    padding: 0 0 28px;
    border-bottom: none;
}

.panel .media.panel-heading .panel-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.panel-footer {
    background-color: transparent;
    padding: 0 0 40px 0;
    border: none;
}


.page-hierarchy { /* removed using CSS until we make sure this needs to be removed from all the layouts*/
    display: none;
}

.dashboard-left {
    width: 55%;
    float: left;
    margin-right: 5%;
}

.dashboard-right {
    width: 40%;
    float: right;
}

@media (max-width: 1024px) {
    .dashboard-left,
    .dashboard-right {
        float: none;
        width: 100%;
        margin-right: 0;
    }
}

/* Notifications */
.notification-box, .alert {
    padding: var(--space-6, 24px);
    margin-bottom: var(--space-6, 24px);
    position: relative;
    border-radius: var(--radius-1, 6px);
    border: 1px solid var(--border-grey-shadow);
}

.notification-box > button, .alert > button {
    position: absolute;
    top: 3px;
    right: 5px;
    background: none;
    border: 0;
}

.notification-box > button:focus-visible,
.alert > button:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/* Connectors list*/
.connector-row {
    display: flex;
    border-bottom: 1px solid var(--border-grey-shadow);
    flex-wrap: wrap;
    padding: 24px 12px;
}

.connectors-column {
    max-width: 23%;
    min-width: 15%;
    flex-grow: 1;
}

.connectors-column .connector-info,
.connectors-column .connector-status-div {
    display: block;
    height: 45px;
    line-height: 45px;
    border-bottom: 1px solid var(--border-grey-shadow);
}

.connectors-column .connector-info:last-child ,
.connectors-column .connector-status-div:last-child {
    border-bottom: none;
}

/* we need to change the logo approach. right now, we have a sprite image witch is not the ideal for this kind of logo usages. We need separated images. */
.connectors-column.logo {
    max-width: 30%; /* yeah, flexbox things. I need to define both min and max equally for avoid issues */
    min-width: 30%;
    margin-right: 15px;
    align-content: center;
}

.connectors-column .btn-default {
    float: right;
    margin-top: 7px;
}

/* Sync Cards/Overall Status Page */
/* Sync CSS */
.form-heading-actions .sync-switch,
.form-heading-actions .account-active-text {
    padding-top: 10px;
}

.sync-box-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6, 24px);
    margin-bottom: var(--space-6, 24px);
}

@media (max-width: 1024px) {
    .sync-box-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .sync-box-row {
        grid-template-columns: 1fr;
    }
}

.sync-box {
    background: #FFF;
    border: 1px solid #ECE7E7;
    overflow: hidden;
    padding-top: 24px;
    border-radius: var(--radius-2, 8px);
}

.sync-status {
    padding: 0 var(--space-6, 24px) var(--space-4, 16px);
}

.sync-title {
    color: var(--font-dark);
    font-family: "Oracle Sans", sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 0 var(--space-6, 24px) var(--space-4, 16px);
}

.sync-text {
    color: black;
    font-family: "Oracle Sans", sans-serif;
    padding: 0 var(--space-6, 24px) var(--space-4, 16px);
    height: 50px;
}

.sync-direction-chevron {
    padding-right: 1em;
}

.no-sync-div {
    background-color: white;
    padding: 2em;
}

.account-active-text {
    color: black;
    font-family: "Oracle Sans", sans-serif;
    float: right;
    padding-right: 1em;
}

.account-active-switch {
    height: 1.8rem;
}

.configure-sync-link {
    display: inline-block;
    color: #00688C;
    /*font-weight: lighter;*/
    /*font-family: "Oracle Sans", sans-serif;*/
    /*font-size: 14px;*/
    line-height: 18px;
    padding: 10px 16px;
}

.configure-sync-container {
    background: var(--grey-background);
    padding: 8px;
    text-align: right;
}

.sync-button {
    font-size: 16px;
    padding: 10px;
    border: none;
}

.btn.btn-hidden.sync-button:focus {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/*.frequency-title {*/
/*    font-family: "Oracle Sans", sans-serif;*/
/*}*/

.frequency-help {
    /*font-family: "Oracle Sans", sans-serif;*/
    font-size: 0.9em;
    max-width: 15em;
}

.frequency-btn {
    background-color: #323C48;
    color: white;
    font-weight: bold;
    width: 100%;
    padding: 0.75em 0 0.75em 0;
    font-size: 0.8em;
}

.popover .popover-content .frequency-btn:focus-visible {
    color: black;
    background-color: #ebebeb;
}

/* Settings toggle */
.setting-toggle {
    position: relative;
    width: 4em;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select: none;
    user-select: none;
    float: left;
}

.sync-nickname {
    float: right;
    width: 750px;
}
.sync-nickname div:first-child {
    float: left;
}
.sync-nickname div:nth-child(2) {
    margin-right: 75px;
    float: right;
}
.sync-nickname-value {
    color: #3F4B5A;
}

/* End Sync CSS */

/* tags for statuses (something to decouple from this page too) */
.tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: #1a1a1a;
}
.tag-enabled {
    background: #8AC94F66;
}
.tag-disabled {
    background: rgba(81, 81, 81, 0.4);
}
.tag-error {
    background: rgba(255, 18, 18, 0.4);
}

/* Content in two columns */
.content-column-left {
    float: left;
    width: 50%;
}
.content-column-right {
    float: right;
    width: 49%;
}
.content-column-half {/*this column is for cases where the elements are dynamic.*/
    float: left;
    width: 45%;
    margin-right: 5%;
    margin-bottom: var(--space-6, 24px);
}
.content-column-half:nth-child(even){
    margin-right: 0;
}

@media (max-width: 900px) {
    .content-column-left,
    .content-column-right,
    .content-column-half {
        float: none;
        width: 100%;
        margin-right: 0;
    }
}

.settlement-options-form-right {
    margin: 24px 0;
    padding: 4em 1em 4em 1em;
    float: right;
    width: 40%;
    text-align: center;
    border: 1px solid #ECE7E7;
}

.add-on-options-form {
    margin: 0 0 2em 5%;
    padding: 2em 0% 2em 1em;
}
.add-on-options-form-right {
    margin: 4em 5% 2em 0%;
    padding: 3em 1em 2em 1em;
}

/* info box */
.rw-info-box {
    margin-left: var(--space-6, 24px);
}

/*Login, Forgot Password, and SignUp*/
.login-background {
    background: var(--blue-base) url("/static/css/redwood-layer/img/bg-login.png") 0 center no-repeat;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-content: center;
    align-items: center;
}

.login_form {
    background: var(--bg-body);
    color: var(--font-dark);
    min-height: 244px;
    width: min(432px, 90vw);
    text-align: left;
    margin: auto;
    border-radius: var(--radius-2, 8px);
    padding: 56px 40px 40px 40px;
}

.login_form .form-floating {
    margin-bottom: 24px;
    margin-top: 18px;
}

.login_form .login-title {
    color: var(--font-dark);
    font-size: 24px;
    font-weight: 800;
    line-height: 32px;
    margin-bottom: 0;
    padding-top: 48px;
}

.login_form .login-reset {
    display: block;
    color: var(--light-link);
    margin-top: 24px;
    padding-bottom: 80px;
}

.login_form .alert-danger {
    margin: 0 auto 13px;
    border-radius: var(--radius-1, 6px);
}

.login_form .current-language {
    text-align: left;
}

.login_form .login-footer {
    color: var(--font-medium);
    font-size: 12px;
    margin-top: 24px;
}

.login_form .login-subtitle {
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 0;
}

@keyframes loadTop {
    0% {
        transform: translateY(30%);
        opacity: 0;
    }
    100% {
        transform: translateY(0%);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .login_form {
        animation: 500ms loadTop;
    }
}

.login_form a:focus-visible,
.login_form .current-language select:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

.login_form input[type="text"]:focus,
.login_form input[type="password"]:focus{
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/*Sign Up specifics*/
.login_form.signup {
    width: 90vw;
    margin: 5vh auto;
}

.signup-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.signup-fields > .form-group{
    width: 100%;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .signup-fields > .form-group {
        width: 48%;
    }
}
@media (min-width: 1024px) {
    .signup-fields > .form-group {
        width: 24%;
    }
}

.sign-up-text {
    margin-bottom: var(--space-6, 24px);
}

.signup-bottom {
    margin-top: var(--space-6, 24px);
}
