html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background-color: #f5f7fa;
}

.please-wait-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    cursor: wait;
}

.please-wait-overlay[hidden] {
    display: none;
}

.please-wait-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

footer {
    text-align: center;
    background-color: white;
}

form {
    width: 100%;
}

.breadCrumb {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
    padding-top: 0.75rem;
    background-color: #f5f7fa;
}

.recipe-actions {
    position: sticky;
    top: 40px;
    z-index: 1;
    padding-top: 8px;
    padding-bottom: 8px;
    background-color: #f5f7fa;
}

.PageBody label {
    text-align: left;
    font-weight: 600;
}

.GridHeader {
    font-weight: bold;
    text-align: center;
}

.GridRow {
    text-align: center;
}

.grid-action-column {
    width: 100px;
}

.PageBody {
    width: min(100%, 1200px);
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 1.5rem;
}

body:has(.user-page) .BodyCol {
    overflow-y: visible;
}

.user-page {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.user-page-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.user-page-body > .nav-tabs {
    flex: 0 0 auto;
}

.user-page-body > .tab-content {
    flex: 1;
    min-height: 0;
    overflow: visible;
}

.user-page-body > .tab-content > .tab-pane.active {
    overflow-y: visible;
}

.user-page-body > .tab-content > #user-tab-pane.active {
    overflow-y: visible;
}

.user-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
}

.user-form-actions {
    flex: 0 0 auto;
    margin: 0 0 0.75rem;
}

.user-form-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: visible;
}

.BodyCol {
    vertical-align: top;
    min-width: 0;
}

.border-right {
    border-color: rgb(222, 226, 230);
    border-right-style: solid;
    border-right-width: 1px;
}

.app-shell {
    display: flex;
    width: 100%;
}

.app-shell > .row {
    flex: 1 1 auto;
    width: 100%;
}

.app-sidebar {
    background-color: white;
    min-width: 12rem;
    padding: 1rem 0.75rem;
}

.app-sidebar .nav-link {
    border-radius: 0.375rem;
    color: #334155;
    margin-bottom: 0.25rem;
    text-align: left;
    white-space: nowrap;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link:focus {
    background-color: #e9ecef;
}

.app-sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.login-panel {
    width: min(100%, 30rem);
    margin: clamp(2rem, 8vh, 6rem) auto;
}

.dashboard-stat-value {
    color: #0d6efd;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:focus {
    outline: 3px solid #258cfb;
    outline-offset: -3px;
}

.choice-group {
    border: 0;
    margin: 0 0 1.25rem;
    padding: 0;
}

.choice-option {
    align-items: center;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(7rem, auto) 1fr;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
}

.choice-option:has(.form-check-input:checked) {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

.choice-option .form-check-input {
    margin: 0;
}

.choice-option label {
    margin: 0;
}

.choice-option-none {
    grid-template-columns: auto 1fr;
}

@media (max-width: 767.98px) {
    .app-sidebar {
        border-bottom: 1px solid #dee2e6;
        border-right: 0 !important;
        min-width: 0;
        overflow-x: auto;
        padding: 0.5rem;
    }

    .app-sidebar .nav-link {
        margin-bottom: 0;
        margin-right: 0.25rem;
    }

    .PageBody {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .choice-option {
        grid-template-columns: auto 1fr;
    }

    .choice-option > :last-child {
        grid-column: 1 / -1;
    }
}