p.description {
    font-size: .875rem;
    color: var(--tblr-secondary);
    max-width: 65ch;
}

.prose {
    max-width: 65ch !important;
}

.toast-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    padding: calc(56px + 1rem) 1rem 1rem;
}

.square {
    width: 100%;
    height: 0;
    padding-top: 100%;

    .content {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* Quill Editor ----------------------------------------------------------------------------------------------------- */
.ql-container.ql-snow {
    border: 0 !important;
}

.ql-toolbar.ql-snow {
    border: 0 !important;
    border-bottom: 1px solid rgba(101, 109, 119, .16) !important;
}

.quill-border {
    border: 1px solid rgba(101, 109, 119, .24) !important;
    border-radius: 3px;
}

.favicon {
    @media (prefers-color-scheme: light) {
        color: var(--tblr-black);
    }

    @media (prefers-color-scheme: dark) {
        color: var(--tblr-white);
    }
}

.sortable-chosen {
    @media (prefers-color-scheme: light) {
        background-color: var(--tblr-white);
    }

    @media (prefers-color-scheme: dark) {
        background-color: var(--tblr-black);
    }
}

.ql-editor { height: 150px !important; }

.modal-body {
    overflow-y: visible !important;
}

/*.turbo-progress-bar {*/
/*    display: none !important;*/
/*}*/

.chart-container {
    position: relative;
    margin: auto;
    height: 80vh;
    width: 80vw;
}

.statistics-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
        "chart1 chart3"
        "chart2 chart3";
}

#products-by-brand-chart {
    grid-area: chart3;
}

#created-products-chart {
    grid-area: chart1;
}

#updated-products-chart {
    grid-area: chart2;
}

@media screen and (max-width: 1023px) {
    .statistics-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "chart1"
            "chart2"
            "chart3"
        ;
    }
}


.table-striped>tbody>tr.bg-updated:nth-of-type(even)>*,
.bg-updated {
    --tblr-table-color-type: ü #23bf5d;
;    --tblr-table-bg-type: #23bf5d;
    background: #23bf5d !important;
}

.bg-fade td,
.bg-fade {
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
}

.loader-overlay {
    background: rgba(180, 180, 180, 0.4);
    z-index: 999;
}

.loader-circle {
    border: 3px solid transparent;
    border-top: 3px solid #127749;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}

@-moz-keyframes spin {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}

.product-hidden-overlay {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    z-index: 99;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
}

.product-hidden-overlay picture {
    aspect-ratio: 1 / 1;
}

table .bg-even {
    background: #f5f5f5;
}

.labels-hide label {
    display: none !important;
}

dialog {
    transition: opacity .5s ease-in-out;

    &::backdrop {
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        background-color: rgba(0,0,0,.25);
    }

    .dialog-wrapper {
        display: flex;
        flex-flow: column;
        flex-grow: 1;
        height: 100%;
    }

    .dialog-header {
        align-items: center;
        min-height: 3.5rem;
        background: 0 0;
        display: flex;
        flex-shrink: 0;
        justify-content: space-between;
        padding: .75rem 3.5rem .75rem 1.5rem;
        border-bottom: 1px solid var(--tblr-border-color);
        border-top-left-radius: var(--tblr-modal-inner-border-radius);
        border-top-right-radius: var(--tblr-modal-inner-border-radius);

        .dialog-title {
            font-size: 1rem;
            font-weight: var(--tblr-font-weight-bold);
            color: inherit;
            line-height: var(--tblr-modal-title-line-height);
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }

        .btn-close {
            position: absolute;
            right: 1rem;
            top: 1rem;

            &:focus {
                outline: 0;
                box-shadow: none;
                opacity: .4;

                &:hover {
                    opacity: 1;
                }
            }
        }
    }

    .dialog-body {
        position: relative;
        flex: 1 1 auto;
        padding: 1.5rem;
    }

    .dialog-footer {
        display: flex;
        flex-shrink: 0;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        min-height: 3.5rem;
        padding: .75rem 1.5rem .75rem 1.5rem;
        background-color: var(--tblr-modal-footer-bg);
        border-top: 1px solid var(--tblr-border-color);
        border-bottom-right-radius: var(--tblr-modal-inner-border-radius);
        border-bottom-left-radius: var(--tblr-modal-inner-border-radius);
    }

    .card {
        border: 0 !important;
    }
}

.dialog-modal {
    padding: 0;
    background-color: var(--tblr-bg-surface);
    border-color: transparent;
}

.status-bold {
    font-weight: 500;
    text-transform: uppercase;
}

.quill-border {
    border: 1px solid rgba(101, 109, 119, .24) !important;
    border-radius: 3px;
}
