body {
    background-color: skyblue;
}

.flowndo-demo-badge {
    position: sticky;
    z-index: 1100;
    top: 0;
    flex: 0 0 auto;
    width: 100%;
    padding: calc(0.5rem + env(safe-area-inset-top)) 0.75rem 0.5rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    background: #7c2d12;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.3);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 1;
    pointer-events: none;
    text-align: center;
}

.service-header__logout-button {
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.service-header__logout-icon {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
}

.service-header--compact .service-header__venue-name {
    font-size: 1.25rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--bs-heading-color);
}

.service-header--compact .service-header__compact-row {
    row-gap: 0.5rem;
}

.service-header--compact .service-header__switcher {
    flex: 0 1 240px;
    min-width: 0;
}

.service-header--compact .service-header__compact-actions {
    flex: 1 1 520px;
    min-width: 0;
    justify-content: flex-end;
    margin-left: auto;
}

.service-header--compact .context-switcher {
    flex-wrap: nowrap;
}

.service-header--compact .context-switcher-prefix {
    display: none;
}

.service-header--compact .context-switcher-prefix,
.service-header--compact .context-switcher-title {
    font-size: 1.25rem;
    letter-spacing: 0;
}

.service-header--compact .context-switcher-select-shell {
    min-width: 180px;
    max-width: 280px;
}

.service-header--compact .service-header__logout {
    display: inline-flex;
    align-items: center;
}

.service-header--compact .service-header__action-button,
.service-header--compact .service-header__logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
}

