html,
body,
main {
    background: #f6f7f9;
}

body {
    color: #212529;
}

body .form-control::placeholder {
    color: #98a2ad;
    opacity: .72;
}

.card {
    border-radius: .5rem;
}

.settings-button {
    align-items: center;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    padding: 0;
    width: 2rem;
}

.sortable-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: inline-flex;
    font: inherit;
    gap: .35rem;
    padding: 0;
}

.sortable-trigger::after {
    color: #adb5bd;
    content: "↕";
    font-size: .8em;
}

.sortable-trigger[data-sort-state="asc"]::after {
    color: #0d6efd;
    content: "↑";
}

.sortable-trigger[data-sort-state="desc"]::after {
    color: #0d6efd;
    content: "↓";
}

.role-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.order-progress {
    height: .55rem;
    min-width: 7rem;
}

.order-progress-large {
    height: .85rem;
}

.order-progress-label {
    min-width: 3rem;
    text-align: right;
}

.order-workflow {
    display: grid;
    gap: 0;
}

.order-step {
    border-bottom: 1px solid #d7dbe1;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1rem minmax(0, 1fr);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    scroll-margin-top: 5rem;
}

.order-step:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-step-marker {
    border-radius: 999px;
    height: 1rem;
    margin-top: 1.15rem;
    width: 1rem;
}

.order-step.pending .order-step-marker {
    background: #dc3545;
}

.order-step.progressing .order-step-marker {
    background: #ffc107;
}

.order-step.done .order-step-marker {
    background: #198754;
}

.order-step.skipped .order-step-marker {
    background: #6c757d;
}

.order-step-body {
    background: #fff;
    border: 1px solid rgba(33, 37, 41, .08);
    border-radius: .5rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .045);
    padding: 1rem;
}

.order-step-status-select {
    min-width: 8.5rem;
}

.offer-pre {
    font-family: inherit;
    font-size: .9rem;
    margin: 0;
    white-space: pre-wrap;
}

.offer-edit-table textarea {
    min-width: 22rem;
}

.offer-edit-table input {
    min-width: 6rem;
}

.upload-dropzone {
    border: 2px dashed #b6c2d2;
    border-radius: .5rem;
    cursor: pointer;
    padding: 1.25rem;
    text-align: center;
    transition: background-color .15s ease, border-color .15s ease;
}

.upload-dropzone.is-dragging {
    background: #eef6ff;
    border-color: #0d6efd;
}

.offer-schema-preview {
    background: #fff;
    border: 1px solid rgba(33, 37, 41, .12);
    border-radius: .5rem;
    display: block;
    max-height: 22rem;
    object-fit: contain;
    width: 100%;
}

.photo-gallery-scroll {
    align-items: center;
    display: flex;
    height: calc(100vh - 4.25rem);
    justify-content: center;
    overflow: hidden;
    padding: 1rem 1rem 3.75rem;
}

.photo-gallery-image {
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.photo-gallery-caption {
    background: rgba(0, 0, 0, .72);
    bottom: 0;
    color: #fff;
    display: flex;
    gap: .75rem;
    left: 0;
    padding: .5rem 1rem;
    position: absolute;
    right: 0;
}

.audit-value {
    font-family: inherit;
    font-size: .85rem;
    max-height: 8rem;
    overflow: auto;
    white-space: pre-wrap;
}

.production-work-time-input {
    display: inline-block;
    width: 6.25rem;
}

.number-spinner-roomy {
    padding-right: 2rem;
}

.mobile-install-guide {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-install-step {
    background: #fff;
    border: 1px solid rgba(33, 37, 41, .14);
    border-radius: .5rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.mobile-install-step-heading {
    align-items: center;
    display: flex;
    gap: .75rem;
    min-height: 4.25rem;
    padding: .75rem 1rem;
}

.mobile-install-step-number {
    align-items: center;
    background: #0d6efd;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 2rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.mobile-install-step-image {
    background: #f8f9fa;
    border-top: 1px solid rgba(33, 37, 41, .1);
    display: block;
    height: auto;
    width: 100%;
}

.mobile-install-step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - .75rem);
}

@media (max-width: 767.98px) {
    .mobile-install-guide {
        grid-template-columns: minmax(0, 1fr);
    }

    .mobile-install-step:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
    }
}
