body {
    min-height: 100vh;
}

body.app-loading {
    cursor: progress;
}

body.app-loading a,
body.app-loading button,
body.app-loading input,
body.app-loading select,
body.app-loading textarea {
    pointer-events: none;
}

.page-login {
    background:
        radial-gradient(circle at top left, rgba(255, 212, 163, 0.85), transparent 35%),
        linear-gradient(135deg, #fff6ea 0%, #f8fbff 55%, #eef7f2 100%);
}

.page-home {
    background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%);
}


@media (min-width: 992px) {
    .page-header {
        margin-bottom: 2rem !important;
    }

    .page-order .page-header + .d-flex {
        margin-top: 0.75rem;
    }

    .page-header-top {
        align-items: center !important;
        margin-bottom: 1.25rem;
    }

    .page-header-collapse {
        display: block !important;
    }

    .page-header-actions {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        width: auto;
        min-height: 4rem;
        padding: 0.45rem 0.5rem;
        border: 1px solid rgba(18, 52, 59, 0.1);
        border-radius: 1.35rem;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 14px 34px rgba(18, 52, 59, 0.08);
        backdrop-filter: blur(10px);
    }

    .page-header-nav,
    .page-header-tools {
        flex-wrap: nowrap;
        gap: 0.35rem;
    }

    .page-header-tools {
        margin-left: 0.75rem;
        padding-left: 0.75rem;
        border-left: 1px solid rgba(18, 52, 59, 0.08);
    }

    .page-header-actions .nav-button,
    .page-header-actions .language-switcher-button,
    .page-header-actions .btn {
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        color: #29414a;
    }

    .page-header-actions .nav-button,
    .page-header-actions .language-switcher-button {
        border-radius: 0.95rem;
    }

    .page-header-actions .nav-button {
        min-height: 2.8rem;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        font-weight: 500;
    }

    .page-header-actions .nav-button-icon-only {
        width: 2.8rem;
        padding-left: 0;
        padding-right: 0;
    }

    .page-header-actions .nav-button:hover,
    .page-header-actions .language-switcher-button:hover,
    .page-header-actions .btn:hover {
        background: rgba(18, 52, 59, 0.07);
        color: #12343b;
    }

    .page-header-actions .btn-dark,
    .page-header-actions .btn-dark:hover,
    .page-header-actions .nav-button.btn-dark,
    .page-header-actions .nav-button.btn-dark:hover {
        background: #12343b;
        color: #ffffff;
    }

    .page-header-actions .language-switcher {
        gap: 0.3rem;
    }

    .page-header-actions .language-switcher-button {
        min-width: 2.8rem;
        min-height: 2.8rem;
        padding: 0.45rem;
    }

    .page-header-actions .language-switcher .btn-dark {
        background: rgba(18, 52, 59, 0.12);
        color: #12343b;
    }
}
.page-home-user-meta {
    color: #5d6b73;
    font-size: 0.98rem;
    font-weight: 600;
}

.home-location-info-card {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(18, 52, 59, 0.08);
}

.home-location-info-text {
    color: #23424a;
    line-height: 1.7;
    white-space: normal;
}

.cash-difference-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cash-difference-pill.is-balanced {
    background: rgba(62, 141, 89, 0.12);
    color: #2d6b43;
}

.cash-difference-pill.is-shortage {
    background: rgba(202, 91, 70, 0.12);
    color: #9b3f2f;
}

.cash-difference-pill.is-overage {
    background: rgba(214, 143, 36, 0.14);
    color: #9b6912;
}

