:root,
[data-bs-theme=light] {
    --hd-list-hilight-color: #258cfb;
    --hd-list-hilight-bg: rgb(183 183 183 / 30%);
    --hd-shadow-color: #aaa;
}

[data-bs-theme=dark] {
    --hd-list-hilight-color: #8babcf;
    --hd-list-hilight-bg: rgba(255,255,255, 0.2);
    --hd-shadow-color: #fff;
}

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 {
    margin-bottom: 60px;
}

.main-container {
    margin: 1rem 1rem;
}

@media (min-width: 768px) {
    .main-container {
        margin: 1rem 3rem;
    }
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


.text-align-start {
    text-align: end;
}

.text-align-end {
    text-align: end;
}

.shadow-box {
    box-shadow: 0px 0px 20px var(--hd-shadow-color);
    border-radius: 1rem;
}


.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.debug {
    border: 1px dashed #b93;
}


.font-xxl {
    font-size: 1.5rem;
}

.small-x {
    font-size: .75em;
}

.ap-dairy-container {
    display: block;
}

.sugar-dairy-container {
    display: block;
}

@media (min-width: 768px) {
    .ap-dairy-container {
        display: grid;
        grid-template-columns: 20rem auto;
        column-gap: 2rem;
    }

    .sugar-dairy-container {
        display: grid;
        grid-template-columns: 16rem auto;
        column-gap: 2rem;
    }
}


a.simple {
    color: inherit !important;
    text-decoration: none !important;
}

.record-day {
    border-bottom: 1px solid #999;
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
}

.record-grid {
    display: grid;
    column-gap: 0.5rem;
    cursor: pointer;
}

    .record-grid:hover {
        color: var(--hd-list-hilight-color);
        background-color: var(--hd-list-hilight-bg);
    }

.grid-7-col {
    grid-template-columns: 6fr 23fr 7fr 3fr 15fr 5fr 25fr;
}

.grid-5-col {
    grid-template-columns: 6fr 17fr 4fr 9fr 16fr;
}


.dashboard-grid {
    display: block;
}

@media (min-width: 768px) {

    .dashboard-grid {
        display: grid;
        grid-template-columns: 17rem auto;
        gap: 2rem;
    }
}

.dashboard-cards-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {

    .dashboard-cards-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
}

.average-grid-4-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.25rem;
    align-items: center;
}

.average-grid-3-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.25rem;
    align-items: center;
    margin-left: 1rem;
}


.fs-md-1_5 {
    font-size: inherit;        
        
    @media(width < 768px){
        font-size: 1.5rem;
    }
}