/* Catering and events (M10): the order form, the portal, the pipeline
   board, production, and the documents' print styles. Colours from the theme. */

/* The order form -------------------------------------------------------------- */
.catering-days {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.catering-day {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    min-height: 3.25rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    cursor: pointer;
    font-size: 0.875rem;
}

.catering-day__state {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.btn-check:checked + .catering-day {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--bs-white);
}

.btn-check:checked + .catering-day .catering-day__state {
    color: inherit;
}

.btn-check:disabled + .catering-day {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-check:focus-visible + .catering-day {
    outline: 3px solid var(--bs-primary);
    outline-offset: 2px;
}

.catering-pack {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.catering-pack:last-child {
    border-bottom: 0;
}

.catering-pack__picture {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: var(--bs-border-radius);
    flex-shrink: 0;
}

.catering-pack__body {
    flex: 1;
    min-width: 0;
}

.catering-pack__qty {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.catering-pack__qty .form-control {
    width: 5rem;
}

.catering-summary {
    position: sticky;
    top: calc(var(--site-header-height, 0px) + 1rem);
}

/* The pipeline board -------------------------------------------------------- */
.pipeline {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(15rem, 1fr);
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.pipeline__column {
    background: var(--bs-tertiary-bg);
    border-radius: var(--bs-border-radius-lg);
    padding: 0.5rem;
    min-height: 10rem;
}

.pipeline__head {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.25rem 0.25rem 0.5rem;
}

.pipeline__card {
    display: block;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: var(--bs-border-radius);
    padding: 0.5rem 0.625rem;
    margin-bottom: 0.5rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.875rem;
}

.pipeline__card:hover {
    border-color: var(--bs-primary);
}

.pipeline__due {
    font-size: 0.75rem;
    color: var(--bs-warning-text-emphasis);
}

/* The portal ------------------------------------------------------------------ */
.portal-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
}

.portal-steps li {
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: var(--bs-tertiary-bg);
}

.portal-steps li.is-done {
    background: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
}

.portal-steps li.is-now {
    background: var(--bs-primary);
    color: var(--bs-white);
}

/* Production labels: 2 by 4 inches --------------------------------------------- */
.catering-labels {
    display: grid;
    grid-template-columns: repeat(auto-fill, 4in);
    gap: 0.125in;
}

.catering-label {
    width: 4in;
    height: 2in;
    border: 1px dashed var(--bs-border-color);
    padding: 0.125in 0.2in;
    font-size: 11pt;
    overflow: hidden;
    break-inside: avoid;
}

.catering-beo-sheet {
    overflow: hidden;
}

/* Printing a document or a production sheet ------------------------------------- */
@media print {
    .catering-print-hide,
    .admin-head,
    nav,
    header,
    footer {
        display: none !important;
    }

    .catering-label {
        border: 0;
    }

    .card,
    .catering-beo-sheet {
        border: 0 !important;
        box-shadow: none !important;
    }
}