.page-users {
    background:
        radial-gradient(circle at top right, rgba(18, 52, 59, 0.08), transparent 28%),
        linear-gradient(180deg, #f6fbf8 0%, #ffffff 100%);
}

.page-locations {
    background:
        radial-gradient(circle at top left, rgba(44, 131, 147, 0.09), transparent 25%),
        linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
}

.page-categories {
    background:
        radial-gradient(circle at top left, rgba(125, 195, 160, 0.16), transparent 28%),
        linear-gradient(180deg, #f6fff8 0%, #ffffff 100%);
}

.page-products {
    background:
        radial-gradient(circle at top right, rgba(255, 202, 138, 0.18), transparent 25%),
        linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
}

.page-cash {
    background:
        radial-gradient(circle at top left, rgba(62, 141, 89, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fff8 0%, #ffffff 100%);
}

.page-settings {
    background:
        radial-gradient(circle at top left, rgba(54, 121, 90, 0.1), transparent 24%),
        linear-gradient(180deg, #f7fcf8 0%, #ffffff 100%);
}

.page-temperatures {
    background:
        radial-gradient(circle at top right, rgba(230, 134, 89, 0.12), transparent 24%),
        linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
}

.page-orders,
.page-order {
    background:
        radial-gradient(circle at top left, rgba(130, 154, 247, 0.12), transparent 24%),
        linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.login-shell {
    min-height: 100vh;
}

.login-card {
    max-width: 440px;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(34, 41, 47, 0.12);
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #12343b;
}

.brand-subtitle {
    color: #50656b;
}

.language-switcher-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0.5rem 0.7rem;
}

.language-flag {
    width: 1.6rem;
    height: auto;
    border-radius: 0.3rem;
    box-shadow: 0 1px 2px rgba(18, 52, 59, 0.12);
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: calc(1.5em + 0.75rem + 2px);
}

.nav-button-icon {
    font-size: 1rem;
    line-height: 1;
    flex: 0 0 auto;
}

.nav-button-label {
    line-height: 1;
}

.nav-button-icon-only {
    width: calc(1.5em + 0.75rem + 2px);
    padding-left: 0;
    padding-right: 0;
}

.nav-button-label-mobile-only {
    display: none;
}

.page-header-top {
    margin-bottom: 1rem;
}

.page-header-heading {
    min-width: 0;
}

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

.page-header-nav,
.page-header-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.page-header-tools form {
    margin: 0;
}

.page-header-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.page-header-mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.page-header-home-button,
.page-header-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    line-height: 1;
}

.page-header-home-button .nav-button-icon,
.page-header-toggle-icon {
    display: block;
    line-height: 1;
}

.page-header-toggle-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.page-card {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(18, 52, 59, 0.08);
}

.app-loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(248, 249, 255, 0.72);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease, visibility 0.16s ease;
    z-index: 2000;
}

.app-loading-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.app-loading-overlay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    min-width: 180px;
    padding: 1.3rem 1.4rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 50px rgba(18, 52, 59, 0.14);
}

.app-loading-spinner {
    width: 2.4rem;
    height: 2.4rem;
    border: 0.22rem solid rgba(18, 52, 59, 0.14);
    border-top-color: #12343b;
    border-radius: 50%;
    animation: app-loading-spin 0.75s linear infinite;
}

.app-loading-label {
    color: #42525c;
    font-size: 0.95rem;
    font-weight: 600;
}

@keyframes app-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.toolbar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.list-search-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.list-search-form .form-control,
.list-search-form .form-select {
    min-width: 0;
    flex: 1 1 260px;
}

.list-search-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 0 0 auto;
}

.list-pagination {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
}

.list-pagination-summary {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: #5c6c70;
    font-size: 0.95rem;
}

.list-pagination-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.orders-toolbar {
    display: grid;
    gap: 1rem;
}

.orders-toolbar-meta {
    min-width: 0;
}

.orders-toolbar-panel {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

.orders-toolbar-search {
    min-width: 0;
}

.orders-toolbar-search .list-search-form {
    width: 100%;
}

.orders-toolbar-search #orders-filter-month {
    flex: 0 1 170px;
}

.orders-toolbar-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.orders-export-form {
    display: flex;
    gap: 0.75rem;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
}

.orders-export-form .form-control,
.orders-export-form .form-select {
    min-width: 0;
}

.orders-export-form input[type="month"] {
    flex: 0 1 220px;
}

.orders-export-form .form-select {
    flex: 1 1 260px;
}

.orders-toolbar-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    flex: 0 0 auto;
}

@media (min-width: 992px) {
    .orders-toolbar {
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
        align-items: start;
    }

    .orders-toolbar-panel {
        padding: 1rem;
        border: 1px solid rgba(18, 52, 59, 0.08);
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.76);
        box-shadow: 0 16px 34px rgba(18, 52, 59, 0.06);
        backdrop-filter: blur(8px);
    }

    .orders-toolbar-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 991.98px) {
    .orders-toolbar-search #orders-filter-month,
    .orders-export-form {
        flex-basis: 100%;
    }

    .orders-toolbar-search #orders-filter-month,
    .orders-export-form input[type="month"],
    .orders-export-form .form-select {
        flex: 1 1 100%;
    }
}

.table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5c6c70;
}

.page-home [data-home-order-row] {
    cursor: pointer;
}

