/* Bootstrap Theme
 *
 * Restores visual aspects from Bootstrap 4 in 5 to allow for visual comparison
 * and testing for potentially breaking changes. Mostly restores color palette
 * and spacing.
 */
:root {
    --bs-border-radius: 0.25rem;
    --bs-border-radius-lg: 0.25rem;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.125);
    --bs-font-sans-serif: WebFont, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

    --bs-success-text-emphasis: #155724;
    --bs-success-bg: #d4edda;
    --bs-success-bg-subtle: #d4edda;

    --banner-height: 30px;
}


/* Bootstrap 5 underlines <a> by default. */
a {
    text-decoration: none !important;
}

label {
    margin-bottom: .5rem;
}

ol,
ul {
    padding-left: 40px;
}

.container {
    --bs-gutter-x: 30px;
}

.nav-pills {
    --bs-nav-pills-border-radius: 0.25rem;
}

.card {
    --bs-card-cap-padding-y: .75rem;
    --bs-card-cap-padding-x: 1.25rem;
    --bs-card-spacer-y: 1.25rem;
    --bs-card-spacer-x: 1.25rem;
}

.list-group {
    --bs-list-group-item-padding-y: .75rem;
    --bs-list-group-item-padding-x: 1.25rem;
}

.breadcrumb.text-bg-light {
    background-color: #e9ecef !important;
}

.btn-info {
    --bs-btn-color: #fff;
    --bs-btn-bg: #17a2b8;
    --bs-btn-border-color: #17a2b8;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: white;
    --bs-btn-hover-bg: #138496;
    --bs-btn-hover-border-color: #117a8b;
}

.form-control[readonly] {
    --bs-body-bg: #e9ecef;
}

.form-control {
    --bs-body-color: #495057;
    --bs-border-color: #ced4da;
}

.form-select {
    --bs-border-color: #ced4da;
    --bs-body-color: #495057;
}

.tooltip {
    --bs-tooltip-font-size: 1rem;
}

.popover-header {
    --bs-popover-header-font-size: 1rem;
}

.popover-body {
    --bs-popover-body-padding-y: .5rem;
}

.popover {
    --bs-popover-font-size: 1rem;
}

.alert {
    --bs-alert-padding-x: 1.25rem;
}

.alert-success {
    --bs-alert-color: #155724;
    --bs-alert-bg: #d4edda;
    --bs-alert-border-color: #c3e6cb;
}

@font-face {
    font-family: "WebFont";
    src: url("fonts/33A0B5_0_0.woff2") format("woff2");
}

@font-face {
    font-family: "WebFont";
    src: url("fonts/33A0B5_2_0.woff2") format("woff2");
    font-weight: bold;
}

body {
    font-family: WebFont, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
}

/* Wide container on large screens (Backported from Bootstrap 5) */
@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1320px;
    }
}

h1 {
    font-weight: bold;
    margin-bottom: 30px;
}

h2,
h3,
h4,
h5 {
    font-weight: bold;
}

h6 {
    margin-top: 7px;
}

main {
    margin: 35px 0 90px 0;
}

h2 .fal {
    color: black;
}

.banner {
    height: var(--banner-height);
    background-color: #0069d9;
}

#logo,
#crafted {
    height: 20px;
}

.navbar-light {
    border-bottom: 1px solid #e7e7e7;
    padding: 15px;
}

.nav-tabs {
    margin-bottom: 5px;
}

.nav {
    flex-wrap: inherit;
}

.btn-primary,
.btn-primary:disabled {
    background-color: #3da3dc;
    border-color: #3da3dc;
}

.conf-title a {
    color: black;
}

.chapter-title a {
    color: black;
}

.chapter-title .fal {
    font-size: 80%;
}

.subchapter-title {
    display: inline-block;
}

.subchapter-toggle {
    cursor: pointer;
    font-size: 180%;
    opacity: 0.7;
    margin-left: 10px;
}

.option-description-toggle {
    cursor: pointer;
    font-size: 180%;
    opacity: 0.7;
}

.description p {
    color: #72737a;
    font-size: 120%;
}

.description img {
    cursor: zoom-in;
    margin-bottom: 30px;
}