.service-header--compact .service-header__logout-button--icon-only {
    width: 2.35rem;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 991.98px) {
    .service-header--compact .service-header__compact-actions {
        justify-content: flex-start;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .service-header--compact .context-switcher {
        flex-wrap: wrap;
    }

    .service-header--compact .service-header__switcher,
    .service-header--compact .service-header__compact-actions,
    .service-header--compact .service-header__logout,
    .service-header--compact .service-header__compact-actions .btn {
        width: 100%;
    }
}

body.service-orders-page .service-order-card {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    border-radius: 0.35rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

body.service-orders-page .service-order-card--manual {
    background-color: #f1f4f8;
}

body.service-orders-page .service-order-card__main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.45rem 0.6rem 0.35rem;
}

body.service-counter-payments-page .service-counter-payment-card {
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

body.service-orders-page .service-order-card__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

body.service-orders-page .service-order-card__identity {
    flex: 0 1 auto;
    min-width: 0;
}

body.service-orders-page .service-order-card__code {
    font-size: 1.55rem;
    overflow-wrap: anywhere;
}

body.service-orders-page .service-order-card__table-identity {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    max-width: 100%;
    white-space: nowrap;
}

body.service-orders-page .service-order-card__table-label {
    flex: 0 0 auto;
    color: var(--bs-secondary-color);
    font-size: 1rem;
    font-weight: 600;
}

body.service-orders-page .service-order-card__table-number {
    min-width: 0;
    overflow: hidden;
    color: var(--bs-info-text-emphasis);
    font-size: 1.35rem;
    font-weight: 800;
    text-overflow: ellipsis;
}

body.service-orders-page .service-order-card__time {
    flex: 1 1 auto;
    line-height: 1.1;
    min-width: 0;
}

body.service-orders-page .service-order-card__items {
    margin-top: 0.25rem;
}

body.service-orders-page .service-order-items {
    display: grid;
    gap: 0.08rem;
}

body.service-orders-page .service-order-item {
    line-height: 1.12;
    overflow-wrap: anywhere;
}

body.service-orders-page .service-order-item__line {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    max-width: 100%;
    min-width: 0;
}

body.service-orders-page .service-order-item__quantity {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

body.service-orders-page .service-order-item__name {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.service-orders-page .service-order-option-list {
    margin: 0.08rem 0 0.12rem 1.35rem;
    padding: 0;
    color: #7c2d12;
    font-size: 0.94rem;
    font-style: italic;
    font-weight: 400;
    list-style: none;
    line-height: 1.1;
}

body.service-orders-page .service-order-option-list li {
    position: relative;
    padding-left: 0.1rem;
}

body.service-orders-page .service-order-option-list li::before {
    content: "-";
    position: absolute;
    left: -0.75rem;
}

body.service-orders-page .service-order-card__actions {
    display: flex;
    flex: 0 0 auto;
    padding: 0.3rem 0.6rem 0.45rem;
}

body.service-orders-page .service-order-card__form {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
}

body.service-orders-page .service-order-card__action {
    flex: 1 1 auto;
    min-height: 2.15rem;
    padding: 0.3rem 0.45rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.1;
}

body.service-orders-page .service-order-card__action.btn-primary {
    --bs-btn-color: #0d47a1;
    --bs-btn-bg: #e8f2ff;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-color: #083b8a;
    --bs-btn-hover-bg: #d8e9ff;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-active-color: #083b8a;
    --bs-btn-active-bg: #cfe2ff;
    --bs-btn-active-border-color: #084298;
}

body.service-orders-page .service-order-card__action.btn-warning {
    --bs-btn-color: #7c4a00;
    --bs-btn-bg: #fff3cd;
    --bs-btn-border-color: #f0ad00;
    --bs-btn-hover-color: #6b3f00;
    --bs-btn-hover-bg: #ffe8a3;
    --bs-btn-hover-border-color: #d99b00;
    --bs-btn-active-color: #5c3600;
    --bs-btn-active-bg: #ffd86b;
    --bs-btn-active-border-color: #bf8600;
}

body.service-orders-page .service-order-card__action.btn-success {
    --bs-btn-color: #0f5132;
    --bs-btn-bg: #d1e7dd;
    --bs-btn-border-color: #198754;
    --bs-btn-hover-color: #0b3d26;
    --bs-btn-hover-bg: #badbcc;
    --bs-btn-hover-border-color: #146c43;
    --bs-btn-active-color: #06281a;
    --bs-btn-active-bg: #a3cfbb;
    --bs-btn-active-border-color: #0f5132;
}

@media (min-width: 576px) {
    body.service-orders-page {
        min-height: 100dvh;
        height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    body.service-orders-page > header {
        flex: 0 0 auto;
    }

    body.service-orders-page #service-orders-root {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    body.service-orders-page #service-orders-board {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    body.service-orders-page .service-orders-grid {
        flex: 1 1 0;
        min-height: 0;
        overflow: hidden;
        --bs-gutter-x: 0.35rem;
        --bs-gutter-y: 0.35rem;
    }

    body.service-orders-page .service-orders-grid > [class*="col-"] {
        display: flex;
        min-height: 0;
    }

    body.service-orders-page .service-orders-column {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        padding: 0;
    }

    body.service-orders-page .service-orders-column-header {
        flex: 0 0 auto;
        padding: 0.1rem 0.2rem 0.25rem;
    }

    body.service-orders-page .service-orders-list {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        padding: 0 0.15rem 0 0;
    }

    body.service-orders-page .service-order-card {
        flex-direction: row;
        align-items: stretch;
    }

    body.service-orders-page .service-order-card__main {
        padding: 0.45rem 0.6rem;
    }

    body.service-orders-page .service-order-card__code {
        font-size: 1.45rem;
    }

    body.service-orders-page .service-order-item {
        font-size: 1rem;
    }

    body.service-orders-page .service-order-card__actions {
        flex: 0 0 5.4rem;
        padding: 0.35rem 0.45rem 0.35rem 0;
    }

    body.service-orders-page .service-order-card__action {
        height: 100%;
        min-height: 3rem;
    }
}

@media (min-width: 768px) {
    body.service-orders-page .service-order-card__actions {
        flex-basis: 5.75rem;
    }
}

@media (min-width: 992px) {
    body.service-orders-page .service-order-card__actions {
        flex-basis: 6rem;
    }
}

body.service-orders-display-page {
    --display-accent: #4167b7;
    --display-accent-soft: rgba(65, 103, 183, 0.18);
    --display-bg: #132039;
    --display-bg-deep: #0b172b;
    --display-border: rgba(154, 177, 224, 0.46);
    --display-card-bg: #f1f5ff;
    --display-card-ready-bg: #e8f6ed;
    --display-ink: #071936;
    --display-muted: rgba(226, 234, 250, 0.74);
    --display-warning: #f0ad00;
    --display-success: #2f9a5d;
    height: 100dvh;
    overflow: hidden;
    background:
        linear-gradient(180deg, #182846 0, var(--display-bg) 15rem),
        var(--display-bg);
    color: #f3f7ff;
}

body.service-orders-display-page .service-orders-display {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(0.65rem, 1.2vw, 1.15rem);
    width: 100%;
    height: 100dvh;
    min-height: 0 !important;
    overflow: hidden;
    padding: clamp(0.85rem, 1.45vw, 1.45rem) clamp(1rem, 2vw, 2rem) clamp(0.9rem, 1.5vw, 1.5rem);
}

body.service-orders-display-page .service-orders-display__header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    min-height: clamp(4.8rem, 8vw, 7rem);
    padding-bottom: clamp(0.5rem, 0.9vw, 0.8rem);
    border-bottom: 1px solid rgba(152, 177, 235, 0.2);
}

body.service-orders-display-page .service-orders-display__venue {
    min-width: 0;
    overflow: hidden;
    color: #f3f7ff;
    font-size: clamp(1.5rem, 3.1vw, 3rem);
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.service-orders-display-page .service-orders-display__logo {
    display: block;
    width: auto;
    height: clamp(3.1rem, 5.4vw, 4.7rem);
    margin-top: clamp(-0.55rem, -0.7vw, -0.25rem);
}

body.service-orders-display-page .service-orders-display__title {
    justify-self: end;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: #f3f7ff;
    font-size: clamp(1.25rem, 2.55vw, 2.65rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.service-orders-display-page .service-orders-display__live-status {
    position: absolute;
    right: 0;
    bottom: clamp(0.45rem, 0.75vw, 0.75rem);
    display: grid;
    justify-items: end;
    gap: 0.25rem;
    color: rgba(226, 234, 250, 0.78);
    font-size: clamp(0.76rem, 1vw, 0.98rem);
    font-weight: 650;
    line-height: 1.1;
}

body.service-orders-display-page .service-orders-display__live-ok {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

body.service-orders-display-page .service-orders-display__live-ok span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #5aa8ff;
    box-shadow: 0 0 0 0.18rem rgba(90, 168, 255, 0.16);
}

body.service-orders-display-page .service-orders-display__refresh-status {
    color: #ffd86b;
}

body.service-orders-display-page .service-orders-display__live-status:has(.service-orders-display__refresh-status:not(.d-none)) .service-orders-display__live-ok {
    display: none;
}

body.service-orders-display-page #service-orders-display-board {
    min-height: 0;
    overflow: hidden;
}

body.service-orders-display-page .service-orders-display-board {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(0.65rem, 1.25vw, 1.35rem);
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

body.service-orders-display-page .service-orders-display-column {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: clamp(0.7rem, 1.15vw, 1.15rem);
    border: 1px solid rgba(65, 103, 183, 0.62);
    border-radius: 8px;
    background: rgba(8, 22, 42, 0.5);
    box-shadow: 0 16px 34px rgba(4, 12, 28, 0.16);
}

body.service-orders-display-page .service-orders-display-column.is-in-prep {
    border-color: rgba(240, 173, 0, 0.76);
}

body.service-orders-display-page .service-orders-display-column.is-ready {
    border-color: rgba(47, 154, 93, 0.78);
}

body.service-orders-display-page .service-orders-display-column__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    padding-bottom: clamp(0.45rem, 0.75vw, 0.8rem);
    border-bottom: 1px solid rgba(65, 103, 183, 0.58);
}

body.service-orders-display-page .service-orders-display-column.is-in-prep .service-orders-display-column__header {
    border-color: rgba(240, 173, 0, 0.62);
}

body.service-orders-display-page .service-orders-display-column.is-ready .service-orders-display-column__header {
    border-color: rgba(47, 154, 93, 0.58);
}

body.service-orders-display-page .service-orders-display-column__header h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #6ea8ff;
    font-size: clamp(1.35rem, 2.8vw, 2.95rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.service-orders-display-page .service-orders-display-column.is-in-prep .service-orders-display-column__header h2 {
    color: #ffc247;
}

body.service-orders-display-page .service-orders-display-column.is-ready .service-orders-display-column__header h2 {
    color: #9fd8ae;
}

body.service-orders-display-page .service-orders-display-column__header span {
    flex: 0 0 auto;
    color: currentColor;
    font-size: clamp(1.45rem, 2.8vw, 3.05rem);
    font-weight: 850;
    line-height: 1;
}

body.service-orders-display-page .service-orders-display-column__orders {
    display: grid;
    align-content: start;
    gap: clamp(0.4rem, 0.8vw, 0.75rem);
    min-height: 0;
    overflow: hidden;
    padding-top: clamp(0.55rem, 0.9vw, 0.95rem);
}

body.service-orders-display-page .service-orders-display-column__orders.is-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(0.45rem, 0.85vw, 0.85rem);
}

body.service-orders-display-page .service-orders-display-column__lane {
    display: grid;
    align-content: start;
    gap: clamp(0.4rem, 0.8vw, 0.75rem);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

body.service-orders-display-page .service-orders-display-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0.16rem;
    min-width: 0;
    min-height: clamp(3.9rem, 7.6vh, 6.4rem);
    overflow: hidden;
    padding: clamp(0.45rem, 0.95vw, 0.9rem) clamp(0.6rem, 1.15vw, 1.05rem);
    border: 1px solid rgba(154, 177, 224, 0.48);
    border-radius: 8px;
    background: var(--display-card-bg);
    box-shadow: 0 8px 18px rgba(4, 12, 28, 0.14);
    color: var(--display-ink);
}

body.service-orders-display-page .service-orders-display-column.is-ready .service-orders-display-card {
    border-color: rgba(47, 154, 93, 0.28);
    background: var(--display-card-ready-bg);
}

body.service-orders-display-page .service-orders-display-card__code {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    align-items: baseline;
    gap: clamp(0.25rem, 0.5vw, 0.45rem);
    overflow: visible;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: clamp(2rem, 3.35vw, 4.3rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 0.9;
    white-space: nowrap;
}

body.service-orders-display-page .service-orders-display-card__table-label {
    flex: 0 0 auto;
    font-family: var(--bs-body-font-family);
    font-size: 0.5em;
    font-weight: 800;
    line-height: 1;
}

body.service-orders-display-page .service-orders-display-card__table-number {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.service-orders-display-page .service-orders-display-card__pos {
    min-width: 0;
    overflow: hidden;
    color: rgba(7, 25, 54, 0.78);
    font-size: clamp(0.66rem, 0.95vw, 0.9rem);
    font-weight: 650;
    line-height: 1.05;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.service-orders-display-page .service-orders-display-column__empty {
    display: grid;
    min-height: clamp(4rem, 10vh, 7rem);
    place-items: center;
    border: 1px dashed rgba(154, 177, 224, 0.34);
    border-radius: 8px;
    color: var(--display-muted);
    font-size: clamp(0.92rem, 1.3vw, 1.15rem);
    font-weight: 650;
    text-align: center;
}

@media (max-width: 1199.98px) {
    body.service-orders-display-page .service-orders-display-card {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    body.service-orders-display-page .service-orders-display-card__pos {
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    body.service-orders-display-page .service-orders-display {
        padding: 0.75rem;
    }

    body.service-orders-display-page .service-orders-display__header {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "venue logo"
            "title title";
        gap: 0.4rem 0.75rem;
        min-height: auto;
        padding-bottom: 2.1rem;
    }

    body.service-orders-display-page .service-orders-display__venue {
        grid-area: venue;
    }

    body.service-orders-display-page .service-orders-display__logo {
        grid-area: logo;
        justify-self: end;
        height: clamp(2.1rem, 8vw, 3rem);
        margin-top: -0.25rem;
    }

    body.service-orders-display-page .service-orders-display__title {
        grid-area: title;
        justify-self: start;
        text-align: left;
    }

    body.service-orders-display-page .service-orders-display-board {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, minmax(0, 1fr));
    }

    body.service-orders-display-page .service-orders-display-column {
        padding: 0.55rem;
    }

    body.service-orders-display-page .service-orders-display-column__orders,
    body.service-orders-display-page .service-orders-display-column__lane {
        gap: 0.35rem;
    }

    body.service-orders-display-page .service-orders-display-column__orders.is-split {
        gap: 0.45rem;
    }

    body.service-orders-display-page .service-orders-display-card {
        min-height: 3.15rem;
        padding: 0.35rem 0.55rem;
    }
}