.page-home [data-home-order-row]:hover td,
.page-home [data-home-order-row]:focus-visible td {
    background: rgba(18, 52, 59, 0.05);
}

.page-home [data-home-order-row]:focus-visible {
    outline: 2px solid #12343b;
    outline-offset: -2px;
}

.page-orders [data-orders-table] tbody tr[data-order-row] {
    cursor: pointer;
}

.page-orders [data-orders-table] tbody tr[data-order-row]:hover td,
.page-orders [data-orders-table] tbody tr[data-order-row]:focus-visible td {
    background: rgba(18, 52, 59, 0.05);
}

.page-orders [data-orders-table] tbody tr[data-order-row]:focus-visible {
    outline: 2px solid #12343b;
    outline-offset: -2px;
}

.home-order-choice-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.home-order-choice-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.8rem;
    background: rgba(18, 52, 59, 0.07);
    color: #12343b;
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .page-header-collapse {
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(18, 52, 59, 0.08);
        border-radius: 1rem;
        box-shadow: 0 18px 40px rgba(18, 52, 59, 0.08);
        padding: 0.9rem;
    }

    .page-header-actions,
    .page-header-nav,
    .page-header-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header-tools {
        padding-top: 0.35rem;
        border-top: 1px solid rgba(18, 52, 59, 0.08);
    }

    .page-header-tools form {
        width: 100%;
    }

    .page-header-tools .btn,
    .page-header-nav .btn,
    .page-header-nav .nav-button,
    .page-header-tools .nav-button,
    .language-switcher {
        width: 100%;
    }

    .page-header-mobile-actions {
        width: auto;
        min-width: 0;
        flex: 0 0 auto;
    }

    .page-header-mobile-actions .btn {
        width: 2.75rem;
        min-width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        flex: 0 0 2.75rem;
    }

    .nav-button,
    .nav-button-icon-only {
        justify-content: flex-start;
        width: 100%;
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }

    .nav-button-label-mobile-only {
        display: inline;
    }

    .language-switcher {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .language-switcher-button {
        width: 100%;
    }
}

.hero-card {
    border: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, #12343b 0%, #1f5963 100%);
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(18, 52, 59, 0.2);
}

.home-user-card {
    max-width: 840px;
}

.home-user-card-title {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.15;
}

.home-user-card-meta {
    font-size: 0.95rem;
}

.meta-label {
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pill-active {
    background: #dff6e8;
    color: #17603b;
}

.status-pill-inactive {
    background: #f7e0e0;
    color: #8b2d2d;
}

.status-pill-draft {
    background: #eceff3;
    color: #42525c;
}

.status-pill-submitted {
    background: #fff1d6;
    color: #8a5600;
}

.status-pill-picked {
    background: #dff1ff;
    color: #005d8f;
}

.status-pill-delivered {
    background: #dff5e8;
    color: #17603b;
}

.status-pill-template {
    background: #f7ead1;
    color: #8a5600;
}

.temperature-select-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.temperature-graph-shell {
    position: relative;
    min-height: 420px;
}

.temperature-batch-list {
    display: grid;
    gap: 0.9rem;
}

.temperature-batch-row {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(18, 52, 59, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.temperature-batch-label {
    font-weight: 600;
    color: #12343b;
}

.temperature-group-row > td {
    background: rgba(18, 52, 59, 0.04);
    vertical-align: middle;
}

.temperature-group-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.temperature-group-toggle .bi {
    transition: transform 0.2s ease;
}

.temperature-group-toggle.is-open .bi {
    transform: rotate(180deg);
}

.temperature-group-details-card {
    margin: 0.35rem 0 1rem;
    padding: 0.5rem;
    border: 1px solid rgba(18, 52, 59, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
}

.temperature-group-details-card .table {
    margin-bottom: 0;
}

.temperature-group-details-card thead th {
    font-size: 0.8rem;
}

.quick-action-card {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(18, 52, 59, 0.08);
}

.quick-action-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
}

.quick-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(18, 52, 59, 0.08), rgba(18, 52, 59, 0.16));
    color: #12343b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.quick-action-icon .bi {
    font-size: 2rem;
    line-height: 1;
}

.order-summary-card {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(18, 52, 59, 0.08);
}

.order-status-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 100%;
}

.order-status-timeline::before,
.order-status-timeline::after {
    content: "";
    position: absolute;
    top: 1.35rem;
    left: calc(100% / 8);
    right: calc(100% / 8);
    height: 2px;
    border-radius: 999px;
}

.order-status-timeline::before {
    background: #d8e1e6;
}

