﻿/* Gestion de eventos */
.master-list,
.inventory-events,
.count-register-page {
    --inventory-app-accent: var(--app-accent, var(--theme-accent, #3C3E55));
    --inventory-app-accent-strong: var(--app-accent-strong, var(--theme-accent-strong, #303247));
    --inventory-action-bg: linear-gradient(
        135deg,
        color-mix(in srgb, var(--inventory-app-accent) 78%, #2b3048),
        color-mix(in srgb, var(--inventory-app-accent-strong) 74%, #1f2438)
    );
    --inventory-action-color: var(--app-accent-contrast, var(--theme-accent-contrast, #ffffff));
    --inventory-action-shadow: none;
    --inventory-action-soft: color-mix(in srgb, var(--inventory-app-accent) 10%, white);
    --inventory-action-border: color-mix(in srgb, var(--inventory-app-accent) 24%, #dbe4ef);
    --inventory-action-text: color-mix(in srgb, var(--inventory-app-accent) 72%, #1f2d48);
}

.count-summary-page__filters-panel {
    display: grid;
    gap: 1rem;
}

.count-summary-page__filters {
    align-items: end;
    display: grid;
    gap: .9rem 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.count-summary-page__refresh {
    min-height: 46px;
    min-width: 0;
    white-space: nowrap;
}

.count-summary-page__summary-panel {
    padding: 1rem 1.1rem;
}

.count-summary-page__summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.count-summary-page__summary-grid article {
    cursor: pointer;
}

.count-summary-page__summary-grid article.is-mobile-active {
    background: linear-gradient(135deg, rgba(31, 44, 76, .96), rgba(58, 82, 136, .94));
    border-color: rgba(31, 44, 76, .82);
    box-shadow: 0 14px 32px rgba(22, 38, 61, .22);
}

.count-summary-page__summary-grid article.is-mobile-active span,
.count-summary-page__summary-grid article.is-mobile-active strong {
    color: #f8fbff;
}

.count-summary-page__summary-grid article.is-mobile-active .count-register-page__summary-icon {
    background: rgba(255, 255, 255, .18);
    color: #f8fbff;
}

.count-summary-page__activity-panel,
.count-summary-page__detail-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem 1.1rem;
    position: relative;
}

.count-summary-page__clear-filter {
    min-height: 38px;
    min-width: 0;
    white-space: nowrap;
}

.count-summary-page__activity-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.count-summary-page__mini-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 249, 255, .92));
    border: 1px solid #d7e4f2;
    border-radius: 1rem;
    display: grid;
    gap: .85rem;
    min-height: 0;
    padding: .95rem 1rem;
}

.count-summary-page__mini-head,
.count-summary-page__detail-head {
    align-items: baseline;
    display: flex;
    gap: .65rem;
    justify-content: space-between;
}

.count-summary-page__mini-head strong,
.count-summary-page__detail-head strong {
    color: #182946;
    font-size: 1rem;
    line-height: 1.2;
}

.count-summary-page__mini-head span,
.count-summary-page__detail-head span {
    color: #60738d;
    font-size: .82rem;
}

.count-summary-page__mini-list,
.count-summary-page__detail-list {
    display: grid;
    gap: .75rem;
}

.count-summary-page__mini-item,
.count-summary-page__detail-item {
    align-items: start;
    background: #ffffff;
    border: 1px solid #d7e4f2;
    border-radius: .95rem;
    display: grid;
    gap: .8rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .85rem .95rem;
}

.count-summary-page__mini-main,
.count-summary-page__detail-main {
    display: grid;
    gap: .38rem;
    min-width: 0;
}

.count-summary-page__mini-main small,
.count-summary-page__detail-main small {
    color: #6a7d97;
    font-size: .8rem;
    line-height: 1.4;
}

.count-summary-page__mini-headline,
.count-summary-page__detail-headline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.count-summary-page__mini-headline strong,
.count-summary-page__detail-headline strong {
    color: #14243f;
    font-size: .96rem;
    line-height: 1.2;
}

.count-summary-page__mini-side,
.count-summary-page__detail-side {
    align-items: end;
    display: grid;
    gap: .2rem;
    justify-items: end;
    min-width: 6.5rem;
    text-align: right;
}

.count-summary-page__mini-side span,
.count-summary-page__detail-side span {
    color: #152542;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.08;
}

.count-summary-page__mini-side small,
.count-summary-page__detail-side small {
    color: #6a7d97;
    display: block;
    font-size: .76rem;
    line-height: 1.25;
}

.count-summary-page__detail-panel .count-register-page__history-note,
.count-summary-page__mini-panel .count-register-page__history-note {
    box-sizing: border-box;
    display: flex;
    width: 100%;
}

.inventory-master-page__filters-panel,
.inventory-master-page__summary-panel,
.inventory-master-page__list-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.inventory-master-page__filters {
    align-items: end;
    display: grid;
    gap: .9rem 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.inventory-master-page__filters--locations {
    grid-template-columns: minmax(13rem, .85fr) minmax(0, 1fr) auto;
}

.inventory-master-page__refresh {
    min-height: 46px;
    min-width: 0;
    white-space: nowrap;
}

.inventory-master-page__summary-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-master-page__list {
    display: grid;
    gap: .8rem;
}

.inventory-master-page__item {
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(244, 248, 255, .94));
    border: 1px solid #d7e4f2;
    border-radius: 1rem;
    display: grid;
    gap: .8rem 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, .85fr);
    padding: .9rem 1rem;
}

.inventory-master-page__item.is-inactive {
    background: linear-gradient(180deg, rgba(255, 248, 248, .98), rgba(252, 241, 241, .94));
}

.inventory-master-page__item-main,
.inventory-master-page__item-side {
    display: grid;
    gap: .3rem;
    min-width: 0;
}

.inventory-master-page__item-main strong,
.inventory-master-page__item-side span {
    color: #14243f;
    font-size: .98rem;
    line-height: 1.2;
}

.inventory-master-page__item-main small {
    color: #6a7d97;
    font-size: .8rem;
    line-height: 1.35;
}

.inventory-master-page__item-side {
    justify-items: end;
    text-align: right;
}

.inventory-master-page__item-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.inventory-master-page__badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    padding: .35rem .6rem;
}

.inventory-master-page__badge--active {
    background: #dcfce7;
    color: #166534;
}

.inventory-master-page__badge--inactive {
    background: #fee2e2;
    color: #b91c1c;
}

.inventory-warehouse-page__panel {
    display: grid;
    gap: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.inventory-warehouse-page {
    display: grid;
    gap: 1rem;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: calc(100dvh - 5.5rem);
}

.inventory-warehouse-page__toolbar,
.inventory-warehouse-page__result-bar,
.inventory-warehouse-page__footer {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
}

.inventory-warehouse-page__toolbar {
    align-items: end;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 1.2rem;
    padding-top: 1.2rem;
}

.inventory-warehouse-page__search-field {
    max-width: 38rem;
}

.inventory-warehouse-page__search-shell {
    align-items: center;
    background: #fff;    
    border-radius: 1rem;
    display: grid;
    gap: .7rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 48px;
    padding: 0 1rem;
}

.inventory-warehouse-page__search-shell input {
    background: transparent;
    border: 0;
    color: #172845;
    font-size: 1rem;
    min-height: 46px;
    outline: none;
    width: 100%;
}

.inventory-warehouse-page__search-icon {
    color: #6f8099;
    font-size: 1rem;
}

.inventory-warehouse-page__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
}

.inventory-warehouse-page__action {
    min-height: 46px;
    min-width: 0;
    padding: 0 1.2rem;
    white-space: nowrap;
}

.inventory-warehouse-page__action--primary {
    padding: 0 1.45rem;
}

.inventory-warehouse-page__result-bar {
    border-top: 1px solid #dbe5f1;
    color: #304763;
    font-size: 1rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.inventory-warehouse-page__desktop {
    display: block;
    min-height: 0;
}

.inventory-warehouse-page__mobile-list {
    display: none;
}

.inventory-warehouse-page__table-shell {
    border: 1px solid #d7e4f2;
    border-radius: 1rem;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    margin: 0 1.35rem 1.35rem;
    overflow: hidden;
}

.inventory-warehouse-page__table-scroll {
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
}

.inventory-warehouse-page__table {
    background: #fff;
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

.inventory-warehouse-page__table thead th {
    background: linear-gradient(180deg, rgba(245, 249, 255, .96), rgba(242, 247, 255, .94));
    border-bottom: 1px solid #d7e4f2;
    color: #182946;
    font-size: .88rem;
    font-weight: 800;
    padding: .85rem .9rem;
    text-align: left;
}

.inventory-warehouse-page__table thead th:first-child {
    width: 5.5rem;
}

.inventory-warehouse-page__table thead th:nth-child(2) {
    width: 24%;
}

.inventory-warehouse-page__table thead th:nth-child(4) {
    width: 8.5rem;
}

.inventory-warehouse-page__table thead th:last-child {
    width: 8.25rem;
}

.inventory-warehouse-page__table tbody td {
    border-bottom: 1px solid #e5edf7;
    color: #172845;
    font-size: .92rem;
    padding: .8rem .9rem;
    vertical-align: middle;
}

.inventory-warehouse-page__table tbody tr:last-child td {
    border-bottom: 0;
}

.inventory-warehouse-page__status {
    align-items: center;
    background: #f0fdf4;
    border: 1px solid #9ae6b4;
    border-radius: .78rem;
    color: #15763a;
    display: inline-flex;
    font-size: .92rem;
    font-weight: 700;
    gap: .45rem;
    min-height: 36px;
    padding: 0 .8rem;
    white-space: nowrap;
}

.inventory-warehouse-page__status i {
    font-size: .55rem;
}

.inventory-warehouse-page__feature-flags {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
    min-width: 0;
}

.inventory-warehouse-page__feature-flag {
    align-items: center;
    background: #f6f9fd;
    border: 1px solid #d7e4f2;
    border-radius: 999px;
    color: #304763;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 800;
    gap: .32rem;
    line-height: 1;
    min-height: 28px;
    padding: 0 .55rem;
    white-space: nowrap;
}

.inventory-warehouse-page__feature-flag i {
    color: #466189;
    font-size: .72rem;
}

.inventory-warehouse-page__row-actions {
    align-items: center;
    display: flex;
    gap: .65rem;
    justify-content: flex-start;
}

.inventory-warehouse-page__row-button,
.inventory-warehouse-page__icon-action {
    min-height: 42px;
}

.inventory-warehouse-page__row-button {
    padding: 0 .9rem;
}

.inventory-warehouse-page__icon-action {
    min-width: 42px;
    padding: 0;
}

.inventory-warehouse-page__footer {
    align-items: center;
    border-top: 1px solid #dbe5f1;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 64px;
}

.inventory-warehouse-page__footer span {
    color: #304763;
    font-size: .96rem;
}

.inventory-warehouse-page__pager {
    align-items: center;
    display: flex;
    gap: .55rem;
}

.inventory-warehouse-page__pager-button {
    min-height: 40px;
    min-width: 40px;
    padding: 0;
}

.inventory-warehouse-page__page-current {
    align-items: center;
    background: #1d3b88;
    border-radius: .8rem;
    color: #fff !important;
    display: inline-flex;
    font-size: .95rem !important;
    font-weight: 800;
    height: 40px;
    justify-content: center;
    min-width: 40px;
}

.inventory-warehouse-page__mobile-card {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.94));
    border: 1px solid #d7e4f2;
    border-radius: 1rem;
    display: grid;
    gap: .8rem;
    padding: .9rem;
}

.inventory-warehouse-page__mobile-scroll {
    display: grid;
    gap: .75rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: .2rem;
    scrollbar-gutter: stable;
}

.inventory-warehouse-page__mobile-head {
    display: grid;
    gap: .6rem;
}

.inventory-warehouse-page__mobile-side {
    align-items: flex-end;
    display: grid;
    gap: .42rem;
    justify-items: end;
}

.inventory-warehouse-page__mobile-head strong {
    color: #152542;
    display: block;
    font-size: .96rem;
    line-height: 1.2;
}

.inventory-warehouse-page__mobile-head small {
    color: #6a7d97;
    display: block;
    font-size: .78rem;
    line-height: 1.35;
    margin-top: .25rem;
}

.inventory-warehouse-page__mobile-actions {
    display: flex;
    gap: .6rem;
}

.inventory-warehouse-page__row-button--compact {
    font-size: .72rem;
    font-weight: 800;
    gap: .32rem;
    min-height: 26px;
    padding: 0 .52rem;
}

.inventory-warehouse-page__feature-flags--mobile {
    margin-top: .55rem;
}

.inventory-warehouse-page__footer--mobile {
    padding-left: 0;
    padding-right: 0;
}

.inventory-warehouse-page__modal-card {
    max-height: min(92vh, 980px);
}

.inventory-warehouse-page__modal-card--edit .form-action-modal__footer {
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.inventory-warehouse-page__modal-card--edit .form-action-modal__footer button:first-child {
    grid-column: 2;
}

.inventory-warehouse-page__modal-card--edit .form-action-modal__footer button:last-child {
    grid-column: 1;
    grid-row: 1;
}

.inventory-warehouse-page__modal-body {
    display: grid;
    gap: 1rem;
    max-height: min(78vh, 840px);
    overflow: auto;
    padding: 0;
}

.inventory-warehouse-page__mobile-tabs {
    display: none;
}

.inventory-warehouse-page__modal-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, .55fr);
    padding: 0rem;
}

.inventory-warehouse-page__modal-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 250, 255, .94));
    border: 1px solid #d7e4f2;
    display: grid;
    gap: .95rem;
    min-width: 0;
    padding: 1rem 1.05rem;
}

.inventory-warehouse-page__tab-panel {
    min-width: 0;
}

.inventory-warehouse-page__modal-section--side {
    align-content: start;
}

.inventory-warehouse-page__modal-section--full,
.inventory-warehouse-page__modal-footer {
    grid-column: 1 / -1;
}

.inventory-warehouse-page__modal-section-head {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .75rem;
    justify-content: space-between;
}

.inventory-warehouse-page__modal-section-head strong {
    color: #172845;
    font-size: 1rem;
    line-height: 1.2;
}

.inventory-warehouse-page__modal-section-head span {
    color: #6a7d97;
    font-size: .82rem;
}

.inventory-warehouse-page__form-grid {
    display: grid;
    gap: .85rem .95rem;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.inventory-warehouse-page__field {
    display: grid;
    gap: .42rem;
    min-width: 0;
}

.inventory-warehouse-page__field label {
    color: #304763;
    font-size: .83rem;
    font-weight: 700;
}

.inventory-warehouse-page__field input {
    background: #fff;
    border: 1px solid #d7e4f2;
    border-radius: .9rem;
    color: #172845;
    font-size: .95rem;
    min-height: 44px;
    outline: none;
    padding: 0 .9rem;
    width: 100%;
}

.inventory-warehouse-page__field.is-invalid label {
    color: #b91c1c;
}

.inventory-warehouse-page__field.is-invalid input {
    background: #fff7f7;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

.inventory-warehouse-page__field.is-invalid .count-register-page__select-shell {
    background: #fff7f7;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

.inventory-warehouse-page__division-select {
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    border-radius: .95rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .035);
    min-height: 46px;
}

.inventory-warehouse-page__division-select::after {
    color: #5b6f89;
    right: .95rem;
}

.inventory-warehouse-page__division-select select {
    color: #172845;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.2;
    min-height: 46px;
    padding: 0 .95rem 0 .95rem;
    text-align: left;
}

.inventory-warehouse-page__division-select select.is-placeholder {
    color: #72839a;
    font-weight: 600;
}

.inventory-warehouse-page__division-select select option {
    color: #172845;
}

.inventory-warehouse-page__field-error {
    color: #b91c1c;
    font-size: .74rem;
    font-weight: 800;
    line-height: 1.25;
}

.inventory-warehouse-page__field--sm {
    grid-column: span 2;
}

.inventory-warehouse-page__field--md {
    grid-column: span 4;
}

.inventory-warehouse-page__field--lg {
    grid-column: span 6;
}

.inventory-warehouse-page__field--xl {
    grid-column: span 8;
}

.inventory-warehouse-page__check-grid {
    display: grid;
    gap: .7rem;
}

.inventory-warehouse-page__check {
    align-items: center;
    background: #fff;
    border: 1px solid #d7e4f2;
    border-radius: .95rem;
    display: flex;
    gap: .65rem;
    min-height: 44px;
    padding: .65rem .85rem;
}

.inventory-warehouse-page__check input {
    accent-color: #1d3b88;
    height: 16px;
    margin: 0;
    width: 16px;
}

.inventory-warehouse-page__check span {
    color: #172845;
    font-size: .9rem;
    line-height: 1.2;
}

.inventory-warehouse-page__check--inline {
    align-self: end;
}

.inventory-warehouse-page__add-location {
    min-height: 40px;
    padding: 0 .95rem;
}

.inventory-warehouse-page__location-entry {
    align-items: end;
    display: grid;
    gap: .85rem .95rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(6rem, .5fr) auto;
}

.inventory-warehouse-page__locations-shell {
    border: 1px solid #d7e4f2;
    border-radius: 1rem;
    overflow: hidden;
}

.inventory-warehouse-page__locations-table {
    background: #fff;
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

.inventory-warehouse-page__locations-table thead th {
    background: linear-gradient(180deg, rgba(245, 249, 255, .96), rgba(242, 247, 255, .94));
    border-bottom: 1px solid #d7e4f2;
    color: #182946;
    font-size: .84rem;
    font-weight: 800;
    padding: .9rem .85rem;
    text-align: left;
}

.inventory-warehouse-page__locations-table tbody td {
    border-bottom: 1px solid #e5edf7;
    color: #172845;
    font-size: .88rem;
    padding: .85rem;
    vertical-align: middle;
}

.inventory-warehouse-page__locations-table tbody tr:last-child td {
    border-bottom: 0;
}

.inventory-warehouse-page__locations-empty {
    color: #6a7d97 !important;
    padding: 1rem !important;
    text-align: center;
}

.inventory-warehouse-page__status--sm {
    font-size: .8rem;
    min-height: 32px;
    padding: 0 .65rem;
}

.inventory-warehouse-page__status--inactive {
    background: #fef2f2;
    border-color: #fda4af;
    color: #b91c1c;
}

.inventory-warehouse-page__modal-footer {
    background: linear-gradient(180deg, rgba(248, 251, 255, .92), rgba(243, 247, 253, .92));
}

.inventory-warehouse-page__audit {
    align-items: center;
    color: #60738d;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.5rem;
    font-size: .82rem;
}

@media (max-width: 1080px) {
    .inventory-master-page__filters,
    .inventory-master-page__filters--locations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-master-page__refresh {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .inventory-master-page__item {
        grid-template-columns: 1fr;
    }

    .inventory-master-page__item-side {
        justify-items: start;
        text-align: left;
    }

    .inventory-warehouse-page__toolbar {
        grid-template-columns: 1fr;
    }

    .inventory-warehouse-page__actions {
        justify-content: flex-start;
    }

    .inventory-warehouse-page__modal-layout {
        grid-template-columns: 1fr;
    }

    .inventory-warehouse-page__modal-section--side,
    .inventory-warehouse-page__modal-section--full,
    .inventory-warehouse-page__modal-footer {
        grid-column: auto;
    }

    .inventory-warehouse-page__location-entry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .inventory-master-page__filters-panel,
    .inventory-master-page__summary-panel,
    .inventory-master-page__list-panel {
        padding: .8rem;
    }

    .inventory-master-page__filters,
    .inventory-master-page__filters--locations,
    .inventory-master-page__summary-grid,
    .inventory-master-page__summary-grid--two {
        grid-template-columns: 1fr;
    }

    .inventory-master-page__refresh {
        grid-column: auto;
        justify-self: stretch;
    }

    .inventory-master-page__item {
        gap: .55rem;
        padding: .8rem .85rem;
    }

    .inventory-warehouse-page__toolbar,
    .inventory-warehouse-page__result-bar,
    .inventory-warehouse-page__footer {
        padding-left: .85rem;
        padding-right: .85rem;
    }

    .inventory-warehouse-page__toolbar {
        gap: .7rem;
        padding-bottom: .9rem;
        padding-top: .9rem;
    }

    .inventory-warehouse-page__search-field {
        max-width: none;
    }

    .inventory-warehouse-page__search-shell {
        gap: .55rem;
        min-height: 44px;
        padding: 0 .85rem;
    }

    .inventory-warehouse-page__search-shell input {
        font-size: .92rem;
        min-height: 42px;
    }

    .inventory-warehouse-page__actions {
        display: grid;
        gap: .55rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .inventory-warehouse-page__action {
        font-size: .88rem;
        min-height: 42px;
        padding: 0 .8rem;
    }

    .inventory-warehouse-page__action--primary {
        grid-column: auto;
        padding: 0 .7rem;
    }

    .inventory-warehouse-page__desktop {
        display: none;
    }

    .inventory-warehouse-page__mobile-list {
        display: grid;
        gap: .75rem;
        grid-template-rows: minmax(0, 1fr) auto;
        min-height: 0;
        padding: 0 .85rem .85rem;
    }

    .inventory-warehouse-page__mobile-scroll {
        padding-right: 0;
    }

    .inventory-warehouse-page__mobile-card {
        gap: .65rem;
        padding: .75rem .8rem;
    }

    .inventory-warehouse-page__mobile-head {
        align-items: start;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .inventory-warehouse-page__mobile-head strong {
        font-size: .92rem;
    }

    .inventory-warehouse-page__mobile-head small {
        font-size: .75rem;
        margin-top: .18rem;
    }

    .inventory-warehouse-page__feature-flags--mobile {
        margin-top: .4rem;
    }

    .inventory-warehouse-page__feature-flag {
        font-size: .7rem;
        min-height: 24px;
        padding: 0 .48rem;
    }

    .inventory-warehouse-page__status {
        font-size: .84rem;
        min-height: 32px;
        padding: 0 .68rem;
    }

    .inventory-warehouse-page__mobile-side {
        gap: .35rem;
    }

    .inventory-warehouse-page__row-button,
    .inventory-warehouse-page__icon-action,
    .inventory-warehouse-page__pager-button,
    .inventory-warehouse-page__page-current {
        min-height: 40px;
    }

    .inventory-warehouse-page__footer {
        align-items: start;
        flex-direction: column;
        gap: .8rem;
        min-height: 0;
        padding-bottom: 0;
        padding-top: 0;
    }

    .inventory-warehouse-page__footer span {
        font-size: .84rem;
    }

    .inventory-warehouse-page__pager {
        align-self: flex-end;
    }

    .inventory-warehouse-page__modal-card {
        border-radius: 1rem;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        max-height: calc(100dvh - 16px);
        width: min(100%, calc(100vw - 18px)) !important;
    }

    .inventory-warehouse-page__modal-body {
        display: flex;
        flex-direction: column;
        gap: 0;
        max-height: none;
        min-height: 0;
        overflow: hidden;
        padding: 0;
    }

    .inventory-warehouse-page__mobile-tabs {
        background: #ffffff;
        border-bottom: 1px solid #dbe5f1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        position: sticky;
        top: 0;
        z-index: 3;
    }

    .inventory-warehouse-page__mobile-tabs button {
        background: transparent;
        border: 0;
        border-bottom: 3px solid transparent;
        color: #617491;
        cursor: pointer;
        font-size: .78rem;
        font-weight: 800;
        min-height: 44px;
        padding: 0 .35rem;
    }

    .inventory-warehouse-page__mobile-tabs button.is-active {
        border-bottom-color: #1d2f57;
        color: #13233f;
    }

    .inventory-warehouse-page__modal-layout {
        flex: 1 1 auto;
        gap: .85rem;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: .85rem;
    }

    .inventory-warehouse-page__form-grid,
    .inventory-warehouse-page__location-entry {
        grid-template-columns: 1fr;
    }

    .inventory-warehouse-page__field--sm,
    .inventory-warehouse-page__field--md,
    .inventory-warehouse-page__field--lg,
    .inventory-warehouse-page__field--xl {
        grid-column: auto;
    }

    .inventory-warehouse-page__division-select,
    .inventory-warehouse-page__division-select select {
        min-height: 44px;
    }

    .inventory-warehouse-page__division-select select {
        font-size: .9rem;
        padding-left: .85rem;
        padding-right: 2.2rem;
    }

    .inventory-warehouse-page__check-grid {
        gap: .55rem;
    }

    .inventory-warehouse-page__modal-section {
        padding: .85rem;
    }

    .inventory-warehouse-page__tab-panel {
        display: none;
    }

    .inventory-warehouse-page__tab-panel.is-active {
        display: grid;
    }

    .inventory-warehouse-page__modal-section-head {
        align-items: start;
        flex-direction: column;
    }

    .inventory-warehouse-page__locations-shell {
        overflow-x: auto;
    }

    .inventory-warehouse-page__locations-table {
        min-width: 42rem;
    }

    .inventory-warehouse-page__audit {
        align-items: start;
        flex-direction: column;
        gap: .35rem;
    }

    .inventory-warehouse-page__modal-card .form-action-modal__header {
        min-height: 54px;
        padding: .8rem 1rem;
    }

    .inventory-warehouse-page__modal-card .form-action-modal__title-wrap strong {
        font-size: .95rem;
    }

    .inventory-warehouse-page__modal-card .form-action-modal__title-wrap span {
        font-size: .72rem;
    }

    .inventory-warehouse-page__modal-card .form-action-modal__footer {
        background: #ffffff;
        border-top: 1px solid #dbe5f1;
        display: grid;
        gap: .6rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: .75rem .85rem calc(.75rem + env(safe-area-inset-bottom, 0px));
    }

    .inventory-warehouse-page__modal-card .form-action-modal__footer button {
        min-height: 44px;
        min-width: 0;
        padding: 0 .7rem;
    }

    .inventory-warehouse-page__modal-card .form-action-modal__footer button:first-child {
        grid-column: 1 / -1;
    }

    .inventory-warehouse-page__modal-card--edit .form-action-modal__footer {
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    }

    .inventory-warehouse-page__modal-card--edit .form-action-modal__footer button:first-child {
        grid-column: 2;
    }

    .inventory-warehouse-page__modal-card--edit .form-action-modal__footer button:last-child {
        grid-column: 1;
        grid-row: 1;
    }

    .form-action-modal__overlay:has(.count-register-page__traceability-modal-card) {
        align-items: end;
        justify-items: stretch;
        padding: 0;
    }

    .form-action-modal__overlay:has(.count-register-page__traceability-modal-card) .count-register-page__traceability-modal-card {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 1.15rem;
        border-top-right-radius: 1.15rem;
        margin: 0;
        max-height: min(78dvh, 42rem) !important;
        max-width: 100vw;
        overflow-x: hidden;
        width: min(100vw, calc(100vw - 2px)) !important;
    }

    .count-register-page__traceability-modal-body {
        min-width: 0;
        overflow-x: hidden;
        padding: 0;
    }

    .count-register-page__traceability-modal-content {
        gap: .8rem;
        min-width: 0;
        overflow-x: hidden;
        padding: .85rem .85rem 0;
    }

    .count-register-page__traceability-modal-content .count-register-page__field {
        gap: .35rem;
        min-width: 0;
        padding-left: 0;
        padding-top: 0;
    }

    .count-register-page__traceability-modal-content .count-register-page__field input {
        font-size: .88rem;
        min-height: 42px;
        min-width: 0;
        padding: 0 .72rem;
    }

    .count-register-page__traceability-dates {
        gap: .65rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        overflow-x: hidden;
    }

    .count-register-page__traceability-modal-card .form-action-modal__footer {
        display: grid;
        gap: .7rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        padding: .8rem .85rem calc(.9rem + env(safe-area-inset-bottom, 0px));
    }

    .count-register-page__traceability-modal-card .form-action-modal__footer button {
        min-height: 46px;
        min-width: 0;
        padding: 0 .72rem;
    }
}

@media (max-width: 430px) {
    .inventory-warehouse-page__toolbar,
    .inventory-warehouse-page__result-bar,
    .inventory-warehouse-page__footer {
        padding-left: .72rem;
        padding-right: .72rem;
    }

    .inventory-warehouse-page__toolbar {
        gap: .6rem;
        padding-bottom: .75rem;
        padding-top: .75rem;
    }

    .inventory-warehouse-page__search-shell {
        min-height: 40px;
        padding: 0 .72rem;
    }

    .inventory-warehouse-page__search-shell input {
        font-size: .88rem;
        min-height: 38px;
    }

    .inventory-warehouse-page__actions {
        gap: .45rem;
    }

    .inventory-warehouse-page__action {
        font-size: .8rem;
        min-height: 38px;
        padding: 0 .6rem;
    }

    .inventory-warehouse-page__mobile-list {
        gap: .6rem;
        padding: 0 .72rem .72rem;
    }

    .inventory-warehouse-page__mobile-card {
        gap: .58rem;
        padding: .68rem .72rem;
    }

    .inventory-warehouse-page__mobile-head strong {
        font-size: .88rem;
    }

    .inventory-warehouse-page__mobile-head small {
        font-size: .72rem;
        margin-top: .14rem;
    }

    .inventory-warehouse-page__feature-flag {
        font-size: .66rem;
        min-height: 22px;
        padding: 0 .42rem;
    }

    .inventory-warehouse-page__status {
        font-size: .78rem;
        min-height: 30px;
        padding: 0 .58rem;
    }

    .inventory-warehouse-page__row-button {
        font-size: .8rem;
        min-height: 36px;
        padding: 0 .6rem;
    }

    .inventory-warehouse-page__row-button--compact {
        font-size: .68rem;
        gap: .28rem;
        min-height: 24px;
        padding: 0 .46rem;
    }

    .inventory-warehouse-page__footer span {
        font-size: .76rem;
    }
}

@media (min-width: 641px) {
    .inventory-warehouse-page .count-register-page__shell {
        display: grid;
        grid-template-rows: minmax(0, 1fr);
        height: calc(100dvh - 12.5rem);
        min-height: calc(100dvh - 12.5rem);
    }

    .inventory-warehouse-page__panel {
        height: 100%;
        min-height: calc(100dvh - 14rem);
    }

    .inventory-warehouse-page__desktop {
        display: grid;
        min-height: 0;
        overflow: hidden;
    }

    .inventory-warehouse-page__table-shell {
        height: 100%;
    }
}

@media (max-width: 1080px) {
    .count-summary-page__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .count-summary-page__refresh {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .count-summary-page__summary-grid,
    .count-summary-page__activity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .count-summary-page__filters {
        gap: .7rem;
        grid-template-columns: 1fr;
    }

    .count-summary-page__refresh {
        grid-column: auto;
        justify-self: stretch;
    }

    .count-summary-page__summary-panel,
    .count-summary-page__activity-panel,
    .count-summary-page__detail-panel {
        padding: .8rem;
    }

    .count-summary-page__summary-grid,
    .count-summary-page__activity-grid {
        grid-template-columns: 1fr;
    }

    .count-summary-page__mini-item,
    .count-summary-page__detail-item {
        gap: .55rem;
        grid-template-columns: minmax(0, 1fr);
    }

    .count-summary-page__mini-side,
    .count-summary-page__detail-side {
        justify-items: start;
        min-width: 0;
        text-align: left;
    }

    .count-summary-page__mini-head,
    .count-summary-page__detail-head {
        align-items: start;
        flex-direction: column;
    }
}

.inventory-events__filters {
        display: grid;
        gap: 1rem;
        grid-template-columns: minmax(260px, 2fr) minmax(180px, 1fr) auto auto;
        align-items: end;
    }

    .inventory-events__field {
        display: grid;
        gap: .45rem;
    }

    .inventory-events__field label,
    .inventory-events__check span {
        color: #48566a;
        font-size: .88rem;
        font-weight: 700;
    }

    .inventory-events__field input,
    .inventory-events__field select {
        border: 1px solid #d3deea;
        border-radius: .85rem;
        min-height: 44px;
        outline: none;
        padding: .72rem .9rem;
        transition: border-color .18s ease, box-shadow .18s ease;
    }

    .inventory-events__field input:focus,
    .inventory-events__field select:focus {
        border-color: #1f7a8c;
        /*box-shadow: 0 0 0 4px rgba(31, 122, 140, .12);*/
    }

    .inventory-events__check {
        align-items: center;
        display: inline-flex;
        gap: .55rem;
        min-height: 44px;
    }

    .inventory-events__check--inline {
        align-self: center;
        margin-top: 1.55rem;
    }

    .inventory-events__filter-actions,
    .inventory-events__grid-actions {
        display: flex;
        gap: .75rem;
    }

    .inventory-events__primary-button,
    .inventory-events__ghost-button,
    .inventory-events__table-button {
        align-items: center;
        border-radius: .85rem;
        cursor: pointer;
        display: inline-flex;
        gap: .55rem;
        justify-content: center;
        min-height: 42px;
        padding: 0 .95rem;
        transition: transform .18s ease, border-color .18s ease;
    }

    .inventory-events__primary-button {
        background: var(--inventory-action-bg);
        border: none;
        color: var(--inventory-action-color);
    }

    .inventory-events__ghost-button,
    .inventory-events__table-button {
        background: #fff;
        border: 1px solid #d7e2ef;
        color: #1f2d3d;
    }

    .inventory-events__primary-button:hover,
    .inventory-events__ghost-button:hover,
    .inventory-events__table-button:hover {
        transform: translateY(-1px);
    }

    .inventory-events__metric-card {
        background: linear-gradient(180deg, #fbfdff, #eff6ff);
        border: 1px solid #d8e4f0;
        border-radius: 1rem;
        display: grid;
        gap: .25rem;
        padding: 1rem 1.1rem;
    }

    .inventory-events__metric-card span,
    .inventory-events__metric-card small {
        color: #607086;
    }

    .inventory-events__metric-card strong {
        color: #132238;
        font-size: 1.5rem;
    }

    .inventory-events__summary {
        align-items: center;
        background: linear-gradient(90deg, rgba(15, 118, 110, .08), rgba(29, 78, 216, .08));
        border: 1px solid #dbe7f3;
        border-radius: 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
        margin-bottom: 1rem;
        padding: 1rem 1.15rem;
    }

    .inventory-events__summary p {
        color: #617286;
        margin: .3rem 0 0;
    }

    .inventory-events__summary-tags {
        display: flex;
        flex-wrap: wrap;
        gap: .65rem;
    }

    .inventory-events__summary-tags span {
        background: #fff;
        border: 1px solid #d9e6f2;
        border-radius: 999px;
        color: #35506d;
        font-size: .85rem;
        padding: .42rem .8rem;
    }

    .inventory-events__cell-title {
        color: #122033;
        font-weight: 700;
    }

    .inventory-events__cell-note {
        color: #6a7d91;
        font-size: .82rem;
        margin-top: .2rem;
    }

    .inventory-events__badge {
        border-radius: 999px;
        display: inline-flex;
        font-size: .78rem;
        font-weight: 700;
        justify-content: center;
        padding: .3rem .65rem;
        width: fit-content;
    }

    .inventory-events__badge--open {
        background: #dcfce7;
        color: #166534;
    }

    .inventory-events__badge--disabled {
        background: #e5e7eb;
        color: #4b5563;
    }

    .inventory-events__state {
        background: #f8fbff;
        border: 1px dashed #cad9e8;
        border-radius: 1rem;
        padding: 1.25rem;
    }

    .inventory-events__state p {
        color: #617286;
        margin: .35rem 0 0;
    }

    .inventory-events__modal-body {
        background:
            radial-gradient(circle at top left, rgba(29, 78, 216, .08), transparent 28%),
            linear-gradient(180deg, #ffffff, #f7fbff);
    }

    .inventory-events__form-alert {
        background: #fff7ed;
        border: 1px solid #fed7aa;
        border-radius: .95rem;
        color: #9a3412;
        display: grid;
        gap: .25rem;
        margin-bottom: 1rem;
        padding: .9rem 1rem;
    }

    .inventory-events__form-grid {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .inventory-events__toggle-row {
        align-items: center;
        border: 1px solid #dbe4ef;
        border-radius: 1rem;
        display: grid;
        gap: 1rem;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 72px;
        padding: 0 1.1rem;
    }

    .inventory-events__field--wide {
        grid-column: span 2;
    }

    @media (max-width: 920px) {
        .inventory-events__filters,
        .inventory-events__form-grid {
            grid-template-columns: 1fr;
        }

        .inventory-events__toggle-row {
            grid-template-columns: 1fr;
            min-height: auto;
            padding: .85rem 1rem;
        }

        .inventory-events__field--wide {
            grid-column: span 1;
        }

        .inventory-events__check--inline {
            margin-top: 0;
        }

        .inventory-events__filter-actions {
            justify-content: stretch;
        }

        .inventory-events__filter-actions > button,
        .inventory-events__grid-actions > button {
            flex: 1 1 auto;
        }
    }

/* Registro de conteo */
.count-register-page {
        display: grid;
        gap: 0rem;
    }

    .count-register-page__hero {
        align-items: end;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
    }

    .count-register-page__eyebrow {
        color: #5d7186;
        display: block;
        font-size: .85rem;
        font-weight: 800;
        letter-spacing: .08em;
        margin-bottom: .35rem;
        text-transform: uppercase;
    }

    .count-register-page__hero h1 {
        color: #14233a;
        font-size: clamp(2rem, 4vw, 3rem);
        margin: 0;
    }

    .count-register-page__hero p {
        color: #62748a;
        margin: .45rem 0 0;
        max-width: 760px;
    }

    .count-register-page__hero-metrics {
        display: flex;
        flex-wrap: wrap;
        gap: .65rem;
    }

    .count-register-page__hero-metrics span {
        background: #fff;
        border: 1px solid #d8e3ee;
        border-radius: 999px;
        color: #334e68;
        font-size: .85rem;
        padding: .48rem .82rem;
    }

    .count-register-page__shell {
        background:
            radial-gradient(circle at top right, rgba(245, 158, 11, .11), transparent 28%),
            radial-gradient(circle at top left, rgba(37, 99, 235, .09), transparent 24%),
            linear-gradient(180deg, #ffffff, #f8fbff);
        border: 1px solid #d9e3ef;
        border-radius: 1.6rem;
    }

    .count-register-page__tabs {
        background: #fff;
        border: 1px solid #dfe8f2;
        border-left: none;
        border-right: none;
        border-top: none;
        border-radius: 3px;
        display: grid;
        gap: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: .9rem;
        overflow: visible;
    }

    .count-register-page__tab {
        align-items: center;
        background: #fff;
        border: none;
        border-right: 1px solid #e7edf4;
        border-radius: 0;
        color: #73859a;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        gap: .45rem;
        font-weight: 700;
        justify-content: center;
        min-height: 52px;
        padding: .45rem .35rem;
        position: relative;
        transition: .18s ease;
        white-space: nowrap;
    }

    .count-register-page__tab:last-child {
        border-right: none;
    }

    .count-register-page__tab i {
        font-size: .95rem;
    }

    .count-register-page__tab.is-active {
        background: #fff;
        border-color: #e7edf4;
        box-shadow: none;
        color: var(--inventory-action-text) !important;
    }

    .count-register-page__tab.is-active::after {
        background: var(--inventory-action-text);
        border-radius: 999px 999px 0 0;
        bottom: -1px;
        content: "";
        height: 4px;
        left: 16%;
        position: absolute;
        right: 16%;
    }

    .count-register-page__tab.is-active i,
    .count-register-page__tab.is-active span,
    .count-register-page__tab.is-active {
        color: var(--inventory-action-text) !important;
    }

    .count-register-page__tab:disabled {
        cursor: not-allowed;
        opacity: .48;
    }

    .count-register-page__tab:hover:not(:disabled) {
        color: var(--inventory-action-text);
    }

    .count-register-page__panel,
    .count-register-page__state,
    .count-register-page__empty {
        display: grid;
        gap: 1rem;
    }

    .count-register-page__panel {
        background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(247,250,255,.9));
        border: 1px solid #e2eaf3;
        border-radius: 1.25rem;
        padding: 10px;
        /* box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
        padding: 0rem; */
    }

    .count-register-page__loading {
        min-height: clamp(260px, 46vh, 520px);
    }

    .count-register-page__state,
    .count-register-page__empty {
        background: #f8fbff;
        border: 1px dashed #cad6e3;
        border-radius: 1rem;
        padding: 1.2rem;
    }

    .count-register-page__state--error {
        background: #fff7f7;
        border-color: #f0c6c6;
    }

    .count-register-page__grid,
    .count-register-page__summary-grid {
        display: grid;
        gap: 1rem;
    }

    .count-register-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .count-register-page__summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .count-register-page__field {
        display: grid;
        gap: .45rem;
        padding-left: 11px;
        padding-top: 9px;
    }

    .count-register-page__field label {
        color: #32465d;
        font-size: .9rem;
        font-weight: 800;
    }

    .count-register-page__field select,
    .count-register-page__field input,
    .count-register-page__search input {
        background: #fff;
        border: 1px solid #d4e0ec;
        border-radius: 1rem;
        min-height: 54px;
        padding: 0 .95rem;
    }

    .count-register-page__field input,
    .count-register-page__search input {
        box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
    }

    .count-register-page__field input:focus,
    .count-register-page__search input:focus,
    .count-register-page__field select:focus {
        /* border-color: #93b1f9; */
        /*box-shadow: 0 0 0 4px var(--inventory-action-soft);*/
        outline: none;
    }

    .count-register-page__select-shell {
        align-items: center;
        background:
            linear-gradient(180deg, #ffffff, #f8fbff),
            linear-gradient(135deg, rgba(37,99,235,.06), rgba(245,158,11,.05));
        border: 1px solid #d4e0ec;
        border-radius: 1rem;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
        display: grid;
        min-height: 54px;
        overflow: hidden;
        position: relative;
    }

    .count-register-page__select-shell::after {
        color: #5a6f89;
        content: "\f107";
        font-family: "Font Awesome 6 Free";
        font-size: .92rem;
        font-weight: 900;
        pointer-events: none;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .count-register-page__select-shell:focus-within {
        border-color: #93b1f9;
        box-shadow: 0 0 0 4px var(--inventory-action-soft);
    }

    .count-register-page__select-shell select {
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        border: none;
        box-shadow: none;
        color: #15263d;
        font-weight: 700;
        padding-right: 2.8rem;
        width: 100%;
    }

    .count-register-page__select-shell select:disabled {
        color: #60748a;
        cursor: not-allowed;
    }

    .count-register-page__field--inline-card,
    .count-register-page__search,
    .count-register-page__entry-box,
    .count-register-page__history-head {
        grid-column: 1 / -1;
    }

    .count-register-page__info-card,
    .count-register-page__summary-grid article,
    .count-register-page__entry-box {
        background: #fff;
        border: 1px solid #dbe4ef;
        border-radius: 1rem;
        padding: 1rem 1.1rem;
        box-shadow: 0 16px 30px rgba(15, 23, 42, .04);
    }

    .count-register-page__entry-box {
        background:
            radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--inventory-app-accent) 16%, transparent), transparent 42%),
            linear-gradient(180deg, color-mix(in srgb, var(--inventory-app-accent) 7%, #ffffff), #ffffff 68%);
        border-color: color-mix(in srgb, var(--inventory-app-accent) 22%, #dbe4ef);
    }

    .count-register-page__info-card strong,
    .count-register-page__summary-grid strong,
    .count-register-page__entry-copy strong {
        color: #14233a;
        display: block;
        font-size: 1rem;
    }

    .count-register-page__info-card span,
    .count-register-page__summary-grid span,
    .count-register-page__summary-grid article span,
    .count-register-page__entry-copy span,
    .count-register-page__entry-copy small,
    .count-register-page__history-head span {
        color: #66788d;
    }

    .count-register-page__summary-grid article {
        background:
            linear-gradient(180deg, rgba(32,58,114,.92), rgba(44,70,133,.96)),
            linear-gradient(135deg, rgba(245,158,11,.15), transparent);
        border: none;
        color: #fff;
        overflow: hidden;
        position: relative;
    }

    .count-register-page__summary-grid article::after {
        background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%);
        content: "";
        height: 140px;
        position: absolute;
        right: -40px;
        top: -50px;
        width: 140px;
    }

    .count-register-page__summary-grid article span,
    .count-register-page__summary-grid article strong {
        color: #fff;
        position: relative;
        z-index: 1;
    }

    .count-register-page__summary-grid article span {
        font-size: .78rem;
        letter-spacing: .08em;
        opacity: .82;
        text-transform: uppercase;
    }

    .count-register-page__summary-icon {
        align-items: center;
        background: rgba(255, 255, 255, .16);
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 999px;
        display: inline-flex;
        height: 2.2rem;
        justify-content: center;
        margin-bottom: .55rem;
        width: 2.2rem;
    }

    .count-register-page__config-actions,
    .count-register-page__entry-actions {
        display: flex;
        gap: 1rem;
        justify-content: flex-end;
    }

    .count-register-page__primary-button,
    .count-register-page__ghost-button,
    .count-register-page__icon-button {
        align-items: center;
        border-radius: 1rem;
        cursor: pointer;
        display: inline-flex;
        gap: .55rem;
        justify-content: center;
        min-height: 50px;
        padding: 0 1rem;
    }

    .count-register-page__primary-button {
        background: var(--inventory-action-bg);
        border: none;
        color: var(--inventory-action-color);
        font-weight: 800;
    }

    .count-register-page__establish-button {
        background: var(--inventory-action-bg);
        color: var(--inventory-action-color);
    }

    .count-register-page__config-actions button:disabled {
        cursor: not-allowed;
        filter: saturate(.7);
        opacity: .48;
        transform: none;
    }

    .count-register-page__register-button {
        background: var(--inventory-action-bg);
        color: var(--inventory-action-color);
    }

    .count-register-page__ghost-button {
        background: #fff;
        border: 1px solid #d4e0ec;
        color: #24364c;
        font-weight: 700;
    }

    .count-register-page__icon-button {
        background: var(--inventory-action-bg);
        border: none;
        color: var(--inventory-action-color);
        font-weight: 700;
    }

    .count-register-page__search {
        display: grid;
        gap: 0;
        grid-template-columns: 1fr auto;
    }

    .count-register-page__quick-location-button {
        align-items: center;
        background: color-mix(in srgb, var(--inventory-app-accent) 8%, #ffffff);
        border: 1px solid color-mix(in srgb, var(--inventory-app-accent) 18%, #d4e0ec);
        border-radius: 1rem;
        color: var(--inventory-action-text);
        cursor: pointer;
        display: inline-flex;
        font-weight: 800;
        gap: .55rem;
        justify-content: center;
        min-height: 46px;
        padding: 0 .95rem;
        transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
    }

    .count-register-page__quick-location-button:hover {
        border-color: color-mix(in srgb, var(--inventory-app-accent) 34%, #d4e0ec);
        box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
        transform: translateY(-1px);
    }

    .count-register-page__quick-location-button i {
        transition: transform .22s ease;
    }

    .count-register-page__quick-location-button.is-open {
        background: color-mix(in srgb, var(--inventory-app-accent) 14%, #ffffff);
        border-color: color-mix(in srgb, var(--inventory-app-accent) 34%, #d4e0ec);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--inventory-app-accent) 14%, transparent);
    }

    .count-register-page__quick-location-button.is-open i {
        transform: rotate(135deg);
    }

    .count-register-page__trace-button {
        align-items: center;
        background: color-mix(in srgb, var(--inventory-app-accent) 8%, #ffffff);
        border: 1px solid color-mix(in srgb, var(--inventory-app-accent) 18%, #d4e0ec);
        border-radius: 1rem;
        color: var(--inventory-action-text);
        cursor: pointer;
        display: inline-flex;
        font-weight: 800;
        gap: .55rem;
        justify-content: center;
        min-height: 46px;
        padding: 0 .95rem;
    }

    .count-register-page__trace-label-short {
        display: none;
    }

    .count-register-page__trace-panel {
        background: #f8fbff;
        border: 1px solid #dbe4ef;
        border-radius: 1rem;
        display: grid;
        gap: .8rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: .9rem;
        width: 100%;
    }

    .count-register-page__quick-location-panel {
        background: #fff;
        border: 1px solid #dbe4ef;
        border-radius: 1rem;
        display: grid;
        gap: .8rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: .9rem;
        animation: count-register-quick-panel-in .2s ease-out;
    }

    .count-register-page__quick-location-panel .count-register-page__field {
        gap: .22rem;
    }

    .count-register-page__quick-location-panel .count-register-page__field label {
        font-size: .72rem;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .count-register-page__quick-location-panel .count-register-page__select-shell,
    .count-register-page__quick-location-panel .count-register-page__select-shell select {
        min-height: 38px;
    }

    .count-register-page__quick-location-panel .count-register-page__select-shell select {
        font-size: .82rem;
        padding: 0 2rem 0 .7rem;
    }

    .count-register-page__icon-button {
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
        min-width: 58px;
    }

    .count-register-page__search input {
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
    }

    .count-register-page__product-results,
    .count-register-page__history-list {
        display: grid;
        gap: .55rem;
    }

    .count-register-page__history-list {
        align-content: start;
        max-height: min(54vh, 34rem);
        overflow-y: auto;
        padding-right: .2rem;
        scrollbar-gutter: stable;
    }

    .count-register-page__history-filters {
        display: grid;
        gap: .5rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        width: 100%;
    }

    .count-register-page__products-head {
        display: none;
    }

    .count-register-page__product-results {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        max-height: 22rem;
        overflow-y: auto;
        padding-right: .25rem;
        scrollbar-color: #9eb3d8 #eef3f9;
        scrollbar-width: thin;
    }

    .count-register-page__product-card,
    .count-register-page__history-item {
        background: #fff;
        border: 1px solid #dbe4ef;
        border-radius: 1rem;
        text-align: left;
        transition: .18s ease;
    }

    .count-register-page__product-card {
        box-shadow: 0 12px 24px rgba(15, 23, 42, .04);
        cursor: pointer;
        display: grid;
        gap: .28rem;
        padding: .78rem .9rem;
    }

    .count-register-page__product-card strong {
        font-size: .88rem;
        line-height: 1.2;
    }

    .count-register-page__product-card small {
        font-size: .74rem;
    }

    .count-register-page__product-card:hover {
        border-color: #adc3ec;
        transform: translateY(-2px);
    }

    .count-register-page__product-card.is-selected {
        border-color: var(--inventory-action-text);
        box-shadow: 0 0 0 4px var(--inventory-action-soft);
    }

    .count-register-page__product-code {
        color: var(--inventory-action-text);
        font-size: .74rem;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .count-register-page__entry-copy .count-register-page__selected-code {
        color: var(--inventory-action-text);
        font-size: .78rem;
        font-weight: 800;
    }

    .count-register-page__entry-box {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
    }

    .count-register-page__entry-copy {
        display: grid;
        gap: .18rem;
    }

    .count-register-page__selected-heading {
        align-items: baseline;
        display: inline-flex;
        flex-wrap: wrap;
        gap: .35rem;
    }

    .count-register-page__entry-fields {
        align-items: stretch;
        display: grid;
        gap: .9rem;
        width: 100%;
    }

    .count-register-page__entry-actions {
        align-items: end;
        display: flex;
        flex-wrap: wrap;
        gap: .75rem;
    }

    .count-register-page__entry-actions .count-register-page__trace-button,
    .count-register-page__entry-actions .count-register-page__register-button {
        min-height: 50px;
    }

    .count-register-page__field--quantity {
        min-width: 180px;
    }

    .count-register-page__field--quantity input {
        min-height: 42px;
    }

    .count-register-page__quantity-row {
        align-items: center;
        display: grid;
        gap: .55rem;
        grid-template-columns: minmax(0, 1fr) auto;
        min-width: 0;
    }

    .count-register-page__quantity-row span {
        color: var(--inventory-action-text);
        font-size: 1.05rem;
        font-weight: 900;
        min-width: 2.35rem;
        flex: 0 0 auto;
        text-align: right;
    }

    .count-register-page__history-metric-secondary {
        color: #66788d;
        display: block;
        font-size: .76rem;
        font-weight: 700;
        line-height: 1.1;
        text-align: right;
    }

    .count-register-page__history-head {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: .65rem;
        justify-content: space-between;
    }

    .count-register-page__history-head > strong,
    .count-register-page__history-summary {
        color: #14233a;
    }

    .count-register-page__history-summary {
        flex-basis: 100%;
        font-size: .9rem;
        font-weight: 700;
        margin-top: -.25rem;
    }

    .count-register-page__history-toolbar {
        align-items: end;
        display: grid;
        gap: .5rem;
        grid-template-columns: minmax(0, 1fr) auto;
        /*margin-left: auto;*/
        max-width: min(100%, 36rem);
        min-width: 0;
        width: 100%;
    }

    .count-register-page__history-filters .count-register-page__field {
        gap: .22rem;
    }

    .count-register-page__history-filters .count-register-page__field label {
        font-size: .72rem;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .count-register-page__history-filters .count-register-page__select-shell,
    .count-register-page__history-filters .count-register-page__select-shell select {
        min-height: 38px;
    }

    .count-register-page__history-filters .count-register-page__select-shell select {
        font-size: .82rem;
        padding: 0 2rem 0 .7rem;
    }

    .count-register-page__history-refresh {
        align-items: center;
        border-radius: .9rem;
        display: inline-flex;
        flex: 0 0 42px;
        justify-content: center;
        justify-self: end;
        min-height: 38px;
        min-width: 42px;
        padding: 0;
        width: 42px;
    }

    .count-register-page__history-content {
        min-height: 180px;
        position: relative;
    }

    .count-register-page__history-overlay {
        align-items: center;
        background: rgba(244, 248, 253, .76);
        backdrop-filter: blur(6px);
        border-radius: 1.15rem;
        display: flex;
        inset: 0;
        justify-content: center;
        padding: 1rem;
        position: absolute;
        z-index: 2;
    }

    .count-register-page__history-loading {
        min-height: min(260px, 100%);
        width: min(100%, 520px);
    }

    .count-register-page__observe-modal-body {
        background:
            radial-gradient(circle at top left, rgba(37, 99, 235, .09), transparent 30%),
            linear-gradient(180deg, #ffffff, #f7fbff);
    }

.count-register-page__observe-modal-content {
    display: grid;
    gap: 1rem;
}

.count-register-page__traceability-modal-content {
    gap: .9rem;
}

.count-register-page__traceability-dates {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom:10px;
}

    .count-register-page__observe-summary {
        background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,248,255,.95));
        border: 1px solid #d7e4f1;
        border-radius: 1rem;
        display: grid;
        gap: .35rem;
        padding: 1rem 1.05rem;
    }

    .count-register-page__observe-summary strong {
        color: #14233a;
        font-size: 1rem;
    }

    .count-register-page__observe-summary span {
        color: #617286;
        font-size: .88rem;
    }

    .count-register-page__observe-alert {
        background: #fff7ed;
        border: 1px solid #fed7aa;
        border-radius: .95rem;
        color: #9a3412;
        display: grid;
        gap: .25rem;
        margin-bottom: 1rem;
        padding: .9rem 1rem;
    }

    .count-register-page__observe-field {
        padding-left: 0;
        padding-top: 0;
    }

    .count-register-page__observe-textarea {
        background: #fff;
        border: 1px solid #d4e0ec;
        border-radius: 1rem;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
        min-height: 148px;
        outline: none;
        padding: .95rem 1rem;
        resize: vertical;
        width: 100%;
    }

    .count-register-page__observe-textarea:focus {
        outline: none;
    }

    .count-register-page__history-item {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: .55rem;
        justify-content: space-between;
        padding: .68rem .9rem;
        box-shadow: 0 12px 24px rgba(15, 23, 42, .04);
        position: relative;
    }

    .count-register-page__history-item::before {
        background: linear-gradient(180deg, var(--inventory-action-text), color-mix(in srgb, var(--inventory-app-accent) 50%, #9fb4ff));
        border-radius: 999px;
        content: "";
        height: calc(100% - 1rem);
        left: .5rem;
        position: absolute;
        top: .5rem;
        width: 4px;
    }

    .count-register-page__history-item > div:first-child {
        padding-left: .8rem;
    }

    .count-register-page__history-body {
        display: grid;
        gap: .2rem;
        min-width: 0;
    }

    .count-register-page__history-headline {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
    }

    .count-register-page__history-item.is-observed::before {
        background: linear-gradient(180deg, #f59e0b, #f97316);
    }

    .count-register-page__history-item.is-validated::before {
        background: linear-gradient(180deg, #10b981, #059669);
    }

    .count-register-page__history-item.is-deactivated::before {
        background: linear-gradient(180deg, #ef4444, #b91c1c);
    }

    .count-register-page__history-note {
        background: #f8fbff;
        border: 1px solid #dbe4ef;
        border-radius: .8rem;
        margin-top: .2rem;
        padding: .45rem .55rem;
    }

    .count-register-page__history-note strong {
        color: #21344d;
    }

    .count-register-page__history-item small {
        color: #6b7d90;
        display: block;
        font-size: .76rem;
        margin-top: .18rem;
        overflow-wrap: anywhere;
    }

    .count-register-page__history-metrics {
        display: grid;
        gap: .25rem;
        justify-items: end;
        min-width: 0;
    }

    .count-register-page__history-metrics span {
        color: var(--inventory-action-text);
        font-size: .95rem;
        font-weight: 800;
    }

    .count-register-page__history-action {
        min-height: 36px;
        padding: 0 .8rem;
    }

    .count-supervision-page__filters {
        align-items: end;
        display: grid;
        gap: .8rem;
        grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(180px, .9fr)) auto auto;
    }

    .count-supervision-page__toggle {
        align-items: center;
        display: inline-flex;
        gap: .55rem;
        min-height: 38px;
        padding-bottom: .15rem;
    }

    .count-supervision-page__toggle span {
        color: #48566a;
        font-size: .82rem;
        font-weight: 700;
    }

    .count-supervision-page__refresh {
        min-height: 38px;
    }

    .count-supervision-page__mobile-filter-toggle {
        display: none;
    }

    .count-supervision-page__summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .count-supervision-page__queue {
        display: grid;
        gap: .7rem;
    }

    .count-supervision-page__item {
        gap: 1rem;
    }

    .count-supervision-page__item.is-observed::before {
        background: linear-gradient(180deg, #f59e0b, #f97316);
    }

    .count-supervision-page__item.is-validated::before {
        background: linear-gradient(180deg, #10b981, #059669);
    }

    .count-supervision-page__item.is-deactivated::before {
        background: linear-gradient(180deg, #ef4444, #b91c1c);
    }

    .count-supervision-page__item-main {
        display: grid;
        gap: .45rem;
    }

    .count-supervision-page__item-side {
        align-items: end;
        display: grid;
        gap: .75rem;
        justify-items: end;
        min-width: 220px;
    }

    .count-supervision-page__item-head {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: .55rem;
    }

    .count-supervision-page__meta {
        color: #6b7d90;
        display: block;
        font-size: .76rem;
    }

    .count-supervision-page__reason,
    .count-supervision-page__review-note {
        background: #f8fbff;
        border: 1px solid #dbe4ef;
        border-radius: .9rem;
        display: grid;
        gap: .18rem;
        padding: .7rem .8rem;
    }

    .count-supervision-page__reason strong,
    .count-supervision-page__review-note strong {
        color: #21344d;
        font-size: .78rem;
    }

    .count-supervision-page__reason p,
    .count-supervision-page__review-note p {
        color: #5b6f87;
        font-size: .82rem;
        margin: 0;
    }

    .count-supervision-page__actions {
        display: flex;
        flex-wrap: wrap;
        gap: .55rem;
        justify-content: flex-end;
    }

    .count-supervision-page__actions .count-register-page__primary-button,
    .count-supervision-page__actions .count-register-page__ghost-button {
        min-height: 40px;
    }

    .count-supervision-page__badge {
        border-radius: 999px;
        display: inline-flex;
        font-size: .75rem;
        font-weight: 800;
        padding: .28rem .62rem;
    }

    .count-supervision-page__badge--observed {
        background: #fef3c7;
        color: #92400e;
    }

    .count-supervision-page__badge--validated {
        background: #dcfce7;
        color: #166534;
    }

    .count-supervision-page__badge--deactivated {
        background: #fee2e2;
        color: #991b1b;
    }

    @keyframes count-register-quick-panel-in {
        from {
            opacity: 0;
            transform: translateY(-6px) scale(.985);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @media (min-width: 921px) {
        .count-register-page__tabs {
            border: 1px solid #dfe8f2;
            border-radius: 1.25rem;
            margin: .15rem .15rem 1rem;
            overflow: hidden;
        }

        .count-register-page__tab:first-child {
            border-bottom-left-radius: 1.15rem;
            border-top-left-radius: 1.15rem;
        }

        .count-register-page__tab:last-child {
            border-bottom-right-radius: 1.15rem;
            border-top-right-radius: 1.15rem;
        }

        .count-register-page__tab.is-active::after {
            bottom: 0;
            border-radius: 999px;
            left: 20%;
            right: 20%;
        }

        .count-register-page__history-list {
            gap: .38rem;
            max-height: min(62vh, 42rem);
        }

        .count-register-page__history-item {
            align-items: center;
            border-radius: .75rem;
            box-shadow: none;
            display: grid;
            gap: .35rem 1rem;
            grid-template-columns: minmax(0, 1fr) minmax(9.5rem, auto);
            min-height: 58px;
            padding: .48rem .82rem .48rem .95rem;
        }

        .count-register-page__history-item::before {
            height: calc(100% - .7rem);
            left: .38rem;
            top: .35rem;
            width: 3px;
        }

        .count-register-page__history-item > div:first-child {
            min-width: 0;
            padding-left: .55rem;
        }

        .count-register-page__history-body {
            align-items: start;
            display: grid;
            gap: .16rem;
            min-width: 0;
        }

        .count-register-page__history-headline {
            gap: .35rem;
            min-width: min(34rem, 100%);
        }

        .count-register-page__history-headline strong {
            font-size: .92rem;
            line-height: 1.12;
        }

        .count-register-page__history-item small {
            font-size: .69rem;
            margin-top: 0;
        }

        .count-register-page__history-note {
            align-items: center;
            box-sizing: border-box;
            display: flex !important;
            gap: .25rem;
            margin-top: .04rem;
            max-width: 100%;
            overflow: hidden;
            padding: .2rem .45rem;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 100%;
        }

        .count-register-page__history-note i {
            color: #506985;
            flex: 0 0 auto;
            font-size: .66rem;
        }

        .count-register-page__history-note--counter i {
            color: #d97706;
        }

        .count-register-page__history-note--supervisor i {
            color: #2563eb;
        }

        .count-register-page__history-note strong {
            flex: 0 0 auto;
        }

        .count-register-page__history-note {
            min-width: 0;
        }

        .count-register-page__history-note {
            flex: 0 1 auto;
        }

        .count-register-page__history-note strong + * {
            min-width: 0;
        }

        .count-register-page__history-metrics {
            align-self: stretch;
            border-left: 1px solid #e1eaf4;
            gap: .12rem;
            justify-content: center;
            min-width: 9.5rem;
            padding-left: 1rem;
        }

        .count-register-page__history-metrics span {
            font-size: 1.02rem;
            line-height: 1.1;
        }

        .count-register-page__history-metrics small {
            font-size: .72rem;
            line-height: 1.1;
            text-align: right;
        }

        .count-register-page__history-action {
            min-height: 32px;
            min-width: 7.8rem;
            padding: 0 .65rem;
        }

        .count-supervision-page__summary-grid {
            gap: .55rem;
        }

        .count-supervision-page__summary-grid article {
            align-items: center;
            cursor: pointer;
            display: grid;
            gap: .55rem;
            grid-template-columns: auto minmax(0, 1fr) auto;
            min-height: 46px;
            padding: .55rem .75rem;
        }

        .count-supervision-page__summary-grid article.is-mobile-active {
            background: linear-gradient(180deg, rgba(32,58,114,.92), rgba(44,70,133,.96));
            border-color: transparent;
        }

        .count-supervision-page__summary-grid article.is-mobile-active span,
        .count-supervision-page__summary-grid article.is-mobile-active strong {
            color: #fff;
            opacity: 1;
        }

        .count-supervision-page__summary-grid article.is-mobile-active .count-register-page__summary-icon {
            background: rgba(255,255,255,.12);
            color: #fff;
        }

        .count-supervision-page__summary-grid .count-register-page__summary-icon {
            height: 1.65rem;
            margin: 0;
            width: 1.65rem;
        }

        .count-supervision-page__summary-grid article span:not(.count-register-page__summary-icon) {
            font-size: .72rem;
            grid-column: auto;
            grid-row: auto;
            letter-spacing: .04em;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .count-supervision-page__summary-grid article strong {
            font-size: 1.1rem;
            grid-column: auto;
            grid-row: auto;
            line-height: 1;
            white-space: nowrap;
        }

        .count-supervision-page__queue {
            gap: .38rem;
        }

        .count-supervision-page__item {
            align-items: center;
            display: grid;
            gap: .35rem 1rem;
            grid-template-columns: minmax(0, 1fr) minmax(13rem, auto);
            min-height: 58px;
            padding: .48rem .82rem .48rem .95rem;
        }

        .count-supervision-page__item-main {
            align-items: start;
            display: grid;
            gap: .16rem;
            min-width: 0;
            padding-left: .55rem;
        }

        .count-supervision-page__item-head {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            gap: .35rem;
            min-width: min(34rem, 100%);
        }

        .count-supervision-page__item-head strong {
            font-size: .92rem;
            line-height: 1.12;
            min-width: 0;
        }

        .count-supervision-page__meta {
            font-size: .69rem;
            line-height: 1.15;
            margin-top: 0;
        }

        .count-supervision-page__reason,
        .count-supervision-page__review-note {
            align-items: center;
            display: inline-flex;
            gap: .25rem;
            max-width: min(30rem, 100%);
            overflow: hidden;
            padding: .2rem .45rem;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: fit-content;
        }

        .count-supervision-page__reason i,
        .count-supervision-page__review-note i {
            flex: 0 0 auto;
            font-size: .66rem;
        }

        .count-supervision-page__reason i {
            color: #d97706;
        }

        .count-supervision-page__review-note i {
            color: #2563eb;
        }

        .count-supervision-page__reason strong,
        .count-supervision-page__review-note strong {
            flex: 0 0 auto;
            font-size: .69rem;
            white-space: nowrap;
        }

        .count-supervision-page__reason p,
        .count-supervision-page__review-note p {
            font-size: .69rem;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .count-supervision-page__item-side {
            align-self: stretch;
            border-left: 1px solid #e1eaf4;
            display: grid;
            gap: .35rem;
            justify-content: end;
            justify-items: end;
            min-width: 13rem;
            padding-left: 1rem;
        }

        .count-supervision-page__item-side .count-register-page__history-metrics {
            align-self: start;
            border-left: 0;
            gap: .12rem;
            justify-content: start;
            min-width: 0;
            padding-left: 0;
        }

        .count-supervision-page__item-side .count-register-page__history-metrics span {
            font-size: 1.02rem;
            line-height: 1.1;
        }

        .count-supervision-page__item-side .count-register-page__history-date {
            display: grid !important;
            gap: .04rem;
            line-height: 1.1;
            text-align: right;
        }

        .count-supervision-page__actions {
            gap: .4rem;
            justify-content: flex-end;
        }

        .count-supervision-page__actions .count-register-page__primary-button,
        .count-supervision-page__actions .count-register-page__ghost-button {
            min-height: 32px;
            padding: 0 .65rem;
        }

        .count-register-page__panel--inventory {
            align-items: start;
            display: grid;
            gap: 1rem;
            grid-template-columns: minmax(0, 2fr) minmax(360px, .95fr);
            padding:12px;
        }

        .count-register-page__panel--inventory .count-register-page__summary-grid {
            grid-column: 1;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .count-register-page__panel--inventory .count-register-page__summary-grid article {
            align-items: center;
            background: #fff;
            border: 1px solid #dbe4ef;
            box-shadow: 0 12px 24px rgba(15, 23, 42, .035);
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            padding: .9rem 1rem;
        }

        .count-register-page__panel--inventory .count-register-page__summary-grid article::after {
            display: none;
        }

        .count-register-page__panel--inventory .count-register-page__summary-grid article span,
        .count-register-page__panel--inventory .count-register-page__summary-grid article strong {
            color: #14233a;
        }

        .count-register-page__panel--inventory .count-register-page__summary-grid article span:not(.count-register-page__summary-icon) {
            color: #66788d;
            grid-column: 2;
            letter-spacing: normal;
            opacity: 1;
            text-transform: none;
        }

        .count-register-page__panel--inventory .count-register-page__summary-grid article strong {
            grid-column: 2;
            font-size: 1rem;
        }

        .count-register-page__panel--inventory .count-register-page__summary-icon {
            background: linear-gradient(135deg, rgba(54,88,212,.09), rgba(54,88,212,.16));
            border: none;
            color: var(--inventory-action-text);
            grid-row: span 2;
            margin-bottom: 0;
            margin-right: .8rem;
        }

        .count-register-page__panel--inventory .count-register-page__quick-location-button {
            align-self: center;
            grid-column: 2;
            justify-self: end;
            min-width: 260px;
        }

        .count-register-page__panel--inventory .count-register-page__quick-location-panel,
        .count-register-page__panel--inventory .count-register-page__search {
            grid-column: 1 / -1;
        }

        .count-register-page__products-panel {
            background: #fff;
            border: 1px solid #dbe4ef;
            border-radius: 1rem;
            box-shadow: 0 16px 30px rgba(15, 23, 42, .04);
            display: grid;
            grid-column: 1;
            gap: .35rem;
            overflow: hidden;
            padding: 1rem;
        }

        .count-register-page__products-head {
            display: grid;
            gap: .75rem;
        }

        .count-register-page__products-head > div:first-child {
            align-items: center;
            display: flex;
            gap: .7rem;
        }

        .count-register-page__products-head strong {
            color: #14233a;
            font-size: 1rem;
        }

        .count-register-page__products-head span {
            color: #66788d;
        }

        .count-register-page__products-head > div:first-child span {
            background: #eef3fb;
            border-radius: 999px;
            font-size: .78rem;
            font-weight: 700;
            padding: .2rem .55rem;
        }

        .count-register-page__products-columns {
            border-bottom: 1px solid #e6edf5;
            color: #66788d;
            display: grid;
            font-size: .78rem;
            font-weight: 800;
            grid-template-columns: minmax(120px, .55fr) minmax(0, 1.45fr);
            letter-spacing: .04em;
            padding: .3rem 0 .55rem;
            text-transform: uppercase;
        }

        .count-register-page__products-panel .count-register-page__empty {
            border: 1px dashed #cad6e3;
        }

        .count-register-page__product-results {
            gap: 0;
            grid-template-columns: 1fr;
            max-height: 27rem;
            padding-right: 0;
        }

        .count-register-page__product-card {
            align-items: center;
            border: none;
            border-bottom: 1px solid #e6edf5;
            border-radius: 0;
            box-shadow: none;
            display: grid;
            gap: 1rem;
            grid-template-columns: minmax(120px, .55fr) minmax(0, 1.45fr);
            min-height: 44px;
            padding: .72rem .35rem .72rem 1rem;
        }

        .count-register-page__product-card.is-selected {
            background: linear-gradient(90deg, var(--inventory-action-soft), rgba(255,255,255,.72));
            border-color: #dbe4ef;
            box-shadow: inset 3px 0 0 var(--inventory-action-text);
        }

        .count-register-page__product-card:hover {
            border-color: #e6edf5;
            transform: none;
        }

        .count-register-page__product-code {
            font-size: .84rem;
            letter-spacing: 0;
            text-transform: uppercase;
        }

        .count-register-page__product-card strong {
            color: #14233a;
            font-size: .86rem;
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .count-register-page__product-card small {
            display: none;
        }

        .count-register-page__entry-box {
            align-content: start;
            align-items: stretch;
            display: grid;
            grid-column: 2;
            gap: .9rem;
            min-height: 100%;
            padding: 1rem 1.05rem;
        }

        .count-register-page__entry-copy {
            border-bottom: 1px solid #dbe4ef;
            display: grid;
            align-content: start;
            min-height: 0;
            padding-bottom: .75rem;
            position: relative;
        }

        .count-register-page__entry-copy::before {
            align-items: center;
            background: linear-gradient(135deg, var(--inventory-action-soft), color-mix(in srgb, var(--inventory-app-accent) 16%, white));
            border-radius: 999px;
            color: var(--inventory-action-text);
            content: "\f1b2";
            display: inline-flex;
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            height: 2.6rem;
            justify-content: center;
            margin-bottom: .8rem;
            width: 2.6rem;
        }

        .count-register-page__entry-copy strong {
            font-size: .96rem;
            line-height: 1.18;
        }

        .count-register-page__entry-fields {
            display: grid;
            gap: .7rem .9rem;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        }

        .count-register-page__entry-fields .count-register-page__field--quantity-primary,
        .count-register-page__entry-fields .count-register-page__field--quantity-secondary {
            grid-column: span 1;
        }

        .count-register-page__entry-fields .count-register-page__field--count-comment {
            grid-column: 1 / -1;
        }

        .count-register-page__entry-actions {
            display: grid;
            gap: .7rem;
            grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
        }

        .count-register-page__entry-actions .count-register-page__trace-button,
        .count-register-page__entry-actions .count-register-page__register-button {
            width: 100%;
        }

        .count-register-page__entry-fields .count-register-page__field label {
            font-size: .84rem;
        }

        .count-register-page__entry-fields .count-register-page__field input {
            min-height: 40px;
            padding: 0 .85rem;
        }

        .count-register-page__entry-fields .count-register-page__field--count-comment input {
            min-height: 42px;
        }

        .count-register-page__field--quantity {
            min-width: 0;
        }

        .count-register-page__register-button {
            min-height: 58px;
        }

        .count-supervision-page__filters {
            grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(160px, .8fr)) auto auto;
        }
    }

    @media (max-width: 920px) {
        .count-register-page__products-panel {
            display: grid;
            gap: 1rem;
            grid-column: 1 / -1;
        }

        .count-register-page__product-results {
            grid-template-columns: 1fr;
        }

        .count-register-page__grid,
        .count-register-page__summary-grid {
            grid-template-columns: 1fr;
        }

        .count-register-page__config-actions,
        .count-register-page__entry-actions {
            justify-content: stretch;
        }

        .count-register-page__config-actions > button,
        .count-register-page__entry-actions > button,
        .count-register-page__entry-actions > div {
            flex: 1 1 auto;
        }

        .count-register-page__history-item,
        .count-register-page__entry-box,
        .count-register-page__hero {
            grid-template-columns: 1fr;
        }

        .count-register-page__history-metrics {
            justify-items: start;
        }

        .count-supervision-page__filters {
            grid-template-columns: 1fr;
        }

        .count-supervision-page__summary-grid {
            grid-template-columns: 1fr;
        }

        .count-supervision-page__item {
            align-items: stretch;
        }

        .count-supervision-page__item-side {
            justify-items: stretch;
            min-width: 0;
            width: 100%;
        }

        .count-supervision-page__actions {
            justify-content: stretch;
        }

        .count-supervision-page__actions .count-register-page__primary-button,
        .count-supervision-page__actions .count-register-page__ghost-button {
            width: 100%;
        }
    }

    @media (max-width: 640px) {
        .count-register-page {
            align-content: stretch;
            gap: 1rem;
            height: calc(100dvh - 74px);
            max-width: 100%;
            min-width: 0;
            overflow: hidden;
            width: 100%;
        }

        .count-register-page__hero {
            display: none;
        }

        .count-register-page__shell {
            border-radius: 1.4rem;
            /* box-shadow: 0 18px 42px rgba(15, 23, 42, .09); */
            display: grid;
            grid-template-rows: auto minmax(0, 1fr);
            height: 100%;
            max-width: 100%;
            min-width: 0;
            overflow: hidden;
            padding: 0em;
            width: 100%;
        }

        .count-register-page__tabs {
            margin-bottom: .55rem;
        }

        .count-register-page__tab {
            padding: .45rem .35rem;
        }

        .count-register-page__tab i {
            font-size: .9rem;
        }

        .count-register-page__panel {
            align-content: start;
            border-radius: 1.25rem;
            box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
            max-width: 100%;
            min-width: 0;
            overflow: visible;
            padding: 0.4rem;
            width: 100%;
        }

        .count-register-page__panel--history {
            align-content: stretch;
            grid-template-rows: auto minmax(0, 1fr);
            height: 100%;
            min-height: 0;
            overflow: hidden;
        }

        .count-register-page__panel--inventory {
            align-content: start;
            grid-template-columns: minmax(0, 1fr) auto;
            height: 100%;
            min-height: 0;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
        }

        .count-register-page__field {
            gap: .4rem;
        }

        .count-register-page__field label {
            font-size: .91rem;
        }

        .count-register-page__select-shell,
        .count-register-page__field input,
        .count-register-page__search input {
            min-height: 56px;
        }

        .count-register-page__field--quantity input {
            min-height: 48px;
        }

        .count-register-page__select-shell select,
        .count-register-page__field input,
        .count-register-page__search input {
            font-size: .92rem;
        }

        .count-register-page__tab,
        .count-register-page__entry-copy span,
        .count-register-page__entry-copy small,
        .count-register-page__history-head span,
        .count-register-page__history-item small,
        .count-register-page__summary-grid article span:not(.count-register-page__summary-icon) {
            font-size: .88rem;
        }

        .count-register-page__primary-button,
        .count-register-page__establish-button,
        .count-register-page__register-button,
        .count-register-page__ghost-button,
        .count-register-page__icon-button,
        .count-register-page__quick-location-button,
        .count-register-page__trace-button {
            background: var(--inventory-action-bg);
            border: none;
            color: var(--inventory-action-color);
        }

        .count-register-page__quick-location-button,
        .count-register-page__trace-button {
            background: color-mix(in srgb, var(--inventory-app-accent) 14%, #ffffff);
            border: 1px solid color-mix(in srgb, var(--inventory-app-accent) 22%, #d4e0ec);
            color: var(--inventory-action-text);
        }

        .count-register-page__ghost-button i,
        .count-register-page__icon-button i,
        .count-register-page__primary-button i,
        .count-register-page__quick-location-button i,
        .count-register-page__trace-button i {
            color: var(--inventory-action-color);
        }

        .count-register-page__quick-location-button i,
        .count-register-page__trace-button i {
            color: var(--inventory-action-text);
        }

        .count-register-page__info-card {
            align-items: center;
            display: flex;
            gap: .8rem;
        }

        .count-register-page__info-card::before {
            align-items: center;
            color: #0f766e;
            content: "\f073";
            display: inline-flex;
            font-family: "Font Awesome 6 Free";
            font-size: 1rem;
            font-weight: 900;
            height: 2rem;
            justify-content: center;
            width: 2rem;
        }

        .count-register-page__summary-grid {
            gap: .5rem;
            grid-column: 1;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .count-register-page__summary-grid article {
            align-items: center;
            background: #fff;
            border: 1px solid #e1eaf4;
            color: #10233f;
            display: grid;
            grid-template-columns: minmax(0, auto) 1.25rem;
            grid-template-rows: auto auto;
            min-height: 1.85rem;
            min-width: 0;
            padding: .58rem .62rem;
        }

        .count-register-page__summary-grid article::after {
            display: none;
        }

        .count-register-page__summary-grid article span,
        .count-register-page__summary-grid article strong {
            color: #10233f;
        }

        .count-register-page__summary-grid article span:not(.count-register-page__summary-icon) {
            align-self: end;
            grid-column: 1;
            grid-row: 1;
            font-size: .72rem;
            letter-spacing: .06em;
            opacity: .78;
            white-space: nowrap;
        }

        .count-register-page__summary-grid article strong {
            grid-column: 1 / -1;
            grid-row: 2;
            font-size: .72rem;
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .count-register-page__summary-icon {
            background: linear-gradient(135deg, rgba(15,118,110,.08), rgba(20,184,166,.14));
            border: none;
            color: #0f766e;
            grid-column: 2;
            grid-row: 1;
            height: 1.25rem;
            margin: 0 0 0 .18rem;
            width: 1.25rem;
        }

        .count-register-page__summary-icon i {
            font-size: .66rem;
        }

        .count-supervision-page__filters {
            align-items: end;
            gap: .48rem;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .count-supervision-page .count-register-page__shell {
            display: grid;
            grid-template-rows: auto auto minmax(0, 1fr);
            gap: .45rem;
            height: 100%;
            min-height: 0;
            overflow: hidden;
        }

        .count-supervision-page__filters-panel,
        .count-supervision-page__summary-panel {
            align-content: start;
            height: auto;
            overflow: visible;
        }

        .count-supervision-page__filters-panel.is-mobile-collapsed {
            display: none;
        }

        .count-supervision-page__queue-panel {
            align-content: stretch;
            display: grid;
            grid-template-rows: auto minmax(0, 1fr);
            height: 100%;
            min-height: 0;
            overflow: hidden;
        }

        .count-supervision-page__queue-panel .count-register-page__history-head {
            align-items: center;
            display: grid;
            gap: .45rem;
            grid-template-columns: minmax(0, 1fr) auto;
        }

        .count-supervision-page__mobile-filter-toggle {
            border-radius: .85rem;
            display: inline-flex;
            font-size: .78rem;
            gap: .28rem;
            grid-column: 2;
            grid-row: 1;
            justify-self: end;
            min-height: 32px;
            min-width: 0;
            padding: 0 .6rem;
        }

        .count-supervision-page__queue-panel .count-register-page__history-summary {
            grid-column: 1;
            grid-row: 1;
            min-width: 0;
        }

        .count-supervision-page__filters > .count-register-page__field:first-child {
            grid-column: 1 / -1;
        }

        .count-supervision-page__filters .count-register-page__field {
            gap: .22rem;
            min-width: 0;
        }

        .count-supervision-page__filters .count-register-page__field label {
            font-size: .72rem;
            letter-spacing: .04em;
            text-transform: uppercase;
        }

        .count-supervision-page__filters .count-register-page__select-shell,
        .count-supervision-page__filters .count-register-page__select-shell select {
            min-height: 38px;
        }

        .count-supervision-page__filters .count-register-page__select-shell select {
            font-size: .82rem;
            padding: 0 2rem 0 .7rem;
        }

        .count-supervision-page__toggle {
            align-self: center;
            gap: .4rem;
            min-height: 36px;
            min-width: 0;
            padding-bottom: 0;
        }

        .count-supervision-page__toggle span {
            font-size: .76rem;
            line-height: 1.1;
        }

        .count-supervision-page__refresh {
            justify-self: stretch;
            min-height: 36px;
            min-width: 0;
            padding: 0 .55rem;
        }

        .count-supervision-page__summary-grid {
            gap: .42rem;
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .count-supervision-page__summary-grid article {
            grid-template-columns: 1fr;
            min-height: 3.05rem;
            padding: .5rem .42rem;
            text-align: center;
        }

        .count-supervision-page__summary-grid article {
            cursor: pointer;
        }

        .count-supervision-page__summary-grid article.is-mobile-active {
            background: linear-gradient(180deg, rgba(32,58,114,.92), rgba(44,70,133,.96));
            border-color: transparent;
        }

        .count-supervision-page__summary-grid article.is-mobile-active span,
        .count-supervision-page__summary-grid article.is-mobile-active strong {
            color: #fff;
            opacity: 1;
        }

        .count-supervision-page__summary-grid article.is-mobile-active .count-register-page__summary-icon {
            display: inline-flex;
        }

        .count-supervision-page__summary-grid .count-register-page__summary-icon {
            display: none;
        }

        .count-supervision-page__summary-grid article span:not(.count-register-page__summary-icon) {
            align-self: center;
            font-size: .58rem;
            grid-column: 1;
            letter-spacing: .035em;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .count-supervision-page__summary-grid article strong {
            font-size: 1rem;
            grid-column: 1;
            line-height: 1;
        }

        .count-supervision-page__queue {
            align-content: start;
            display: grid;
            gap: .55rem;
            height: 100%;
            min-height: 0;
            overflow-x: hidden;
            overflow-y: auto;
            padding-right: 0;
            width: 100%;
        }

        .count-supervision-page__item {
            align-items: start;
            border-radius: .95rem;
            display: grid;
            gap: .45rem .55rem;
            grid-template-columns: minmax(0, 1fr) minmax(6.6rem, 8.2rem);
            justify-content: stretch;
            min-width: 0;
            padding: .68rem .82rem .68rem .92rem;
            width: 100%;
        }

        .count-supervision-page__item > div:first-child {
            min-width: 0;
            padding-left: .6rem;
        }

        .count-supervision-page__item::before {
            height: calc(100% - .9rem);
            left: .48rem;
            top: .45rem;
            width: 3px;
        }

        .count-supervision-page__item-main {
            align-items: start;
            display: grid;
            gap: .28rem;
            min-width: 0;
        }

        .count-supervision-page__item-head {
            align-items: flex-start;
            display: grid;
            gap: .28rem;
            min-width: 0;
        }

        .count-supervision-page__item-head strong {
            font-size: .9rem;
            line-height: 1.2;
            overflow-wrap: anywhere;
        }

        .count-supervision-page__item-head .count-supervision-page__badge {
            justify-self: start;
            max-width: 100%;
            white-space: normal;
        }

        .count-supervision-page__meta {
            font-size: .72rem;
            line-height: 1.35;
            overflow-wrap: anywhere;
        }

        .count-supervision-page__reason,
        .count-supervision-page__review-note {
            align-items: center;
            box-sizing: border-box;
            display: flex;
            flex-wrap: nowrap;
            gap: .24rem;
            line-height: 1.18;
            margin-top: .05rem;
            max-width: 100%;
            overflow: hidden;
            padding: .26rem .45rem;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 100%;
        }

        .count-supervision-page__reason i,
        .count-supervision-page__review-note i,
        .count-supervision-page__reason strong,
        .count-supervision-page__review-note strong {
            flex: 0 0 auto;
        }

        .count-supervision-page__reason i {
            color: #d97706;
        }

        .count-supervision-page__review-note i {
            color: #2563eb;
        }

        .count-supervision-page__reason strong,
        .count-supervision-page__review-note strong {
            font-size: .72rem;
            white-space: nowrap;
        }

        .count-supervision-page__reason p,
        .count-supervision-page__review-note p {
            flex: 1 1 auto;
            font-size: .72rem;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .count-supervision-page__item-side {
            align-self: start;
            display: grid;
            gap: .28rem;
            justify-items: end;
            min-width: 0;
            padding-top: .18rem;
            width: auto;
        }

        .count-supervision-page__item-side .count-register-page__history-metrics {
            align-self: start;
            gap: .18rem;
            justify-items: end;
            min-width: 0;
            padding-top: 0;
        }

        .count-supervision-page__item-side .count-register-page__history-metrics span {
            display: block;
            font-size: .94rem;
            line-height: 1.08;
            max-width: 100%;
            overflow-wrap: anywhere;
            text-align: right;
            white-space: normal;
        }

        .count-supervision-page__actions {
            display: grid;
            gap: .28rem;
            justify-content: end;
            justify-items: end;
            width: auto;
        }

        .count-supervision-page__actions .count-register-page__primary-button,
        .count-supervision-page__actions .count-register-page__ghost-button {
            border-radius: .75rem;
            font-size: .72rem;
            gap: .22rem;
            min-height: 28px;
            min-width: 0;
            padding: 0 .48rem;
            width: auto;
        }

        .count-register-page__search {
            grid-column: 1 / -1;
            grid-template-columns: 1fr 44px;
        }

        .count-register-page__search input {
            border-radius: .85rem 0 0 .85rem;
            font-size: .86rem;
            min-height: 42px;
            padding: 0 .75rem;
        }

        .count-register-page__quick-location-button {
            align-self: stretch;
            font-size: .86rem;
            grid-column: 2;
            grid-row: 1;
            min-height: 0;
            min-width: 48px;
            padding: 0 .7rem;
        }

        .count-register-page__quick-location-button span {
            display: none;
        }

        .count-register-page__quick-location-panel {
            gap: .6rem;
            grid-column: 1 / -1;
            grid-template-columns: 1fr;
            padding: .7rem;
        }

        .count-register-page__trace-panel {
            gap: .6rem;
            grid-template-columns: 1fr;
            padding: .7rem;
        }

        .count-register-page__product-results,
        .count-register-page__entry-box,
        .count-register-page__empty {
            grid-column: 1 / -1;
        }

        .count-register-page__icon-button {
            border-bottom-left-radius: 0;
            border-top-left-radius: 0;
            min-height: 42px;
            min-width: 44px;
            padding: 0;
        }

        .count-register-page__entry-box {
            display: flex;
            flex-direction: column;
            gap: .65rem;
            min-height: auto;
            overflow: visible;
            padding: .75rem;
        }

        .count-register-page__entry-copy strong {
            font-size: .86rem;
            line-height: 1.12;
        }

        .count-register-page__entry-fields {
            align-content: start;
            display: grid;
            gap: .65rem;
            min-height: auto;
            overflow: visible;
            padding-bottom: 4.5rem;
        }

        .count-register-page__entry-actions {
            align-items: stretch;
            background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.95) 24%, #ffffff);
            border-top: 1px solid #dbe4ef;
            display: grid;
            gap: .65rem;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            margin: 0;
            margin-top: auto;
            padding: .7rem 0 calc(.7rem + env(safe-area-inset-bottom, 0px));
            position: sticky;
            bottom: 0;
            width: 100%;
            z-index: 2;
        }

        .count-register-page__entry-actions .count-register-page__trace-button {
            grid-column: 1;
        }

        .count-register-page__entry-actions .count-register-page__register-button {
            grid-column: 2;
        }

        .count-register-page__trace-label-full {
            display: none;
        }

        .count-register-page__trace-label-short {
            display: inline;
        }

        .count-register-page__field--quantity {
            min-width: 0;
        }

        .count-register-page__entry-actions button {
            min-height: 48px;
            min-width: 0;
        }

        .count-register-page__quantity-row {
            gap: .55rem;
            min-width: 0;
        }

        .count-register-page__quantity-row input {
            min-width: 0;
            width: 100%;
        }

        .count-register-page__quantity-row span {
            font-size: 1.1rem;
            min-width: 2.2rem;
        }

        .count-register-page__field--quantity label {
            white-space: nowrap;
        }

        .count-register-page__product-results {
            gap: .55rem;
            grid-template-columns: 1fr;
            max-height: 13.8rem;
        }

        .count-register-page__product-card {
            padding: .68rem .75rem;
        }

        .count-register-page__product-card strong {
            font-size: .84rem;
        }

        .count-register-page__product-code,
        .count-register-page__product-card small {
            font-size: .7rem;
        }

        .count-register-page__config-actions {
            display: grid;
            gap: .55rem;
            grid-template-columns: 1fr 1fr;
        }

        .count-register-page__config-actions button {
            border-radius: .85rem;
            font-size: .82rem;
            min-height: 40px;
            padding: 0 .6rem;
        }

        .count-register-page__history-head {
            align-items: stretch;
        }

        .count-register-page__history-content {
            display: grid;
            min-height: 0;
            overflow: hidden;
        }

        .count-register-page__history-toolbar {
            align-items: end;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            margin-left: 0;
            width: 100%;
        }

        .count-register-page__history-filters {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            min-width: 0;
        }

        .count-register-page__history-head button {
            justify-self: start;
            min-width: 42px;
        }

        .count-register-page__history-list {
            align-content: start;
            height: 100%;
            max-height: none;
            min-height: 0;
            overflow-x: hidden;
            overflow-y: auto;
            padding-right: 0;
            width: 100%;
        }

        .count-register-page__history-item {
            align-items: start;
            border-radius: .95rem;
            display: grid;
            gap: .45rem .55rem;
            grid-template-columns: minmax(0, 1fr) minmax(6.6rem, 8.2rem);
            justify-content: stretch;
            min-width: 0;
            padding: .68rem .82rem .68rem .92rem;
            width: 100%;
        }

        .count-register-page__history-item > div:first-child {
            min-width: 0;
            padding-left: .6rem;
        }

        .count-register-page__history-item::before {
            height: calc(100% - .9rem);
            left: .48rem;
            top: .45rem;
            width: 3px;
        }

        .count-register-page__history-body {
            gap: .28rem;
        }

        .count-register-page__history-headline {
            align-items: flex-start;
            display: grid;
            gap: .28rem;
        }

        .count-register-page__history-headline strong {
            font-size: .9rem;
            line-height: 1.2;
            overflow-wrap: anywhere;
        }

        .count-register-page__history-headline .count-supervision-page__badge {
            justify-self: start;
            max-width: 100%;
            white-space: normal;
        }

        .count-register-page__history-note {
            align-items: center;
            display: inline-flex !important;
            flex-wrap: nowrap;
            gap: .24rem;
            line-height: 1.18;
            margin-top: .05rem;
            max-width: 100%;
            overflow: hidden;
            padding: .26rem .45rem;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: fit-content;
        }

        .count-register-page__history-note i,
        .count-register-page__history-note strong {
            flex: 0 0 auto;
        }

        .count-register-page__history-note strong {
            white-space: nowrap;
        }

        .count-register-page__history-metrics span {
            display: block;
            font-size: .94rem;
            line-height: 1.08;
            max-width: 100%;
            overflow-wrap: anywhere;
            text-align: right;
            white-space: normal;
        }

        .count-register-page__history-metrics {
            align-self: start;
            gap: .18rem;
            justify-items: end;
            min-width: 0;
            padding-top: .18rem;
        }

        .count-register-page__history-date {
            display: grid !important;
            gap: .05rem;
            line-height: 1.08;
            margin-top: 0;
            text-align: right;
        }

        .count-register-page__history-action {
            border-radius: .75rem;
            font-size: .78rem;
            gap: .28rem;
            justify-self: end;
            min-height: 30px;
            min-width: 0;
            padding: 0 .55rem;
        }
    }

