:root {
    font-size: 16px;
    --tb-purple: #800f77;
    --tb-light-purple: #A02f97;
    --tb-grey: #f5f5f5;
}

html,
body {
    height: 100%;
}

body {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-align: center;
    -ms-flex-pack: center;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: var(--tb-grey);
}

.tbs-heading {
    font-weight: 400;
    font-size: 33px;
    margin-bottom: -5px;
    font-family: 'Open Sans', sans-serif;
}

.container {
    max-width: calc(min(100%, 1920px));
}

/* Header Start */
.tb-header {
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    line-height: 15px;
    margin-top: 7px;
    padding: 0px;
}

#town-break-slogan {
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    margin-top: -20px;
}

.navbar-brand {
}

.btn-primary{
    font-size: 1rem;
    margin: 0.5rem 0.25rem 0rem;
    width: fit-content;
    background-color: #cad400;
    color: #404040;
    border-color: #404040;
}

.btn-primary:disabled {
    background-color: #dad410;
    color: #606060;
    border-color: #606060;
}

.btn-primary:hover {
    background-color: #ebe410;
    color: #404040;
    border-color: #606060;
}

.btn-primary:focus,
.btn-primary.focus {
    background-color: #cad400;
    color: #404040;
    border-color: #404040;
    box-shadow: none;
}

.btn-primary:active,
.btn-primary.active {
    background-color: #cad400;
    color: #404040;
    border-color: #404040;
    box-shadow: none;
}

.btn-select-none {
    background-color: #ffa0a0;
}

.btn-select-none:hover {
    background-color: #ffc0c0;
}

.btn-primary:not(:disabled):not(.disabled):active {
background-color: #800f77;
color: #f0f0f0;
border-color: #901f87;
box-shadow: none;
}

.btn-primary:not(:disabled):not(.disabled):active:focus {
    background-color: #800f77;
    color: #f0f0f0;
    border-color: #901f87;
    box-shadow: 0 0 0 0.25rem rgba(189, 82, 177, 0.25);
}

.modal-footer .btn-primary {
    margin: revert;
}

.btn-select {
    display: inline-flex;
    margin: 0 4px;
    justify-content: center;
    align-content: center;
    width: min(30%,2rem);
    font-size: min(0.9vw,1rem);
    aspect-ratio: 1/1;
    border-radius: 25%;
}

.ds-lock-form-content {
    width: 60%;
    margin: auto;
    top: 2rem;
}

.btn-update {
    display: none;
}

.btn-new {
    min-width: 12rem;
    width: auto;
}

.tb-public-site-link {
    color: var(--tb-purple);
}

    .tb-public-site-link:hover {
        color: var(--tb-light-purple);
    }

.tb-nav {
    display: flex;
    align-items: stretch;
    /* Default */
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
}

.tb-nav-item {
    display: block;
    flex: 1;
    list-style-type: none;
}

    .tb-nav-item .btn-primary {
        width: 90%;
    }

.tb-nav-tab {
    display: block;
    width: 100%;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin: 0.5rem 0 0;
    background-color: var(--tb-purple);
    color: #f0f0f0;
    border: 1px 1px 0px 1px solid #901f87;
    border-radius: 0.25rem 0.25rem 0 0;
}

.tb-body {
    background-color: var(--tb-purple);
    width: 100%;
    padding: 0.25rem;
}

/* Header End */
/* Section Info Start */
.tb-section-bar {
    width: 100%;
    padding-bottom: 0.2rem;
}

.tb-section-heading {
    text-align: left;
    color: #f0f0f0;
    font-size: 1.5rem;
    padding-left: 1.5rem;
}

.tb-section-buttons {
    text-align: right;
}

/* Section Info End */
/* Work Area Start */
.tb-work-area {
    margin: 0px;
    height: 85vh;
    max-height: 85vh;
}

.tb-flex-col {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin: 0px;
    padding: 0px;
}

.tb-selection-list-heading {
    background: #616160;
    color: white;
    font-size: 0.75rem;
    order: 0;
}

.tb-selection-list-label {
    background: #616160;
    color: white;
    font-size: 0.75rem;
    width: 100%;
    padding: 0.15rem;
    margin: 0px;
}

.tb-selection-list {
    background: #f0f0f0;
    font-size: 0.75rem;
    overflow-x: hidden;
    overflow-y: scroll;
    order: 1;
    flex: 1;
}

.tb-selection-list-filter {
    width: 100%;
    background-color: #60c8ec;
    color: white;
}

.ds-selection-list-entry {
    padding: 0.25rem;
    background: #f0f0f0;
}

    .ds-selection-list-entry:hover {
        background-color: #ffffff;
        cursor: pointer;
    }

.ds-selection-list-active {
    padding: 0.25rem;
    background: #dad410;
    font-weight: bold;
    font-style: italic;
}

.tb-date-entry {
    padding: 0.25rem;
}

.tb-data-area {
    font-size: 10pt;
    flex-direction: column;
    background: #ffffff;
    padding: 0px;
    overflow-y: scroll;
    height: inherit;
}