.description img.disable-zoom {
    cursor: default !important;
}

.option-id {
    font-size: 65%;
    opacity: 0.7;
    text-align: right;
}

#totals img {
    height: 100px;
}

#totals i {
    font-size: 160%;
    padding-right: 10px;
}

.large {
    font-size: 150%;
    font-weight: bold;
}

.step-marker {
    font-size: 110%;
    font-weight: bold;
    color: #d5d5d5;
    margin: 0 8px;
}

.step-marker a {
    color: #fff;
}

.step-marker a:hover {
    text-decoration: none;
}

.list-group {
    margin-bottom: 15px;
}

.list-group small {
    opacity: 0.7;
}

.list-group-item.active {
    background: #3da3dc;
    border: 1px solid #3da3dc;
    border-top: 1px solid rgb(255, 255, 255, 0.75);
}

#login {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #f5f5f5;
}

#top-actions {
    margin-bottom: 20px;
}

#login img {
    padding-bottom: 20px;
}

.form-signin {
    margin: auto;
    max-width: 330px;
    padding: 15px;
    width: 100%;
}

.form-signin .checkbox {
    font-weight: 400;
}

.form-signin .form-control {
    box-sizing: border-box;
    font-size: 16px;
    height: auto;
    padding: 10px;
    position: relative;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="email"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: -1px;
}

.form-signin input[type="password"] {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-bottom: 10px;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    min-height: 100%;
    position: relative;
}

body {
    margin-bottom: 70px;
    /* Margin bottom by footer height */
    scrollbar-gutter: stable;
}

.footer {
    background-color: #f5f5f5;
    bottom: 0;
    position: absolute;
    width: 100%;
}

.footer p {
    color: #6c757d !important;
}

footer .navbar {
    background: #122945;
    color: #fff;

    --bs-navbar-padding-x: 1rem;
    --bs-navbar-padding-y: 0.5rem;
}

footer .border-end,
footer .border-start {
    border-color: #2a3e59 !important;
}

#overview h3 {
    margin: 40px 0 20px 0;
    text-align: center;
}

.overview-option-title {
    width: 680px;
}

#open-interior-button {
    width: 256px;
    height: 116px;
    padding-top: 40px;
}

p.cr {
    padding-top: 20px;
}

@media (max-width: 767.98px) {
    body {
        margin-bottom: 120px;
    }
}

.list-group h5 {
    display: flex;
    align-items: flex-start;
}

h5 input {
    margin-top: 5px;
}

h5 label {
    padding-left: 10px;
}

.option-attributes {
    padding-left: 25px;
}

.option-description {
    margin-top: 12px;
}

.option-description img {
    display: block;
    margin: 10px auto 5px auto;
}

#login input[type="password"],
#login input[type="email"] {
    font: small-caption;
    font-size: 16px;
}

#overview .fa-comment-alt-lines {
    margin-right: 10px;
    opacity: 1;
}

#overview #overview-tabs #configuration-tab {
    color: #0069d9;
}

#overview #overview-tabs #interior-tab {
    color: #138496;
}

#overview-tabs a {
    font-size: 120%;
    font-weight: bold;
}

#interior .interior-note-icon,
#interior .interior-note-icon-existing-delete,
#configuration .note-icon,
#configuration .note-icon-existing-delete {
    cursor: pointer;
    font-size: 1.25rem;
    margin-right: 10px;
    opacity: 0.4;
}

p.note-exhibit-b-checkbox {
    padding-left: 38px;
}

.note {
    font-style: italic;
}

.option-note {
    margin-left: 30px;
}

.link-discreet {
    color: #6c757d;
}

.config-state-active {
    font-size: 120%;
    font-weight: bold;
}

ul.timeline {
    list-style-type: none;
    position: relative;
}

ul.timeline:before {
    content: " ";
    background: #d4d9df;
    display: inline-block;
    position: absolute;
    left: 29px;
    width: 2px;
    height: 100%;
    z-index: 400;
}

ul.timeline>li {
    margin: 20px 0;
    padding-left: 20px;
}