.order-status-timeline::after {
    right: auto;
    width: calc((100% - (100% / 4)) * var(--timeline-progress, 0) / 100);
    background: #0f5c82;
}

.order-status-timeline-step {
    position: relative;
    min-width: 0;
    z-index: 1;
    text-align: center;
}

.order-status-timeline-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    border: 1px solid #c8d2d8;
    background: #ffffff;
    color: #60717c;
    line-height: 0;
    margin-bottom: 0.75rem;
    margin-left: auto;
    margin-right: auto;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.order-status-timeline-marker:focus-visible {
    outline: 2px solid #12343b;
    outline-offset: 3px;
}

.order-status-timeline-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.order-status-timeline-content {
    padding: 0 0.5rem;
}

.order-status-timeline-label {
    font-weight: 600;
    color: #1f2b33;
}

.order-status-timeline-time {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: #6c757d;
}

.order-status-timeline-step.is-complete .order-status-timeline-marker {
    border-color: #8aa8ba;
    background: #eef6fb;
    color: #1e5d7a;
}

.order-status-timeline-step.is-active .order-status-timeline-marker {
    border-color: #0f5c82;
    background: #0f5c82;
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .order-status-timeline {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.2rem;
    }

    .order-status-timeline::before,
    .order-status-timeline::after {
        top: 1rem;
        left: calc(100% / 8);
        right: calc(100% / 8);
        width: auto;
        height: 2px;
    }

    .order-status-timeline::after {
        right: auto;
        width: calc((100% - (100% / 4)) * var(--timeline-progress, 0) / 100);
        height: 2px;
    }

    .order-status-timeline-step {
        width: auto;
        text-align: center;
    }

    .order-status-timeline-content {
        padding: 0 0.1rem;
    }

    .order-status-timeline-marker {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.45rem;
        margin-left: auto;
        margin-right: auto;
    }

    .order-status-timeline-step.is-time-open {
        z-index: 2;
    }

    .order-status-timeline-step.is-time-open .order-status-timeline-marker {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(18, 52, 59, 0.16);
    }

    .order-status-timeline-icon {
        width: 0.95rem;
        height: 0.95rem;
    }

    .order-status-timeline-label {
        font-size: 0.68rem;
        line-height: 1.15;
        word-break: break-word;
    }

    .order-status-timeline-time {
        display: none;
        position: absolute;
        left: 50%;
        top: calc(100% + 0.35rem);
        transform: translateX(-50%);
        min-width: max-content;
        margin-top: 0;
        padding: 0.35rem 0.55rem;
        border: 1px solid rgba(18, 52, 59, 0.1);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 12px 24px rgba(18, 52, 59, 0.12);
        white-space: nowrap;
        font-size: 0.72rem;
        color: #42525c;
    }

    .order-status-timeline-step.is-time-open .order-status-timeline-time {
        display: inline-flex;
        align-items: center;
    }
}

.order-row-actions {
    width: 52px;
}

.order-row-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
}

.order-row-remove-icon {
    width: 0.95rem;
    height: 0.95rem;
}

.order-product-column {
    width: 40%;
    min-width: 240px;
}

.product-picker-button {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #ced4da;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #212529;
    text-align: left;
}

.product-picker-button:hover {
    border-color: #9aa6b2;
    background: #f8f9fa;
}

.product-picker-button-static {
    cursor: default;
}

.product-picker-button-static:hover {
    border-color: #ced4da;
    background: #ffffff;
}

.product-picker-button-empty {
    color: #6c757d;
}

.product-picker-button-label {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.quantity-stepper {
    display: grid;
    grid-template-columns: 2.15rem minmax(0, 1fr) 2.15rem;
    align-items: center;
    min-width: 0;
    border: 1px solid #ced4da;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #ffffff;
}

.quantity-stepper.is-readonly {
    background: #f8f9fa;
}

.quantity-stepper-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.4rem;
    border: 0;
    border-radius: 0;
    background: rgba(18, 52, 59, 0.06);
    color: #12343b;
    padding: 0;
}

.quantity-stepper-button:disabled {
    opacity: 0.45;
}

.quantity-stepper-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 2.4rem;
    padding: 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #12343b;
    user-select: none;
}

.order-rows-table-template-stock {
    min-width: 52rem;
}

.quantity-adjust-modal-dialog {
    max-width: 28rem;
}

.quantity-adjust-modal-content {
    border-radius: 1.5rem;
    overflow: hidden;
}