.tb-collapse-button,
.tb-collapse-button:focus,
.tb-collapse-button:active {
    width: 100%;
    text-align: left;
    box-shadow: none;
}

.ds-card-header {
    background-color: #f0f0f0;
}

    .ds-card-header button::before {
        width: 28px;
        height: 28px;
        content: url(Graphics/collapse.png);
        float: right;
        transition: all 0.5s;
    }

    .ds-card-header.active button:before {
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        transform: rotate(180deg);
    }

.tb-viewer, .tb-editor {
    padding: 0 0 0 8rem;
}

.tb-card-body {
    background-color: #fcfcfc;
}

.ds-lock-form {
    display: none;
    min-width: 100%;
    min-height: 100%;
    background-color: rgba(250,250,250,0.75);
    position: absolute;
    z-index: 1000;
}

.tb-card-body .tb-card-row {
    padding-bottom: 0.25rem;
}

.tb-card-body .tb-form-label {
    padding: 0 0.25rem;
    vertical-align: middle;
}

.tb-card-body .tb-form-item {
    padding: 0 0.25rem;
}

.tb-card-body input,
.tb-card-body textarea {
    width: 100%;
}

    .tb-card-body input[type=checkbox],
    .tb-card-body input[type=radio] {
        width: auto;
    }

.tb-card-body select {
    width: auto;
    height: auto;
}

.tb-card-body textarea {
    height: 100%;
}

.tb-card-body input:valid,
.tb-card-body select:valid {
    background-color: #ffffff;
}

.tb-card-body input:invalid,
.tb-card-body select:invalid,
.invalid-red {
    background-color: #ffe0e0;
}

input:valid.preferred, select:valid.preferred {
    background-color: #e0f0ff;
}

.tb-flex-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tb-field-box {
    border: solid 1px var(--tb-light-purple);
    border-radius: 5px 5px;
    margin-bottom: 0.25rem;
}

    .tb-field-box .tb-form-label {
        line-height: unset;
        vertical-align: middle;
        padding: 0.5rem 0.5rem;
    }

    .tb-field-box .tb-form-item {
        padding: 0.5rem 0.5rem;
        text-align: right;
    }

.tb-btn {
    margin-top: 0.375rem;
    padding: 0.125rem 0.75rem;
}

.tb-form-button {
    padding: 0px 0.5rem 0px 0.5rem !important;
}

.tb-text-area {
    flex: 1;
}

.tb-table-heading-row {
    margin-top: 0.25rem;
}

.tb-table-heading {
    background-color: var(--tb-purple);
    text-align: Left;
    padding: 0 0.25rem;
    color: #f0f0f0;
    border: 1px solid var(--tb-light-purple);
}

.tb-table-data-container {
    margin: 0 -15px;
    border: 0.5px solid var(--tb-light-purple);
}

.tb-table-data-row {
    margin: 0px;
}

.tb-table-data {
    text-align: Left;
    padding: 0 0.25rem;
    color: #616160;
    border: 0.5px solid var(--tb-light-purple);
}

span.tb-data-item {
    cursor: pointer;
    color: var(--tb-purple);
    font-style: italic;
}

    span.tb-data-item:hover {
        cursor: pointer;
        color: var(--tb-light-purple);
        font-weight: bold;
    }

.tb-log-entries {
    height: 30vh;
    overflow-y: scroll;
}

.tb-log-entry-link {
    color: var(--tb-purple);
    margin-bottom: 2rem;
}

    .tb-log-entry-link:hover {
        color: var(--tb-purple);
        margin-bottom: 2rem;
        font-weight: bold;
        text-decoration: none;
    }

.tb-log-entry-heading {
    color: var(--tb-purple);
    margin-bottom: 2rem;
    font-weight: bold;
    text-decoration: none;
}

pre.tb-log-entry-body {
    white-space: pre-wrap;
    font-family: var(--font-family-sans-serif);
    font-size: 14px;
}

.invalid-amber {
    background-color: #ffffe0;
}

.valid-green {
    background-color: #e0ffe0;
}

select.tb-equipment-select {
    width: 100%;
}

.tb-button-row {
    margin: 0 -15px 0.75rem 0;
    text-align: right;
}

form + form {
    margin-top: 1rem;
}

.tb-table-container {
    margin: 0.5rem 0.5rem;
}

.tb-button-order {
    width: 10px;
    height: 10px;
    content: url(Graphics/collapse.png);
    float: right;
}

.tb-split-heading {
    display: inline-block;
    width: 48%;
}

.tb-order-direction {
    display: inline-block;
    width: 50%;
    text-align: right;
}

/*responsive*/
@media (min-width: 1280px) {
    .tb-nav-item .btn-primary {
        font-size: 1rem;
    }
}

@media (max-width: 1279px) {
    .tb-nav-item .btn-primary {
        font-size: 0.95rem;
        padding: 0.375rem 0.5rem;
    }
}

.full-width {
    width: 100% !important;
}

#clientOrderDirection, #dateOrderDirection, #waitTimeOrderDirection {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

#additionalFilters {
    display: flex;
    align-items: center;
    justify-content: center;
}


/*Change for R0.0.0.65-3*/
#tb-allocated-equipment-form {
    display: none;
}