ul.timeline>li:before {
    content: " ";
    background: white;
    display: inline-block;
    position: absolute;
    border-radius: 50%;
    border: 3px solid #3da3dc;
    left: 20px;
    width: 20px;
    height: 20px;
    z-index: 400;
}

ul.history {
    color: #495057;
    font-size: 90%;
    margin-left: -20px;
}

ul.history>li {
    padding-left: 10px;
    margin: 0;
}

ul.history>li:before {
    height: 10px;
    width: 10px;
    left: 25px;
    margin-top: 5px;
    border: 2px solid #6c757d;
}

.user {
    font-weight: bold;
}

.avatar {
    border-radius: 3px;
}

th {
    white-space: nowrap;
}

.sticky-top {
    top: 20px;
    z-index: 950;
}

td.nowrap-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#image-usage-filter {
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

div#configuration-state-filter.list-group {
    flex-direction: row;
}


.table-bordered thead tr {
    border-top: none;
}

.table td,
.table th {
    padding: 0.75rem;
}

.table td {
    border-left: none;
    border-right: none;
}

.thead-secondary {
    color: white;
    background-color: var(--bs-secondary);

    --bs-table-bg: var(--bs-secondary);
    --bs-table-color: white;
}

.thead-secondary th {
    border-bottom: none !important;
}

.nav-outlined .nav-item a {
    border: 1px solid var(--bs-blue) !important;
}

.nav-outlined {
    gap: 0.5rem;
}

.table th {
    border-right: none;
    border-left: none;
}

#configurations-table {
    table-layout: fixed;
}

#configurations-table th .both:not(.asc, .desc, :hover) {
    background: none !important;
}

th[data-field="msn"],
td[data-col="msn"] {
    width: 70px;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

th[data-field="type"],
td[data-col="type"] {
    width: 45px;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    white-space: nowrap;
}

th[data-field="type"] .th-inner {
    text-overflow: unset !important;
}

th[data-field="purchaser"],
td[data-col="purchaser"] {
    width: 14em;
    white-space: nowrap;
}

th[data-field="sales-unit"],
td[data-col="sales-unit"] {
    width: 9em;
}

th[data-field="scheduled-delivery"],
td[data-col="scheduled-delivery"],
th[data-field="state"],
td[data-col="state"],
th[data-field="int-state"],
td[data-col="int-state"] {
    width: 6em;
}

th[data-field="specification-due"],
td[data-col="specification-due"] {
    width: 4.5em;
}

td.filter-narrow {
    width: 5em;
}

td.filter-single,
th.filter-single {
    width: 1em;
}

td.filter-icon,
th.filter-icon {
    width: 2em;
    text-align: center;
}

.striped {
    --bs-table-bg: rgba(0, 0, 0, 0.05);
}

/*
 * Alternate background colors for visible rows only, skipping the arbitrary
 * number of hidden settings in-between two settings.
 */
#interior-settings-table tr:nth-child(odd of .visible-setting) {
    --bs-table-bg: rgba(0, 0, 0, 0.05);
}

.diff-view.list-group div {
    padding: 0.5em 1em;
}

.diff-view h4 {
    margin-top: 5px;
    font-size: 120%;
}

.diff-view table {
    margin-bottom: 1em;
}

.diff-view td.tiny {
    width: 10%;
}

.diff-view td.narrow {
    width: 20%;
}

.diff-view td.medium {
    width: 25%;
}

.diff-view td.wide {
    width: 40%;
}

.diff-view h5 {
    margin-top: 5px;
    font-size: 100%;
}

.tt {
    font-family: monospace;
}

.hidden-setting {
    display: none;
    opacity: 0.6;
}

.hidden-within td:first-child {
    padding-left: 30px;
}

.modal-body {
    overflow: auto;
    max-height: 500px;
}

/* Stretch modal to viewport's height and allow modal's content to take up the
 * available space. Add .modal-full-height class to the .modal-dialog container. */
.modal-full-height {
    height: 85vh;
}

.modal-full-height .modal-content {
    height: 100%;
}

.modal-full-height .modal-body {
    max-height: unset !important;
    overflow: hidden;
}

/* Allow Bootstrap Popover to take up all available width of its parent
 * container. */
.popover {
    max-width: 100%;
}