.quantity-adjust-panel {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr) 4.2rem;
    align-items: center;
    gap: 0.9rem;
}

.quantity-adjust-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.2rem;
    height: 4.2rem;
    border: 0;
    border-radius: 1.1rem;
    background: rgba(18, 52, 59, 0.08);
    color: #12343b;
    font-size: 1.2rem;
}

.quantity-adjust-button:disabled {
    opacity: 0.4;
}

.quantity-adjust-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.2rem;
    border-radius: 1.1rem;
    background: #f8fafb;
    color: #12343b;
    font-size: 1.75rem;
    font-weight: 700;
}

.product-picker-button-icon {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
}

@media (max-width: 767.98px) {
    .page-order #order-rows-table.order-rows-table-template-stock {
        table-layout: auto;
        min-width: 42rem;
    }

    .page-order #order-rows-table {
        table-layout: fixed;
        width: 100%;
    }

    .page-order #order-rows-table th,
    .page-order #order-rows-table td {
        padding: 0.45rem 0.3rem;
        vertical-align: middle;
    }

    .page-order #order-rows-table thead th {
        font-size: 0.68rem;
        letter-spacing: 0.03em;
        line-height: 1.15;
        white-space: normal;
        word-break: break-word;
    }

    .page-order #order-rows-table .order-product-column {
        width: auto;
        min-width: 0;
    }

    .page-order #order-rows-table th.order-product-column,
    .page-order #order-rows-table td.order-product-column {
        width: 50%;
    }

    .page-order #order-rows-table th:not(.order-product-column):not(.order-row-actions),
    .page-order #order-rows-table td:not(.order-product-column):not(.order-row-actions):not(.text-end) {
        width: 4.35rem;
    }

    .page-order #order-rows-table .order-row-actions,
    .page-order #order-rows-table td.text-end {
        width: 2.6rem;
    }

    .page-order #order-rows-table .product-picker-button {
        padding: 0.3rem 0.4rem;
        border-radius: 0.6rem;
        min-height: 2rem;
    }

    .page-order #order-rows-table .quantity-stepper {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 0.65rem;
        cursor: pointer;
    }

    .page-order #order-rows-table .quantity-stepper-value {
        min-height: 2.1rem;
    }

    .page-order #order-rows-table .quantity-stepper-button {
        display: none;
    }

    .page-order #order-rows-table .quantity-stepper-value {
        padding: 0 0.15rem;
        font-size: 0.86rem;
    }

    .page-order #order-rows-table .product-picker-button-label {
        font-size: 0.83rem;
        line-height: 1.2;
        display: block;
        overflow: visible;
    }

    .page-order #order-rows-table .order-row-remove-button {
        width: 2rem;
        height: 2rem;
    }

    .page-order #order-rows-table .order-row-remove-icon {
        width: 0.82rem;
        height: 0.82rem;
    }

    .page-order #order-rows-table .order-row-category-row td {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
        font-size: 0.68rem;
    }
}

.product-picker-list {
    max-height: 34rem;
    overflow: auto;
}

.product-picker-category-row td {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eef3f6;
    color: #42525c;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#product-picker-table tbody tr[data-product-picker-row] {
    cursor: pointer;
}

#product-picker-table tbody tr[data-product-picker-row]:hover td,
#product-picker-table tbody tr[data-product-picker-row]:focus-visible td {
    background: rgba(18, 52, 59, 0.05);
}

#product-picker-table tbody tr[data-product-picker-row]:focus-visible {
    outline: 2px solid #12343b;
    outline-offset: -2px;
}

.product-picker-modal-dialog {
    max-width: 1080px;
}

