@import "/css/pico.min-eef77abc2bb2bdacbd7ae6883ff3efd8.css";
@import "/css/pico.colors.min-72d61c6e2f7c5ca921bb9db1790d1aea.css";
@import "/css/icons-ea113572a1befa6eec6cf67c7bbc82c7.css";
@import "/css/notyf.min-5b3148bf033974aaeec972a145c3ac4e.css";

:root {
    --bc-status-in-progress: rgba(222, 216, 67, 255);
    --bc-status-in-progress-text: #444;
    --bc-status-in-progress-text-hover: #111;
    --bc-status-complete: rgba(111, 132, 41, 255);
    --bc-status-complete-text: #eee;
    --bc-status-complete-text-hover: #ccc;
}

.warning {
    color: #f57c00;
    font-weight: bold;
}

.error {
    color: #d32f2f;
    font-weight: bold;
}

.no-js .require-js {
    display: none;
}

.no-require-js {
    display: none;
}

.no-js .no-require-js {
    display: block;
}

.block {
    display: block;
}

.full-width {
    display: block;
    width: 100%;
}

.click-link {
    display: contents;
    color: unset;
    text-decoration: unset;
}

.bc-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;

    @media screen and (min-width: 576px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media screen and (min-width: 768px) {
        grid-template-columns: repeat(3, 1fr);
    }

    @media screen and (min-width: 1024px) {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bc-status-in_progress {
    background-color: var(--bc-status-in-progress);
    transition: color 200ms;

    color: var(--bc-status-in-progress-text);

    &:hover {
        color: var(--bc-status-in-progress-text-hover);
    }
}

.bc-status-complete {
    background-color: var(--bc-status-complete);
    transition: color 200ms;

    color: var(--bc-status-complete-text);

    &:hover {
        color: var(--bc-status-complete-text-hover);
    }
}

.pill {
    display: inline-block;
    padding: .25rem 0.5rem;
    border-radius: 16px;
}

.in-progress {
    background-color: var(--bc-status-in-progress);
    color: var(--bc-status-in-progress-text);
}

.complete {
    background-color: var(--bc-status-complete);
    color: var(--bc-status-complete-text);
}

.bc-card {
    text-align: center;
    display: grid;

    border: 1px solid var(--pico-color-grey-800);

    cursor: pointer;
    user-select: none;

    i {
        font-size: 4rem;
    }

    hgroup {
        margin-top: -.5rem;

        h4 {
            text-wrap: balance;
        }
    }

    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas:
        "head-l head-c head-r"
        "body body body"
        "foot-l foot-c foot-r";

    padding: 0;
    gap: .25rem;

    span {
        grid-area: body;
    }

    .header {
        display: contents;

        .left {
            grid-area: head-l;
            text-align: left;
            padding-left: .5rem;
        }

        .center {
            grid-area: head-c;
            text-align: center;
        }

        .right {
            grid-area: head-r;
            text-align: right;
            padding-right: .5rem;
        }
    }

    .footer {
        display: contents;
        --pico-underline: none;

        .delivery-window, .no-decorate {
            text-decoration: none;
            border-bottom: none;
        }

        i {
            font-size: unset;
        }

        .delivery-window-start, .left {
            grid-area: foot-l;
            text-align: left;
            padding-left: .5rem;
        }

        .delivery-day {
            grid-area: foot-c;
            text-align: center;
        }

        .delivery-window-end, .right {
            grid-area: foot-r;
            text-align: right;
            padding-right: .5rem;
        }
    }
}

.bc-item-line {
    display: block;
    padding: .5rem 1rem;

    border: 1px solid var(--pico-color-grey-800);

    text-decoration: none;

    & span:nth-child(1) {
        display: inline-block;
        width: 8ch;
    }

    & span:nth-child(2) {
        display: inline-block;
        width: 40ch;
    }

    & span:nth-child(3) {
        display: inline-block;
        width: 5ch;
    }
}

.page-header {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--pico-block-spacing-vertical);

    @media screen and (min-width: 576px) {
    }

    @media screen and (min-width: 768px) {
        flex-direction: row;
        justify-content: space-between;
        grid-template-columns: repeat(4, 1fr);
    }

    @media screen and (min-width: 1024px) {
    }
}

.bc-details {
    & section {
        margin-bottom: 0;

        & > span:nth-child(1), & > label:nth-child(1) {
            font-weight: bold;

            &:after {
                content: ': ';
            }
        }
    }

    & address {
        margin-bottom: 0;

        & > span.header {
            font-weight: bold;

            &:after {
                content: ': ';
            }
        }
    }

    & p {
        margin-bottom: 0;
    }
}

.no-underline {
    text-decoration: none;
}

.danger {
    --pico-background-color: var(--pico-color-red-500);

    &:hover {
        --pico-background-color: var(--pico-color-red-400);
    }
}

.loader-container {
    position: relative;
}

.loader {
    position: absolute;
    display: grid;
    place-items: center;
    user-select: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-color: rgba(1, 1, 1, .1);
    border-radius: 10px;

    &.htmx-indicator {
        display: none;
    }
}

.htmx-request .loader.htmx-indicator, .htmx-request.loader.htmx-indicator {
    display: grid;
}

summary h2 {
    display: inline-block;
}

.display-none {
    display: none;
}

.justify-content-between {
    display: flex;
    justify-content: space-between;
}

.width-full {
    width: 100%;
}

.hidden {
    display: none;
}

.pb-pico {
    margin-bottom: var(--pico-typography-spacing-vertical) !important;
}

.pb-2pico {
    margin-bottom: calc(2 * var(--pico-typography-spacing-vertical)) !important;
}

.font-large {
    font-size: 1.25rem;
}

.italic {
    font-style: italic;
}

.small {
    font-size: 1rem;
}

.bold {
    font-weight: bold;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem
}

.success {
    --pico-background-color: #00A66E;

    &:hover, &:active, &:focus {
        --pico-background-color: #029764
    }
}

.banner {
    width: 100%;
    border-radius: 18px;
    background-color: var(--pico-color-grey-800);
    color: var(--pico-color-grey-100);
    padding: 1rem;

    &.success {
        background-color: #029764;
    }
}

.business-case-search-container {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: .25rem;

    @media screen and (min-width: 1024px) {
        grid-template-columns: 1fr auto;
        grid-template-rows: 1fr;
    }
}

#quagga-preview {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 20vh;

    video, canvas {
        max-width: 100%;
        max-height: 20vh;
        width: 100%;
        aspect-ratio: 16/9;
    }
}

#pdf-viewer {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;

    & > div {
        position: relative;
    }

    & canvas {
        display: block;
        border: 1px solid #13171f;
        touch-action: none; /* avoid scroll while signing with pen/finger */
    }

    & #signature-canvas {
        position: absolute;
        left: 0;
        top: 0;
        pointer-events: auto;
    }
}

.bg-1 {
    background-color: var(--pico-primary-background) !important;
}

.bg-2 {
    background-color: var(--pico-color-blue-700) !important;
    &:hover {
        background-color: var(--pico-color-blue-800) !important;
    }
}

.bg-muted {
    background-color: var(--pico-color-grey-800) !important;
    &:hover {
        background-color: var(--pico-color-grey-900) !important;
    }
}