.product-picker-notice {
    margin-bottom: 0.75rem;
    min-height: 1.5rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.14s ease, transform 0.14s ease;
    color: #17603b;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-picker-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media print {
    .page-products .toolbar,
    .page-products .nav-button,
    .page-products .language-switcher,
    .page-products .btn,
    .page-products .modal,
    .page-products .app-loading-overlay,
    .page-products footer,
    .page-products .print-hidden {
        display: none !important;
    }

    .page-products .page-card,
    .page-products .quick-action-card,
    .page-products .order-summary-card {
        box-shadow: none !important;
        border: 0 !important;
    }

    .page-products main.container,
    .page-products .container {
        max-width: none !important;
        width: 100% !important;
    }

    .page-products table {
        font-size: 12px;
    }

    .page-order .nav-button,
    .page-order .language-switcher,
    .page-order .btn,
    .page-order .modal,
    .page-order .app-loading-overlay,
    .page-order footer,
    .page-order .alert,
    .page-order .print-hidden {
        display: none !important;
    }

    .page-order .page-card,
    .page-order .quick-action-card,
    .page-order .order-summary-card {
        box-shadow: none !important;
        border: 0 !important;
    }

    .page-order main.container,
    .page-order .container {
        max-width: none !important;
        width: 100% !important;
    }

    .page-order table {
        font-size: 12px;
    }

    .page-order input,
    .page-order textarea,
    .page-order select {
        border: 0 !important;
        box-shadow: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: transparent !important;
        color: #000000 !important;
    }

    .page-order textarea {
        resize: none;
    }

    .page-order .form-text {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    main.container.py-5 {
        padding-top: 1.25rem !important;
        padding-bottom: 2rem !important;
    }

    .page-home .table-responsive {
        overflow-x: visible;
    }

    .page-home .table-responsive .table {
        min-width: 0;
    }

    .page-home .table-responsive .table thead {
        display: none;
    }

    .page-home .table-responsive .table tbody {
        display: grid;
        gap: 0.75rem;
    }

    .page-home .table-responsive .table tbody tr[data-home-order-row] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "number status"
            "title title"
            "location location";
        border: 1px solid rgba(18, 52, 59, 0.14);
        border-radius: 1rem;
        background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
        box-shadow: 0 12px 28px rgba(18, 52, 59, 0.09);
        overflow: hidden;
    }

    .page-home .table-responsive .table tbody tr[data-home-order-row] td {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        border: 0;
        text-align: left;
        white-space: normal;
    }

    .page-home .table-responsive .table tbody tr[data-home-order-row] td + td {
        border-top: 1px solid rgba(18, 52, 59, 0.08);
    }

    .page-home .table-responsive .table tbody tr[data-home-order-row] td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.35rem;
        color: #5c6c70;
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        text-align: left;
    }

    .page-home .table-responsive .table tbody tr[data-home-order-row] .home-order-cell-number {
        grid-area: number;
        padding-bottom: 0.55rem;
        border-top: 0;
        font-weight: 700;
        background: linear-gradient(90deg, rgba(18, 52, 59, 0.08), rgba(18, 52, 59, 0.02));
    }

    .page-home .table-responsive .table tbody tr[data-home-order-row] .home-order-cell-status {
        grid-area: status;
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        padding-bottom: 0.55rem;
        border-top: 0;
        background: linear-gradient(270deg, rgba(18, 52, 59, 0.08), rgba(18, 52, 59, 0.02));
    }

    .page-home .table-responsive .table tbody tr[data-home-order-row] .home-order-cell-number::before,
    .page-home .table-responsive .table tbody tr[data-home-order-row] .home-order-cell-status::before {
        display: none;
    }

    .page-home .table-responsive .table tbody tr[data-home-order-row] .home-order-cell-title {
        grid-area: title;
        padding-top: 0.7rem;
    }

    .page-home .table-responsive .table tbody tr[data-home-order-row] .home-order-cell-title {
        font-weight: 600;
        color: #14252d;
    }

    .page-home .table-responsive .table tbody tr[data-home-order-row] .home-order-cell-location {
        grid-area: location;
        color: #41525b;
    }

    .quick-action-card {
        border-radius: 20px;
    }

    .quick-action-card .card-body {
        padding: 1rem !important;
    }

    .quick-action-icon {
        width: 3.25rem;
        height: 3.25rem;
        margin-bottom: 0.75rem;
        border-radius: 1rem;
    }

    .quick-action-icon .bi {
        font-size: 1.6rem;
    }

    .quick-action-card h3 {
        font-size: 1rem;
        margin-bottom: 0;
    }
}

.order-row-category-row td {
    background: #eef3f6;
    color: #42525c;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-picker-feedback {
    animation: product-picker-pulse 0.9s ease;
}

@keyframes product-picker-pulse {
    0% {
        background: rgba(25, 135, 84, 0.22);
    }

    100% {
        background: transparent;
    }
}

.weekday-selector {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.weekday-option {
    position: relative;
}

.weekday-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.weekday-option label {
    display: block;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ced4da;
    border-radius: 0.8rem;
    background: #ffffff;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.weekday-option input:checked + label {
    border-color: #212529;
    background: #212529;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(18, 52, 59, 0.14);
}

.weekday-option input:focus-visible + label {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

@media (max-width: 576px) {
    .weekday-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}